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
176715832b14e43775cf1181564c8fb824181fae
4,529
py
Python
pyaz/lock/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/lock/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/lock/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
1
2022-02-03T09:12:01.000Z
2022-02-03T09:12:01.000Z
''' Manage Azure locks. ''' from .. pyaz_utils import _call_az def create(lock_type, name, namespace=None, notes=None, parent=None, resource=None, resource_group=None, resource_type=None): ''' Create a lock. Required Parameters: - lock_type -- The type of lock restriction. - name -- Name of the lock Optional Parameters: - namespace -- Provider namespace (Ex: 'Microsoft.Provider') - notes -- Notes about this lock. - parent -- The parent path (Ex: 'resA/myA/resB/myB') - resource -- Name or ID of the resource being locked. If an ID is given, other resource arguments should not be given. - resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>` - resource_type -- The resource type (Ex: 'resC'). Can also accept namespace/type format (Ex: 'Microsoft.Provider/resC') ''' return _call_az("az lock create", locals()) def delete(ids=None, name=None, namespace=None, parent=None, resource=None, resource_group=None, resource_type=None): ''' Delete a lock. Optional Parameters: - ids -- One or more resource IDs (space-delimited). If provided, no other "Resource Id" arguments should be specified. - name -- Name of the lock - namespace -- Provider namespace (Ex: 'Microsoft.Provider') - parent -- The parent path (Ex: 'resA/myA/resB/myB') - resource -- Name or ID of the resource being locked. If an ID is given, other resource arguments should not be given. - resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>` - resource_type -- The resource type (Ex: 'resC'). Can also accept namespace/type format (Ex: 'Microsoft.Provider/resC') ''' return _call_az("az lock delete", locals()) def list(filter_string=None, namespace=None, parent=None, resource=None, resource_group=None, resource_type=None): ''' List lock information. Optional Parameters: - filter_string -- A query filter to use to restrict the results. - namespace -- Provider namespace (Ex: 'Microsoft.Provider') - parent -- The parent path (Ex: 'resA/myA/resB/myB') - resource -- Name or ID of the resource being locked. If an ID is given, other resource arguments should not be given. - resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>` - resource_type -- The resource type (Ex: 'resC'). Can also accept namespace/type format (Ex: 'Microsoft.Provider/resC') ''' return _call_az("az lock list", locals()) def show(ids=None, name=None, namespace=None, parent=None, resource=None, resource_group=None, resource_type=None): ''' Show the properties of a lock Optional Parameters: - ids -- One or more resource IDs (space-delimited). If provided, no other "Resource Id" arguments should be specified. - name -- Name of the lock - namespace -- Provider namespace (Ex: 'Microsoft.Provider') - parent -- The parent path (Ex: 'resA/myA/resB/myB') - resource -- Name or ID of the resource being locked. If an ID is given, other resource arguments should not be given. - resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>` - resource_type -- The resource type (Ex: 'resC'). Can also accept namespace/type format (Ex: 'Microsoft.Provider/resC') ''' return _call_az("az lock show", locals()) def update(ids=None, lock_type=None, name=None, namespace=None, notes=None, parent=None, resource=None, resource_group=None, resource_type=None): ''' Update a lock. Optional Parameters: - ids -- One or more resource IDs (space-delimited). If provided, no other "Resource Id" arguments should be specified. - lock_type -- The type of lock restriction. - name -- Name of the lock - namespace -- Provider namespace (Ex: 'Microsoft.Provider') - notes -- Notes about this lock. - parent -- The parent path (Ex: 'resA/myA/resB/myB') - resource -- Name or ID of the resource being locked. If an ID is given, other resource arguments should not be given. - resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>` - resource_type -- The resource type (Ex: 'resC'). Can also accept namespace/type format (Ex: 'Microsoft.Provider/resC') ''' return _call_az("az lock update", locals())
50.88764
145
0.697947
633
4,529
4.93207
0.131122
0.057655
0.060858
0.035234
0.890775
0.886931
0.886931
0.886931
0.886931
0.886931
0
0
0.191433
4,529
88
146
51.465909
0.85254
0.738794
0
0
0
0
0.071197
0
0
0
0
0
0
1
0.454545
false
0
0.090909
0
1
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
7
1788af071a586b65125b3933c609edfc0c43f51c
1,773
py
Python
tests/app/test_evaluators.py
MJafarMashhadi/keras-glove
43ce3a262a517e2c7aed04f1726bc7ea049fd031
[ "MIT" ]
null
null
null
tests/app/test_evaluators.py
MJafarMashhadi/keras-glove
43ce3a262a517e2c7aed04f1726bc7ea049fd031
[ "MIT" ]
null
null
null
tests/app/test_evaluators.py
MJafarMashhadi/keras-glove
43ce3a262a517e2c7aed04f1726bc7ea049fd031
[ "MIT" ]
null
null
null
import numpy as np import app.evaluators as ev def test_most_similar(mocker): mock_np_load = mocker.patch('app.evaluators.np.load') mock_np_load.return_value = np.array( [ [1.0, 0.5, 0.2], [0.5, 1.0, 0.7], [0.2, 0.7, 1.0] ] ) mock_np_argsort = mocker.patch('app.evaluators.np.argsort') mock_np_argsort.return_value = np.array([0, 2, 1]) mock_open = mocker.patch('app.evaluators.open') mock_open.return_value = 'test' mock_pickle_load = mocker.patch('app.evaluators.pickle.load') mock_pickle_load.side_effect = [ { 'bla': 0, 'blah': 1, 'blahblah': 2 }, { 0: 'bla', 1: 'blah', 2: 'blahblah' } ] res = ev.get_most_similar(word='blah', k=2) assert len(res) == 2 assert res[0] == ('bla', 0.5) assert res[1] == ('blahblah', 0.7) def test_most_uknown_word(mocker): mock_np_load = mocker.patch('app.evaluators.np.load') mock_np_load.return_value = np.array( [ [1.0, 0.5, 0.2], [0.5, 1.0, 0.7], [0.2, 0.7, 1.0] ] ) mock_np_argsort = mocker.patch('app.evaluators.np.argsort') mock_np_argsort.return_value = np.array([0, 2, 1]) mock_open = mocker.patch('app.evaluators.open') mock_open.return_value = 'test' mock_pickle_load = mocker.patch('app.evaluators.pickle.load') mock_pickle_load.side_effect = [ { 'bla': 0, 'blah': 1, 'blahblah': 2 }, { 0: 'bla', 1: 'blah', 2: 'blahblah' } ] res = ev.get_most_similar(word='aaaa', k=2) assert len(res) == 0
22.730769
65
0.518331
240
1,773
3.641667
0.1625
0.133867
0.128146
0.21968
0.860412
0.828375
0.828375
0.828375
0.828375
0.828375
0
0.053782
0.328821
1,773
77
66
23.025974
0.680672
0
0
0.566667
0
0
0.152848
0.082346
0
0
0
0
0.066667
1
0.033333
false
0
0.033333
0
0.066667
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
179bc9356b48afc68cbaa9bf5a1962d0b90110c5
144
py
Python
alvi/tests/resources/__init__.py
alviproject/alvi
ec77919a546c11c46b178a21236792f8b0d95cbd
[ "MIT" ]
10
2015-06-01T09:11:33.000Z
2018-03-02T13:52:46.000Z
alvi/tests/resources/__init__.py
alviproject/alvi
ec77919a546c11c46b178a21236792f8b0d95cbd
[ "MIT" ]
null
null
null
alvi/tests/resources/__init__.py
alviproject/alvi
ec77919a546c11c46b178a21236792f8b0d95cbd
[ "MIT" ]
5
2015-09-17T17:34:16.000Z
2019-09-04T10:50:29.000Z
from alvi.tests.resources.backend import Backend from alvi.tests.resources.browser import Browser from alvi.tests.resources.client import Client
48
48
0.861111
21
144
5.904762
0.380952
0.193548
0.314516
0.532258
0
0
0
0
0
0
0
0
0.076389
144
3
49
48
0.932331
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
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
bd6f062feb56351b8bab3b1aa1a99eaef71af2a3
135
py
Python
fl_blog/main/views.py
anshgandhi/flask_blogging
518305d602e9834744b89f96e1e230b6b24f9ca1
[ "MIT" ]
null
null
null
fl_blog/main/views.py
anshgandhi/flask_blogging
518305d602e9834744b89f96e1e230b6b24f9ca1
[ "MIT" ]
null
null
null
fl_blog/main/views.py
anshgandhi/flask_blogging
518305d602e9834744b89f96e1e230b6b24f9ca1
[ "MIT" ]
null
null
null
from flask import render_template from fl_blog.main import main @main.route('/') def index(): return render_template('index.html')
22.5
40
0.755556
20
135
4.95
0.65
0.282828
0
0
0
0
0
0
0
0
0
0
0.125926
135
6
40
22.5
0.838983
0
0
0
0
0
0.080882
0
0
0
0
0
0
1
0.2
true
0
0.4
0.2
0.8
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
1
1
0
0
7
bd84e6fb444709b274afa9fadc0249a8c7b7e0d3
275,804
py
Python
frontend/assets/backup/AutoHotPy-master/recorded_macro-mouse-fast.py
ruslanmv/BOT-MMORPG-AI
f5e8badfd9b067aefd8d905623faafb313382e28
[ "MIT" ]
6
2021-12-13T13:50:26.000Z
2022-03-12T03:18:48.000Z
frontend/assets/backup/AutoHotPy-master/recorded_macro-mouse-fast.py
ruslanmv/BOT-MMORPG-AI
f5e8badfd9b067aefd8d905623faafb313382e28
[ "MIT" ]
null
null
null
frontend/assets/backup/AutoHotPy-master/recorded_macro-mouse-fast.py
ruslanmv/BOT-MMORPG-AI
f5e8badfd9b067aefd8d905623faafb313382e28
[ "MIT" ]
2
2022-03-05T05:42:43.000Z
2022-03-29T12:20:25.000Z
from AutoHotPy import AutoHotPy from InterceptionWrapper import * import time def exitAutoHotKey(autohotpy,event): autohotpy.stop() def recorded_macro(autohotpy, event): start = time.time() autohotpy.moveMouseToPosition(245,387) autohotpy.sleep(0.0) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_BUTTON_1_DOWN stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.1415457725524902e-05) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.995180130004883e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.0073394775390627e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.932518005371094e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.227306365966797e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.988649368286133e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.892255783081055e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.968280792236329e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.996891021728516e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.999544143676758e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9996166229248047e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0001659393310548e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0096302032470705e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9905567169189455e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0103454589843751e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9966831207275394e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.1068325042724613e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.401828765869141e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9371509552001953e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.004312515258789e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.932518005371094e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9996166229248047e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.007173538208008e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9927024841308593e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.79998779296875e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0282993316650391e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0362606048583986e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.965211868286133e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.9992332458496094e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.998828887939453e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.992122650146485e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.9999485015869145e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(6.000041961669922e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.001731872558594e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.7028093338012696e-06) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9969701766967773e-06) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(7.000207901000977e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.003162384033204e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(6.776571273803712e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.8771629333496096e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.894371032714845e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.625797271728516e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.2309761047363285e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.841472625732422e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0003318786621096e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0083656311035157e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(0.0) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.884834289550782e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0739307403564456e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.272098541259766e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.1351318359375004e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.370668411254883e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0004043579101563e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.99835205078125e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0011196136474609e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.982585906982422e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0017623901367188e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.999275207519531e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0091533660888672e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.991914749145508e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0011196136474609e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.2161006927490234e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.7812252044677734e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.4495124816894533e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.417398452758789e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.2091865539550783e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.7919540405273439e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9779205322265625e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0096302032470705e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9898414611816406e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0301342010498048e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9707679748535156e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.007007598876953e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.925365447998047e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0025501251220704e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9819736480712892e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.986980438232422e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0083656311035157e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9953250885009768e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9888153076171876e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0263195037841797e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.7577152252197267e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.3622512817382813e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.050804138183594e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.774093627929688e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.007266998291016e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(7.555723190307618e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(6.973505020141602e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.302287101745606e-06) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.6933679580688477e-06) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.405612945556641e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(7.057905197143555e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(6.185293197631836e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0151863098144532e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(7.320880889892579e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0287761688232422e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.542350769042969e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.993034362792969e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0096302032470705e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.935192108154298e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0399818420410157e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.967357635498047e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.4377574920654296e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.058050155639649e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.933740615844727e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.794235229492187e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.922079086303711e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0080337524414063e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0756721496582032e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.222797393798829e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.9305686950683595e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.86810302734375e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.796619415283204e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(6.645202636718751e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0137557983398438e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.032135009765625e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9644966125488283e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0374526977539063e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.962516784667969e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0399093627929688e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.957841873168945e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(6.000280380249024e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.984970092773438e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.038976669311524e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0108947753906251e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.9942264556884766e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.959085464477539e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.58271598815918e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.007007598876953e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9927024841308593e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.228042602539063e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.513191223144532e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(0.0) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.5197734832763676e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.806591033935547e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.771305084228516e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9991397857666016e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0018348693847657e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.998207092285156e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.227472305297852e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0001659393310548e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.0073394775390627e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0050277709960937e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.989126205444336e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.5447349548339847e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.4778118133544924e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0023117065429687e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.997802734375e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.2114257812500005e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.786563873291016e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.4205913543701174e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.3453960418701172e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.9687156677246096e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.002809524536133e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.0292739868164067e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.971649169921875e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.095243453979493e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.765344619750977e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9158592224121096e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.007101058959961e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0651817321777346e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.002788543701172e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.022836685180664e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0035972595214844e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.2783279418945313e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.0342807769775394e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.002405166625977e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.9329528808593754e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.058910369873047e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9380321502685546e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.9858818054199223e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.7088394165039065e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.169536590576172e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.2603740692138676e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.7454833984375004e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0003318786621096e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.6586990356445317e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.425670623779297e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.000020980834961e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0059814453125003e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0009746551513676e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.992391586303711e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0062923431396485e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.2253990173339844e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.8236637115478516e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9990673065185547e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0395984649658207e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9616355895996093e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(0.0) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.408670425415039e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.029346466064453e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.106521606445313e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.87318229675293e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0069351196289065e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0069351196289065e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0182132720947266e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.727478027343751e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.7181377410888674e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0505657196044924e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.889602661132813e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.926422119140625e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.995014190673828e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0019283294677737e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9203891754150393e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.98817253112793e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.195192337036133e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.809835433959961e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9942989349365235e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.2018680572509765e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.7988681793212892e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9399394989013674e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.7284622192382814e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.2302398681640625e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.1244029998779297e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(8.847713470458985e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.9945068359375e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9997825622558593e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9991397857666016e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0004043579101563e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.000736236572266e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0003318786621096e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.996891021728516e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.871917724609375e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.1262893676757814e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0092258453369141e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.0059089660644535e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(0.0) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.021312713623047e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9785633087158205e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.992868423461914e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.000020980834961e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.2978057861328125e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.985311508178711e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.9945068359375e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.000497817993164e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0273456573486328e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9719600677490236e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.020286560058594e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.794235229492187e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.6210079193115236e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0089149475097657e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.017974853515625e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9339790344238285e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0075569152832032e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.999275207519531e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9993782043457032e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.007007598876953e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.937286376953125e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9993782043457032e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.000186920166016e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(0.0) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.0009021759033207e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.999275207519531e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.996891021728516e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.331422805786133e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.9945068359375e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.000093460083008e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0009746551513676e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.2272338867187503e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.997875213623047e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(7.750988006591797e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9990673065185547e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0182857513427735e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.988649368286133e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.72369384765625e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0001659393310548e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9998550415039062e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9997825622558593e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.000570297241211e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.045797348022461e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0074119567871096e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.949310302734375e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.20942497253418e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0151863098144532e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.3000240325927734e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9991397857666016e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9981861114501955e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0078887939453126e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.93967056274414e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9989013671875e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.006696701049805e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.2164115905761718e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.010988235473633e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.522157669067383e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.858804702758789e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.6195259094238286e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.4240016937255863e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.02886962890625e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.512859344482422e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.000020980834961e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.005193710327149e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.24812126159668e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0349750518798829e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.463340759277344e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.796619415283204e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.044843673706055e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.789466857910157e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.996278762817383e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.979351043701172e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.000093460083008e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0155906677246095e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0154247283935547e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.5326480865478516e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.5155544281005863e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(7.739067077636719e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0225048065185548e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.201080322265625e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(7.76052474975586e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9990673065185547e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.996891021728516e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0069351196289065e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.930133819580079e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.6847591400146487e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(0.0) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.9691925048828126e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0128021240234375e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.221439361572266e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(0.0) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.7763118743896486e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0001659393310548e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0069351196289065e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.93967056274414e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9985904693603517e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.055095672607422e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.097606658935547e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0139942169189453e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0887126922607424e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9364356994628907e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9721260070800785e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0067691802978516e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.130840301513672e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.000301361083984e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9855499267578125e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.301454544067383e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9214153289794923e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.773834228515625e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0008087158203126e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9989013671875e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0006427764892579e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.998279571533203e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0291080474853515e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.971649169921875e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.000663757324219e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0368099212646486e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.634494781494141e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9989013671875e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0004043579101563e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0010471343994142e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9996166229248047e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.000736236572266e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.99835205078125e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.9945068359375e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0015964508056641e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9998550415039062e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.000736236572266e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.975433349609375e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.002788543701172e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0275115966796876e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9998550415039062e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.7716159820556643e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9803047180175781e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.064943313598633e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(0.0) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.934051513671875e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0006427764892579e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.996891021728516e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0064582824707034e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.93967056274414e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.98973846435547e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.000570297241211e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9998550415039062e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.999275207519531e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.848459243774414e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0286312103271484e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.270294189453125e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(7.393360137939454e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.986980438232422e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9976367950439455e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0048618316650393e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.3725032806396487e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.6236305236816407e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.000093460083008e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0175704956054688e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.230478286743164e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.999544143676758e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.061128616333008e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.992122650146485e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.000570297241211e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.99835205078125e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.184795379638672e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9440650939941407e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.987354278564453e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.259420394897461e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.7408599853515624e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.999544143676758e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0597705841064453e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.1765232086181642e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.572391510009766e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.6045570373535157e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0111331939697266e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.2684803009033203e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.2265186309814457e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.562305450439453e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.97304916381836e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.99835205078125e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0084381103515626e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9922256469726563e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.999275207519531e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.236604690551758e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.536296844482422e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.210378646850586e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(7.894039154052735e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.9945068359375e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0012855529785157e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9993782043457032e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.016471862792969e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.961128234863281e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.2090206146240234e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.7783641815185547e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.417325973510742e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.1718273162841798e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9998550415039062e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9993782043457032e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0008087158203126e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0771026611328127e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9254684448242187e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0220279693603517e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9743442535400392e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.66718864440918e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.004384994506836e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.187894821166992e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.7783641815185547e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0220279693603517e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.1905899047851564e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.7911663055419924e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.2950172424316407e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.3255348205566407e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9998550415039062e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.006696701049805e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9938945770263673e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0303001403808597e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9702186584472657e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.023386001586914e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.775161743164063e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0201206207275392e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.4708251953125005e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.7557144165039064e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.004240036010742e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0069351196289065e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0083656311035157e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.884834289550782e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.3899078369140624e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.0941238403320314e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.775669097900391e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.005743026733399e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.996278762817383e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.975433349609375e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.997947692871094e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.0152072906494144e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9911994934082035e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.7838478088378908e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.99835205078125e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0045509338378906e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.2041797637939455e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(7.898807525634767e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9991397857666016e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9993057250976563e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.1510848999023438e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.8525123596191407e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.3755302429199223e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.360820770263672e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.4554729461669923e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.5234222412109375e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.796619415283204e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0003318786621096e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.992122650146485e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9996166229248047e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0011196136474609e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.98973846435547e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.999544143676758e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.437519073486328e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0333995819091797e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.002166748046875e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9981861114501955e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(7.483959197998047e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9986629486083985e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0006427764892579e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9989013671875e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0263919830322265e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.1710395812988283e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9795894622802735e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.998828887939453e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9997825622558593e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0116100311279297e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0194053649902346e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.701251983642579e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.992122650146485e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9993057250976563e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0077953338623047e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.089500427246094e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.15203857421875e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.043413162231445e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.660720825195313e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0373592376708985e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.961397171020508e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0074119567871096e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.930133819580079e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0013580322265626e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0672550201416015e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.008749008178711e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.287792205810547e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9991397857666016e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.2227764129638672e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.7773380279541017e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9990673065185547e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.007246017456055e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.000736236572266e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.1674633026123047e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0647773742675781e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.008127212524414e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0008087158203126e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0001659393310548e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0337104797363283e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9659271240234375e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0589828491210938e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.410381317138672e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.000093460083008e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.2335052490234377e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.183364868164063e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9985904693603517e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.0187835693359375e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9997825622558593e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0139217376708985e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.996891021728516e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.682178497314454e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.044771194458008e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9892921447753907e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.7728805541992188e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.1914710998535157e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.8160343170166017e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0009746551513676e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9991397857666016e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.001689910888672e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9977092742919924e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.455711364746094e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.546072006225586e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.176046371459961e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.683473587036133e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9986629486083985e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9996166229248047e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.007722854614258e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.999544143676758e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9943714141845704e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0325183868408204e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.66787338256836e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.742290496826172e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.3822784423828127e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0063648223876954e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.185344696044922e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.8160343170166017e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.017021179199219e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.986503601074219e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.996278762817383e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9996166229248047e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9998550415039062e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0453929901123047e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0096302032470705e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.3941993713378906e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.639263153076172e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.998424530029297e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0003318786621096e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0003318786621096e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.00653076171875e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9927024841308593e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.007007598876953e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9931793212890627e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0985603332519533e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0103454589843751e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9969940185546875e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0840167999267578e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9168128967285157e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0151138305664064e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.000736236572266e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9834041595458986e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0008087158203126e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9990673065185547e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.4945735931396485e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.3067722320556641e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.1900405883789064e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.767873764038086e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.998828887939453e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0067691802978516e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.993034362792969e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0034313201904298e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0001659393310548e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.7455558776855473e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0143985748291018e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.977817535400392e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.1856555938720704e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.8154850006103517e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.975433349609375e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.000736236572266e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.996891021728516e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.008127212524414e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.920597076416016e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9996166229248047e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.1837482452392578e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.758026123046875e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.006053924560547e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.000093460083008e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9998550415039062e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.008604049682617e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9919872283935547e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0623207092285156e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9693374633789064e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9893646240234376e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0236968994140625e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.1436939239501953e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9996166229248047e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0003318786621096e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0314922332763674e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.677410125732423e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0001659393310548e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0001659393310548e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0162334442138675e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(0.0) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.1345615386962893e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.531932830810547e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.017498016357422e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(7.901191711425782e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.997947692871094e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0074119567871096e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.920597076416016e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0074844360351564e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.993106842041016e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.5420188903808595e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.2354850769042969e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9311904907226564e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9996166229248047e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0008087158203126e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0009746551513676e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0194053649902346e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.806156158447266e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.236604690551758e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.7633438110351563e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9974708557128906e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.8410682678222656e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0645389556884766e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9629001617431641e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.207921981811524e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.76637077331543e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0411014556884768e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9671916961669923e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.000020980834961e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.022981643676758e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9955635070800783e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.813308715820313e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.2079944610595704e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.792835235595703e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0193328857421874e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(0.0) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0067691802978516e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.002166748046875e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.984970092773438e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0004043579101563e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.0063858032226565e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.930133819580079e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0001659393310548e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.960371017456055e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0011196136474609e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.89675521850586e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9991397857666016e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0004043579101563e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.007173538208008e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.006219863891602e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(0.0) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9893646240234376e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0003318786621096e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.290487289428711e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.999275207519531e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9998550415039062e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9993782043457032e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0001659393310548e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0074119567871096e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.946823120117188e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.237558364868164e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.773284912109375e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.899139404296875e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.8282871246337894e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(0.0) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.127979278564453e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.2350292205810547e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.8291473388671875e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.93421745300293e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.00653076171875e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0008087158203126e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.2303333282470703e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.7621517181396487e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.9081573486328125e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0170936584472657e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.9839744567871095e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.958744049072266e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0009746551513676e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.019094467163086e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.531051635742188e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.295494079589844e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.0079612731933595e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.018949508666993e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(0.0) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.17582893371582e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(0.0) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.8051605224609377e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.001140594482422e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.0006427764892579e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.027294158935547e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.583099365234375e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.960371017456055e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.007173538208008e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9996166229248047e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.428791046142578e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.5904178619384766e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.5316219329833986e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.782676696777344e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.4466514587402344e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.9093494415283207e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.8738250732421876e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9997825622558593e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.000020980834961e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.91731071472168e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.58669662475586e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.99725341796875e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.433393478393555e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.5702457427978517e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.1653900146484375e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.310535430908204e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.9992332458496094e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(6.227254867553712e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.820823669433594e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.06281852722168e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.361318588256836e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0078887939453126e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9996166229248047e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.995180130004883e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.176782608032227e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.995346069335938e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(9.915828704833986e-08) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.9985904693603517e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.032062530517579e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.191326141357422e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.315303802490234e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.5518875122070313e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(6.109237670898438e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.870891571044922e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.967451095581054e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.2710094451904297e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = -1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.765748977661133e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.858732223510742e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.008459091186524e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.997730255126953e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.030704498291016e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.2810440063476565e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.339529037475586e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.425048828125e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.788471221923828e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.785444259643555e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.611637115478516e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0663013458251954e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.9682388305664065e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9752979278564453e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.0094852447509765e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.9893646240234376e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.255367279052735e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.83503532409668e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.0069351196289065e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(2.996444702148438e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.000736236572266e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.744840621948242e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.9579868316650394e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.373384475708008e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.6079883575439455e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.1366348266601565e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.173444747924805e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.1974315643310546e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(5.483150482177735e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(4.742860794067383e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(7.808923721313477e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(7.606267929077149e-07) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.1717414855957031e-05) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_BUTTON_1_UP stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.314471244812012e-06) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(1.7107725143432618e-06) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = -1 stroke.y = 0 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) autohotpy.sleep(3.599174022674561e-05) stroke = InterceptionMouseStroke() stroke.state = InterceptionMouseState.INTERCEPTION_MOUSE_MOVE stroke.flags = InterceptionMouseFlag.INTERCEPTION_MOUSE_MOVE_RELATIVE stroke.rolling = 0 stroke.x = 0 stroke.y = 1 stroke.information = 0 autohotpy.sendToDefaultMouse(stroke) end = time.time() print(end - start) if __name__=="__main__": auto = AutoHotPy() auto.registerExit(auto.ESC,exitAutoHotKey) auto.registerForKeyDown(auto.F1,recorded_macro) auto.start()
38.606383
74
0.756831
27,760
275,804
7.376189
0.023415
0.131508
0.162246
0.154715
0.956506
0.956506
0.956506
0.956506
0.956496
0.956037
0
0.076596
0.169678
275,804
7,143
75
38.611788
0.817542
0
0
0.924682
0
0
0.000029
0
0
0
0
0
0
1
0.00028
false
0
0.00042
0
0.0007
0.00014
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
bdf93377fd41eab18e9ef045e5fe2a089c3e2e83
87
py
Python
examples/mnist/get_mnist_prediction.py
fukatani/ChainerWing
37a1435635cbc610dc86d15c8baca67622355757
[ "MIT", "BSD-3-Clause" ]
26
2017-07-03T13:50:28.000Z
2021-02-06T08:43:42.000Z
examples/mnist/get_mnist_prediction.py
fukatani/CW_gui
37a1435635cbc610dc86d15c8baca67622355757
[ "MIT", "BSD-3-Clause" ]
10
2017-07-03T14:30:00.000Z
2017-12-21T13:26:43.000Z
examples/mnist/get_mnist_prediction.py
fukatani/CW_gui
37a1435635cbc610dc86d15c8baca67622355757
[ "MIT", "BSD-3-Clause" ]
6
2017-03-15T13:48:09.000Z
2019-04-15T19:28:02.000Z
import chainer def main(): return chainer.datasets.get_mnist(withlabel=False)[0]
14.5
57
0.747126
12
87
5.333333
0.916667
0
0
0
0
0
0
0
0
0
0
0.013333
0.137931
87
5
58
17.4
0.84
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
true
0
0.333333
0.333333
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
1
1
0
0
7
da025089f4b135b82b47d1099c3c95d9831cf857
128
py
Python
python/testData/completion/heavyStarPropagation/lib/_pkg1/_pkg1_1/_pkg1_1_0/_pkg1_1_0_1/_pkg1_1_0_1_1/_mod1_1_0_1_1_2.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/completion/heavyStarPropagation/lib/_pkg1/_pkg1_1/_pkg1_1_0/_pkg1_1_0_1/_pkg1_1_0_1_1/_mod1_1_0_1_1_2.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/completion/heavyStarPropagation/lib/_pkg1/_pkg1_1/_pkg1_1_0/_pkg1_1_0_1/_pkg1_1_0_1_1/_mod1_1_0_1_1_2.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
name1_1_0_1_1_2_0 = None name1_1_0_1_1_2_1 = None name1_1_0_1_1_2_2 = None name1_1_0_1_1_2_3 = None name1_1_0_1_1_2_4 = None
14.222222
24
0.820313
40
128
1.875
0.175
0.4
0.466667
0.533333
0.88
0.88
0.746667
0
0
0
0
0.318182
0.140625
128
9
25
14.222222
0.363636
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
1
null
1
1
1
1
1
1
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
10
da15d29c06f82bd88f2ccf5423cc0eeeeb571752
68,885
py
Python
line/f_AuthService.py
winbotscript/LineService
4c79029648e858e567378485e75276f865c1f73f
[ "Apache-2.0" ]
1
2020-08-20T08:00:23.000Z
2020-08-20T08:00:23.000Z
line/f_AuthService.py
winbotscript/LineService
4c79029648e858e567378485e75276f865c1f73f
[ "Apache-2.0" ]
null
null
null
line/f_AuthService.py
winbotscript/LineService
4c79029648e858e567378485e75276f865c1f73f
[ "Apache-2.0" ]
null
null
null
# # Autogenerated by Frugal Compiler (3.4.3) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # from threading import Lock from frugal.middleware import Method from frugal.exceptions import TApplicationExceptionType from frugal.exceptions import TTransportExceptionType from frugal.processor import FBaseProcessor from frugal.processor import FProcessorFunction from frugal.util.deprecate import deprecated from frugal.util import make_hashable from thrift.Thrift import TApplicationException from thrift.Thrift import TMessageType from thrift.transport.TTransport import TTransportException from .ttypes import * class Iface(object): def normalizePhoneNumber(self, ctx, countryCode, phoneNumber, countryCodeHint): """ Args: ctx: FContext countryCode: string phoneNumber: string countryCodeHint: string """ pass def respondE2EELoginRequest(self, ctx, verifier, publicKey, encryptedKeyChain, hashKeyChain, errorCode): """ Args: ctx: FContext verifier: string publicKey: E2EEPublicKey encryptedKeyChain: binary string hashKeyChain: binary string errorCode: ErrorCode """ pass def confirmE2EELogin(self, ctx, verifier, deviceSecret): """ Args: ctx: FContext verifier: string deviceSecret: binary string """ pass def logoutZ(self, ctx): """ Args: ctx: FContext """ pass def loginZ(self, ctx, loginRequest): """ Args: ctx: FContext loginRequest: LoginRequest """ pass def issueTokenForAccountMigrationSettings(self, ctx, enforce): """ Args: ctx: FContext enforce: boolean """ pass def issueTokenForAccountMigration(self, ctx, migrationSessionId): """ Args: ctx: FContext migrationSessionId: string """ pass def verifyQrcodeWithE2EE(self, ctx, verifier, pinCode, errorCode, publicKey, encryptedKeyChain, hashKeyChain): """ Args: ctx: FContext verifier: string pinCode: string errorCode: ErrorCode publicKey: E2EEPublicKey encryptedKeyChain: binary string hashKeyChain: binary string """ pass class Client(Iface): def __init__(self, provider, middleware=None): """ Create a new Client with an FServiceProvider containing a transport and protocol factory. Args: provider: FServiceProvider with TSynchronousTransport middleware: ServiceMiddleware or list of ServiceMiddleware """ middleware = middleware or [] if middleware and not isinstance(middleware, list): middleware = [middleware] self._transport = provider.get_transport() self._protocol_factory = provider.get_protocol_factory() self._oprot = self._protocol_factory.get_protocol(self._transport) self._iprot = self._protocol_factory.get_protocol(self._transport) self._write_lock = Lock() middleware += provider.get_middleware() self._methods = { 'normalizePhoneNumber': Method(self._normalizePhoneNumber, middleware), 'respondE2EELoginRequest': Method(self._respondE2EELoginRequest, middleware), 'confirmE2EELogin': Method(self._confirmE2EELogin, middleware), 'logoutZ': Method(self._logoutZ, middleware), 'loginZ': Method(self._loginZ, middleware), 'issueTokenForAccountMigrationSettings': Method(self._issueTokenForAccountMigrationSettings, middleware), 'issueTokenForAccountMigration': Method(self._issueTokenForAccountMigration, middleware), 'verifyQrcodeWithE2EE': Method(self._verifyQrcodeWithE2EE, middleware), } def normalizePhoneNumber(self, ctx, countryCode, phoneNumber, countryCodeHint): """ Args: ctx: FContext countryCode: string phoneNumber: string countryCodeHint: string """ return self._methods['normalizePhoneNumber']([ctx, countryCode, phoneNumber, countryCodeHint]) def _normalizePhoneNumber(self, ctx, countryCode, phoneNumber, countryCodeHint): self._send_normalizePhoneNumber(ctx, countryCode, phoneNumber, countryCodeHint) return self._recv_normalizePhoneNumber(ctx) def _send_normalizePhoneNumber(self, ctx, countryCode, phoneNumber, countryCodeHint): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('normalizePhoneNumber', TMessageType.CALL, 0) args = normalizePhoneNumber_args() args.countryCode = countryCode args.phoneNumber = phoneNumber args.countryCodeHint = countryCodeHint args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_normalizePhoneNumber(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = normalizePhoneNumber_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "normalizePhoneNumber failed: unknown result") raise x def respondE2EELoginRequest(self, ctx, verifier, publicKey, encryptedKeyChain, hashKeyChain, errorCode): """ Args: ctx: FContext verifier: string publicKey: E2EEPublicKey encryptedKeyChain: binary string hashKeyChain: binary string errorCode: ErrorCode """ return self._methods['respondE2EELoginRequest']([ctx, verifier, publicKey, encryptedKeyChain, hashKeyChain, errorCode]) def _respondE2EELoginRequest(self, ctx, verifier, publicKey, encryptedKeyChain, hashKeyChain, errorCode): self._send_respondE2EELoginRequest(ctx, verifier, publicKey, encryptedKeyChain, hashKeyChain, errorCode) self._recv_respondE2EELoginRequest(ctx) def _send_respondE2EELoginRequest(self, ctx, verifier, publicKey, encryptedKeyChain, hashKeyChain, errorCode): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('respondE2EELoginRequest', TMessageType.CALL, 0) args = respondE2EELoginRequest_args() args.verifier = verifier args.publicKey = publicKey args.encryptedKeyChain = encryptedKeyChain args.hashKeyChain = hashKeyChain args.errorCode = errorCode args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_respondE2EELoginRequest(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = respondE2EELoginRequest_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e return def confirmE2EELogin(self, ctx, verifier, deviceSecret): """ Args: ctx: FContext verifier: string deviceSecret: binary string """ return self._methods['confirmE2EELogin']([ctx, verifier, deviceSecret]) def _confirmE2EELogin(self, ctx, verifier, deviceSecret): self._send_confirmE2EELogin(ctx, verifier, deviceSecret) return self._recv_confirmE2EELogin(ctx) def _send_confirmE2EELogin(self, ctx, verifier, deviceSecret): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('confirmE2EELogin', TMessageType.CALL, 0) args = confirmE2EELogin_args() args.verifier = verifier args.deviceSecret = deviceSecret args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_confirmE2EELogin(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = confirmE2EELogin_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "confirmE2EELogin failed: unknown result") raise x def logoutZ(self, ctx): """ Args: ctx: FContext """ return self._methods['logoutZ']([ctx]) def _logoutZ(self, ctx): self._send_logoutZ(ctx) self._recv_logoutZ(ctx) def _send_logoutZ(self, ctx): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('logoutZ', TMessageType.CALL, 0) args = logoutZ_args() args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_logoutZ(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = logoutZ_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e return def loginZ(self, ctx, loginRequest): """ Args: ctx: FContext loginRequest: LoginRequest """ return self._methods['loginZ']([ctx, loginRequest]) def _loginZ(self, ctx, loginRequest): self._send_loginZ(ctx, loginRequest) return self._recv_loginZ(ctx) def _send_loginZ(self, ctx, loginRequest): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('loginZ', TMessageType.CALL, 0) args = loginZ_args() args.loginRequest = loginRequest args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_loginZ(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = loginZ_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "loginZ failed: unknown result") raise x def issueTokenForAccountMigrationSettings(self, ctx, enforce): """ Args: ctx: FContext enforce: boolean """ return self._methods['issueTokenForAccountMigrationSettings']([ctx, enforce]) def _issueTokenForAccountMigrationSettings(self, ctx, enforce): self._send_issueTokenForAccountMigrationSettings(ctx, enforce) return self._recv_issueTokenForAccountMigrationSettings(ctx) def _send_issueTokenForAccountMigrationSettings(self, ctx, enforce): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('issueTokenForAccountMigrationSettings', TMessageType.CALL, 0) args = issueTokenForAccountMigrationSettings_args() args.enforce = enforce args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_issueTokenForAccountMigrationSettings(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = issueTokenForAccountMigrationSettings_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "issueTokenForAccountMigrationSettings failed: unknown result") raise x def issueTokenForAccountMigration(self, ctx, migrationSessionId): """ Args: ctx: FContext migrationSessionId: string """ return self._methods['issueTokenForAccountMigration']([ctx, migrationSessionId]) def _issueTokenForAccountMigration(self, ctx, migrationSessionId): self._send_issueTokenForAccountMigration(ctx, migrationSessionId) return self._recv_issueTokenForAccountMigration(ctx) def _send_issueTokenForAccountMigration(self, ctx, migrationSessionId): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('issueTokenForAccountMigration', TMessageType.CALL, 0) args = issueTokenForAccountMigration_args() args.migrationSessionId = migrationSessionId args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_issueTokenForAccountMigration(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = issueTokenForAccountMigration_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "issueTokenForAccountMigration failed: unknown result") raise x def verifyQrcodeWithE2EE(self, ctx, verifier, pinCode, errorCode, publicKey, encryptedKeyChain, hashKeyChain): """ Args: ctx: FContext verifier: string pinCode: string errorCode: ErrorCode publicKey: E2EEPublicKey encryptedKeyChain: binary string hashKeyChain: binary string """ return self._methods['verifyQrcodeWithE2EE']([ctx, verifier, pinCode, errorCode, publicKey, encryptedKeyChain, hashKeyChain]) def _verifyQrcodeWithE2EE(self, ctx, verifier, pinCode, errorCode, publicKey, encryptedKeyChain, hashKeyChain): self._send_verifyQrcodeWithE2EE(ctx, verifier, pinCode, errorCode, publicKey, encryptedKeyChain, hashKeyChain) return self._recv_verifyQrcodeWithE2EE(ctx) def _send_verifyQrcodeWithE2EE(self, ctx, verifier, pinCode, errorCode, publicKey, encryptedKeyChain, hashKeyChain): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('verifyQrcodeWithE2EE', TMessageType.CALL, 0) args = verifyQrcodeWithE2EE_args() args.verifier = verifier args.pinCode = pinCode args.errorCode = errorCode args.publicKey = publicKey args.encryptedKeyChain = encryptedKeyChain args.hashKeyChain = hashKeyChain args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_verifyQrcodeWithE2EE(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = verifyQrcodeWithE2EE_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "verifyQrcodeWithE2EE failed: unknown result") raise x class Processor(FBaseProcessor): def __init__(self, handler, middleware=None): """ Create a new Processor. Args: handler: Iface """ if middleware and not isinstance(middleware, list): middleware = [middleware] super(Processor, self).__init__() self.add_to_processor_map('normalizePhoneNumber', _normalizePhoneNumber(Method(handler.normalizePhoneNumber, middleware), self.get_write_lock())) self.add_to_processor_map('respondE2EELoginRequest', _respondE2EELoginRequest(Method(handler.respondE2EELoginRequest, middleware), self.get_write_lock())) self.add_to_processor_map('confirmE2EELogin', _confirmE2EELogin(Method(handler.confirmE2EELogin, middleware), self.get_write_lock())) self.add_to_processor_map('logoutZ', _logoutZ(Method(handler.logoutZ, middleware), self.get_write_lock())) self.add_to_processor_map('loginZ', _loginZ(Method(handler.loginZ, middleware), self.get_write_lock())) self.add_to_processor_map('issueTokenForAccountMigrationSettings', _issueTokenForAccountMigrationSettings(Method(handler.issueTokenForAccountMigrationSettings, middleware), self.get_write_lock())) self.add_to_processor_map('issueTokenForAccountMigration', _issueTokenForAccountMigration(Method(handler.issueTokenForAccountMigration, middleware), self.get_write_lock())) self.add_to_processor_map('verifyQrcodeWithE2EE', _verifyQrcodeWithE2EE(Method(handler.verifyQrcodeWithE2EE, middleware), self.get_write_lock())) class _normalizePhoneNumber(FProcessorFunction): def __init__(self, handler, lock): super(_normalizePhoneNumber, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = normalizePhoneNumber_args() args.read(iprot) iprot.readMessageEnd() result = normalizePhoneNumber_result() try: result.success = self._handler([ctx, args.countryCode, args.phoneNumber, args.countryCodeHint]) except TalkException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "normalizePhoneNumber", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "normalizePhoneNumber", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('normalizePhoneNumber', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "normalizePhoneNumber", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _respondE2EELoginRequest(FProcessorFunction): def __init__(self, handler, lock): super(_respondE2EELoginRequest, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = respondE2EELoginRequest_args() args.read(iprot) iprot.readMessageEnd() result = respondE2EELoginRequest_result() try: self._handler([ctx, args.verifier, args.publicKey, args.encryptedKeyChain, args.hashKeyChain, args.errorCode]) except TalkException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "respondE2EELoginRequest", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "respondE2EELoginRequest", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('respondE2EELoginRequest', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "respondE2EELoginRequest", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _confirmE2EELogin(FProcessorFunction): def __init__(self, handler, lock): super(_confirmE2EELogin, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = confirmE2EELogin_args() args.read(iprot) iprot.readMessageEnd() result = confirmE2EELogin_result() try: result.success = self._handler([ctx, args.verifier, args.deviceSecret]) except TalkException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "confirmE2EELogin", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "confirmE2EELogin", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('confirmE2EELogin', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "confirmE2EELogin", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _logoutZ(FProcessorFunction): def __init__(self, handler, lock): super(_logoutZ, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = logoutZ_args() args.read(iprot) iprot.readMessageEnd() result = logoutZ_result() try: self._handler([ctx]) except TalkException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "logoutZ", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "logoutZ", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('logoutZ', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "logoutZ", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _loginZ(FProcessorFunction): def __init__(self, handler, lock): super(_loginZ, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = loginZ_args() args.read(iprot) iprot.readMessageEnd() result = loginZ_result() try: result.success = self._handler([ctx, args.loginRequest]) except TalkException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "loginZ", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "loginZ", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('loginZ', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "loginZ", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _issueTokenForAccountMigrationSettings(FProcessorFunction): def __init__(self, handler, lock): super(_issueTokenForAccountMigrationSettings, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = issueTokenForAccountMigrationSettings_args() args.read(iprot) iprot.readMessageEnd() result = issueTokenForAccountMigrationSettings_result() try: result.success = self._handler([ctx, args.enforce]) except TalkException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "issueTokenForAccountMigrationSettings", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "issueTokenForAccountMigrationSettings", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('issueTokenForAccountMigrationSettings', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "issueTokenForAccountMigrationSettings", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _issueTokenForAccountMigration(FProcessorFunction): def __init__(self, handler, lock): super(_issueTokenForAccountMigration, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = issueTokenForAccountMigration_args() args.read(iprot) iprot.readMessageEnd() result = issueTokenForAccountMigration_result() try: result.success = self._handler([ctx, args.migrationSessionId]) except TalkException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "issueTokenForAccountMigration", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "issueTokenForAccountMigration", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('issueTokenForAccountMigration', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "issueTokenForAccountMigration", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _verifyQrcodeWithE2EE(FProcessorFunction): def __init__(self, handler, lock): super(_verifyQrcodeWithE2EE, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = verifyQrcodeWithE2EE_args() args.read(iprot) iprot.readMessageEnd() result = verifyQrcodeWithE2EE_result() try: result.success = self._handler([ctx, args.verifier, args.pinCode, args.errorCode, args.publicKey, args.encryptedKeyChain, args.hashKeyChain]) except TalkException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "verifyQrcodeWithE2EE", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "verifyQrcodeWithE2EE", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('verifyQrcodeWithE2EE', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "verifyQrcodeWithE2EE", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e def _write_application_exception(ctx, oprot, method, ex_code=None, message=None, exception=None): if exception is not None: x = exception else: x = TApplicationException(type=ex_code, message=message) oprot.write_response_headers(ctx) oprot.writeMessageBegin(method, TMessageType.EXCEPTION, 0) x.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() return x class normalizePhoneNumber_args(object): """ Attributes: - countryCode - phoneNumber - countryCodeHint """ def __init__(self, countryCode=None, phoneNumber=None, countryCodeHint=None): self.countryCode = countryCode self.phoneNumber = phoneNumber self.countryCodeHint = countryCodeHint def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 2: if ftype == TType.STRING: self.countryCode = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.phoneNumber = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.countryCodeHint = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('normalizePhoneNumber_args') if self.countryCode is not None: oprot.writeFieldBegin('countryCode', TType.STRING, 2) oprot.writeString(self.countryCode) oprot.writeFieldEnd() if self.phoneNumber is not None: oprot.writeFieldBegin('phoneNumber', TType.STRING, 3) oprot.writeString(self.phoneNumber) oprot.writeFieldEnd() if self.countryCodeHint is not None: oprot.writeFieldBegin('countryCodeHint', TType.STRING, 4) oprot.writeString(self.countryCodeHint) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.countryCode)) value = (value * 31) ^ hash(make_hashable(self.phoneNumber)) value = (value * 31) ^ hash(make_hashable(self.countryCodeHint)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class normalizePhoneNumber_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('normalizePhoneNumber_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class respondE2EELoginRequest_args(object): """ Attributes: - verifier - publicKey - encryptedKeyChain - hashKeyChain - errorCode """ def __init__(self, verifier=None, publicKey=None, encryptedKeyChain=None, hashKeyChain=None, errorCode=None): self.verifier = verifier self.publicKey = publicKey self.encryptedKeyChain = encryptedKeyChain self.hashKeyChain = hashKeyChain self.errorCode = errorCode def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRING: self.verifier = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: self.publicKey = E2EEPublicKey() self.publicKey.read(iprot) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.encryptedKeyChain = iprot.readBinary() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.hashKeyChain = iprot.readBinary() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I32: self.errorCode = ErrorCode(iprot.readI32()) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('respondE2EELoginRequest_args') if self.verifier is not None: oprot.writeFieldBegin('verifier', TType.STRING, 1) oprot.writeString(self.verifier) oprot.writeFieldEnd() if self.publicKey is not None: oprot.writeFieldBegin('publicKey', TType.STRUCT, 2) self.publicKey.write(oprot) oprot.writeFieldEnd() if self.encryptedKeyChain is not None: oprot.writeFieldBegin('encryptedKeyChain', TType.STRING, 3) oprot.writeBinary(self.encryptedKeyChain) oprot.writeFieldEnd() if self.hashKeyChain is not None: oprot.writeFieldBegin('hashKeyChain', TType.STRING, 4) oprot.writeBinary(self.hashKeyChain) oprot.writeFieldEnd() if self.errorCode is not None: oprot.writeFieldBegin('errorCode', TType.I32, 5) oprot.writeI32(self.errorCode) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.verifier)) value = (value * 31) ^ hash(make_hashable(self.publicKey)) value = (value * 31) ^ hash(make_hashable(self.encryptedKeyChain)) value = (value * 31) ^ hash(make_hashable(self.hashKeyChain)) value = (value * 31) ^ hash(make_hashable(self.errorCode)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class respondE2EELoginRequest_result(object): """ Attributes: - e """ def __init__(self, e=None): self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('respondE2EELoginRequest_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class confirmE2EELogin_args(object): """ Attributes: - verifier - deviceSecret """ def __init__(self, verifier=None, deviceSecret=None): self.verifier = verifier self.deviceSecret = deviceSecret def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRING: self.verifier = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.deviceSecret = iprot.readBinary() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('confirmE2EELogin_args') if self.verifier is not None: oprot.writeFieldBegin('verifier', TType.STRING, 1) oprot.writeString(self.verifier) oprot.writeFieldEnd() if self.deviceSecret is not None: oprot.writeFieldBegin('deviceSecret', TType.STRING, 2) oprot.writeBinary(self.deviceSecret) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.verifier)) value = (value * 31) ^ hash(make_hashable(self.deviceSecret)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class confirmE2EELogin_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('confirmE2EELogin_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class logoutZ_args(object): def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('logoutZ_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class logoutZ_result(object): """ Attributes: - e """ def __init__(self, e=None): self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('logoutZ_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class loginZ_args(object): """ Attributes: - loginRequest """ def __init__(self, loginRequest=None): self.loginRequest = loginRequest def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 2: if ftype == TType.STRUCT: self.loginRequest = LoginRequest() self.loginRequest.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('loginZ_args') if self.loginRequest is not None: oprot.writeFieldBegin('loginRequest', TType.STRUCT, 2) self.loginRequest.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.loginRequest)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class loginZ_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRUCT: self.success = LoginResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('loginZ_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class issueTokenForAccountMigrationSettings_args(object): """ Attributes: - enforce """ def __init__(self, enforce=None): self.enforce = enforce def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 2: if ftype == TType.BOOL: self.enforce = iprot.readBool() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('issueTokenForAccountMigrationSettings_args') if self.enforce is not None: oprot.writeFieldBegin('enforce', TType.BOOL, 2) oprot.writeBool(self.enforce) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.enforce)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class issueTokenForAccountMigrationSettings_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRUCT: self.success = SecurityCenterResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('issueTokenForAccountMigrationSettings_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class issueTokenForAccountMigration_args(object): """ Attributes: - migrationSessionId """ def __init__(self, migrationSessionId=None): self.migrationSessionId = migrationSessionId def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 2: if ftype == TType.STRING: self.migrationSessionId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('issueTokenForAccountMigration_args') if self.migrationSessionId is not None: oprot.writeFieldBegin('migrationSessionId', TType.STRING, 2) oprot.writeString(self.migrationSessionId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.migrationSessionId)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class issueTokenForAccountMigration_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRUCT: self.success = SecurityCenterResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('issueTokenForAccountMigration_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class verifyQrcodeWithE2EE_args(object): """ Attributes: - verifier - pinCode - errorCode - publicKey - encryptedKeyChain - hashKeyChain """ def __init__(self, verifier=None, pinCode=None, errorCode=None, publicKey=None, encryptedKeyChain=None, hashKeyChain=None): self.verifier = verifier self.pinCode = pinCode self.errorCode = errorCode self.publicKey = publicKey self.encryptedKeyChain = encryptedKeyChain self.hashKeyChain = hashKeyChain def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 2: if ftype == TType.STRING: self.verifier = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.pinCode = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: self.errorCode = ErrorCode(iprot.readI32()) else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRUCT: self.publicKey = E2EEPublicKey() self.publicKey.read(iprot) else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: self.encryptedKeyChain = iprot.readBinary() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: self.hashKeyChain = iprot.readBinary() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('verifyQrcodeWithE2EE_args') if self.verifier is not None: oprot.writeFieldBegin('verifier', TType.STRING, 2) oprot.writeString(self.verifier) oprot.writeFieldEnd() if self.pinCode is not None: oprot.writeFieldBegin('pinCode', TType.STRING, 3) oprot.writeString(self.pinCode) oprot.writeFieldEnd() if self.errorCode is not None: oprot.writeFieldBegin('errorCode', TType.I32, 4) oprot.writeI32(self.errorCode) oprot.writeFieldEnd() if self.publicKey is not None: oprot.writeFieldBegin('publicKey', TType.STRUCT, 5) self.publicKey.write(oprot) oprot.writeFieldEnd() if self.encryptedKeyChain is not None: oprot.writeFieldBegin('encryptedKeyChain', TType.STRING, 6) oprot.writeBinary(self.encryptedKeyChain) oprot.writeFieldEnd() if self.hashKeyChain is not None: oprot.writeFieldBegin('hashKeyChain', TType.STRING, 7) oprot.writeBinary(self.hashKeyChain) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.verifier)) value = (value * 31) ^ hash(make_hashable(self.pinCode)) value = (value * 31) ^ hash(make_hashable(self.errorCode)) value = (value * 31) ^ hash(make_hashable(self.publicKey)) value = (value * 31) ^ hash(make_hashable(self.encryptedKeyChain)) value = (value * 31) ^ hash(make_hashable(self.hashKeyChain)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class verifyQrcodeWithE2EE_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('verifyQrcodeWithE2EE_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other)
36.065445
204
0.59489
6,475
68,885
6.109498
0.033205
0.014788
0.014864
0.022296
0.837534
0.813064
0.785864
0.752901
0.735332
0.711292
0
0.006333
0.312289
68,885
1,909
205
36.084337
0.828721
0.047311
0
0.813719
1
0
0.037461
0.017713
0
0
0
0
0
1
0.125084
false
0.00538
0.00807
0.03228
0.225958
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
da3dbf47ba08b58c390ee195bdd78801789ad55d
4,886
py
Python
src/proposals/migrations/0031_auto_20170129_2041.py
kaka-lin/pycon.tw
67809a5e43b03273ac8d8f5a1b6b3d3f73474be7
[ "MIT" ]
47
2015-12-19T10:23:11.000Z
2018-06-13T08:07:33.000Z
src/proposals/migrations/0031_auto_20170129_2041.py
kaka-lin/pycon.tw
67809a5e43b03273ac8d8f5a1b6b3d3f73474be7
[ "MIT" ]
473
2018-12-01T13:01:48.000Z
2022-03-30T07:10:42.000Z
src/proposals/migrations/0031_auto_20170129_2041.py
kaka-lin/pycon.tw
67809a5e43b03273ac8d8f5a1b6b3d3f73474be7
[ "MIT" ]
91
2018-07-26T02:38:59.000Z
2022-01-16T02:38:31.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-01-29 12:41 from __future__ import unicode_literals import core.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('proposals', '0030_auto_20170121_2202'), ] operations = [ migrations.AlterField( model_name='talkproposal', name='abstract', field=core.models.EAWTextField(help_text="<p><a href='#' data-toggle='modal' data-target='#proposalFieldExampleModal' data-content='abstract'>Proposal Examples</a></p>The overview of what the talk is about. If the talk assume some domain knowledge please state it here. If your talk is accepted, this will be displayed on both the website and the handbook. Should be one paragraph.", max_length=1000, verbose_name='abstract'), ), migrations.AlterField( model_name='talkproposal', name='detailed_description', field=models.TextField(blank=True, help_text="<p><a href='#' data-toggle='modal' data-target='#proposalFieldExampleModal'data-content='detailed description'>Proposal Examples</a></p>Try not be too lengthy to scare away reviewers or potential audience. A comfortable length is less than 2000 characters (or about 1200 Chinese characters). Since most reviewers may not understand the topic as deep as you do, including related links to the talk topic will help reviewers understand the proposal. Edit using <a href='http://daringfireball.net/projects/markdown/basics' target='_blank'>Markdown</a>.", verbose_name='detailed description'), ), migrations.AlterField( model_name='talkproposal', name='objective', field=core.models.EAWTextField(help_text='<p><a href=\'#\' data-toggle=\'modal\' data-target=\'#proposalFieldExampleModal\' data-content=\'objective\'>Proposal Examples</a></p>Who is the intended audience for your talk? (Be specific, "Python users" is not a good answer). And what will the attendees get out of your talk? When they leave the room, what will they learn that they didn\'t know before? This is NOT made public and for REVIEW ONLY.', max_length=1000, verbose_name='objective'), ), migrations.AlterField( model_name='talkproposal', name='outline', field=models.TextField(blank=True, help_text="<p><a href='#' data-toggle='modal' data-target='#proposalFieldExampleModal' data-content='outline'>Proposal Examples</a></p>How the talk will be arranged. It is highly recommended to attach the estimated time length for each sections in the talk. Talks in favor of 45min should have a fallback plan about how to shrink the content into a 25min one. Edit using <a href='http://daringfireball.net/projects/markdown/basics' target='_blank'>Markdown</a>.This is NOT made public and for REVIEW ONLY.", verbose_name='outline'), ), migrations.AlterField( model_name='tutorialproposal', name='abstract', field=core.models.EAWTextField(help_text="<p><a href='#' data-toggle='modal' data-target='#proposalFieldExampleModal' data-content='abstract'>Proposal Examples</a></p>The overview of what the talk is about. If the talk assume some domain knowledge please state it here. If your talk is accepted, this will be displayed on both the website and the handbook. Should be one paragraph.", max_length=1000, verbose_name='abstract'), ), migrations.AlterField( model_name='tutorialproposal', name='detailed_description', field=models.TextField(blank=True, help_text="<p><a href='#' data-toggle='modal' data-target='#proposalFieldExampleModal'data-content='detailed description'>Proposal Examples</a></p>Try not be too lengthy to scare away reviewers or potential audience. A comfortable length is less than 2000 characters (or about 1200 Chinese characters). Since most reviewers may not understand the topic as deep as you do, including related links to the talk topic will help reviewers understand the proposal. Edit using <a href='http://daringfireball.net/projects/markdown/basics' target='_blank'>Markdown</a>.", verbose_name='detailed description'), ), migrations.AlterField( model_name='tutorialproposal', name='objective', field=core.models.EAWTextField(help_text='<p><a href=\'#\' data-toggle=\'modal\' data-target=\'#proposalFieldExampleModal\' data-content=\'objective\'>Proposal Examples</a></p>Who is the intended audience for your talk? (Be specific, "Python users" is not a good answer). And what will the attendees get out of your talk? When they leave the room, what will they learn that they didn\'t know before? This is NOT made public and for REVIEW ONLY.', max_length=1000, verbose_name='objective'), ), ]
93.961538
647
0.715718
660
4,886
5.240909
0.266667
0.014455
0.050593
0.058687
0.872796
0.872796
0.818734
0.818734
0.818734
0.808615
0
0.017109
0.17458
4,886
51
648
95.803922
0.840565
0.013917
0
0.75
1
0.136364
0.661267
0.102804
0
0
0
0
0
1
0
false
0
0.068182
0
0.136364
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
da6343cc9ba17b1a7462c21204f6f46a5a1c50f0
70,826
py
Python
tests/test_provider_hashicorp_alicloud.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
tests/test_provider_hashicorp_alicloud.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
tests/test_provider_hashicorp_alicloud.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# tests/test_provider_hashicorp_alicloud.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:11:35 UTC) def test_provider_import(): import terrascript.provider.hashicorp.alicloud def test_resource_import(): from terrascript.resource.hashicorp.alicloud import alicloud_actiontrail from terrascript.resource.hashicorp.alicloud import alicloud_actiontrail_trail from terrascript.resource.hashicorp.alicloud import alicloud_adb_account from terrascript.resource.hashicorp.alicloud import alicloud_adb_backup_policy from terrascript.resource.hashicorp.alicloud import alicloud_adb_cluster from terrascript.resource.hashicorp.alicloud import alicloud_adb_connection from terrascript.resource.hashicorp.alicloud import alicloud_adb_db_cluster from terrascript.resource.hashicorp.alicloud import alicloud_alb_acl from terrascript.resource.hashicorp.alicloud import ( alicloud_alb_health_check_template, ) from terrascript.resource.hashicorp.alicloud import alicloud_alb_listener from terrascript.resource.hashicorp.alicloud import alicloud_alb_load_balancer from terrascript.resource.hashicorp.alicloud import alicloud_alb_rule from terrascript.resource.hashicorp.alicloud import alicloud_alb_security_policy from terrascript.resource.hashicorp.alicloud import alicloud_alb_server_group from terrascript.resource.hashicorp.alicloud import alicloud_alidns_domain from terrascript.resource.hashicorp.alicloud import ( alicloud_alidns_domain_attachment, ) from terrascript.resource.hashicorp.alicloud import alicloud_alidns_domain_group from terrascript.resource.hashicorp.alicloud import alicloud_alidns_instance from terrascript.resource.hashicorp.alicloud import alicloud_alidns_record from terrascript.resource.hashicorp.alicloud import alicloud_alikafka_consumer_group from terrascript.resource.hashicorp.alicloud import alicloud_alikafka_instance from terrascript.resource.hashicorp.alicloud import alicloud_alikafka_sasl_acl from terrascript.resource.hashicorp.alicloud import alicloud_alikafka_sasl_user from terrascript.resource.hashicorp.alicloud import alicloud_alikafka_topic from terrascript.resource.hashicorp.alicloud import alicloud_amqp_binding from terrascript.resource.hashicorp.alicloud import alicloud_amqp_exchange from terrascript.resource.hashicorp.alicloud import alicloud_amqp_instance from terrascript.resource.hashicorp.alicloud import alicloud_amqp_queue from terrascript.resource.hashicorp.alicloud import alicloud_amqp_virtual_host from terrascript.resource.hashicorp.alicloud import alicloud_api_gateway_api from terrascript.resource.hashicorp.alicloud import alicloud_api_gateway_app from terrascript.resource.hashicorp.alicloud import ( alicloud_api_gateway_app_attachment, ) from terrascript.resource.hashicorp.alicloud import alicloud_api_gateway_group from terrascript.resource.hashicorp.alicloud import alicloud_api_gateway_vpc_access from terrascript.resource.hashicorp.alicloud import alicloud_arms_alert_contact from terrascript.resource.hashicorp.alicloud import ( alicloud_arms_alert_contact_group, ) from terrascript.resource.hashicorp.alicloud import alicloud_arms_dispatch_rule from terrascript.resource.hashicorp.alicloud import ( alicloud_arms_prometheus_alert_rule, ) from terrascript.resource.hashicorp.alicloud import alicloud_auto_provisioning_group from terrascript.resource.hashicorp.alicloud import alicloud_bastionhost_host from terrascript.resource.hashicorp.alicloud import ( alicloud_bastionhost_host_account, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_bastionhost_host_account_user_attachment, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_bastionhost_host_account_user_group_attachment, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_bastionhost_host_attachment, ) from terrascript.resource.hashicorp.alicloud import alicloud_bastionhost_host_group from terrascript.resource.hashicorp.alicloud import ( alicloud_bastionhost_host_group_account_user_attachment, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_bastionhost_host_group_account_user_group_attachment, ) from terrascript.resource.hashicorp.alicloud import alicloud_bastionhost_instance from terrascript.resource.hashicorp.alicloud import alicloud_bastionhost_user from terrascript.resource.hashicorp.alicloud import ( alicloud_bastionhost_user_attachment, ) from terrascript.resource.hashicorp.alicloud import alicloud_bastionhost_user_group from terrascript.resource.hashicorp.alicloud import ( alicloud_brain_industrial_pid_loop, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_brain_industrial_pid_organization, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_brain_industrial_pid_project, ) from terrascript.resource.hashicorp.alicloud import alicloud_cas_certificate from terrascript.resource.hashicorp.alicloud import alicloud_cassandra_backup_plan from terrascript.resource.hashicorp.alicloud import alicloud_cassandra_cluster from terrascript.resource.hashicorp.alicloud import alicloud_cassandra_data_center from terrascript.resource.hashicorp.alicloud import ( alicloud_cddc_dedicated_host_group, ) from terrascript.resource.hashicorp.alicloud import alicloud_cdn_domain from terrascript.resource.hashicorp.alicloud import alicloud_cdn_domain_config from terrascript.resource.hashicorp.alicloud import alicloud_cdn_domain_new from terrascript.resource.hashicorp.alicloud import ( alicloud_cdn_real_time_log_delivery, ) from terrascript.resource.hashicorp.alicloud import alicloud_cen_bandwidth_limit from terrascript.resource.hashicorp.alicloud import alicloud_cen_bandwidth_package from terrascript.resource.hashicorp.alicloud import ( alicloud_cen_bandwidth_package_attachment, ) from terrascript.resource.hashicorp.alicloud import alicloud_cen_flowlog from terrascript.resource.hashicorp.alicloud import alicloud_cen_instance from terrascript.resource.hashicorp.alicloud import alicloud_cen_instance_attachment from terrascript.resource.hashicorp.alicloud import alicloud_cen_instance_grant from terrascript.resource.hashicorp.alicloud import alicloud_cen_private_zone from terrascript.resource.hashicorp.alicloud import alicloud_cen_route_entry from terrascript.resource.hashicorp.alicloud import alicloud_cen_route_map from terrascript.resource.hashicorp.alicloud import alicloud_cen_route_service from terrascript.resource.hashicorp.alicloud import alicloud_cen_transit_router from terrascript.resource.hashicorp.alicloud import ( alicloud_cen_transit_router_peer_attachment, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_cen_transit_router_route_entry, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_cen_transit_router_route_table, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_cen_transit_router_route_table_association, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_cen_transit_router_route_table_propagation, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_cen_transit_router_vbr_attachment, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_cen_transit_router_vpc_attachment, ) from terrascript.resource.hashicorp.alicloud import alicloud_cen_vbr_health_check from terrascript.resource.hashicorp.alicloud import alicloud_click_house_account from terrascript.resource.hashicorp.alicloud import alicloud_click_house_db_cluster from terrascript.resource.hashicorp.alicloud import alicloud_cloud_connect_network from terrascript.resource.hashicorp.alicloud import ( alicloud_cloud_connect_network_attachment, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_cloud_connect_network_grant, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_cloud_firewall_control_policy, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_cloud_firewall_control_policy_order, ) from terrascript.resource.hashicorp.alicloud import alicloud_cloud_sso_directory from terrascript.resource.hashicorp.alicloud import ( alicloud_cloud_storage_gateway_gateway, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_cloud_storage_gateway_storage_bundle, ) from terrascript.resource.hashicorp.alicloud import alicloud_cms_alarm from terrascript.resource.hashicorp.alicloud import alicloud_cms_alarm_contact from terrascript.resource.hashicorp.alicloud import alicloud_cms_alarm_contact_group from terrascript.resource.hashicorp.alicloud import alicloud_cms_group_metric_rule from terrascript.resource.hashicorp.alicloud import ( alicloud_cms_metric_rule_template, ) from terrascript.resource.hashicorp.alicloud import alicloud_cms_monitor_group from terrascript.resource.hashicorp.alicloud import ( alicloud_cms_monitor_group_instances, ) from terrascript.resource.hashicorp.alicloud import alicloud_cms_site_monitor from terrascript.resource.hashicorp.alicloud import ( alicloud_common_bandwidth_package, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_common_bandwidth_package_attachment, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_config_aggregate_compliance_pack, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_config_aggregate_config_rule, ) from terrascript.resource.hashicorp.alicloud import alicloud_config_aggregator from terrascript.resource.hashicorp.alicloud import alicloud_config_compliance_pack from terrascript.resource.hashicorp.alicloud import ( alicloud_config_configuration_recorder, ) from terrascript.resource.hashicorp.alicloud import alicloud_config_delivery_channel from terrascript.resource.hashicorp.alicloud import alicloud_config_rule from terrascript.resource.hashicorp.alicloud import alicloud_container_cluster from terrascript.resource.hashicorp.alicloud import alicloud_copy_image from terrascript.resource.hashicorp.alicloud import alicloud_cr_ee_instance from terrascript.resource.hashicorp.alicloud import alicloud_cr_ee_namespace from terrascript.resource.hashicorp.alicloud import alicloud_cr_ee_repo from terrascript.resource.hashicorp.alicloud import alicloud_cr_ee_sync_rule from terrascript.resource.hashicorp.alicloud import alicloud_cr_namespace from terrascript.resource.hashicorp.alicloud import alicloud_cr_repo from terrascript.resource.hashicorp.alicloud import alicloud_cs_application from terrascript.resource.hashicorp.alicloud import alicloud_cs_autoscaling_config from terrascript.resource.hashicorp.alicloud import alicloud_cs_edge_kubernetes from terrascript.resource.hashicorp.alicloud import alicloud_cs_kubernetes from terrascript.resource.hashicorp.alicloud import ( alicloud_cs_kubernetes_autoscaler, ) from terrascript.resource.hashicorp.alicloud import alicloud_cs_kubernetes_node_pool from terrascript.resource.hashicorp.alicloud import ( alicloud_cs_kubernetes_permissions, ) from terrascript.resource.hashicorp.alicloud import alicloud_cs_managed_kubernetes from terrascript.resource.hashicorp.alicloud import ( alicloud_cs_serverless_kubernetes, ) from terrascript.resource.hashicorp.alicloud import alicloud_cs_swarm from terrascript.resource.hashicorp.alicloud import alicloud_data_works_folder from terrascript.resource.hashicorp.alicloud import ( alicloud_database_gateway_gateway, ) from terrascript.resource.hashicorp.alicloud import alicloud_datahub_project from terrascript.resource.hashicorp.alicloud import alicloud_datahub_subscription from terrascript.resource.hashicorp.alicloud import alicloud_datahub_topic from terrascript.resource.hashicorp.alicloud import alicloud_db_account from terrascript.resource.hashicorp.alicloud import alicloud_db_account_privilege from terrascript.resource.hashicorp.alicloud import alicloud_db_backup_policy from terrascript.resource.hashicorp.alicloud import alicloud_db_connection from terrascript.resource.hashicorp.alicloud import alicloud_db_database from terrascript.resource.hashicorp.alicloud import alicloud_db_instance from terrascript.resource.hashicorp.alicloud import ( alicloud_db_read_write_splitting_connection, ) from terrascript.resource.hashicorp.alicloud import alicloud_db_readonly_instance from terrascript.resource.hashicorp.alicloud import alicloud_dbfs_instance from terrascript.resource.hashicorp.alicloud import alicloud_dcdn_domain from terrascript.resource.hashicorp.alicloud import alicloud_dcdn_domain_config from terrascript.resource.hashicorp.alicloud import alicloud_ddosbgp_instance from terrascript.resource.hashicorp.alicloud import alicloud_ddoscoo_domain_resource from terrascript.resource.hashicorp.alicloud import alicloud_ddoscoo_instance from terrascript.resource.hashicorp.alicloud import alicloud_ddoscoo_port from terrascript.resource.hashicorp.alicloud import alicloud_ddoscoo_scheduler_rule from terrascript.resource.hashicorp.alicloud import alicloud_dfs_access_group from terrascript.resource.hashicorp.alicloud import alicloud_direct_mail_domain from terrascript.resource.hashicorp.alicloud import ( alicloud_direct_mail_mail_address, ) from terrascript.resource.hashicorp.alicloud import alicloud_direct_mail_receivers from terrascript.resource.hashicorp.alicloud import alicloud_disk from terrascript.resource.hashicorp.alicloud import alicloud_disk_attachment from terrascript.resource.hashicorp.alicloud import alicloud_dms_enterprise_instance from terrascript.resource.hashicorp.alicloud import alicloud_dms_enterprise_user from terrascript.resource.hashicorp.alicloud import alicloud_dns from terrascript.resource.hashicorp.alicloud import alicloud_dns_domain from terrascript.resource.hashicorp.alicloud import alicloud_dns_domain_attachment from terrascript.resource.hashicorp.alicloud import alicloud_dns_group from terrascript.resource.hashicorp.alicloud import alicloud_dns_instance from terrascript.resource.hashicorp.alicloud import alicloud_dns_record from terrascript.resource.hashicorp.alicloud import alicloud_drds_instance from terrascript.resource.hashicorp.alicloud import alicloud_dts_job_monitor_rule from terrascript.resource.hashicorp.alicloud import alicloud_ecd_policy_group from terrascript.resource.hashicorp.alicloud import alicloud_eci_container_group from terrascript.resource.hashicorp.alicloud import alicloud_eci_image_cache from terrascript.resource.hashicorp.alicloud import alicloud_eci_openapi_image_cache from terrascript.resource.hashicorp.alicloud import alicloud_ecp_key_pair from terrascript.resource.hashicorp.alicloud import ( alicloud_ecs_auto_snapshot_policy, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_ecs_auto_snapshot_policy_attachment, ) from terrascript.resource.hashicorp.alicloud import alicloud_ecs_command from terrascript.resource.hashicorp.alicloud import alicloud_ecs_dedicated_host from terrascript.resource.hashicorp.alicloud import alicloud_ecs_disk from terrascript.resource.hashicorp.alicloud import alicloud_ecs_disk_attachment from terrascript.resource.hashicorp.alicloud import alicloud_ecs_hpc_cluster from terrascript.resource.hashicorp.alicloud import alicloud_ecs_key_pair from terrascript.resource.hashicorp.alicloud import alicloud_ecs_key_pair_attachment from terrascript.resource.hashicorp.alicloud import alicloud_ecs_launch_template from terrascript.resource.hashicorp.alicloud import alicloud_ecs_network_interface from terrascript.resource.hashicorp.alicloud import ( alicloud_ecs_network_interface_attachment, ) from terrascript.resource.hashicorp.alicloud import alicloud_ecs_snapshot from terrascript.resource.hashicorp.alicloud import alicloud_edas_application from terrascript.resource.hashicorp.alicloud import ( alicloud_edas_application_deployment, ) from terrascript.resource.hashicorp.alicloud import alicloud_edas_application_scale from terrascript.resource.hashicorp.alicloud import alicloud_edas_cluster from terrascript.resource.hashicorp.alicloud import alicloud_edas_deploy_group from terrascript.resource.hashicorp.alicloud import ( alicloud_edas_instance_cluster_attachment, ) from terrascript.resource.hashicorp.alicloud import alicloud_edas_k8s_application from terrascript.resource.hashicorp.alicloud import alicloud_edas_k8s_cluster from terrascript.resource.hashicorp.alicloud import alicloud_edas_slb_attachment from terrascript.resource.hashicorp.alicloud import alicloud_ehpc_job_template from terrascript.resource.hashicorp.alicloud import alicloud_eip from terrascript.resource.hashicorp.alicloud import alicloud_eip_address from terrascript.resource.hashicorp.alicloud import alicloud_eip_association from terrascript.resource.hashicorp.alicloud import ( alicloud_eipanycast_anycast_eip_address, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_eipanycast_anycast_eip_address_attachment, ) from terrascript.resource.hashicorp.alicloud import alicloud_elasticsearch_instance from terrascript.resource.hashicorp.alicloud import alicloud_emr_cluster from terrascript.resource.hashicorp.alicloud import alicloud_ens_key_pair from terrascript.resource.hashicorp.alicloud import alicloud_ess_alarm from terrascript.resource.hashicorp.alicloud import alicloud_ess_attachment from terrascript.resource.hashicorp.alicloud import alicloud_ess_lifecycle_hook from terrascript.resource.hashicorp.alicloud import alicloud_ess_notification from terrascript.resource.hashicorp.alicloud import ( alicloud_ess_scaling_configuration, ) from terrascript.resource.hashicorp.alicloud import alicloud_ess_scaling_group from terrascript.resource.hashicorp.alicloud import alicloud_ess_scaling_rule from terrascript.resource.hashicorp.alicloud import ( alicloud_ess_scalinggroup_vserver_groups, ) from terrascript.resource.hashicorp.alicloud import alicloud_ess_schedule from terrascript.resource.hashicorp.alicloud import alicloud_ess_scheduled_task from terrascript.resource.hashicorp.alicloud import alicloud_event_bridge_event_bus from terrascript.resource.hashicorp.alicloud import ( alicloud_event_bridge_event_source, ) from terrascript.resource.hashicorp.alicloud import alicloud_event_bridge_rule from terrascript.resource.hashicorp.alicloud import alicloud_event_bridge_slr from terrascript.resource.hashicorp.alicloud import ( alicloud_express_connect_physical_connection, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_express_connect_virtual_border_router, ) from terrascript.resource.hashicorp.alicloud import alicloud_fc_alias from terrascript.resource.hashicorp.alicloud import alicloud_fc_custom_domain from terrascript.resource.hashicorp.alicloud import alicloud_fc_function from terrascript.resource.hashicorp.alicloud import ( alicloud_fc_function_async_invoke_config, ) from terrascript.resource.hashicorp.alicloud import alicloud_fc_service from terrascript.resource.hashicorp.alicloud import alicloud_fc_trigger from terrascript.resource.hashicorp.alicloud import alicloud_fnf_flow from terrascript.resource.hashicorp.alicloud import alicloud_fnf_schedule from terrascript.resource.hashicorp.alicloud import alicloud_forward_entry from terrascript.resource.hashicorp.alicloud import alicloud_ga_accelerator from terrascript.resource.hashicorp.alicloud import alicloud_ga_bandwidth_package from terrascript.resource.hashicorp.alicloud import ( alicloud_ga_bandwidth_package_attachment, ) from terrascript.resource.hashicorp.alicloud import alicloud_ga_endpoint_group from terrascript.resource.hashicorp.alicloud import alicloud_ga_forwarding_rule from terrascript.resource.hashicorp.alicloud import alicloud_ga_ip_set from terrascript.resource.hashicorp.alicloud import alicloud_ga_listener from terrascript.resource.hashicorp.alicloud import alicloud_gpdb_connection from terrascript.resource.hashicorp.alicloud import alicloud_gpdb_elastic_instance from terrascript.resource.hashicorp.alicloud import alicloud_gpdb_instance from terrascript.resource.hashicorp.alicloud import ( alicloud_graph_database_db_instance, ) from terrascript.resource.hashicorp.alicloud import alicloud_havip from terrascript.resource.hashicorp.alicloud import alicloud_havip_attachment from terrascript.resource.hashicorp.alicloud import alicloud_hbase_instance from terrascript.resource.hashicorp.alicloud import alicloud_hbr_ecs_backup_client from terrascript.resource.hashicorp.alicloud import alicloud_hbr_ecs_backup_plan from terrascript.resource.hashicorp.alicloud import alicloud_hbr_nas_backup_plan from terrascript.resource.hashicorp.alicloud import alicloud_hbr_oss_backup_plan from terrascript.resource.hashicorp.alicloud import alicloud_hbr_restore_job from terrascript.resource.hashicorp.alicloud import alicloud_hbr_vault from terrascript.resource.hashicorp.alicloud import alicloud_image from terrascript.resource.hashicorp.alicloud import alicloud_image_copy from terrascript.resource.hashicorp.alicloud import alicloud_image_export from terrascript.resource.hashicorp.alicloud import alicloud_image_import from terrascript.resource.hashicorp.alicloud import alicloud_image_share_permission from terrascript.resource.hashicorp.alicloud import alicloud_imm_project from terrascript.resource.hashicorp.alicloud import alicloud_instance from terrascript.resource.hashicorp.alicloud import alicloud_iot_device_group from terrascript.resource.hashicorp.alicloud import alicloud_key_pair from terrascript.resource.hashicorp.alicloud import alicloud_key_pair_attachment from terrascript.resource.hashicorp.alicloud import alicloud_kms_alias from terrascript.resource.hashicorp.alicloud import alicloud_kms_ciphertext from terrascript.resource.hashicorp.alicloud import alicloud_kms_key from terrascript.resource.hashicorp.alicloud import alicloud_kms_key_version from terrascript.resource.hashicorp.alicloud import alicloud_kms_secret from terrascript.resource.hashicorp.alicloud import alicloud_kvstore_account from terrascript.resource.hashicorp.alicloud import ( alicloud_kvstore_audit_log_config, ) from terrascript.resource.hashicorp.alicloud import alicloud_kvstore_backup_policy from terrascript.resource.hashicorp.alicloud import alicloud_kvstore_connection from terrascript.resource.hashicorp.alicloud import alicloud_kvstore_instance from terrascript.resource.hashicorp.alicloud import alicloud_launch_template from terrascript.resource.hashicorp.alicloud import alicloud_lindorm_instance from terrascript.resource.hashicorp.alicloud import alicloud_log_alert from terrascript.resource.hashicorp.alicloud import alicloud_log_audit from terrascript.resource.hashicorp.alicloud import alicloud_log_dashboard from terrascript.resource.hashicorp.alicloud import alicloud_log_etl from terrascript.resource.hashicorp.alicloud import alicloud_log_machine_group from terrascript.resource.hashicorp.alicloud import alicloud_log_oss_shipper from terrascript.resource.hashicorp.alicloud import alicloud_log_project from terrascript.resource.hashicorp.alicloud import alicloud_log_store from terrascript.resource.hashicorp.alicloud import alicloud_log_store_index from terrascript.resource.hashicorp.alicloud import alicloud_logtail_attachment from terrascript.resource.hashicorp.alicloud import alicloud_logtail_config from terrascript.resource.hashicorp.alicloud import alicloud_market_order from terrascript.resource.hashicorp.alicloud import alicloud_maxcompute_project from terrascript.resource.hashicorp.alicloud import alicloud_mns_queue from terrascript.resource.hashicorp.alicloud import alicloud_mns_topic from terrascript.resource.hashicorp.alicloud import alicloud_mns_topic_subscription from terrascript.resource.hashicorp.alicloud import alicloud_mongodb_instance from terrascript.resource.hashicorp.alicloud import ( alicloud_mongodb_sharding_instance, ) from terrascript.resource.hashicorp.alicloud import alicloud_msc_sub_contact from terrascript.resource.hashicorp.alicloud import alicloud_msc_sub_subscription from terrascript.resource.hashicorp.alicloud import alicloud_mse_cluster from terrascript.resource.hashicorp.alicloud import alicloud_nas_access_group from terrascript.resource.hashicorp.alicloud import alicloud_nas_access_rule from terrascript.resource.hashicorp.alicloud import alicloud_nas_file_system from terrascript.resource.hashicorp.alicloud import alicloud_nas_mount_target from terrascript.resource.hashicorp.alicloud import alicloud_nat_gateway from terrascript.resource.hashicorp.alicloud import alicloud_network_acl from terrascript.resource.hashicorp.alicloud import alicloud_network_acl_attachment from terrascript.resource.hashicorp.alicloud import alicloud_network_acl_entries from terrascript.resource.hashicorp.alicloud import alicloud_network_interface from terrascript.resource.hashicorp.alicloud import ( alicloud_network_interface_attachment, ) from terrascript.resource.hashicorp.alicloud import alicloud_ons_group from terrascript.resource.hashicorp.alicloud import alicloud_ons_instance from terrascript.resource.hashicorp.alicloud import alicloud_ons_topic from terrascript.resource.hashicorp.alicloud import alicloud_oos_execution from terrascript.resource.hashicorp.alicloud import alicloud_oos_template from terrascript.resource.hashicorp.alicloud import alicloud_open_search_app_group from terrascript.resource.hashicorp.alicloud import alicloud_oss_bucket from terrascript.resource.hashicorp.alicloud import alicloud_oss_bucket_object from terrascript.resource.hashicorp.alicloud import alicloud_ots_instance from terrascript.resource.hashicorp.alicloud import alicloud_ots_instance_attachment from terrascript.resource.hashicorp.alicloud import alicloud_ots_table from terrascript.resource.hashicorp.alicloud import alicloud_polardb_account from terrascript.resource.hashicorp.alicloud import ( alicloud_polardb_account_privilege, ) from terrascript.resource.hashicorp.alicloud import alicloud_polardb_backup_policy from terrascript.resource.hashicorp.alicloud import alicloud_polardb_cluster from terrascript.resource.hashicorp.alicloud import alicloud_polardb_database from terrascript.resource.hashicorp.alicloud import alicloud_polardb_endpoint from terrascript.resource.hashicorp.alicloud import ( alicloud_polardb_endpoint_address, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_privatelink_vpc_endpoint, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_privatelink_vpc_endpoint_connection, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_privatelink_vpc_endpoint_service, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_privatelink_vpc_endpoint_service_resource, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_privatelink_vpc_endpoint_service_user, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_privatelink_vpc_endpoint_zone, ) from terrascript.resource.hashicorp.alicloud import alicloud_pvtz_zone from terrascript.resource.hashicorp.alicloud import alicloud_pvtz_zone_attachment from terrascript.resource.hashicorp.alicloud import alicloud_pvtz_zone_record from terrascript.resource.hashicorp.alicloud import alicloud_quick_bi_user from terrascript.resource.hashicorp.alicloud import alicloud_quotas_application_info from terrascript.resource.hashicorp.alicloud import alicloud_quotas_quota_alarm from terrascript.resource.hashicorp.alicloud import ( alicloud_quotas_quota_application, ) from terrascript.resource.hashicorp.alicloud import alicloud_ram_access_key from terrascript.resource.hashicorp.alicloud import alicloud_ram_account_alias from terrascript.resource.hashicorp.alicloud import ( alicloud_ram_account_password_policy, ) from terrascript.resource.hashicorp.alicloud import alicloud_ram_alias from terrascript.resource.hashicorp.alicloud import alicloud_ram_group from terrascript.resource.hashicorp.alicloud import alicloud_ram_group_membership from terrascript.resource.hashicorp.alicloud import ( alicloud_ram_group_policy_attachment, ) from terrascript.resource.hashicorp.alicloud import alicloud_ram_login_profile from terrascript.resource.hashicorp.alicloud import alicloud_ram_policy from terrascript.resource.hashicorp.alicloud import alicloud_ram_role from terrascript.resource.hashicorp.alicloud import alicloud_ram_role_attachment from terrascript.resource.hashicorp.alicloud import ( alicloud_ram_role_policy_attachment, ) from terrascript.resource.hashicorp.alicloud import alicloud_ram_saml_provider from terrascript.resource.hashicorp.alicloud import alicloud_ram_user from terrascript.resource.hashicorp.alicloud import ( alicloud_ram_user_policy_attachment, ) from terrascript.resource.hashicorp.alicloud import alicloud_rds_account from terrascript.resource.hashicorp.alicloud import alicloud_rds_parameter_group from terrascript.resource.hashicorp.alicloud import alicloud_reserved_instance from terrascript.resource.hashicorp.alicloud import ( alicloud_resource_manager_account, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_resource_manager_control_policy, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_resource_manager_control_policy_attachment, ) from terrascript.resource.hashicorp.alicloud import alicloud_resource_manager_folder from terrascript.resource.hashicorp.alicloud import ( alicloud_resource_manager_handshake, ) from terrascript.resource.hashicorp.alicloud import alicloud_resource_manager_policy from terrascript.resource.hashicorp.alicloud import ( alicloud_resource_manager_policy_attachment, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_resource_manager_policy_version, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_resource_manager_resource_directory, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_resource_manager_resource_group, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_resource_manager_resource_share, ) from terrascript.resource.hashicorp.alicloud import alicloud_resource_manager_role from terrascript.resource.hashicorp.alicloud import ( alicloud_resource_manager_shared_resource, ) from terrascript.resource.hashicorp.alicloud import ( alicloud_resource_manager_shared_target, ) from terrascript.resource.hashicorp.alicloud import alicloud_ros_change_set from terrascript.resource.hashicorp.alicloud import alicloud_ros_stack from terrascript.resource.hashicorp.alicloud import alicloud_ros_stack_group from terrascript.resource.hashicorp.alicloud import alicloud_ros_template from terrascript.resource.hashicorp.alicloud import alicloud_route_entry from terrascript.resource.hashicorp.alicloud import alicloud_route_table from terrascript.resource.hashicorp.alicloud import alicloud_route_table_attachment from terrascript.resource.hashicorp.alicloud import alicloud_router_interface from terrascript.resource.hashicorp.alicloud import ( alicloud_router_interface_connection, ) from terrascript.resource.hashicorp.alicloud import alicloud_sae_application from terrascript.resource.hashicorp.alicloud import alicloud_sae_config_map from terrascript.resource.hashicorp.alicloud import alicloud_sae_namespace from terrascript.resource.hashicorp.alicloud import alicloud_sag_acl from terrascript.resource.hashicorp.alicloud import alicloud_sag_acl_rule from terrascript.resource.hashicorp.alicloud import alicloud_sag_client_user from terrascript.resource.hashicorp.alicloud import alicloud_sag_dnat_entry from terrascript.resource.hashicorp.alicloud import alicloud_sag_qos from terrascript.resource.hashicorp.alicloud import alicloud_sag_qos_car from terrascript.resource.hashicorp.alicloud import alicloud_sag_qos_policy from terrascript.resource.hashicorp.alicloud import alicloud_sag_snat_entry from terrascript.resource.hashicorp.alicloud import alicloud_scdn_domain from terrascript.resource.hashicorp.alicloud import alicloud_scdn_domain_config from terrascript.resource.hashicorp.alicloud import alicloud_sddp_config from terrascript.resource.hashicorp.alicloud import alicloud_sddp_instance from terrascript.resource.hashicorp.alicloud import alicloud_sddp_rule from terrascript.resource.hashicorp.alicloud import alicloud_security_center_group from terrascript.resource.hashicorp.alicloud import alicloud_security_group from terrascript.resource.hashicorp.alicloud import alicloud_security_group_rule from terrascript.resource.hashicorp.alicloud import ( alicloud_simple_application_server_instance, ) from terrascript.resource.hashicorp.alicloud import alicloud_slb from terrascript.resource.hashicorp.alicloud import alicloud_slb_acl from terrascript.resource.hashicorp.alicloud import alicloud_slb_attachment from terrascript.resource.hashicorp.alicloud import alicloud_slb_backend_server from terrascript.resource.hashicorp.alicloud import alicloud_slb_ca_certificate from terrascript.resource.hashicorp.alicloud import alicloud_slb_domain_extension from terrascript.resource.hashicorp.alicloud import alicloud_slb_listener from terrascript.resource.hashicorp.alicloud import alicloud_slb_load_balancer from terrascript.resource.hashicorp.alicloud import ( alicloud_slb_master_slave_server_group, ) from terrascript.resource.hashicorp.alicloud import alicloud_slb_rule from terrascript.resource.hashicorp.alicloud import alicloud_slb_server_certificate from terrascript.resource.hashicorp.alicloud import alicloud_slb_server_group from terrascript.resource.hashicorp.alicloud import alicloud_slb_tls_cipher_policy from terrascript.resource.hashicorp.alicloud import alicloud_snapshot from terrascript.resource.hashicorp.alicloud import alicloud_snapshot_policy from terrascript.resource.hashicorp.alicloud import alicloud_snat_entry from terrascript.resource.hashicorp.alicloud import ( alicloud_ssl_certificates_service_certificate, ) from terrascript.resource.hashicorp.alicloud import alicloud_ssl_vpn_client_cert from terrascript.resource.hashicorp.alicloud import alicloud_ssl_vpn_server from terrascript.resource.hashicorp.alicloud import alicloud_subnet from terrascript.resource.hashicorp.alicloud import alicloud_tsdb_instance from terrascript.resource.hashicorp.alicloud import ( alicloud_video_surveillance_system_group, ) from terrascript.resource.hashicorp.alicloud import alicloud_vod_domain from terrascript.resource.hashicorp.alicloud import alicloud_vpc from terrascript.resource.hashicorp.alicloud import alicloud_vpc_dhcp_options_set from terrascript.resource.hashicorp.alicloud import alicloud_vpc_flow_log from terrascript.resource.hashicorp.alicloud import alicloud_vpc_nat_ip from terrascript.resource.hashicorp.alicloud import alicloud_vpc_nat_ip_cidr from terrascript.resource.hashicorp.alicloud import alicloud_vpn_connection from terrascript.resource.hashicorp.alicloud import alicloud_vpn_customer_gateway from terrascript.resource.hashicorp.alicloud import alicloud_vpn_gateway from terrascript.resource.hashicorp.alicloud import alicloud_vpn_route_entry from terrascript.resource.hashicorp.alicloud import alicloud_vswitch from terrascript.resource.hashicorp.alicloud import alicloud_waf_certificate from terrascript.resource.hashicorp.alicloud import alicloud_waf_domain from terrascript.resource.hashicorp.alicloud import alicloud_waf_instance from terrascript.resource.hashicorp.alicloud import ( alicloud_yundun_bastionhost_instance, ) from terrascript.resource.hashicorp.alicloud import alicloud_yundun_dbaudit_instance def test_datasource_import(): from terrascript.data.hashicorp.alicloud import alicloud_account from terrascript.data.hashicorp.alicloud import alicloud_ack_service from terrascript.data.hashicorp.alicloud import alicloud_actiontrail_trails from terrascript.data.hashicorp.alicloud import alicloud_actiontrails from terrascript.data.hashicorp.alicloud import alicloud_adb_clusters from terrascript.data.hashicorp.alicloud import alicloud_adb_db_clusters from terrascript.data.hashicorp.alicloud import alicloud_adb_zones from terrascript.data.hashicorp.alicloud import alicloud_alb_acls from terrascript.data.hashicorp.alicloud import alicloud_alb_health_check_templates from terrascript.data.hashicorp.alicloud import alicloud_alb_listeners from terrascript.data.hashicorp.alicloud import alicloud_alb_load_balancers from terrascript.data.hashicorp.alicloud import alicloud_alb_rules from terrascript.data.hashicorp.alicloud import alicloud_alb_security_policies from terrascript.data.hashicorp.alicloud import alicloud_alb_server_groups from terrascript.data.hashicorp.alicloud import alicloud_alb_zones from terrascript.data.hashicorp.alicloud import alicloud_alidns_domain_groups from terrascript.data.hashicorp.alicloud import alicloud_alidns_domains from terrascript.data.hashicorp.alicloud import alicloud_alidns_instances from terrascript.data.hashicorp.alicloud import alicloud_alidns_records from terrascript.data.hashicorp.alicloud import alicloud_alikafka_consumer_groups from terrascript.data.hashicorp.alicloud import alicloud_alikafka_instances from terrascript.data.hashicorp.alicloud import alicloud_alikafka_sasl_acls from terrascript.data.hashicorp.alicloud import alicloud_alikafka_sasl_users from terrascript.data.hashicorp.alicloud import alicloud_alikafka_topics from terrascript.data.hashicorp.alicloud import alicloud_amqp_bindings from terrascript.data.hashicorp.alicloud import alicloud_amqp_exchanges from terrascript.data.hashicorp.alicloud import alicloud_amqp_instances from terrascript.data.hashicorp.alicloud import alicloud_amqp_queues from terrascript.data.hashicorp.alicloud import alicloud_amqp_virtual_hosts from terrascript.data.hashicorp.alicloud import alicloud_api_gateway_apis from terrascript.data.hashicorp.alicloud import alicloud_api_gateway_apps from terrascript.data.hashicorp.alicloud import alicloud_api_gateway_groups from terrascript.data.hashicorp.alicloud import alicloud_api_gateway_service from terrascript.data.hashicorp.alicloud import alicloud_arms_alert_contact_groups from terrascript.data.hashicorp.alicloud import alicloud_arms_alert_contacts from terrascript.data.hashicorp.alicloud import alicloud_arms_dispatch_rules from terrascript.data.hashicorp.alicloud import alicloud_arms_prometheus_alert_rules from terrascript.data.hashicorp.alicloud import alicloud_bastionhost_host_accounts from terrascript.data.hashicorp.alicloud import alicloud_bastionhost_host_groups from terrascript.data.hashicorp.alicloud import alicloud_bastionhost_hosts from terrascript.data.hashicorp.alicloud import alicloud_bastionhost_instances from terrascript.data.hashicorp.alicloud import alicloud_bastionhost_user_groups from terrascript.data.hashicorp.alicloud import alicloud_bastionhost_users from terrascript.data.hashicorp.alicloud import alicloud_brain_industrial_pid_loops from terrascript.data.hashicorp.alicloud import ( alicloud_brain_industrial_pid_organizations, ) from terrascript.data.hashicorp.alicloud import ( alicloud_brain_industrial_pid_projects, ) from terrascript.data.hashicorp.alicloud import alicloud_brain_industrial_service from terrascript.data.hashicorp.alicloud import alicloud_caller_identity from terrascript.data.hashicorp.alicloud import alicloud_cas_certificates from terrascript.data.hashicorp.alicloud import alicloud_cassandra_backup_plans from terrascript.data.hashicorp.alicloud import alicloud_cassandra_clusters from terrascript.data.hashicorp.alicloud import alicloud_cassandra_data_centers from terrascript.data.hashicorp.alicloud import alicloud_cassandra_zones from terrascript.data.hashicorp.alicloud import alicloud_cddc_dedicated_host_groups from terrascript.data.hashicorp.alicloud import ( alicloud_cdn_real_time_log_deliveries, ) from terrascript.data.hashicorp.alicloud import alicloud_cdn_service from terrascript.data.hashicorp.alicloud import alicloud_cen_bandwidth_limits from terrascript.data.hashicorp.alicloud import alicloud_cen_bandwidth_packages from terrascript.data.hashicorp.alicloud import alicloud_cen_flowlogs from terrascript.data.hashicorp.alicloud import alicloud_cen_instance_attachments from terrascript.data.hashicorp.alicloud import alicloud_cen_instances from terrascript.data.hashicorp.alicloud import alicloud_cen_private_zones from terrascript.data.hashicorp.alicloud import alicloud_cen_region_route_entries from terrascript.data.hashicorp.alicloud import alicloud_cen_route_entries from terrascript.data.hashicorp.alicloud import alicloud_cen_route_maps from terrascript.data.hashicorp.alicloud import alicloud_cen_route_services from terrascript.data.hashicorp.alicloud import ( alicloud_cen_transit_router_peer_attachments, ) from terrascript.data.hashicorp.alicloud import ( alicloud_cen_transit_router_route_entries, ) from terrascript.data.hashicorp.alicloud import ( alicloud_cen_transit_router_route_table_associations, ) from terrascript.data.hashicorp.alicloud import ( alicloud_cen_transit_router_route_table_propagations, ) from terrascript.data.hashicorp.alicloud import ( alicloud_cen_transit_router_route_tables, ) from terrascript.data.hashicorp.alicloud import ( alicloud_cen_transit_router_vbr_attachments, ) from terrascript.data.hashicorp.alicloud import ( alicloud_cen_transit_router_vpc_attachments, ) from terrascript.data.hashicorp.alicloud import alicloud_cen_transit_routers from terrascript.data.hashicorp.alicloud import alicloud_cen_vbr_health_checks from terrascript.data.hashicorp.alicloud import alicloud_click_house_accounts from terrascript.data.hashicorp.alicloud import alicloud_click_house_db_clusters from terrascript.data.hashicorp.alicloud import alicloud_cloud_connect_networks from terrascript.data.hashicorp.alicloud import ( alicloud_cloud_firewall_control_policies, ) from terrascript.data.hashicorp.alicloud import alicloud_cloud_sso_directories from terrascript.data.hashicorp.alicloud import ( alicloud_cloud_storage_gateway_gateways, ) from terrascript.data.hashicorp.alicloud import ( alicloud_cloud_storage_gateway_service, ) from terrascript.data.hashicorp.alicloud import ( alicloud_cloud_storage_gateway_storage_bundles, ) from terrascript.data.hashicorp.alicloud import alicloud_cms_alarm_contact_groups from terrascript.data.hashicorp.alicloud import alicloud_cms_alarm_contacts from terrascript.data.hashicorp.alicloud import alicloud_cms_group_metric_rules from terrascript.data.hashicorp.alicloud import alicloud_cms_metric_rule_templates from terrascript.data.hashicorp.alicloud import alicloud_cms_monitor_group_instances from terrascript.data.hashicorp.alicloud import ( alicloud_cms_monitor_group_instanceses, ) from terrascript.data.hashicorp.alicloud import alicloud_cms_monitor_groups from terrascript.data.hashicorp.alicloud import alicloud_cms_service from terrascript.data.hashicorp.alicloud import alicloud_common_bandwidth_packages from terrascript.data.hashicorp.alicloud import ( alicloud_config_aggregate_compliance_packs, ) from terrascript.data.hashicorp.alicloud import ( alicloud_config_aggregate_config_rules, ) from terrascript.data.hashicorp.alicloud import alicloud_config_aggregators from terrascript.data.hashicorp.alicloud import alicloud_config_compliance_packs from terrascript.data.hashicorp.alicloud import ( alicloud_config_configuration_recorders, ) from terrascript.data.hashicorp.alicloud import alicloud_config_delivery_channels from terrascript.data.hashicorp.alicloud import alicloud_config_rules from terrascript.data.hashicorp.alicloud import alicloud_cr_ee_instances from terrascript.data.hashicorp.alicloud import alicloud_cr_ee_namespaces from terrascript.data.hashicorp.alicloud import alicloud_cr_ee_repos from terrascript.data.hashicorp.alicloud import alicloud_cr_ee_sync_rules from terrascript.data.hashicorp.alicloud import alicloud_cr_namespaces from terrascript.data.hashicorp.alicloud import alicloud_cr_repos from terrascript.data.hashicorp.alicloud import alicloud_cr_service from terrascript.data.hashicorp.alicloud import alicloud_cs_edge_kubernetes_clusters from terrascript.data.hashicorp.alicloud import alicloud_cs_kubernetes_clusters from terrascript.data.hashicorp.alicloud import alicloud_cs_kubernetes_permissions from terrascript.data.hashicorp.alicloud import ( alicloud_cs_managed_kubernetes_clusters, ) from terrascript.data.hashicorp.alicloud import ( alicloud_cs_serverless_kubernetes_clusters, ) from terrascript.data.hashicorp.alicloud import alicloud_data_works_folders from terrascript.data.hashicorp.alicloud import alicloud_database_gateway_gateways from terrascript.data.hashicorp.alicloud import alicloud_datahub_service from terrascript.data.hashicorp.alicloud import alicloud_dataworks_service from terrascript.data.hashicorp.alicloud import alicloud_db_instance_classes from terrascript.data.hashicorp.alicloud import alicloud_db_instance_engines from terrascript.data.hashicorp.alicloud import alicloud_db_instances from terrascript.data.hashicorp.alicloud import alicloud_db_zones from terrascript.data.hashicorp.alicloud import alicloud_dbfs_instances from terrascript.data.hashicorp.alicloud import alicloud_dcdn_domains from terrascript.data.hashicorp.alicloud import alicloud_dcdn_service from terrascript.data.hashicorp.alicloud import alicloud_ddosbgp_instances from terrascript.data.hashicorp.alicloud import alicloud_ddoscoo_domain_resources from terrascript.data.hashicorp.alicloud import alicloud_ddoscoo_instances from terrascript.data.hashicorp.alicloud import alicloud_ddoscoo_ports from terrascript.data.hashicorp.alicloud import alicloud_dfs_access_groups from terrascript.data.hashicorp.alicloud import alicloud_direct_mail_domains from terrascript.data.hashicorp.alicloud import alicloud_direct_mail_mail_addresses from terrascript.data.hashicorp.alicloud import alicloud_direct_mail_receiverses from terrascript.data.hashicorp.alicloud import alicloud_disks from terrascript.data.hashicorp.alicloud import alicloud_dms_enterprise_instances from terrascript.data.hashicorp.alicloud import alicloud_dms_enterprise_users from terrascript.data.hashicorp.alicloud import alicloud_dns_domain_groups from terrascript.data.hashicorp.alicloud import alicloud_dns_domain_records from terrascript.data.hashicorp.alicloud import alicloud_dns_domain_txt_guid from terrascript.data.hashicorp.alicloud import alicloud_dns_domains from terrascript.data.hashicorp.alicloud import alicloud_dns_groups from terrascript.data.hashicorp.alicloud import alicloud_dns_instances from terrascript.data.hashicorp.alicloud import alicloud_dns_records from terrascript.data.hashicorp.alicloud import alicloud_dns_resolution_lines from terrascript.data.hashicorp.alicloud import alicloud_drds_instances from terrascript.data.hashicorp.alicloud import alicloud_ecd_policy_groups from terrascript.data.hashicorp.alicloud import alicloud_eci_container_groups from terrascript.data.hashicorp.alicloud import alicloud_eci_image_caches from terrascript.data.hashicorp.alicloud import alicloud_ecp_key_pairs from terrascript.data.hashicorp.alicloud import alicloud_ecs_auto_snapshot_policies from terrascript.data.hashicorp.alicloud import alicloud_ecs_commands from terrascript.data.hashicorp.alicloud import alicloud_ecs_dedicated_hosts from terrascript.data.hashicorp.alicloud import alicloud_ecs_disks from terrascript.data.hashicorp.alicloud import alicloud_ecs_hpc_clusters from terrascript.data.hashicorp.alicloud import alicloud_ecs_key_pairs from terrascript.data.hashicorp.alicloud import alicloud_ecs_launch_templates from terrascript.data.hashicorp.alicloud import alicloud_ecs_network_interfaces from terrascript.data.hashicorp.alicloud import alicloud_ecs_snapshots from terrascript.data.hashicorp.alicloud import alicloud_edas_applications from terrascript.data.hashicorp.alicloud import alicloud_edas_clusters from terrascript.data.hashicorp.alicloud import alicloud_edas_deploy_groups from terrascript.data.hashicorp.alicloud import alicloud_edas_service from terrascript.data.hashicorp.alicloud import alicloud_ehpc_job_templates from terrascript.data.hashicorp.alicloud import alicloud_eip_addresses from terrascript.data.hashicorp.alicloud import ( alicloud_eipanycast_anycast_eip_addresses, ) from terrascript.data.hashicorp.alicloud import alicloud_eips from terrascript.data.hashicorp.alicloud import alicloud_elasticsearch_instances from terrascript.data.hashicorp.alicloud import alicloud_elasticsearch_zones from terrascript.data.hashicorp.alicloud import alicloud_emr_disk_types from terrascript.data.hashicorp.alicloud import alicloud_emr_instance_types from terrascript.data.hashicorp.alicloud import alicloud_emr_main_versions from terrascript.data.hashicorp.alicloud import ( alicloud_enhanced_nat_available_zones, ) from terrascript.data.hashicorp.alicloud import alicloud_ens_key_pairs from terrascript.data.hashicorp.alicloud import alicloud_ess_alarms from terrascript.data.hashicorp.alicloud import alicloud_ess_lifecycle_hooks from terrascript.data.hashicorp.alicloud import alicloud_ess_notifications from terrascript.data.hashicorp.alicloud import alicloud_ess_scaling_configurations from terrascript.data.hashicorp.alicloud import alicloud_ess_scaling_groups from terrascript.data.hashicorp.alicloud import alicloud_ess_scaling_rules from terrascript.data.hashicorp.alicloud import alicloud_ess_scheduled_tasks from terrascript.data.hashicorp.alicloud import alicloud_event_bridge_event_buses from terrascript.data.hashicorp.alicloud import alicloud_event_bridge_event_sources from terrascript.data.hashicorp.alicloud import alicloud_event_bridge_rules from terrascript.data.hashicorp.alicloud import alicloud_event_bridge_service from terrascript.data.hashicorp.alicloud import ( alicloud_express_connect_access_points, ) from terrascript.data.hashicorp.alicloud import ( alicloud_express_connect_physical_connection_service, ) from terrascript.data.hashicorp.alicloud import ( alicloud_express_connect_physical_connections, ) from terrascript.data.hashicorp.alicloud import ( alicloud_express_connect_virtual_border_routers, ) from terrascript.data.hashicorp.alicloud import alicloud_fc_custom_domains from terrascript.data.hashicorp.alicloud import alicloud_fc_functions from terrascript.data.hashicorp.alicloud import alicloud_fc_service from terrascript.data.hashicorp.alicloud import alicloud_fc_services from terrascript.data.hashicorp.alicloud import alicloud_fc_triggers from terrascript.data.hashicorp.alicloud import alicloud_fc_zones from terrascript.data.hashicorp.alicloud import alicloud_file_crc64_checksum from terrascript.data.hashicorp.alicloud import alicloud_fnf_flows from terrascript.data.hashicorp.alicloud import alicloud_fnf_schedules from terrascript.data.hashicorp.alicloud import alicloud_fnf_service from terrascript.data.hashicorp.alicloud import alicloud_forward_entries from terrascript.data.hashicorp.alicloud import alicloud_ga_accelerators from terrascript.data.hashicorp.alicloud import alicloud_ga_bandwidth_packages from terrascript.data.hashicorp.alicloud import alicloud_ga_endpoint_groups from terrascript.data.hashicorp.alicloud import alicloud_ga_forwarding_rules from terrascript.data.hashicorp.alicloud import alicloud_ga_ip_sets from terrascript.data.hashicorp.alicloud import alicloud_ga_listeners from terrascript.data.hashicorp.alicloud import alicloud_gpdb_instances from terrascript.data.hashicorp.alicloud import alicloud_gpdb_zones from terrascript.data.hashicorp.alicloud import alicloud_graph_database_db_instances from terrascript.data.hashicorp.alicloud import alicloud_havips from terrascript.data.hashicorp.alicloud import alicloud_hbase_instance_types from terrascript.data.hashicorp.alicloud import alicloud_hbase_instances from terrascript.data.hashicorp.alicloud import alicloud_hbase_zones from terrascript.data.hashicorp.alicloud import alicloud_hbr_ecs_backup_clients from terrascript.data.hashicorp.alicloud import alicloud_hbr_ecs_backup_plans from terrascript.data.hashicorp.alicloud import alicloud_hbr_nas_backup_plans from terrascript.data.hashicorp.alicloud import alicloud_hbr_oss_backup_plans from terrascript.data.hashicorp.alicloud import alicloud_hbr_restore_jobs from terrascript.data.hashicorp.alicloud import alicloud_hbr_snapshots from terrascript.data.hashicorp.alicloud import alicloud_hbr_vaults from terrascript.data.hashicorp.alicloud import alicloud_images from terrascript.data.hashicorp.alicloud import alicloud_imm_projects from terrascript.data.hashicorp.alicloud import alicloud_instance_type_families from terrascript.data.hashicorp.alicloud import alicloud_instance_types from terrascript.data.hashicorp.alicloud import alicloud_instances from terrascript.data.hashicorp.alicloud import alicloud_iot_device_groups from terrascript.data.hashicorp.alicloud import alicloud_iot_service from terrascript.data.hashicorp.alicloud import alicloud_key_pairs from terrascript.data.hashicorp.alicloud import alicloud_kms_aliases from terrascript.data.hashicorp.alicloud import alicloud_kms_ciphertext from terrascript.data.hashicorp.alicloud import alicloud_kms_key_versions from terrascript.data.hashicorp.alicloud import alicloud_kms_keys from terrascript.data.hashicorp.alicloud import alicloud_kms_plaintext from terrascript.data.hashicorp.alicloud import alicloud_kms_secret_versions from terrascript.data.hashicorp.alicloud import alicloud_kms_secrets from terrascript.data.hashicorp.alicloud import alicloud_kms_service from terrascript.data.hashicorp.alicloud import alicloud_kvstore_accounts from terrascript.data.hashicorp.alicloud import alicloud_kvstore_connections from terrascript.data.hashicorp.alicloud import alicloud_kvstore_instance_classes from terrascript.data.hashicorp.alicloud import alicloud_kvstore_instance_engines from terrascript.data.hashicorp.alicloud import alicloud_kvstore_instances from terrascript.data.hashicorp.alicloud import alicloud_kvstore_permission from terrascript.data.hashicorp.alicloud import alicloud_kvstore_zones from terrascript.data.hashicorp.alicloud import alicloud_lindorm_instances from terrascript.data.hashicorp.alicloud import alicloud_log_projects from terrascript.data.hashicorp.alicloud import alicloud_log_service from terrascript.data.hashicorp.alicloud import alicloud_log_stores from terrascript.data.hashicorp.alicloud import alicloud_market_product from terrascript.data.hashicorp.alicloud import alicloud_market_products from terrascript.data.hashicorp.alicloud import alicloud_maxcompute_service from terrascript.data.hashicorp.alicloud import alicloud_mns_queues from terrascript.data.hashicorp.alicloud import alicloud_mns_service from terrascript.data.hashicorp.alicloud import alicloud_mns_topic_subscriptions from terrascript.data.hashicorp.alicloud import alicloud_mns_topics from terrascript.data.hashicorp.alicloud import alicloud_mongo_instances from terrascript.data.hashicorp.alicloud import alicloud_mongodb_instances from terrascript.data.hashicorp.alicloud import alicloud_mongodb_zones from terrascript.data.hashicorp.alicloud import alicloud_msc_sub_contacts from terrascript.data.hashicorp.alicloud import alicloud_msc_sub_subscriptions from terrascript.data.hashicorp.alicloud import alicloud_mse_clusters from terrascript.data.hashicorp.alicloud import alicloud_nas_access_groups from terrascript.data.hashicorp.alicloud import alicloud_nas_access_rules from terrascript.data.hashicorp.alicloud import alicloud_nas_file_systems from terrascript.data.hashicorp.alicloud import alicloud_nas_mount_targets from terrascript.data.hashicorp.alicloud import alicloud_nas_protocols from terrascript.data.hashicorp.alicloud import alicloud_nas_service from terrascript.data.hashicorp.alicloud import alicloud_nat_gateways from terrascript.data.hashicorp.alicloud import alicloud_network_acls from terrascript.data.hashicorp.alicloud import alicloud_network_interfaces from terrascript.data.hashicorp.alicloud import alicloud_ons_groups from terrascript.data.hashicorp.alicloud import alicloud_ons_instances from terrascript.data.hashicorp.alicloud import alicloud_ons_service from terrascript.data.hashicorp.alicloud import alicloud_ons_topics from terrascript.data.hashicorp.alicloud import alicloud_oos_executions from terrascript.data.hashicorp.alicloud import alicloud_oos_templates from terrascript.data.hashicorp.alicloud import alicloud_open_search_app_groups from terrascript.data.hashicorp.alicloud import alicloud_oss_bucket_objects from terrascript.data.hashicorp.alicloud import alicloud_oss_buckets from terrascript.data.hashicorp.alicloud import alicloud_oss_service from terrascript.data.hashicorp.alicloud import alicloud_ots_instance_attachments from terrascript.data.hashicorp.alicloud import alicloud_ots_instances from terrascript.data.hashicorp.alicloud import alicloud_ots_service from terrascript.data.hashicorp.alicloud import alicloud_ots_tables from terrascript.data.hashicorp.alicloud import alicloud_polardb_accounts from terrascript.data.hashicorp.alicloud import alicloud_polardb_clusters from terrascript.data.hashicorp.alicloud import alicloud_polardb_databases from terrascript.data.hashicorp.alicloud import alicloud_polardb_endpoints from terrascript.data.hashicorp.alicloud import alicloud_polardb_node_classes from terrascript.data.hashicorp.alicloud import alicloud_polardb_zones from terrascript.data.hashicorp.alicloud import alicloud_privatelink_service from terrascript.data.hashicorp.alicloud import ( alicloud_privatelink_vpc_endpoint_connections, ) from terrascript.data.hashicorp.alicloud import ( alicloud_privatelink_vpc_endpoint_service_resources, ) from terrascript.data.hashicorp.alicloud import ( alicloud_privatelink_vpc_endpoint_service_users, ) from terrascript.data.hashicorp.alicloud import ( alicloud_privatelink_vpc_endpoint_services, ) from terrascript.data.hashicorp.alicloud import ( alicloud_privatelink_vpc_endpoint_zones, ) from terrascript.data.hashicorp.alicloud import alicloud_privatelink_vpc_endpoints from terrascript.data.hashicorp.alicloud import alicloud_pvtz_service from terrascript.data.hashicorp.alicloud import alicloud_pvtz_zone_records from terrascript.data.hashicorp.alicloud import alicloud_pvtz_zones from terrascript.data.hashicorp.alicloud import alicloud_quick_bi_users from terrascript.data.hashicorp.alicloud import alicloud_quotas_application_infos from terrascript.data.hashicorp.alicloud import alicloud_quotas_quota_alarms from terrascript.data.hashicorp.alicloud import alicloud_quotas_quota_applications from terrascript.data.hashicorp.alicloud import alicloud_quotas_quotas from terrascript.data.hashicorp.alicloud import alicloud_ram_account_alias from terrascript.data.hashicorp.alicloud import alicloud_ram_account_aliases from terrascript.data.hashicorp.alicloud import alicloud_ram_groups from terrascript.data.hashicorp.alicloud import alicloud_ram_policies from terrascript.data.hashicorp.alicloud import alicloud_ram_roles from terrascript.data.hashicorp.alicloud import alicloud_ram_saml_providers from terrascript.data.hashicorp.alicloud import alicloud_ram_users from terrascript.data.hashicorp.alicloud import alicloud_rds_accounts from terrascript.data.hashicorp.alicloud import alicloud_rds_parameter_groups from terrascript.data.hashicorp.alicloud import alicloud_regions from terrascript.data.hashicorp.alicloud import alicloud_resource_manager_accounts from terrascript.data.hashicorp.alicloud import ( alicloud_resource_manager_control_policies, ) from terrascript.data.hashicorp.alicloud import ( alicloud_resource_manager_control_policy_attachments, ) from terrascript.data.hashicorp.alicloud import alicloud_resource_manager_folders from terrascript.data.hashicorp.alicloud import alicloud_resource_manager_handshakes from terrascript.data.hashicorp.alicloud import alicloud_resource_manager_policies from terrascript.data.hashicorp.alicloud import ( alicloud_resource_manager_policy_attachments, ) from terrascript.data.hashicorp.alicloud import ( alicloud_resource_manager_policy_versions, ) from terrascript.data.hashicorp.alicloud import ( alicloud_resource_manager_resource_directories, ) from terrascript.data.hashicorp.alicloud import ( alicloud_resource_manager_resource_groups, ) from terrascript.data.hashicorp.alicloud import ( alicloud_resource_manager_resource_shares, ) from terrascript.data.hashicorp.alicloud import alicloud_resource_manager_roles from terrascript.data.hashicorp.alicloud import ( alicloud_resource_manager_shared_resources, ) from terrascript.data.hashicorp.alicloud import ( alicloud_resource_manager_shared_targets, ) from terrascript.data.hashicorp.alicloud import alicloud_ros_change_sets from terrascript.data.hashicorp.alicloud import alicloud_ros_stack_groups from terrascript.data.hashicorp.alicloud import alicloud_ros_stacks from terrascript.data.hashicorp.alicloud import alicloud_ros_templates from terrascript.data.hashicorp.alicloud import alicloud_route_entries from terrascript.data.hashicorp.alicloud import alicloud_route_tables from terrascript.data.hashicorp.alicloud import alicloud_router_interfaces from terrascript.data.hashicorp.alicloud import alicloud_sae_applications from terrascript.data.hashicorp.alicloud import alicloud_sae_config_maps from terrascript.data.hashicorp.alicloud import alicloud_sae_namespaces from terrascript.data.hashicorp.alicloud import alicloud_sae_service from terrascript.data.hashicorp.alicloud import alicloud_sag_acls from terrascript.data.hashicorp.alicloud import alicloud_scdn_domains from terrascript.data.hashicorp.alicloud import alicloud_sddp_configs from terrascript.data.hashicorp.alicloud import alicloud_sddp_instances from terrascript.data.hashicorp.alicloud import alicloud_sddp_rules from terrascript.data.hashicorp.alicloud import alicloud_security_center_groups from terrascript.data.hashicorp.alicloud import alicloud_security_group_rules from terrascript.data.hashicorp.alicloud import alicloud_security_groups from terrascript.data.hashicorp.alicloud import ( alicloud_simple_application_server_images, ) from terrascript.data.hashicorp.alicloud import ( alicloud_simple_application_server_instances, ) from terrascript.data.hashicorp.alicloud import ( alicloud_simple_application_server_plans, ) from terrascript.data.hashicorp.alicloud import alicloud_slb_acls from terrascript.data.hashicorp.alicloud import alicloud_slb_attachments from terrascript.data.hashicorp.alicloud import alicloud_slb_backend_servers from terrascript.data.hashicorp.alicloud import alicloud_slb_ca_certificates from terrascript.data.hashicorp.alicloud import alicloud_slb_domain_extensions from terrascript.data.hashicorp.alicloud import alicloud_slb_listeners from terrascript.data.hashicorp.alicloud import alicloud_slb_load_balancers from terrascript.data.hashicorp.alicloud import ( alicloud_slb_master_slave_server_groups, ) from terrascript.data.hashicorp.alicloud import alicloud_slb_rules from terrascript.data.hashicorp.alicloud import alicloud_slb_server_certificates from terrascript.data.hashicorp.alicloud import alicloud_slb_server_groups from terrascript.data.hashicorp.alicloud import alicloud_slb_tls_cipher_policies from terrascript.data.hashicorp.alicloud import alicloud_slb_zones from terrascript.data.hashicorp.alicloud import alicloud_slbs from terrascript.data.hashicorp.alicloud import alicloud_snapshots from terrascript.data.hashicorp.alicloud import alicloud_snat_entries from terrascript.data.hashicorp.alicloud import ( alicloud_ssl_certificates_service_certificates, ) from terrascript.data.hashicorp.alicloud import alicloud_ssl_vpn_client_certs from terrascript.data.hashicorp.alicloud import alicloud_ssl_vpn_servers from terrascript.data.hashicorp.alicloud import alicloud_tsdb_instances from terrascript.data.hashicorp.alicloud import alicloud_tsdb_zones from terrascript.data.hashicorp.alicloud import ( alicloud_video_surveillance_system_groups, ) from terrascript.data.hashicorp.alicloud import alicloud_vod_domains from terrascript.data.hashicorp.alicloud import alicloud_vpc_dhcp_options_sets from terrascript.data.hashicorp.alicloud import alicloud_vpc_flow_logs from terrascript.data.hashicorp.alicloud import alicloud_vpc_nat_ip_cidrs from terrascript.data.hashicorp.alicloud import alicloud_vpc_nat_ips from terrascript.data.hashicorp.alicloud import alicloud_vpcs from terrascript.data.hashicorp.alicloud import alicloud_vpn_connections from terrascript.data.hashicorp.alicloud import alicloud_vpn_customer_gateways from terrascript.data.hashicorp.alicloud import alicloud_vpn_gateways from terrascript.data.hashicorp.alicloud import alicloud_vs_service from terrascript.data.hashicorp.alicloud import alicloud_vswitches from terrascript.data.hashicorp.alicloud import alicloud_waf_certificates from terrascript.data.hashicorp.alicloud import alicloud_waf_domains from terrascript.data.hashicorp.alicloud import alicloud_waf_instances from terrascript.data.hashicorp.alicloud import ( alicloud_yundun_bastionhost_instances, ) from terrascript.data.hashicorp.alicloud import alicloud_yundun_dbaudit_instance from terrascript.data.hashicorp.alicloud import alicloud_zones # TODO: Shortcut imports without namespace for official and supported providers. # TODO: This has to be moved into a required_providers block. # def test_version_source(): # # import terrascript.provider.hashicorp.alicloud # # t = terrascript.provider.hashicorp.alicloud.alicloud() # s = str(t) # # assert 'https://github.com/hashicorp/terraform-provider-alicloud' in s # assert '1.136.0' in s
36.678405
88
0.826293
8,070
70,826
6.967782
0.06518
0.247306
0.332954
0.448764
0.969162
0.964663
0.953246
0.929166
0.526196
0.195714
0
0.000342
0.132367
70,826
1,930
89
36.697409
0.914696
0.007201
0
0.126825
1
0
0
0
0
0
0
0.000518
0
1
0.002737
true
0.000912
0.74635
0
0.749088
0
0
0
0
null
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
11
16ff6b9ca076b3ceaed9efb43b3ff9a03570d1ee
10,406
py
Python
termitup_internal/modules_api/extrafunctions.py
pmchozas/llod4lion
52bb00634f770cb5fd46cfb2cc4d009c317bcef9
[ "Apache-2.0" ]
7
2020-04-08T15:37:51.000Z
2021-07-03T15:04:42.000Z
modules_api/extrafunctions.py
Pret-a-LLOD/termitup
aab77b7edf952ca05e38ab3dbda5acb30dac0078
[ "Apache-2.0" ]
10
2020-06-19T13:55:24.000Z
2021-07-04T16:10:56.000Z
termitup_internal/modules_api/extrafunctions.py
pmchozas/llod4lion
52bb00634f770cb5fd46cfb2cc4d009c317bcef9
[ "Apache-2.0" ]
1
2020-05-16T11:11:18.000Z
2020-05-16T11:11:18.000Z
import json from modules_api import jsonFile import re from unicodedata import normalize import logging #format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s', logging.basicConfig(filename='myapp.log', filemode='a', format='%(asctime)s, %(levelname)s %(message)s', datefmt='%H:%M:%S', level=logging.INFO) def check_prefLabel(outFile, targets, rels): targetsNull=[] #print(outFile) prefLabel=outFile['skos-xl:prefLabel'] fp=jsonFile.full_pref(outFile) targets_pref=fp[0] if(rels==1 or rels==2): for i in range(len(targets)): if(targets[i] not in targets_pref): targetsNull.append(targets[i]) else: for i in range(len(targets)): if(targets[i] not in targets_relation): targetsNull.append(targets[i]) return(targetsNull) def property_add( value, lang, outFile, label,rels, uri ): if('eurovoc' in uri): resource='Eurovoc' if('unesco' in uri): resource='Unesco' if('wikidata' in uri): resource='Wikidata' if('lexicala' in uri): resource='Lexicala' if(label=='definition'): label_file=outFile[label] else: label_file=outFile['skos-xl:'+label] fp=jsonFile.full_pref(outFile) prefLabel_full=fp[1] targets_pref=fp[0] altLabel_full=jsonFile.full_alt(outFile) definition_full=jsonFile.full_def(outFile) if(rels==1 or rels==2): if(len(label_file)==0): if(label=='prefLabel'): plb=value.strip(' ')+'-'+lang if(plb not in prefLabel_full and lang not in targets_pref): n = re.sub(r"([^n\u0300-\u036f]|n(?!\u0303(?![\u0300-\u036f])))[\u0300-\u036f]+", r"\1", normalize( "NFD", value), 0, re.I ) n = normalize( 'NFC', n) n2= n.replace(' ', '-') label_file.append({'@type':'skos-xl:Label', '@id':n2.strip(' ').replace(' ', '-')+'-'+lang+'-pref', 'source': uri, 'literalForm':{'@language':lang, '@value': value.strip(' ')}}) prefLabel_full.append(plb) targets_pref.append(lang) logging.info('FOUND ('+resource+'-'+label+'): '+value+' lang: '+lang) elif(label=='altLabel'): alb=value.strip(' ')+'-'+lang if(alb not in prefLabel_full and alb not in altLabel_full): n = re.sub(r"([^n\u0300-\u036f]|n(?!\u0303(?![\u0300-\u036f])))[\u0300-\u036f]+", r"\1", normalize( "NFD", value), 0, re.I ) n = normalize( 'NFC', n) n2= n.replace(' ', '-') label_file.append({'@type':'skos-xl:Label', '@id':n2.strip(' ').replace(' ', '-')+'-'+lang+'-alt', 'source': uri, 'literalForm':{'@language':lang, '@value': value.strip(' ')}}) altLabel_full.append(alb) logging.info('FOUND ('+resource+'-'+label+'): '+value+' lang: '+lang) elif(label=='definition'): dlb=value.strip(' ')+'-'+lang if(dlb not in definition_full): label_file.append({'@language':lang, '@value': value.strip(' ')}) definition_full.append(dlb) logging.info('FOUND ('+resource+'-'+label+'): '+value+' lang: '+lang) else: for i in range(len(label_file)): if(label=='prefLabel'): plb=value.strip(' ')+'-'+lang if(plb not in prefLabel_full and lang not in targets_pref ): n = re.sub(r"([^n\u0300-\u036f]|n(?!\u0303(?![\u0300-\u036f])))[\u0300-\u036f]+", r"\1", normalize( "NFD", value), 0, re.I ) n = normalize( 'NFC', n) n2= n.replace(' ', '-') label_file.append({'@type':'skos-xl:Label', '@id':n2.strip(' ').replace(' ', '-')+'-'+lang+'-pref', 'source': uri, 'literalForm':{'@language':lang, '@value': value.strip(' ')}}) prefLabel_full.append(plb) targets_pref.append(lang) logging.info('FOUND ('+resource+'-'+label+'): '+value+' lang: '+lang) elif(label=='altLabel'): alb=value.strip(' ')+'-'+lang if(alb not in prefLabel_full and alb not in altLabel_full): n = re.sub(r"([^n\u0300-\u036f]|n(?!\u0303(?![\u0300-\u036f])))[\u0300-\u036f]+", r"\1", normalize( "NFD", value), 0, re.I ) n = normalize( 'NFC', n) n2= n.replace(' ', '-') label_file.append({'@type':'skos-xl:Label', '@id':n2.strip(' ').replace(' ', '-')+'-'+lang+'-alt', 'source': uri, 'literalForm':{'@language':lang, '@value': value.strip(' ')}}) altLabel_full.append(alb) logging.info('FOUND ('+resource+'-'+label+'): '+value+' lang: '+lang) elif(label=='definition'): dlb=value.strip(' ')+'-'+lang if(dlb not in definition_full): label_file.append({'@language':lang, '@value': value.strip(' ')}) definition_full.append(dlb) logging.info('FOUND ('+resource+'-'+label+'): '+value+' lang: '+lang) else: if(len(label_file)==0): if(label=='prefLabel'): plb=value.strip(' ')+'-'+lang if(plb not in pref_relation and lang not in targets_relation): n = re.sub(r"([^n\u0300-\u036f]|n(?!\u0303(?![\u0300-\u036f])))[\u0300-\u036f]+", r"\1", normalize( "NFD", value), 0, re.I ) n = normalize( 'NFC', n) n2= n.replace(' ', '-') label_file.append({'@type':'skos-xl:Label', '@id':n2.strip(' ').replace(' ', '-')+'-'+lang+'-pref', 'source': uri, 'literalForm':{'@language':lang, '@value': value.strip(' ')}}) pref_relation.append(plb) targets_relation.append(lang) logging.info('FOUND ('+resource+'-'+label+'): '+value+' lang: '+lang) elif(label=='altLabel'): alb=value.strip(' ')+'-'+lang if(alb not in pref_relation and lang not in targets_relation): n = re.sub(r"([^n\u0300-\u036f]|n(?!\u0303(?![\u0300-\u036f])))[\u0300-\u036f]+", r"\1", normalize( "NFD", value), 0, re.I ) n = normalize( 'NFC', n) n2= n.replace(' ', '-') label_file.append({'@type':'skos-xl:Label', '@id':n2.strip(' ').replace(' ', '-')+'-'+lang+'-alt', 'source': uri, 'literalForm':{'@language':lang, '@value': value.strip(' ')}}) pref_relation.append(alb) targets_relation.append(lang) logging.info('FOUND ('+resource+'-'+label+'): '+value+' lang: '+lang) elif(alb not in pref_relation and alb not in alt_relation): n = re.sub(r"([^n\u0300-\u036f]|n(?!\u0303(?![\u0300-\u036f])))[\u0300-\u036f]+", r"\1", normalize( "NFD", value), 0, re.I ) n = normalize( 'NFC', n) n2= n.replace(' ', '-') label_file.append({'@language':lang, '@value':n.strip(' ')}) alt_relation.append(alb) logging.info('FOUND ('+resource+'-'+label+'): '+value+' lang: '+lang) else: for i in range(len(label_file)): if(label=='prefLabel'): plb=value.strip(' ')+'-'+lang if(plb not in pref_relation and lang not in targets_relation ): n = re.sub(r"([^n\u0300-\u036f]|n(?!\u0303(?![\u0300-\u036f])))[\u0300-\u036f]+", r"\1", normalize( "NFD", value), 0, re.I ) n = normalize( 'NFC', n) n2= n.replace(' ', '-') label_file.append({'@type':'skos-xl:Label', '@id':n2.strip(' ').replace(' ', '-')+'-'+lang+'-pref', 'source': uri, 'literalForm':{'@language':lang, '@value': value.strip(' ')}}) pref_relation.append(plb) targets_relation.append(lang) logging.info('FOUND ('+resource+'-'+label+'): '+value+' lang: '+lang) elif(label=='altLabel'): alb=value.strip(' ')+'-'+lang if(alb not in pref_relation and lang not in targets_relation): n = re.sub(r"([^n\u0300-\u036f]|n(?!\u0303(?![\u0300-\u036f])))[\u0300-\u036f]+", r"\1", normalize( "NFD", value), 0, re.I ) n = normalize( 'NFC', n) n2= n.replace(' ', '-') label_file.append({'@type':'skos-xl:Label', '@id':n2.strip(' ').replace(' ', '-')+'-'+lang+'-alt', 'source': uri, 'literalForm':{'@language':lang, '@value': value.strip(' ')}}) pref_relation.append(alb) targets_relation.append(lang) logging.info('FOUND ('+resource+'-'+label+'): '+value+' lang: '+lang) elif(alb not in pref_relation and alb not in alt_relation): n = re.sub(r"([^n\u0300-\u036f]|n(?!\u0303(?![\u0300-\u036f])))[\u0300-\u036f]+", r"\1", normalize( "NFD", value), 0, re.I ) n = normalize( 'NFC', n) n2= n.replace(' ', '-') label_file.append({'@type':'skos-xl:Label', '@id':n2.strip(' ').replace(' ', '-')+'-'+lang+'-pref', 'source': uri, 'literalForm':{'@language':lang, '@value': value.strip(' ')}}) alt_relation.append(alb) logging.info('FOUND ('+resource+'-'+label+'): '+value+' lang: '+lang) return(outFile)
54.481675
201
0.459735
1,083
10,406
4.350877
0.086796
0.063667
0.0382
0.061121
0.847199
0.828523
0.818124
0.818124
0.818124
0.818124
0
0.043516
0.341918
10,406
191
202
54.481675
0.644568
0.007688
0
0.754286
0
0
0.178596
0.063923
0
0
0
0
0
1
0.011429
false
0
0.028571
0
0.04
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
e5094ca0cfbada89a5237280cf49ab300518977a
105
py
Python
mantrap/solver/__init__.py
simon-schaefer/mantrap
9a2b3f32a0005cc0cb79bb78924f09da5a94587d
[ "MIT" ]
7
2020-05-11T18:13:27.000Z
2022-03-09T02:52:48.000Z
mantrap/solver/__init__.py
StanfordASL/mantrap
9a2b3f32a0005cc0cb79bb78924f09da5a94587d
[ "MIT" ]
null
null
null
mantrap/solver/__init__.py
StanfordASL/mantrap
9a2b3f32a0005cc0cb79bb78924f09da5a94587d
[ "MIT" ]
3
2020-12-09T00:03:26.000Z
2022-03-03T10:39:03.000Z
import mantrap.solver.base import mantrap.solver.baselines from mantrap.solver.ipopt import IPOPTSolver
21
44
0.857143
14
105
6.428571
0.571429
0.433333
0.422222
0
0
0
0
0
0
0
0
0
0.085714
105
4
45
26.25
0.9375
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
e53cfd8c78fe67e374828cf36b1d4540128abefa
91
py
Python
geoviews/plotting/__init__.py
ahuang11/geoviews
cd4a79e8297d45cd6419288d29456b4a06032b7e
[ "BSD-3-Clause" ]
null
null
null
geoviews/plotting/__init__.py
ahuang11/geoviews
cd4a79e8297d45cd6419288d29456b4a06032b7e
[ "BSD-3-Clause" ]
null
null
null
geoviews/plotting/__init__.py
ahuang11/geoviews
cd4a79e8297d45cd6419288d29456b4a06032b7e
[ "BSD-3-Clause" ]
1
2019-10-29T12:22:39.000Z
2019-10-29T12:22:39.000Z
from . import mpl # noqa try: from . import bokeh # noqa except ImportError: pass
13
30
0.659341
12
91
5
0.75
0.333333
0
0
0
0
0
0
0
0
0
0
0.274725
91
6
31
15.166667
0.909091
0.098901
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.2
0.6
0
0.6
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
7
e53f5b6f40f353dc84118f0146ab7e3161c71e8d
13,030
py
Python
scripts/normalize_meta_expert_demos.py
yifan-you-37/rl_swiss
8b0ee7caa5c1fa93860916004cf4fd970667764f
[ "MIT" ]
56
2019-10-20T03:09:02.000Z
2022-03-25T09:21:40.000Z
scripts/normalize_meta_expert_demos.py
yifan-you-37/rl_swiss
8b0ee7caa5c1fa93860916004cf4fd970667764f
[ "MIT" ]
3
2020-10-01T07:33:51.000Z
2021-05-12T03:40:57.000Z
scripts/normalize_meta_expert_demos.py
yifan-you-37/rl_swiss
8b0ee7caa5c1fa93860916004cf4fd970667764f
[ "MIT" ]
10
2019-11-04T16:56:09.000Z
2022-03-25T09:21:41.000Z
import numpy as np import joblib # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/final-zero-few-shot-fetch-traj-gen/final_zero_few_shot_fetch_traj_gen_2018_12_31_22_14_57_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/linear-demos-zero-few-shot-fetch-traj-gen/linear_demos_zero_few_shot_fetch_traj_gen_2019_01_04_18_22_15_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/10K-linear-demos-zero-few-shot-fetch-traj-gen/10K_linear_demos_zero_few_shot_fetch_traj_gen_2019_01_06_02_07_59_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/final-correct-1K-linear-demos-zero-few-shot-reach-traj-gen/final_correct_1K_linear_demos_zero_few_shot_reach_traj_gen_2019_01_09_20_56_48_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/final-10K-wrap-absorbing-linear-demos-zero-few-shot-fetch-traj-gen/final_10K_wrap_absorbing_linear_demos_zero_few_shot_fetch_traj_gen_2019_01_13_23_15_41_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/new-zero-fetch-linear-demos-10K/new_zero_fetch_linear_demos_10K_2019_01_14_21_34_58_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/fetch-linear-demos-50-tasks-25-each/fetch_linear_demos_50_tasks_25_each_2019_01_14_17_38_54_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/few-shot-fetch-linear-demos-50-tasks-5-each/few_shot_fetch_linear_demos_50_tasks_5_each_2019_01_17_00_22_32_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/final-correct-few-shot-fetch-linear-demos-50-tasks-5-each-subsample-4/final_correct_few_shot_fetch_linear_demos_50_tasks_5_each_subsample_4_2019_01_17_01_11_04_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/few-shot-fetch-linear-demos-16-tasks-5-each-subsample-4/few_shot_fetch_linear_demos_16_tasks_5_each_subsample_4_2019_01_17_02_29_32_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/few-shot-fetch-linear-demos-8-tasks-5-each-subsample-4/few_shot_fetch_linear_demos_8_tasks_5_each_subsample_4_2019_01_17_17_56_37_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/few-shot-fetch-linear-demos-32-tasks-10-each-subsample-8/few_shot_fetch_linear_demos_32_tasks_10_each_subsample_8_2019_01_17_19_19_20_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/correct-few-shot-fetch-linear-demos-32-tasks-7-each-subsample-8/correct_few_shot_fetch_linear_demos_32_tasks_7_each_subsample_8_2019_01_17_19_47_55_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/few-shot-fetch-linear-demos-16-tasks-10-each-subsample-8/few_shot_fetch_linear_demos_16_tasks_10_each_subsample_8_2019_01_17_19_51_14_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/another-few-shot-fetch-linear-demos-16-tasks-5-each-subsample-8/another_few_shot_fetch_linear_demos_16_tasks_5_each_subsample_8_2019_01_17_19_59_51_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/another-few-shot-fetch-linear-demos-32-tasks-5-each-subsample-8/another_few_shot_fetch_linear_demos_32_tasks_5_each_subsample_8_2019_01_17_20_08_11_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/few-shot-fetch-linear-demos-12-tasks-5-each-subsample-8/few_shot_fetch_linear_demos_12_tasks_5_each_subsample_8_2019_01_17_20_31_05_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/new-gen-few-shot-fetch-linear-demos-12-tasks-10-total-each-subsample-8/new_gen_few_shot_fetch_linear_demos_12_tasks_10_total_each_subsample_8_2019_01_17_20_56_23_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/new-gen-few-shot-fetch-linear-demos-16-tasks-10-total-each-subsample-8/new_gen_few_shot_fetch_linear_demos_16_tasks_10_total_each_subsample_8_2019_01_18_21_45_48_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/new-gen-few-shot-fetch-linear-demos-16-tasks-20-total-each-subsample-8/new_gen_few_shot_fetch_linear_demos_16_tasks_20_total_each_subsample_8_2019_01_18_23_02_05_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/new-gen-few-shot-fetch-linear-demos-16-tasks-15-total-each-subsample-8/new_gen_few_shot_fetch_linear_demos_16_tasks_15_total_each_subsample_8_2019_01_18_23_32_35_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/new-gen-few-shot-fetch-linear-demos-16-tasks-16-total-each-subsample-8/new_gen_few_shot_fetch_linear_demos_16_tasks_16_total_each_subsample_8_2019_01_19_00_53_52_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/correct-new-gen-few-shot-fetch-linear-demos-32-tasks-16-total-each-subsample-8/correct_new_gen_few_shot_fetch_linear_demos_32_tasks_16_total_each_subsample_8_2019_01_19_01_23_09_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/another-seed-correct-new-gen-few-shot-fetch-linear-demos-32-tasks-16-total-each-subsample-8/another_seed_correct_new_gen_few_shot_fetch_linear_demos_32_tasks_16_total_each_subsample_8_2019_01_19_02_02_47_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/another-seed-correct-new-gen-few-shot-fetch-linear-demos-24-tasks-16-total-each-subsample-8/another_seed_correct_new_gen_few_shot_fetch_linear_demos_24_tasks_16_total_each_subsample_8_2019_01_19_12_03_03_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/another-seed-correct-new-gen-few-shot-fetch-linear-demos-16-tasks-16-total-each-subsample-8/another_seed_correct_new_gen_few_shot_fetch_linear_demos_16_tasks_16_total_each_subsample_8_2019_01_19_12_44_18_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/another-seed-correct-new-gen-few-shot-fetch-linear-demos-20-tasks-16-total-each-subsample-8/another_seed_correct_new_gen_few_shot_fetch_linear_demos_20_tasks_16_total_each_subsample_8_2019_01_19_13_17_45_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/final-correct-another-seed-correct-new-gen-few-shot-fetch-linear-demos-32-tasks-16-total-each-subsample-1/final_correct_another_seed_correct_new_gen_few_shot_fetch_linear_demos_32_tasks_16_total_each_subsample_1_2019_01_20_04_51_13_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/fixed-colors-final-correct-another-seed-correct-new-gen-few-shot-fetch-linear-demos-32-tasks-16-total-each-subsample-1/fixed_colors_final_correct_another_seed_correct_new_gen_few_shot_fetch_linear_demos_32_tasks_16_total_each_subsample_1_2019_01_22_06_38_48_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/fixed-colors-0p5-radius-final-correct-another-seed-correct-new-gen-few-shot-fetch-linear-demos-32-tasks-16-total-each-subsample-1/fixed_colors_0p5_radius_final_correct_another_seed_correct_new_gen_few_shot_fetch_linear_demos_32_tasks_16_total_each_subsample_1_2019_01_22_07_53_12_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/final-few-shot-fetch-eval-expert-trajs/final_few_shot_fetch_eval_expert_trajs_2019_01_23_02_22_12_0000--s-0/extra_data.pkl' # path_to_extra_data = '/scratch/gobi2/kamyar/oorl_rlkit/output/faster-final-few-shot-fetch-eval-expert-trajs/faster_final_few_shot_fetch_eval_expert_trajs_2019_01_23_13_32_04_0000--s-0/extra_data.pkl' path_to_extra_data = '/scratch/hdd001/home/kamyar/output/hc-rand-vel-very-good-expert-demos-0p1-separated-16-demos-per-task-20-subsample/hc_rand_vel_very_good_expert_demos_0p1_separated_16_demos_per_task_20_subsample_2019_04_13_20_31_33_0000--s-0/extra_data.pkl' save_path = '/scratch/gobi2/kamyar/oorl_rlkit/expert_demos/faster_few_shot_fetch_eval_expert_trajs/extra_data.pkl' # SCALE = 0.99 SCALE = 0.9 # obs_max = np.array([0.19673975, 0.19944288, 0.20234512, 0.19673975, 0.19944288, # 0.20234512, 0.28635685, 0.29541265, 0.00469703, 0.28635685, # 0.29541265, 0.00469703, 1.3, 1.3, 1.3, # 1.3, 1.3, 1.3, 0.05095022, 0.05092848, # 0.01019219, 0.01034121]) # obs_min = np.array([-1.94986926e-01, -1.97374503e-01, -3.04622497e-03, -1.94986926e-01, # -1.97374503e-01, -3.04622497e-03, -3.00136632e-01, -2.82639213e-01, # -2.17494754e-01, -3.00136632e-01, -2.82639213e-01, -2.17494754e-01, # -1.3, -1.3, -1.3, -1.3, # -1.3, -1.3, 2.55108763e-06, -8.67902630e-08, # -9.42624227e-03, -9.39642018e-03]) # acts_max = np.array([0.24999889, 0.2499995 , 0.2499997 , 0.01499927]) # acts_min = np.array([-0.24999355, -0.24999517, -0.24999965, -0.01499985]) # obs_max = np.array([0.22051651, 0.22935722, 0.20480309, 0.22051651, 0.22935722, # 0.20480309, 0.30151219, 0.29303502, 0.00444365, 0.30151219, # 0.29303502, 0.00444365, 1.3, 1.3, 1.3, # 1.3, 1.3, 1.3, 0.05099135, 0.05091496, # 0.01034575, 0.0103919 ]) # obs_min = np.array([-1.98124936e-01, -2.04234846e-01, -8.51241789e-03, -1.98124936e-01, # -2.04234846e-01, -8.51241789e-03, -3.03874692e-01, -3.00712133e-01, # -2.30561716e-01, -3.03874692e-01, -3.00712133e-01, -2.30561716e-01, # -1.3, -1.3, -1.3, -1.3, # -1.3, -1.3, 2.55108763e-06, -8.67902630e-08, # -1.20198677e-02, -9.60486720e-03]) # acts_max = np.array([0.3667496 , 0.3676551 , 0.37420813, 0.015]) # acts_min = np.array([-0.27095875, -0.26862562, -0.27479879, -0.015]) # obs_max = np.array([0.20873973, 0.21238721, 0.20497428, 0.20873973, 0.21238721, # 0.20497428, 0.29729787, 0.29597882, 0.00660929, 0.29729787, # 0.29597882, 0.00660929, 1.0, 1.0, 1.0, # 1.0, 1.0, 1.0, 0.05099425, 0.05097209, # 0.01045247, 0.01020353]) # obs_min = np.array([-2.07733303e-01, -2.22872196e-01, -6.20862381e-03, -2.07733303e-01, # -2.22872196e-01, -6.20862381e-03, -3.02834854e-01, -3.18478521e-01, # -2.35453885e-01, -3.02834854e-01, -3.18478521e-01, -2.35453885e-01, # -1.0, -1.0, -1.0, -1.0, # -1.0, -1.0, 2.55108763e-06, -8.67902630e-08, # -1.12767104e-02, -1.15187468e-02]) # acts_max = np.array([0.36385158, 0.36506858, 0.37287046, 0.015]) # acts_min = np.array([-0.27378214, -0.27318582, -0.27457426, -0.015]) # obs_max = np.array([0.19732151, 0.19501755, 0.2032467 , 0.19732151, 0.19501755, # 0.2032467 , 0.28952909, 0.27034638, 0.00461512, 0.28952909, # 0.27034638, 0.00461512, 1. , 1. , 1. , # 1. , 1. , 1. , 0.05084346, 0.05089836, # 0.01020451, 0.01024073]) # obs_min = np.array([-1.94163008e-01, -2.06672946e-01, -4.34817497e-03, -1.94163008e-01, # -2.06672946e-01, -4.34817497e-03, -2.57836261e-01, -3.02357607e-01, # -2.26000082e-01, -2.57836261e-01, -3.02357607e-01, -2.26000082e-01, # -1., -1., -1., -1., # -1., -1., 2.55108763e-06, -8.67902630e-08, # -9.79891841e-03, -9.23147216e-03]) # acts_max = np.array([0.36071754, 0.35800805, 0.37175567, 0.015]) # acts_min = np.array([-0.26463221, -0.26663373, -0.27413371, -0.015]) # THESE ARE THE MOST RECENT NORMALIZATION FOR THE FEW SHOT FETCH obs_max = np.array([0.20061923, 0.19781174, 0.20549539, 0.20061923, 0.19781174, 0.20549539, 0.29141252, 0.28891717, 0.00129714, 0.29141252, 0.28891717, 0.00129714, 1.0 , 1.0 , 1.0 , 1.0 , 1.0 , 1.0 , 0.05096386, 0.05090749, 0.01046458, 0.01028522]) obs_min = np.array([-1.83014661e-01, -2.07445100e-01, -4.79934195e-03, -1.83014661e-01, -2.07445100e-01, -4.79934195e-03, -2.89125464e-01, -2.96987424e-01, -2.30655094e-01, -2.89125464e-01, -2.96987424e-01, -2.30655094e-01, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, 2.55108763e-06, -8.67902630e-08, -1.11994283e-02, -9.10341004e-03]) acts_max = np.array([0.36051396, 0.36032055, 0.37415428, 0.015]) acts_min = np.array([-0.2696256 , -0.27399028, -0.27453274, -0.015]) def normalize_obs(observation): observation = (observation - obs_min) / (obs_max - obs_min) observation *= 2 * SCALE observation -= SCALE return observation def normalize_acts(action): action = (action - acts_min) / (acts_max - acts_min) action *= 2 * SCALE action -= SCALE return action d = joblib.load(path_to_extra_data) for meta_split in ['meta_train', 'meta_test']: for sub_split in ['context', 'test']: for rb in d[meta_split][sub_split].task_replay_buffers.values(): rb._observations['obs'] = normalize_obs(rb._observations['obs']) rb._next_obs['obs'] = normalize_obs(rb._next_obs['obs']) rb._actions = normalize_acts(rb._actions) print('SAVING TO %s' % save_path) joblib.dump(d, save_path, compress=3)
91.760563
369
0.778665
2,381
13,030
3.907182
0.119698
0.065785
0.077394
0.089004
0.848758
0.829625
0.782436
0.72181
0.706546
0.6155
0
0.243759
0.074674
13,030
141
370
92.411348
0.527826
0.831619
0
0
0
0.027027
0.186521
0.160892
0
0
0
0
0
1
0.054054
false
0
0.054054
0
0.162162
0.027027
0
0
0
null
0
0
0
1
1
1
1
1
1
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
e5b91597d7bb85239bcfb9a2aca79254590b14c6
55
py
Python
projects/academic/PerformanceAppraisal/router_selective_queue/helpers.py
tobiasjc/Jekyll-noDev
31989969189a209a8036d4209a4d8f2383646148
[ "MIT" ]
null
null
null
projects/academic/PerformanceAppraisal/router_selective_queue/helpers.py
tobiasjc/Jekyll-noDev
31989969189a209a8036d4209a4d8f2383646148
[ "MIT" ]
null
null
null
projects/academic/PerformanceAppraisal/router_selective_queue/helpers.py
tobiasjc/Jekyll-noDev
31989969189a209a8036d4209a4d8f2383646148
[ "MIT" ]
null
null
null
def byte_to_mb(v): return (v * 8.0) / 1000000.00
18.333333
34
0.581818
11
55
2.727273
0.909091
0
0
0
0
0
0
0
0
0
0
0.268293
0.254545
55
2
35
27.5
0.463415
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
7
e5d06d5e7ecffca2fd3e20972f2f9ca10d31c8d7
5,725
py
Python
engine/collision/tests/test_positional_collision_cache.py
codehearts/pickles-fetch-quest
ca9b3c7fe26acb50e1e2d654d068f5bb953bc427
[ "MIT" ]
3
2017-12-07T19:17:36.000Z
2021-07-29T18:24:25.000Z
engine/collision/tests/test_positional_collision_cache.py
codehearts/pickles-fetch-quest
ca9b3c7fe26acb50e1e2d654d068f5bb953bc427
[ "MIT" ]
41
2017-11-11T06:00:08.000Z
2022-03-28T23:27:25.000Z
engine/collision/tests/test_positional_collision_cache.py
codehearts/pickles-fetch-quest
ca9b3c7fe26acb50e1e2d654d068f5bb953bc427
[ "MIT" ]
2
2018-08-31T23:49:00.000Z
2021-09-21T00:42:48.000Z
from ..positional_collision_cache import PositionalCollisionCache from engine.geometry import Rectangle import unittest class TestPositionalCollisionCache(unittest.TestCase): """Test functionality of the ``PositionalCollisionCache`` class.""" def setUp(self): """Creates a new :cls:`PositionalCollisionCache` as ``self.cache``.""" self.cache = PositionalCollisionCache() def test_new_collisions_are_new_and_not_removed(self): """New collisions are considered new and not removed.""" a = Rectangle(x=1, y=3, width=2, height=2) b = Rectangle(x=2, y=2, width=2, height=2) self.cache.add_collision(a, b, (1, 1)) self.cache.update(1) self.assertFalse(self.cache.get_removed_collisions()) new_collisions = self.cache.get_new_collisions() self.assertEqual(1, len(new_collisions)) self.assertCountEqual((a, b), list(new_collisions)[0]) def test_new_collisions_are_not_registered_twice(self): """New collisions are not registered twice between both objects.""" a = Rectangle(x=1, y=3, width=2, height=2) b = Rectangle(x=2, y=2, width=2, height=2) self.cache.add_collision(a, b, (1, 1)) self.cache.add_collision(b, a, (1, 1)) self.cache.update(1) self.assertFalse(self.cache.get_removed_collisions()) new_collisions = self.cache.get_new_collisions() self.assertEqual(1, len(new_collisions)) self.assertCountEqual((a, b), list(new_collisions)[0]) def test_repeated_collisions_are_not_new_or_removed(self): """Collisions are not new when the same collision occurs again.""" a = Rectangle(x=1, y=3, width=2, height=2) b = Rectangle(x=2, y=2, width=2, height=2) self.cache.add_collision(a, b, (1, 1)) self.cache.update(1) self.cache.add_collision(a, b, (1, 1)) self.cache.update(1) self.assertFalse(self.cache.get_removed_collisions()) self.assertFalse(self.cache.get_new_collisions()) def test_collision_is_not_removed_without_velocity_x(self): """Collisions are not removed if movement occured without velocity.""" a = Rectangle(x=1, y=3, width=2, height=2) b = Rectangle(x=2, y=2, width=2, height=2) self.cache.add_collision(a, b, (1, 1)) self.cache.update(1) # Object moved to no longer collide on the x axis a.x = 3 self.cache.add_collision(a, b, (0, 1)) # No x velocity self.cache.update(1) self.assertFalse(self.cache.get_removed_collisions()) self.assertFalse(self.cache.get_new_collisions()) def test_collision_is_not_removed_without_velocity_y(self): """Collisions are not removed if movement occured without velocity.""" a = Rectangle(x=1, y=3, width=2, height=2) b = Rectangle(x=2, y=2, width=2, height=2) self.cache.add_collision(a, b, (1, 1)) self.cache.update(1) # Object moved to no longer collide on the y axis a.y = 2 self.cache.add_collision(a, b, (1, 0)) # No y velocity self.cache.update(1) self.assertFalse(self.cache.get_removed_collisions()) self.assertFalse(self.cache.get_new_collisions()) def test_collision_is_removed_after_noncolliding_movement(self): """Collisions are removed after objects move outside the collision.""" a = Rectangle(x=1, y=3, width=2, height=2) b = Rectangle(x=2, y=2, width=2, height=2) self.cache.add_collision(a, b, (1, 1)) self.cache.update(1) # Object is moved to no longer collide a.coordinates.set((4, 4)) self.cache.add_collision(a, b, (0, 0)) # No resolution was necessary self.cache.update(1) self.assertFalse(self.cache.get_new_collisions()) removed_collisions = self.cache.get_removed_collisions() self.assertEqual(1, len(removed_collisions)) self.assertCountEqual((a, b), list(removed_collisions)[0]) def test_removed_collisions_are_not_registered_twice(self): """Removed collisions are not registered twice between both objects.""" a = Rectangle(x=1, y=3, width=2, height=2) b = Rectangle(x=2, y=2, width=2, height=2) self.cache.add_collision(a, b, (1, 1)) self.cache.update(1) # Object is moved to no longer collide a.coordinates.set((4, 4)) self.cache.add_collision(a, b, (0, 0)) # No resolution was necessary self.cache.add_collision(b, a, (0, 0)) self.cache.update(1) self.assertFalse(self.cache.get_new_collisions()) removed_collisions = self.cache.get_removed_collisions() self.assertEqual(1, len(removed_collisions)) self.assertCountEqual((a, b), list(removed_collisions)[0]) def test_repeated_collisions_are_new_after_removal(self): """A collision is considered new after its removal.""" a = Rectangle(x=1, y=3, width=2, height=2) b = Rectangle(x=2, y=2, width=2, height=2) self.cache.add_collision(a, b, (1, 1)) self.cache.update(1) # Object is moved to no longer collide a.coordinates.set((4, 4)) self.cache.add_collision(a, b, (0, 0)) # No resolution was necessary self.cache.update(1) # Object is moved to collide again a.coordinates.set((1, 3)) self.cache.add_collision(a, b, (1, 1)) self.cache.update(1) self.assertFalse(self.cache.get_removed_collisions()) new_collisions = self.cache.get_new_collisions() self.assertEqual(1, len(new_collisions)) self.assertCountEqual((a, b), list(new_collisions)[0])
36.698718
79
0.647511
813
5,725
4.414514
0.104551
0.125383
0.05684
0.099471
0.823349
0.816941
0.784062
0.765116
0.75397
0.75397
0
0.030016
0.226026
5,725
155
80
36.935484
0.779959
0.16821
0
0.776596
0
0
0
0
0
0
0
0
0.223404
1
0.095745
false
0
0.031915
0
0.138298
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
0072762557e30dd235b79c404cf8cae21194f544
21,135
py
Python
mmtbx/refinement/tst_refinement_flags.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/refinement/tst_refinement_flags.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/refinement/tst_refinement_flags.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import division from cctbx.array_family import flex from libtbx.test_utils import approx_equal, show_diff from libtbx.utils import format_cpu_times from mmtbx.refinement import refinement_flags from cStringIO import StringIO expected_result_all = \ """Refinement flags and selection counts: individual_sites = %s (9 atoms) torsion_angles = %s (9 atoms) rigid_body = %s (9 atoms in 6 groups) individual_adp = %s (iso = 9 aniso = 9) group_adp = %s (9 atoms in 6 groups) tls = %s (9 atoms in 6 groups) occupancies = %s (9 atoms) group_anomalous = %s """ % tuple(["%5s" % str(True)]*8) expected_result_none_false = \ """Refinement flags and selection counts: individual_sites = %s (0 atoms) torsion_angles = %s (0 atoms) rigid_body = %s (0 atoms in 0 groups) individual_adp = %s (iso = 0 aniso = 0) group_adp = %s (0 atoms in 0 groups) tls = %s (0 atoms in 0 groups) occupancies = %s (0 atoms) group_anomalous = %s """ % tuple(["%5s" % str(False)]*8) expected_result_none_true = \ """Refinement flags and selection counts: individual_sites = %s (0 atoms) torsion_angles = %s (0 atoms) rigid_body = %s (0 atoms in 0 groups) individual_adp = %s (iso = 0 aniso = 0) group_adp = %s (0 atoms in 0 groups) tls = %s (0 atoms in 0 groups) occupancies = %s (0 atoms) group_anomalous = %s """ % tuple(["%5s" % str(True)]*8) expected_result_mix = \ """Refinement flags and selection counts: individual_sites = %s (4 atoms) torsion_angles = %s (4 atoms) rigid_body = %s (4 atoms in 3 groups) individual_adp = %s (iso = 4 aniso = 4) group_adp = %s (4 atoms in 3 groups) tls = %s (4 atoms in 3 groups) occupancies = %s (4 atoms) group_anomalous = %s """ % tuple(["%5s" % str(True)]*8) def all_defined(): # 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 barr = flex.int([0,1,1,0,1,1,0,1,1,0, 1, 1, 0, 1, 0, 0]).as_bool() iarr = [ flex.size_t([1]), flex.size_t([2]), flex.size_t([4,5]), flex.size_t([7,8]), flex.size_t([10]), flex.size_t([11,13]) ] oarr = [ [flex.size_t([1]),flex.size_t([2])], [flex.size_t([4,5]),flex.size_t([7,8])], [flex.size_t([10])], [flex.size_t([11,13])] ] return refinement_flags.manager( individual_sites = True, torsion_angles = True, rigid_body = True, individual_adp = True, group_adp = True, tls = True, occupancies = True, group_anomalous = True, sites_individual = barr, sites_torsion_angles = barr, sites_rigid_body = iarr, adp_individual_iso = barr, adp_individual_aniso = barr, adp_group = iarr, group_h = iarr, adp_tls = iarr, s_occupancies = oarr) def all_defined_1(): # 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 barr = flex.int([1,1,1,0,1,1,0,0,1,0, 0, 0, 1, 1, 1, 1]).as_bool() iarr = [ flex.size_t([0]), flex.size_t([1,2]), flex.size_t([4,5]), flex.size_t([8]), flex.size_t([12,13,14]), flex.size_t([15]) ] oarr = [ [flex.size_t([0]),flex.size_t([1,2])], [flex.size_t([4,5])], [flex.size_t([8])], [flex.size_t([12,13,14]),flex.size_t([15])] ] return refinement_flags.manager( individual_sites = True, torsion_angles = True, rigid_body = True, individual_adp = True, group_adp = True, tls = True, occupancies = True, group_anomalous = True, sites_individual = barr, sites_torsion_angles = barr, sites_rigid_body = iarr, adp_individual_iso = barr, adp_individual_aniso = barr, adp_group = iarr, group_h = iarr, adp_tls = iarr, s_occupancies = oarr) def compare(rm, expected_result, deep_copy=False, selection=None, show=False): assert [deep_copy, selection].count(True) != 2 if(deep_copy): rm = rm.deep_copy() elif(selection is not None): rm = rm.select(selection = selection) out = StringIO() rm.show(log = out) if(show): print "-"*80 print out.getvalue() print expected_result assert not show_diff(out.getvalue(), expected_result) def exercise_deepcopy_show_select(): sel_all = flex.int([1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]).as_bool() sel_none = flex.int([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]).as_bool() sel_all_true = flex.int([0,1,1,0,1,1,0,1,1,0,1,1,0,1,0,0]).as_bool() sel_all_false = flex.int([1,0,0,1,0,0,1,0,0,1,0,0,1,0,1,1]).as_bool() sel_mix = flex.int([1,1,0,0,1,1,0,0,0,1,1,0,0,0,1,1]).as_bool() # compare(rm = all_defined(), expected_result = expected_result_all) compare(rm = all_defined(), expected_result = expected_result_all, deep_copy = True) compare(rm = all_defined(), expected_result = expected_result_all, selection = sel_all) compare(rm = all_defined(), expected_result = expected_result_none_true, selection = sel_none) compare(rm = all_defined(), expected_result = expected_result_all, selection = sel_all_true) compare(rm = all_defined(), expected_result = expected_result_none_true, selection = sel_all_false) compare(rm = all_defined(), expected_result = expected_result_mix, selection = sel_mix) # compare(rm = refinement_flags.manager(), expected_result = expected_result_none_false) compare(rm = refinement_flags.manager(), expected_result = expected_result_none_false, deep_copy = True) compare(rm = refinement_flags.manager(), expected_result = expected_result_none_false, selection = sel_all) compare(rm = refinement_flags.manager(), expected_result = expected_result_none_false, selection = sel_none) compare(rm = refinement_flags.manager(), expected_result = expected_result_none_false, selection = sel_all_true) compare(rm = refinement_flags.manager(), expected_result = expected_result_none_false, selection = sel_all_false) compare(rm = refinement_flags.manager(), expected_result = expected_result_none_false, selection = sel_mix) # rm = all_defined() rm_dc = rm.deep_copy() rm_dc.individual_sites = False rm_dc.torsion_angles = False rm_dc.rigid_body = False rm_dc.individual_adp = False rm_dc.group_adp = False rm_dc.tls = False rm_dc.occupancies = False rm_dc.group_anomalous = False rm_dc.sites_individual = None rm_dc.sites_torsion_angles = None rm_dc.sites_rigid_body = None rm_dc.adp_individual_iso = None rm_dc.adp_individual_aniso = None rm_dc.adp_group = None rm_dc.group_h = None rm_dc.adp_tls = None rm_dc.s_occupancies = None out = StringIO() rm.show(log = out) assert out.getvalue() == expected_result_all out = StringIO() rm_dc.show(log = out) assert out.getvalue() == expected_result_none_false def exercise_deepcopy_show_select_compare_arrays(): rm = all_defined() sel_mix = flex.int([1,1,0,0,1,1,0,1,0,1,1,0,0,0,1,1]).as_bool() rm_sel = rm.select(selection = sel_mix) assert rm_sel.individual_sites assert rm_sel.torsion_angles assert rm_sel.rigid_body assert rm_sel.individual_adp assert rm_sel.group_adp assert rm_sel.tls assert rm_sel.occupancies assert rm_sel.group_anomalous barr_sel_mix = flex.int([0,1,1,1,1,0,1, 0, 0]).as_bool() iarr_sel_mix = [ flex.size_t([1]), flex.size_t([2,3]), flex.size_t([4]), flex.size_t([6])] oarr_sel_mix = [ [flex.size_t([1])], [flex.size_t([2,3]),flex.size_t([4])], [flex.size_t([6])]] assert approx_equal(rm_sel.sites_individual , barr_sel_mix) assert approx_equal(rm_sel.sites_torsion_angles , barr_sel_mix) assert approx_equal(rm_sel.sites_rigid_body , iarr_sel_mix) assert approx_equal(rm_sel.adp_individual_iso , barr_sel_mix) assert approx_equal(rm_sel.adp_individual_aniso , barr_sel_mix) assert approx_equal(rm_sel.adp_group , iarr_sel_mix) assert approx_equal(rm_sel.group_h , iarr_sel_mix) assert approx_equal(rm_sel.adp_tls , iarr_sel_mix) assert approx_equal(rm_sel.s_occupancies , oarr_sel_mix) def exercise_inflate(): rm = all_defined() barr = flex.int([1,0,1,1,0,1]).as_bool() iarr = [flex.size_t([16]), flex.size_t([18,19]), flex.size_t([21])] oarr = [ [flex.size_t([16]), flex.size_t([18,19])], [flex.size_t([21])]] rm = rm.inflate( sites_individual = barr, sites_torsion_angles = barr, sites_rigid_body = iarr, adp_individual_iso = barr, adp_individual_aniso = barr, adp_group = iarr, group_h = iarr, adp_tls = iarr, s_occupancies = oarr) out = StringIO() rm.show(log = out) assert not show_diff(out.getvalue(), """\ Refinement flags and selection counts: individual_sites = %s (13 atoms) torsion_angles = %s (13 atoms) rigid_body = %s (13 atoms in 9 groups) individual_adp = %s (iso = 13 aniso = 13) group_adp = %s (13 atoms in 9 groups) tls = %s (13 atoms in 9 groups) occupancies = %s (13 atoms) group_anomalous = %s """ % tuple(["%5s" % str(True)]*8)) # barr_result = flex.int([0,1,1,0,1,1,0,1,1,0,1,1,0,1,0,0, 1,0,1,1,0,1]) \ .as_bool() iarr_result = [ flex.size_t([1]), flex.size_t([2]), flex.size_t([4,5]), flex.size_t([7,8]), flex.size_t([10]), flex.size_t([11,13]), flex.size_t([16]),flex.size_t([18,19]),flex.size_t([21])] oarr_result = [ [flex.size_t([1]),flex.size_t([2])], [flex.size_t([4,5]),flex.size_t([7,8])], [flex.size_t([10])], [flex.size_t([11,13])], [flex.size_t([16]), flex.size_t([18,19])], [flex.size_t([21])] ] assert approx_equal(rm.sites_individual , barr_result) assert approx_equal(rm.sites_torsion_angles , barr_result) assert approx_equal(rm.sites_rigid_body , iarr_result) assert approx_equal(rm.adp_individual_iso , barr_result) assert approx_equal(rm.adp_individual_aniso , barr_result) assert approx_equal(rm.adp_group , iarr_result) assert approx_equal(rm.group_h , iarr_result) assert approx_equal(rm.adp_tls , iarr_result) assert approx_equal(rm.s_occupancies , oarr_result) def exercise_add_1a(): # rm = all_defined() rm = rm.add(next_to_i_seqs = flex.size_t([])) out = StringIO() rm.show(log = out) assert out.getvalue() == expected_result_all # rm = rm.add( next_to_i_seqs = flex.size_t([]), sites_individual = True, sites_torsion_angles = True, sites_rigid_body = True, adp_individual_iso = True, adp_individual_aniso = True, adp_group = True, group_h = True, adp_tls = True, s_occupancies = True) out = StringIO() rm.show(log = out) assert out.getvalue() == expected_result_all def exercise_add_1b(): rm = all_defined() # [ [1], [2], [4,5], [7,8], [10], [11,13] ] - original # [ [1], [2], [5,7], [9,10], [13], [14,16] ] - after insertion for tuples # # [0,1,1,0,1,1,0,1,1,0, 1, 1, 0, 1, 0, 0] - original # [0,1,1,0,0,1,0,1,0,1,1,0,0, 1, 1, 0, 1, 0, 0] - after insertion for tuples # # [ [[1],[2]], [[4,5],[7,8]], [[10]], [[11,13]] ] - original # [ [[1],[2]], [[5,7],[9,10]], [[13]], [[14,16]] ] - after insertion for tuples rm = rm.add( next_to_i_seqs = flex.size_t([4,8,3]), sites_individual = False, sites_torsion_angles = False, sites_rigid_body = False, adp_individual_iso = False, adp_individual_aniso = False, adp_group = False, group_h = False, adp_tls = False, s_occupancies = False) out = StringIO() rm.show(log = out) assert out.getvalue() == expected_result_all barr_result = flex.int([0,1,1,0,0,1,0,1,0,1,1,0,0,1,1,0,1,0,0]).as_bool() iarr_result = [flex.size_t([1]), flex.size_t([2]), flex.size_t([5,7]), flex.size_t([9,10]), flex.size_t([13]), flex.size_t([14,16])] oarr_result = [[flex.size_t([1]), flex.size_t([2])], [flex.size_t([5,7]), flex.size_t([9,10])], [flex.size_t([13])], [flex.size_t([14,16])]] assert approx_equal(rm.sites_individual , barr_result) assert approx_equal(rm.sites_torsion_angles , barr_result) assert approx_equal(rm.sites_rigid_body , iarr_result) assert approx_equal(rm.adp_individual_iso , barr_result) assert approx_equal(rm.adp_individual_aniso , barr_result) assert approx_equal(rm.adp_group , iarr_result) assert approx_equal(rm.group_h , iarr_result) assert approx_equal(rm.adp_tls , iarr_result) compare_selections(rm.s_occupancies, oarr_result) def exercise_add_1c(): rm = all_defined() # [ [1], [2], [4,5], [7,8], [10], [11,13] ] - original # [ [1], [2], [4], [5,6,7], [9,10,11], [13], [14,16] ] - after insertion for tuples # # [0,1,1,0,1,1,0,1,1,0, 1, 1, 0, 1, 0, 0] - original # [0,1,1,0,1,1,1,1,0,1,1,1,0, 1, 1, 0, 1, 0, 0] - after insertion for tuples # # [ [[1],[2]], [[4,5],[7,8]], [[10]], [[11,13]] ] - original # # [ [[1],[2]], [[5,7],[9,10]], [[13]], [[14,16]], [[4]], [[6]], [[11]] ] - after insertion for tuples rm = rm.add( next_to_i_seqs = flex.size_t([4,8,3]), sites_individual = True, sites_torsion_angles = True, sites_rigid_body = True, adp_individual_iso = True, adp_individual_aniso = True, adp_group = True, group_h = True, adp_tls = True, s_occupancies = True) out = StringIO() rm.show(log = out) assert not show_diff(out.getvalue(), """\ Refinement flags and selection counts: individual_sites = %s (12 atoms) torsion_angles = %s (12 atoms) rigid_body = %s (12 atoms in 7 groups) individual_adp = %s (iso = 12 aniso = 12) group_adp = %s (12 atoms in 7 groups) tls = %s (12 atoms in 7 groups) occupancies = %s (12 atoms) group_anomalous = %s """ % tuple(["%5s" % str(True)]*8)) barr_result = flex.int([0,1,1,0,1,1,1,1,0,1,1,1,0, 1, 1, 0, 1, 0, 0]) \ .as_bool() iarr_result = [ flex.size_t([1]), flex.size_t([2]), flex.size_t([5,6,7]), flex.size_t([9,10,11]), flex.size_t([13]), flex.size_t([14,16]), flex.size_t([4]) ] oarr_result = [ [flex.size_t([1]),flex.size_t([2])], [flex.size_t([5,7]), flex.size_t([9,10])], [flex.size_t([13])], [flex.size_t([14,16])], [flex.size_t([4])], [flex.size_t([6])], [flex.size_t([11])] ] assert approx_equal(rm.sites_individual , barr_result) assert approx_equal(rm.sites_torsion_angles, barr_result) assert approx_equal(rm.sites_rigid_body , iarr_result) assert approx_equal(rm.adp_individual_iso , barr_result) assert approx_equal(rm.adp_individual_aniso, barr_result) assert approx_equal(rm.adp_group , iarr_result) assert approx_equal(rm.group_h , iarr_result) assert approx_equal(rm.adp_tls , iarr_result) compare_selections(rm.s_occupancies, oarr_result) def exercise_add_2b(): rm = all_defined_1() # [ [0], [1,2], [4,5], [8], [12,13,14], [15] ] - original # [ [0], [2,3], [5,6], [9], [14,15,16], [18] ] - after insertion for tuples # # [ [[0],[1,2]], [[4,5]], [[8]], [[12,13,14],[15]] ] - original # [ [[0],[2,3]], [[5,6]], [[9]], [[14,15,16],[18]] ] - after insertion for tuples # # 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 # [1,1,1,0,1,1,0,0,1,0, 0, 0, 1, 1, 1, 1] - original # [1,0,1,1,0,1,1,0,0,1,0,0,0,0,1,1,1,0,1,0] - after insertion for bool single rm = rm.add( next_to_i_seqs = flex.size_t([0,10,14,15]), sites_individual = False, sites_torsion_angles = False, sites_rigid_body = False, adp_individual_iso = False, adp_individual_aniso = False, adp_group = False, group_h = False, adp_tls = False, s_occupancies = False) out = StringIO() rm.show(log = out) assert not show_diff(out.getvalue(), """\ Refinement flags and selection counts: individual_sites = %s (10 atoms) torsion_angles = %s (10 atoms) rigid_body = %s (10 atoms in 6 groups) individual_adp = %s (iso = 10 aniso = 10) group_adp = %s (10 atoms in 6 groups) tls = %s (10 atoms in 6 groups) occupancies = %s (10 atoms) group_anomalous = %s """ % tuple(["%5s" % str(True)]*8)) barr_result = flex.int([1,0,1,1,0,1,1,0,0,1,0,0,0,0,1,1,1,0,1,0]).as_bool() iarr_result = [ flex.size_t([0]), flex.size_t([2,3]), flex.size_t([5,6]), flex.size_t([9]), flex.size_t([14,15,16]), flex.size_t([18]) ] oarr_result = [ [flex.size_t([0]),flex.size_t([2,3])], [flex.size_t([5,6])], [flex.size_t([9])], [flex.size_t([14,15,16]),flex.size_t([18])] ] assert approx_equal(rm.sites_individual , barr_result) assert approx_equal(rm.sites_torsion_angles, barr_result) assert approx_equal(rm.sites_rigid_body , iarr_result) assert approx_equal(rm.adp_individual_iso , barr_result) assert approx_equal(rm.adp_individual_aniso, barr_result) assert approx_equal(rm.adp_group , iarr_result) assert approx_equal(rm.group_h , iarr_result) assert approx_equal(rm.adp_tls , iarr_result) compare_selections(rm.s_occupancies, oarr_result) def exercise_add_2c(): rm = all_defined_1() # [ [0], [1,2], [4,5], [8], [12,13,14], [15] ] - original # [ [0], [1], [2,3], [5,6], [9], [12], [14,15,16,17], [18], [19] ] - after insertion for tuples # # [ [[0],[1,2]], [[4,5]], [[8]], [[12,13,14],[15]] ] - original # [ [[0],[2,3]], [[5,6]], [[9]], [[14,15,16],[18]], [[1]], [[12]], [[17]], [[19]] ] - after insertion for tuples # # 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 # [1,1,1,0,1,1,0,0,1,0, 0, 0, 1, 1, 1, 1] - original # [1,1,1,1,0,1,1,0,0,1,0, 0,1, 0, 1, 1, 1,1, 1,1] - after insertion for bool single rm = rm.add( next_to_i_seqs = flex.size_t([0,10,14,15]), sites_individual = True, sites_torsion_angles = True, sites_rigid_body = True, adp_individual_iso = True, adp_individual_aniso = True, adp_group = True, group_h = True, adp_tls = True, s_occupancies = True) out = StringIO() rm.show(log = out) assert not show_diff(out.getvalue(), """\ Refinement flags and selection counts: individual_sites = %s (14 atoms) torsion_angles = %s (14 atoms) rigid_body = %s (14 atoms in 9 groups) individual_adp = %s (iso = 14 aniso = 14) group_adp = %s (14 atoms in 9 groups) tls = %s (14 atoms in 9 groups) occupancies = %s (14 atoms) group_anomalous = %s """ % tuple(["%5s" % str(True)]*8)) barr_result = flex.int([1,1,1,1,0,1,1,0,0,1,0,0,1,0,1,1,1,1,1,1]).as_bool() iarr_result = [ flex.size_t([0]), flex.size_t([1]), flex.size_t([2,3]), flex.size_t([5,6]), flex.size_t([9]), flex.size_t([14,15,16,17]), flex.size_t([18]), flex.size_t([19]), flex.size_t([12])] oarr_result = [ [flex.size_t([0]),flex.size_t([2,3])], [flex.size_t([5,6])], [flex.size_t([9])], [flex.size_t([14,15,16]),flex.size_t([18])], [flex.size_t([1])], [flex.size_t([12])], [flex.size_t([17])], [flex.size_t([19])] ] assert approx_equal(rm.sites_individual , barr_result) assert approx_equal(rm.sites_torsion_angles , barr_result) assert approx_equal(rm.sites_rigid_body , iarr_result) assert approx_equal(rm.adp_individual_iso , barr_result) assert approx_equal(rm.adp_individual_aniso , barr_result) assert approx_equal(rm.adp_group , iarr_result) assert approx_equal(rm.group_h , iarr_result) assert approx_equal(rm.adp_tls , iarr_result) compare_selections(rm.s_occupancies, oarr_result) def compare_selections(x, y): x = [[list(k) for k in i] for i in x][:] y = [[list(k) for k in i] for i in y][:] x.sort() y.sort() assert approx_equal(x, y) def exercise(): exercise_deepcopy_show_select() exercise_deepcopy_show_select_compare_arrays() exercise_inflate() exercise_add_1a() exercise_add_1b() exercise_add_1c() exercise_add_2b() exercise_add_2c() print format_cpu_times() if(__name__ == "__main__"): exercise()
41.934524
115
0.594464
3,299
21,135
3.567142
0.040315
0.082257
0.092539
0.080727
0.835316
0.82223
0.776852
0.772434
0.733685
0.69519
0
0.071122
0.250248
21,135
503
116
42.017893
0.671526
0.086823
0
0.519608
0
0
0.093729
0
0
0
0
0
0.171569
0
null
null
0
0.014706
null
null
0.009804
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
dadaf6767a11d1ef574690a73d6049f3fb50195a
4,281
py
Python
data.py
mrkolarik/nerudai
01f86c29396985cd12fa35cd971e77f65cbf9e41
[ "MIT" ]
1
2020-12-16T21:32:26.000Z
2020-12-16T21:32:26.000Z
data.py
mrkolarik/nerudai
01f86c29396985cd12fa35cd971e77f65cbf9e41
[ "MIT" ]
null
null
null
data.py
mrkolarik/nerudai
01f86c29396985cd12fa35cd971e77f65cbf9e41
[ "MIT" ]
null
null
null
# coding=utf8 import csv import sys # reload(sys) # sys.setdefaultencoding('utf-8') from unidecode import unidecode output = [] with open('data/1.csv') as csvfile: readCSV = csv.reader(csvfile, delimiter=',') first = [] for row in readCSV: text = row[1] text = text.replace("\n\n\n","\n") output.append((row[0])) output.append("\n") output.append((text)) output.append("\n") with open('data/2.csv') as csvfile: readCSV = csv.reader(csvfile, delimiter=',') first = [] for row in readCSV: text = row[1] text = text.replace("\n\n\n","\n") output.append((row[0])) output.append("\n") output.append((text)) output.append("\n") with open('data/3.csv') as csvfile: readCSV = csv.reader(csvfile, delimiter=',') first = [] for row in readCSV: text = row[1] text = text.replace("\n\n\n","\n") output.append((row[0])) output.append("\n") output.append((text)) output.append("\n") with open('data/4.csv') as csvfile: readCSV = csv.reader(csvfile, delimiter=',') first = [] for row in readCSV: text = row[1] text = text.replace("\n\n\n","\n") output.append((row[0])) output.append("\n") output.append((text)) output.append("\n") with open('data/5.csv') as csvfile: readCSV = csv.reader(csvfile, delimiter=',') first = [] for row in readCSV: text = row[1] text = text.replace("\n\n\n","\n") output.append((row[0])) output.append("\n") output.append((text)) output.append("\n") with open('data/6.csv') as csvfile: readCSV = csv.reader(csvfile, delimiter=',') first = [] for row in readCSV: text = row[1] text = text.replace("\n\n\n","\n") output.append((row[0])) output.append("\n") output.append((text)) output.append("\n") with open('data/7.csv') as csvfile: readCSV = csv.reader(csvfile, delimiter=',') first = [] for row in readCSV: text = row[1] text = text.replace("\n\n\n","\n") output.append((row[0])) output.append("\n") output.append((text)) output.append("\n") with open('data/8.csv') as csvfile: readCSV = csv.reader(csvfile, delimiter=',') first = [] for row in readCSV: text = row[1] text = text.replace("\n\n\n","\n") output.append((row[0])) output.append("\n") output.append((text)) output.append("\n") with open('data/9.csv') as csvfile: readCSV = csv.reader(csvfile, delimiter=',') first = [] for row in readCSV: text = row[1] text = text.replace("\n\n\n","\n") output.append((row[0])) output.append("\n") output.append((text)) output.append("\n") with open('data/10.csv') as csvfile: readCSV = csv.reader(csvfile, delimiter=',') first = [] for row in readCSV: text = row[1] text = text.replace("\n\n\n","\n") output.append((row[0])) output.append("\n") output.append((text)) output.append("\n") with open('data/11.csv') as csvfile: readCSV = csv.reader(csvfile, delimiter=',') first = [] for row in readCSV: text = row[1] text = text.replace("\n\n\n","\n") output.append((row[0])) output.append("\n") output.append((text)) output.append("\n") with open('data/12.csv') as csvfile: readCSV = csv.reader(csvfile, delimiter=',') first = [] for row in readCSV: text = row[1] text = text.replace("\n\n\n","\n") output.append((row[0])) output.append("\n") output.append((text)) output.append("\n") with open('data/pismak.csv') as csvfile: readCSV = csv.reader(csvfile, delimiter=',') first = [] for row in readCSV: text = row[1] text = text.replace("\n\n\n","\n") output.append((row[0])) output.append("\n") output.append((text)) output.append("\n") with open('data/basnicky.text', 'w') as file_handler: for item in output: file_handler.write("{}\n".format(item))
25.331361
53
0.535389
556
4,281
4.118705
0.086331
0.272489
0.034061
0.10786
0.913974
0.913974
0.913974
0.913974
0.913974
0.913974
0
0.013831
0.273768
4,281
169
54
25.331361
0.72274
0.012847
0
0.854015
0
0
0.078144
0
0
0
0
0
0
1
0
false
0
0.021898
0
0.021898
0
0
0
0
null
1
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
8
daf4871db153ae441765fcfdc69989c59a1147d2
1,253
py
Python
app/custom_widgets.py
wolfinabox/Video-Tools
64b24f1cbb6a0e79943c1cc4007ca88ae4f8e31c
[ "MIT" ]
null
null
null
app/custom_widgets.py
wolfinabox/Video-Tools
64b24f1cbb6a0e79943c1cc4007ca88ae4f8e31c
[ "MIT" ]
null
null
null
app/custom_widgets.py
wolfinabox/Video-Tools
64b24f1cbb6a0e79943c1cc4007ca88ae4f8e31c
[ "MIT" ]
null
null
null
from PySide2.QtCore import Signal from PySide2.QtWidgets import QLineEdit, QPushButton class Droppable_button(QPushButton): """A QPushButton that can have files dropped on it """ files_dropped=Signal(str) def __init__(self, title=None, parent=None): super().__init__(title, parent) self.setAcceptDrops(True) def dragEnterEvent(self, e): if e.mimeData().hasText(): e.accept() else: e.ignore() def dropEvent(self, e): text=e.mimeData().text().replace('file:///','').strip().replace('\n',';') self.files_dropped.emit(text) # self.setText(e.mimeData().text()) class Droppable_lineEdit(QLineEdit): """A QPushButton that can have files dropped on it """ files_dropped=Signal(str) def __init__(self, title=None, parent=None): super().__init__(title, parent) self.setAcceptDrops(True) def dragEnterEvent(self, e): if e.mimeData().hasText(): e.accept() else: e.ignore() def dropEvent(self, e): text=e.mimeData().text().replace('file:///','').strip().replace('\n',';') self.files_dropped.emit(text) # self.setText(e.mimeData().text())
26.659574
81
0.599362
145
1,253
5.027586
0.317241
0.098765
0.071331
0.052126
0.812071
0.812071
0.812071
0.812071
0.812071
0.812071
0
0.002114
0.245012
1,253
47
82
26.659574
0.768499
0.138867
0
0.857143
0
0
0.020599
0
0
0
0
0
0
1
0.214286
false
0
0.071429
0
0.428571
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
1
0
0
0
0
0
0
0
8
9702a738556749da28db332adee7fa76d2f9bbcc
135
py
Python
models/gcnn/network.py
BeeGrad/semantic-object-removal
4407e9bae85cc57ad08e5ee56c1364ce7097c186
[ "MIT" ]
3
2020-08-11T09:46:41.000Z
2020-11-09T01:56:28.000Z
models/gcnn/network.py
BeeGrad/semantic-object-removal
4407e9bae85cc57ad08e5ee56c1364ce7097c186
[ "MIT" ]
1
2020-11-24T18:23:22.000Z
2020-11-24T18:23:22.000Z
models/gcnn/network.py
BeeGrad/semantic-object-removal
4407e9bae85cc57ad08e5ee56c1364ce7097c186
[ "MIT" ]
null
null
null
# Generative CNN Model import torch import torch.nn as nn class Painter(nn.Module): pass class Segmentor(nn.Module): pass
10.384615
27
0.711111
20
135
4.8
0.6
0.229167
0.25
0
0
0
0
0
0
0
0
0
0.214815
135
12
28
11.25
0.90566
0.148148
0
0.333333
0
0
0
0
0
0
0
0
0
1
0
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
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
7
975b599479c6a68c5a012b294574a35a155a849a
23,509
py
Python
Dynamic_HD_Scripts/Dynamic_HD_Script_Tests/test_iodriver.py
ThomasRiddick/DynamicHD
bff378a49ff6c709dc59c2d6835852e1083df20a
[ "BSD-3-Clause" ]
1
2021-08-04T07:51:18.000Z
2021-08-04T07:51:18.000Z
Dynamic_HD_Scripts/Dynamic_HD_Script_Tests/test_iodriver.py
ThomasRiddick/DynamicHD
bff378a49ff6c709dc59c2d6835852e1083df20a
[ "BSD-3-Clause" ]
1
2022-01-27T22:12:45.000Z
2022-02-01T10:16:47.000Z
Dynamic_HD_Scripts/Dynamic_HD_Script_Tests/test_iodriver.py
ThomasRiddick/DynamicHD
bff378a49ff6c709dc59c2d6835852e1083df20a
[ "BSD-3-Clause" ]
null
null
null
''' Unit tests for the iodriver module Created on Dec 7, 2017 @author: thomasriddick ''' import unittest import numpy as np import textwrap import os from os.path import join from Dynamic_HD_Scripts.base import iodriver from Dynamic_HD_Scripts.base import field from Dynamic_HD_Script_Tests.context import data_dir class Test(unittest.TestCase): def setUp(self): """Unit test setup. Creates a temporary directory for results if necessary""" #create files if False: self.directory = os.path.expanduser('~')+ '/temp' else: self.directory = data_dir + '/temp' try: os.stat(self.directory) except: os.mkdir(self.directory) self.half_degree_grid_desc = os.path.join(self.directory,"half_degree_grid_desc.txt") self.ten_minute_grid_desc = os.path.join(self.directory,"ten_minute_grid_desc.txt") def testLoadingFileWithLatLonFields(self): """Test loading from a file with a set of lat-lon coords built in""" loaded_field = iodriver.advanced_field_loader(filename=join(data_dir, "HDdata", "orographys", "ice5g_v1_2_00_0k_10min.nc"), adjust_orientation=True) self.assertEqual(loaded_field.data[231][0],-1425.0,"Field data has not been loaded and" " oriented properly") self.assertAlmostEqual(loaded_field.grid.lon_points[0],-179.91666667,msg="Field data grid is" " not correctly" " oriented") self.assertAlmostEqual(loaded_field.grid.lat_points[0],89.91666412,msg="Field data grid is" " not correctly" " oriented") def testLoadingFileWithLatLonFieldsWithoutReorientation(self): """Test loading from a file with a set of lat-lon coords built in without reorienting""" loaded_field = iodriver.advanced_field_loader(filename=join(data_dir, "HDdata", "orographys", "ice5g_v1_2_00_0k_10min.nc"), adjust_orientation=False) self.assertEqual(loaded_field.data[231][0],-2367.0,"Field data has not been loaded and" " oriented properly") self.assertAlmostEqual(loaded_field.grid.lon_points[0],0.0,msg="Field data grid is" " not correctly" " oriented") self.assertAlmostEqual(loaded_field.grid.lat_points[0],-89.91667175,msg="Field data grid is" " not correctly" " oriented") def testLoadingFieldWithGlobalGridDesc(self): """Test loading from a file using a global_DXY grid description""" loaded_field = iodriver.advanced_field_loader(filename=join(data_dir, "HDdata", "catchmentmaps", "upscaled", "catchmentmap_unsorted_ICE5G_" "data_ALG4_sinkless_0k_" "20160714_121938.nc"), grid_desc="global_0.5", adjust_orientation=True) self.assertEqual(loaded_field.data[62][157],14149.0,"Field data has not been loaded and" " oriented properly") self.assertAlmostEqual(loaded_field.grid.lon_points[0],-179.75,msg="Field data grid is" " not correctly" " oriented") self.assertAlmostEqual(loaded_field.grid.lat_points[0],89.75,msg="Field data grid is" " not correctly" " oriented") def testLoadingFieldWithRXGridDesc(self): """Test loading from a file using a rDXxDY grid description""" loaded_field = iodriver.advanced_field_loader(filename=join(data_dir, "HDdata", "catchmentmaps", "upscaled", "catchmentmap_unsorted_ICE5G_" "data_ALG4_sinkless_0k_" "20160714_121938.nc"), grid_desc="r0.5x0.5", adjust_orientation=True) self.assertEqual(loaded_field.data[62][517],14149.0,"Field data has not been loaded and" " oriented properly") self.assertAlmostEqual(loaded_field.grid.lon_points[0],-179.75,msg="Field data grid is" " not correctly" " oriented") self.assertAlmostEqual(loaded_field.grid.lat_points[0],89.75,msg="Field data grid is" " not correctly" " oriented") def testLoadingFieldWithRXGridDescWithoutReorientation(self): """Test loading from a file using a rDXxDY grid description without reorienting""" loaded_field = iodriver.advanced_field_loader(filename=join(data_dir, "HDdata", "catchmentmaps", "upscaled", "catchmentmap_unsorted_ICE5G_" "data_ALG4_sinkless_0k_" "20160714_121938.nc"), grid_desc="r0.5x0.5", adjust_orientation=False) self.assertEqual(loaded_field.data[62][157],14149.0,"Field data has not been loaded and" " oriented properly") self.assertAlmostEqual(loaded_field.grid.lon_points[0],0.0,msg="Field data grid is" " not correctly" " oriented") self.assertAlmostEqual(loaded_field.grid.lat_points[0],89.75,msg="Field data grid is" " not correctly" " oriented") def testLoadingFieldWithGridFileDesc(self): """Test loading from a file using a grid description file""" half_degree_grid_desc_text =\ """ gridtype = lonlat gridsize = 259200 xsize = 720 ysize = 360 xfirst = -179.75 xinc = 0.5 yfirst = 89.75 yinc = -0.5 """ with open(self.half_degree_grid_desc,'w') as f: f.write(textwrap.dedent(half_degree_grid_desc_text)) loaded_field = iodriver.advanced_field_loader(filename=join(data_dir, "HDdata", "catchmentmaps", "upscaled", "catchmentmap_unsorted_ICE5G_" "data_ALG4_sinkless_0k_" "20160714_121938.nc"), grid_desc_file=self.half_degree_grid_desc, adjust_orientation=True) self.assertEqual(loaded_field.data[62][157],14149.0,"Field data has not been loaded and" " oriented properly") self.assertAlmostEqual(loaded_field.grid.lon_points[0],-179.75,msg="Field data grid is" " not correctly" " oriented") self.assertAlmostEqual(loaded_field.grid.lat_points[0],89.75,msg="Field data grid is" " not correctly" " oriented") def testLoadingFieldWithGridFileDescWithNonStandardOrientation(self): """Test loading with a non standard grid from a file using a grid description file""" ten_minute_grid_desc_text =\ """ gridtype = lonlat gridsize = 2332800 xsize = 2160 ysize = 1080 xfirst = 0.0 xinc = 0.1666666666666667 yfirst = 89.9166666666666667 yinc = -0.1666666666666667 """ with open(self.ten_minute_grid_desc,'w') as f: f.write(textwrap.dedent(ten_minute_grid_desc_text)) loaded_field = iodriver.advanced_field_loader(filename=join(data_dir, "HDdata", "catchmentmaps", "catchmentmap_unsorted_ICE6g" "_lgm_ALG4_sinkless_no_true_" "sinks_oceans_lsmask_plus_" "upscale_rdirs_tarasov_orog" "_corrs_20171015_031541.nc"), grid_desc_file=self.ten_minute_grid_desc, adjust_orientation=True) self.assertEqual(loaded_field.data[45][713],399,"Field data has not been loaded and" " oriented properly") self.assertAlmostEqual(loaded_field.grid.lon_points[0],-179.916666667,msg="Field data grid is" " not correctly" " oriented") self.assertAlmostEqual(loaded_field.grid.lat_points[0],89.9166666667,msg="Field data grid is" " not correctly" " oriented") def testLoadingFieldWithGridFileDescWithNonStandardOrientationWithoutReorientation(self): """Test loading with a non standard grid using a grid description file and no reorientation""" ten_minute_grid_desc_text =\ """ gridtype = lonlat gridsize = 2332800 xsize = 2160 ysize = 1080 xfirst = 0.0 xinc = 0.1666666666666667 yfirst = 89.9166666666666667 yinc = -0.1666666666666667 """ with open(self.ten_minute_grid_desc,'w') as f: f.write(textwrap.dedent(ten_minute_grid_desc_text)) loaded_field = iodriver.advanced_field_loader(filename=join(data_dir, "HDdata", "catchmentmaps", "catchmentmap_unsorted_ICE6g" "_lgm_ALG4_sinkless_no_true_" "sinks_oceans_lsmask_plus_" "upscale_rdirs_tarasov_orog" "_corrs_20171015_031541.nc"), grid_desc_file=self.ten_minute_grid_desc, adjust_orientation=False) self.assertEqual(loaded_field.data[45][1793],399,"Field data has not been loaded and" " oriented properly") self.assertAlmostEqual(loaded_field.grid.lon_points[0],0.0,msg="Field data grid is" " not correctly" " oriented") self.assertAlmostEqual(loaded_field.grid.lat_points[0],89.9166666667,msg="Field data grid is" " not correctly" " oriented") def testFieldWritingAndLoadingWithLatLongField(self): example_field = field.makeEmptyField('Generic',dtype=np.int64,grid_type='HD') lat_points=np.linspace(89.75,-89.75,360,endpoint=True) lon_points=np.linspace(-179.75,179.75,720,endpoint=True) example_field.set_grid_coordinates((lat_points,lon_points)) example_field.data[20,20] = 1 example_field.data[200,20] = 2 example_field.data[20,200] = 3 example_field.data[200,200] = 4 iodriver.advanced_field_writer(os.path.join(self.directory, "advancedfieldwritingandloadingtest.nc"), example_field,fieldname='test_field', clobber=True) loaded_field = iodriver.advanced_field_loader(os.path.join(self.directory,"advancedfieldwritingandloadingtest.nc"), fieldname='test_field') np.testing.assert_array_equal(example_field.get_data(),loaded_field.get_data()) def testFieldWritingAndLoadingWithLatLongFieldWithFlip(self): example_field = field.makeEmptyField('Generic',dtype=np.int64,grid_type='HD') lat_points=np.linspace(89.75,-89.75,360,endpoint=True) lon_points=np.linspace(-179.75,179.75,720,endpoint=True) example_field.set_grid_coordinates((lat_points,lon_points)) example_field.data[20,20] = 1 example_field.data[200,20] = 2 example_field.data[20,200] = 3 example_field.data[200,200] = 4 example_field.flip_data_ud() iodriver.advanced_field_writer(os.path.join(self.directory, "advancedfieldwritingandloadingtest.nc"), example_field,fieldname='test_field', clobber=True) example_field.flip_data_ud() loaded_field = iodriver.advanced_field_loader(os.path.join(self.directory,"advancedfieldwritingandloadingtest.nc"), fieldname='test_field') np.testing.assert_array_equal(example_field.get_data(),loaded_field.get_data()) def testFieldWritingAndLoadingWithLatLongFieldWithRotation(self): example_field = field.makeEmptyField('Generic',dtype=np.int64,grid_type='HD') lat_points=np.linspace(89.75,-89.75,360,endpoint=True) lon_points=np.linspace(-179.75,179.75,720,endpoint=True) example_field.set_grid_coordinates((lat_points,lon_points)) example_field.data[20,20] = 1 example_field.data[200,20] = 2 example_field.data[20,200] = 3 example_field.data[200,200] = 4 example_field.rotate_field_by_a_hundred_and_eighty_degrees() iodriver.advanced_field_writer(os.path.join(self.directory, "advancedfieldwritingandloadingtest.nc"), example_field,fieldname='test_field', clobber=True) example_field.rotate_field_by_a_hundred_and_eighty_degrees() loaded_field = iodriver.advanced_field_loader(os.path.join(self.directory,"advancedfieldwritingandloadingtest.nc"), fieldname='test_field') np.testing.assert_array_equal(example_field.get_data(),loaded_field.get_data()) def testFieldWritingAndLoadingWithLatLongFieldWithRotationNoAdjustment(self): example_field = field.makeEmptyField('Generic',dtype=np.int64,grid_type='HD') lat_points=np.linspace(89.75,-89.75,360,endpoint=True) lon_points=np.linspace(-179.75,179.75,720,endpoint=True) example_field.set_grid_coordinates((lat_points,lon_points)) example_field.data[20,20] = 1 example_field.data[200,20] = 2 example_field.data[20,200] = 3 example_field.data[200,200] = 4 example_field.rotate_field_by_a_hundred_and_eighty_degrees() iodriver.advanced_field_writer(os.path.join(self.directory, "advancedfieldwritingandloadingtest.nc"), example_field,fieldname='test_field', clobber=True) loaded_field = iodriver.advanced_field_loader(os.path.join(self.directory,"advancedfieldwritingandloadingtest.nc"), fieldname='test_field',adjust_orientation=False) np.testing.assert_array_equal(example_field.get_data(),loaded_field.get_data()) def testFieldWritingAndLoadingWithLatLongFieldWithFlip(self): example_field = field.makeEmptyField('Generic',dtype=np.int64,grid_type='HD') lat_points=np.linspace(89.75,-89.75,360,endpoint=True) lon_points=np.linspace(-179.75,179.75,720,endpoint=True) example_field.set_grid_coordinates((lat_points,lon_points)) example_field.data[20,20] = 1 example_field.data[200,20] = 2 example_field.data[20,200] = 3 example_field.data[200,200] = 4 example_field.flip_data_ud() iodriver.advanced_field_writer(os.path.join(self.directory, "advancedfieldwritingandloadingtest.nc"), example_field,fieldname='test_field', clobber=True) loaded_field = iodriver.advanced_field_loader(os.path.join(self.directory,"advancedfieldwritingandloadingtest.nc"), fieldname='test_field',adjust_orientation=False) np.testing.assert_array_equal(example_field.get_data(),loaded_field.get_data()) def testFieldWritingAndLoadingWithLatLongFloatingPointField(self): example_field = field.makeEmptyField('Generic',dtype=np.float64,grid_type='HD') lat_points=np.linspace(89.75,-89.75,360,endpoint=True) lon_points=np.linspace(-179.75,179.75,720,endpoint=True) example_field.set_grid_coordinates((lat_points,lon_points)) example_field.data[20,20] = 1.5 example_field.data[200,20] = 2.5 example_field.data[20,200] = 3.5 example_field.data[200,200] = 4.5 iodriver.advanced_field_writer(os.path.join(self.directory, "advancedfieldwritingandloadingtest.nc"), example_field,fieldname='test_field', clobber=True) loaded_field = iodriver.advanced_field_loader(os.path.join(self.directory,"advancedfieldwritingandloadingtest.nc"), fieldname='test_field') np.testing.assert_array_equal(example_field.get_data(),loaded_field.get_data()) self.assertEqual(loaded_field.data[20,20],1.5) self.assertEqual(loaded_field.data[200,20],2.5) self.assertEqual(loaded_field.data[20,200],3.5) self.assertEqual(loaded_field.data[200,200],4.5) def testFieldWritingAndLoadingWithLatLongNoClobber(self): example_field = field.makeEmptyField('Generic',dtype=np.float64,grid_type='HD') lat_points=np.linspace(89.75,-89.75,360,endpoint=True) lon_points=np.linspace(-179.75,179.75,720,endpoint=True) example_field.set_grid_coordinates((lat_points,lon_points)) example_field.data[20,20] = 1.5 example_field.data[200,20] = 2.5 example_field.data[20,200] = 3.5 example_field.data[200,200] = 4.5 iodriver.advanced_field_writer(os.path.join(self.directory, "advancedfieldwritingandloadingtest.nc"), example_field,fieldname='test_field', clobber=True) with self.assertRaisesRegex(RuntimeError,r"Target file /Users/thomasriddick/Documents/data/temp/advancedfieldwritingandloadingtest.nc already exists and clobbering is not set"): iodriver.advanced_field_writer(os.path.join(self.directory, "advancedfieldwritingandloadingtest.nc"), example_field,fieldname='test_field', clobber=False) if __name__ == "__main__": #import sys;sys.argv = ['', 'Test.testName'] unittest.main()
64.23224
185
0.476711
1,999
23,509
5.375188
0.118559
0.053606
0.041694
0.020847
0.865333
0.854723
0.838157
0.825314
0.798139
0.787529
0
0.067861
0.44902
23,509
365
186
64.408219
0.761677
0.032966
0
0.812287
0
0.003413
0.127277
0.05286
0
0
0
0
0.119454
1
0.054608
false
0
0.027304
0
0.085324
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
979aea0800306fdfa8792533b8428b52f6b679e0
106
py
Python
supercell/highways/__init__.py
clintecker/supercell
6baa174c8fca1a6f805d3853bdcf9cd5148b53ca
[ "MIT" ]
null
null
null
supercell/highways/__init__.py
clintecker/supercell
6baa174c8fca1a6f805d3853bdcf9cd5148b53ca
[ "MIT" ]
1
2020-09-06T19:45:25.000Z
2020-09-06T19:45:25.000Z
supercell/highways/__init__.py
clintecker/supercell
6baa174c8fca1a6f805d3853bdcf9cd5148b53ca
[ "MIT" ]
null
null
null
from . import cams # noqa: F401 from . import conditions # noqa: F401 from . import signs # noqa: F401
26.5
38
0.688679
15
106
4.866667
0.466667
0.410959
0.328767
0.493151
0
0
0
0
0
0
0
0.109756
0.226415
106
3
39
35.333333
0.780488
0.301887
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
979d1a9903b91e95dcebf2aa96d9640d66dcdb46
8,049
py
Python
CASutils/readdata_utils.py
islasimpson/CASanalysis
b150a4ca1e216c1e847835602cf60e5fa12dd385
[ "Apache-2.0" ]
1
2022-02-13T07:59:36.000Z
2022-02-13T07:59:36.000Z
CASutils/readdata_utils.py
islasimpson/CASanalysis
b150a4ca1e216c1e847835602cf60e5fa12dd385
[ "Apache-2.0" ]
null
null
null
CASutils/readdata_utils.py
islasimpson/CASanalysis
b150a4ca1e216c1e847835602cf60e5fa12dd385
[ "Apache-2.0" ]
2
2021-04-15T22:28:05.000Z
2021-06-17T20:40:13.000Z
# routines for reading in data in various forms import xarray as xr import pandas as pd import numpy as np from pandas import Timedelta as timedelta import sys def read_cesm_h0(fpath, datestart, dateend, var): """Read in a variable from CESM history files. Adapted for CESM's wierd calendar. Setting the time axis as the average of time_bnds """ dat = xr.open_mfdataset(fpath, coords="minimal", decode_times=True) dat = dat[var] try: timebndavg = np.array(dat.time_bnds, dtype='datetime64[s]').view('i8').mean(axis=1).astype('datetime64[s]') except: timebndavg = np.array(dat.time_bounds, dtype='datetime64[s]').view('i8').mean(axis=1).astype('datetime64[s]') dat['time'] = timebndavg dat = dat.sel(time=slice(datestart, dateend)) return dat def read_sfc_cesm(filepath, datestart, dateend): """Read in a time slice of a surface field from datestart to dateend. Adapted for CESM's wierd calendar. Setting the time axis as the average of time_bnds Args: filepath (string) = directory where files are located datestart (string) = start date for time slice dateend (string) = end date for time slice """ dat = xr.open_mfdataset(filepath, coords="minimal", join="override", decode_times = True) try: dat=dat.rename({"longitude":"lon", "latitude":"lat"}) #problematic coord names except: pass # setting the time axis as the verage of time bounds. try: try: timebndavg = np.array(dat.time_bnds, dtype='datetime64[s]').view('i8').mean(axis=1).astype('datetime64[s]') except: timebndavg = np.array(dat.time_bounds, dtype='datetime64[s]').view('i8').mean(axis=1).astype('datetime64[s]') dat['time'] = timebndavg except: print("warning, you're reading CESM data but there's no time_bnds") print("make sure you're reading in what you're expecting to") dat = dat.sel(time=slice(datestart, dateend)) return dat def read_sfc_cesm_dailyavg(filepath, datestart, dateend): """Read in a time slice of a surface field from datestart to dateend. Adapted for CESM's wierd calendar. Setting the time axis as the average of time_bnds Here specifying the hour as 12:00:00 to make sure we don't take the first timestamp which is actually dec 31st from the year before the start Args: filepath (string) = directory where files are located datestart (string) = start date for time slice dateend (string) = end date for time slice """ try: dat = xr.open_mfdataset(filepath, coords="minimal", join="override", decode_times = True) except: dat = xr.open_mfdataset(filepath, coords="minimal", join="override", decode_times = False) dat = xr.decode_cf(dat, use_cftime = True) #dat = dat.sel(time=slice(datestart, dateend)) datetimeindex = dat.indexes['time'].to_datetimeindex() dat['time'] = datetimeindex print("Something's wierd about the time axis, decoding manually") try: dat=dat.rename({"longitude":"lon", "latitude":"lat"}) #problematic coord names except: pass # setting the time axis as the average of time bounds. try: try: timebndavg = np.array(dat.time_bnds, dtype='datetime64[s]').view('i8').mean(axis=1).astype('datetime64[s]') except: timebndavg = np.array(dat.time_bounds, dtype='datetime64[s]').view('i8').mean(axis=1).astype('datetime64[s]') # manually fix the average of time bounds at 02/29-03/02 for leap years dates = pd.DatetimeIndex(timebndavg) lyindices = np.argwhere( (dates.month == 2) & (dates.day == 29)) if (len(lyindices) > 0): for i in lyindices: timebndavg[i] = str(dates.year[i].item())+"-02-28T12:00:00" dat['time'] = timebndavg dat = dat.sel(time=slice(datestart+"T12:00:00", dateend+"T12:00:00")) except: print("warning, you're reading CESM data but there's no time_bnds") print("make sure you're reading in what you're expecting to") dat = dat.sel(time=slice(datestart,dateend)) return dat def read_sfc_cesm_3hourly(filepath, datestart, dateend): """Read in a time slice of a 3 hourly surface field from datestart to dateend. Adapted for CESM's wierd calendar. Setting the time axis to the average of time_bnds. """ dat = xr.open_mfdataset(filepath, coords="minimal", join="override", decode_times=True) timebndavg = np.array(dat.time_bnds, dtype='datetime64[s]').view('i8').mean(axis=1).astype('datetime64[s]') dates = pd.DatetimeIndex(timebndavg) lyindices = np.argwhere( (dates.month == 2) & (dates.day == 29)) if (len(lyindices) > 0): for i in lyindices: timebndavg[i] = str(dates.year[i].item())+"-02-28T22:30:00" dat['time'] = timebndavg dat = dat.sel(time=slice(datestart+"T01:30:00", dateend+"T22:30:00")) return dat def read_sfc(filepath, datestart, dateend): """Read in a time slice of a surface field from datestart to dateend. Try using datetime64 and if that doesn't work decode times manually. Args: filepath (string) = directory where files are located datestart (string) = start date for time slice dateend (string) = end date for time slice """ #First try opening and doing the select assuming everything is working ok with the time axis try: dat = \ xr.open_mfdataset\ (filepath, coords="minimal", join="override", decode_times=True, use_cftime=True).\ sel(time=slice(datestart, dateend)) try: dat=dat.rename({"longitude":"lon", "latitude":"lat"}) #problematic coord names print("changing longitude --> lon, latitude --> lat") except: pass except: dat = xr.open_mfdataset(filepath, coords="minimal", join="override", decode_times = False) try: dat=dat.rename({"longitude":"lon", "latitude":"lat"}) #problematic coord names except: pass dat = xr.decode_cf(dat, use_cftime = True) dat = dat.sel(time=slice(datestart, dateend)) datetimeindex = dat.indexes['time'].to_datetimeindex() dat['time'] = datetimeindex print("Something's wierd about the time axis, decoding manually") return dat def read_zonalmean(filepath, datestart, dateend): """Read in a time slice from datestart to dateend and calculate the zonal mean. Try using datetime64 and if that doesn't work decode times manually. Args: filepath (string) = path to files e.g., "/path/to/files/*.nc" datestart (string) = start date for time slice dateend (string) = end date for time slice """ try: dat = xr.open_mfdataset(filepath, coords="minimal", join="override", decode_times=True, use_cftime=True).\ sel(time=slice(datestart, dateend)) try: datzm=dat.mean(dim="lon") except: # deal with problematic coordinate names dat=dat.rename({"longitude":"lon", "latitude":"lat"}) datzm=dat.mean(dim="lon") except: print("Something's wierd about the time axis, decoding manually") dat = xr.open_mfdataset(filepath, coords="minimal", join="override", decode_times=False) try: datzm=dat.mean(dim="lon") except: # deal with problematic coordinate names dat=dat.rename({"longitude":"lon", "latitude":"lat"}) datzm=dat.mean(dim="lon") datzm=xr.decode_cf(datzm, use_cftime=True) datzm=datzm.sel(time=slice(datestart, dateend)) datetimeindex=datzm.indexes['time'].to_datetimeindex() datzm['time'] = datetimeindex return datzm
37.966981
98
0.629892
1,060
8,049
4.732075
0.172642
0.041268
0.02193
0.041866
0.840112
0.831938
0.822568
0.822568
0.814593
0.805622
0
0.019409
0.251087
8,049
211
99
38.146919
0.812707
0.274568
0
0.772358
0
0
0.178559
0
0
0
0
0
0
1
0.04878
false
0.03252
0.04065
0
0.138211
0.065041
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
97cbef019f17e23e31bdf1afb097e5a99e81f816
678
py
Python
tests/test_apply_profile.py
tasptz/py-lcms
82855e4c251ba20328ccaf78342bb0b87209a8c0
[ "MIT" ]
3
2021-04-12T15:58:35.000Z
2022-03-29T11:04:26.000Z
tests/test_apply_profile.py
tasptz/py-lcms
82855e4c251ba20328ccaf78342bb0b87209a8c0
[ "MIT" ]
null
null
null
tests/test_apply_profile.py
tasptz/py-lcms
82855e4c251ba20328ccaf78342bb0b87209a8c0
[ "MIT" ]
1
2022-03-01T01:07:39.000Z
2022-03-01T01:07:39.000Z
import pytest def test_identity_8(): import numpy as np img = np.random.randint(0, 2**8 - 1, (256, 256, 3), np.uint8) from lcms import apply_profile img_t = apply_profile(img, 'srgb') assert np.array_equal(img, img_t) def test_identity_16(): import numpy as np img = np.random.randint(0, 2**16 - 1, (256, 256, 3), np.uint16) from lcms import apply_profile img_t = apply_profile(img, 'srgb') assert np.array_equal(img, img_t) def test_identity_flt(): import numpy as np img = np.random.rand(4, 4, 3).astype(np.float32) from lcms import apply_profile img_t = apply_profile(img, 'srgb') assert np.allclose(img, img_t)
29.478261
67
0.671091
115
678
3.782609
0.304348
0.165517
0.206897
0.103448
0.806897
0.76092
0.76092
0.701149
0.701149
0.701149
0
0.063315
0.207965
678
22
68
30.818182
0.746741
0
0
0.578947
0
0
0.017699
0
0
0
0
0
0.157895
1
0.157895
false
0
0.368421
0
0.526316
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
1
0
1
0
0
9
8aeb8519f8e6dfa909bd98ef1b56d43a75f83b70
3,706
py
Python
hrp/common/util/__init__.py
ken-mathenge/health_research_portal
e7e5ac8109c002a2d666c27ad076bbe040e00e5f
[ "MIT" ]
1
2020-01-21T10:27:35.000Z
2020-01-21T10:27:35.000Z
hrp/common/util/__init__.py
ken-mathenge/health_research_portal
e7e5ac8109c002a2d666c27ad076bbe040e00e5f
[ "MIT" ]
13
2020-03-23T09:25:15.000Z
2020-07-14T12:41:14.000Z
hrp/common/util/__init__.py
KennethMathenge/health_research_portal
e7e5ac8109c002a2d666c27ad076bbe040e00e5f
[ "MIT" ]
null
null
null
"""Common utilities.""" KEYWORDS = [ ["plasmodium"], ["diagnosis"], ["diagnostic"], ["food"], ["laboratories"], ["treatment"], ["control"], ["location"], ["county"], ["isolates"], ["fever"], ["salmonella"], ["water"], ["climate",], ["hpv"], ] # Get better key words URL_LIST = [ # UON Repository links "http://erepository.uonbi.ac.ke/discover?scope=%2F&query=malaria&submit=&rpp=50&sort_by=dc.date.issued_dt&order=desc", "http://erepository.uonbi.ac.ke/discover?scope=%2F&query=cancer&submit=&rpp=10&sort_by=dc.date.issued_dt&order=desc", "http://erepository.uonbi.ac.ke/discover?scope=%2F&query=typhoid&submit=&rpp=10&sort_by=dc.date.issued_dt&order=desc", "http://erepository.uonbi.ac.ke/discover?scope=%2F&query=pneumonia&submit=&rpp=10&sort_by=dc.date.issued_dt&order=desc", "http://erepository.uonbi.ac.ke/discover?scope=%2F&query=diabetes&submit=&rpp=10&sort_by=dc.date.issued_dt&order=desc", "http://erepository.uonbi.ac.ke/discover?scope=%2F&query=cholera&submit=&rpp=10&sort_by=dc.date.issued_dt&order=desc", "http://erepository.uonbi.ac.ke/discover?scope=%2F&query=tuberculosis&submit=&rpp=10&sort_by=dc.date.issued_dt&order=desc", "http://erepository.uonbi.ac.ke/discover?scope=%2F&query=measles&submit=&rpp=10&sort_by=dc.date.issued_dt&order=desc", "http://erepository.uonbi.ac.ke/discover?scope=%2F&query=diabetes+mellitus&submit=&rpp=10&sort_by=dc.date.issued_dt&order=desc", "http://erepository.uonbi.ac.ke/discover?scope=%2F&query=malnutrition&submit=&rpp=10&sort_by=dc.date.issued_dt&order=desc", "http://erepository.uonbi.ac.ke/discover?scope=%2F&query=asthma&submit=&rpp=10&sort_by=dc.date.issued_dt&order=desc", "http://erepository.uonbi.ac.ke/discover?scope=%2F&query=hiv&submit=&rpp=10&sort_by=dc.date.issued_dt&order=desc", # KU Repository links "https://ir-library.ku.ac.ke/discover?scope=%2F&query=malaria&submit=&rpp=10&sort_by=dc.date.issued_dt&order=desc", "https://ir-library.ku.ac.ke/discover?scope=%2F&query=cancer&submit=&rpp=10&sort_by=dc.date.issued_dt&order=desc", "https://ir-library.ku.ac.ke/discover?scope=%2F&query=typhoid&submit=&rpp=10&sort_by=dc.date.issued_dt&order=desc", "https://ir-library.ku.ac.ke/discover?scope=%2F&query=pneumonia&submit=&rpp=10&sort_by=dc.date.issued_dt&order=desc", "https://ir-library.ku.ac.ke/discover?scope=%2F&query=diabetes&submit=&rpp=10&sort_by=dc.date.issued_dt&order=desc", "https://ir-library.ku.ac.ke/discover?scope=%2F&query=cholera&submit=&rpp=10&sort_by=dc.date.issued_dt&order=desc", "https://ir-library.ku.ac.ke/discover?scope=%2F&query=tuberculosis&submit=&rpp=10&sort_by=dc.date.issued_dt&order=desc", "https://ir-library.ku.ac.ke/discover?scope=%2F&query=hiv&submit=&rpp=10&sort_by=dc.date.issued_dt&order=desc", # JKUAT Repository links # "http://ir.jkuat.ac.ke/discover?scope=%2F&query=cancer&submit=Go&rpp=10&sort_by=dc.date.issued_dt&order=desc", # "http://ir.jkuat.ac.ke/discover?scope=%2F&query=malaria&submit=Go&rpp=10&sort_by=dc.date.issued_dt&order=desc", # "http://ir.jkuat.ac.ke/discover?scope=%2F&query=diabetes&submit=Go&rpp=10&sort_by=dc.date.issued_dt&order=desc", # "http://ir.jkuat.ac.ke/discover?scope=%2F&query=typhoid&submit=Go&rpp=10&sort_by=dc.date.issued_dt&order=desc", # "http://ir.jkuat.ac.ke/discover?scope=%2F&query=pneumonia&submit=Go&rpp=10&sort_by=dc.date.issued_dt&order=desc", # "http://ir.jkuat.ac.ke/discover?scope=%2F&query=cholera&submit=Go&rpp=10&sort_by=dc.date.issued_dt&order=desc", # "http://ir.jkuat.ac.ke/discover?scope=%2F&query=hiv&submit=Go&rpp=10&sort_by=dc.date.issued_dt&order=desc", ]
69.924528
132
0.718564
616
3,706
4.233766
0.107143
0.041411
0.124233
0.175997
0.904141
0.904141
0.904141
0.904141
0.88612
0.847009
0
0.023499
0.069887
3,706
52
133
71.269231
0.733101
0.238802
0
0
0
0.512821
0.858824
0
0
0
0
0
0
1
0
false
0
0
0
0
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
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
c1119a9550112165bb5b0c693e4e47728b363451
275
py
Python
castvoterecords/__init__.py
nealmcb/PyCastVoteRecords
ad4d805379ab95f5fd92a30a5c07c701da99e005
[ "BSD-3-Clause" ]
null
null
null
castvoterecords/__init__.py
nealmcb/PyCastVoteRecords
ad4d805379ab95f5fd92a30a5c07c701da99e005
[ "BSD-3-Clause" ]
null
null
null
castvoterecords/__init__.py
nealmcb/PyCastVoteRecords
ad4d805379ab95f5fd92a30a5c07c701da99e005
[ "BSD-3-Clause" ]
null
null
null
from .CastVoteRecords import Code, Candidate, Party, IdentifierType, Contest, CandidateContest, VoteVariation, CandidateSelection, ContestSelection, CVRContest, CVRContestSelection, CVRSnapshot, CVR, GpUnit, Election, ReportingUnitType, CastVoteRecordReport, ReportingDevice
137.5
274
0.858182
21
275
11.238095
1
0
0
0
0
0
0
0
0
0
0
0
0.076364
275
1
275
275
0.929134
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
c12185c14649d3b90e05590923bd7bfc9f6166fa
82
py
Python
test/test_dir_1/test_app.py
zachjennings/github-actions-testing
f5a8444ea6fa88924b70db4c7b1d365e6288961b
[ "MIT" ]
null
null
null
test/test_dir_1/test_app.py
zachjennings/github-actions-testing
f5a8444ea6fa88924b70db4c7b1d365e6288961b
[ "MIT" ]
null
null
null
test/test_dir_1/test_app.py
zachjennings/github-actions-testing
f5a8444ea6fa88924b70db4c7b1d365e6288961b
[ "MIT" ]
null
null
null
from src.my_pkg.app import add_one def test_add_one(): assert add_one(3) == 4
20.5
34
0.719512
17
82
3.176471
0.764706
0.333333
0
0
0
0
0
0
0
0
0
0.029412
0.170732
82
4
35
20.5
0.764706
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
c1922a43cb05e223c8d1827b4f9f6e9f9236a4c2
11,570
py
Python
ReadTreeBin2.py
stalei/ReadTree
c07711aa6acdc3a42f3cfcab2e3eb965213f2757
[ "MIT" ]
null
null
null
ReadTreeBin2.py
stalei/ReadTree
c07711aa6acdc3a42f3cfcab2e3eb965213f2757
[ "MIT" ]
null
null
null
ReadTreeBin2.py
stalei/ReadTree
c07711aa6acdc3a42f3cfcab2e3eb965213f2757
[ "MIT" ]
null
null
null
# © Shahram Talei @ 2020 The University of Alabama #you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation; either version 3 of the License, or #(at your option) any later version. #You should have received a copy of the GNU General Public License #along with this program. If not, see <http://www.gnu.org/licenses/>. # This code is distributed as is and there is no warranty or technical support # This code reads the merger tree import numpy as np #import ytree from struct import * if __name__ == "__main__": file="/media/shahram/SD/Sample100Mpc/717/treedata/trees_264.0" MergerTreeFile=open(file,"rb") #fileContent=list(MergerTreeFile.readline()) fileContent=MergerTreeFile.read() count=unpack("ii", fileContent[:8]) print(count) Ntrees=count[0] totNhalos=count[1] print("There are %d trees and %d halos."%(Ntrees,totNhalos)) TreeNhalos=unpack("i"*Ntrees, fileContent[8:4*Ntrees+8]) print(TreeNhalos[0]) structSize=104 #6*4+14*4+8+3*4+4 structFormat="iiiiiiffffffffffffffqiiif" step=len(structFormat) print("step:%d"%step) TreeIndex=0 offset=4*Ntrees+8 start=0 if TreeIndex==0: start=0 else: for i in range(0,TreeIndex): start+=TreeNhalos[i]*structSize Position=start+offset L=structSize*TreeNhalos[TreeIndex]-Position print(L) #Tree=unpack(structFormat*TreeNhalos[TreeIndex], fileContent[4*Ntrees:structSi*TreeNhalos[TreeIndex]]) Tree=unpack(structFormat*TreeNhalos[TreeIndex], fileContent[Position:structSize*TreeNhalos[TreeIndex]+Position]) print(np.array(Tree).shape) #print(Tree[21]) k=0 Descendant=np.array([0]*TreeNhalos[TreeIndex]) FirstProgenitor=np.array([0]*TreeNhalos[TreeIndex]) NextProgenitor=np.array([0]*TreeNhalos[TreeIndex]) FirstHaloInFOFgroup=np.array([0]*TreeNhalos[TreeIndex]) NextHaloInFOFgroup=np.array([0]*TreeNhalos[TreeIndex]) Len=np.array([0]*TreeNhalos[TreeIndex]) Mvir=np.array([0.0]*TreeNhalos[TreeIndex]) SnapNum=np.array([0]*TreeNhalos[TreeIndex]) SubhaloIndex=np.array([0]*TreeNhalos[TreeIndex]) SubHalofMass=np.array([0.0]*TreeNhalos[TreeIndex]) # for i in range(0,len(Tree),step): Descendant[k]=Tree[i] FirstProgenitor[k]=Tree[i+1] NextProgenitor[k]=Tree[i+2] FirstHaloInFOFgroup[k]=Tree[i+3] NextHaloInFOFgroup[k]=Tree[i+4] Len[k]=Tree[i+5] Mvir[k]=Tree[i+7]*1.0e10 SnapNum[k]=Tree[i+21] SubhaloIndex[k]=Tree[i+23] SubHalofMass[k]=Tree[i+24] k+=1 #print((Mvir[0:100])) #print(set(SnapNum)) #print(SnapNum[0:280]) #print(Descendant[0:100]) MergerTreeFile.close() ## #Descendant=np.array(Descendant0) #SnapNum=np.array(SnapNum0) #just playing with tree ss=262 print(SnapNum == ss) print("test the extracts:") S=SnapNum[SnapNum == ss] #S=[x for x in SnapNum if x==1] #S = filter(lambda x: x ==ss , a) #print(len(S)) #print(S) #print("Descendant:") #c = [x for x in Descendant if x == True] #D = filter(lambda S: S ==ss , Descendant) D=Descendant[SnapNum==ss] #print(len(D)) #print(D) #print("FirstProgenitor:") #print(FirstProgenitor[SnapNum==ss]) #print("NextProgenitor:") #print(NextProgenitor[SnapNum==ss]) #print("FirstHaloInFOF:") #print(FirstHaloInFOFgroup[SnapNum==ss]) #print("NextHaloInFOFgroup:") #print(NextHaloInFOFgroup[SnapNum==ss]) #print("SubhaloIndex:") #print(SubhaloIndex[SnapNum==ss]) #print("Mvir:") #print(Mvir[SnapNum==ss]) ############################ #now let's extract our branch of the merger tree index=TreeIndex Smax=np.max(SnapNum) Smin=np.min(SnapNum) print(Smax,Smin) LL=Smax-Smin Snap=[0]*LL HID=[0]*LL SubID=[0]*LL j=0 snaprange=np.arange(Smax-1,Smin+1,-1) print(snaprange) for s in snaprange:#(Smax,Smin,-1): #s=263 #first we extract all halos in this snapshot Desc=Descendant[SnapNum==s] FirstProg=FirstProgenitor[SnapNum==s] NextPro=NextProgenitor[SnapNum==s] FirstFOF=FirstHaloInFOFgroup[SnapNum==s] Le=Len[SnapNum==s] Mv=Mvir[SnapNum==s] SubHalo=SubhaloIndex[SnapNum==s] #now we have to find all progenitors of the main halo (next snapshot, index) in this snapshot D=Desc[Desc==index] Fpro=FirstProg[Desc==index] Npro=NextPro[Desc==index] L=Le[Desc==index] M=Mv[Desc==index] print(M.size) SubH=SubHalo[Desc==index] FFOF=FirstFOF[Desc==index] if M.size: h=np.argmax(np.array(M))#we pick the most massive halo #mh=np.max(M) index=FFOF[h] subindex=SubH[h] else: index=-1 subindex=-1 Snap[j]=s HID[j]=index SubID[j]=subindex j+=1 #print(h) print(SubID) print(Snap) print(HID) # © Shahram Talei @ 2020 The University of Alabama #you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation; either version 3 of the License, or #(at your option) any later version. #You should have received a copy of the GNU General Public License #along with this program. If not, see <http://www.gnu.org/licenses/>. # This code is distributed as is and there is no warranty or technical support # This code reads the merger tree import numpy as np #import ytree from struct import * if __name__ == "__main__": file="/media/shahram/SD/Sample100Mpc/717/treedata/trees_264.0" MergerTreeFile=open(file,"rb") #fileContent=list(MergerTreeFile.readline()) fileContent=MergerTreeFile.read() count=unpack("ii", fileContent[:8]) print(count) Ntrees=count[0] totNhalos=count[1] print("There are %d trees and %d halos."%(Ntrees,totNhalos)) TreeNhalos=unpack("i"*Ntrees, fileContent[8:4*Ntrees+8]) print(TreeNhalos[0]) structSize=104 #6*4+14*4+8+3*4+4 structFormat="iiiiiiffffffffffffffqiiif" step=len(structFormat) print("step:%d"%step) TreeIndex=0 offset=4*Ntrees+8 start=0 if TreeIndex==0: start=0 else: for i in range(0,TreeIndex): start+=TreeNhalos[i]*structSize Position=start+offset L=structSize*TreeNhalos[TreeIndex]-Position print(L) #Tree=unpack(structFormat*TreeNhalos[TreeIndex], fileContent[4*Ntrees:structSi*TreeNhalos[TreeIndex]]) Tree=unpack(structFormat*TreeNhalos[TreeIndex], fileContent[Position:structSize*TreeNhalos[TreeIndex]+Position]) print(np.array(Tree).shape) #print(Tree[21]) k=0 Descendant=np.array([0]*TreeNhalos[TreeIndex]) FirstProgenitor=np.array([0]*TreeNhalos[TreeIndex]) NextProgenitor=np.array([0]*TreeNhalos[TreeIndex]) FirstHaloInFOFgroup=np.array([0]*TreeNhalos[TreeIndex]) NextHaloInFOFgroup=np.array([0]*TreeNhalos[TreeIndex]) Len=np.array([0]*TreeNhalos[TreeIndex]) Mvir=np.array([0.0]*TreeNhalos[TreeIndex]) SnapNum=np.array([0]*TreeNhalos[TreeIndex]) SubhaloIndex=np.array([0]*TreeNhalos[TreeIndex]) SubHalofMass=np.array([0.0]*TreeNhalos[TreeIndex]) # for i in range(0,len(Tree),step): Descendant[k]=Tree[i] FirstProgenitor[k]=Tree[i+1] NextProgenitor[k]=Tree[i+2] FirstHaloInFOFgroup[k]=Tree[i+3] NextHaloInFOFgroup[k]=Tree[i+4] Len[k]=Tree[i+5] Mvir[k]=Tree[i+7]*1.0e10 SnapNum[k]=Tree[i+21] SubhaloIndex[k]=Tree[i+23] SubHalofMass[k]=Tree[i+24] k+=1 #print((Mvir[0:100])) #print(set(SnapNum)) #print(SnapNum[0:280]) #print(Descendant[0:100]) MergerTreeFile.close() ## #Descendant=np.array(Descendant0) #SnapNum=np.array(SnapNum0) #just playing with tree ss=262 print(SnapNum == ss) print("test the extracts:") S=SnapNum[SnapNum == ss] #S=[x for x in SnapNum if x==1] #S = filter(lambda x: x ==ss , a) #print(len(S)) #print(S) #print("Descendant:") #c = [x for x in Descendant if x == True] #D = filter(lambda S: S ==ss , Descendant) D=Descendant[SnapNum==ss] #print(len(D)) #print(D) #print("FirstProgenitor:") #print(FirstProgenitor[SnapNum==ss]) #print("NextProgenitor:") #print(NextProgenitor[SnapNum==ss]) #print("FirstHaloInFOF:") #print(FirstHaloInFOFgroup[SnapNum==ss]) #print("NextHaloInFOFgroup:") #print(NextHaloInFOFgroup[SnapNum==ss]) #print("SubhaloIndex:") #print(SubhaloIndex[SnapNum==ss]) #print("Mvir:") #print(Mvir[SnapNum==ss]) ############################ #now let's extract our branch of the merger tree index=TreeIndex Smax=np.max(SnapNum) Smin=np.min(SnapNum) print(Smax,Smin) LL=Smax-Smin Snap=[0]*LL HID=[0]*LL SubID=[0]*LL j=0 Snap[j]=Smax HID[j]=FirstHaloInFOFgroup[0] SubID[j]=SubhaloIndex[0] snaprange=np.arange(Smax-1,Smin,-1) print(snaprange) for s in snaprange:#(Smax,Smin,-1): #s=263 j+=1 #first we extract all halos in this snapshot Desc=Descendant[SnapNum==s] FirstProg=FirstProgenitor[SnapNum==s] NextPro=NextProgenitor[SnapNum==s] FirstFOF=FirstHaloInFOFgroup[SnapNum==s] Le=Len[SnapNum==s] Mv=Mvir[SnapNum==s] SubHalo=SubhaloIndex[SnapNum==s] #now we have to find all progenitors of the main halo (next snapshot, index) in this snapshot D=Desc[Desc==index] Fpro=FirstProg[Desc==index] Npro=NextPro[Desc==index] L=Le[Desc==index] M=Mv[Desc==index] print(M.size) SubH=SubHalo[Desc==index] FFOF=FirstFOF[Desc==index] if M.size: h=np.argmax(np.array(M))#we pick the most massive halo #mh=np.max(M) index=FFOF[h] subindex=SubH[h] else: index=-1 subindex=-1 Snap[j]=s HID[j]=index SubID[j]=subindex # #print(h) print(SubID) print(Snap) print(HID) #SubIDbyte=bytearray(SubID) #Snapbyte=bytearray(Snap) #HIDbyte=bytearray(HID) with open('merger.ascii', 'w') as filehandle: for i in range(0,LL): filehandle.write('%d,%d,%d\n' %(Snap[i],HID[i],SubID[i])) with open('merger.bin', 'wb') as filehandle: for i in range(0,LL): #lst=[(Snap[i]).to_bytes(2, 'little'),HID[i].to_bytes(2, 'little'),SubID[i].to_bytes(2, 'little')] #bArray=bytes(lst) lst=pack('iii',Snap[i],HID[i],SubID[i]) filehandle.write(lst) #filehandle.write('%d,%d,%d\n' %(Snapbyte[i],HIDbyte[i],SubIDbyte[i]))
35.931677
120
0.595592
1,463
11,570
4.697198
0.150376
0.082945
0.023283
0.041909
0.96493
0.958382
0.948487
0.948487
0.923458
0.923458
0
0.025743
0.261366
11,570
321
121
36.043614
0.778142
0.30605
0
0.952381
0
0
0.043013
0.020361
0
0
0
0
0
1
0
false
0
0.019048
0
0.019048
0.133333
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
c1e339aa89628c86624f2e75f90d555d965d6c7a
70,530
py
Python
sptemp/tests/zeit_tests.py
BaumannDaniel/sptemp
5491fe7d10a1f984753ba4792405fc17af20fcf0
[ "MIT" ]
null
null
null
sptemp/tests/zeit_tests.py
BaumannDaniel/sptemp
5491fe7d10a1f984753ba4792405fc17af20fcf0
[ "MIT" ]
null
null
null
sptemp/tests/zeit_tests.py
BaumannDaniel/sptemp
5491fe7d10a1f984753ba4792405fc17af20fcf0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This module contains the unit-tests for the sptemp.zeit-modul Todo: """ import unittest import datetime as dt from sptemp import zeit from sptemp.interpolation import ICollection as IC class Test_Time_Period(unittest.TestCase): def setUp(self): self.tp1 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 20), dt.datetime(2018, 07, 25, 18, 30, 40)) self.tp2 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 30), dt.datetime(2018, 07, 25, 18, 30, 32)) self.tp3 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 50), dt.datetime(2018, 07, 25, 18, 30, 55)) def test_init(self): # test if TypeError is raised when start or end is not of type 'datetime.datetime' with self.assertRaises(TypeError): zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 20), "2018, 07, 25, 18, 30, 20") with self.assertRaises(TypeError): zeit.Time_Period(123.5, dt.datetime(2018, 07, 25, 18, 30, 20)) # test if ValueError is raised when start >= end with self.assertRaises(ValueError): zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 20), dt.datetime(2018, 07, 25, 18, 30, 20)) def test_start(self): # test if correct value is returned self.assertEqual(self.tp1.start, dt.datetime(2018, 07, 25, 18, 30, 20)) # test if TypeError is raised when start is not of type 'datetime.datetime' with self.assertRaises(TypeError): self.tp1.start = "xy" # test if ValueError is raised when start >= end with self.assertRaises(ValueError): self.tp1.start = dt.datetime(2018, 07, 25, 18, 30, 45) # test if correct value is assigned self.tp1.start = dt.datetime(2018, 07, 25, 18, 30, 29) self.assertEqual(self.tp1.start, dt.datetime(2018, 07, 25, 18, 30, 29)) def test_end(self): # test if correct value is returned self.assertEqual(self.tp1.end, dt.datetime(2018, 07, 25, 18, 30, 40)) # test if TypeError is raised when end is not of type 'datetime.datetime' with self.assertRaises(TypeError): self.tp1.end = "xy" # test if ValueError is raised when start >= end with self.assertRaises(ValueError): self.tp1.end = dt.datetime(2018, 07, 25, 18, 30, 20) # test if correct value is assigned self.tp1.end = dt.datetime(2018, 07, 25, 18, 30, 50) self.assertEqual(self.tp1.end, dt.datetime(2018, 07, 25, 18, 30, 50)) def test_from_iso(self): tp1 = zeit.Time_Period.from_iso("2017-07-25T22:00:00", "2017-07-25T22:00:10") self.assertEqual(tp1, zeit.Time_Period(dt.datetime(2017, 7, 25, 22, 0, 0), dt.datetime(2017, 7, 25, 22, 0, 10))) def test_lt(self): # test if TypeError is raised if type != datetime.datetime or sptemp.zeit.Time_Period with self.assertRaises(TypeError): self.tp1 < "xy" ts_x = dt.datetime(2018, 07, 25, 18, 30, 40) tp_x = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 32), dt.datetime(2018, 07, 25, 18, 30, 34)) tp_x2 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 34), dt.datetime(2018, 07, 25, 18, 30, 36)) # type(another) = datetime.datetime self.assertTrue(tp_x < ts_x) self.assertFalse(self.tp1 < ts_x) # type(another) = sptemp.zeit.Time_Period self.assertTrue(self.tp2 < self.tp3) self.assertFalse(self.tp2 < tp_x) self.assertFalse(tp_x < tp_x2) def test_gt(self): # test if TypeError is raised if type != datetime.datetime or sptemp.zeit.Time_Period with self.assertRaises(TypeError): self.tp1 > "xy" tp_x = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 32), dt.datetime(2018, 07, 25, 18, 30, 34)) tp_x2 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 34), dt.datetime(2018, 07, 25, 18, 30, 36)) # type(another) = datetime.datetime self.assertTrue(tp_x2 > tp_x.start) self.assertFalse(tp_x2 > tp_x.end) # type(another) = sptemp.zeit.Time_Period self.assertTrue(self.tp3 > self.tp1) self.assertFalse(tp_x2 > tp_x) def test_eq(self): tp_x = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 20), dt.datetime(2018, 07, 25, 18, 30, 40)) self.assertTrue(self.tp1 == tp_x) self.assertFalse(self.tp1 == self.tp2) self.assertFalse(self.tp1 == 123) def test_ne(self): tp_x = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 20), dt.datetime(2018, 07, 25, 18, 30, 40)) self.assertFalse(self.tp1 != tp_x) self.assertTrue(self.tp1 != self.tp2) self.assertTrue(self.tp1 != 123) def test_before(self): # test if TypeError is raised if type != datetime.datetime or sptemp.zeit.Time_Period with self.assertRaises(TypeError): self.tp1.before("xy") ts_x = dt.datetime(2018, 07, 25, 18, 30, 40) tp_x = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 32), dt.datetime(2018, 07, 25, 18, 30, 34)) tp_x2 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 34), dt.datetime(2018, 07, 25, 18, 30, 36)) # type(another) = datetime.datetime self.assertTrue(tp_x.before(ts_x)) self.assertFalse(self.tp1.before(ts_x)) # type(another) = sptemp.zeit.Time_Period self.assertTrue(self.tp2.before(self.tp3)) self.assertFalse(self.tp2.before(tp_x)) self.assertFalse(tp_x.before(tp_x2)) def test_after(self): # test if TypeError is raised if type != datetime.datetime or sptemp.zeit.Time_Period with self.assertRaises(TypeError): self.tp1.after("xy") tp_x = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 32), dt.datetime(2018, 07, 25, 18, 30, 34)) tp_x2 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 34), dt.datetime(2018, 07, 25, 18, 30, 36)) # type(another) = datetime.datetime self.assertTrue(tp_x2.after(tp_x.start)) self.assertFalse(tp_x2.after(tp_x.end)) # type(another) = sptemp.zeit.Time_Period self.assertTrue(self.tp3.after(self.tp1)) self.assertFalse(tp_x2.after(tp_x)) def test_contains(self): # test if TypeError is raised if type != datetime.datetime or sptemp.zeit.Time_Period with self.assertRaises(TypeError): self.tp1.contains("xy") ts_x1 = dt.datetime(2018, 07, 25, 18, 30, 40) ts_x2 = dt.datetime(2018, 07, 25, 18, 30, 50) tp_x1 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 39), dt.datetime(2018, 07, 25, 18, 30, 50)) tp_x2 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 40), dt.datetime(2018, 07, 25, 18, 30, 45)) tp_x3 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 40), dt.datetime(2018, 07, 25, 18, 30, 44)) # type(another) = datetime.datetime self.assertTrue(tp_x1.contains(ts_x1)) self.assertFalse(tp_x1.contains(ts_x2)) self.assertFalse(tp_x2.contains(ts_x1)) self.assertFalse(tp_x2.contains(ts_x2)) # type(another) = sptemp.zeit.Time_Period self.assertTrue(tp_x1.contains(tp_x2)) self.assertFalse(tp_x2.contains(tp_x1)) self.assertFalse(tp_x2.contains(tp_x3)) def test_includes(self): # test if TypeError is raised if type != datetime.datetime or sptemp.zeit.Time_Period with self.assertRaises(TypeError): self.tp1.includes("xy") ts_x1 = dt.datetime(2018, 07, 25, 18, 30, 39) ts_x2 = dt.datetime(2018, 07, 25, 18, 30, 50) ts_x3 = dt.datetime(2018, 07, 25, 18, 30, 45) tp_x1 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 39), dt.datetime(2018, 07, 25, 18, 30, 50)) tp_x2 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 40), dt.datetime(2018, 07, 25, 18, 30, 45)) tp_x3 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 40), dt.datetime(2018, 07, 25, 18, 30, 44)) # type(another) = datetime.datetime self.assertTrue(tp_x1.includes(ts_x1)) self.assertTrue(tp_x1.includes(ts_x2)) self.assertTrue(tp_x1.includes(ts_x3)) self.assertFalse(tp_x2.includes(ts_x1)) self.assertFalse(tp_x2.includes(ts_x2)) # type(another) = sptemp.zeit.Time_Period self.assertTrue(tp_x2.includes(tp_x3)) self.assertTrue(tp_x1.includes(tp_x3)) self.assertFalse(tp_x3.includes(tp_x1)) def test_meets(self): # test if TypeError is raised if type != datetime.datetime or sptemp.zeit.Time_Period with self.assertRaises(TypeError): self.tp1.meets("xy") ts_x1 = dt.datetime(2018, 07, 25, 18, 30, 40) tp_x1 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 30), dt.datetime(2018, 07, 25, 18, 30, 40)) tp_x2 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 40), dt.datetime(2018, 07, 25, 18, 30, 45)) # type(another) = datetime.datetime self.assertTrue(tp_x1.meets(ts_x1)) self.assertFalse(tp_x2.meets(ts_x1)) # type(another) = sptemp.zeit.Time_Period self.assertTrue(tp_x1.meets(tp_x2)) self.assertFalse(tp_x2.meets(tp_x1)) def test_metBy(self): # test if TypeError is raised if type != datetime.datetime or sptemp.zeit.Time_Period with self.assertRaises(TypeError): self.tp1.metBy("xy") ts_x1 = dt.datetime(2018, 07, 25, 18, 30, 30) tp_x1 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 30), dt.datetime(2018, 07, 25, 18, 30, 40)) tp_x2 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 20), dt.datetime(2018, 07, 25, 18, 30, 30)) # type(another) = datetime.datetime self.assertTrue(tp_x1.metBy(ts_x1)) self.assertFalse(tp_x2.metBy(ts_x1)) # type(another) = sptemp.zeit.Time_Period self.assertTrue(tp_x1.metBy(tp_x2)) self.assertFalse(tp_x2.metBy(tp_x1)) def test_equals(self): # test if TypeError is raised if type != sptemp.zeit.Time_Period with self.assertRaises(TypeError): self.tp1.equals(dt.datetime(2018, 07, 25, 18, 30, 40)) tp_x = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 20), dt.datetime(2018, 07, 25, 18, 30, 40)) self.assertTrue(self.tp1.equals(tp_x)) self.assertFalse(self.tp1.equals(self.tp2)) def test_during(self): # test if TypeError is raised if type != sptemp.zeit.Time_Period with self.assertRaises(TypeError): self.tp1.during(dt.datetime(2018, 07, 25, 18, 30, 40)) tp_x1 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 39), dt.datetime(2018, 07, 25, 18, 30, 50)) tp_x2 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 40), dt.datetime(2018, 07, 25, 18, 30, 45)) tp_x3 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 40), dt.datetime(2018, 07, 25, 18, 30, 44)) self.assertTrue(tp_x2.during(tp_x1)) self.assertFalse(tp_x3.during(tp_x2)) self.assertFalse(tp_x1.during(tp_x3)) def test_overlaps(self): # test if TypeError is raised if type != sptemp.zeit.Time_Period with self.assertRaises(TypeError): self.tp1.overlaps(dt.datetime(2018, 07, 25, 18, 30, 40)) tp_x1 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 40), dt.datetime(2018, 07, 25, 18, 30, 50)) tp_x2 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 45), dt.datetime(2018, 07, 25, 18, 30, 55)) tp_x3 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 50), dt.datetime(2018, 07, 25, 18, 30, 55)) tp_x4 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 44), dt.datetime(2018, 07, 25, 18, 30, 46)) tp_x5 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 35), dt.datetime(2018, 07, 25, 18, 30, 46)) self.assertTrue(tp_x1.overlaps(tp_x2)) self.assertFalse(tp_x1.overlaps(tp_x3)) self.assertFalse(tp_x1.overlaps(tp_x4)) self.assertFalse(tp_x1.overlaps(tp_x5)) def test_overlappedBy(self): # test if TypeError is raised if type != sptemp.zeit.Time_Period with self.assertRaises(TypeError): self.tp1.overlappedBy(dt.datetime(2018, 07, 25, 18, 30, 40)) tp_x1 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 40), dt.datetime(2018, 07, 25, 18, 30, 50)) tp_x2 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 45), dt.datetime(2018, 07, 25, 18, 30, 55)) tp_x3 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 50), dt.datetime(2018, 07, 25, 18, 30, 55)) tp_x4 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 44), dt.datetime(2018, 07, 25, 18, 30, 46)) tp_x5 = zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 35), dt.datetime(2018, 07, 25, 18, 30, 46)) self.assertTrue(tp_x1.overlappedBy(tp_x5)) self.assertFalse(tp_x1.overlappedBy(tp_x3)) self.assertFalse(tp_x1.overlappedBy(tp_x4)) self.assertFalse(tp_x1.overlappedBy(tp_x2)) class Test_TS_Object(unittest.TestCase): def setUp(self): self.ts1 = zeit.TS_Object(10, dt.datetime(2018, 07, 25, 18, 30, 10)) self.ts2 = zeit.TS_Object(20, zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 20), dt.datetime(2018, 07, 25, 18, 30, 40))) def test_init(self): # test if TypeError is raised when ts is not of type datetime.datetime and ts is not of type Time_Period with self.assertRaises(TypeError): zeit.TS_Object(123, "xy") def test_value(self): self.assertEqual(self.ts1.value, 10) # test if TypeError is raised when wrong type is assigned with self.assertRaises(TypeError): self.ts2.value = "xy" # check if correct value is assigned self.ts1.value = 14 self.assertEqual(self.ts1.value, 14) def test_eq(self): ts_x1 = zeit.TS_Object(10, dt.datetime(2018, 07, 25, 18, 30, 10)) ts_x2 = zeit.TS_Object(20, zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 20), dt.datetime(2018, 07, 25, 18, 30, 40))) self.assertTrue(self.ts1 == ts_x1) self.assertTrue(self.ts2 == ts_x2) self.assertFalse(ts_x1 == ts_x2) self.assertFalse(ts_x1 == zeit.TS_Object(20, dt.datetime(2018, 07, 25, 18, 30, 10))) self.assertFalse(ts_x1 == zeit.TS_Object(10, dt.datetime(2017, 07, 25, 18, 30, 10))) def test_ne(self): ts_x1 = zeit.TS_Object(10, dt.datetime(2018, 07, 25, 18, 30, 10)) ts_x2 = zeit.TS_Object(20, zeit.Time_Period(dt.datetime(2018, 07, 25, 18, 30, 20), dt.datetime(2018, 07, 25, 18, 30, 40))) self.assertFalse(self.ts1 != ts_x1) self.assertFalse(self.ts2 != ts_x2) self.assertTrue(ts_x1 != ts_x2) self.assertTrue(ts_x1 != zeit.TS_Object(20, dt.datetime(2018, 07, 25, 18, 30, 10))) self.assertTrue(ts_x1 != zeit.TS_Object(10, dt.datetime(2017, 07, 25, 18, 30, 10))) def test_start_time(self): self.assertEqual(self.ts1.start_time(), dt.datetime(2018, 07, 25, 18, 30, 10)) self.assertEqual(self.ts2.start_time(), dt.datetime(2018, 07, 25, 18, 30, 20)) def test_end_time(self): self.assertEqual(self.ts1.end_time(), dt.datetime(2018, 07, 25, 18, 30, 10)) self.assertEqual(self.ts2.end_time(), dt.datetime(2018, 07, 25, 18, 30, 40)) class Test_TS_Unit(unittest.TestCase): def setUp(self): self.start_ts1 = zeit.TS_Object(10, dt.datetime(2017, 07, 25, 20, 0, 0)) self.start_ts2 = zeit.TS_Object(10.0, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 10))) self.start_ts3 = zeit.TS_Object("test", dt.datetime(2017, 07, 25, 20, 0, 0)) self.end_ts1 = zeit.TS_Object(20, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 20), dt.datetime(2017, 07, 25, 20, 0, 30))) self.end_ts2 = zeit.TS_Object(20.0, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 20), dt.datetime(2017, 07, 25, 20, 0, 30))) self.end_ts3 = zeit.TS_Object("xy", dt.datetime(2017, 07, 25, 20, 0, 30)) def test_init(self): # test if TypeError is raised when ts is not of type sptemp.zeit.Time_Period with self.assertRaises(TypeError): zeit.TS_Unit(IC.constant, dt.datetime(2018, 07, 25, 18, 30, 10)) # test if TypeError is raised when value is not of type types.functionType with self.assertRaises(TypeError): zeit.TS_Unit(123, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 20), dt.datetime(2017, 07, 25, 20, 0, 30))) tu1 = zeit.TS_Unit(IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 20), dt.datetime(2017, 07, 25, 20, 0, 30))) self.assertEqual(tu1.value, IC.constant) self.assertEqual(tu1.ts, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 20), dt.datetime(2017, 07, 25, 20, 0, 30))) def test_interpolate(self): tu1 = zeit.TS_Unit(IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 55))) tu2 = zeit.TS_Unit(IC.next_ts, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 55))) tu3 = zeit.TS_Unit(IC.linear, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 55))) # test if TypeError is raised if start_ts or end_ts is not of type sptemp.zeit.TS_Object with self.assertRaises(TypeError): tu1.interpolate("xy", self.end_ts2, dt.datetime(2017, 07, 25, 20, 0, 12)) with self.assertRaises(TypeError): tu1.interpolate(self.start_ts2, "xy", dt.datetime(2017, 07, 25, 20, 0, 12)) # test if TypeError is raised if time is not of type datetime.datetime with self.assertRaises(TypeError): tu1.interpolate(self.start_ts2, self.end_ts2, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 55))) # test if ValueError is raised if Time_Unit does not include start_ts.end_time() or time with self.assertRaises(ValueError): tu1.interpolate(zeit.TS_Object(10, dt.datetime(2017, 07, 25, 19, 0, 0)), self.end_ts1, dt.datetime(2017, 07, 25, 20, 0, 12)) with self.assertRaises(ValueError): tu1.interpolate(self.start_ts1, self.end_ts1, dt.datetime(2017, 07, 25, 19, 0, 12)) self.assertEqual(tu1.interpolate(self.start_ts1, self.end_ts1, dt.datetime(2017, 07, 25, 20, 0, 12)), zeit.TS_Object(10, dt.datetime(2017, 07, 25, 20, 0, 12))) self.assertEqual(tu2.interpolate(self.start_ts1, self.end_ts1, dt.datetime(2017, 07, 25, 20, 0, 12)), zeit.TS_Object(20, dt.datetime(2017, 07, 25, 20, 0, 12))) self.assertEqual(tu3.interpolate(self.start_ts1, self.end_ts1, dt.datetime(2017, 07, 25, 20, 0, 12)), zeit.TS_Object(16, dt.datetime(2017, 07, 25, 20, 0, 12))) class Test_Interpolator(unittest.TestCase): def setUp(self): self.tsu1 = zeit.TS_Unit(IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 10))) self.tsu2 = zeit.TS_Unit(IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 10), dt.datetime(2017, 07, 25, 20, 0, 20))) self.tsu3 = zeit.TS_Unit(IC.linear, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 20), dt.datetime(2017, 07, 25, 20, 0, 30))) self.tsu4 = zeit.TS_Unit(IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 9), dt.datetime(2017, 07, 25, 20, 0, 20))) self.tsu5 = zeit.TS_Unit(IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 12), dt.datetime(2017, 07, 25, 20, 0, 20))) def test_init(self): # test if ValueError is raised when ts_unit_list is empty with self.assertRaises(ValueError): zeit.Interpolator([]) # test if TypeError is raised if ts_unit_list is not of type 'list' with self.assertRaises(TypeError): zeit.Interpolator("xy") # test if TypeError is raised if ts_unit_list includes objects that are not of type zeit.sptemp.TS_Unit with self.assertRaises(TypeError): zeit.Interpolator([self.tsu1, zeit.TS_Object(12, IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 10))), self.tsu3]) # test if TypeError is raised if ts_unit_list is not correctly time_sorted with self.assertRaises(ValueError): zeit.Interpolator([self.tsu1, self.tsu3, self.tsu2]) with self.assertRaises(ValueError): zeit.Interpolator([self.tsu1, self.tsu4, self.tsu3]) with self.assertRaises(ValueError): zeit.Interpolator([self.tsu1, self.tsu5, self.tsu3]) # correct Interpolator object zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) def test_len(self): ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) self.assertEqual(len(ip), 3) del ip[0] self.assertEqual(len(ip), 2) def test_getitem(self): ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) self.assertEqual(ip[0], self.tsu1) self.assertEqual(ip[:2], [self.tsu1, self.tsu2]) def test_setitem(self): ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) tsu_x = zeit.TS_Unit(IC.linear, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 10), dt.datetime(2017, 07, 25, 20, 0, 20))) # test if TypeError is raised if key is not of type int with self.assertRaises(TypeError): ip[0:2] = tsu_x # test if TypeError is raised if value is not of type sptemp.zeit.TS_Unit with self.assertRaises(TypeError): ip[1] = zeit.TS_Object(IC.linear, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 10), dt.datetime(2017, 07, 25, 20, 0, 20))) # test if IndexError is raised if Key is out of range with self.assertRaises(IndexError): ip[3] = tsu_x # test if ValueError is raised if value.ts does not match ts of replaced value with self.assertRaises(ValueError): ip[1] = zeit.TS_Unit(IC.linear, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 11), dt.datetime(2017, 07, 25, 20, 0, 20))) # correct assignment ip[1] = tsu_x self.assertEqual(ip.as_list(), [self.tsu1, tsu_x, self.tsu3]) def test_delitem(self): ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) # test if ValueError is raised if key is not 0 AND key does not index last item of object with self.assertRaises(ValueError): del ip[1] with self.assertRaises(ValueError): del ip[0:2] # test if correct value is deleted del ip[0] self.assertEqual(ip.as_list(), [self.tsu2, self.tsu3]) del ip[-1] self.assertEqual(ip.as_list(), [self.tsu2]) # test if ValueError is raised if len(object) == 1 with self.assertRaises(ValueError): del ip[0] def test_interpolate(self): ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) start_ts1 = zeit.TS_Object(10, dt.datetime(2017, 07, 25, 20, 0, 0)) start_ts2 = zeit.TS_Object(10, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 5))) start_ts3 = zeit.TS_Object(10, dt.datetime(2017, 07, 25, 20, 0, 10)) end_ts1 = zeit.TS_Object(20, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 20), dt.datetime(2017, 07, 25, 20, 0, 30))) end_ts2 = zeit.TS_Object(20, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 25), dt.datetime(2017, 07, 25, 20, 0, 30))) end_ts3 = zeit.TS_Object(20, dt.datetime(2017, 07, 25, 20, 0, 30)) # test if TypeError is raised if type of start_ts or end_ts is not sptemp.zeit.TS_Object with self.assertRaises(TypeError): ip.interpolate(123, end_ts1, dt.datetime(2017, 07, 25, 20, 0, 0)) with self.assertRaises(TypeError): ip.interpolate(start_ts1, 123, dt.datetime(2017, 07, 25, 20, 0, 0)) # test if TypeError is raised if time is not of type datetime.datetime with self.assertRaises(TypeError): ip.interpolate(start_ts1, end_ts1, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 20), dt.datetime(2017, 07, 25, 20, 0, 30))) # test if ValueError is raised if start_ts.end_time() < self.start_time with self.assertRaises(ValueError): ip.interpolate(zeit.TS_Object(10, dt.datetime(2017, 07, 25, 19, 0, 0)), end_ts1, dt.datetime(2017, 07, 25, 20, 0, 10)) # test if ValueError is raised if time not between start_ts.end_time() and end_ts.start_time() with self.assertRaises(ValueError): ip.interpolate(start_ts1, end_ts1, dt.datetime(2017, 07, 25, 20, 0, 25)) # test if ValueError is raised if start_ts.end_time() >= end_ts.start_time() with self.assertRaises(ValueError): ip.interpolate(start_ts1, start_ts1, dt.datetime(2017, 07, 25, 20, 0, 0)) #print ip.interpolate(start_ts1, end_ts1, dt.datetime(2017, 07, 25, 20, 0, 15)).ts self.assertEqual(ip.interpolate(start_ts1, end_ts1, dt.datetime(2017, 07, 25, 20, 0, 15)), zeit.TS_Object(10, dt.datetime(2017, 07, 25, 20, 0, 15))) self.assertEqual(ip.interpolate(start_ts1, end_ts1, dt.datetime(2017, 07, 25, 20, 0, 10)), zeit.TS_Object(10, dt.datetime(2017, 07, 25, 20, 0, 10))) self.assertEqual(ip.interpolate(start_ts1, end_ts1, dt.datetime(2017, 07, 25, 20, 0, 0)), zeit.TS_Object(10, dt.datetime(2017, 07, 25, 20, 0, 0))) self.assertEqual(ip.interpolate(start_ts2, end_ts2, dt.datetime(2017, 07, 25, 20, 0, 5)), zeit.TS_Object(10, dt.datetime(2017, 07, 25, 20, 0, 5))) self.assertEqual(ip.interpolate(start_ts2, end_ts2, dt.datetime(2017, 07, 25, 20, 0, 22)), zeit.TS_Object(14, dt.datetime(2017, 07, 25, 20, 0, 22))) self.assertEqual(ip.interpolate(start_ts2, end_ts2, dt.datetime(2017, 07, 25, 20, 0, 25)), zeit.TS_Object(20, dt.datetime(2017, 07, 25, 20, 0, 25))) self.assertEqual(ip.interpolate(start_ts3, end_ts3, dt.datetime(2017, 07, 25, 20, 0, 10)), zeit.TS_Object(10, dt.datetime(2017, 07, 25, 20, 0, 10))) self.assertEqual(ip.interpolate(start_ts3, end_ts3, dt.datetime(2017, 07, 25, 20, 0, 30)), zeit.TS_Object(20, dt.datetime(2017, 07, 25, 20, 0, 30))) self.assertEqual(ip.interpolate(start_ts3, end_ts3, dt.datetime(2017, 07, 25, 20, 0, 25)), zeit.TS_Object(15, dt.datetime(2017, 07, 25, 20, 0, 25))) self.assertEqual(ip.interpolate(start_ts3, end_ts3, dt.datetime(2017, 07, 25, 20, 0, 15)), zeit.TS_Object(10, dt.datetime(2017, 07, 25, 20, 0, 15))) def test_value(self): ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) # test if TypeError is raised if type of time is not datetime.datetime with self.assertRaises(TypeError): ip.value(zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 11), dt.datetime(2017, 07, 25, 20, 0, 20))) # test if correct values are returned self.assertEqual(ip.value(dt.datetime(2017, 07, 25, 19, 0, 11)), []) self.assertEqual(ip.value(dt.datetime(2017, 07, 25, 20, 0, 31)), []) self.assertEqual(ip.value(dt.datetime(2017, 07, 25, 20, 0, 0)), [self.tsu1]) self.assertEqual(ip.value(dt.datetime(2017, 07, 25, 20, 0, 5)), [self.tsu1]) self.assertEqual(ip.value(dt.datetime(2017, 07, 25, 20, 0, 10)), [self.tsu1, self.tsu2]) self.assertEqual(ip.value(dt.datetime(2017, 07, 25, 20, 0, 25)), [self.tsu3]) self.assertEqual(ip.value(dt.datetime(2017, 07, 25, 20, 0, 30)), [self.tsu3]) def test_slice(self): ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) # test if TypeError is raised if type of time is not sptemp.zeit.Time_Period with self.assertRaises(TypeError): ip.slice(dt.datetime(2017, 07, 25, 20, 0, 20)) tp1 = zeit.Time_Period(dt.datetime(2017, 07, 25, 19, 59, 30), dt.datetime(2017, 07, 25, 20, 0, 5)) tp2 = zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 5)) tp3 = zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 10)) tp4 = zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 15)) tp5 = zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 25), dt.datetime(2017, 07, 25, 20, 0, 35)) tp6 = zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 25), dt.datetime(2017, 07, 25, 20, 0, 30)) tp7 = zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 10), dt.datetime(2017, 07, 25, 20, 0, 45)) tp8 = zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 31), dt.datetime(2017, 07, 25, 20, 0, 45)) s1 = ip.slice(tp1) self.assertEqual(ip.start_time(), dt.datetime(2017, 07, 25, 20, 0, 0)) self.assertEqual(len(s1), 1) self.assertEqual(s1[0], zeit.TS_Unit(IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 5)))) s2 = ip.slice(tp2) self.assertEqual(len(s2), 1) self.assertEqual(s2[0], zeit.TS_Unit(IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 5)))) s3 = ip.slice(tp3) self.assertEqual(len(s3), 1) self.assertEqual(s3[0], zeit.TS_Unit(IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 10)))) s4 = ip.slice(tp4) self.assertEqual(len(s4), 2) self.assertEqual(s4[0], zeit.TS_Unit(IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 10)))) self.assertEqual(s4[1], zeit.TS_Unit(IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 10), dt.datetime(2017, 07, 25, 20, 0, 15)))) s5 = ip.slice(tp5) self.assertEqual(len(s5), 1) self.assertEqual(s5[0], zeit.TS_Unit(IC.linear, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 25), dt.datetime(2017, 07, 25, 20, 0, 30)))) s6 = ip.slice(tp6) self.assertEqual(len(s6), 1) self.assertEqual(s6[0], zeit.TS_Unit(IC.linear, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 25), dt.datetime(2017, 07, 25, 20, 0, 30)))) s7 = ip.slice(tp7) self.assertEqual(len(s7), 2) self.assertEqual(s7[0], zeit.TS_Unit(IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 10), dt.datetime(2017, 07, 25, 20, 0, 20)))) self.assertEqual(s7[1], zeit.TS_Unit(IC.linear, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 20), dt.datetime(2017, 07, 25, 20, 0, 30)))) s8 = ip.slice(tp8) self.assertEqual(s8, None) def test_as_list(self): ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) self.assertEqual(ip.as_list(), [self.tsu1, self.tsu2, self.tsu3]) def test_start_time(self): ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) self.assertEqual(ip.start_time(), dt.datetime(2017, 07, 25, 20, 0, 0)) def test_end_time(self): ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) self.assertEqual(ip.end_time(), dt.datetime(2017, 07, 25, 20, 0, 30)) def test_i_unit(self): ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) self.assertEqual(ip.i_unit(0), self.tsu1) def test_append(self): ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) tsu_x = zeit.TS_Unit(IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 30), dt.datetime(2017, 07, 25, 20, 0, 45))) # test if ValueError is raised if value is not of type sptemp.zeit.TS_Unit with self.assertRaises(TypeError): ip.append(zeit.TS_Object(IC.linear, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 10), dt.datetime(2017, 07, 25, 20, 0, 20)))) # test if ValueError is raised if value is not of type sptemp.zeit.TS_Unit with self.assertRaises(ValueError): ip.append(self.tsu4) # check if correct value is assigned ip.append(tsu_x) self.assertEqual(len(ip), 4) self.assertEqual(ip[3], tsu_x) def test_insert(self): # test if Type Error is raised if value is not of type sptemp.zeit.TS_Unit ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) with self.assertRaises(TypeError): ip.insert(zeit.TS_Object(IC.linear, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 10), dt.datetime(2017, 07, 25, 20, 0, 20)))) # test if ValueError is raised if value.start_time() and value.end_time() is not included in Time_Period(ip.start_time(), ip.end_time()) with self.assertRaises(ValueError): ip.insert(zeit.TS_Unit(IC.linear, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 35), dt.datetime(2017, 07, 25, 20, 0, 45)))) with self.assertRaises(ValueError): ip.insert(zeit.TS_Unit(IC.linear, zeit.Time_Period(dt.datetime(2017, 07, 25, 19, 0, 35), dt.datetime(2017, 07, 25, 19, 0, 45)))) # test if value is correctly inserted tsu_x1 = zeit.TS_Unit(IC.next_ts, zeit.Time_Period(dt.datetime(2017, 07, 25, 19, 59, 30), dt.datetime(2017, 07, 25, 20, 0, 0))) tsu_x2 = zeit.TS_Unit(IC.next_ts, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 30), dt.datetime(2017, 07, 25, 20, 0, 40))) tsu_x3 = zeit.TS_Unit(IC.next_ts, zeit.Time_Period(dt.datetime(2017, 07, 25, 19, 59, 50), dt.datetime(2017, 07, 25, 20, 0, 5))) tsu_x4 = zeit.TS_Unit(IC.next_ts, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 10), dt.datetime(2017, 07, 25, 20, 0, 20))) tsu_x5 = zeit.TS_Unit(IC.next_ts, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 12), dt.datetime(2017, 07, 25, 20, 0, 16))) tsu_x6 = zeit.TS_Unit(IC.next_ts, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 20), dt.datetime(2017, 07, 25, 20, 0, 25))) tsu_x7 = zeit.TS_Unit(IC.next_ts, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 25), dt.datetime(2017, 07, 25, 20, 0, 35))) tsu_x8 = zeit.TS_Unit(IC.next_ts, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 5), dt.datetime(2017, 07, 25, 20, 0, 25))) tsu_x9 = zeit.TS_Unit(IC.next_ts, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 10), dt.datetime(2017, 07, 25, 20, 0, 45))) tsu_x10 = zeit.TS_Unit(IC.next_ts, zeit.Time_Period(dt.datetime(2017, 07, 25, 19, 0, 10), dt.datetime(2017, 07, 25, 20, 0, 45))) tsu_x11 = zeit.TS_Unit(IC.next_ts, zeit.Time_Period(dt.datetime(2017, 07, 25, 19, 0, 10), dt.datetime(2017, 07, 25, 20, 0, 25))) tsu_x12 = zeit.TS_Unit(IC.next_ts, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 5), dt.datetime(2017, 07, 25, 20, 0, 45))) ip.insert(tsu_x1) self.assertEqual(len(ip), 4) self.assertEqual(ip[0], tsu_x1) del ip[0] ip.insert(tsu_x2) self.assertEqual(len(ip), 4) self.assertEqual(ip[-1], tsu_x2) del ip[-1] # -> replace to the left ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) ip.insert(tsu_x3) self.assertEqual(len(ip), 4) self.assertEqual(ip[0], tsu_x3) self.assertEqual(ip[1], zeit.TS_Unit(IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 5), dt.datetime(2017, 07, 25, 20, 0, 10)))) # -> replace existing value ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) ip.insert(tsu_x4) self.assertEqual(len(ip), 3) self.assertEqual(ip[1], tsu_x4) # -> split existing TS_Unit self.tsu2 = zeit.TS_Unit(IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 10), dt.datetime(2017, 07, 25, 20, 0, 20))) sp_x1 = zeit.TS_Unit(self.tsu2.value, zeit.Time_Period(self.tsu2.start_time(), tsu_x5.start_time())) sp_x2 = zeit.TS_Unit(self.tsu2.value, zeit.Time_Period(tsu_x5.end_time(), self.tsu2.end_time())) ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) ip.insert(tsu_x5) self.assertEqual(len(ip), 5) self.assertEqual(ip[2], tsu_x5) self.assertEqual(ip[1], sp_x1) self.assertEqual(ip[3], sp_x2) # adjust to the left--2 ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) ip.insert(tsu_x6) self.assertEqual(len(ip), 4) self.assertEqual(ip[2], tsu_x6) self.assertEqual(ip[3], zeit.TS_Unit(IC.linear, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 25), dt.datetime(2017, 07, 25, 20, 0, 30)))) # adjust to the right ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) ip.insert(tsu_x7) self.assertEqual(len(ip), 4) self.assertEqual(ip[3], tsu_x7) self.assertEqual(ip[2], zeit.TS_Unit(IC.linear, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 20), dt.datetime(2017, 07, 25, 20, 0, 25)))) # adjust to the right and left ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) ip.insert(tsu_x8) self.assertEqual(len(ip), 3) self.assertEqual(ip[1], tsu_x8) self.assertEqual(ip[0], zeit.TS_Unit(IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 5)))) self.assertEqual(ip[2], zeit.TS_Unit(IC.linear, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 25), dt.datetime(2017, 07, 25, 20, 0, 30)))) # -> deleting multiple items without adjustment needed ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) ip.insert(tsu_x9) self.assertEqual(len(ip), 2) self.assertEqual(ip[1], tsu_x9) self.assertEqual(ip[0], self.tsu1) # replace all items ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) ip.insert(tsu_x10) self.assertEqual(len(ip), 1) self.assertEqual(ip[0], tsu_x10) # adjust to the left--3 ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) ip.insert(tsu_x11) self.assertEqual(len(ip), 2) self.assertEqual(ip[0], tsu_x11) self.assertEqual(ip[1], zeit.TS_Unit(IC.linear, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 25), dt.datetime(2017, 07, 25, 20, 0, 30)))) # adjust to the right--2 ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) ip.insert(tsu_x12) self.assertEqual(len(ip), 2) self.assertEqual(ip[1], tsu_x12) self.assertEqual(ip[0], zeit.TS_Unit(IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 5)))) def test_delete(self): # test if TypeError is raised if time is not of type Time_Period ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) with self.assertRaises(TypeError): ip.delete(dt.datetime(2017, 07, 25, 20, 0, 10), dt.datetime(2017, 07, 25, 20, 0, 20)) # test if ValueError is raised if time would delete all items in Interpolator with self.assertRaises(ValueError): ip.delete(zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 30))) # test if ValueError is raised if time would delete values in the middle of the Interpolator with self.assertRaises(ValueError): ip.delete(zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 5), dt.datetime(2017, 07, 25, 20, 0, 29))) tp1 = zeit.Time_Period(dt.datetime(2017, 07, 25, 19, 59, 30), dt.datetime(2017, 07, 25, 20, 0, 5)) tp2 = zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 5)) tp3 = zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 15)) tp4 = zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 25), dt.datetime(2017, 07, 25, 20, 0, 35)) tp5 = zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 25), dt.datetime(2017, 07, 25, 20, 0, 30)) tp6 = zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 10), dt.datetime(2017, 07, 25, 20, 0, 45)) # delete left ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) ip.delete(tp1) self.assertEqual(len(ip), 3) self.assertEqual(ip[0], zeit.TS_Unit(IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 5), dt.datetime(2017, 07, 25, 20, 0, 10)))) ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) ip.delete(tp2) self.assertEqual(len(ip), 3) self.assertEqual(ip[0], zeit.TS_Unit(IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 5), dt.datetime(2017, 07, 25, 20, 0, 10)))) ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) ip.delete(tp3) self.assertEqual(len(ip), 2) self.assertEqual(ip[0], zeit.TS_Unit(IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 15), dt.datetime(2017, 07, 25, 20, 0, 20)))) # delete right ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) ip.delete(tp4) self.assertEqual(len(ip), 3) self.assertEqual(ip[2], zeit.TS_Unit(IC.linear, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 20), dt.datetime(2017, 07, 25, 20, 0, 25)))) ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) ip.delete(tp5) self.assertEqual(len(ip), 3) self.assertEqual(ip[2], zeit.TS_Unit(IC.linear, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 20), dt.datetime(2017, 07, 25, 20, 0, 25)))) ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) ip.delete(tp6) self.assertEqual(len(ip), 1) self.assertEqual(ip[0], zeit.TS_Unit(IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 10)))) def test_length(self): ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) self.assertEqual(ip.length(), 3) del ip[0] self.assertEqual(ip.length(), 2) class Test_Moving_Object(unittest.TestCase): def setUp(self): self.tsu1 = zeit.TS_Unit(IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 10))) self.tsu2 = zeit.TS_Unit(IC.constant, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 10), dt.datetime(2017, 07, 25, 20, 0, 20))) self.tsu3 = zeit.TS_Unit(IC.linear, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 20), dt.datetime(2017, 07, 25, 20, 0, 30))) self.ip = zeit.Interpolator([self.tsu1, self.tsu2, self.tsu3]) self.tpo1 = zeit.TS_Object(10, zeit.Time_Period(dt.datetime(2017, 07, 25, 19, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 0))) self.tpo2 = zeit.TS_Object(12, dt.datetime(2017, 07, 25, 20, 0, 5)) self.tpo3 = zeit.TS_Object(15, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 10), dt.datetime(2017, 07, 25, 20, 0, 15))) self.tpo4 = zeit.TS_Object(18, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 19), dt.datetime(2017, 07, 25, 20, 0, 22))) self.tpo5 = zeit.TS_Object(20, dt.datetime(2017, 07, 25, 20, 0, 30)) def test_init(self): # test if ValueError is raised if ts_object_list is empty with self.assertRaises(ValueError): zeit.Moving_Object([], self.ip) # test if ValueError is raised if ts_object_list is not of type list with self.assertRaises(TypeError): zeit.Moving_Object((self.tpo1, self.tpo2), self.ip) # test if ValueError is raised if interpolator is not of type sptemp.zeit.Interpolator with self.assertRaises(TypeError): zeit.Moving_Object([self.tpo1, self.tpo2], 123) # test if TypeError is raised if ts_object_list holds values that are not of type sptemp.zeit.TS_Object with self.assertRaises(TypeError): zeit.Moving_Object([self.tpo1, self.tpo2, 123], self.ip) # test if TypeError is raised if ts_object_list holds TS_Objects that don't hold the same type with self.assertRaises(TypeError): zeit.Moving_Object([self.tpo1, self.tpo2, zeit.TS_Object(20.0, dt.datetime(2017, 07, 25, 20, 0, 30))], self.ip) # test if ValueError is raised if ts_object_list is not sorted correctly and not disjoint with self.assertRaises(ValueError): zeit.Moving_Object([self.tpo1, self.tpo2, zeit.TS_Object(20, dt.datetime(2017, 07, 25, 20, 0, 5))], self.ip) # test if Moving_object is instantiated correctly mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3, self.tpo4, self.tpo5], self.ip) self.assertEqual(mo1.type, int) self.assertEqual(mo1.interpolator, self.ip) def test_len(self): mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3, self.tpo4, self.tpo5], self.ip) self.assertEqual(len(mo1), 5) def test_getitem(self): mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3, self.tpo4, self.tpo5], self.ip) self.assertEqual(mo1[0], self.tpo1) self.assertEqual(mo1[1:3], [self.tpo2, self.tpo3]) def test_setitem(self): mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3, self.tpo4, self.tpo5], self.ip) tso_x1 = zeit.TS_Object(12, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 4), dt.datetime(2017, 07, 25, 20, 0, 6))) # test if TypeError is raised if key is not of type int with self.assertRaises(TypeError): mo1[0:2] = tso_x1 # test if TypeError is raised if value is not of type sptemp.zeit.TS_Object with self.assertRaises(TypeError): mo1[1] = 123 # test if ValueError is raised if value.type != Moving_object.type with self.assertRaises(ValueError): mo1[1] = zeit.TS_Object(12.0, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 4), dt.datetime(2017, 07, 25, 20, 0, 6))) # test if IndexError is raised if Key is out of range with self.assertRaises(IndexError): mo1[5] = tso_x1 # test if ValueError is raised if value.ts and other TS_Objects in Moving_Object are not disjoint with self.assertRaises(ValueError): mo1[-1] = zeit.TS_Object(12, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 22), dt.datetime(2017, 07, 25, 20, 0, 25))) with self.assertRaises(ValueError): mo1[4] = zeit.TS_Object(12, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 22), dt.datetime(2017, 07, 25, 20, 0, 25))) with self.assertRaises(ValueError): mo1[3] = zeit.TS_Object(12, dt.datetime(2017, 07, 25, 20, 0, 4)) with self.assertRaises(ValueError): mo1[0] = zeit.TS_Object(12, zeit.Time_Period(dt.datetime(2017, 07, 25, 19, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 5))) with self.assertRaises(ValueError): mo1[1] = zeit.TS_Object(12, zeit.Time_Period(dt.datetime(2017, 07, 25, 19, 0, 6), dt.datetime(2017, 07, 25, 20, 0, 11))) # correct assignment mo1[1] = tso_x1 self.assertEqual(len(mo1), 5) self.assertEqual(mo1[1], tso_x1) mo1[0] = zeit.TS_Object(10, zeit.Time_Period(dt.datetime(2017, 07, 25, 18, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 2))) self.assertEqual(mo1[0], zeit.TS_Object(10, zeit.Time_Period(dt.datetime(2017, 07, 25, 18, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 2)))) mo1[4] = zeit.TS_Object(10, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 25), dt.datetime(2017, 07, 25, 20, 0, 45))) self.assertEqual(mo1[4], zeit.TS_Object(10, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 25), dt.datetime(2017, 07, 25, 20, 0, 45)))) def test_delitem(self): mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3, self.tpo4, self.tpo5], self.ip) mo2 = zeit.Moving_Object([self.tpo1], self.ip) # test if TypeError is raised if key is not of type int or slice with self.assertRaises(TypeError): del mo1[20.0] # test if ValueError is raised if deletion would leave moving_object empty with self.assertRaises(ValueError): del mo2[0] with self.assertRaises(ValueError): del mo1[:] # test if correct values are deleted del mo1[0:5:3] self.assertEqual(len(mo1), 3) self.assertEqual(mo1[0], self.tpo2) self.assertEqual(mo1[1], self.tpo3) self.assertEqual(mo1[2], self.tpo5) del mo1[0:2] self.assertEqual(len(mo1), 1) self.assertEqual(mo1[0], self.tpo5) def test_interpolate(self): mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3, self.tpo4, self.tpo5], self.ip) # test if TypeError is raised if type of time is not datetime.datetime with self.assertRaises(TypeError): mo1.interpolate(zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 25), dt.datetime(2017, 07, 25, 20, 0, 45))) # test if None is returned if time < Moving_Object.start_time() or > Moving_Object.end_time() self.assertEqual(mo1.interpolate(dt.datetime(2017, 07, 25, 18, 0, 25)), None) self.assertEqual(mo1.interpolate(dt.datetime(2017, 07, 25, 20, 0, 45)), None) # test if correct value is returned i_tso1 = mo1.interpolate(dt.datetime(2017, 07, 25, 20, 0, 30)) self.assertEqual(i_tso1, zeit.TS_Object(20, dt.datetime(2017, 07, 25, 20, 0, 30))) i_tso2 = mo1.interpolate(dt.datetime(2017, 07, 25, 19, 0, 0)) self.assertEqual(i_tso2, zeit.TS_Object(10, dt.datetime(2017, 07, 25, 19, 0, 0))) i_tso3 = mo1.interpolate(dt.datetime(2017, 07, 25, 20, 0, 15)) self.assertEqual(i_tso3, zeit.TS_Object(15, dt.datetime(2017, 07, 25, 20, 0, 15))) i_tso4 = mo1.interpolate(dt.datetime(2017, 07, 25, 20, 0, 12)) self.assertEqual(i_tso4, zeit.TS_Object(15, dt.datetime(2017, 07, 25, 20, 0, 12))) i_tso5 = mo1.interpolate(dt.datetime(2017, 07, 25, 20, 0, 7)) self.assertEqual(i_tso5, zeit.TS_Object(12, dt.datetime(2017, 07, 25, 20, 0, 7))) i_tso6 = mo1.interpolate(dt.datetime(2017, 07, 25, 20, 0, 27)) self.assertEqual(i_tso6, zeit.TS_Object(19, dt.datetime(2017, 07, 25, 20, 0, 27))) def test_slice(self): mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3, self.tpo4, self.tpo5], self.ip) # test if TypeError is raised if time is not of type sptemp.zeit.Time_Period with self.assertRaises(TypeError): mo1.slice(dt.datetime(2017, 07, 25, 20, 0, 25), self.ip) # test if None is returned if slice is empty self.assertEqual(mo1.slice(zeit.Time_Period(dt.datetime(2017, 07, 25, 18, 0, 25), dt.datetime(2017, 07, 25, 18, 0, 45))), None) self.assertEqual(mo1.slice(zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 35), dt.datetime(2017, 07, 25, 20, 0, 45))), None) self.assertEqual(mo1.slice(zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 2), dt.datetime(2017, 07, 25, 20, 0, 4))), None) # test if correct slice is returned s1 = mo1.slice(zeit.Time_Period(dt.datetime(2017, 07, 25, 18, 0, 2), dt.datetime(2017, 07, 25, 19, 30, 0))) self.assertEqual(len(s1), 1) self.assertEqual(s1[0], zeit.TS_Object(10, zeit.Time_Period(dt.datetime(2017, 07, 25, 19, 0, 0), dt.datetime(2017, 07, 25, 19, 30, 0)))) s2 = mo1.slice(zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 30), dt.datetime(2017, 07, 25, 20, 0, 45))) self.assertEqual(len(s2), 1) self.assertEqual(s2[0], zeit.TS_Object(20, dt.datetime(2017, 07, 25, 20, 0, 30))) s3 = mo1.slice(zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 2), dt.datetime(2017, 07, 25, 20, 0, 7))) self.assertEqual(len(s3), 1) self.assertEqual(s3[0], zeit.TS_Object(12, dt.datetime(2017, 07, 25, 20, 0, 5))) s4 = mo1.slice(zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 15), dt.datetime(2017, 07, 25, 20, 0, 19))) self.assertEqual(len(s4), 2) self.assertEqual(s4[0], zeit.TS_Object(15, dt.datetime(2017, 07, 25, 20, 0, 15))) self.assertEqual(s4[1], zeit.TS_Object(18, dt.datetime(2017, 07, 25, 20, 0, 19))) s5 = mo1.slice(zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 12), dt.datetime(2017, 07, 25, 20, 0, 20))) self.assertEqual(len(s5), 2) self.assertEqual(s5[0], zeit.TS_Object(15, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 12), dt.datetime(2017, 07, 25, 20, 0, 15)))) self.assertEqual(s5[1], zeit.TS_Object(18, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 19), dt.datetime(2017, 07, 25, 20, 0, 20)))) s6 = mo1.slice(zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 30))) self.assertEqual(len(s6), 5) self.assertEqual(s6[0], zeit.TS_Object(10, dt.datetime(2017, 07, 25, 20, 0, 0))) self.assertEqual(s6[-1], zeit.TS_Object(20, dt.datetime(2017, 07, 25, 20, 0, 30))) s7 = mo1.slice(zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 4), dt.datetime(2017, 07, 25, 20, 0, 22))) self.assertEqual(len(s7), 3) self.assertEqual(s7[0], zeit.TS_Object(12, dt.datetime(2017, 07, 25, 20, 0, 5))) self.assertEqual(s7[-1], zeit.TS_Object(18, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 19), dt.datetime(2017, 07, 25, 20, 0, 22)))) def test_resampled_slice(self): mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3, self.tpo4, self.tpo5], self.ip) # test if TypeError is raised if times is not of type list with self.assertRaises(TypeError): mo1.resampled_slice(dt.datetime(2017, 07, 25, 20, 0, 0)) # test if TypeError is raised if interpolator not of type sptemp.zeit.Interpolator with self.assertRaises(TypeError): mo1.resampled_slice(dt.datetime(2017, 07, 25, 20, 0, 0), 123) # test if ValueError is raised if length times < 2 with self.assertRaises(ValueError): mo1.resampled_slice([dt.datetime(2017, 07, 25, 20, 0, 0)]) rs1 = mo1.resampled_slice([dt.datetime(2017, 07, 25, 18, 0, 0), dt.datetime(2017, 07, 25, 18, 20, 0)]) rs2 = mo1.resampled_slice([dt.datetime(2017, 07, 25, 20, 0, 40), dt.datetime(2017, 07, 25, 20, 0, 50)]) rs3 = mo1.resampled_slice([dt.datetime(2017, 07, 25, 20, 0, 30), dt.datetime(2017, 07, 25, 20, 0, 50)]) rs4 = mo1.resampled_slice([dt.datetime(2017, 07, 25, 20, 0, 12), dt.datetime(2017, 07, 25, 20, 0, 17), dt.datetime(2017, 07, 25, 20, 0, 25)]) rs5 = mo1.resampled_slice([dt.datetime(2017, 07, 25, 20, 0, 24), dt.datetime(2017, 07, 25, 20, 0, 26), dt.datetime(2017, 07, 25, 20, 0, 28)]) self.assertEqual(rs1, None) self.assertEqual(rs2, None) self.assertEqual(len(rs3), 1) self.assertEqual(rs3[0], zeit.TS_Object(20, dt.datetime(2017, 07, 25, 20, 0, 30))) self.assertEqual(len(rs4), 4) self.assertEqual(rs4.as_list(), [zeit.TS_Object(15, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 12), dt.datetime(2017, 07, 25, 20, 0, 15))), zeit.TS_Object(15, dt.datetime(2017, 07, 25, 20, 0, 17)), zeit.TS_Object(18, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 19), dt.datetime(2017, 07, 25, 20, 0, 22))), zeit.TS_Object(18, dt.datetime(2017, 07, 25, 20, 0, 25))]) self.assertEqual(len(rs5), 3) self.assertEqual(rs5.as_list(), [zeit.TS_Object(18, dt.datetime(2017, 07, 25, 20, 0, 24)), zeit.TS_Object(19, dt.datetime(2017, 07, 25, 20, 0, 26)), zeit.TS_Object(19, dt.datetime(2017, 07, 25, 20, 0, 28))]) def test_as_list(self): mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3], self.ip) self.assertEqual(mo1.as_list(), [self.tpo1, self.tpo2, self.tpo3]) def test_i_object(self): mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3, self.tpo4, self.tpo5], self.ip) self.assertEqual(mo1.i_object(0), self.tpo1) def test_prev_ti(self): mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3, self.tpo4, self.tpo5], self.ip) # test if TypeError is raised if time not of type datetime.datetime with self.assertRaises(TypeError): mo1.prev_i(zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 25), dt.datetime(2017, 07, 25, 20, 0, 45))) # test if correct values are returned self.assertEqual(mo1.prev_i(dt.datetime(2017, 07, 25, 18, 0, 31)), None) self.assertEqual(mo1[mo1.prev_i(dt.datetime(2017, 07, 25, 20, 0, 31))], self.tpo5) self.assertEqual(mo1[mo1.prev_i(dt.datetime(2017, 07, 25, 20, 0, 5))], self.tpo2) self.assertEqual(mo1[mo1.prev_i(dt.datetime(2017, 07, 25, 20, 0, 12))], self.tpo3) self.assertEqual(mo1[mo1.prev_i(dt.datetime(2017, 07, 25, 20, 0, 19))], self.tpo4) self.assertEqual(mo1[mo1.prev_i(dt.datetime(2017, 07, 25, 20, 0, 24))], self.tpo4) def test_next_ts(self): mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3, self.tpo4, self.tpo5], self.ip) # test if TypeError is raised if time not of type datetime.datetime with self.assertRaises(TypeError): mo1.next_i(zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 25), dt.datetime(2017, 07, 25, 20, 0, 45))) # test if correct values are returned self.assertEqual(mo1.next_i(dt.datetime(2017, 07, 25, 20, 0, 31)), None) self.assertEqual(mo1[mo1.next_i(dt.datetime(2017, 07, 25, 18, 0, 31))], self.tpo1) self.assertEqual(mo1[mo1.next_i(dt.datetime(2017, 07, 25, 20, 0, 0))], self.tpo1) self.assertEqual(mo1[mo1.next_i(dt.datetime(2017, 07, 25, 20, 0, 5))], self.tpo2) self.assertEqual(mo1[mo1.next_i(dt.datetime(2017, 07, 25, 20, 0, 12))], self.tpo3) self.assertEqual(mo1[mo1.next_i(dt.datetime(2017, 07, 25, 20, 0, 17))], self.tpo4) self.assertEqual(mo1[mo1.next_i(dt.datetime(2017, 07, 25, 20, 0, 22))], self.tpo4) self.assertEqual(mo1[mo1.next_i(dt.datetime(2017, 07, 25, 20, 0, 26))], self.tpo5) self.assertEqual(mo1[mo1.next_i(dt.datetime(2017, 07, 25, 20, 0, 30))], self.tpo5) def test_start_time(self): mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3], self.ip) self.assertEqual(mo1.start_time(), self.tpo1.start_time()) def test_end_time(self): mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3], self.ip) self.assertEqual(mo1.end_time(), self.tpo3.end_time()) def test_append(self): mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3, self.tpo4, self.tpo5], self.ip) # test if TypeError is raised if value is not of type sptemp.zeit.TS_Object with self.assertRaises(TypeError): mo1.append(123) # test if ValueError is raised if TS_Object.start_time() <= Moving_Object.end_time() with self.assertRaises(ValueError): mo1.append(zeit.TS_Object(10, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 30), dt.datetime(2017, 07, 25, 20, 0, 32)))) with self.assertRaises(ValueError): mo1.append(zeit.TS_Object(10, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 23), dt.datetime(2017, 07, 25, 20, 0, 32)))) with self.assertRaises(ValueError): mo1.append(zeit.TS_Object(10, dt.datetime(2017, 07, 25, 20, 0, 30))) # test if correct value is appended mo1.append(zeit.TS_Object(15, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 40), dt.datetime(2017, 07, 25, 20, 0, 45)))) self.assertEqual(len(mo1), 6) self.assertEqual(mo1[-1], zeit.TS_Object(15, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 40), dt.datetime(2017, 07, 25, 20, 0, 45)))) def test_insert(self): mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3, self.tpo4, self.tpo5], self.ip) # test if TypeError is raised if value is not of type sptemp.zeit.TS_Object with self.assertRaises(TypeError): mo1.insert(123) # test if ValueError is raised if value.type != Moving_Objec.type with self.assertRaises(ValueError): mo1.insert(zeit.TS_Object(15.0, dt.datetime(2017, 07, 25, 19, 0, 45))) # test if ValueError is raised if value.ts and existing timestamps in Moving_Object with self.assertRaises(ValueError): mo1.insert(zeit.TS_Object(15, zeit.Time_Period(dt.datetime(2017, 07, 25, 18, 0, 40), dt.datetime(2017, 07, 25, 19, 0, 45)))) with self.assertRaises(ValueError): mo1.insert(zeit.TS_Object(15, dt.datetime(2017, 07, 25, 19, 0, 45))) with self.assertRaises(ValueError): mo1.insert(zeit.TS_Object(15, dt.datetime(2017, 07, 25, 20, 0, 0))) with self.assertRaises(ValueError): mo1.insert(zeit.TS_Object(15, dt.datetime(2017, 07, 25, 20, 0, 5))) with self.assertRaises(ValueError): mo1.insert(zeit.TS_Object(15, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 4)))) with self.assertRaises(ValueError): mo1.insert(zeit.TS_Object(15, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 1), dt.datetime(2017, 07, 25, 20, 0, 10)))) with self.assertRaises(ValueError): mo1.insert(zeit.TS_Object(15, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 12), dt.datetime(2017, 07, 25, 20, 0, 16)))) with self.assertRaises(ValueError): mo1.insert(zeit.TS_Object(15, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 16), dt.datetime(2017, 07, 25, 20, 0, 19)))) with self.assertRaises(ValueError): mo1.insert(zeit.TS_Object(15, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 30), dt.datetime(2017, 07, 25, 20, 0, 45)))) with self.assertRaises(ValueError): mo1.insert(zeit.TS_Object(15, zeit.Time_Period(dt.datetime(2017, 07, 25, 18, 0, 30), dt.datetime(2017, 07, 25, 20, 0, 45)))) # test if correct value is inserted mo1.insert(zeit.TS_Object(15, zeit.Time_Period(dt.datetime(2017, 07, 25, 18, 0, 30), dt.datetime(2017, 07, 25, 18, 0, 45)))) self.assertEqual(len(mo1), 6) self.assertEqual(mo1[0], zeit.TS_Object(15, zeit.Time_Period(dt.datetime(2017, 07, 25, 18, 0, 30), dt.datetime(2017, 07, 25, 18, 0, 45)))) mo1.insert(zeit.TS_Object(15, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 35), dt.datetime(2017, 07, 25, 20, 0, 45)))) self.assertEqual(len(mo1), 7) self.assertEqual(mo1[-1], zeit.TS_Object(15, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 35), dt.datetime(2017, 07, 25, 20, 0, 45)))) mo1.insert(zeit.TS_Object(12, dt.datetime(2017, 07, 25, 20, 0, 3))) self.assertEqual(len(mo1), 8) self.assertEqual(mo1[2], zeit.TS_Object(12, dt.datetime(2017, 07, 25, 20, 0, 3))) mo1.insert(zeit.TS_Object(22, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 25), dt.datetime(2017, 07, 25, 20, 0, 27)))) self.assertEqual(len(mo1), 9) self.assertEqual(mo1[6], zeit.TS_Object(22, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 25), dt.datetime(2017, 07, 25, 20, 0, 27)))) def test_delete(self): mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3, self.tpo4, self.tpo5], self.ip) # test if TypeError is raised if type of time is not sptemp.zeit.Time_Period with self.assertRaises(TypeError): mo1.delete(dt.datetime(2017, 07, 25, 20, 0, 5)) # test if ValueError is raised if deletion would leave Moving Object empty with self.assertRaises(ValueError): mo1.delete(zeit.Time_Period(dt.datetime(2017, 07, 25, 18, 0, 25), dt.datetime(2017, 07, 25, 20, 0, 45))) # check if values are deleted correctly mo1.delete(zeit.Time_Period(dt.datetime(2017, 07, 25, 18, 0, 25), dt.datetime(2017, 07, 25, 18, 0, 45))) self.assertEqual(len(mo1), 5) self.assertEqual(mo1[0], self.tpo1) mo1.delete(zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 31), dt.datetime(2017, 07, 25, 20, 0, 45))) self.assertEqual(len(mo1), 5) self.assertEqual(mo1[4], self.tpo5) mo1.delete(zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 10), dt.datetime(2017, 07, 25, 20, 0, 14))) self.assertEqual(len(mo1), 6) self.assertEqual(mo1[2], zeit.TS_Object(15, dt.datetime(2017, 07, 25, 20, 0, 10))) self.assertEqual(mo1[3], zeit.TS_Object(15, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 14), dt.datetime(2017, 07, 25, 20, 0, 15)))) mo1.delete(zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 20), dt.datetime(2017, 07, 25, 20, 0, 22))) self.assertEqual(len(mo1), 7) self.assertEqual(mo1[4], zeit.TS_Object(18, zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 19), dt.datetime(2017, 07, 25, 20, 0, 20)))) self.assertEqual(mo1[5], zeit.TS_Object(18, dt.datetime(2017, 07, 25, 20, 0, 22))) mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3, self.tpo4, self.tpo5], self.ip) mo1.delete(zeit.Time_Period(dt.datetime(2017, 07, 25, 18, 0, 20), dt.datetime(2017, 07, 25, 19, 50, 30))) self.assertEqual(len(mo1), 5) self.assertEqual(mo1[0], zeit.TS_Object(10, zeit.Time_Period(dt.datetime(2017, 07, 25, 19, 50, 30), dt.datetime(2017, 07, 25, 20, 0, 0)))) mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3, self.tpo4, self.tpo5], self.ip) mo1.delete(zeit.Time_Period(dt.datetime(2017, 07, 25, 18, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 5))) self.assertEqual(len(mo1), 4) self.assertEqual(mo1[0], zeit.TS_Object(12, dt.datetime(2017, 07, 25, 20, 0, 5))) mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3, self.tpo4, self.tpo5], self.ip) mo1.delete(zeit.Time_Period(dt.datetime(2017, 07, 25, 19, 30, 0), dt.datetime(2017, 07, 25, 20, 0, 22))) self.assertEqual(len(mo1), 3) self.assertEqual(mo1[1], zeit.TS_Object(18, dt.datetime(2017, 07, 25, 20, 0, 22))) mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3, self.tpo4, self.tpo5], self.ip) mo1.delete(zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 5), dt.datetime(2017, 07, 25, 20, 0, 45))) self.assertEqual(len(mo1), 2) self.assertEqual(mo1[1], zeit.TS_Object(12, dt.datetime(2017, 07, 25, 20, 0, 5))) mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3, self.tpo4, self.tpo5], self.ip) mo1.delete(zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 19), dt.datetime(2017, 07, 25, 20, 0, 30))) self.assertEqual(len(mo1), 5) self.assertEqual(mo1[3], zeit.TS_Object(18, dt.datetime(2017, 07, 25, 20, 0, 19))) self.assertEqual(mo1[4], zeit.TS_Object(20, dt.datetime(2017, 07, 25, 20, 0, 30))) mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3, self.tpo4, self.tpo5], self.ip) mo1.delete(zeit.Time_Period(dt.datetime(2017, 07, 25, 20, 0, 1), dt.datetime(2017, 07, 25, 20, 0, 4))) self.assertEqual(len(mo1), 5) self.assertEqual(mo1[0], zeit.TS_Object(10, zeit.Time_Period(dt.datetime(2017, 07, 25, 19, 0, 0), dt.datetime(2017, 07, 25, 20, 0, 0)))) self.assertEqual(mo1[1], zeit.TS_Object(12, dt.datetime(2017, 07, 25, 20, 0, 5))) def test_length(self): mo1 = zeit.Moving_Object([self.tpo1, self.tpo2, self.tpo3, self.tpo4, self.tpo5], self.ip) self.assertEqual(mo1.length(), 5) unittest.main()
55.23101
167
0.60353
10,996
70,530
3.787377
0.024191
0.131585
0.14556
0.165586
0.914301
0.892283
0.846012
0.828411
0.792729
0.763771
0
0.160975
0.24693
70,530
1,277
168
55.23101
0.623113
0.105359
0
0.390184
0
0
0.001558
0
0
0
0
0.000783
0.476074
0
null
null
0
0.004908
null
null
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
1
1
0
0
0
0
0
0
0
0
9
e70407d677cf2eed96c4a021bcf1456d50dbb08a
46
py
Python
Homework/HW1.py
cycyucheng1010/ai109b
fe2c5d2eb0ac0b8d457a681005256966488e3bb3
[ "MIT" ]
null
null
null
Homework/HW1.py
cycyucheng1010/ai109b
fe2c5d2eb0ac0b8d457a681005256966488e3bb3
[ "MIT" ]
null
null
null
Homework/HW1.py
cycyucheng1010/ai109b
fe2c5d2eb0ac0b8d457a681005256966488e3bb3
[ "MIT" ]
null
null
null
from geneticAlgorithm import GeneticAlgorithm
23
45
0.913043
4
46
10.5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.086957
46
1
46
46
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
e7ab7b7d36b266c31164ad11947c8dbd736711f4
348,122
py
Python
ec2_compare/internal/dedicated_hosts/false.py
frolovv/aws.ec2.compare
582805823492f833d65c0441c4a14dce697c12aa
[ "Apache-2.0" ]
null
null
null
ec2_compare/internal/dedicated_hosts/false.py
frolovv/aws.ec2.compare
582805823492f833d65c0441c4a14dce697c12aa
[ "Apache-2.0" ]
null
null
null
ec2_compare/internal/dedicated_hosts/false.py
frolovv/aws.ec2.compare
582805823492f833d65c0441c4a14dce697c12aa
[ "Apache-2.0" ]
null
null
null
# Automatically generated # pylint: disable=all get = [{'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 1, 'DefaultCores': 1, 'DefaultThreadsPerCore': 1, 'ValidCores': [1], 'ValidThreadsPerCore': [1], 'SizeInMiB': 6144, 'TotalSizeInGB': 937, 'Disks': [{'SizeInGB': 937, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 625, 'BaselineThroughputInMBps': 78.125, 'BaselineIops': 2500, 'MaximumBandwidthInMbps': 10000, 'MaximumThroughputInMBps': 1250.0, 'MaximumIops': 40000}, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 4, 'Ipv6AddressesPerInterface': 4, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'is4gen.medium', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 1, 'DefaultCores': 1, 'DefaultThreadsPerCore': 1, 'ValidCores': [1], 'ValidThreadsPerCore': [1]}, 'MemoryInfo': {'SizeInMiB': 6144}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 937, 'Disks': [{'SizeInGB': 937, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 625, 'BaselineThroughputInMBps': 78.125, 'BaselineIops': 2500, 'MaximumBandwidthInMbps': 10000, 'MaximumThroughputInMBps': 1250.0, 'MaximumIops': 40000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 4, 'Ipv6AddressesPerInterface': 4, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['uefi']}, {'SupportedArchitectures': ['i386', 'x86_64'], 'DefaultVCpus': 1, 'DefaultCores': 1, 'DefaultThreadsPerCore': 1, 'SizeInMiB': 3788, 'TotalSizeInGB': 410, 'Disks': [{'SizeInGB': 410, 'Count': 1, 'Type': 'hdd'}], 'NvmeSupport': 'unsupported', 'EncryptionSupport': 'unsupported', 'EbsOptimizedSupport': 'unsupported', 'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 6, 'Ipv6AddressesPerInterface': 0, 'Ipv6Supported': False, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 'm1.medium', 'CurrentGeneration': False, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs', 'instance-store'], 'SupportedVirtualizationTypes': ['hvm', 'paravirtual'], 'BareMetal': False, 'Hypervisor': 'xen', 'ProcessorInfo': {'SupportedArchitectures': ['i386', 'x86_64']}, 'VCpuInfo': {'DefaultVCpus': 1, 'DefaultCores': 1, 'DefaultThreadsPerCore': 1}, 'MemoryInfo': {'SizeInMiB': 3788}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 410, 'Disks': [{'SizeInGB': 410, 'Count': 1, 'Type': 'hdd'}], 'NvmeSupport': 'unsupported', 'EncryptionSupport': 'unsupported'}, 'EbsInfo': {'EbsOptimizedSupport': 'unsupported', 'EncryptionSupport': 'unsupported', 'NvmeSupport': 'unsupported'}, 'NetworkInfo': {'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 6, 'Ipv6AddressesPerInterface': 0, 'Ipv6Supported': False, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['i386', 'x86_64'], 'DefaultVCpus': 1, 'DefaultCores': 1, 'DefaultThreadsPerCore': 1, 'SizeInMiB': 1740, 'TotalSizeInGB': 160, 'Disks': [{'SizeInGB': 160, 'Count': 1, 'Type': 'hdd'}], 'NvmeSupport': 'unsupported', 'EncryptionSupport': 'unsupported', 'EbsOptimizedSupport': 'unsupported', 'NetworkPerformance': 'Low', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Low', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 4, 'Ipv6AddressesPerInterface': 0, 'Ipv6Supported': False, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 'm1.small', 'CurrentGeneration': False, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs', 'instance-store'], 'SupportedVirtualizationTypes': ['hvm', 'paravirtual'], 'BareMetal': False, 'Hypervisor': 'xen', 'ProcessorInfo': {'SupportedArchitectures': ['i386', 'x86_64']}, 'VCpuInfo': {'DefaultVCpus': 1, 'DefaultCores': 1, 'DefaultThreadsPerCore': 1}, 'MemoryInfo': {'SizeInMiB': 1740}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 160, 'Disks': [{'SizeInGB': 160, 'Count': 1, 'Type': 'hdd'}], 'NvmeSupport': 'unsupported', 'EncryptionSupport': 'unsupported'}, 'EbsInfo': {'EbsOptimizedSupport': 'unsupported', 'EncryptionSupport': 'unsupported', 'NvmeSupport': 'unsupported'}, 'NetworkInfo': {'NetworkPerformance': 'Low', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Low', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 4, 'Ipv6AddressesPerInterface': 0, 'Ipv6Supported': False, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['i386', 'x86_64'], 'DefaultVCpus': 1, 'DefaultCores': 1, 'DefaultThreadsPerCore': 1, 'SizeInMiB': 627, 'EbsOptimizedSupport': 'unsupported', 'EncryptionSupport': 'unsupported', 'NvmeSupport': 'unsupported', 'NetworkPerformance': 'Very Low', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Very Low', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 2, 'Ipv6AddressesPerInterface': 0, 'Ipv6Supported': False, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 't1.micro', 'CurrentGeneration': False, 'FreeTierEligible': True, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm', 'paravirtual'], 'BareMetal': False, 'Hypervisor': 'xen', 'ProcessorInfo': {'SupportedArchitectures': ['i386', 'x86_64']}, 'VCpuInfo': {'DefaultVCpus': 1, 'DefaultCores': 1, 'DefaultThreadsPerCore': 1}, 'MemoryInfo': {'SizeInMiB': 627}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'unsupported', 'EncryptionSupport': 'unsupported', 'NvmeSupport': 'unsupported'}, 'NetworkInfo': {'NetworkPerformance': 'Very Low', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Very Low', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 2, 'Ipv6AddressesPerInterface': 0, 'Ipv6Supported': False, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['i386', 'x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 1, 'DefaultCores': 1, 'DefaultThreadsPerCore': 1, 'SizeInMiB': 1024, 'EbsOptimizedSupport': 'unsupported', 'EncryptionSupport': 'supported', 'NvmeSupport': 'unsupported', 'NetworkPerformance': 'Low to Moderate', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Low to Moderate', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 2, 'Ipv6AddressesPerInterface': 2, 'Ipv6Supported': True, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 't2.micro', 'CurrentGeneration': True, 'FreeTierEligible': True, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'xen', 'ProcessorInfo': {'SupportedArchitectures': ['i386', 'x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 1, 'DefaultCores': 1, 'DefaultThreadsPerCore': 1}, 'MemoryInfo': {'SizeInMiB': 1024}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'unsupported', 'EncryptionSupport': 'supported', 'NvmeSupport': 'unsupported'}, 'NetworkInfo': {'NetworkPerformance': 'Low to Moderate', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Low to Moderate', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 2, 'Ipv6AddressesPerInterface': 2, 'Ipv6Supported': True, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': True, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['i386', 'x86_64'], 'SustainedClockSpeedInGhz': 2.4, 'DefaultVCpus': 1, 'DefaultCores': 1, 'DefaultThreadsPerCore': 1, 'SizeInMiB': 512, 'EbsOptimizedSupport': 'unsupported', 'EncryptionSupport': 'supported', 'NvmeSupport': 'unsupported', 'NetworkPerformance': 'Low to Moderate', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Low to Moderate', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 2, 'Ipv6AddressesPerInterface': 2, 'Ipv6Supported': True, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 't2.nano', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'xen', 'ProcessorInfo': {'SupportedArchitectures': ['i386', 'x86_64'], 'SustainedClockSpeedInGhz': 2.4}, 'VCpuInfo': {'DefaultVCpus': 1, 'DefaultCores': 1, 'DefaultThreadsPerCore': 1}, 'MemoryInfo': {'SizeInMiB': 512}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'unsupported', 'EncryptionSupport': 'supported', 'NvmeSupport': 'unsupported'}, 'NetworkInfo': {'NetworkPerformance': 'Low to Moderate', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Low to Moderate', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 2, 'Ipv6AddressesPerInterface': 2, 'Ipv6Supported': True, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': True, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['i386', 'x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 1, 'DefaultCores': 1, 'DefaultThreadsPerCore': 1, 'SizeInMiB': 2048, 'EbsOptimizedSupport': 'unsupported', 'EncryptionSupport': 'supported', 'NvmeSupport': 'unsupported', 'NetworkPerformance': 'Low to Moderate', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Low to Moderate', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 4, 'Ipv6AddressesPerInterface': 4, 'Ipv6Supported': True, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 't2.small', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'xen', 'ProcessorInfo': {'SupportedArchitectures': ['i386', 'x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 1, 'DefaultCores': 1, 'DefaultThreadsPerCore': 1}, 'MemoryInfo': {'SizeInMiB': 2048}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'unsupported', 'EncryptionSupport': 'supported', 'NvmeSupport': 'unsupported'}, 'NetworkInfo': {'NetworkPerformance': 'Low to Moderate', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Low to Moderate', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 4, 'Ipv6AddressesPerInterface': 4, 'Ipv6Supported': True, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': True, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['i386', 'x86_64'], 'DefaultVCpus': 2, 'DefaultCores': 2, 'DefaultThreadsPerCore': 1, 'SizeInMiB': 1740, 'TotalSizeInGB': 350, 'Disks': [{'SizeInGB': 350, 'Count': 1, 'Type': 'hdd'}], 'NvmeSupport': 'unsupported', 'EncryptionSupport': 'unsupported', 'EbsOptimizedSupport': 'unsupported', 'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 6, 'Ipv6AddressesPerInterface': 0, 'Ipv6Supported': False, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 'c1.medium', 'CurrentGeneration': False, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs', 'instance-store'], 'SupportedVirtualizationTypes': ['hvm', 'paravirtual'], 'BareMetal': False, 'Hypervisor': 'xen', 'ProcessorInfo': {'SupportedArchitectures': ['i386', 'x86_64']}, 'VCpuInfo': {'DefaultVCpus': 2, 'DefaultCores': 2, 'DefaultThreadsPerCore': 1}, 'MemoryInfo': {'SizeInMiB': 1740}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 350, 'Disks': [{'SizeInGB': 350, 'Count': 1, 'Type': 'hdd'}], 'NvmeSupport': 'unsupported', 'EncryptionSupport': 'unsupported'}, 'EbsInfo': {'EbsOptimizedSupport': 'unsupported', 'EncryptionSupport': 'unsupported', 'NvmeSupport': 'unsupported'}, 'NetworkInfo': {'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 6, 'Ipv6AddressesPerInterface': 0, 'Ipv6Supported': False, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3, 'DefaultVCpus': 2, 'DefaultCores': 1, 'DefaultThreadsPerCore': 2, 'ValidCores': [1], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 4096, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 200, 'BaselineThroughputInMBps': 25.0, 'BaselineIops': 800, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13300}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'c5a.large', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3}, 'VCpuInfo': {'DefaultVCpus': 2, 'DefaultCores': 1, 'DefaultThreadsPerCore': 2, 'ValidCores': [1], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 4096}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 200, 'BaselineThroughputInMBps': 25.0, 'BaselineIops': 800, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13300}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3, 'DefaultVCpus': 2, 'DefaultCores': 1, 'DefaultThreadsPerCore': 2, 'ValidCores': [1], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 4096, 'TotalSizeInGB': 75, 'Disks': [{'SizeInGB': 75, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 200, 'BaselineThroughputInMBps': 25.0, 'BaselineIops': 800, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13300}, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'c5ad.large', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3}, 'VCpuInfo': {'DefaultVCpus': 2, 'DefaultCores': 1, 'DefaultThreadsPerCore': 2, 'ValidCores': [1], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 4096}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 75, 'Disks': [{'SizeInGB': 75, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 200, 'BaselineThroughputInMBps': 25.0, 'BaselineIops': 800, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13300}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 2, 'DefaultCores': 2, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1], 'SizeInMiB': 12288, 'TotalSizeInGB': 1875, 'Disks': [{'SizeInGB': 1875, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1250, 'BaselineThroughputInMBps': 156.25, 'BaselineIops': 5000, 'MaximumBandwidthInMbps': 10000, 'MaximumThroughputInMBps': 1250.0, 'MaximumIops': 40000}, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'is4gen.large', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 2, 'DefaultCores': 2, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1]}, 'MemoryInfo': {'SizeInMiB': 12288}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 1875, 'Disks': [{'SizeInGB': 1875, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1250, 'BaselineThroughputInMBps': 156.25, 'BaselineIops': 5000, 'MaximumBandwidthInMbps': 10000, 'MaximumThroughputInMBps': 1250.0, 'MaximumIops': 40000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['uefi']}, {'SupportedArchitectures': ['x86_64'], 'DefaultVCpus': 2, 'DefaultCores': 2, 'DefaultThreadsPerCore': 1, 'SizeInMiB': 7680, 'TotalSizeInGB': 840, 'Disks': [{'SizeInGB': 420, 'Count': 2, 'Type': 'hdd'}], 'NvmeSupport': 'unsupported', 'EncryptionSupport': 'unsupported', 'EbsOptimizedSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 500, 'BaselineThroughputInMBps': 62.5, 'BaselineIops': 4000, 'MaximumBandwidthInMbps': 500, 'MaximumThroughputInMBps': 62.5, 'MaximumIops': 4000}, 'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 0, 'Ipv6Supported': False, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 'm1.large', 'CurrentGeneration': False, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs', 'instance-store'], 'SupportedVirtualizationTypes': ['hvm', 'paravirtual'], 'BareMetal': False, 'Hypervisor': 'xen', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64']}, 'VCpuInfo': {'DefaultVCpus': 2, 'DefaultCores': 2, 'DefaultThreadsPerCore': 1}, 'MemoryInfo': {'SizeInMiB': 7680}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 840, 'Disks': [{'SizeInGB': 420, 'Count': 2, 'Type': 'hdd'}], 'NvmeSupport': 'unsupported', 'EncryptionSupport': 'unsupported'}, 'EbsInfo': {'EbsOptimizedSupport': 'supported', 'EncryptionSupport': 'unsupported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 500, 'BaselineThroughputInMBps': 62.5, 'BaselineIops': 4000, 'MaximumBandwidthInMbps': 500, 'MaximumThroughputInMBps': 62.5, 'MaximumIops': 4000}, 'NvmeSupport': 'unsupported'}, 'NetworkInfo': {'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 0, 'Ipv6Supported': False, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['x86_64'], 'DefaultVCpus': 2, 'DefaultCores': 2, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1], 'SizeInMiB': 17510, 'TotalSizeInGB': 420, 'Disks': [{'SizeInGB': 420, 'Count': 1, 'Type': 'hdd'}], 'NvmeSupport': 'unsupported', 'EncryptionSupport': 'unsupported', 'EbsOptimizedSupport': 'unsupported', 'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 0, 'Ipv6Supported': False, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 'm2.xlarge', 'CurrentGeneration': False, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs', 'instance-store'], 'SupportedVirtualizationTypes': ['hvm', 'paravirtual'], 'BareMetal': False, 'Hypervisor': 'xen', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64']}, 'VCpuInfo': {'DefaultVCpus': 2, 'DefaultCores': 2, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1]}, 'MemoryInfo': {'SizeInMiB': 17510}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 420, 'Disks': [{'SizeInGB': 420, 'Count': 1, 'Type': 'hdd'}], 'NvmeSupport': 'unsupported', 'EncryptionSupport': 'unsupported'}, 'EbsInfo': {'EbsOptimizedSupport': 'unsupported', 'EncryptionSupport': 'unsupported', 'NvmeSupport': 'unsupported'}, 'NetworkInfo': {'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 0, 'Ipv6Supported': False, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 2, 'DefaultCores': 1, 'DefaultThreadsPerCore': 2, 'ValidCores': [1], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 8192, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 650, 'BaselineThroughputInMBps': 81.25, 'BaselineIops': 3600, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'm5a.large', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 2, 'DefaultCores': 1, 'DefaultThreadsPerCore': 2, 'ValidCores': [1], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 8192}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 650, 'BaselineThroughputInMBps': 81.25, 'BaselineIops': 3600, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2, 'DefaultVCpus': 2, 'DefaultCores': 1, 'DefaultThreadsPerCore': 2, 'ValidCores': [1], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 8192, 'TotalSizeInGB': 75, 'Disks': [{'SizeInGB': 75, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 650, 'BaselineThroughputInMBps': 81.25, 'BaselineIops': 3600, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'm5ad.large', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2}, 'VCpuInfo': {'DefaultVCpus': 2, 'DefaultCores': 1, 'DefaultThreadsPerCore': 2, 'ValidCores': [1], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 8192}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 75, 'Disks': [{'SizeInGB': 75, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 650, 'BaselineThroughputInMBps': 81.25, 'BaselineIops': 3600, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 2, 'DefaultCores': 1, 'DefaultThreadsPerCore': 2, 'ValidCores': [1], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 16384, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 650, 'BaselineThroughputInMBps': 81.25, 'BaselineIops': 3600, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'r5a.large', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 2, 'DefaultCores': 1, 'DefaultThreadsPerCore': 2, 'ValidCores': [1], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 16384}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 650, 'BaselineThroughputInMBps': 81.25, 'BaselineIops': 3600, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2, 'DefaultVCpus': 2, 'DefaultCores': 1, 'DefaultThreadsPerCore': 2, 'ValidCores': [1], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 16384, 'TotalSizeInGB': 75, 'Disks': [{'SizeInGB': 75, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 650, 'BaselineThroughputInMBps': 81.25, 'BaselineIops': 3600, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'r5ad.large', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2}, 'VCpuInfo': {'DefaultVCpus': 2, 'DefaultCores': 1, 'DefaultThreadsPerCore': 2, 'ValidCores': [1], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 16384}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 75, 'Disks': [{'SizeInGB': 75, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 650, 'BaselineThroughputInMBps': 81.25, 'BaselineIops': 3600, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.3, 'DefaultVCpus': 2, 'DefaultCores': 2, 'DefaultThreadsPerCore': 1, 'SizeInMiB': 8192, 'EbsOptimizedSupport': 'unsupported', 'EncryptionSupport': 'supported', 'NvmeSupport': 'unsupported', 'NetworkPerformance': 'Low to Moderate', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Low to Moderate', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 12, 'Ipv6AddressesPerInterface': 12, 'Ipv6Supported': True, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 't2.large', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'xen', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.3}, 'VCpuInfo': {'DefaultVCpus': 2, 'DefaultCores': 2, 'DefaultThreadsPerCore': 1}, 'MemoryInfo': {'SizeInMiB': 8192}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'unsupported', 'EncryptionSupport': 'supported', 'NvmeSupport': 'unsupported'}, 'NetworkInfo': {'NetworkPerformance': 'Low to Moderate', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Low to Moderate', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 12, 'Ipv6AddressesPerInterface': 12, 'Ipv6Supported': True, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': True, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['i386', 'x86_64'], 'SustainedClockSpeedInGhz': 2.3, 'DefaultVCpus': 2, 'DefaultCores': 2, 'DefaultThreadsPerCore': 1, 'SizeInMiB': 4096, 'EbsOptimizedSupport': 'unsupported', 'EncryptionSupport': 'supported', 'NvmeSupport': 'unsupported', 'NetworkPerformance': 'Low to Moderate', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Low to Moderate', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 6, 'Ipv6AddressesPerInterface': 6, 'Ipv6Supported': True, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 't2.medium', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'xen', 'ProcessorInfo': {'SupportedArchitectures': ['i386', 'x86_64'], 'SustainedClockSpeedInGhz': 2.3}, 'VCpuInfo': {'DefaultVCpus': 2, 'DefaultCores': 2, 'DefaultThreadsPerCore': 1}, 'MemoryInfo': {'SizeInMiB': 4096}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'unsupported', 'EncryptionSupport': 'supported', 'NvmeSupport': 'unsupported'}, 'NetworkInfo': {'NetworkPerformance': 'Low to Moderate', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Low to Moderate', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 6, 'Ipv6AddressesPerInterface': 6, 'Ipv6Supported': True, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': True, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2, 'DefaultVCpus': 2, 'DefaultCores': 1, 'DefaultThreadsPerCore': 2, 'ValidCores': [1], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 8192, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 695, 'BaselineThroughputInMBps': 86.875, 'BaselineIops': 4000, 'MaximumBandwidthInMbps': 2780, 'MaximumThroughputInMBps': 347.5, 'MaximumIops': 15700}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 12, 'Ipv6AddressesPerInterface': 12, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 't3a.large', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2}, 'VCpuInfo': {'DefaultVCpus': 2, 'DefaultCores': 1, 'DefaultThreadsPerCore': 2, 'ValidCores': [1], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 8192}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 695, 'BaselineThroughputInMBps': 86.875, 'BaselineIops': 4000, 'MaximumBandwidthInMbps': 2780, 'MaximumThroughputInMBps': 347.5, 'MaximumIops': 15700}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 12, 'Ipv6AddressesPerInterface': 12, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': True, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2, 'DefaultVCpus': 2, 'DefaultCores': 1, 'DefaultThreadsPerCore': 2, 'ValidCores': [1], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 4096, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 350, 'BaselineThroughputInMBps': 43.75, 'BaselineIops': 2000, 'MaximumBandwidthInMbps': 2085, 'MaximumThroughputInMBps': 260.625, 'MaximumIops': 11800}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 6, 'Ipv6AddressesPerInterface': 6, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 't3a.medium', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2}, 'VCpuInfo': {'DefaultVCpus': 2, 'DefaultCores': 1, 'DefaultThreadsPerCore': 2, 'ValidCores': [1], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 4096}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 350, 'BaselineThroughputInMBps': 43.75, 'BaselineIops': 2000, 'MaximumBandwidthInMbps': 2085, 'MaximumThroughputInMBps': 260.625, 'MaximumIops': 11800}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 6, 'Ipv6AddressesPerInterface': 6, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': True, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2, 'DefaultVCpus': 2, 'DefaultCores': 1, 'DefaultThreadsPerCore': 2, 'ValidCores': [1], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 1024, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 90, 'BaselineThroughputInMBps': 11.25, 'BaselineIops': 500, 'MaximumBandwidthInMbps': 2085, 'MaximumThroughputInMBps': 260.625, 'MaximumIops': 11800}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 2, 'Ipv6AddressesPerInterface': 2, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 't3a.micro', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2}, 'VCpuInfo': {'DefaultVCpus': 2, 'DefaultCores': 1, 'DefaultThreadsPerCore': 2, 'ValidCores': [1], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 1024}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 90, 'BaselineThroughputInMBps': 11.25, 'BaselineIops': 500, 'MaximumBandwidthInMbps': 2085, 'MaximumThroughputInMBps': 260.625, 'MaximumIops': 11800}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 2, 'Ipv6AddressesPerInterface': 2, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': True, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2, 'DefaultVCpus': 2, 'DefaultCores': 1, 'DefaultThreadsPerCore': 2, 'ValidCores': [1], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 512, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 45, 'BaselineThroughputInMBps': 5.625, 'BaselineIops': 250, 'MaximumBandwidthInMbps': 2085, 'MaximumThroughputInMBps': 260.625, 'MaximumIops': 11800}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 2, 'Ipv6AddressesPerInterface': 2, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 't3a.nano', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2}, 'VCpuInfo': {'DefaultVCpus': 2, 'DefaultCores': 1, 'DefaultThreadsPerCore': 2, 'ValidCores': [1], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 512}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 45, 'BaselineThroughputInMBps': 5.625, 'BaselineIops': 250, 'MaximumBandwidthInMbps': 2085, 'MaximumThroughputInMBps': 260.625, 'MaximumIops': 11800}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 2, 'Ipv6AddressesPerInterface': 2, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': True, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2, 'DefaultVCpus': 2, 'DefaultCores': 1, 'DefaultThreadsPerCore': 2, 'ValidCores': [1], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 2048, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 175, 'BaselineThroughputInMBps': 21.875, 'BaselineIops': 1000, 'MaximumBandwidthInMbps': 2085, 'MaximumThroughputInMBps': 260.625, 'MaximumIops': 11800}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 4, 'Ipv6AddressesPerInterface': 4, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 't3a.small', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2}, 'VCpuInfo': {'DefaultVCpus': 2, 'DefaultCores': 1, 'DefaultThreadsPerCore': 2, 'ValidCores': [1], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 2048}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 175, 'BaselineThroughputInMBps': 21.875, 'BaselineIops': 1000, 'MaximumBandwidthInMbps': 2085, 'MaximumThroughputInMBps': 260.625, 'MaximumIops': 11800}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 4, 'Ipv6AddressesPerInterface': 4, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': True, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 2, 'DefaultCores': 2, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1], 'SizeInMiB': 8192, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 695, 'BaselineThroughputInMBps': 86.875, 'BaselineIops': 4000, 'MaximumBandwidthInMbps': 2780, 'MaximumThroughputInMBps': 347.5, 'MaximumIops': 15700}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 12, 'Ipv6AddressesPerInterface': 12, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 't4g.large', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 2, 'DefaultCores': 2, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1]}, 'MemoryInfo': {'SizeInMiB': 8192}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 695, 'BaselineThroughputInMBps': 86.875, 'BaselineIops': 4000, 'MaximumBandwidthInMbps': 2780, 'MaximumThroughputInMBps': 347.5, 'MaximumIops': 15700}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 12, 'Ipv6AddressesPerInterface': 12, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': True, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['uefi']}, {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 2, 'DefaultCores': 2, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1], 'SizeInMiB': 4096, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 347, 'BaselineThroughputInMBps': 43.375, 'BaselineIops': 2000, 'MaximumBandwidthInMbps': 2085, 'MaximumThroughputInMBps': 260.625, 'MaximumIops': 11800}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 6, 'Ipv6AddressesPerInterface': 6, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 't4g.medium', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 2, 'DefaultCores': 2, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1]}, 'MemoryInfo': {'SizeInMiB': 4096}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 347, 'BaselineThroughputInMBps': 43.375, 'BaselineIops': 2000, 'MaximumBandwidthInMbps': 2085, 'MaximumThroughputInMBps': 260.625, 'MaximumIops': 11800}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 6, 'Ipv6AddressesPerInterface': 6, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': True, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['uefi']}, {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 2, 'DefaultCores': 2, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1], 'SizeInMiB': 1024, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 87, 'BaselineThroughputInMBps': 10.875, 'BaselineIops': 500, 'MaximumBandwidthInMbps': 2085, 'MaximumThroughputInMBps': 260.625, 'MaximumIops': 11800}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 2, 'Ipv6AddressesPerInterface': 2, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 't4g.micro', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 2, 'DefaultCores': 2, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1]}, 'MemoryInfo': {'SizeInMiB': 1024}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 87, 'BaselineThroughputInMBps': 10.875, 'BaselineIops': 500, 'MaximumBandwidthInMbps': 2085, 'MaximumThroughputInMBps': 260.625, 'MaximumIops': 11800}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 2, 'Ipv6AddressesPerInterface': 2, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': True, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['uefi']}, {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 2, 'DefaultCores': 2, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1], 'SizeInMiB': 512, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 43, 'BaselineThroughputInMBps': 5.375, 'BaselineIops': 250, 'MaximumBandwidthInMbps': 2085, 'MaximumThroughputInMBps': 260.625, 'MaximumIops': 11800}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 2, 'Ipv6AddressesPerInterface': 2, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 't4g.nano', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 2, 'DefaultCores': 2, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1]}, 'MemoryInfo': {'SizeInMiB': 512}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 43, 'BaselineThroughputInMBps': 5.375, 'BaselineIops': 250, 'MaximumBandwidthInMbps': 2085, 'MaximumThroughputInMBps': 260.625, 'MaximumIops': 11800}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 2, 'Ipv6AddressesPerInterface': 2, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': True, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['uefi']}, {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 2, 'DefaultCores': 2, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1], 'SizeInMiB': 2048, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 174, 'BaselineThroughputInMBps': 21.75, 'BaselineIops': 1000, 'MaximumBandwidthInMbps': 2085, 'MaximumThroughputInMBps': 260.625, 'MaximumIops': 11800}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 4, 'Ipv6AddressesPerInterface': 4, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 't4g.small', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 2, 'DefaultCores': 2, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1]}, 'MemoryInfo': {'SizeInMiB': 2048}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 174, 'BaselineThroughputInMBps': 21.75, 'BaselineIops': 1000, 'MaximumBandwidthInMbps': 2085, 'MaximumThroughputInMBps': 260.625, 'MaximumIops': 11800}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 4, 'Ipv6AddressesPerInterface': 4, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': True, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3, 'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 8192, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 400, 'BaselineThroughputInMBps': 50.0, 'BaselineIops': 1600, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13300}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'c5a.xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3}, 'VCpuInfo': {'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 8192}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 400, 'BaselineThroughputInMBps': 50.0, 'BaselineIops': 1600, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13300}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3, 'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 8192, 'TotalSizeInGB': 150, 'Disks': [{'SizeInGB': 150, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 400, 'BaselineThroughputInMBps': 50.0, 'BaselineIops': 1600, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13300}, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'c5ad.xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3}, 'VCpuInfo': {'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 8192}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 150, 'Disks': [{'SizeInGB': 150, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 400, 'BaselineThroughputInMBps': 50.0, 'BaselineIops': 1600, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13300}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.1, 'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 32768, 'TotalSizeInGB': 5940, 'Disks': [{'SizeInGB': 1980, 'Count': 3, 'Type': 'hdd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 850, 'BaselineThroughputInMBps': 106.25, 'BaselineIops': 5000, 'MaximumBandwidthInMbps': 2800, 'MaximumThroughputInMBps': 350.0, 'MaximumIops': 15000}, 'NetworkPerformance': 'Up to 15 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 15 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 3, 'Ipv6AddressesPerInterface': 3, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'd3.xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.1}, 'VCpuInfo': {'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 32768}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 5940, 'Disks': [{'SizeInGB': 1980, 'Count': 3, 'Type': 'hdd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 850, 'BaselineThroughputInMBps': 106.25, 'BaselineIops': 5000, 'MaximumBandwidthInMbps': 2800, 'MaximumThroughputInMBps': 350.0, 'MaximumIops': 15000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 15 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 15 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 3, 'Ipv6AddressesPerInterface': 3, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.1, 'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 16384, 'TotalSizeInGB': 27960, 'Disks': [{'SizeInGB': 13980, 'Count': 2, 'Type': 'hdd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 850, 'BaselineThroughputInMBps': 106.25, 'BaselineIops': 5000, 'MaximumBandwidthInMbps': 2800, 'MaximumThroughputInMBps': 350.0, 'MaximumIops': 15000}, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 3, 'Ipv6AddressesPerInterface': 3, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'd3en.xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.1}, 'VCpuInfo': {'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 16384}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 27960, 'Disks': [{'SizeInGB': 13980, 'Count': 2, 'Type': 'hdd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 850, 'BaselineThroughputInMBps': 106.25, 'BaselineIops': 5000, 'MaximumBandwidthInMbps': 2800, 'MaximumThroughputInMBps': 350.0, 'MaximumIops': 15000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 3, 'Ipv6AddressesPerInterface': 3, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.7, 'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 31232, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 850, 'BaselineThroughputInMBps': 106.25, 'BaselineIops': 5000, 'MaximumBandwidthInMbps': 850, 'MaximumThroughputInMBps': 106.25, 'MaximumIops': 5000}, 'NvmeSupport': 'unsupported', 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'Gpus': [{'Name': 'M60', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 8192}}], 'TotalGpuMemoryInMiB': 8192, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'g3s.xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'xen', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.7}, 'VCpuInfo': {'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 31232}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 850, 'BaselineThroughputInMBps': 106.25, 'BaselineIops': 5000, 'MaximumBandwidthInMbps': 850, 'MaximumThroughputInMBps': 106.25, 'MaximumIops': 5000}, 'NvmeSupport': 'unsupported'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'GpuInfo': {'Gpus': [{'Name': 'M60', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 8192}}], 'TotalGpuMemoryInMiB': 8192}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.0, 'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [2], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 16384, 'TotalSizeInGB': 150, 'Disks': [{'SizeInGB': 150, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 400, 'BaselineThroughputInMBps': 50.0, 'BaselineIops': 1700, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13333}, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 4, 'Ipv6AddressesPerInterface': 4, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'Gpus': [{'Name': 'Radeon Pro V520', 'Manufacturer': 'AMD', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 8192}}], 'TotalGpuMemoryInMiB': 8192, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'g4ad.xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.0}, 'VCpuInfo': {'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [2], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 16384}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 150, 'Disks': [{'SizeInGB': 150, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 400, 'BaselineThroughputInMBps': 50.0, 'BaselineIops': 1700, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13333}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 4, 'Ipv6AddressesPerInterface': 4, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'GpuInfo': {'Gpus': [{'Name': 'Radeon Pro V520', 'Manufacturer': 'AMD', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 8192}}], 'TotalGpuMemoryInMiB': 8192}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [2], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 16384, 'TotalSizeInGB': 125, 'Disks': [{'SizeInGB': 125, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 950, 'BaselineThroughputInMBps': 118.75, 'BaselineIops': 3000, 'MaximumBandwidthInMbps': 3500, 'MaximumThroughputInMBps': 437.5, 'MaximumIops': 20000}, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'Gpus': [{'Name': 'T4', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 16384}}], 'TotalGpuMemoryInMiB': 16384, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'g4dn.xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [2], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 16384}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 125, 'Disks': [{'SizeInGB': 125, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 950, 'BaselineThroughputInMBps': 118.75, 'BaselineIops': 3000, 'MaximumBandwidthInMbps': 3500, 'MaximumThroughputInMBps': 437.5, 'MaximumIops': 20000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'GpuInfo': {'Gpus': [{'Name': 'T4', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 16384}}], 'TotalGpuMemoryInMiB': 16384}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3, 'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'SizeInMiB': 16384, 'TotalSizeInGB': 250, 'Disks': [{'SizeInGB': 250, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 700, 'BaselineThroughputInMBps': 87.5, 'BaselineIops': 3000, 'MaximumBandwidthInMbps': 3500, 'MaximumThroughputInMBps': 437.5, 'MaximumIops': 15000}, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'Gpus': [{'Name': 'A10G', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 24576}}], 'TotalGpuMemoryInMiB': 24576, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'g5.xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3}, 'VCpuInfo': {'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2}, 'MemoryInfo': {'SizeInMiB': 16384}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 250, 'Disks': [{'SizeInGB': 250, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 700, 'BaselineThroughputInMBps': 87.5, 'BaselineIops': 3000, 'MaximumBandwidthInMbps': 3500, 'MaximumThroughputInMBps': 437.5, 'MaximumIops': 15000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'GpuInfo': {'Gpus': [{'Name': 'A10G', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 24576}}], 'TotalGpuMemoryInMiB': 24576}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 4, 'DefaultCores': 4, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4], 'ValidThreadsPerCore': [1], 'SizeInMiB': 8192, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1188, 'BaselineThroughputInMBps': 148.5, 'BaselineIops': 6000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'Gpus': [{'Name': 'T4g', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 16384}}], 'TotalGpuMemoryInMiB': 16384, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'g5g.xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 4, 'DefaultCores': 4, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4], 'ValidThreadsPerCore': [1]}, 'MemoryInfo': {'SizeInMiB': 8192}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1188, 'BaselineThroughputInMBps': 148.5, 'BaselineIops': 6000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'GpuInfo': {'Gpus': [{'Name': 'T4g', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 16384}}], 'TotalGpuMemoryInMiB': 16384}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [2], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 8192, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1190, 'BaselineThroughputInMBps': 148.75, 'BaselineIops': 4000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'Accelerators': [{'Count': 1, 'Name': 'Inferentia', 'Manufacturer': 'AWS'}], 'InstanceType': 'inf1.xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [2], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 8192}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1190, 'BaselineThroughputInMBps': 148.75, 'BaselineIops': 4000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'InferenceAcceleratorInfo': {'Accelerators': [{'Count': 1, 'Name': 'Inferentia', 'Manufacturer': 'AWS'}]}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 4, 'DefaultCores': 4, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4], 'ValidThreadsPerCore': [1], 'SizeInMiB': 24576, 'TotalSizeInGB': 3750, 'Disks': [{'SizeInGB': 3750, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 2500, 'BaselineThroughputInMBps': 312.5, 'BaselineIops': 10000, 'MaximumBandwidthInMbps': 10000, 'MaximumThroughputInMBps': 1250.0, 'MaximumIops': 40000}, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'is4gen.xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 4, 'DefaultCores': 4, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4], 'ValidThreadsPerCore': [1]}, 'MemoryInfo': {'SizeInMiB': 24576}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 3750, 'Disks': [{'SizeInGB': 3750, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 2500, 'BaselineThroughputInMBps': 312.5, 'BaselineIops': 10000, 'MaximumBandwidthInMbps': 10000, 'MaximumThroughputInMBps': 1250.0, 'MaximumIops': 40000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['uefi']}, {'SupportedArchitectures': ['x86_64'], 'DefaultVCpus': 4, 'DefaultCores': 4, 'DefaultThreadsPerCore': 1, 'SizeInMiB': 15360, 'TotalSizeInGB': 1680, 'Disks': [{'SizeInGB': 420, 'Count': 4, 'Type': 'hdd'}], 'NvmeSupport': 'unsupported', 'EncryptionSupport': 'unsupported', 'EbsOptimizedSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1000, 'BaselineThroughputInMBps': 125.0, 'BaselineIops': 8000, 'MaximumBandwidthInMbps': 1000, 'MaximumThroughputInMBps': 125.0, 'MaximumIops': 8000}, 'NetworkPerformance': 'High', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'High', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 0, 'Ipv6Supported': False, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 'm1.xlarge', 'CurrentGeneration': False, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs', 'instance-store'], 'SupportedVirtualizationTypes': ['hvm', 'paravirtual'], 'BareMetal': False, 'Hypervisor': 'xen', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64']}, 'VCpuInfo': {'DefaultVCpus': 4, 'DefaultCores': 4, 'DefaultThreadsPerCore': 1}, 'MemoryInfo': {'SizeInMiB': 15360}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 1680, 'Disks': [{'SizeInGB': 420, 'Count': 4, 'Type': 'hdd'}], 'NvmeSupport': 'unsupported', 'EncryptionSupport': 'unsupported'}, 'EbsInfo': {'EbsOptimizedSupport': 'supported', 'EncryptionSupport': 'unsupported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1000, 'BaselineThroughputInMBps': 125.0, 'BaselineIops': 8000, 'MaximumBandwidthInMbps': 1000, 'MaximumThroughputInMBps': 125.0, 'MaximumIops': 8000}, 'NvmeSupport': 'unsupported'}, 'NetworkInfo': {'NetworkPerformance': 'High', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'High', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 0, 'Ipv6Supported': False, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['x86_64'], 'DefaultVCpus': 4, 'DefaultCores': 4, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4], 'ValidThreadsPerCore': [1], 'SizeInMiB': 35020, 'TotalSizeInGB': 850, 'Disks': [{'SizeInGB': 850, 'Count': 1, 'Type': 'hdd'}], 'NvmeSupport': 'unsupported', 'EncryptionSupport': 'unsupported', 'EbsOptimizedSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 500, 'BaselineThroughputInMBps': 62.5, 'BaselineIops': 4000, 'MaximumBandwidthInMbps': 500, 'MaximumThroughputInMBps': 62.5, 'MaximumIops': 4000}, 'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 0, 'Ipv6Supported': False, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 'm2.2xlarge', 'CurrentGeneration': False, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs', 'instance-store'], 'SupportedVirtualizationTypes': ['hvm', 'paravirtual'], 'BareMetal': False, 'Hypervisor': 'xen', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64']}, 'VCpuInfo': {'DefaultVCpus': 4, 'DefaultCores': 4, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4], 'ValidThreadsPerCore': [1]}, 'MemoryInfo': {'SizeInMiB': 35020}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 850, 'Disks': [{'SizeInGB': 850, 'Count': 1, 'Type': 'hdd'}], 'NvmeSupport': 'unsupported', 'EncryptionSupport': 'unsupported'}, 'EbsInfo': {'EbsOptimizedSupport': 'supported', 'EncryptionSupport': 'unsupported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 500, 'BaselineThroughputInMBps': 62.5, 'BaselineIops': 4000, 'MaximumBandwidthInMbps': 500, 'MaximumThroughputInMBps': 62.5, 'MaximumIops': 4000}, 'NvmeSupport': 'unsupported'}, 'NetworkInfo': {'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 0, 'Ipv6Supported': False, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [2], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 16384, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1085, 'BaselineThroughputInMBps': 135.625, 'BaselineIops': 6000, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'm5a.xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [2], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 16384}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1085, 'BaselineThroughputInMBps': 135.625, 'BaselineIops': 6000, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2, 'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [2], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 16384, 'TotalSizeInGB': 150, 'Disks': [{'SizeInGB': 150, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1085, 'BaselineThroughputInMBps': 135.625, 'BaselineIops': 6000, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'm5ad.xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2}, 'VCpuInfo': {'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [2], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 16384}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 150, 'Disks': [{'SizeInGB': 150, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1085, 'BaselineThroughputInMBps': 135.625, 'BaselineIops': 6000, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [2], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 32768, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1085, 'BaselineThroughputInMBps': 135.625, 'BaselineIops': 6000, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'r5a.xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [2], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 32768}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1085, 'BaselineThroughputInMBps': 135.625, 'BaselineIops': 6000, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2, 'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [2], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 32768, 'TotalSizeInGB': 150, 'Disks': [{'SizeInGB': 150, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1085, 'BaselineThroughputInMBps': 135.625, 'BaselineIops': 6000, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'r5ad.xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2}, 'VCpuInfo': {'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [2], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 32768}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 150, 'Disks': [{'SizeInGB': 150, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1085, 'BaselineThroughputInMBps': 135.625, 'BaselineIops': 6000, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.3, 'DefaultVCpus': 4, 'DefaultCores': 4, 'DefaultThreadsPerCore': 1, 'SizeInMiB': 16384, 'EbsOptimizedSupport': 'unsupported', 'EncryptionSupport': 'supported', 'NvmeSupport': 'unsupported', 'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 't2.xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'xen', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.3}, 'VCpuInfo': {'DefaultVCpus': 4, 'DefaultCores': 4, 'DefaultThreadsPerCore': 1}, 'MemoryInfo': {'SizeInMiB': 16384}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'unsupported', 'EncryptionSupport': 'supported', 'NvmeSupport': 'unsupported'}, 'NetworkInfo': {'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': True, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2, 'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [2], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 16384, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 695, 'BaselineThroughputInMBps': 86.875, 'BaselineIops': 4000, 'MaximumBandwidthInMbps': 2780, 'MaximumThroughputInMBps': 347.5, 'MaximumIops': 15700}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 't3a.xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2}, 'VCpuInfo': {'DefaultVCpus': 4, 'DefaultCores': 2, 'DefaultThreadsPerCore': 2, 'ValidCores': [2], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 16384}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 695, 'BaselineThroughputInMBps': 86.875, 'BaselineIops': 4000, 'MaximumBandwidthInMbps': 2780, 'MaximumThroughputInMBps': 347.5, 'MaximumIops': 15700}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': True, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 4, 'DefaultCores': 4, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4], 'ValidThreadsPerCore': [1], 'SizeInMiB': 16384, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 695, 'BaselineThroughputInMBps': 86.875, 'BaselineIops': 4000, 'MaximumBandwidthInMbps': 2780, 'MaximumThroughputInMBps': 347.5, 'MaximumIops': 15700}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 't4g.xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 4, 'DefaultCores': 4, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4], 'ValidThreadsPerCore': [1]}, 'MemoryInfo': {'SizeInMiB': 16384}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 695, 'BaselineThroughputInMBps': 86.875, 'BaselineIops': 4000, 'MaximumBandwidthInMbps': 2780, 'MaximumThroughputInMBps': 347.5, 'MaximumIops': 15700}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': True, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['uefi']}, {'SupportedArchitectures': ['x86_64'], 'DefaultVCpus': 8, 'DefaultCores': 8, 'DefaultThreadsPerCore': 1, 'SizeInMiB': 7168, 'TotalSizeInGB': 1680, 'Disks': [{'SizeInGB': 420, 'Count': 4, 'Type': 'hdd'}], 'NvmeSupport': 'unsupported', 'EncryptionSupport': 'unsupported', 'EbsOptimizedSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1000, 'BaselineThroughputInMBps': 125.0, 'BaselineIops': 8000, 'MaximumBandwidthInMbps': 1000, 'MaximumThroughputInMBps': 125.0, 'MaximumIops': 8000}, 'NetworkPerformance': 'High', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'High', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 0, 'Ipv6Supported': False, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 'c1.xlarge', 'CurrentGeneration': False, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs', 'instance-store'], 'SupportedVirtualizationTypes': ['hvm', 'paravirtual'], 'BareMetal': False, 'Hypervisor': 'xen', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64']}, 'VCpuInfo': {'DefaultVCpus': 8, 'DefaultCores': 8, 'DefaultThreadsPerCore': 1}, 'MemoryInfo': {'SizeInMiB': 7168}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 1680, 'Disks': [{'SizeInGB': 420, 'Count': 4, 'Type': 'hdd'}], 'NvmeSupport': 'unsupported', 'EncryptionSupport': 'unsupported'}, 'EbsInfo': {'EbsOptimizedSupport': 'supported', 'EncryptionSupport': 'unsupported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1000, 'BaselineThroughputInMBps': 125.0, 'BaselineIops': 8000, 'MaximumBandwidthInMbps': 1000, 'MaximumThroughputInMBps': 125.0, 'MaximumIops': 8000}, 'NvmeSupport': 'unsupported'}, 'NetworkInfo': {'NetworkPerformance': 'High', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'High', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 0, 'Ipv6Supported': False, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3, 'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 16384, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 800, 'BaselineThroughputInMBps': 100.0, 'BaselineIops': 3200, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13300}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'c5a.2xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3}, 'VCpuInfo': {'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 16384}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 800, 'BaselineThroughputInMBps': 100.0, 'BaselineIops': 3200, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13300}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3, 'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 16384, 'TotalSizeInGB': 300, 'Disks': [{'SizeInGB': 300, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 800, 'BaselineThroughputInMBps': 100.0, 'BaselineIops': 3200, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13300}, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'c5ad.2xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3}, 'VCpuInfo': {'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 16384}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 300, 'Disks': [{'SizeInGB': 300, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 800, 'BaselineThroughputInMBps': 100.0, 'BaselineIops': 3200, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13300}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.1, 'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 65536, 'TotalSizeInGB': 11880, 'Disks': [{'SizeInGB': 1980, 'Count': 6, 'Type': 'hdd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1700, 'BaselineThroughputInMBps': 212.5, 'BaselineIops': 10000, 'MaximumBandwidthInMbps': 2800, 'MaximumThroughputInMBps': 350.0, 'MaximumIops': 15000}, 'NetworkPerformance': 'Up to 15 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 15 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 5, 'Ipv6AddressesPerInterface': 5, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'd3.2xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.1}, 'VCpuInfo': {'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 65536}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 11880, 'Disks': [{'SizeInGB': 1980, 'Count': 6, 'Type': 'hdd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1700, 'BaselineThroughputInMBps': 212.5, 'BaselineIops': 10000, 'MaximumBandwidthInMbps': 2800, 'MaximumThroughputInMBps': 350.0, 'MaximumIops': 15000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 15 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 15 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 5, 'Ipv6AddressesPerInterface': 5, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.1, 'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 32768, 'TotalSizeInGB': 55920, 'Disks': [{'SizeInGB': 13980, 'Count': 4, 'Type': 'hdd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1700, 'BaselineThroughputInMBps': 212.5, 'BaselineIops': 10000, 'MaximumBandwidthInMbps': 2800, 'MaximumThroughputInMBps': 350.0, 'MaximumIops': 15000}, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 5, 'Ipv6AddressesPerInterface': 5, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'd3en.2xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.1}, 'VCpuInfo': {'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 32768}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 55920, 'Disks': [{'SizeInGB': 13980, 'Count': 4, 'Type': 'hdd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1700, 'BaselineThroughputInMBps': 212.5, 'BaselineIops': 10000, 'MaximumBandwidthInMbps': 2800, 'MaximumThroughputInMBps': 350.0, 'MaximumIops': 15000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 5, 'Ipv6AddressesPerInterface': 5, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.0, 'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 32768, 'TotalSizeInGB': 300, 'Disks': [{'SizeInGB': 300, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 800, 'BaselineThroughputInMBps': 100.0, 'BaselineIops': 3400, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13333}, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 4, 'Ipv6AddressesPerInterface': 4, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'Gpus': [{'Name': 'Radeon Pro V520', 'Manufacturer': 'AMD', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 8192}}], 'TotalGpuMemoryInMiB': 8192, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'g4ad.2xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.0}, 'VCpuInfo': {'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 32768}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 300, 'Disks': [{'SizeInGB': 300, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 800, 'BaselineThroughputInMBps': 100.0, 'BaselineIops': 3400, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13333}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 2, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 2}], 'Ipv4AddressesPerInterface': 4, 'Ipv6AddressesPerInterface': 4, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'GpuInfo': {'Gpus': [{'Name': 'Radeon Pro V520', 'Manufacturer': 'AMD', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 8192}}], 'TotalGpuMemoryInMiB': 8192}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 32768, 'TotalSizeInGB': 225, 'Disks': [{'SizeInGB': 225, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1150, 'BaselineThroughputInMBps': 143.75, 'BaselineIops': 6000, 'MaximumBandwidthInMbps': 3500, 'MaximumThroughputInMBps': 437.5, 'MaximumIops': 20000}, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'Gpus': [{'Name': 'T4', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 16384}}], 'TotalGpuMemoryInMiB': 16384, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'g4dn.2xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 32768}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 225, 'Disks': [{'SizeInGB': 225, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1150, 'BaselineThroughputInMBps': 143.75, 'BaselineIops': 6000, 'MaximumBandwidthInMbps': 3500, 'MaximumThroughputInMBps': 437.5, 'MaximumIops': 20000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'GpuInfo': {'Gpus': [{'Name': 'T4', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 16384}}], 'TotalGpuMemoryInMiB': 16384}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3, 'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'SizeInMiB': 32768, 'TotalSizeInGB': 450, 'Disks': [{'SizeInGB': 450, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 850, 'BaselineThroughputInMBps': 106.25, 'BaselineIops': 3500, 'MaximumBandwidthInMbps': 3500, 'MaximumThroughputInMBps': 437.5, 'MaximumIops': 15000}, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'Gpus': [{'Name': 'A10G', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 24576}}], 'TotalGpuMemoryInMiB': 24576, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'g5.2xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3}, 'VCpuInfo': {'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2}, 'MemoryInfo': {'SizeInMiB': 32768}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 450, 'Disks': [{'SizeInGB': 450, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 850, 'BaselineThroughputInMBps': 106.25, 'BaselineIops': 3500, 'MaximumBandwidthInMbps': 3500, 'MaximumThroughputInMBps': 437.5, 'MaximumIops': 15000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'GpuInfo': {'Gpus': [{'Name': 'A10G', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 24576}}], 'TotalGpuMemoryInMiB': 24576}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 8, 'DefaultCores': 8, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4, 5, 6, 7, 8], 'ValidThreadsPerCore': [1], 'SizeInMiB': 16384, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 2375, 'BaselineThroughputInMBps': 296.875, 'BaselineIops': 12000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'Gpus': [{'Name': 'T4g', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 16384}}], 'TotalGpuMemoryInMiB': 16384, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'g5g.2xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 8, 'DefaultCores': 8, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4, 5, 6, 7, 8], 'ValidThreadsPerCore': [1]}, 'MemoryInfo': {'SizeInMiB': 16384}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 2375, 'BaselineThroughputInMBps': 296.875, 'BaselineIops': 12000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'GpuInfo': {'Gpus': [{'Name': 'T4g', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 16384}}], 'TotalGpuMemoryInMiB': 16384}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 16384, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1190, 'BaselineThroughputInMBps': 148.75, 'BaselineIops': 6000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'Accelerators': [{'Count': 1, 'Name': 'Inferentia', 'Manufacturer': 'AWS'}], 'InstanceType': 'inf1.2xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 16384}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1190, 'BaselineThroughputInMBps': 148.75, 'BaselineIops': 6000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'InferenceAcceleratorInfo': {'Accelerators': [{'Count': 1, 'Name': 'Inferentia', 'Manufacturer': 'AWS'}]}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 8, 'DefaultCores': 8, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4, 5, 6, 7, 8], 'ValidThreadsPerCore': [1], 'SizeInMiB': 49152, 'TotalSizeInGB': 7500, 'Disks': [{'SizeInGB': 7500, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 5000, 'BaselineThroughputInMBps': 625.0, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 10000, 'MaximumThroughputInMBps': 1250.0, 'MaximumIops': 40000}, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'is4gen.2xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 8, 'DefaultCores': 8, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4, 5, 6, 7, 8], 'ValidThreadsPerCore': [1]}, 'MemoryInfo': {'SizeInMiB': 49152}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 7500, 'Disks': [{'SizeInGB': 7500, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 5000, 'BaselineThroughputInMBps': 625.0, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 10000, 'MaximumThroughputInMBps': 1250.0, 'MaximumIops': 40000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['uefi']}, {'SupportedArchitectures': ['x86_64'], 'DefaultVCpus': 8, 'DefaultCores': 8, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4, 5, 6, 7, 8], 'ValidThreadsPerCore': [1], 'SizeInMiB': 70041, 'TotalSizeInGB': 1680, 'Disks': [{'SizeInGB': 840, 'Count': 2, 'Type': 'hdd'}], 'NvmeSupport': 'unsupported', 'EncryptionSupport': 'unsupported', 'EbsOptimizedSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1000, 'BaselineThroughputInMBps': 125.0, 'BaselineIops': 8000, 'MaximumBandwidthInMbps': 1000, 'MaximumThroughputInMBps': 125.0, 'MaximumIops': 8000}, 'NetworkPerformance': 'High', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'High', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 0, 'Ipv6Supported': False, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 'm2.4xlarge', 'CurrentGeneration': False, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs', 'instance-store'], 'SupportedVirtualizationTypes': ['hvm', 'paravirtual'], 'BareMetal': False, 'Hypervisor': 'xen', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64']}, 'VCpuInfo': {'DefaultVCpus': 8, 'DefaultCores': 8, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4, 5, 6, 7, 8], 'ValidThreadsPerCore': [1]}, 'MemoryInfo': {'SizeInMiB': 70041}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 1680, 'Disks': [{'SizeInGB': 840, 'Count': 2, 'Type': 'hdd'}], 'NvmeSupport': 'unsupported', 'EncryptionSupport': 'unsupported'}, 'EbsInfo': {'EbsOptimizedSupport': 'supported', 'EncryptionSupport': 'unsupported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1000, 'BaselineThroughputInMBps': 125.0, 'BaselineIops': 8000, 'MaximumBandwidthInMbps': 1000, 'MaximumThroughputInMBps': 125.0, 'MaximumIops': 8000}, 'NvmeSupport': 'unsupported'}, 'NetworkInfo': {'NetworkPerformance': 'High', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'High', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 0, 'Ipv6Supported': False, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 32768, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1580, 'BaselineThroughputInMBps': 197.5, 'BaselineIops': 8333, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'm5a.2xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 32768}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1580, 'BaselineThroughputInMBps': 197.5, 'BaselineIops': 8333, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2, 'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 32768, 'TotalSizeInGB': 300, 'Disks': [{'SizeInGB': 300, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1580, 'BaselineThroughputInMBps': 197.5, 'BaselineIops': 8333, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'm5ad.2xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2}, 'VCpuInfo': {'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 32768}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 300, 'Disks': [{'SizeInGB': 300, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1580, 'BaselineThroughputInMBps': 197.5, 'BaselineIops': 8333, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 65536, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1580, 'BaselineThroughputInMBps': 197.5, 'BaselineIops': 8333, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'r5a.2xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 65536}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1580, 'BaselineThroughputInMBps': 197.5, 'BaselineIops': 8333, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2, 'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 65536, 'TotalSizeInGB': 300, 'Disks': [{'SizeInGB': 300, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1580, 'BaselineThroughputInMBps': 197.5, 'BaselineIops': 8333, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'r5ad.2xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2}, 'VCpuInfo': {'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 65536}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 300, 'Disks': [{'SizeInGB': 300, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1580, 'BaselineThroughputInMBps': 197.5, 'BaselineIops': 8333, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.3, 'DefaultVCpus': 8, 'DefaultCores': 8, 'DefaultThreadsPerCore': 1, 'SizeInMiB': 32768, 'EbsOptimizedSupport': 'unsupported', 'EncryptionSupport': 'supported', 'NvmeSupport': 'unsupported', 'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 't2.2xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'xen', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.3}, 'VCpuInfo': {'DefaultVCpus': 8, 'DefaultCores': 8, 'DefaultThreadsPerCore': 1}, 'MemoryInfo': {'SizeInMiB': 32768}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'unsupported', 'EncryptionSupport': 'supported', 'NvmeSupport': 'unsupported'}, 'NetworkInfo': {'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Moderate', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': True, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2, 'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 32768, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 695, 'BaselineThroughputInMBps': 86.875, 'BaselineIops': 4000, 'MaximumBandwidthInMbps': 2780, 'MaximumThroughputInMBps': 347.5, 'MaximumIops': 15700}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 't3a.2xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2}, 'VCpuInfo': {'DefaultVCpus': 8, 'DefaultCores': 4, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 32768}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 695, 'BaselineThroughputInMBps': 86.875, 'BaselineIops': 4000, 'MaximumBandwidthInMbps': 2780, 'MaximumThroughputInMBps': 347.5, 'MaximumIops': 15700}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': True, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 8, 'DefaultCores': 8, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4, 5, 6, 7, 8], 'ValidThreadsPerCore': [1], 'SizeInMiB': 32768, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 695, 'BaselineThroughputInMBps': 86.875, 'BaselineIops': 4000, 'MaximumBandwidthInMbps': 2780, 'MaximumThroughputInMBps': 347.5, 'MaximumIops': 15700}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 't4g.2xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 8, 'DefaultCores': 8, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4, 5, 6, 7, 8], 'ValidThreadsPerCore': [1]}, 'MemoryInfo': {'SizeInMiB': 32768}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 695, 'BaselineThroughputInMBps': 86.875, 'BaselineIops': 4000, 'MaximumBandwidthInMbps': 2780, 'MaximumThroughputInMBps': 347.5, 'MaximumIops': 15700}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 5 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': True, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 12, 'DefaultCores': 6, 'DefaultThreadsPerCore': 2, 'ValidCores': [6], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 24576, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 2375, 'BaselineThroughputInMBps': 296.875, 'BaselineIops': 10000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required', 'NetworkPerformance': '3.12 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '3.12 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 'vt1.3xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 12, 'DefaultCores': 6, 'DefaultThreadsPerCore': 2, 'ValidCores': [6], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 24576}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 2375, 'BaselineThroughputInMBps': 296.875, 'BaselineIops': 10000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '3.12 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '3.12 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3, 'DefaultVCpus': 16, 'DefaultCores': 8, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4, 8], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 32768, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1580, 'BaselineThroughputInMBps': 197.5, 'BaselineIops': 6600, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13300}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'c5a.4xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3}, 'VCpuInfo': {'DefaultVCpus': 16, 'DefaultCores': 8, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4, 8], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 32768}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1580, 'BaselineThroughputInMBps': 197.5, 'BaselineIops': 6600, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13300}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3, 'DefaultVCpus': 16, 'DefaultCores': 8, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4, 8], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 32768, 'TotalSizeInGB': 600, 'Disks': [{'SizeInGB': 300, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1580, 'BaselineThroughputInMBps': 197.5, 'BaselineIops': 6600, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13300}, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'c5ad.4xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3}, 'VCpuInfo': {'DefaultVCpus': 16, 'DefaultCores': 8, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4, 8], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 32768}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 600, 'Disks': [{'SizeInGB': 300, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 1580, 'BaselineThroughputInMBps': 197.5, 'BaselineIops': 6600, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13300}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.1, 'DefaultVCpus': 16, 'DefaultCores': 8, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 131072, 'TotalSizeInGB': 23760, 'Disks': [{'SizeInGB': 1980, 'Count': 12, 'Type': 'hdd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 2800, 'BaselineThroughputInMBps': 350.0, 'BaselineIops': 15000, 'MaximumBandwidthInMbps': 2800, 'MaximumThroughputInMBps': 350.0, 'MaximumIops': 15000}, 'NetworkPerformance': 'Up to 15 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 15 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'd3.4xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.1}, 'VCpuInfo': {'DefaultVCpus': 16, 'DefaultCores': 8, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 131072}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 23760, 'Disks': [{'SizeInGB': 1980, 'Count': 12, 'Type': 'hdd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 2800, 'BaselineThroughputInMBps': 350.0, 'BaselineIops': 15000, 'MaximumBandwidthInMbps': 2800, 'MaximumThroughputInMBps': 350.0, 'MaximumIops': 15000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 15 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 15 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.1, 'DefaultVCpus': 16, 'DefaultCores': 8, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 65536, 'TotalSizeInGB': 111840, 'Disks': [{'SizeInGB': 13980, 'Count': 8, 'Type': 'hdd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 2800, 'BaselineThroughputInMBps': 350.0, 'BaselineIops': 15000, 'MaximumBandwidthInMbps': 2800, 'MaximumThroughputInMBps': 350.0, 'MaximumIops': 15000}, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'd3en.4xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.1}, 'VCpuInfo': {'DefaultVCpus': 16, 'DefaultCores': 8, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 65536}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 111840, 'Disks': [{'SizeInGB': 13980, 'Count': 8, 'Type': 'hdd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 2800, 'BaselineThroughputInMBps': 350.0, 'BaselineIops': 15000, 'MaximumBandwidthInMbps': 2800, 'MaximumThroughputInMBps': 350.0, 'MaximumIops': 15000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 16, 'DefaultCores': 8, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 65536, 'TotalSizeInGB': 225, 'Disks': [{'SizeInGB': 225, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4750, 'BaselineThroughputInMBps': 593.75, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'Gpus': [{'Name': 'T4', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 16384}}], 'TotalGpuMemoryInMiB': 16384, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'g4dn.4xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 16, 'DefaultCores': 8, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 65536}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 225, 'Disks': [{'SizeInGB': 225, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4750, 'BaselineThroughputInMBps': 593.75, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 10, 'Ipv6AddressesPerInterface': 10, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'GpuInfo': {'Gpus': [{'Name': 'T4', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 16384}}], 'TotalGpuMemoryInMiB': 16384}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3, 'DefaultVCpus': 16, 'DefaultCores': 8, 'DefaultThreadsPerCore': 2, 'SizeInMiB': 65536, 'TotalSizeInGB': 600, 'Disks': [{'SizeInGB': 600, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4750, 'BaselineThroughputInMBps': 593.75, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'Gpus': [{'Name': 'A10G', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 24576}}], 'TotalGpuMemoryInMiB': 24576, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'g5.4xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3}, 'VCpuInfo': {'DefaultVCpus': 16, 'DefaultCores': 8, 'DefaultThreadsPerCore': 2}, 'MemoryInfo': {'SizeInMiB': 65536}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 600, 'Disks': [{'SizeInGB': 600, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4750, 'BaselineThroughputInMBps': 593.75, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 25 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'GpuInfo': {'Gpus': [{'Name': 'A10G', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 24576}}], 'TotalGpuMemoryInMiB': 24576}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 16, 'DefaultCores': 16, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], 'ValidThreadsPerCore': [1], 'SizeInMiB': 32768, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4750, 'BaselineThroughputInMBps': 593.75, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'Gpus': [{'Name': 'T4g', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 16384}}], 'TotalGpuMemoryInMiB': 16384, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'g5g.4xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 16, 'DefaultCores': 16, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], 'ValidThreadsPerCore': [1]}, 'MemoryInfo': {'SizeInMiB': 32768}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4750, 'BaselineThroughputInMBps': 593.75, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'GpuInfo': {'Gpus': [{'Name': 'T4g', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 16384}}], 'TotalGpuMemoryInMiB': 16384}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['uefi']}, {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 16, 'DefaultCores': 16, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], 'ValidThreadsPerCore': [1], 'SizeInMiB': 98304, 'TotalSizeInGB': 15000, 'Disks': [{'SizeInGB': 7500, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 10000, 'BaselineThroughputInMBps': 1250.0, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 10000, 'MaximumThroughputInMBps': 1250.0, 'MaximumIops': 40000}, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'is4gen.4xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 16, 'DefaultCores': 16, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], 'ValidThreadsPerCore': [1]}, 'MemoryInfo': {'SizeInMiB': 98304}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 15000, 'Disks': [{'SizeInGB': 7500, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 10000, 'BaselineThroughputInMBps': 1250.0, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 10000, 'MaximumThroughputInMBps': 1250.0, 'MaximumIops': 40000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 16, 'DefaultCores': 8, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 65536, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 2880, 'BaselineThroughputInMBps': 360.0, 'BaselineIops': 16000, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'm5a.4xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 16, 'DefaultCores': 8, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 65536}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 2880, 'BaselineThroughputInMBps': 360.0, 'BaselineIops': 16000, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2, 'DefaultVCpus': 16, 'DefaultCores': 8, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 65536, 'TotalSizeInGB': 600, 'Disks': [{'SizeInGB': 300, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 2880, 'BaselineThroughputInMBps': 360.0, 'BaselineIops': 16000, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'm5ad.4xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2}, 'VCpuInfo': {'DefaultVCpus': 16, 'DefaultCores': 8, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 65536}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 600, 'Disks': [{'SizeInGB': 300, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 2880, 'BaselineThroughputInMBps': 360.0, 'BaselineIops': 16000, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 16, 'DefaultCores': 8, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 131072, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 2880, 'BaselineThroughputInMBps': 360.0, 'BaselineIops': 16000, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'r5a.4xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 16, 'DefaultCores': 8, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 131072}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 2880, 'BaselineThroughputInMBps': 360.0, 'BaselineIops': 16000, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2, 'DefaultVCpus': 16, 'DefaultCores': 8, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 131072, 'TotalSizeInGB': 600, 'Disks': [{'SizeInGB': 300, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 2880, 'BaselineThroughputInMBps': 360.0, 'BaselineIops': 16000, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'r5ad.4xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2}, 'VCpuInfo': {'DefaultVCpus': 16, 'DefaultCores': 8, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 131072}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 600, 'Disks': [{'SizeInGB': 300, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 2880, 'BaselineThroughputInMBps': 360.0, 'BaselineIops': 16000, 'MaximumBandwidthInMbps': 2880, 'MaximumThroughputInMBps': 360.0, 'MaximumIops': 16000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.1, 'DefaultVCpus': 24, 'DefaultCores': 12, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 98304, 'TotalSizeInGB': 167760, 'Disks': [{'SizeInGB': 13980, 'Count': 12, 'Type': 'hdd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4000, 'BaselineThroughputInMBps': 500.0, 'BaselineIops': 25000, 'MaximumBandwidthInMbps': 4000, 'MaximumThroughputInMBps': 500.0, 'MaximumIops': 25000}, 'NetworkPerformance': '40 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '40 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'd3en.6xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.1}, 'VCpuInfo': {'DefaultVCpus': 24, 'DefaultCores': 12, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 98304}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 167760, 'Disks': [{'SizeInGB': 13980, 'Count': 12, 'Type': 'hdd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4000, 'BaselineThroughputInMBps': 500.0, 'BaselineIops': 25000, 'MaximumBandwidthInMbps': 4000, 'MaximumThroughputInMBps': 500.0, 'MaximumIops': 25000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '40 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '40 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 24, 'DefaultCores': 12, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 49152, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4750, 'BaselineThroughputInMBps': 593.75, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required', 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'Accelerators': [{'Count': 4, 'Name': 'Inferentia', 'Manufacturer': 'AWS'}], 'InstanceType': 'inf1.6xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 24, 'DefaultCores': 12, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 49152}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4750, 'BaselineThroughputInMBps': 593.75, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'InferenceAcceleratorInfo': {'Accelerators': [{'Count': 4, 'Name': 'Inferentia', 'Manufacturer': 'AWS'}]}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 24, 'DefaultCores': 12, 'DefaultThreadsPerCore': 2, 'ValidCores': [6, 12], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 49152, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4750, 'BaselineThroughputInMBps': 593.75, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required', 'NetworkPerformance': '6.25 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '6.25 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 'vt1.6xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 24, 'DefaultCores': 12, 'DefaultThreadsPerCore': 2, 'ValidCores': [6, 12], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 49152}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4750, 'BaselineThroughputInMBps': 593.75, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '6.25 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '6.25 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3, 'DefaultVCpus': 32, 'DefaultCores': 16, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4, 8, 12, 16], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 65536, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 3170, 'BaselineThroughputInMBps': 396.25, 'BaselineIops': 13300, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13300}, 'NvmeSupport': 'required', 'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'c5a.8xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3}, 'VCpuInfo': {'DefaultVCpus': 32, 'DefaultCores': 16, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4, 8, 12, 16], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 65536}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 3170, 'BaselineThroughputInMBps': 396.25, 'BaselineIops': 13300, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13300}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3, 'DefaultVCpus': 32, 'DefaultCores': 16, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4, 8, 12, 16], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 65536, 'TotalSizeInGB': 1200, 'Disks': [{'SizeInGB': 600, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 3170, 'BaselineThroughputInMBps': 396.25, 'BaselineIops': 13300, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13300}, 'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'c5ad.8xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3}, 'VCpuInfo': {'DefaultVCpus': 32, 'DefaultCores': 16, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4, 8, 12, 16], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 65536}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 1200, 'Disks': [{'SizeInGB': 600, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 3170, 'BaselineThroughputInMBps': 396.25, 'BaselineIops': 13300, 'MaximumBandwidthInMbps': 3170, 'MaximumThroughputInMBps': 396.25, 'MaximumIops': 13300}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.6, 'DefaultVCpus': 32, 'DefaultCores': 16, 'DefaultThreadsPerCore': 2, 'SizeInMiB': 61952, 'TotalSizeInGB': 3360, 'Disks': [{'SizeInGB': 840, 'Count': 4, 'Type': 'hdd'}], 'NvmeSupport': 'unsupported', 'EncryptionSupport': 'unsupported', 'EbsOptimizedSupport': 'unsupported', 'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 0, 'Ipv6Supported': False, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'cc2.8xlarge', 'CurrentGeneration': False, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand'], 'SupportedRootDeviceTypes': ['ebs', 'instance-store'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'xen', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.6}, 'VCpuInfo': {'DefaultVCpus': 32, 'DefaultCores': 16, 'DefaultThreadsPerCore': 2}, 'MemoryInfo': {'SizeInMiB': 61952}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 3360, 'Disks': [{'SizeInGB': 840, 'Count': 4, 'Type': 'hdd'}], 'NvmeSupport': 'unsupported', 'EncryptionSupport': 'unsupported'}, 'EbsInfo': {'EbsOptimizedSupport': 'unsupported', 'EncryptionSupport': 'unsupported', 'NvmeSupport': 'unsupported'}, 'NetworkInfo': {'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 0, 'Ipv6Supported': False, 'EnaSupport': 'unsupported', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.1, 'DefaultVCpus': 32, 'DefaultCores': 16, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12, 14, 16], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 262144, 'TotalSizeInGB': 47520, 'Disks': [{'SizeInGB': 1980, 'Count': 24, 'Type': 'hdd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 5000, 'BaselineThroughputInMBps': 625.0, 'BaselineIops': 30000, 'MaximumBandwidthInMbps': 5000, 'MaximumThroughputInMBps': 625.0, 'MaximumIops': 30000}, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 20, 'Ipv6AddressesPerInterface': 20, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'd3.8xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.1}, 'VCpuInfo': {'DefaultVCpus': 32, 'DefaultCores': 16, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12, 14, 16], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 262144}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 47520, 'Disks': [{'SizeInGB': 1980, 'Count': 24, 'Type': 'hdd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 5000, 'BaselineThroughputInMBps': 625.0, 'BaselineIops': 30000, 'MaximumBandwidthInMbps': 5000, 'MaximumThroughputInMBps': 625.0, 'MaximumIops': 30000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 20, 'Ipv6AddressesPerInterface': 20, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.1, 'DefaultVCpus': 32, 'DefaultCores': 16, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12, 14, 16], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 131072, 'TotalSizeInGB': 223680, 'Disks': [{'SizeInGB': 13980, 'Count': 16, 'Type': 'hdd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 5000, 'BaselineThroughputInMBps': 625.0, 'BaselineIops': 30000, 'MaximumBandwidthInMbps': 5000, 'MaximumThroughputInMBps': 625.0, 'MaximumIops': 30000}, 'NetworkPerformance': '50 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '50 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 20, 'Ipv6AddressesPerInterface': 20, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'd3en.8xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.1}, 'VCpuInfo': {'DefaultVCpus': 32, 'DefaultCores': 16, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12, 14, 16], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 131072}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 223680, 'Disks': [{'SizeInGB': 13980, 'Count': 16, 'Type': 'hdd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 5000, 'BaselineThroughputInMBps': 625.0, 'BaselineIops': 30000, 'MaximumBandwidthInMbps': 5000, 'MaximumThroughputInMBps': 625.0, 'MaximumIops': 30000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '50 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '50 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 20, 'Ipv6AddressesPerInterface': 20, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 32, 'DefaultCores': 16, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12, 14, 16], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 131072, 'TotalSizeInGB': 900, 'Disks': [{'SizeInGB': 900, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 9500, 'BaselineThroughputInMBps': 1187.5, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 9500, 'MaximumThroughputInMBps': 1187.5, 'MaximumIops': 40000}, 'NetworkPerformance': '50 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '50 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': True, 'EfaInfo': {'MaximumEfaInterfaces': 1}, 'EncryptionInTransitSupported': True, 'Gpus': [{'Name': 'T4', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 16384}}], 'TotalGpuMemoryInMiB': 16384, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'g4dn.8xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 32, 'DefaultCores': 16, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12, 14, 16], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 131072}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 900, 'Disks': [{'SizeInGB': 900, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 9500, 'BaselineThroughputInMBps': 1187.5, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 9500, 'MaximumThroughputInMBps': 1187.5, 'MaximumIops': 40000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '50 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '50 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': True, 'EfaInfo': {'MaximumEfaInterfaces': 1}, 'EncryptionInTransitSupported': True}, 'GpuInfo': {'Gpus': [{'Name': 'T4', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 16384}}], 'TotalGpuMemoryInMiB': 16384}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3, 'DefaultVCpus': 32, 'DefaultCores': 16, 'DefaultThreadsPerCore': 2, 'SizeInMiB': 131072, 'TotalSizeInGB': 900, 'Disks': [{'SizeInGB': 900, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 16000, 'BaselineThroughputInMBps': 2000.0, 'BaselineIops': 65000, 'MaximumBandwidthInMbps': 16000, 'MaximumThroughputInMBps': 2000.0, 'MaximumIops': 65000}, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'Gpus': [{'Name': 'A10G', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 24576}}], 'TotalGpuMemoryInMiB': 24576, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'g5.8xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3}, 'VCpuInfo': {'DefaultVCpus': 32, 'DefaultCores': 16, 'DefaultThreadsPerCore': 2}, 'MemoryInfo': {'SizeInMiB': 131072}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 900, 'Disks': [{'SizeInGB': 900, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 16000, 'BaselineThroughputInMBps': 2000.0, 'BaselineIops': 65000, 'MaximumBandwidthInMbps': 16000, 'MaximumThroughputInMBps': 2000.0, 'MaximumIops': 65000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'GpuInfo': {'Gpus': [{'Name': 'A10G', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 24576}}], 'TotalGpuMemoryInMiB': 24576}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 32, 'DefaultCores': 32, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32], 'ValidThreadsPerCore': [1], 'SizeInMiB': 65536, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 9500, 'BaselineThroughputInMBps': 1187.5, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 9500, 'MaximumThroughputInMBps': 1187.5, 'MaximumIops': 40000}, 'NvmeSupport': 'required', 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'Gpus': [{'Name': 'T4g', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 16384}}], 'TotalGpuMemoryInMiB': 16384, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'g5g.8xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 32, 'DefaultCores': 32, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32], 'ValidThreadsPerCore': [1]}, 'MemoryInfo': {'SizeInMiB': 65536}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 9500, 'BaselineThroughputInMBps': 1187.5, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 9500, 'MaximumThroughputInMBps': 1187.5, 'MaximumIops': 40000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'GpuInfo': {'Gpus': [{'Name': 'T4g', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 16384}}], 'TotalGpuMemoryInMiB': 16384}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['uefi']}, {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 32, 'DefaultCores': 32, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32], 'ValidThreadsPerCore': [1], 'SizeInMiB': 196608, 'TotalSizeInGB': 30000, 'Disks': [{'SizeInGB': 7500, 'Count': 4, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 20000, 'BaselineThroughputInMBps': 2500.0, 'BaselineIops': 80000, 'MaximumBandwidthInMbps': 20000, 'MaximumThroughputInMBps': 2500.0, 'MaximumIops': 80000}, 'NetworkPerformance': '50 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '50 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'is4gen.8xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 32, 'DefaultCores': 32, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32], 'ValidThreadsPerCore': [1]}, 'MemoryInfo': {'SizeInMiB': 196608}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 30000, 'Disks': [{'SizeInGB': 7500, 'Count': 4, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 20000, 'BaselineThroughputInMBps': 2500.0, 'BaselineIops': 80000, 'MaximumBandwidthInMbps': 20000, 'MaximumThroughputInMBps': 2500.0, 'MaximumIops': 80000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '50 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '50 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 32, 'DefaultCores': 16, 'DefaultThreadsPerCore': 2, 'ValidCores': [4, 6, 8, 10, 12, 14, 16], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 131072, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4750, 'BaselineThroughputInMBps': 593.75, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'm5a.8xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 32, 'DefaultCores': 16, 'DefaultThreadsPerCore': 2, 'ValidCores': [4, 6, 8, 10, 12, 14, 16], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 131072}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4750, 'BaselineThroughputInMBps': 593.75, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 32, 'DefaultCores': 16, 'DefaultThreadsPerCore': 2, 'ValidCores': [4, 6, 8, 10, 12, 14, 16], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 131072, 'TotalSizeInGB': 1200, 'Disks': [{'SizeInGB': 600, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4750, 'BaselineThroughputInMBps': 593.75, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'm5ad.8xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 32, 'DefaultCores': 16, 'DefaultThreadsPerCore': 2, 'ValidCores': [4, 6, 8, 10, 12, 14, 16], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 131072}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 1200, 'Disks': [{'SizeInGB': 600, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4750, 'BaselineThroughputInMBps': 593.75, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 32, 'DefaultCores': 16, 'DefaultThreadsPerCore': 2, 'ValidCores': [4, 6, 8, 10, 12, 14, 16], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 262144, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4750, 'BaselineThroughputInMBps': 593.75, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required', 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'r5a.8xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 32, 'DefaultCores': 16, 'DefaultThreadsPerCore': 2, 'ValidCores': [4, 6, 8, 10, 12, 14, 16], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 262144}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4750, 'BaselineThroughputInMBps': 593.75, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 32, 'DefaultCores': 16, 'DefaultThreadsPerCore': 2, 'ValidCores': [4, 6, 8, 10, 12, 14, 16], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 262144, 'TotalSizeInGB': 1200, 'Disks': [{'SizeInGB': 600, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4750, 'BaselineThroughputInMBps': 593.75, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'r5ad.8xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 32, 'DefaultCores': 16, 'DefaultThreadsPerCore': 2, 'ValidCores': [4, 6, 8, 10, 12, 14, 16], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 262144}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 1200, 'Disks': [{'SizeInGB': 600, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4750, 'BaselineThroughputInMBps': 593.75, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': 'Up to 10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.6, 'DefaultVCpus': 48, 'DefaultCores': 24, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 98304, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 9500, 'BaselineThroughputInMBps': 1187.5, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 9500, 'MaximumThroughputInMBps': 1187.5, 'MaximumIops': 40000}, 'NvmeSupport': 'required', 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'c5.12xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.6}, 'VCpuInfo': {'DefaultVCpus': 48, 'DefaultCores': 24, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 98304}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 9500, 'BaselineThroughputInMBps': 1187.5, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 9500, 'MaximumThroughputInMBps': 1187.5, 'MaximumIops': 40000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3, 'DefaultVCpus': 48, 'DefaultCores': 24, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4, 8, 12, 16, 20, 24], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 98304, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4750, 'BaselineThroughputInMBps': 593.75, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required', 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'c5a.12xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3}, 'VCpuInfo': {'DefaultVCpus': 48, 'DefaultCores': 24, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4, 8, 12, 16, 20, 24], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 98304}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4750, 'BaselineThroughputInMBps': 593.75, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3, 'DefaultVCpus': 48, 'DefaultCores': 24, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4, 8, 12, 16, 20, 24], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 98304, 'TotalSizeInGB': 1800, 'Disks': [{'SizeInGB': 900, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4750, 'BaselineThroughputInMBps': 593.75, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'c5ad.12xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3}, 'VCpuInfo': {'DefaultVCpus': 48, 'DefaultCores': 24, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4, 8, 12, 16, 20, 24], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 98304}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 1800, 'Disks': [{'SizeInGB': 900, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 4750, 'BaselineThroughputInMBps': 593.75, 'BaselineIops': 20000, 'MaximumBandwidthInMbps': 4750, 'MaximumThroughputInMBps': 593.75, 'MaximumIops': 20000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.6, 'DefaultVCpus': 48, 'DefaultCores': 24, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 98304, 'TotalSizeInGB': 1800, 'Disks': [{'SizeInGB': 900, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 9500, 'BaselineThroughputInMBps': 1187.5, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 9500, 'MaximumThroughputInMBps': 1187.5, 'MaximumIops': 40000}, 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'c5d.12xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.6}, 'VCpuInfo': {'DefaultVCpus': 48, 'DefaultCores': 24, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 98304}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 1800, 'Disks': [{'SizeInGB': 900, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 9500, 'BaselineThroughputInMBps': 1187.5, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 9500, 'MaximumThroughputInMBps': 1187.5, 'MaximumIops': 40000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': True, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 48, 'DefaultCores': 48, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48], 'ValidThreadsPerCore': [1], 'SizeInMiB': 98304, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 28500, 'BaselineThroughputInMBps': 3562.5, 'BaselineIops': 120000, 'MaximumBandwidthInMbps': 28500, 'MaximumThroughputInMBps': 3562.5, 'MaximumIops': 120000}, 'NvmeSupport': 'required', 'NetworkPerformance': '75 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '75 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'c6gn.12xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['arm64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 48, 'DefaultCores': 48, 'DefaultThreadsPerCore': 1, 'ValidCores': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48], 'ValidThreadsPerCore': [1]}, 'MemoryInfo': {'SizeInMiB': 98304}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 28500, 'BaselineThroughputInMBps': 3562.5, 'BaselineIops': 120000, 'MaximumBandwidthInMbps': 28500, 'MaximumThroughputInMBps': 3562.5, 'MaximumIops': 120000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '75 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '75 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.1, 'DefaultVCpus': 48, 'DefaultCores': 24, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 196608, 'TotalSizeInGB': 335520, 'Disks': [{'SizeInGB': 13980, 'Count': 24, 'Type': 'hdd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 7000, 'BaselineThroughputInMBps': 875.0, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 7000, 'MaximumThroughputInMBps': 875.0, 'MaximumIops': 40000}, 'NetworkPerformance': '75 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '75 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'd3en.12xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.1}, 'VCpuInfo': {'DefaultVCpus': 48, 'DefaultCores': 24, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 196608}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 335520, 'Disks': [{'SizeInGB': 13980, 'Count': 24, 'Type': 'hdd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 7000, 'BaselineThroughputInMBps': 875.0, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 7000, 'MaximumThroughputInMBps': 875.0, 'MaximumIops': 40000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '75 Gigabit', 'MaximumNetworkInterfaces': 3, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '75 Gigabit', 'MaximumNetworkInterfaces': 3}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3, 'DefaultVCpus': 48, 'DefaultCores': 24, 'DefaultThreadsPerCore': 2, 'SizeInMiB': 196608, 'TotalSizeInGB': 3800, 'Disks': [{'SizeInGB': 3800, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 16000, 'BaselineThroughputInMBps': 2000.0, 'BaselineIops': 65000, 'MaximumBandwidthInMbps': 16000, 'MaximumThroughputInMBps': 2000.0, 'MaximumIops': 65000}, 'NetworkPerformance': '40 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '40 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'Gpus': [{'Name': 'A10G', 'Manufacturer': 'NVIDIA', 'Count': 4, 'MemoryInfo': {'SizeInMiB': 24576}}], 'TotalGpuMemoryInMiB': 98304, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'g5.12xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3}, 'VCpuInfo': {'DefaultVCpus': 48, 'DefaultCores': 24, 'DefaultThreadsPerCore': 2}, 'MemoryInfo': {'SizeInMiB': 196608}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 3800, 'Disks': [{'SizeInGB': 3800, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 16000, 'BaselineThroughputInMBps': 2000.0, 'BaselineIops': 65000, 'MaximumBandwidthInMbps': 16000, 'MaximumThroughputInMBps': 2000.0, 'MaximumIops': 65000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '40 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '40 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'GpuInfo': {'Gpus': [{'Name': 'A10G', 'Manufacturer': 'NVIDIA', 'Count': 4, 'MemoryInfo': {'SizeInMiB': 24576}}], 'TotalGpuMemoryInMiB': 98304}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 48, 'DefaultCores': 24, 'DefaultThreadsPerCore': 2, 'ValidCores': [6, 12, 18, 24], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 196608, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 6780, 'BaselineThroughputInMBps': 847.5, 'BaselineIops': 30000, 'MaximumBandwidthInMbps': 6780, 'MaximumThroughputInMBps': 847.5, 'MaximumIops': 30000}, 'NvmeSupport': 'required', 'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'm5a.12xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 48, 'DefaultCores': 24, 'DefaultThreadsPerCore': 2, 'ValidCores': [6, 12, 18, 24], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 196608}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 6780, 'BaselineThroughputInMBps': 847.5, 'BaselineIops': 30000, 'MaximumBandwidthInMbps': 6780, 'MaximumThroughputInMBps': 847.5, 'MaximumIops': 30000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2, 'DefaultVCpus': 48, 'DefaultCores': 24, 'DefaultThreadsPerCore': 2, 'ValidCores': [6, 12, 18, 24], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 196608, 'TotalSizeInGB': 1800, 'Disks': [{'SizeInGB': 900, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 6780, 'BaselineThroughputInMBps': 847.5, 'BaselineIops': 30000, 'MaximumBandwidthInMbps': 6780, 'MaximumThroughputInMBps': 847.5, 'MaximumIops': 30000}, 'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'm5ad.12xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2}, 'VCpuInfo': {'DefaultVCpus': 48, 'DefaultCores': 24, 'DefaultThreadsPerCore': 2, 'ValidCores': [6, 12, 18, 24], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 196608}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 1800, 'Disks': [{'SizeInGB': 900, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 6780, 'BaselineThroughputInMBps': 847.5, 'BaselineIops': 30000, 'MaximumBandwidthInMbps': 6780, 'MaximumThroughputInMBps': 847.5, 'MaximumIops': 30000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 48, 'DefaultCores': 24, 'DefaultThreadsPerCore': 2, 'ValidCores': [6, 12, 18, 24], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 393216, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 6780, 'BaselineThroughputInMBps': 847.5, 'BaselineIops': 30000, 'MaximumBandwidthInMbps': 6780, 'MaximumThroughputInMBps': 847.5, 'MaximumIops': 30000}, 'NvmeSupport': 'required', 'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'r5a.12xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 48, 'DefaultCores': 24, 'DefaultThreadsPerCore': 2, 'ValidCores': [6, 12, 18, 24], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 393216}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 6780, 'BaselineThroughputInMBps': 847.5, 'BaselineIops': 30000, 'MaximumBandwidthInMbps': 6780, 'MaximumThroughputInMBps': 847.5, 'MaximumIops': 30000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2, 'DefaultVCpus': 48, 'DefaultCores': 24, 'DefaultThreadsPerCore': 2, 'ValidCores': [6, 12, 18, 24], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 393216, 'TotalSizeInGB': 1800, 'Disks': [{'SizeInGB': 900, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 6780, 'BaselineThroughputInMBps': 847.5, 'BaselineIops': 30000, 'MaximumBandwidthInMbps': 6780, 'MaximumThroughputInMBps': 847.5, 'MaximumIops': 30000}, 'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'r5ad.12xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2}, 'VCpuInfo': {'DefaultVCpus': 48, 'DefaultCores': 24, 'DefaultThreadsPerCore': 2, 'ValidCores': [6, 12, 18, 24], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 393216}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 1800, 'Disks': [{'SizeInGB': 900, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 6780, 'BaselineThroughputInMBps': 847.5, 'BaselineIops': 30000, 'MaximumBandwidthInMbps': 6780, 'MaximumThroughputInMBps': 847.5, 'MaximumIops': 30000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '10 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3, 'DefaultVCpus': 64, 'DefaultCores': 32, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4, 8, 12, 16, 20, 24, 28, 32], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 131072, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 6300, 'BaselineThroughputInMBps': 787.5, 'BaselineIops': 26700, 'MaximumBandwidthInMbps': 6300, 'MaximumThroughputInMBps': 787.5, 'MaximumIops': 26700}, 'NvmeSupport': 'required', 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'c5a.16xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3}, 'VCpuInfo': {'DefaultVCpus': 64, 'DefaultCores': 32, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4, 8, 12, 16, 20, 24, 28, 32], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 131072}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 6300, 'BaselineThroughputInMBps': 787.5, 'BaselineIops': 26700, 'MaximumBandwidthInMbps': 6300, 'MaximumThroughputInMBps': 787.5, 'MaximumIops': 26700}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3, 'DefaultVCpus': 64, 'DefaultCores': 32, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4, 8, 12, 16, 20, 24, 28, 32], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 131072, 'TotalSizeInGB': 2400, 'Disks': [{'SizeInGB': 1200, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 6300, 'BaselineThroughputInMBps': 787.5, 'BaselineIops': 26700, 'MaximumBandwidthInMbps': 6300, 'MaximumThroughputInMBps': 787.5, 'MaximumIops': 26700}, 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'c5ad.16xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3}, 'VCpuInfo': {'DefaultVCpus': 64, 'DefaultCores': 32, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4, 8, 12, 16, 20, 24, 28, 32], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 131072}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 2400, 'Disks': [{'SizeInGB': 1200, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 6300, 'BaselineThroughputInMBps': 787.5, 'BaselineIops': 26700, 'MaximumBandwidthInMbps': 6300, 'MaximumThroughputInMBps': 787.5, 'MaximumIops': 26700}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.0, 'DefaultVCpus': 64, 'DefaultCores': 32, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 8, 16, 32], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 262144, 'TotalSizeInGB': 2400, 'Disks': [{'SizeInGB': 1200, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 6300, 'BaselineThroughputInMBps': 787.5, 'BaselineIops': 26667, 'MaximumBandwidthInMbps': 6300, 'MaximumThroughputInMBps': 787.5, 'MaximumIops': 26667}, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'Gpus': [{'Name': 'Radeon Pro V520', 'Manufacturer': 'AMD', 'Count': 4, 'MemoryInfo': {'SizeInMiB': 8192}}], 'TotalGpuMemoryInMiB': 32768, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'g4ad.16xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.0}, 'VCpuInfo': {'DefaultVCpus': 64, 'DefaultCores': 32, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 8, 16, 32], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 262144}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 2400, 'Disks': [{'SizeInGB': 1200, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 6300, 'BaselineThroughputInMBps': 787.5, 'BaselineIops': 26667, 'MaximumBandwidthInMbps': 6300, 'MaximumThroughputInMBps': 787.5, 'MaximumIops': 26667}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'GpuInfo': {'Gpus': [{'Name': 'Radeon Pro V520', 'Manufacturer': 'AMD', 'Count': 4, 'MemoryInfo': {'SizeInMiB': 8192}}], 'TotalGpuMemoryInMiB': 32768}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 64, 'DefaultCores': 32, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 262144, 'TotalSizeInGB': 900, 'Disks': [{'SizeInGB': 900, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 9500, 'BaselineThroughputInMBps': 1187.5, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 9500, 'MaximumThroughputInMBps': 1187.5, 'MaximumIops': 40000}, 'NetworkPerformance': '50 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '50 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'Gpus': [{'Name': 'T4', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 16384}}], 'TotalGpuMemoryInMiB': 16384, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'g4dn.16xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 64, 'DefaultCores': 32, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 262144}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 900, 'Disks': [{'SizeInGB': 900, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 9500, 'BaselineThroughputInMBps': 1187.5, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 9500, 'MaximumThroughputInMBps': 1187.5, 'MaximumIops': 40000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '50 Gigabit', 'MaximumNetworkInterfaces': 4, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '50 Gigabit', 'MaximumNetworkInterfaces': 4}], 'Ipv4AddressesPerInterface': 15, 'Ipv6AddressesPerInterface': 15, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'GpuInfo': {'Gpus': [{'Name': 'T4', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 16384}}], 'TotalGpuMemoryInMiB': 16384}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3, 'DefaultVCpus': 64, 'DefaultCores': 32, 'DefaultThreadsPerCore': 2, 'SizeInMiB': 262144, 'TotalSizeInGB': 1900, 'Disks': [{'SizeInGB': 1900, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 16000, 'BaselineThroughputInMBps': 2000.0, 'BaselineIops': 65000, 'MaximumBandwidthInMbps': 16000, 'MaximumThroughputInMBps': 2000.0, 'MaximumIops': 65000}, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'Gpus': [{'Name': 'A10G', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 24576}}], 'TotalGpuMemoryInMiB': 24576, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'g5.16xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3}, 'VCpuInfo': {'DefaultVCpus': 64, 'DefaultCores': 32, 'DefaultThreadsPerCore': 2}, 'MemoryInfo': {'SizeInMiB': 262144}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 1900, 'Disks': [{'SizeInGB': 1900, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 16000, 'BaselineThroughputInMBps': 2000.0, 'BaselineIops': 65000, 'MaximumBandwidthInMbps': 16000, 'MaximumThroughputInMBps': 2000.0, 'MaximumIops': 65000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'GpuInfo': {'Gpus': [{'Name': 'A10G', 'Manufacturer': 'NVIDIA', 'Count': 1, 'MemoryInfo': {'SizeInMiB': 24576}}], 'TotalGpuMemoryInMiB': 24576}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.3, 'DefaultVCpus': 64, 'DefaultCores': 32, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 262144, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 10000, 'BaselineThroughputInMBps': 1250.0, 'BaselineIops': 65000, 'MaximumBandwidthInMbps': 10000, 'MaximumThroughputInMBps': 1250.0, 'MaximumIops': 65000}, 'NvmeSupport': 'unsupported', 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'supported', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'm4.16xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'xen', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.3}, 'VCpuInfo': {'DefaultVCpus': 64, 'DefaultCores': 32, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 262144}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 10000, 'BaselineThroughputInMBps': 1250.0, 'BaselineIops': 65000, 'MaximumBandwidthInMbps': 10000, 'MaximumThroughputInMBps': 1250.0, 'MaximumIops': 65000}, 'NvmeSupport': 'unsupported'}, 'NetworkInfo': {'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 8}], 'Ipv4AddressesPerInterface': 30, 'Ipv6AddressesPerInterface': 30, 'Ipv6Supported': True, 'EnaSupport': 'supported', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 64, 'DefaultCores': 32, 'DefaultThreadsPerCore': 2, 'ValidCores': [8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 262144, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 9500, 'BaselineThroughputInMBps': 1187.5, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 9500, 'MaximumThroughputInMBps': 1187.5, 'MaximumIops': 40000}, 'NvmeSupport': 'required', 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'm5a.16xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 64, 'DefaultCores': 32, 'DefaultThreadsPerCore': 2, 'ValidCores': [8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 262144}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 9500, 'BaselineThroughputInMBps': 1187.5, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 9500, 'MaximumThroughputInMBps': 1187.5, 'MaximumIops': 40000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 64, 'DefaultCores': 32, 'DefaultThreadsPerCore': 2, 'ValidCores': [8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 262144, 'TotalSizeInGB': 2400, 'Disks': [{'SizeInGB': 600, 'Count': 4, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 9500, 'BaselineThroughputInMBps': 1187.5, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 9500, 'MaximumThroughputInMBps': 1187.5, 'MaximumIops': 40000}, 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'm5ad.16xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 64, 'DefaultCores': 32, 'DefaultThreadsPerCore': 2, 'ValidCores': [8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 262144}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 2400, 'Disks': [{'SizeInGB': 600, 'Count': 4, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 9500, 'BaselineThroughputInMBps': 1187.5, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 9500, 'MaximumThroughputInMBps': 1187.5, 'MaximumIops': 40000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 64, 'DefaultCores': 32, 'DefaultThreadsPerCore': 2, 'ValidCores': [8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 524288, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 9500, 'BaselineThroughputInMBps': 1187.5, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 9500, 'MaximumThroughputInMBps': 1187.5, 'MaximumIops': 40000}, 'NvmeSupport': 'required', 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'r5a.16xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 64, 'DefaultCores': 32, 'DefaultThreadsPerCore': 2, 'ValidCores': [8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 524288}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 9500, 'BaselineThroughputInMBps': 1187.5, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 9500, 'MaximumThroughputInMBps': 1187.5, 'MaximumIops': 40000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 64, 'DefaultCores': 32, 'DefaultThreadsPerCore': 2, 'ValidCores': [8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 524288, 'TotalSizeInGB': 2400, 'Disks': [{'SizeInGB': 600, 'Count': 4, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 9500, 'BaselineThroughputInMBps': 1187.5, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 9500, 'MaximumThroughputInMBps': 1187.5, 'MaximumIops': 40000}, 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'r5ad.16xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 64, 'DefaultCores': 32, 'DefaultThreadsPerCore': 2, 'ValidCores': [8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 524288}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 2400, 'Disks': [{'SizeInGB': 600, 'Count': 4, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 9500, 'BaselineThroughputInMBps': 1187.5, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 9500, 'MaximumThroughputInMBps': 1187.5, 'MaximumIops': 40000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '12 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.6, 'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 196608, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 19000, 'BaselineThroughputInMBps': 2375.0, 'BaselineIops': 80000, 'MaximumBandwidthInMbps': 19000, 'MaximumThroughputInMBps': 2375.0, 'MaximumIops': 80000}, 'NvmeSupport': 'required', 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'c5.24xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.6}, 'VCpuInfo': {'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 196608}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 19000, 'BaselineThroughputInMBps': 2375.0, 'BaselineIops': 80000, 'MaximumBandwidthInMbps': 19000, 'MaximumThroughputInMBps': 2375.0, 'MaximumIops': 80000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.6, 'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2, 'SizeInMiB': 196608, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 19000, 'BaselineThroughputInMBps': 2375.0, 'BaselineIops': 80000, 'MaximumBandwidthInMbps': 19000, 'MaximumThroughputInMBps': 2375.0, 'MaximumIops': 80000}, 'NvmeSupport': 'required', 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'c5.metal', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': True, 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.6}, 'VCpuInfo': {'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2}, 'MemoryInfo': {'SizeInMiB': 196608}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 19000, 'BaselineThroughputInMBps': 2375.0, 'BaselineIops': 80000, 'MaximumBandwidthInMbps': 19000, 'MaximumThroughputInMBps': 2375.0, 'MaximumIops': 80000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3, 'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 196608, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 9500, 'BaselineThroughputInMBps': 1187.5, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 9500, 'MaximumThroughputInMBps': 1187.5, 'MaximumIops': 40000}, 'NvmeSupport': 'required', 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'c5a.24xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3}, 'VCpuInfo': {'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 196608}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 9500, 'BaselineThroughputInMBps': 1187.5, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 9500, 'MaximumThroughputInMBps': 1187.5, 'MaximumIops': 40000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3, 'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 196608, 'TotalSizeInGB': 3800, 'Disks': [{'SizeInGB': 1900, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 9500, 'BaselineThroughputInMBps': 1187.5, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 9500, 'MaximumThroughputInMBps': 1187.5, 'MaximumIops': 40000}, 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'c5ad.24xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.3}, 'VCpuInfo': {'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2, 'ValidCores': [1, 2, 3, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 196608}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 3800, 'Disks': [{'SizeInGB': 1900, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 9500, 'BaselineThroughputInMBps': 1187.5, 'BaselineIops': 40000, 'MaximumBandwidthInMbps': 9500, 'MaximumThroughputInMBps': 1187.5, 'MaximumIops': 40000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.6, 'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 196608, 'TotalSizeInGB': 3600, 'Disks': [{'SizeInGB': 900, 'Count': 4, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 19000, 'BaselineThroughputInMBps': 2375.0, 'BaselineIops': 80000, 'MaximumBandwidthInMbps': 19000, 'MaximumThroughputInMBps': 2375.0, 'MaximumIops': 80000}, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'c5d.24xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.6}, 'VCpuInfo': {'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2, 'ValidCores': [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 196608}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 3600, 'Disks': [{'SizeInGB': 900, 'Count': 4, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 19000, 'BaselineThroughputInMBps': 2375.0, 'BaselineIops': 80000, 'MaximumBandwidthInMbps': 19000, 'MaximumThroughputInMBps': 2375.0, 'MaximumIops': 80000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.6, 'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2, 'SizeInMiB': 196608, 'TotalSizeInGB': 3600, 'Disks': [{'SizeInGB': 900, 'Count': 4, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 19000, 'BaselineThroughputInMBps': 2375.0, 'BaselineIops': 80000, 'MaximumBandwidthInMbps': 19000, 'MaximumThroughputInMBps': 2375.0, 'MaximumIops': 80000}, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'c5d.metal', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': True, 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 3.6}, 'VCpuInfo': {'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2}, 'MemoryInfo': {'SizeInMiB': 196608}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 3600, 'Disks': [{'SizeInGB': 900, 'Count': 4, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 19000, 'BaselineThroughputInMBps': 2375.0, 'BaselineIops': 80000, 'MaximumBandwidthInMbps': 19000, 'MaximumThroughputInMBps': 2375.0, 'MaximumIops': 80000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2, 'ValidCores': [12, 18, 24, 36, 48], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 393216, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 13750, 'BaselineThroughputInMBps': 1718.75, 'BaselineIops': 60000, 'MaximumBandwidthInMbps': 13750, 'MaximumThroughputInMBps': 1718.75, 'MaximumIops': 60000}, 'NvmeSupport': 'required', 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'm5a.24xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2, 'ValidCores': [12, 18, 24, 36, 48], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 393216}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 13750, 'BaselineThroughputInMBps': 1718.75, 'BaselineIops': 60000, 'MaximumBandwidthInMbps': 13750, 'MaximumThroughputInMBps': 1718.75, 'MaximumIops': 60000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2, 'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2, 'ValidCores': [12, 18, 24, 36, 48], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 393216, 'TotalSizeInGB': 3600, 'Disks': [{'SizeInGB': 900, 'Count': 4, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 13750, 'BaselineThroughputInMBps': 1718.75, 'BaselineIops': 60000, 'MaximumBandwidthInMbps': 13750, 'MaximumThroughputInMBps': 1718.75, 'MaximumIops': 60000}, 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'm5ad.24xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2}, 'VCpuInfo': {'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2, 'ValidCores': [12, 18, 24, 36, 48], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 393216}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 3600, 'Disks': [{'SizeInGB': 900, 'Count': 4, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 13750, 'BaselineThroughputInMBps': 1718.75, 'BaselineIops': 60000, 'MaximumBandwidthInMbps': 13750, 'MaximumThroughputInMBps': 1718.75, 'MaximumIops': 60000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2, 'ValidCores': [4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 786432, 'TotalSizeInGB': 1800, 'Disks': [{'SizeInGB': 900, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 19000, 'BaselineThroughputInMBps': 2375.0, 'BaselineIops': 80000, 'MaximumBandwidthInMbps': 19000, 'MaximumThroughputInMBps': 2375.0, 'MaximumIops': 80000}, 'NetworkPerformance': '100 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '100 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': True, 'EfaInfo': {'MaximumEfaInterfaces': 1}, 'EncryptionInTransitSupported': True, 'Gpus': [{'Name': 'V100', 'Manufacturer': 'NVIDIA', 'Count': 8, 'MemoryInfo': {'SizeInMiB': 32768}}], 'TotalGpuMemoryInMiB': 262144, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'p3dn.24xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2, 'ValidCores': [4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 786432}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 1800, 'Disks': [{'SizeInGB': 900, 'Count': 2, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 19000, 'BaselineThroughputInMBps': 2375.0, 'BaselineIops': 80000, 'MaximumBandwidthInMbps': 19000, 'MaximumThroughputInMBps': 2375.0, 'MaximumIops': 80000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '100 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '100 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': True, 'EfaInfo': {'MaximumEfaInterfaces': 1}, 'EncryptionInTransitSupported': True}, 'GpuInfo': {'Gpus': [{'Name': 'V100', 'Manufacturer': 'NVIDIA', 'Count': 8, 'MemoryInfo': {'SizeInMiB': 32768}}], 'TotalGpuMemoryInMiB': 262144}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2, 'ValidCores': [12, 18, 24, 36, 48], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 786432, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 13570, 'BaselineThroughputInMBps': 1696.25, 'BaselineIops': 60000, 'MaximumBandwidthInMbps': 13570, 'MaximumThroughputInMBps': 1696.25, 'MaximumIops': 60000}, 'NvmeSupport': 'required', 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'r5a.24xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2, 'ValidCores': [12, 18, 24, 36, 48], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 786432}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 13570, 'BaselineThroughputInMBps': 1696.25, 'BaselineIops': 60000, 'MaximumBandwidthInMbps': 13570, 'MaximumThroughputInMBps': 1696.25, 'MaximumIops': 60000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': True, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2, 'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2, 'ValidCores': [12, 18, 24, 36, 48], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 786432, 'TotalSizeInGB': 3600, 'Disks': [{'SizeInGB': 900, 'Count': 4, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'supported', 'EbsOptimizedSupport': 'default', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 13570, 'BaselineThroughputInMBps': 1696.25, 'BaselineIops': 60000, 'MaximumBandwidthInMbps': 13570, 'MaximumThroughputInMBps': 1696.25, 'MaximumIops': 60000}, 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False, 'SupportedStrategies': ['cluster', 'partition', 'spread'], 'InstanceType': 'r5ad.24xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.2}, 'VCpuInfo': {'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2, 'ValidCores': [12, 18, 24, 36, 48], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 786432}, 'InstanceStorageSupported': True, 'InstanceStorageInfo': {'TotalSizeInGB': 3600, 'Disks': [{'SizeInGB': 900, 'Count': 4, 'Type': 'ssd'}], 'NvmeSupport': 'required', 'EncryptionSupport': 'required'}, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 13570, 'BaselineThroughputInMBps': 1696.25, 'BaselineIops': 60000, 'MaximumBandwidthInMbps': 13570, 'MaximumThroughputInMBps': 1696.25, 'MaximumIops': 60000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '20 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': False, 'EncryptionInTransitSupported': False}, 'PlacementGroupInfo': {'SupportedStrategies': ['cluster', 'partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios', 'uefi']}, {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2, 'ValidCores': [6, 12, 48], 'ValidThreadsPerCore': [1, 2], 'SizeInMiB': 196608, 'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 19000, 'BaselineThroughputInMBps': 2375.0, 'BaselineIops': 80000, 'MaximumBandwidthInMbps': 19000, 'MaximumThroughputInMBps': 2375.0, 'MaximumIops': 80000}, 'NvmeSupport': 'required', 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': True, 'EfaInfo': {'MaximumEfaInterfaces': 1}, 'EncryptionInTransitSupported': True, 'SupportedStrategies': ['partition', 'spread'], 'InstanceType': 'vt1.24xlarge', 'CurrentGeneration': True, 'FreeTierEligible': False, 'SupportedUsageClasses': ['on-demand', 'spot'], 'SupportedRootDeviceTypes': ['ebs'], 'SupportedVirtualizationTypes': ['hvm'], 'BareMetal': False, 'Hypervisor': 'nitro', 'ProcessorInfo': {'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5}, 'VCpuInfo': {'DefaultVCpus': 96, 'DefaultCores': 48, 'DefaultThreadsPerCore': 2, 'ValidCores': [6, 12, 48], 'ValidThreadsPerCore': [1, 2]}, 'MemoryInfo': {'SizeInMiB': 196608}, 'InstanceStorageSupported': False, 'EbsInfo': {'EbsOptimizedSupport': 'default', 'EncryptionSupport': 'supported', 'EbsOptimizedInfo': {'BaselineBandwidthInMbps': 19000, 'BaselineThroughputInMBps': 2375.0, 'BaselineIops': 80000, 'MaximumBandwidthInMbps': 19000, 'MaximumThroughputInMBps': 2375.0, 'MaximumIops': 80000}, 'NvmeSupport': 'required'}, 'NetworkInfo': {'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 15, 'MaximumNetworkCards': 1, 'DefaultNetworkCardIndex': 0, 'NetworkCards': [{'NetworkCardIndex': 0, 'NetworkPerformance': '25 Gigabit', 'MaximumNetworkInterfaces': 15}], 'Ipv4AddressesPerInterface': 50, 'Ipv6AddressesPerInterface': 50, 'Ipv6Supported': True, 'EnaSupport': 'required', 'EfaSupported': True, 'EfaInfo': {'MaximumEfaInterfaces': 1}, 'EncryptionInTransitSupported': True}, 'PlacementGroupInfo': {'SupportedStrategies': ['partition', 'spread']}, 'HibernationSupported': False, 'BurstablePerformanceSupported': False, 'DedicatedHostsSupported': False, 'AutoRecoverySupported': False, 'SupportedBootModes': ['legacy-bios']}] # noqa: E501 def get_instances_list() -> list: '''Returns list EC2 instances with DedicatedHostsSupported = False .''' # pylint: disable=all return get
29,010.166667
347,918
0.739051
27,033
348,122
9.508897
0.014316
0.05451
0.022252
0.044504
0.996335
0.996024
0.994912
0.99215
0.99073
0.987559
0
0.056974
0.073917
348,122
11
347,919
31,647.454545
0.740364
0.000405
0
0
1
0
0.674473
0.285599
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
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
1
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
12
e7bc8ba802d433731d9cdeaa3bfe0ee35d3ccc22
1,465
py
Python
tests/test_input_data.py
olidroide/xml_templater
c27603cc50947d8307479e11aa39888298ee44fe
[ "Apache-2.0" ]
null
null
null
tests/test_input_data.py
olidroide/xml_templater
c27603cc50947d8307479e11aa39888298ee44fe
[ "Apache-2.0" ]
null
null
null
tests/test_input_data.py
olidroide/xml_templater
c27603cc50947d8307479e11aa39888298ee44fe
[ "Apache-2.0" ]
null
null
null
import unittest from pathlib import Path from main import InputData class InputDataTests(unittest.TestCase): def testValidXML(self): expected_dict = { 'policy.1234.title': 'ELQUESE', 'policy.1234.control_list.control.1111.statement': 'TEXTO QUE QUIERO SACAR', 'policy.1234.control_list.control.1111.description': 'TEXT EXAMPLE DESCRIPTION', 'policy.1234.control_list.control.2222.statement': 'OTRO TEXTO QUE QUIERO SACAR', 'policy.1234.control_list.control.2222.subcontrol.control.3333.statement': 'el texto 3' } path = Path(__file__).resolve().parent / 'input_001.xml' parsed_dict = InputData(path=path).get_dict() self.assertDictEqual(parsed_dict, expected_dict) def testValidXMLWithManyIndents(self): expected_dict = { 'policy.1234.title': 'ELQUESE', 'policy.1234.control_list.control.1111.statement': 'TEXTO QUE QUIERO SACAR', 'policy.1234.control_list.control.1111.description': 'TEXT EXAMPLE DESCRIPTION', 'policy.1234.control_list.control.2222.statement': 'OTRO TEXTO QUE QUIERO SACAR', 'policy.1234.control_list.control.2222.subcontrol.control.another.infinite.3333.statement': 'el texto 3' } path = Path(__file__).resolve().parent / 'input_002.xml' parsed_dict = InputData(path=path).get_dict() self.assertDictEqual(parsed_dict, expected_dict)
47.258065
116
0.680546
168
1,465
5.767857
0.291667
0.103199
0.140351
0.173375
0.835913
0.835913
0.835913
0.835913
0.835913
0.835913
0
0.075407
0.203413
1,465
30
117
48.833333
0.754927
0
0
0.538462
0
0.038462
0.467577
0.303754
0
0
0
0
0.076923
1
0.076923
false
0
0.115385
0
0.230769
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
99c2ba9f0421e19c936ba6092723faf95f1fc5e3
271,682
py
Python
pdfcrowd.py
pdfcrowd/pdfcrowd-python
863c4c6a4c5934c505f0b3637e2c3d44f4d1ae9e
[ "MIT" ]
12
2015-02-27T06:23:33.000Z
2022-02-08T19:46:59.000Z
pdfcrowd.py
pdfcrowd/pdfcrowd-python
863c4c6a4c5934c505f0b3637e2c3d44f4d1ae9e
[ "MIT" ]
2
2015-11-13T12:08:52.000Z
2017-11-22T13:21:16.000Z
pdfcrowd.py
pdfcrowd/pdfcrowd-python
863c4c6a4c5934c505f0b3637e2c3d44f4d1ae9e
[ "MIT" ]
8
2015-03-09T16:49:40.000Z
2019-03-26T22:32:12.000Z
# Copyright (C) 2009-2018 pdfcrowd.com # # 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. try: from urllib import urlencode PYTHON_3 = False except ImportError: from urllib.parse import urlencode PYTHON_3 = True try: import httplib except: import http.client as httplib import mimetypes import socket import base64 import re import argparse import sys import os import ssl import time __version__ = '5.2.2' # ====================================== # === PDFCrowd legacy version client === # ====================================== if PYTHON_3: # constants for Client.setPageLayout() SINGLE_PAGE, CONTINUOUS, CONTINUOUS_FACING = range(1, 4) # constants for Client.setPageMode() NONE_VISIBLE, THUMBNAILS_VISIBLE, FULLSCREEN = range(1, 4) # constants for setInitialPdfZoomType() FIT_WIDTH, FIT_HEIGHT, FIT_PAGE = range(1, 4) class Error(Exception): """Thrown when an error occurs.""" def __init__(self, error, http_code=None): self.http_code = http_code self.error = error if isinstance(error, str) else str(error, "utf-8") def __str__(self): if self.http_code: return "%d - %s" % (self.http_code, self.error) else: return self.error def getCode(self): return self.http_code def getMessage(self): return self.error class Client: """Pdfcrowd API client.""" def __init__(self, username, apikey, host=None, http_port=None): """Client constructor. username -- your username at Pdfcrowd apikey -- your API key host -- API host, defaults to pdfcrowd.com """ self.fields = dict(username=username, key=apikey, pdf_scaling_factor=1, html_zoom=200) self.host = host or HOST_LEGACY self.http_port = http_port or HTTP_PORT self.useSSL(False) self.setProxy(None, None) def setProxy(self, host, port, username=None, password=None): self.proxy_host = host self.proxy_port = port self.proxy_username = username self.proxy_password = password def convertURI(self, uri, outstream=None): """Converts a web page. uri -- a web page URL outstream -- an object having method 'write(data)' - e.g. file, StringIO, etc.; if None then the return value is a string containing the PDF. """ body = urlencode(self._prepare_fields(dict(src=uri))) content_type = 'application/x-www-form-urlencoded' return self._post(body, content_type, 'pdf/convert/uri/', outstream) def convertHtml(self, html, outstream=None): """Converts an in-memory html document. html -- a string containing an html document outstream -- an object having method 'write(data)' - e.g. file, StringIO, etc.; if None then the return value is a string containing the PDF. """ if not isinstance(html, str): html = html.encode('utf-8') body = urlencode(self._prepare_fields(dict(src=html))) content_type = 'application/x-www-form-urlencoded' return self._post(body, content_type, 'pdf/convert/html/', outstream) def convertFile(self, fpath, outstream=None): """Converts an html file. fpath -- a path to an html file outstream -- an object having method 'write(data)' - e.g. file, StringIO, etc.; if None then the return value is a string containing the PDF. """ body, content_type = self._encode_multipart_post_data(fpath) return self._post(body, content_type, 'pdf/convert/html/', outstream) def numTokens(self): """Returns the number of available conversion tokens.""" body = urlencode(self._prepare_fields()) content_type = 'application/x-www-form-urlencoded' return int(self._post(body, content_type, 'user/%s/tokens/' % self.fields['username'])) def useSSL(self, use_ssl): if use_ssl: self.port = HTTPS_PORT scheme = 'https' self.conn_type = httplib.HTTPSConnection else: self.port = self.http_port scheme = 'http' self.conn_type = httplib.HTTPConnection self.api_uri = '%s://%s:%d%s' % (scheme, self.host, self.port, API_SELECTOR_BASE) def setUsername(self, username): self.fields['username'] = username def setApiKey(self, key): self.fields['key'] = key def setPageWidth(self, value): self.fields['width'] = value def setPageHeight(self, value): self.fields['height'] = value def setHorizontalMargin(self, value): self.fields['margin_right'] = self.fields['margin_left'] = str(value) def setVerticalMargin(self, value): self.fields['margin_top'] = self.fields['margin_bottom'] = str(value) def setPageMargins(self, top, right, bottom, left): self.fields['margin_top'] = str(top) self.fields['margin_right'] = str(right) self.fields['margin_bottom'] = str(bottom) self.fields['margin_left'] = str(left) def setEncrypted(self, val=True): self.fields['encrypted'] = val def setUserPassword(self, pwd): self.fields['user_pwd'] = pwd def setOwnerPassword(self, pwd): self.fields['owner_pwd'] = pwd def setNoPrint(self, val=True): self.fields['no_print'] = val def setNoModify(self, val=True): self.fields['no_modify'] = val def setNoCopy(self, val=True): self.fields['no_copy'] = val def setPageLayout(self, value): assert value > 0 and value <= 3 self.fields['page_layout'] = value def setPageMode(self, value): assert value > 0 and value <= 3 self.fields['page_mode'] = value def setFooterText(self, value): self.fields['footer_text'] = value def enableImages(self, value=True): self.fields['no_images'] = not value def enableBackgrounds(self, value=True): self.fields['no_backgrounds'] = not value def setHtmlZoom(self, value): self.fields['html_zoom'] = value def enableJavaScript(self, value=True): self.fields['no_javascript'] = not value def enableHyperlinks(self, value=True): self.fields['no_hyperlinks'] = not value def setDefaultTextEncoding(self, value): self.fields['text_encoding'] = value def usePrintMedia(self, value=True): self.fields['use_print_media'] = value def setMaxPages(self, value): self.fields['max_pages'] = value def enablePdfcrowdLogo(self, value=True): self.fields['pdfcrowd_logo'] = value def setInitialPdfZoomType(self, value): assert value>0 and value<=3 self.fields['initial_pdf_zoom_type'] = value def setInitialPdfExactZoom(self, value): self.fields['initial_pdf_zoom_type'] = 4 self.fields['initial_pdf_zoom'] = value def setAuthor(self, value): self.fields['author'] = value def setFailOnNon200(self, value): self.fields['fail_on_non200'] = value def setPdfScalingFactor(self, value): self.fields['pdf_scaling_factor'] = value def setFooterHtml(self, value): self.fields['footer_html'] = value def setFooterUrl(self, value): self.fields['footer_url'] = value def setHeaderHtml(self, value): self.fields['header_html'] = value def setHeaderUrl(self, value): self.fields['header_url'] = value def setPageBackgroundColor(self, value): self.fields['page_background_color'] = value def setTransparentBackground(self, value=True): self.fields['transparent_background'] = value def setPageNumberingOffset(self, value): self.fields['page_numbering_offset'] = value def setHeaderFooterPageExcludeList(self, value): self.fields['header_footer_page_exclude_list'] = value def setWatermark(self, url, offset_x=0, offset_y=0): self.fields["watermark_url"] = url self.fields["watermark_offset_x"] = offset_x self.fields["watermark_offset_y"] = offset_y def setWatermarkRotation(self, angle): self.fields["watermark_rotation"] = angle def setWatermarkInBackground(self, val=True): self.fields["watermark_in_background"] = val # ---------------------------------------------------------------------- # # Private stuff # def _prepare_fields(self, extra_data={}): result = extra_data.copy() for key, val in iter(self.fields.items()): if val: if type(val) == float: val = str(val).replace(',', '.') result[key] = val return result def _encode_multipart_post_data(self, filename): boundary = '----------ThIs_Is_tHe_bOUnDary_$' head, tail = [], [] for field, value in iter(self._prepare_fields().items()): head.append('--' + boundary) head.append('Content-Disposition: form-data; name="%s"' % field) head.append('') head.append(str(value)) # filename head.append('--' + boundary) head.append('Content-Disposition: form-data; name="src"; filename="%s"' % filename) mime_type = mimetypes.guess_type(filename)[0] or 'application/octet-stream' head.append('Content-Type: ' + mime_type) head.append('') content = open(filename, 'rb').read() # finalize tail.append('--' + boundary + '--') tail.append('') body = ["\r\n".join(head).encode("utf-8"), content, "\r\n".join(tail).encode("utf-8")] body = b"\r\n".join(body) content_type = 'multipart/form-data; boundary=%s' % boundary return body, content_type # sends a POST to the API def _post(self, body, content_type, api_path, outstream=None): try: if self.proxy_host: if self.conn_type == httplib.HTTPSConnection: raise Error("HTTPS over a proxy is not supported.") conn = self.conn_type(self.proxy_host, self.proxy_port) conn.putrequest('POST', "http://%s:%d%s" % (self.host, self.port, API_SELECTOR_BASE + api_path)) if self.proxy_username: user_string = "%s:%s" % (self.proxy_username, self.proxy_password) proxy_auth = "Basic " + base64.b64encode(user_string) conn.putheader('Proxy-Authorization', proxy_auth) else: conn = self.conn_type(self.host, self.port) conn.putrequest('POST', API_SELECTOR_BASE + api_path) conn.putheader('content-type', content_type) body = body if isinstance(body, bytes) else body.encode() conn.putheader('content-length', str(len(body))) conn.endheaders() conn.send(body) response = conn.getresponse() if response.status != 200: raise Error(response.read(), response.status) if outstream: while True: data = response.read(16384) if data: outstream.write(data) else: break return outstream else: return response.read() except httplib.HTTPException as err: raise Error(str(err)) except socket.gaierror as err: raise Error(str(err)) API_SELECTOR_BASE = '/api/' HOST_LEGACY = os.environ.get('PDFCROWD_HOST', 'pdfcrowd.com') HTTP_PORT = 80 HTTPS_PORT = 443 else: # constants for Client.setPageLayout() SINGLE_PAGE, CONTINUOUS, CONTINUOUS_FACING = range(1,4) # constants for Client.setPageMode() NONE_VISIBLE, THUMBNAILS_VISIBLE, FULLSCREEN = range(1,4) # constants for setInitialPdfZoomType() FIT_WIDTH, FIT_HEIGHT, FIT_PAGE = range(1, 4) class Error(Exception): """Thrown when an error occurs.""" def __init__(self, error, http_code=None): self.http_code = http_code self.error = error def __str__(self): if self.http_code: return "%d - %s" % (self.http_code, self.error) else: return self.error def getCode(self): return self.http_code def getMessage(self): return self.error class Client: """Pdfcrowd API client.""" def __init__(self, username, apikey, host=None, http_port=None): """Client constructor. username -- your username at Pdfcrowd apikey -- your API key host -- API host, defaults to pdfcrowd.com """ self.fields = dict(username=username, key=apikey, \ pdf_scaling_factor=1, html_zoom=200) self.host = host or HOST_LEGACY self.http_port = http_port or HTTP_PORT self.useSSL(False) self.setProxy(None, None) def setProxy(self, host, port, username=None, password=None): self.proxy_host = host self.proxy_port = port self.proxy_username = username self.proxy_password = password def convertURI(self, uri, outstream=None): """Converts a web page. uri -- a web page URL outstream -- an object having method 'write(data)' - e.g. file, StringIO, etc.; if None then the return value is a string containing the PDF. """ body = urlencode(self._prepare_fields(dict(src=uri))) content_type = 'application/x-www-form-urlencoded' return self._post(body, content_type, 'pdf/convert/uri/', outstream) def convertHtml(self, html, outstream=None): """Converts an in-memory html document. html -- a string containing an html document outstream -- an object having method 'write(data)' - e.g. file, StringIO, etc.; if None then the return value is a string containing the PDF. """ if isinstance(html, unicode): html = html.encode('utf-8') body = urlencode(self._prepare_fields(dict(src=html))) content_type = 'application/x-www-form-urlencoded' return self._post(body, content_type, 'pdf/convert/html/', outstream) def convertFile(self, fpath, outstream=None): """Converts an html file. fpath -- a path to an html file outstream -- an object having method 'write(data)' - e.g. file, StringIO, etc.; if None then the return value is a string containing the PDF. """ body, content_type = self._encode_multipart_post_data(fpath) return self._post(body, content_type, 'pdf/convert/html/', outstream) def numTokens(self): """Returns the number of available conversion tokens.""" body = urlencode(self._prepare_fields()) content_type = 'application/x-www-form-urlencoded' return int(self._post(body, content_type, 'user/%s/tokens/' % self.fields['username'])) def useSSL(self, use_ssl): if use_ssl: self.port = HTTPS_PORT scheme = 'https' self.conn_type = httplib.HTTPSConnection else: self.port = self.http_port scheme = 'http' self.conn_type = httplib.HTTPConnection self.api_uri = '%s://%s:%d%s' % (scheme, self.host, self.port, API_SELECTOR_BASE) def setUsername(self, username): self.fields['username'] = username def setApiKey(self, key): self.fields['key'] = key def setPageWidth(self, value): self.fields['width'] = value def setPageHeight(self, value): self.fields['height'] = value def setHorizontalMargin(self, value): self.fields['margin_right'] = self.fields['margin_left'] = str(value) def setVerticalMargin(self, value): self.fields['margin_top'] = self.fields['margin_bottom'] = str(value) def setPageMargins(self, top, right, bottom, left): self.fields['margin_top'] = str(top) self.fields['margin_right'] = str(right) self.fields['margin_bottom'] = str(bottom) self.fields['margin_left'] = str(left) def setEncrypted(self, val=True): self.fields['encrypted'] = val def setUserPassword(self, pwd): self.fields['user_pwd'] = pwd def setOwnerPassword(self, pwd): self.fields['owner_pwd'] = pwd def setNoPrint(self, val=True): self.fields['no_print'] = val def setNoModify(self, val=True): self.fields['no_modify'] = val def setNoCopy(self, val=True): self.fields['no_copy'] = val def setPageLayout(self, value): assert value > 0 and value <= 3 self.fields['page_layout'] = value def setPageMode(self, value): assert value > 0 and value <= 3 self.fields['page_mode'] = value def setFooterText(self, value): self.fields['footer_text'] = value def enableImages(self, value=True): self.fields['no_images'] = not value def enableBackgrounds(self, value=True): self.fields['no_backgrounds'] = not value def setHtmlZoom(self, value): self.fields['html_zoom'] = value def enableJavaScript(self, value=True): self.fields['no_javascript'] = not value def enableHyperlinks(self, value=True): self.fields['no_hyperlinks'] = not value def setDefaultTextEncoding(self, value): self.fields['text_encoding'] = value def usePrintMedia(self, value=True): self.fields['use_print_media'] = value def setMaxPages(self, value): self.fields['max_pages'] = value def enablePdfcrowdLogo(self, value=True): self.fields['pdfcrowd_logo'] = value def setInitialPdfZoomType(self, value): assert value>0 and value<=3 self.fields['initial_pdf_zoom_type'] = value def setInitialPdfExactZoom(self, value): self.fields['initial_pdf_zoom_type'] = 4 self.fields['initial_pdf_zoom'] = value def setAuthor(self, value): self.fields['author'] = value def setFailOnNon200(self, value): self.fields['fail_on_non200'] = value def setPdfScalingFactor(self, value): self.fields['pdf_scaling_factor'] = value def setFooterHtml(self, value): self.fields['footer_html'] = value def setFooterUrl(self, value): self.fields['footer_url'] = value def setHeaderHtml(self, value): self.fields['header_html'] = value def setHeaderUrl(self, value): self.fields['header_url'] = value def setPageBackgroundColor(self, value): self.fields['page_background_color'] = value def setTransparentBackground(self, value=True): self.fields['transparent_background'] = value def setPageNumberingOffset(self, value): self.fields['page_numbering_offset'] = value def setHeaderFooterPageExcludeList(self, value): self.fields['header_footer_page_exclude_list'] = value def setWatermark(self, url, offset_x=0, offset_y=0): self.fields["watermark_url"] = url self.fields["watermark_offset_x"] = offset_x self.fields["watermark_offset_y"] = offset_y def setWatermarkRotation(self, angle): self.fields["watermark_rotation"] = angle def setWatermarkInBackground(self, val=True): self.fields["watermark_in_background"] = val # ---------------------------------------------------------------------- # # Private stuff # def _prepare_fields(self, extra_data={}): result = extra_data.copy() for key, val in self.fields.iteritems(): if val: if type(val) == float: val = str(val).replace(',', '.') result[key] = val return result def _encode_multipart_post_data(self, filename): boundary = '----------ThIs_Is_tHe_bOUnDary_$' body = [] for field, value in self._prepare_fields().iteritems(): body.append('--' + boundary) body.append('Content-Disposition: form-data; name="%s"' % field) body.append('') body.append(str(value)) # filename body.append('--' + boundary) body.append('Content-Disposition: form-data; name="src"; filename="%s"' % filename) mime_type = mimetypes.guess_type(filename)[0] or 'application/octet-stream' body.append('Content-Type: ' + str(mime_type)) body.append('') body.append(open(filename, 'rb').read()) # finalize body.append('--' + boundary + '--') body.append('') body = '\r\n'.join(body) content_type = 'multipart/form-data; boundary=%s' % boundary return body, content_type # sends a POST to the API def _post(self, body, content_type, api_path, outstream=None): try: if self.proxy_host: if self.conn_type == httplib.HTTPSConnection: raise Error("HTTPS over a proxy is not supported.") conn = self.conn_type(self.proxy_host, self.proxy_port) conn.putrequest('POST', "http://%s:%d%s" % (self.host, self.port, API_SELECTOR_BASE + api_path)) if self.proxy_username: user_string = "%s:%s" % (self.proxy_username, self.proxy_password) proxy_auth = "Basic " + base64.b64encode(user_string) conn.putheader('Proxy-Authorization', proxy_auth) else: conn = self.conn_type(self.host, self.port) conn.putrequest('POST', API_SELECTOR_BASE + api_path) conn.putheader('content-type', content_type) conn.putheader('content-length', str(len(body))) conn.endheaders() conn.send(body) response = conn.getresponse() if response.status != 200: raise Error(response.read(), response.status) if outstream: while True: data = response.read(16384) if data: outstream.write(data) else: break return outstream else: return response.read() except httplib.HTTPException as err: raise Error(str(err)) except socket.gaierror as err: raise Error(str(err)) API_SELECTOR_BASE = '/api/' HOST_LEGACY = os.environ.get('PDFCROWD_HOST', 'pdfcrowd.com') HTTP_PORT = 80 HTTPS_PORT = 443 # ===================================== # === PDFCrowd cloud version client === # ===================================== HOST = os.environ.get('PDFCROWD_HOST', 'api.pdfcrowd.com') MULTIPART_BOUNDARY = '----------ThIs_Is_tHe_bOUnDary_$' CLIENT_VERSION = '5.2.2' def get_utf8_string(string): if PYTHON_3: # get Python3 string try: return string.decode() except AttributeError: pass else: # get Python2 string if isinstance(string, unicode): return string.encode('utf-8') return string def create_invalid_value_message(value, field, converter, hint, id): message = "Invalid value '%s' for %s." % (value, field) if hint: message += " " + hint return message + ' ' + "Details: https://www.pdfcrowd.com/doc/api/%s/python/ref/#%s" % (converter, id) def iter_items(dictionary): if PYTHON_3: return dictionary.items() return dictionary.iteritems() def gen_fields(fields): for key, val in iter_items(fields): if val: yield key, str(val) def add_file_field(name, file_name, data, body, mime_type = None): # file field head = [] head.append('--' + MULTIPART_BOUNDARY) head.append('Content-Disposition: form-data; name="{}"; filename="{}"'.format(name, file_name)) if not mime_type: mime_type = 'application/octet-stream' head.append('Content-Type: {}'.format(mime_type)) head.append('') if PYTHON_3: body.append('\r\n'.join(head).encode('utf-8')) else: body.append('\r\n'.join(head)) body.append(data) def encode_multipart_post_data(fields, files, raw_data): head, tail = [], [] body = [] for field, value in gen_fields(fields): head.append('--' + MULTIPART_BOUNDARY) head.append('Content-Disposition: form-data; name="%s"' % field) head.append('') head.append(value) if PYTHON_3: body.append('\r\n'.join(head).encode('utf-8')) else: body.append('\r\n'.join(head)) for name, file_name in iter_items(files): with open(file_name, 'rb') as f: add_file_field(name, file_name, f.read(), body, mimetypes.guess_type(file_name)[0]) for name, data in iter_items(raw_data): add_file_field(name, name, data, body) # finalize tail.append('--' + MULTIPART_BOUNDARY + '--') tail.append('') body.append('\r\n'.join(tail).encode('utf-8')) return b'\r\n'.join(body) def base64_encode(value): if not isinstance(value, bytes): value = value.encode() value = base64.b64encode(value) if PYTHON_3: return value.decode() return value def encode_credentials(user_name, password): auth = '%s:%s' % (user_name, password) return 'Basic ' + base64_encode(auth) class ConnectionHelper: def __init__(self, user_name, api_key): self.user_name = user_name self.api_key = api_key self._reset_response_data() self.setProxy(None, None, None, None) self.setUseHttp(False) self.setUserAgent('pdfcrowd_python_client/5.2.2 (https://pdfcrowd.com)') self.retry_count = 1 self.converter_version = '20.10' def _reset_response_data(self): self.debug_log_url = None self.credits = 999999 self.consumed_credits = 0 self.job_id = '' self.page_count = 0 self.output_size = 0 self.retry = 0 def post(self, fields, files, raw_data, out_stream = None): body = encode_multipart_post_data(fields, files, raw_data) content_type = 'multipart/form-data; boundary=' + MULTIPART_BOUNDARY return self._do_post(body, content_type, out_stream) def _create_connection(self, host, port): kwargs = {} if not self.use_http and host != 'api.pdfcrowd.com': kwargs['context'] = ssl._create_unverified_context() return self.conn_type(host, port, **kwargs) def _get_connection(self): conv_selector = '/convert/{}/'.format(self.converter_version) if self.proxy_host: conn = self._create_connection(self.proxy_host, self.proxy_port) conn.putrequest('POST', 'http://{}:{}{}'.format( HOST, self.port, conv_selector)) if self.proxy_user_name: conn.putheader('Proxy-Authorization', encode_credentials(self.proxy_user_name, self.proxy_password)) else: conn = self._create_connection(HOST, self.port) conn.putrequest('POST', conv_selector) return conn # sends a POST to the API def _do_post(self, body, content_type, out_stream=None): if not self.use_http and self.proxy_host: raise Error('HTTPS over a proxy is not supported.') self._reset_response_data() while True: try: return self._exec_request(body, content_type, out_stream) except Error as err: if err.getCode() == 502 and self.retry_count > self.retry: self.retry += 1 time.sleep(self.retry * 0.1) else: raise def _exec_request(self, body, content_type, out_stream): try: conn = self._get_connection() conn.putheader('Content-Type', content_type) conn.putheader('Content-Length', str(len(body))) if self.user_agent != None: conn.putheader('User-Agent', self.user_agent) conn.putheader('Authorization', encode_credentials(self.user_name, self.api_key)) conn.endheaders() body = body if isinstance(body, bytes) else body.encode() conn.send(body) response = conn.getresponse() self.debug_log_url = response.getheader('X-Pdfcrowd-Debug-Log', '') self.credits = int(response.getheader('X-Pdfcrowd-Remaining-Credits', 999999)) self.consumed_credits = int(response.getheader('X-Pdfcrowd-Consumed-Credits', 0)) self.job_id = response.getheader('X-Pdfcrowd-Job-Id', '') self.page_count = int(response.getheader('X-Pdfcrowd-Pages', 0)) self.output_size = int(response.getheader('X-Pdfcrowd-Output-Size', 0)) if (os.environ.get('PDFCROWD_UNIT_TEST_MODE') and self.retry_count > self.retry): raise Error('test 502', 502) if response.status > 299: raise Error(response.read(), response.status) if out_stream: while True: data = response.read(16384) if data: out_stream.write(data) else: break return out_stream return response.read() except httplib.HTTPException as err: raise Error(str(err)) except ssl.SSLError as err: raise Error("There was a problem connecting to Pdfcrowd servers over HTTPS:\n" + "{} ({})".format(err.reason, err.errno) + "\nYou can still use the API over HTTP, you just need to add the following line right after Pdfcrowd client initialization:\nclient.setUseHttp(True)", 481) except socket.gaierror as err: raise Error(str(err)) except socket.error as err: raise Error(str(err)) def setUseHttp(self, use_http): if use_http: self.port = 80 self.conn_type = httplib.HTTPConnection else: self.port = 443 self.conn_type = httplib.HTTPSConnection self.use_http = use_http def setUserAgent(self, user_agent): self.user_agent = user_agent def setRetryCount(self, retry_count): self.retry_count = retry_count def setConverterVersion(self, converter_version): self.converter_version = converter_version def setProxy(self, host, port, user_name, password): self.proxy_host = host self.proxy_port = port self.proxy_user_name = user_name self.proxy_password = password def getDebugLogUrl(self): return self.debug_log_url def getRemainingCreditCount(self): return self.credits def getConsumedCreditCount(self): return self.consumed_credits def getJobId(self): return self.job_id def getPageCount(self): return self.page_count def getOutputSize(self): return self.output_size def getConverterVersion(self): return self.converter_version # generated code class HtmlToPdfClient: """ Conversion from HTML to PDF. """ def __init__(self, user_name, api_key): """ Constructor for the Pdfcrowd API client. user_name - Your username at Pdfcrowd. api_key - Your API key. """ self.helper = ConnectionHelper(user_name, api_key) self.fields = { 'input_format': 'html', 'output_format': 'pdf' } self.file_id = 1 self.files = {} self.raw_data = {} def convertUrl(self, url): """ Convert a web page. url - The address of the web page to convert. The supported protocols are http:// and https://. return - Byte array containing the conversion output. """ if not re.match('(?i)^https?://.*$', url): raise Error(create_invalid_value_message(url, "convertUrl", "html-to-pdf", "The supported protocols are http:// and https://.", "convert_url"), 470); self.fields['url'] = get_utf8_string(url) return self.helper.post(self.fields, self.files, self.raw_data) def convertUrlToStream(self, url, out_stream): """ Convert a web page and write the result to an output stream. url - The address of the web page to convert. The supported protocols are http:// and https://. out_stream - The output stream that will contain the conversion output. """ if not re.match('(?i)^https?://.*$', url): raise Error(create_invalid_value_message(url, "convertUrlToStream::url", "html-to-pdf", "The supported protocols are http:// and https://.", "convert_url_to_stream"), 470); self.fields['url'] = get_utf8_string(url) self.helper.post(self.fields, self.files, self.raw_data, out_stream) def convertUrlToFile(self, url, file_path): """ Convert a web page and write the result to a local file. url - The address of the web page to convert. The supported protocols are http:// and https://. file_path - The output file path. The string must not be empty. """ if not (file_path): raise Error(create_invalid_value_message(file_path, "convertUrlToFile::file_path", "html-to-pdf", "The string must not be empty.", "convert_url_to_file"), 470); output_file = open(file_path, 'wb') try: self.convertUrlToStream(url, output_file) output_file.close() except Error: output_file.close() os.remove(file_path) raise def convertFile(self, file): """ Convert a local file. file - The path to a local file to convert. The file can be either a single file or an archive (.tar.gz, .tar.bz2, or .zip). If the HTML document refers to local external assets (images, style sheets, javascript), zip the document together with the assets. The file must exist and not be empty. The file name must have a valid extension. return - Byte array containing the conversion output. """ if not (os.path.isfile(file) and os.path.getsize(file)): raise Error(create_invalid_value_message(file, "convertFile", "html-to-pdf", "The file must exist and not be empty.", "convert_file"), 470); self.files['file'] = get_utf8_string(file) return self.helper.post(self.fields, self.files, self.raw_data) def convertFileToStream(self, file, out_stream): """ Convert a local file and write the result to an output stream. file - The path to a local file to convert. The file can be either a single file or an archive (.tar.gz, .tar.bz2, or .zip). If the HTML document refers to local external assets (images, style sheets, javascript), zip the document together with the assets. The file must exist and not be empty. The file name must have a valid extension. out_stream - The output stream that will contain the conversion output. """ if not (os.path.isfile(file) and os.path.getsize(file)): raise Error(create_invalid_value_message(file, "convertFileToStream::file", "html-to-pdf", "The file must exist and not be empty.", "convert_file_to_stream"), 470); self.files['file'] = get_utf8_string(file) self.helper.post(self.fields, self.files, self.raw_data, out_stream) def convertFileToFile(self, file, file_path): """ Convert a local file and write the result to a local file. file - The path to a local file to convert. The file can be either a single file or an archive (.tar.gz, .tar.bz2, or .zip). If the HTML document refers to local external assets (images, style sheets, javascript), zip the document together with the assets. The file must exist and not be empty. The file name must have a valid extension. file_path - The output file path. The string must not be empty. """ if not (file_path): raise Error(create_invalid_value_message(file_path, "convertFileToFile::file_path", "html-to-pdf", "The string must not be empty.", "convert_file_to_file"), 470); output_file = open(file_path, 'wb') try: self.convertFileToStream(file, output_file) output_file.close() except Error: output_file.close() os.remove(file_path) raise def convertString(self, text): """ Convert a string. text - The string content to convert. The string must not be empty. return - Byte array containing the conversion output. """ if not (text): raise Error(create_invalid_value_message(text, "convertString", "html-to-pdf", "The string must not be empty.", "convert_string"), 470); self.fields['text'] = get_utf8_string(text) return self.helper.post(self.fields, self.files, self.raw_data) def convertStringToStream(self, text, out_stream): """ Convert a string and write the output to an output stream. text - The string content to convert. The string must not be empty. out_stream - The output stream that will contain the conversion output. """ if not (text): raise Error(create_invalid_value_message(text, "convertStringToStream::text", "html-to-pdf", "The string must not be empty.", "convert_string_to_stream"), 470); self.fields['text'] = get_utf8_string(text) self.helper.post(self.fields, self.files, self.raw_data, out_stream) def convertStringToFile(self, text, file_path): """ Convert a string and write the output to a file. text - The string content to convert. The string must not be empty. file_path - The output file path. The string must not be empty. """ if not (file_path): raise Error(create_invalid_value_message(file_path, "convertStringToFile::file_path", "html-to-pdf", "The string must not be empty.", "convert_string_to_file"), 470); output_file = open(file_path, 'wb') try: self.convertStringToStream(text, output_file) output_file.close() except Error: output_file.close() os.remove(file_path) raise def convertStream(self, in_stream): """ Convert the contents of an input stream. in_stream - The input stream with source data. The stream can contain either HTML code or an archive (.zip, .tar.gz, .tar.bz2).The archive can contain HTML code and its external assets (images, style sheets, javascript). return - Byte array containing the conversion output. """ self.raw_data['stream'] = in_stream.read() return self.helper.post(self.fields, self.files, self.raw_data) def convertStreamToStream(self, in_stream, out_stream): """ Convert the contents of an input stream and write the result to an output stream. in_stream - The input stream with source data. The stream can contain either HTML code or an archive (.zip, .tar.gz, .tar.bz2).The archive can contain HTML code and its external assets (images, style sheets, javascript). out_stream - The output stream that will contain the conversion output. """ self.raw_data['stream'] = in_stream.read() self.helper.post(self.fields, self.files, self.raw_data, out_stream) def convertStreamToFile(self, in_stream, file_path): """ Convert the contents of an input stream and write the result to a local file. in_stream - The input stream with source data. The stream can contain either HTML code or an archive (.zip, .tar.gz, .tar.bz2).The archive can contain HTML code and its external assets (images, style sheets, javascript). file_path - The output file path. The string must not be empty. """ if not (file_path): raise Error(create_invalid_value_message(file_path, "convertStreamToFile::file_path", "html-to-pdf", "The string must not be empty.", "convert_stream_to_file"), 470); output_file = open(file_path, 'wb') try: self.convertStreamToStream(in_stream, output_file) output_file.close() except Error: output_file.close() os.remove(file_path) raise def setZipMainFilename(self, filename): """ Set the file name of the main HTML document stored in the input archive. If not specified, the first HTML file in the archive is used for conversion. Use this method if the input archive contains multiple HTML documents. filename - The file name. return - The converter object. """ self.fields['zip_main_filename'] = get_utf8_string(filename) return self def setPageSize(self, size): """ Set the output page size. size - Allowed values are A0, A1, A2, A3, A4, A5, A6, Letter. return - The converter object. """ if not re.match('(?i)^(A0|A1|A2|A3|A4|A5|A6|Letter)$', size): raise Error(create_invalid_value_message(size, "setPageSize", "html-to-pdf", "Allowed values are A0, A1, A2, A3, A4, A5, A6, Letter.", "set_page_size"), 470); self.fields['page_size'] = get_utf8_string(size) return self def setPageWidth(self, width): """ Set the output page width. The safe maximum is 200in otherwise some PDF viewers may be unable to open the PDF. width - Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). return - The converter object. """ if not re.match('(?i)^0$|^[0-9]*\.?[0-9]+(pt|px|mm|cm|in)$', width): raise Error(create_invalid_value_message(width, "setPageWidth", "html-to-pdf", "Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt).", "set_page_width"), 470); self.fields['page_width'] = get_utf8_string(width) return self def setPageHeight(self, height): """ Set the output page height. Use -1 for a single page PDF. The safe maximum is 200in otherwise some PDF viewers may be unable to open the PDF. height - Can be -1 or specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). return - The converter object. """ if not re.match('(?i)^0$|^\-1$|^[0-9]*\.?[0-9]+(pt|px|mm|cm|in)$', height): raise Error(create_invalid_value_message(height, "setPageHeight", "html-to-pdf", "Can be -1 or specified in inches (in), millimeters (mm), centimeters (cm), or points (pt).", "set_page_height"), 470); self.fields['page_height'] = get_utf8_string(height) return self def setPageDimensions(self, width, height): """ Set the output page dimensions. width - Set the output page width. The safe maximum is 200in otherwise some PDF viewers may be unable to open the PDF. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). height - Set the output page height. Use -1 for a single page PDF. The safe maximum is 200in otherwise some PDF viewers may be unable to open the PDF. Can be -1 or specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). return - The converter object. """ self.setPageWidth(width) self.setPageHeight(height) return self def setOrientation(self, orientation): """ Set the output page orientation. orientation - Allowed values are landscape, portrait. return - The converter object. """ if not re.match('(?i)^(landscape|portrait)$', orientation): raise Error(create_invalid_value_message(orientation, "setOrientation", "html-to-pdf", "Allowed values are landscape, portrait.", "set_orientation"), 470); self.fields['orientation'] = get_utf8_string(orientation) return self def setMarginTop(self, top): """ Set the output page top margin. top - Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). return - The converter object. """ if not re.match('(?i)^0$|^[0-9]*\.?[0-9]+(pt|px|mm|cm|in)$', top): raise Error(create_invalid_value_message(top, "setMarginTop", "html-to-pdf", "Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt).", "set_margin_top"), 470); self.fields['margin_top'] = get_utf8_string(top) return self def setMarginRight(self, right): """ Set the output page right margin. right - Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). return - The converter object. """ if not re.match('(?i)^0$|^[0-9]*\.?[0-9]+(pt|px|mm|cm|in)$', right): raise Error(create_invalid_value_message(right, "setMarginRight", "html-to-pdf", "Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt).", "set_margin_right"), 470); self.fields['margin_right'] = get_utf8_string(right) return self def setMarginBottom(self, bottom): """ Set the output page bottom margin. bottom - Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). return - The converter object. """ if not re.match('(?i)^0$|^[0-9]*\.?[0-9]+(pt|px|mm|cm|in)$', bottom): raise Error(create_invalid_value_message(bottom, "setMarginBottom", "html-to-pdf", "Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt).", "set_margin_bottom"), 470); self.fields['margin_bottom'] = get_utf8_string(bottom) return self def setMarginLeft(self, left): """ Set the output page left margin. left - Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). return - The converter object. """ if not re.match('(?i)^0$|^[0-9]*\.?[0-9]+(pt|px|mm|cm|in)$', left): raise Error(create_invalid_value_message(left, "setMarginLeft", "html-to-pdf", "Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt).", "set_margin_left"), 470); self.fields['margin_left'] = get_utf8_string(left) return self def setNoMargins(self, value): """ Disable page margins. value - Set to True to disable margins. return - The converter object. """ self.fields['no_margins'] = value return self def setPageMargins(self, top, right, bottom, left): """ Set the output page margins. top - Set the output page top margin. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). right - Set the output page right margin. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). bottom - Set the output page bottom margin. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). left - Set the output page left margin. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). return - The converter object. """ self.setMarginTop(top) self.setMarginRight(right) self.setMarginBottom(bottom) self.setMarginLeft(left) return self def setPrintPageRange(self, pages): """ Set the page range to print. pages - A comma separated list of page numbers or ranges. return - The converter object. """ if not re.match('^(?:\s*(?:\d+|(?:\d*\s*\-\s*\d+)|(?:\d+\s*\-\s*\d*))\s*,\s*)*\s*(?:\d+|(?:\d*\s*\-\s*\d+)|(?:\d+\s*\-\s*\d*))\s*$', pages): raise Error(create_invalid_value_message(pages, "setPrintPageRange", "html-to-pdf", "A comma separated list of page numbers or ranges.", "set_print_page_range"), 470); self.fields['print_page_range'] = get_utf8_string(pages) return self def setPageNumberingOffset(self, offset): """ Set an offset between physical and logical page numbers. offset - Integer specifying page offset. return - The converter object. """ self.fields['page_numbering_offset'] = offset return self def setContentAreaX(self, x): """ Set the top left X coordinate of the content area. It is relative to the top left X coordinate of the print area. x - Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). It may contain a negative value. return - The converter object. """ if not re.match('(?i)^0$|^\-?[0-9]*\.?[0-9]+(pt|px|mm|cm|in)$', x): raise Error(create_invalid_value_message(x, "setContentAreaX", "html-to-pdf", "Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). It may contain a negative value.", "set_content_area_x"), 470); self.fields['content_area_x'] = get_utf8_string(x) return self def setContentAreaY(self, y): """ Set the top left Y coordinate of the content area. It is relative to the top left Y coordinate of the print area. y - Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). It may contain a negative value. return - The converter object. """ if not re.match('(?i)^0$|^\-?[0-9]*\.?[0-9]+(pt|px|mm|cm|in)$', y): raise Error(create_invalid_value_message(y, "setContentAreaY", "html-to-pdf", "Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). It may contain a negative value.", "set_content_area_y"), 470); self.fields['content_area_y'] = get_utf8_string(y) return self def setContentAreaWidth(self, width): """ Set the width of the content area. It should be at least 1 inch. width - Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). return - The converter object. """ if not re.match('(?i)^0$|^[0-9]*\.?[0-9]+(pt|px|mm|cm|in)$', width): raise Error(create_invalid_value_message(width, "setContentAreaWidth", "html-to-pdf", "Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt).", "set_content_area_width"), 470); self.fields['content_area_width'] = get_utf8_string(width) return self def setContentAreaHeight(self, height): """ Set the height of the content area. It should be at least 1 inch. height - Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). return - The converter object. """ if not re.match('(?i)^0$|^[0-9]*\.?[0-9]+(pt|px|mm|cm|in)$', height): raise Error(create_invalid_value_message(height, "setContentAreaHeight", "html-to-pdf", "Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt).", "set_content_area_height"), 470); self.fields['content_area_height'] = get_utf8_string(height) return self def setContentArea(self, x, y, width, height): """ Set the content area position and size. The content area enables to specify a web page area to be converted. x - Set the top left X coordinate of the content area. It is relative to the top left X coordinate of the print area. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). It may contain a negative value. y - Set the top left Y coordinate of the content area. It is relative to the top left Y coordinate of the print area. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). It may contain a negative value. width - Set the width of the content area. It should be at least 1 inch. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). height - Set the height of the content area. It should be at least 1 inch. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). return - The converter object. """ self.setContentAreaX(x) self.setContentAreaY(y) self.setContentAreaWidth(width) self.setContentAreaHeight(height) return self def setCssPageRuleMode(self, mode): """ Specifies behavior in presence of CSS @page rules. It may affect the page size, margins and orientation. mode - The page rule mode. Allowed values are default, mode1, mode2. return - The converter object. """ if not re.match('(?i)^(default|mode1|mode2)$', mode): raise Error(create_invalid_value_message(mode, "setCssPageRuleMode", "html-to-pdf", "Allowed values are default, mode1, mode2.", "set_css_page_rule_mode"), 470); self.fields['css_page_rule_mode'] = get_utf8_string(mode) return self def setHeaderUrl(self, url): """ Load an HTML code from the specified URL and use it as the page header. The following classes can be used in the HTML. The content of the respective elements will be expanded as follows: pdfcrowd-page-count - the total page count of printed pages pdfcrowd-page-number - the current page number pdfcrowd-source-url - the source URL of a converted document The following attributes can be used: data-pdfcrowd-number-format - specifies the type of the used numerals. Allowed values: arabic - Arabic numerals, they are used by default roman - Roman numerals eastern-arabic - Eastern Arabic numerals bengali - Bengali numerals devanagari - Devanagari numerals thai - Thai numerals east-asia - Chinese, Vietnamese, Japanese and Korean numerals chinese-formal - Chinese formal numerals Please contact us if you need another type of numerals. Example: <span class='pdfcrowd-page-number' data-pdfcrowd-number-format='roman'></span> data-pdfcrowd-placement - specifies where to place the source URL. Allowed values: The URL is inserted to the content Example: <span class='pdfcrowd-source-url'></span> will produce <span>http://example.com</span> href - the URL is set to the href attribute Example: <a class='pdfcrowd-source-url' data-pdfcrowd-placement='href'>Link to source</a> will produce <a href='http://example.com'>Link to source</a> href-and-content - the URL is set to the href attribute and to the content Example: <a class='pdfcrowd-source-url' data-pdfcrowd-placement='href-and-content'></a> will produce <a href='http://example.com'>http://example.com</a> url - The supported protocols are http:// and https://. return - The converter object. """ if not re.match('(?i)^https?://.*$', url): raise Error(create_invalid_value_message(url, "setHeaderUrl", "html-to-pdf", "The supported protocols are http:// and https://.", "set_header_url"), 470); self.fields['header_url'] = get_utf8_string(url) return self def setHeaderHtml(self, html): """ Use the specified HTML code as the page header. The following classes can be used in the HTML. The content of the respective elements will be expanded as follows: pdfcrowd-page-count - the total page count of printed pages pdfcrowd-page-number - the current page number pdfcrowd-source-url - the source URL of a converted document The following attributes can be used: data-pdfcrowd-number-format - specifies the type of the used numerals. Allowed values: arabic - Arabic numerals, they are used by default roman - Roman numerals eastern-arabic - Eastern Arabic numerals bengali - Bengali numerals devanagari - Devanagari numerals thai - Thai numerals east-asia - Chinese, Vietnamese, Japanese and Korean numerals chinese-formal - Chinese formal numerals Please contact us if you need another type of numerals. Example: <span class='pdfcrowd-page-number' data-pdfcrowd-number-format='roman'></span> data-pdfcrowd-placement - specifies where to place the source URL. Allowed values: The URL is inserted to the content Example: <span class='pdfcrowd-source-url'></span> will produce <span>http://example.com</span> href - the URL is set to the href attribute Example: <a class='pdfcrowd-source-url' data-pdfcrowd-placement='href'>Link to source</a> will produce <a href='http://example.com'>Link to source</a> href-and-content - the URL is set to the href attribute and to the content Example: <a class='pdfcrowd-source-url' data-pdfcrowd-placement='href-and-content'></a> will produce <a href='http://example.com'>http://example.com</a> html - The string must not be empty. return - The converter object. """ if not (html): raise Error(create_invalid_value_message(html, "setHeaderHtml", "html-to-pdf", "The string must not be empty.", "set_header_html"), 470); self.fields['header_html'] = get_utf8_string(html) return self def setHeaderHeight(self, height): """ Set the header height. height - Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). return - The converter object. """ if not re.match('(?i)^0$|^[0-9]*\.?[0-9]+(pt|px|mm|cm|in)$', height): raise Error(create_invalid_value_message(height, "setHeaderHeight", "html-to-pdf", "Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt).", "set_header_height"), 470); self.fields['header_height'] = get_utf8_string(height) return self def setZipHeaderFilename(self, filename): """ Set the file name of the header HTML document stored in the input archive. Use this method if the input archive contains multiple HTML documents. filename - The file name. return - The converter object. """ self.fields['zip_header_filename'] = get_utf8_string(filename) return self def setFooterUrl(self, url): """ Load an HTML code from the specified URL and use it as the page footer. The following classes can be used in the HTML. The content of the respective elements will be expanded as follows: pdfcrowd-page-count - the total page count of printed pages pdfcrowd-page-number - the current page number pdfcrowd-source-url - the source URL of a converted document The following attributes can be used: data-pdfcrowd-number-format - specifies the type of the used numerals. Allowed values: arabic - Arabic numerals, they are used by default roman - Roman numerals eastern-arabic - Eastern Arabic numerals bengali - Bengali numerals devanagari - Devanagari numerals thai - Thai numerals east-asia - Chinese, Vietnamese, Japanese and Korean numerals chinese-formal - Chinese formal numerals Please contact us if you need another type of numerals. Example: <span class='pdfcrowd-page-number' data-pdfcrowd-number-format='roman'></span> data-pdfcrowd-placement - specifies where to place the source URL. Allowed values: The URL is inserted to the content Example: <span class='pdfcrowd-source-url'></span> will produce <span>http://example.com</span> href - the URL is set to the href attribute Example: <a class='pdfcrowd-source-url' data-pdfcrowd-placement='href'>Link to source</a> will produce <a href='http://example.com'>Link to source</a> href-and-content - the URL is set to the href attribute and to the content Example: <a class='pdfcrowd-source-url' data-pdfcrowd-placement='href-and-content'></a> will produce <a href='http://example.com'>http://example.com</a> url - The supported protocols are http:// and https://. return - The converter object. """ if not re.match('(?i)^https?://.*$', url): raise Error(create_invalid_value_message(url, "setFooterUrl", "html-to-pdf", "The supported protocols are http:// and https://.", "set_footer_url"), 470); self.fields['footer_url'] = get_utf8_string(url) return self def setFooterHtml(self, html): """ Use the specified HTML as the page footer. The following classes can be used in the HTML. The content of the respective elements will be expanded as follows: pdfcrowd-page-count - the total page count of printed pages pdfcrowd-page-number - the current page number pdfcrowd-source-url - the source URL of a converted document The following attributes can be used: data-pdfcrowd-number-format - specifies the type of the used numerals. Allowed values: arabic - Arabic numerals, they are used by default roman - Roman numerals eastern-arabic - Eastern Arabic numerals bengali - Bengali numerals devanagari - Devanagari numerals thai - Thai numerals east-asia - Chinese, Vietnamese, Japanese and Korean numerals chinese-formal - Chinese formal numerals Please contact us if you need another type of numerals. Example: <span class='pdfcrowd-page-number' data-pdfcrowd-number-format='roman'></span> data-pdfcrowd-placement - specifies where to place the source URL. Allowed values: The URL is inserted to the content Example: <span class='pdfcrowd-source-url'></span> will produce <span>http://example.com</span> href - the URL is set to the href attribute Example: <a class='pdfcrowd-source-url' data-pdfcrowd-placement='href'>Link to source</a> will produce <a href='http://example.com'>Link to source</a> href-and-content - the URL is set to the href attribute and to the content Example: <a class='pdfcrowd-source-url' data-pdfcrowd-placement='href-and-content'></a> will produce <a href='http://example.com'>http://example.com</a> html - The string must not be empty. return - The converter object. """ if not (html): raise Error(create_invalid_value_message(html, "setFooterHtml", "html-to-pdf", "The string must not be empty.", "set_footer_html"), 470); self.fields['footer_html'] = get_utf8_string(html) return self def setFooterHeight(self, height): """ Set the footer height. height - Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). return - The converter object. """ if not re.match('(?i)^0$|^[0-9]*\.?[0-9]+(pt|px|mm|cm|in)$', height): raise Error(create_invalid_value_message(height, "setFooterHeight", "html-to-pdf", "Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt).", "set_footer_height"), 470); self.fields['footer_height'] = get_utf8_string(height) return self def setZipFooterFilename(self, filename): """ Set the file name of the footer HTML document stored in the input archive. Use this method if the input archive contains multiple HTML documents. filename - The file name. return - The converter object. """ self.fields['zip_footer_filename'] = get_utf8_string(filename) return self def setNoHeaderFooterHorizontalMargins(self, value): """ Disable horizontal page margins for header and footer. The header/footer contents width will be equal to the physical page width. value - Set to True to disable horizontal margins for header and footer. return - The converter object. """ self.fields['no_header_footer_horizontal_margins'] = value return self def setExcludeHeaderOnPages(self, pages): """ The page header is not printed on the specified pages. pages - List of physical page numbers. Negative numbers count backwards from the last page: -1 is the last page, -2 is the last but one page, and so on. A comma separated list of page numbers. return - The converter object. """ if not re.match('^(?:\s*\-?\d+\s*,)*\s*\-?\d+\s*$', pages): raise Error(create_invalid_value_message(pages, "setExcludeHeaderOnPages", "html-to-pdf", "A comma separated list of page numbers.", "set_exclude_header_on_pages"), 470); self.fields['exclude_header_on_pages'] = get_utf8_string(pages) return self def setExcludeFooterOnPages(self, pages): """ The page footer is not printed on the specified pages. pages - List of physical page numbers. Negative numbers count backwards from the last page: -1 is the last page, -2 is the last but one page, and so on. A comma separated list of page numbers. return - The converter object. """ if not re.match('^(?:\s*\-?\d+\s*,)*\s*\-?\d+\s*$', pages): raise Error(create_invalid_value_message(pages, "setExcludeFooterOnPages", "html-to-pdf", "A comma separated list of page numbers.", "set_exclude_footer_on_pages"), 470); self.fields['exclude_footer_on_pages'] = get_utf8_string(pages) return self def setHeaderFooterScaleFactor(self, factor): """ Set the scaling factor (zoom) for the header and footer. factor - The percentage value. The value must be in the range 10-500. return - The converter object. """ if not (int(factor) >= 10 and int(factor) <= 500): raise Error(create_invalid_value_message(factor, "setHeaderFooterScaleFactor", "html-to-pdf", "The value must be in the range 10-500.", "set_header_footer_scale_factor"), 470); self.fields['header_footer_scale_factor'] = factor return self def setPageWatermark(self, watermark): """ Apply the first page of the watermark PDF to every page of the output PDF. watermark - The file path to a local watermark PDF file. The file must exist and not be empty. return - The converter object. """ if not (os.path.isfile(watermark) and os.path.getsize(watermark)): raise Error(create_invalid_value_message(watermark, "setPageWatermark", "html-to-pdf", "The file must exist and not be empty.", "set_page_watermark"), 470); self.files['page_watermark'] = get_utf8_string(watermark) return self def setPageWatermarkUrl(self, url): """ Load a watermark PDF from the specified URL and apply the first page of the watermark PDF to every page of the output PDF. url - The supported protocols are http:// and https://. return - The converter object. """ if not re.match('(?i)^https?://.*$', url): raise Error(create_invalid_value_message(url, "setPageWatermarkUrl", "html-to-pdf", "The supported protocols are http:// and https://.", "set_page_watermark_url"), 470); self.fields['page_watermark_url'] = get_utf8_string(url) return self def setMultipageWatermark(self, watermark): """ Apply each page of the specified watermark PDF to the corresponding page of the output PDF. watermark - The file path to a local watermark PDF file. The file must exist and not be empty. return - The converter object. """ if not (os.path.isfile(watermark) and os.path.getsize(watermark)): raise Error(create_invalid_value_message(watermark, "setMultipageWatermark", "html-to-pdf", "The file must exist and not be empty.", "set_multipage_watermark"), 470); self.files['multipage_watermark'] = get_utf8_string(watermark) return self def setMultipageWatermarkUrl(self, url): """ Load a watermark PDF from the specified URL and apply each page of the specified watermark PDF to the corresponding page of the output PDF. url - The supported protocols are http:// and https://. return - The converter object. """ if not re.match('(?i)^https?://.*$', url): raise Error(create_invalid_value_message(url, "setMultipageWatermarkUrl", "html-to-pdf", "The supported protocols are http:// and https://.", "set_multipage_watermark_url"), 470); self.fields['multipage_watermark_url'] = get_utf8_string(url) return self def setPageBackground(self, background): """ Apply the first page of the specified PDF to the background of every page of the output PDF. background - The file path to a local background PDF file. The file must exist and not be empty. return - The converter object. """ if not (os.path.isfile(background) and os.path.getsize(background)): raise Error(create_invalid_value_message(background, "setPageBackground", "html-to-pdf", "The file must exist and not be empty.", "set_page_background"), 470); self.files['page_background'] = get_utf8_string(background) return self def setPageBackgroundUrl(self, url): """ Load a background PDF from the specified URL and apply the first page of the background PDF to every page of the output PDF. url - The supported protocols are http:// and https://. return - The converter object. """ if not re.match('(?i)^https?://.*$', url): raise Error(create_invalid_value_message(url, "setPageBackgroundUrl", "html-to-pdf", "The supported protocols are http:// and https://.", "set_page_background_url"), 470); self.fields['page_background_url'] = get_utf8_string(url) return self def setMultipageBackground(self, background): """ Apply each page of the specified PDF to the background of the corresponding page of the output PDF. background - The file path to a local background PDF file. The file must exist and not be empty. return - The converter object. """ if not (os.path.isfile(background) and os.path.getsize(background)): raise Error(create_invalid_value_message(background, "setMultipageBackground", "html-to-pdf", "The file must exist and not be empty.", "set_multipage_background"), 470); self.files['multipage_background'] = get_utf8_string(background) return self def setMultipageBackgroundUrl(self, url): """ Load a background PDF from the specified URL and apply each page of the specified background PDF to the corresponding page of the output PDF. url - The supported protocols are http:// and https://. return - The converter object. """ if not re.match('(?i)^https?://.*$', url): raise Error(create_invalid_value_message(url, "setMultipageBackgroundUrl", "html-to-pdf", "The supported protocols are http:// and https://.", "set_multipage_background_url"), 470); self.fields['multipage_background_url'] = get_utf8_string(url) return self def setPageBackgroundColor(self, color): """ The page background color in RGB or RGBA hexadecimal format. The color fills the entire page regardless of the margins. color - The value must be in RRGGBB or RRGGBBAA hexadecimal format. return - The converter object. """ if not re.match('^[0-9a-fA-F]{6,8}$', color): raise Error(create_invalid_value_message(color, "setPageBackgroundColor", "html-to-pdf", "The value must be in RRGGBB or RRGGBBAA hexadecimal format.", "set_page_background_color"), 470); self.fields['page_background_color'] = get_utf8_string(color) return self def setUsePrintMedia(self, value): """ Use the print version of the page if available (@media print). value - Set to True to use the print version of the page. return - The converter object. """ self.fields['use_print_media'] = value return self def setNoBackground(self, value): """ Do not print the background graphics. value - Set to True to disable the background graphics. return - The converter object. """ self.fields['no_background'] = value return self def setDisableJavascript(self, value): """ Do not execute JavaScript. value - Set to True to disable JavaScript in web pages. return - The converter object. """ self.fields['disable_javascript'] = value return self def setDisableImageLoading(self, value): """ Do not load images. value - Set to True to disable loading of images. return - The converter object. """ self.fields['disable_image_loading'] = value return self def setDisableRemoteFonts(self, value): """ Disable loading fonts from remote sources. value - Set to True disable loading remote fonts. return - The converter object. """ self.fields['disable_remote_fonts'] = value return self def setLoadIframes(self, iframes): """ Specifies how iframes are handled. iframes - Allowed values are all, same-origin, none. return - The converter object. """ if not re.match('(?i)^(all|same-origin|none)$', iframes): raise Error(create_invalid_value_message(iframes, "setLoadIframes", "html-to-pdf", "Allowed values are all, same-origin, none.", "set_load_iframes"), 470); self.fields['load_iframes'] = get_utf8_string(iframes) return self def setBlockAds(self, value): """ Try to block ads. Enabling this option can produce smaller output and speed up the conversion. value - Set to True to block ads in web pages. return - The converter object. """ self.fields['block_ads'] = value return self def setDefaultEncoding(self, encoding): """ Set the default HTML content text encoding. encoding - The text encoding of the HTML content. return - The converter object. """ self.fields['default_encoding'] = get_utf8_string(encoding) return self def setLocale(self, locale): """ Set the locale for the conversion. This may affect the output format of dates, times and numbers. locale - The locale code according to ISO 639. return - The converter object. """ self.fields['locale'] = get_utf8_string(locale) return self def setHttpAuthUserName(self, user_name): """ Set the HTTP authentication user name. user_name - The user name. return - The converter object. """ self.fields['http_auth_user_name'] = get_utf8_string(user_name) return self def setHttpAuthPassword(self, password): """ Set the HTTP authentication password. password - The password. return - The converter object. """ self.fields['http_auth_password'] = get_utf8_string(password) return self def setHttpAuth(self, user_name, password): """ Set credentials to access HTTP base authentication protected websites. user_name - Set the HTTP authentication user name. password - Set the HTTP authentication password. return - The converter object. """ self.setHttpAuthUserName(user_name) self.setHttpAuthPassword(password) return self def setCookies(self, cookies): """ Set cookies that are sent in Pdfcrowd HTTP requests. cookies - The cookie string. return - The converter object. """ self.fields['cookies'] = get_utf8_string(cookies) return self def setVerifySslCertificates(self, value): """ Do not allow insecure HTTPS connections. value - Set to True to enable SSL certificate verification. return - The converter object. """ self.fields['verify_ssl_certificates'] = value return self def setFailOnMainUrlError(self, fail_on_error): """ Abort the conversion if the main URL HTTP status code is greater than or equal to 400. fail_on_error - Set to True to abort the conversion. return - The converter object. """ self.fields['fail_on_main_url_error'] = fail_on_error return self def setFailOnAnyUrlError(self, fail_on_error): """ Abort the conversion if any of the sub-request HTTP status code is greater than or equal to 400 or if some sub-requests are still pending. See details in a debug log. fail_on_error - Set to True to abort the conversion. return - The converter object. """ self.fields['fail_on_any_url_error'] = fail_on_error return self def setNoXpdfcrowdHeader(self, value): """ Do not send the X-Pdfcrowd HTTP header in Pdfcrowd HTTP requests. value - Set to True to disable sending X-Pdfcrowd HTTP header. return - The converter object. """ self.fields['no_xpdfcrowd_header'] = value return self def setCustomJavascript(self, javascript): """ Run a custom JavaScript after the document is loaded and ready to print. The script is intended for post-load DOM manipulation (add/remove elements, update CSS, ...). In addition to the standard browser APIs, the custom JavaScript code can use helper functions from our JavaScript library. javascript - A string containing a JavaScript code. The string must not be empty. return - The converter object. """ if not (javascript): raise Error(create_invalid_value_message(javascript, "setCustomJavascript", "html-to-pdf", "The string must not be empty.", "set_custom_javascript"), 470); self.fields['custom_javascript'] = get_utf8_string(javascript) return self def setOnLoadJavascript(self, javascript): """ Run a custom JavaScript right after the document is loaded. The script is intended for early DOM manipulation (add/remove elements, update CSS, ...). In addition to the standard browser APIs, the custom JavaScript code can use helper functions from our JavaScript library. javascript - A string containing a JavaScript code. The string must not be empty. return - The converter object. """ if not (javascript): raise Error(create_invalid_value_message(javascript, "setOnLoadJavascript", "html-to-pdf", "The string must not be empty.", "set_on_load_javascript"), 470); self.fields['on_load_javascript'] = get_utf8_string(javascript) return self def setCustomHttpHeader(self, header): """ Set a custom HTTP header that is sent in Pdfcrowd HTTP requests. header - A string containing the header name and value separated by a colon. return - The converter object. """ if not re.match('^.+:.+$', header): raise Error(create_invalid_value_message(header, "setCustomHttpHeader", "html-to-pdf", "A string containing the header name and value separated by a colon.", "set_custom_http_header"), 470); self.fields['custom_http_header'] = get_utf8_string(header) return self def setJavascriptDelay(self, delay): """ Wait the specified number of milliseconds to finish all JavaScript after the document is loaded. Your API license defines the maximum wait time by "Max Delay" parameter. delay - The number of milliseconds to wait. Must be a positive integer number or 0. return - The converter object. """ if not (int(delay) >= 0): raise Error(create_invalid_value_message(delay, "setJavascriptDelay", "html-to-pdf", "Must be a positive integer number or 0.", "set_javascript_delay"), 470); self.fields['javascript_delay'] = delay return self def setElementToConvert(self, selectors): """ Convert only the specified element from the main document and its children. The element is specified by one or more CSS selectors. If the element is not found, the conversion fails. If multiple elements are found, the first one is used. selectors - One or more CSS selectors separated by commas. The string must not be empty. return - The converter object. """ if not (selectors): raise Error(create_invalid_value_message(selectors, "setElementToConvert", "html-to-pdf", "The string must not be empty.", "set_element_to_convert"), 470); self.fields['element_to_convert'] = get_utf8_string(selectors) return self def setElementToConvertMode(self, mode): """ Specify the DOM handling when only a part of the document is converted. This can affect the CSS rules used. mode - Allowed values are cut-out, remove-siblings, hide-siblings. return - The converter object. """ if not re.match('(?i)^(cut-out|remove-siblings|hide-siblings)$', mode): raise Error(create_invalid_value_message(mode, "setElementToConvertMode", "html-to-pdf", "Allowed values are cut-out, remove-siblings, hide-siblings.", "set_element_to_convert_mode"), 470); self.fields['element_to_convert_mode'] = get_utf8_string(mode) return self def setWaitForElement(self, selectors): """ Wait for the specified element in a source document. The element is specified by one or more CSS selectors. The element is searched for in the main document and all iframes. If the element is not found, the conversion fails. Your API license defines the maximum wait time by "Max Delay" parameter. selectors - One or more CSS selectors separated by commas. The string must not be empty. return - The converter object. """ if not (selectors): raise Error(create_invalid_value_message(selectors, "setWaitForElement", "html-to-pdf", "The string must not be empty.", "set_wait_for_element"), 470); self.fields['wait_for_element'] = get_utf8_string(selectors) return self def setViewportWidth(self, width): """ Set the viewport width in pixels. The viewport is the user's visible area of the page. width - The value must be in the range 96-65000. return - The converter object. """ if not (int(width) >= 96 and int(width) <= 65000): raise Error(create_invalid_value_message(width, "setViewportWidth", "html-to-pdf", "The value must be in the range 96-65000.", "set_viewport_width"), 470); self.fields['viewport_width'] = width return self def setViewportHeight(self, height): """ Set the viewport height in pixels. The viewport is the user's visible area of the page. height - Must be a positive integer number. return - The converter object. """ if not (int(height) > 0): raise Error(create_invalid_value_message(height, "setViewportHeight", "html-to-pdf", "Must be a positive integer number.", "set_viewport_height"), 470); self.fields['viewport_height'] = height return self def setViewport(self, width, height): """ Set the viewport size. The viewport is the user's visible area of the page. width - Set the viewport width in pixels. The viewport is the user's visible area of the page. The value must be in the range 96-65000. height - Set the viewport height in pixels. The viewport is the user's visible area of the page. Must be a positive integer number. return - The converter object. """ self.setViewportWidth(width) self.setViewportHeight(height) return self def setRenderingMode(self, mode): """ Set the rendering mode. mode - The rendering mode. Allowed values are default, viewport. return - The converter object. """ if not re.match('(?i)^(default|viewport)$', mode): raise Error(create_invalid_value_message(mode, "setRenderingMode", "html-to-pdf", "Allowed values are default, viewport.", "set_rendering_mode"), 470); self.fields['rendering_mode'] = get_utf8_string(mode) return self def setSmartScalingMode(self, mode): """ Specifies the scaling mode used for fitting the HTML contents to the print area. mode - The smart scaling mode. Allowed values are default, disabled, viewport-fit, content-fit, single-page-fit, mode1. return - The converter object. """ if not re.match('(?i)^(default|disabled|viewport-fit|content-fit|single-page-fit|mode1)$', mode): raise Error(create_invalid_value_message(mode, "setSmartScalingMode", "html-to-pdf", "Allowed values are default, disabled, viewport-fit, content-fit, single-page-fit, mode1.", "set_smart_scaling_mode"), 470); self.fields['smart_scaling_mode'] = get_utf8_string(mode) return self def setScaleFactor(self, factor): """ Set the scaling factor (zoom) for the main page area. factor - The percentage value. The value must be in the range 10-500. return - The converter object. """ if not (int(factor) >= 10 and int(factor) <= 500): raise Error(create_invalid_value_message(factor, "setScaleFactor", "html-to-pdf", "The value must be in the range 10-500.", "set_scale_factor"), 470); self.fields['scale_factor'] = factor return self def setJpegQuality(self, quality): """ Set the quality of embedded JPEG images. A lower quality results in a smaller PDF file but can lead to compression artifacts. quality - The percentage value. The value must be in the range 1-100. return - The converter object. """ if not (int(quality) >= 1 and int(quality) <= 100): raise Error(create_invalid_value_message(quality, "setJpegQuality", "html-to-pdf", "The value must be in the range 1-100.", "set_jpeg_quality"), 470); self.fields['jpeg_quality'] = quality return self def setConvertImagesToJpeg(self, images): """ Specify which image types will be converted to JPEG. Converting lossless compression image formats (PNG, GIF, ...) to JPEG may result in a smaller PDF file. images - The image category. Allowed values are none, opaque, all. return - The converter object. """ if not re.match('(?i)^(none|opaque|all)$', images): raise Error(create_invalid_value_message(images, "setConvertImagesToJpeg", "html-to-pdf", "Allowed values are none, opaque, all.", "set_convert_images_to_jpeg"), 470); self.fields['convert_images_to_jpeg'] = get_utf8_string(images) return self def setImageDpi(self, dpi): """ Set the DPI of images in PDF. A lower DPI may result in a smaller PDF file. If the specified DPI is higher than the actual image DPI, the original image DPI is retained (no upscaling is performed). Use 0 to leave the images unaltered. dpi - The DPI value. Must be a positive integer number or 0. return - The converter object. """ if not (int(dpi) >= 0): raise Error(create_invalid_value_message(dpi, "setImageDpi", "html-to-pdf", "Must be a positive integer number or 0.", "set_image_dpi"), 470); self.fields['image_dpi'] = dpi return self def setLinearize(self, value): """ Create linearized PDF. This is also known as Fast Web View. value - Set to True to create linearized PDF. return - The converter object. """ self.fields['linearize'] = value return self def setEncrypt(self, value): """ Encrypt the PDF. This prevents search engines from indexing the contents. value - Set to True to enable PDF encryption. return - The converter object. """ self.fields['encrypt'] = value return self def setUserPassword(self, password): """ Protect the PDF with a user password. When a PDF has a user password, it must be supplied in order to view the document and to perform operations allowed by the access permissions. password - The user password. return - The converter object. """ self.fields['user_password'] = get_utf8_string(password) return self def setOwnerPassword(self, password): """ Protect the PDF with an owner password. Supplying an owner password grants unlimited access to the PDF including changing the passwords and access permissions. password - The owner password. return - The converter object. """ self.fields['owner_password'] = get_utf8_string(password) return self def setNoPrint(self, value): """ Disallow printing of the output PDF. value - Set to True to set the no-print flag in the output PDF. return - The converter object. """ self.fields['no_print'] = value return self def setNoModify(self, value): """ Disallow modification of the output PDF. value - Set to True to set the read-only only flag in the output PDF. return - The converter object. """ self.fields['no_modify'] = value return self def setNoCopy(self, value): """ Disallow text and graphics extraction from the output PDF. value - Set to True to set the no-copy flag in the output PDF. return - The converter object. """ self.fields['no_copy'] = value return self def setTitle(self, title): """ Set the title of the PDF. title - The title. return - The converter object. """ self.fields['title'] = get_utf8_string(title) return self def setSubject(self, subject): """ Set the subject of the PDF. subject - The subject. return - The converter object. """ self.fields['subject'] = get_utf8_string(subject) return self def setAuthor(self, author): """ Set the author of the PDF. author - The author. return - The converter object. """ self.fields['author'] = get_utf8_string(author) return self def setKeywords(self, keywords): """ Associate keywords with the document. keywords - The string with the keywords. return - The converter object. """ self.fields['keywords'] = get_utf8_string(keywords) return self def setExtractMetaTags(self, value): """ Extract meta tags (author, keywords and description) from the input HTML and use them in the output PDF. value - Set to True to extract meta tags. return - The converter object. """ self.fields['extract_meta_tags'] = value return self def setPageLayout(self, layout): """ Specify the page layout to be used when the document is opened. layout - Allowed values are single-page, one-column, two-column-left, two-column-right. return - The converter object. """ if not re.match('(?i)^(single-page|one-column|two-column-left|two-column-right)$', layout): raise Error(create_invalid_value_message(layout, "setPageLayout", "html-to-pdf", "Allowed values are single-page, one-column, two-column-left, two-column-right.", "set_page_layout"), 470); self.fields['page_layout'] = get_utf8_string(layout) return self def setPageMode(self, mode): """ Specify how the document should be displayed when opened. mode - Allowed values are full-screen, thumbnails, outlines. return - The converter object. """ if not re.match('(?i)^(full-screen|thumbnails|outlines)$', mode): raise Error(create_invalid_value_message(mode, "setPageMode", "html-to-pdf", "Allowed values are full-screen, thumbnails, outlines.", "set_page_mode"), 470); self.fields['page_mode'] = get_utf8_string(mode) return self def setInitialZoomType(self, zoom_type): """ Specify how the page should be displayed when opened. zoom_type - Allowed values are fit-width, fit-height, fit-page. return - The converter object. """ if not re.match('(?i)^(fit-width|fit-height|fit-page)$', zoom_type): raise Error(create_invalid_value_message(zoom_type, "setInitialZoomType", "html-to-pdf", "Allowed values are fit-width, fit-height, fit-page.", "set_initial_zoom_type"), 470); self.fields['initial_zoom_type'] = get_utf8_string(zoom_type) return self def setInitialPage(self, page): """ Display the specified page when the document is opened. page - Must be a positive integer number. return - The converter object. """ if not (int(page) > 0): raise Error(create_invalid_value_message(page, "setInitialPage", "html-to-pdf", "Must be a positive integer number.", "set_initial_page"), 470); self.fields['initial_page'] = page return self def setInitialZoom(self, zoom): """ Specify the initial page zoom in percents when the document is opened. zoom - Must be a positive integer number. return - The converter object. """ if not (int(zoom) > 0): raise Error(create_invalid_value_message(zoom, "setInitialZoom", "html-to-pdf", "Must be a positive integer number.", "set_initial_zoom"), 470); self.fields['initial_zoom'] = zoom return self def setHideToolbar(self, value): """ Specify whether to hide the viewer application's tool bars when the document is active. value - Set to True to hide tool bars. return - The converter object. """ self.fields['hide_toolbar'] = value return self def setHideMenubar(self, value): """ Specify whether to hide the viewer application's menu bar when the document is active. value - Set to True to hide the menu bar. return - The converter object. """ self.fields['hide_menubar'] = value return self def setHideWindowUi(self, value): """ Specify whether to hide user interface elements in the document's window (such as scroll bars and navigation controls), leaving only the document's contents displayed. value - Set to True to hide ui elements. return - The converter object. """ self.fields['hide_window_ui'] = value return self def setFitWindow(self, value): """ Specify whether to resize the document's window to fit the size of the first displayed page. value - Set to True to resize the window. return - The converter object. """ self.fields['fit_window'] = value return self def setCenterWindow(self, value): """ Specify whether to position the document's window in the center of the screen. value - Set to True to center the window. return - The converter object. """ self.fields['center_window'] = value return self def setDisplayTitle(self, value): """ Specify whether the window's title bar should display the document title. If false , the title bar should instead display the name of the PDF file containing the document. value - Set to True to display the title. return - The converter object. """ self.fields['display_title'] = value return self def setRightToLeft(self, value): """ Set the predominant reading order for text to right-to-left. This option has no direct effect on the document's contents or page numbering but can be used to determine the relative positioning of pages when displayed side by side or printed n-up value - Set to True to set right-to-left reading order. return - The converter object. """ self.fields['right_to_left'] = value return self def setDataString(self, data_string): """ Set the input data for template rendering. The data format can be JSON, XML, YAML or CSV. data_string - The input data string. return - The converter object. """ self.fields['data_string'] = get_utf8_string(data_string) return self def setDataFile(self, data_file): """ Load the input data for template rendering from the specified file. The data format can be JSON, XML, YAML or CSV. data_file - The file path to a local file containing the input data. return - The converter object. """ self.files['data_file'] = get_utf8_string(data_file) return self def setDataFormat(self, data_format): """ Specify the input data format. data_format - The data format. Allowed values are auto, json, xml, yaml, csv. return - The converter object. """ if not re.match('(?i)^(auto|json|xml|yaml|csv)$', data_format): raise Error(create_invalid_value_message(data_format, "setDataFormat", "html-to-pdf", "Allowed values are auto, json, xml, yaml, csv.", "set_data_format"), 470); self.fields['data_format'] = get_utf8_string(data_format) return self def setDataEncoding(self, encoding): """ Set the encoding of the data file set by setDataFile. encoding - The data file encoding. return - The converter object. """ self.fields['data_encoding'] = get_utf8_string(encoding) return self def setDataIgnoreUndefined(self, value): """ Ignore undefined variables in the HTML template. The default mode is strict so any undefined variable causes the conversion to fail. You can use {% if variable is defined %} to check if the variable is defined. value - Set to True to ignore undefined variables. return - The converter object. """ self.fields['data_ignore_undefined'] = value return self def setDataAutoEscape(self, value): """ Auto escape HTML symbols in the input data before placing them into the output. value - Set to True to turn auto escaping on. return - The converter object. """ self.fields['data_auto_escape'] = value return self def setDataTrimBlocks(self, value): """ Auto trim whitespace around each template command block. value - Set to True to turn auto trimming on. return - The converter object. """ self.fields['data_trim_blocks'] = value return self def setDataOptions(self, options): """ Set the advanced data options:csv_delimiter - The CSV data delimiter, the default is ,.xml_remove_root - Remove the root XML element from the input data.data_root - The name of the root element inserted into the input data without a root node (e.g. CSV), the default is data. options - Comma separated list of options. return - The converter object. """ self.fields['data_options'] = get_utf8_string(options) return self def setDebugLog(self, value): """ Turn on the debug logging. Details about the conversion are stored in the debug log. The URL of the log can be obtained from the getDebugLogUrl method or available in conversion statistics. value - Set to True to enable the debug logging. return - The converter object. """ self.fields['debug_log'] = value return self def getDebugLogUrl(self): """ Get the URL of the debug log for the last conversion. return - The link to the debug log. """ return self.helper.getDebugLogUrl() def getRemainingCreditCount(self): """ Get the number of conversion credits available in your account. This method can only be called after a call to one of the convertXYZ methods. The returned value can differ from the actual count if you run parallel conversions. The special value 999999 is returned if the information is not available. return - The number of credits. """ return self.helper.getRemainingCreditCount() def getConsumedCreditCount(self): """ Get the number of credits consumed by the last conversion. return - The number of credits. """ return self.helper.getConsumedCreditCount() def getJobId(self): """ Get the job id. return - The unique job identifier. """ return self.helper.getJobId() def getPageCount(self): """ Get the total number of pages in the output document. return - The page count. """ return self.helper.getPageCount() def getOutputSize(self): """ Get the size of the output in bytes. return - The count of bytes. """ return self.helper.getOutputSize() def getVersion(self): """ Get the version details. return - API version, converter version, and client version. """ return 'client {}, API v2, converter {}'.format(CLIENT_VERSION, self.helper.getConverterVersion()) def setTag(self, tag): """ Tag the conversion with a custom value. The tag is used in conversion statistics. A value longer than 32 characters is cut off. tag - A string with the custom tag. return - The converter object. """ self.fields['tag'] = get_utf8_string(tag) return self def setHttpProxy(self, proxy): """ A proxy server used by Pdfcrowd conversion process for accessing the source URLs with HTTP scheme. It can help to circumvent regional restrictions or provide limited access to your intranet. proxy - The value must have format DOMAIN_OR_IP_ADDRESS:PORT. return - The converter object. """ if not re.match('(?i)^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z0-9]{1,}:\d+$', proxy): raise Error(create_invalid_value_message(proxy, "setHttpProxy", "html-to-pdf", "The value must have format DOMAIN_OR_IP_ADDRESS:PORT.", "set_http_proxy"), 470); self.fields['http_proxy'] = get_utf8_string(proxy) return self def setHttpsProxy(self, proxy): """ A proxy server used by Pdfcrowd conversion process for accessing the source URLs with HTTPS scheme. It can help to circumvent regional restrictions or provide limited access to your intranet. proxy - The value must have format DOMAIN_OR_IP_ADDRESS:PORT. return - The converter object. """ if not re.match('(?i)^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z0-9]{1,}:\d+$', proxy): raise Error(create_invalid_value_message(proxy, "setHttpsProxy", "html-to-pdf", "The value must have format DOMAIN_OR_IP_ADDRESS:PORT.", "set_https_proxy"), 470); self.fields['https_proxy'] = get_utf8_string(proxy) return self def setClientCertificate(self, certificate): """ A client certificate to authenticate Pdfcrowd converter on your web server. The certificate is used for two-way SSL/TLS authentication and adds extra security. certificate - The file must be in PKCS12 format. The file must exist and not be empty. return - The converter object. """ if not (os.path.isfile(certificate) and os.path.getsize(certificate)): raise Error(create_invalid_value_message(certificate, "setClientCertificate", "html-to-pdf", "The file must exist and not be empty.", "set_client_certificate"), 470); self.files['client_certificate'] = get_utf8_string(certificate) return self def setClientCertificatePassword(self, password): """ A password for PKCS12 file with a client certificate if it is needed. password - return - The converter object. """ self.fields['client_certificate_password'] = get_utf8_string(password) return self def setLayoutDpi(self, dpi): """ Set the internal DPI resolution used for positioning of PDF contents. It can help in situations when there are small inaccuracies in the PDF. It is recommended to use values that are a multiple of 72, such as 288 or 360. dpi - The DPI value. The value must be in the range of 72-600. return - The converter object. """ if not (int(dpi) >= 72 and int(dpi) <= 600): raise Error(create_invalid_value_message(dpi, "setLayoutDpi", "html-to-pdf", "The value must be in the range of 72-600.", "set_layout_dpi"), 470); self.fields['layout_dpi'] = dpi return self def setContentsMatrix(self, matrix): """ A 2D transformation matrix applied to the main contents on each page. The origin [0,0] is located at the top-left corner of the contents. The resolution is 72 dpi. matrix - A comma separated string of matrix elements: "scaleX,skewX,transX,skewY,scaleY,transY" return - The converter object. """ self.fields['contents_matrix'] = get_utf8_string(matrix) return self def setHeaderMatrix(self, matrix): """ A 2D transformation matrix applied to the page header contents. The origin [0,0] is located at the top-left corner of the header. The resolution is 72 dpi. matrix - A comma separated string of matrix elements: "scaleX,skewX,transX,skewY,scaleY,transY" return - The converter object. """ self.fields['header_matrix'] = get_utf8_string(matrix) return self def setFooterMatrix(self, matrix): """ A 2D transformation matrix applied to the page footer contents. The origin [0,0] is located at the top-left corner of the footer. The resolution is 72 dpi. matrix - A comma separated string of matrix elements: "scaleX,skewX,transX,skewY,scaleY,transY" return - The converter object. """ self.fields['footer_matrix'] = get_utf8_string(matrix) return self def setDisablePageHeightOptimization(self, value): """ Disable automatic height adjustment that compensates for pixel to point rounding errors. value - Set to True to disable automatic height scale. return - The converter object. """ self.fields['disable_page_height_optimization'] = value return self def setMainDocumentCssAnnotation(self, value): """ Add special CSS classes to the main document's body element. This allows applying custom styling based on these classes: pdfcrowd-page-X - where X is the current page number pdfcrowd-page-odd - odd page pdfcrowd-page-even - even page Warning: If your custom styling affects the contents area size (e.g. by using different margins, padding, border width), the resulting PDF may contain duplicit contents or some contents may be missing. value - Set to True to add the special CSS classes. return - The converter object. """ self.fields['main_document_css_annotation'] = value return self def setHeaderFooterCssAnnotation(self, value): """ Add special CSS classes to the header/footer's body element. This allows applying custom styling based on these classes: pdfcrowd-page-X - where X is the current page number pdfcrowd-page-count-X - where X is the total page count pdfcrowd-page-first - the first page pdfcrowd-page-last - the last page pdfcrowd-page-odd - odd page pdfcrowd-page-even - even page value - Set to True to add the special CSS classes. return - The converter object. """ self.fields['header_footer_css_annotation'] = value return self def setConverterVersion(self, version): """ Set the converter version. Different versions may produce different output. Choose which one provides the best output for your case. version - The version identifier. Allowed values are latest, 20.10, 18.10. return - The converter object. """ if not re.match('(?i)^(latest|20.10|18.10)$', version): raise Error(create_invalid_value_message(version, "setConverterVersion", "html-to-pdf", "Allowed values are latest, 20.10, 18.10.", "set_converter_version"), 470); self.helper.setConverterVersion(version) return self def setUseHttp(self, value): """ Specifies if the client communicates over HTTP or HTTPS with Pdfcrowd API. Warning: Using HTTP is insecure as data sent over HTTP is not encrypted. Enable this option only if you know what you are doing. value - Set to True to use HTTP. return - The converter object. """ self.helper.setUseHttp(value) return self def setUserAgent(self, agent): """ Set a custom user agent HTTP header. It can be useful if you are behind some proxy or firewall. agent - The user agent string. return - The converter object. """ self.helper.setUserAgent(agent) return self def setProxy(self, host, port, user_name, password): """ Specifies an HTTP proxy that the API client library will use to connect to the internet. host - The proxy hostname. port - The proxy port. user_name - The username. password - The password. return - The converter object. """ self.helper.setProxy(host, port, user_name, password) return self def setRetryCount(self, count): """ Specifies the number of retries when the 502 HTTP status code is received. The 502 status code indicates a temporary network issue. This feature can be disabled by setting to 0. count - Number of retries wanted. return - The converter object. """ self.helper.setRetryCount(count) return self class HtmlToImageClient: """ Conversion from HTML to image. """ def __init__(self, user_name, api_key): """ Constructor for the Pdfcrowd API client. user_name - Your username at Pdfcrowd. api_key - Your API key. """ self.helper = ConnectionHelper(user_name, api_key) self.fields = { 'input_format': 'html', 'output_format': 'png' } self.file_id = 1 self.files = {} self.raw_data = {} def setOutputFormat(self, output_format): """ The format of the output file. output_format - Allowed values are png, jpg, gif, tiff, bmp, ico, ppm, pgm, pbm, pnm, psb, pct, ras, tga, sgi, sun, webp. return - The converter object. """ if not re.match('(?i)^(png|jpg|gif|tiff|bmp|ico|ppm|pgm|pbm|pnm|psb|pct|ras|tga|sgi|sun|webp)$', output_format): raise Error(create_invalid_value_message(output_format, "setOutputFormat", "html-to-image", "Allowed values are png, jpg, gif, tiff, bmp, ico, ppm, pgm, pbm, pnm, psb, pct, ras, tga, sgi, sun, webp.", "set_output_format"), 470); self.fields['output_format'] = get_utf8_string(output_format) return self def convertUrl(self, url): """ Convert a web page. url - The address of the web page to convert. The supported protocols are http:// and https://. return - Byte array containing the conversion output. """ if not re.match('(?i)^https?://.*$', url): raise Error(create_invalid_value_message(url, "convertUrl", "html-to-image", "The supported protocols are http:// and https://.", "convert_url"), 470); self.fields['url'] = get_utf8_string(url) return self.helper.post(self.fields, self.files, self.raw_data) def convertUrlToStream(self, url, out_stream): """ Convert a web page and write the result to an output stream. url - The address of the web page to convert. The supported protocols are http:// and https://. out_stream - The output stream that will contain the conversion output. """ if not re.match('(?i)^https?://.*$', url): raise Error(create_invalid_value_message(url, "convertUrlToStream::url", "html-to-image", "The supported protocols are http:// and https://.", "convert_url_to_stream"), 470); self.fields['url'] = get_utf8_string(url) self.helper.post(self.fields, self.files, self.raw_data, out_stream) def convertUrlToFile(self, url, file_path): """ Convert a web page and write the result to a local file. url - The address of the web page to convert. The supported protocols are http:// and https://. file_path - The output file path. The string must not be empty. """ if not (file_path): raise Error(create_invalid_value_message(file_path, "convertUrlToFile::file_path", "html-to-image", "The string must not be empty.", "convert_url_to_file"), 470); output_file = open(file_path, 'wb') try: self.convertUrlToStream(url, output_file) output_file.close() except Error: output_file.close() os.remove(file_path) raise def convertFile(self, file): """ Convert a local file. file - The path to a local file to convert. The file can be either a single file or an archive (.tar.gz, .tar.bz2, or .zip). If the HTML document refers to local external assets (images, style sheets, javascript), zip the document together with the assets. The file must exist and not be empty. The file name must have a valid extension. return - Byte array containing the conversion output. """ if not (os.path.isfile(file) and os.path.getsize(file)): raise Error(create_invalid_value_message(file, "convertFile", "html-to-image", "The file must exist and not be empty.", "convert_file"), 470); self.files['file'] = get_utf8_string(file) return self.helper.post(self.fields, self.files, self.raw_data) def convertFileToStream(self, file, out_stream): """ Convert a local file and write the result to an output stream. file - The path to a local file to convert. The file can be either a single file or an archive (.tar.gz, .tar.bz2, or .zip). If the HTML document refers to local external assets (images, style sheets, javascript), zip the document together with the assets. The file must exist and not be empty. The file name must have a valid extension. out_stream - The output stream that will contain the conversion output. """ if not (os.path.isfile(file) and os.path.getsize(file)): raise Error(create_invalid_value_message(file, "convertFileToStream::file", "html-to-image", "The file must exist and not be empty.", "convert_file_to_stream"), 470); self.files['file'] = get_utf8_string(file) self.helper.post(self.fields, self.files, self.raw_data, out_stream) def convertFileToFile(self, file, file_path): """ Convert a local file and write the result to a local file. file - The path to a local file to convert. The file can be either a single file or an archive (.tar.gz, .tar.bz2, or .zip). If the HTML document refers to local external assets (images, style sheets, javascript), zip the document together with the assets. The file must exist and not be empty. The file name must have a valid extension. file_path - The output file path. The string must not be empty. """ if not (file_path): raise Error(create_invalid_value_message(file_path, "convertFileToFile::file_path", "html-to-image", "The string must not be empty.", "convert_file_to_file"), 470); output_file = open(file_path, 'wb') try: self.convertFileToStream(file, output_file) output_file.close() except Error: output_file.close() os.remove(file_path) raise def convertString(self, text): """ Convert a string. text - The string content to convert. The string must not be empty. return - Byte array containing the conversion output. """ if not (text): raise Error(create_invalid_value_message(text, "convertString", "html-to-image", "The string must not be empty.", "convert_string"), 470); self.fields['text'] = get_utf8_string(text) return self.helper.post(self.fields, self.files, self.raw_data) def convertStringToStream(self, text, out_stream): """ Convert a string and write the output to an output stream. text - The string content to convert. The string must not be empty. out_stream - The output stream that will contain the conversion output. """ if not (text): raise Error(create_invalid_value_message(text, "convertStringToStream::text", "html-to-image", "The string must not be empty.", "convert_string_to_stream"), 470); self.fields['text'] = get_utf8_string(text) self.helper.post(self.fields, self.files, self.raw_data, out_stream) def convertStringToFile(self, text, file_path): """ Convert a string and write the output to a file. text - The string content to convert. The string must not be empty. file_path - The output file path. The string must not be empty. """ if not (file_path): raise Error(create_invalid_value_message(file_path, "convertStringToFile::file_path", "html-to-image", "The string must not be empty.", "convert_string_to_file"), 470); output_file = open(file_path, 'wb') try: self.convertStringToStream(text, output_file) output_file.close() except Error: output_file.close() os.remove(file_path) raise def convertStream(self, in_stream): """ Convert the contents of an input stream. in_stream - The input stream with source data. The stream can contain either HTML code or an archive (.zip, .tar.gz, .tar.bz2).The archive can contain HTML code and its external assets (images, style sheets, javascript). return - Byte array containing the conversion output. """ self.raw_data['stream'] = in_stream.read() return self.helper.post(self.fields, self.files, self.raw_data) def convertStreamToStream(self, in_stream, out_stream): """ Convert the contents of an input stream and write the result to an output stream. in_stream - The input stream with source data. The stream can contain either HTML code or an archive (.zip, .tar.gz, .tar.bz2).The archive can contain HTML code and its external assets (images, style sheets, javascript). out_stream - The output stream that will contain the conversion output. """ self.raw_data['stream'] = in_stream.read() self.helper.post(self.fields, self.files, self.raw_data, out_stream) def convertStreamToFile(self, in_stream, file_path): """ Convert the contents of an input stream and write the result to a local file. in_stream - The input stream with source data. The stream can contain either HTML code or an archive (.zip, .tar.gz, .tar.bz2).The archive can contain HTML code and its external assets (images, style sheets, javascript). file_path - The output file path. The string must not be empty. """ if not (file_path): raise Error(create_invalid_value_message(file_path, "convertStreamToFile::file_path", "html-to-image", "The string must not be empty.", "convert_stream_to_file"), 470); output_file = open(file_path, 'wb') try: self.convertStreamToStream(in_stream, output_file) output_file.close() except Error: output_file.close() os.remove(file_path) raise def setZipMainFilename(self, filename): """ Set the file name of the main HTML document stored in the input archive. If not specified, the first HTML file in the archive is used for conversion. Use this method if the input archive contains multiple HTML documents. filename - The file name. return - The converter object. """ self.fields['zip_main_filename'] = get_utf8_string(filename) return self def setUsePrintMedia(self, value): """ Use the print version of the page if available (@media print). value - Set to True to use the print version of the page. return - The converter object. """ self.fields['use_print_media'] = value return self def setNoBackground(self, value): """ Do not print the background graphics. value - Set to True to disable the background graphics. return - The converter object. """ self.fields['no_background'] = value return self def setDisableJavascript(self, value): """ Do not execute JavaScript. value - Set to True to disable JavaScript in web pages. return - The converter object. """ self.fields['disable_javascript'] = value return self def setDisableImageLoading(self, value): """ Do not load images. value - Set to True to disable loading of images. return - The converter object. """ self.fields['disable_image_loading'] = value return self def setDisableRemoteFonts(self, value): """ Disable loading fonts from remote sources. value - Set to True disable loading remote fonts. return - The converter object. """ self.fields['disable_remote_fonts'] = value return self def setLoadIframes(self, iframes): """ Specifies how iframes are handled. iframes - Allowed values are all, same-origin, none. return - The converter object. """ if not re.match('(?i)^(all|same-origin|none)$', iframes): raise Error(create_invalid_value_message(iframes, "setLoadIframes", "html-to-image", "Allowed values are all, same-origin, none.", "set_load_iframes"), 470); self.fields['load_iframes'] = get_utf8_string(iframes) return self def setBlockAds(self, value): """ Try to block ads. Enabling this option can produce smaller output and speed up the conversion. value - Set to True to block ads in web pages. return - The converter object. """ self.fields['block_ads'] = value return self def setDefaultEncoding(self, encoding): """ Set the default HTML content text encoding. encoding - The text encoding of the HTML content. return - The converter object. """ self.fields['default_encoding'] = get_utf8_string(encoding) return self def setLocale(self, locale): """ Set the locale for the conversion. This may affect the output format of dates, times and numbers. locale - The locale code according to ISO 639. return - The converter object. """ self.fields['locale'] = get_utf8_string(locale) return self def setHttpAuthUserName(self, user_name): """ Set the HTTP authentication user name. user_name - The user name. return - The converter object. """ self.fields['http_auth_user_name'] = get_utf8_string(user_name) return self def setHttpAuthPassword(self, password): """ Set the HTTP authentication password. password - The password. return - The converter object. """ self.fields['http_auth_password'] = get_utf8_string(password) return self def setHttpAuth(self, user_name, password): """ Set credentials to access HTTP base authentication protected websites. user_name - Set the HTTP authentication user name. password - Set the HTTP authentication password. return - The converter object. """ self.setHttpAuthUserName(user_name) self.setHttpAuthPassword(password) return self def setCookies(self, cookies): """ Set cookies that are sent in Pdfcrowd HTTP requests. cookies - The cookie string. return - The converter object. """ self.fields['cookies'] = get_utf8_string(cookies) return self def setVerifySslCertificates(self, value): """ Do not allow insecure HTTPS connections. value - Set to True to enable SSL certificate verification. return - The converter object. """ self.fields['verify_ssl_certificates'] = value return self def setFailOnMainUrlError(self, fail_on_error): """ Abort the conversion if the main URL HTTP status code is greater than or equal to 400. fail_on_error - Set to True to abort the conversion. return - The converter object. """ self.fields['fail_on_main_url_error'] = fail_on_error return self def setFailOnAnyUrlError(self, fail_on_error): """ Abort the conversion if any of the sub-request HTTP status code is greater than or equal to 400 or if some sub-requests are still pending. See details in a debug log. fail_on_error - Set to True to abort the conversion. return - The converter object. """ self.fields['fail_on_any_url_error'] = fail_on_error return self def setNoXpdfcrowdHeader(self, value): """ Do not send the X-Pdfcrowd HTTP header in Pdfcrowd HTTP requests. value - Set to True to disable sending X-Pdfcrowd HTTP header. return - The converter object. """ self.fields['no_xpdfcrowd_header'] = value return self def setCustomJavascript(self, javascript): """ Run a custom JavaScript after the document is loaded and ready to print. The script is intended for post-load DOM manipulation (add/remove elements, update CSS, ...). In addition to the standard browser APIs, the custom JavaScript code can use helper functions from our JavaScript library. javascript - A string containing a JavaScript code. The string must not be empty. return - The converter object. """ if not (javascript): raise Error(create_invalid_value_message(javascript, "setCustomJavascript", "html-to-image", "The string must not be empty.", "set_custom_javascript"), 470); self.fields['custom_javascript'] = get_utf8_string(javascript) return self def setOnLoadJavascript(self, javascript): """ Run a custom JavaScript right after the document is loaded. The script is intended for early DOM manipulation (add/remove elements, update CSS, ...). In addition to the standard browser APIs, the custom JavaScript code can use helper functions from our JavaScript library. javascript - A string containing a JavaScript code. The string must not be empty. return - The converter object. """ if not (javascript): raise Error(create_invalid_value_message(javascript, "setOnLoadJavascript", "html-to-image", "The string must not be empty.", "set_on_load_javascript"), 470); self.fields['on_load_javascript'] = get_utf8_string(javascript) return self def setCustomHttpHeader(self, header): """ Set a custom HTTP header that is sent in Pdfcrowd HTTP requests. header - A string containing the header name and value separated by a colon. return - The converter object. """ if not re.match('^.+:.+$', header): raise Error(create_invalid_value_message(header, "setCustomHttpHeader", "html-to-image", "A string containing the header name and value separated by a colon.", "set_custom_http_header"), 470); self.fields['custom_http_header'] = get_utf8_string(header) return self def setJavascriptDelay(self, delay): """ Wait the specified number of milliseconds to finish all JavaScript after the document is loaded. Your API license defines the maximum wait time by "Max Delay" parameter. delay - The number of milliseconds to wait. Must be a positive integer number or 0. return - The converter object. """ if not (int(delay) >= 0): raise Error(create_invalid_value_message(delay, "setJavascriptDelay", "html-to-image", "Must be a positive integer number or 0.", "set_javascript_delay"), 470); self.fields['javascript_delay'] = delay return self def setElementToConvert(self, selectors): """ Convert only the specified element from the main document and its children. The element is specified by one or more CSS selectors. If the element is not found, the conversion fails. If multiple elements are found, the first one is used. selectors - One or more CSS selectors separated by commas. The string must not be empty. return - The converter object. """ if not (selectors): raise Error(create_invalid_value_message(selectors, "setElementToConvert", "html-to-image", "The string must not be empty.", "set_element_to_convert"), 470); self.fields['element_to_convert'] = get_utf8_string(selectors) return self def setElementToConvertMode(self, mode): """ Specify the DOM handling when only a part of the document is converted. This can affect the CSS rules used. mode - Allowed values are cut-out, remove-siblings, hide-siblings. return - The converter object. """ if not re.match('(?i)^(cut-out|remove-siblings|hide-siblings)$', mode): raise Error(create_invalid_value_message(mode, "setElementToConvertMode", "html-to-image", "Allowed values are cut-out, remove-siblings, hide-siblings.", "set_element_to_convert_mode"), 470); self.fields['element_to_convert_mode'] = get_utf8_string(mode) return self def setWaitForElement(self, selectors): """ Wait for the specified element in a source document. The element is specified by one or more CSS selectors. The element is searched for in the main document and all iframes. If the element is not found, the conversion fails. Your API license defines the maximum wait time by "Max Delay" parameter. selectors - One or more CSS selectors separated by commas. The string must not be empty. return - The converter object. """ if not (selectors): raise Error(create_invalid_value_message(selectors, "setWaitForElement", "html-to-image", "The string must not be empty.", "set_wait_for_element"), 470); self.fields['wait_for_element'] = get_utf8_string(selectors) return self def setScreenshotWidth(self, width): """ Set the output image width in pixels. width - The value must be in the range 96-65000. return - The converter object. """ if not (int(width) >= 96 and int(width) <= 65000): raise Error(create_invalid_value_message(width, "setScreenshotWidth", "html-to-image", "The value must be in the range 96-65000.", "set_screenshot_width"), 470); self.fields['screenshot_width'] = width return self def setScreenshotHeight(self, height): """ Set the output image height in pixels. If it is not specified, actual document height is used. height - Must be a positive integer number. return - The converter object. """ if not (int(height) > 0): raise Error(create_invalid_value_message(height, "setScreenshotHeight", "html-to-image", "Must be a positive integer number.", "set_screenshot_height"), 470); self.fields['screenshot_height'] = height return self def setScaleFactor(self, factor): """ Set the scaling factor (zoom) for the output image. factor - The percentage value. Must be a positive integer number. return - The converter object. """ if not (int(factor) > 0): raise Error(create_invalid_value_message(factor, "setScaleFactor", "html-to-image", "Must be a positive integer number.", "set_scale_factor"), 470); self.fields['scale_factor'] = factor return self def setBackgroundColor(self, color): """ The output image background color. color - The value must be in RRGGBB or RRGGBBAA hexadecimal format. return - The converter object. """ if not re.match('^[0-9a-fA-F]{6,8}$', color): raise Error(create_invalid_value_message(color, "setBackgroundColor", "html-to-image", "The value must be in RRGGBB or RRGGBBAA hexadecimal format.", "set_background_color"), 470); self.fields['background_color'] = get_utf8_string(color) return self def setDataString(self, data_string): """ Set the input data for template rendering. The data format can be JSON, XML, YAML or CSV. data_string - The input data string. return - The converter object. """ self.fields['data_string'] = get_utf8_string(data_string) return self def setDataFile(self, data_file): """ Load the input data for template rendering from the specified file. The data format can be JSON, XML, YAML or CSV. data_file - The file path to a local file containing the input data. return - The converter object. """ self.files['data_file'] = get_utf8_string(data_file) return self def setDataFormat(self, data_format): """ Specify the input data format. data_format - The data format. Allowed values are auto, json, xml, yaml, csv. return - The converter object. """ if not re.match('(?i)^(auto|json|xml|yaml|csv)$', data_format): raise Error(create_invalid_value_message(data_format, "setDataFormat", "html-to-image", "Allowed values are auto, json, xml, yaml, csv.", "set_data_format"), 470); self.fields['data_format'] = get_utf8_string(data_format) return self def setDataEncoding(self, encoding): """ Set the encoding of the data file set by setDataFile. encoding - The data file encoding. return - The converter object. """ self.fields['data_encoding'] = get_utf8_string(encoding) return self def setDataIgnoreUndefined(self, value): """ Ignore undefined variables in the HTML template. The default mode is strict so any undefined variable causes the conversion to fail. You can use {% if variable is defined %} to check if the variable is defined. value - Set to True to ignore undefined variables. return - The converter object. """ self.fields['data_ignore_undefined'] = value return self def setDataAutoEscape(self, value): """ Auto escape HTML symbols in the input data before placing them into the output. value - Set to True to turn auto escaping on. return - The converter object. """ self.fields['data_auto_escape'] = value return self def setDataTrimBlocks(self, value): """ Auto trim whitespace around each template command block. value - Set to True to turn auto trimming on. return - The converter object. """ self.fields['data_trim_blocks'] = value return self def setDataOptions(self, options): """ Set the advanced data options:csv_delimiter - The CSV data delimiter, the default is ,.xml_remove_root - Remove the root XML element from the input data.data_root - The name of the root element inserted into the input data without a root node (e.g. CSV), the default is data. options - Comma separated list of options. return - The converter object. """ self.fields['data_options'] = get_utf8_string(options) return self def setDebugLog(self, value): """ Turn on the debug logging. Details about the conversion are stored in the debug log. The URL of the log can be obtained from the getDebugLogUrl method or available in conversion statistics. value - Set to True to enable the debug logging. return - The converter object. """ self.fields['debug_log'] = value return self def getDebugLogUrl(self): """ Get the URL of the debug log for the last conversion. return - The link to the debug log. """ return self.helper.getDebugLogUrl() def getRemainingCreditCount(self): """ Get the number of conversion credits available in your account. This method can only be called after a call to one of the convertXYZ methods. The returned value can differ from the actual count if you run parallel conversions. The special value 999999 is returned if the information is not available. return - The number of credits. """ return self.helper.getRemainingCreditCount() def getConsumedCreditCount(self): """ Get the number of credits consumed by the last conversion. return - The number of credits. """ return self.helper.getConsumedCreditCount() def getJobId(self): """ Get the job id. return - The unique job identifier. """ return self.helper.getJobId() def getOutputSize(self): """ Get the size of the output in bytes. return - The count of bytes. """ return self.helper.getOutputSize() def getVersion(self): """ Get the version details. return - API version, converter version, and client version. """ return 'client {}, API v2, converter {}'.format(CLIENT_VERSION, self.helper.getConverterVersion()) def setTag(self, tag): """ Tag the conversion with a custom value. The tag is used in conversion statistics. A value longer than 32 characters is cut off. tag - A string with the custom tag. return - The converter object. """ self.fields['tag'] = get_utf8_string(tag) return self def setHttpProxy(self, proxy): """ A proxy server used by Pdfcrowd conversion process for accessing the source URLs with HTTP scheme. It can help to circumvent regional restrictions or provide limited access to your intranet. proxy - The value must have format DOMAIN_OR_IP_ADDRESS:PORT. return - The converter object. """ if not re.match('(?i)^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z0-9]{1,}:\d+$', proxy): raise Error(create_invalid_value_message(proxy, "setHttpProxy", "html-to-image", "The value must have format DOMAIN_OR_IP_ADDRESS:PORT.", "set_http_proxy"), 470); self.fields['http_proxy'] = get_utf8_string(proxy) return self def setHttpsProxy(self, proxy): """ A proxy server used by Pdfcrowd conversion process for accessing the source URLs with HTTPS scheme. It can help to circumvent regional restrictions or provide limited access to your intranet. proxy - The value must have format DOMAIN_OR_IP_ADDRESS:PORT. return - The converter object. """ if not re.match('(?i)^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z0-9]{1,}:\d+$', proxy): raise Error(create_invalid_value_message(proxy, "setHttpsProxy", "html-to-image", "The value must have format DOMAIN_OR_IP_ADDRESS:PORT.", "set_https_proxy"), 470); self.fields['https_proxy'] = get_utf8_string(proxy) return self def setClientCertificate(self, certificate): """ A client certificate to authenticate Pdfcrowd converter on your web server. The certificate is used for two-way SSL/TLS authentication and adds extra security. certificate - The file must be in PKCS12 format. The file must exist and not be empty. return - The converter object. """ if not (os.path.isfile(certificate) and os.path.getsize(certificate)): raise Error(create_invalid_value_message(certificate, "setClientCertificate", "html-to-image", "The file must exist and not be empty.", "set_client_certificate"), 470); self.files['client_certificate'] = get_utf8_string(certificate) return self def setClientCertificatePassword(self, password): """ A password for PKCS12 file with a client certificate if it is needed. password - return - The converter object. """ self.fields['client_certificate_password'] = get_utf8_string(password) return self def setConverterVersion(self, version): """ Set the converter version. Different versions may produce different output. Choose which one provides the best output for your case. version - The version identifier. Allowed values are latest, 20.10, 18.10. return - The converter object. """ if not re.match('(?i)^(latest|20.10|18.10)$', version): raise Error(create_invalid_value_message(version, "setConverterVersion", "html-to-image", "Allowed values are latest, 20.10, 18.10.", "set_converter_version"), 470); self.helper.setConverterVersion(version) return self def setUseHttp(self, value): """ Specifies if the client communicates over HTTP or HTTPS with Pdfcrowd API. Warning: Using HTTP is insecure as data sent over HTTP is not encrypted. Enable this option only if you know what you are doing. value - Set to True to use HTTP. return - The converter object. """ self.helper.setUseHttp(value) return self def setUserAgent(self, agent): """ Set a custom user agent HTTP header. It can be useful if you are behind some proxy or firewall. agent - The user agent string. return - The converter object. """ self.helper.setUserAgent(agent) return self def setProxy(self, host, port, user_name, password): """ Specifies an HTTP proxy that the API client library will use to connect to the internet. host - The proxy hostname. port - The proxy port. user_name - The username. password - The password. return - The converter object. """ self.helper.setProxy(host, port, user_name, password) return self def setRetryCount(self, count): """ Specifies the number of retries when the 502 HTTP status code is received. The 502 status code indicates a temporary network issue. This feature can be disabled by setting to 0. count - Number of retries wanted. return - The converter object. """ self.helper.setRetryCount(count) return self class ImageToImageClient: """ Conversion from one image format to another image format. """ def __init__(self, user_name, api_key): """ Constructor for the Pdfcrowd API client. user_name - Your username at Pdfcrowd. api_key - Your API key. """ self.helper = ConnectionHelper(user_name, api_key) self.fields = { 'input_format': 'image', 'output_format': 'png' } self.file_id = 1 self.files = {} self.raw_data = {} def convertUrl(self, url): """ Convert an image. url - The address of the image to convert. The supported protocols are http:// and https://. return - Byte array containing the conversion output. """ if not re.match('(?i)^https?://.*$', url): raise Error(create_invalid_value_message(url, "convertUrl", "image-to-image", "The supported protocols are http:// and https://.", "convert_url"), 470); self.fields['url'] = get_utf8_string(url) return self.helper.post(self.fields, self.files, self.raw_data) def convertUrlToStream(self, url, out_stream): """ Convert an image and write the result to an output stream. url - The address of the image to convert. The supported protocols are http:// and https://. out_stream - The output stream that will contain the conversion output. """ if not re.match('(?i)^https?://.*$', url): raise Error(create_invalid_value_message(url, "convertUrlToStream::url", "image-to-image", "The supported protocols are http:// and https://.", "convert_url_to_stream"), 470); self.fields['url'] = get_utf8_string(url) self.helper.post(self.fields, self.files, self.raw_data, out_stream) def convertUrlToFile(self, url, file_path): """ Convert an image and write the result to a local file. url - The address of the image to convert. The supported protocols are http:// and https://. file_path - The output file path. The string must not be empty. """ if not (file_path): raise Error(create_invalid_value_message(file_path, "convertUrlToFile::file_path", "image-to-image", "The string must not be empty.", "convert_url_to_file"), 470); output_file = open(file_path, 'wb') try: self.convertUrlToStream(url, output_file) output_file.close() except Error: output_file.close() os.remove(file_path) raise def convertFile(self, file): """ Convert a local file. file - The path to a local file to convert. The file must exist and not be empty. return - Byte array containing the conversion output. """ if not (os.path.isfile(file) and os.path.getsize(file)): raise Error(create_invalid_value_message(file, "convertFile", "image-to-image", "The file must exist and not be empty.", "convert_file"), 470); self.files['file'] = get_utf8_string(file) return self.helper.post(self.fields, self.files, self.raw_data) def convertFileToStream(self, file, out_stream): """ Convert a local file and write the result to an output stream. file - The path to a local file to convert. The file must exist and not be empty. out_stream - The output stream that will contain the conversion output. """ if not (os.path.isfile(file) and os.path.getsize(file)): raise Error(create_invalid_value_message(file, "convertFileToStream::file", "image-to-image", "The file must exist and not be empty.", "convert_file_to_stream"), 470); self.files['file'] = get_utf8_string(file) self.helper.post(self.fields, self.files, self.raw_data, out_stream) def convertFileToFile(self, file, file_path): """ Convert a local file and write the result to a local file. file - The path to a local file to convert. The file must exist and not be empty. file_path - The output file path. The string must not be empty. """ if not (file_path): raise Error(create_invalid_value_message(file_path, "convertFileToFile::file_path", "image-to-image", "The string must not be empty.", "convert_file_to_file"), 470); output_file = open(file_path, 'wb') try: self.convertFileToStream(file, output_file) output_file.close() except Error: output_file.close() os.remove(file_path) raise def convertRawData(self, data): """ Convert raw data. data - The raw content to be converted. return - Byte array with the output. """ self.raw_data['file'] = data return self.helper.post(self.fields, self.files, self.raw_data) def convertRawDataToStream(self, data, out_stream): """ Convert raw data and write the result to an output stream. data - The raw content to be converted. out_stream - The output stream that will contain the conversion output. """ self.raw_data['file'] = data self.helper.post(self.fields, self.files, self.raw_data, out_stream) def convertRawDataToFile(self, data, file_path): """ Convert raw data to a file. data - The raw content to be converted. file_path - The output file path. The string must not be empty. """ if not (file_path): raise Error(create_invalid_value_message(file_path, "convertRawDataToFile::file_path", "image-to-image", "The string must not be empty.", "convert_raw_data_to_file"), 470); output_file = open(file_path, 'wb') try: self.convertRawDataToStream(data, output_file) output_file.close() except Error: output_file.close() os.remove(file_path) raise def convertStream(self, in_stream): """ Convert the contents of an input stream. in_stream - The input stream with source data. return - Byte array containing the conversion output. """ self.raw_data['stream'] = in_stream.read() return self.helper.post(self.fields, self.files, self.raw_data) def convertStreamToStream(self, in_stream, out_stream): """ Convert the contents of an input stream and write the result to an output stream. in_stream - The input stream with source data. out_stream - The output stream that will contain the conversion output. """ self.raw_data['stream'] = in_stream.read() self.helper.post(self.fields, self.files, self.raw_data, out_stream) def convertStreamToFile(self, in_stream, file_path): """ Convert the contents of an input stream and write the result to a local file. in_stream - The input stream with source data. file_path - The output file path. The string must not be empty. """ if not (file_path): raise Error(create_invalid_value_message(file_path, "convertStreamToFile::file_path", "image-to-image", "The string must not be empty.", "convert_stream_to_file"), 470); output_file = open(file_path, 'wb') try: self.convertStreamToStream(in_stream, output_file) output_file.close() except Error: output_file.close() os.remove(file_path) raise def setOutputFormat(self, output_format): """ The format of the output file. output_format - Allowed values are png, jpg, gif, tiff, bmp, ico, ppm, pgm, pbm, pnm, psb, pct, ras, tga, sgi, sun, webp. return - The converter object. """ if not re.match('(?i)^(png|jpg|gif|tiff|bmp|ico|ppm|pgm|pbm|pnm|psb|pct|ras|tga|sgi|sun|webp)$', output_format): raise Error(create_invalid_value_message(output_format, "setOutputFormat", "image-to-image", "Allowed values are png, jpg, gif, tiff, bmp, ico, ppm, pgm, pbm, pnm, psb, pct, ras, tga, sgi, sun, webp.", "set_output_format"), 470); self.fields['output_format'] = get_utf8_string(output_format) return self def setResize(self, resize): """ Resize the image. resize - The resize percentage or new image dimensions. return - The converter object. """ self.fields['resize'] = get_utf8_string(resize) return self def setRotate(self, rotate): """ Rotate the image. rotate - The rotation specified in degrees. return - The converter object. """ self.fields['rotate'] = get_utf8_string(rotate) return self def setDebugLog(self, value): """ Turn on the debug logging. Details about the conversion are stored in the debug log. The URL of the log can be obtained from the getDebugLogUrl method or available in conversion statistics. value - Set to True to enable the debug logging. return - The converter object. """ self.fields['debug_log'] = value return self def getDebugLogUrl(self): """ Get the URL of the debug log for the last conversion. return - The link to the debug log. """ return self.helper.getDebugLogUrl() def getRemainingCreditCount(self): """ Get the number of conversion credits available in your account. This method can only be called after a call to one of the convertXYZ methods. The returned value can differ from the actual count if you run parallel conversions. The special value 999999 is returned if the information is not available. return - The number of credits. """ return self.helper.getRemainingCreditCount() def getConsumedCreditCount(self): """ Get the number of credits consumed by the last conversion. return - The number of credits. """ return self.helper.getConsumedCreditCount() def getJobId(self): """ Get the job id. return - The unique job identifier. """ return self.helper.getJobId() def getOutputSize(self): """ Get the size of the output in bytes. return - The count of bytes. """ return self.helper.getOutputSize() def getVersion(self): """ Get the version details. return - API version, converter version, and client version. """ return 'client {}, API v2, converter {}'.format(CLIENT_VERSION, self.helper.getConverterVersion()) def setTag(self, tag): """ Tag the conversion with a custom value. The tag is used in conversion statistics. A value longer than 32 characters is cut off. tag - A string with the custom tag. return - The converter object. """ self.fields['tag'] = get_utf8_string(tag) return self def setHttpProxy(self, proxy): """ A proxy server used by Pdfcrowd conversion process for accessing the source URLs with HTTP scheme. It can help to circumvent regional restrictions or provide limited access to your intranet. proxy - The value must have format DOMAIN_OR_IP_ADDRESS:PORT. return - The converter object. """ if not re.match('(?i)^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z0-9]{1,}:\d+$', proxy): raise Error(create_invalid_value_message(proxy, "setHttpProxy", "image-to-image", "The value must have format DOMAIN_OR_IP_ADDRESS:PORT.", "set_http_proxy"), 470); self.fields['http_proxy'] = get_utf8_string(proxy) return self def setHttpsProxy(self, proxy): """ A proxy server used by Pdfcrowd conversion process for accessing the source URLs with HTTPS scheme. It can help to circumvent regional restrictions or provide limited access to your intranet. proxy - The value must have format DOMAIN_OR_IP_ADDRESS:PORT. return - The converter object. """ if not re.match('(?i)^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z0-9]{1,}:\d+$', proxy): raise Error(create_invalid_value_message(proxy, "setHttpsProxy", "image-to-image", "The value must have format DOMAIN_OR_IP_ADDRESS:PORT.", "set_https_proxy"), 470); self.fields['https_proxy'] = get_utf8_string(proxy) return self def setConverterVersion(self, version): """ Set the converter version. Different versions may produce different output. Choose which one provides the best output for your case. version - The version identifier. Allowed values are latest, 20.10, 18.10. return - The converter object. """ if not re.match('(?i)^(latest|20.10|18.10)$', version): raise Error(create_invalid_value_message(version, "setConverterVersion", "image-to-image", "Allowed values are latest, 20.10, 18.10.", "set_converter_version"), 470); self.helper.setConverterVersion(version) return self def setUseHttp(self, value): """ Specifies if the client communicates over HTTP or HTTPS with Pdfcrowd API. Warning: Using HTTP is insecure as data sent over HTTP is not encrypted. Enable this option only if you know what you are doing. value - Set to True to use HTTP. return - The converter object. """ self.helper.setUseHttp(value) return self def setUserAgent(self, agent): """ Set a custom user agent HTTP header. It can be useful if you are behind some proxy or firewall. agent - The user agent string. return - The converter object. """ self.helper.setUserAgent(agent) return self def setProxy(self, host, port, user_name, password): """ Specifies an HTTP proxy that the API client library will use to connect to the internet. host - The proxy hostname. port - The proxy port. user_name - The username. password - The password. return - The converter object. """ self.helper.setProxy(host, port, user_name, password) return self def setRetryCount(self, count): """ Specifies the number of retries when the 502 HTTP status code is received. The 502 status code indicates a temporary network issue. This feature can be disabled by setting to 0. count - Number of retries wanted. return - The converter object. """ self.helper.setRetryCount(count) return self class PdfToPdfClient: """ Conversion from PDF to PDF. """ def __init__(self, user_name, api_key): """ Constructor for the Pdfcrowd API client. user_name - Your username at Pdfcrowd. api_key - Your API key. """ self.helper = ConnectionHelper(user_name, api_key) self.fields = { 'input_format': 'pdf', 'output_format': 'pdf' } self.file_id = 1 self.files = {} self.raw_data = {} def setAction(self, action): """ Specifies the action to be performed on the input PDFs. action - Allowed values are join, shuffle. return - The converter object. """ if not re.match('(?i)^(join|shuffle)$', action): raise Error(create_invalid_value_message(action, "setAction", "pdf-to-pdf", "Allowed values are join, shuffle.", "set_action"), 470); self.fields['action'] = get_utf8_string(action) return self def convert(self): """ Perform an action on the input files. return - Byte array containing the output PDF. """ return self.helper.post(self.fields, self.files, self.raw_data) def convertToStream(self, out_stream): """ Perform an action on the input files and write the output PDF to an output stream. out_stream - The output stream that will contain the output PDF. """ self.helper.post(self.fields, self.files, self.raw_data, out_stream) def convertToFile(self, file_path): """ Perform an action on the input files and write the output PDF to a file. file_path - The output file path. The string must not be empty. """ if not (file_path): raise Error(create_invalid_value_message(file_path, "convertToFile", "pdf-to-pdf", "The string must not be empty.", "convert_to_file"), 470); output_file = open(file_path, 'wb') self.convertToStream(output_file) output_file.close() def addPdfFile(self, file_path): """ Add a PDF file to the list of the input PDFs. file_path - The file path to a local PDF file. The file must exist and not be empty. return - The converter object. """ if not (os.path.isfile(file_path) and os.path.getsize(file_path)): raise Error(create_invalid_value_message(file_path, "addPdfFile", "pdf-to-pdf", "The file must exist and not be empty.", "add_pdf_file"), 470); self.files['f_{}'.format(self.file_id)] = file_path self.file_id += 1 return self def addPdfRawData(self, data): """ Add in-memory raw PDF data to the list of the input PDFs.Typical usage is for adding PDF created by another Pdfcrowd converter. Example in PHP: $clientPdf2Pdf->addPdfRawData($clientHtml2Pdf->convertUrl('http://www.example.com')); data - The raw PDF data. The input data must be PDF content. return - The converter object. """ if not (data and len(data) > 300 and (data[0:4] == '%PDF' or data[0:4] == u'%PDF' or data[0:4] == b'%PDF')): raise Error(create_invalid_value_message("raw PDF data", "addPdfRawData", "pdf-to-pdf", "The input data must be PDF content.", "add_pdf_raw_data"), 470); self.raw_data['f_{}'.format(self.file_id)] = data self.file_id += 1 return self def setPageWatermark(self, watermark): """ Apply the first page of the watermark PDF to every page of the output PDF. watermark - The file path to a local watermark PDF file. The file must exist and not be empty. return - The converter object. """ if not (os.path.isfile(watermark) and os.path.getsize(watermark)): raise Error(create_invalid_value_message(watermark, "setPageWatermark", "pdf-to-pdf", "The file must exist and not be empty.", "set_page_watermark"), 470); self.files['page_watermark'] = get_utf8_string(watermark) return self def setPageWatermarkUrl(self, url): """ Load a watermark PDF from the specified URL and apply the first page of the watermark PDF to every page of the output PDF. url - The supported protocols are http:// and https://. return - The converter object. """ if not re.match('(?i)^https?://.*$', url): raise Error(create_invalid_value_message(url, "setPageWatermarkUrl", "pdf-to-pdf", "The supported protocols are http:// and https://.", "set_page_watermark_url"), 470); self.fields['page_watermark_url'] = get_utf8_string(url) return self def setMultipageWatermark(self, watermark): """ Apply each page of the specified watermark PDF to the corresponding page of the output PDF. watermark - The file path to a local watermark PDF file. The file must exist and not be empty. return - The converter object. """ if not (os.path.isfile(watermark) and os.path.getsize(watermark)): raise Error(create_invalid_value_message(watermark, "setMultipageWatermark", "pdf-to-pdf", "The file must exist and not be empty.", "set_multipage_watermark"), 470); self.files['multipage_watermark'] = get_utf8_string(watermark) return self def setMultipageWatermarkUrl(self, url): """ Load a watermark PDF from the specified URL and apply each page of the specified watermark PDF to the corresponding page of the output PDF. url - The supported protocols are http:// and https://. return - The converter object. """ if not re.match('(?i)^https?://.*$', url): raise Error(create_invalid_value_message(url, "setMultipageWatermarkUrl", "pdf-to-pdf", "The supported protocols are http:// and https://.", "set_multipage_watermark_url"), 470); self.fields['multipage_watermark_url'] = get_utf8_string(url) return self def setPageBackground(self, background): """ Apply the first page of the specified PDF to the background of every page of the output PDF. background - The file path to a local background PDF file. The file must exist and not be empty. return - The converter object. """ if not (os.path.isfile(background) and os.path.getsize(background)): raise Error(create_invalid_value_message(background, "setPageBackground", "pdf-to-pdf", "The file must exist and not be empty.", "set_page_background"), 470); self.files['page_background'] = get_utf8_string(background) return self def setPageBackgroundUrl(self, url): """ Load a background PDF from the specified URL and apply the first page of the background PDF to every page of the output PDF. url - The supported protocols are http:// and https://. return - The converter object. """ if not re.match('(?i)^https?://.*$', url): raise Error(create_invalid_value_message(url, "setPageBackgroundUrl", "pdf-to-pdf", "The supported protocols are http:// and https://.", "set_page_background_url"), 470); self.fields['page_background_url'] = get_utf8_string(url) return self def setMultipageBackground(self, background): """ Apply each page of the specified PDF to the background of the corresponding page of the output PDF. background - The file path to a local background PDF file. The file must exist and not be empty. return - The converter object. """ if not (os.path.isfile(background) and os.path.getsize(background)): raise Error(create_invalid_value_message(background, "setMultipageBackground", "pdf-to-pdf", "The file must exist and not be empty.", "set_multipage_background"), 470); self.files['multipage_background'] = get_utf8_string(background) return self def setMultipageBackgroundUrl(self, url): """ Load a background PDF from the specified URL and apply each page of the specified background PDF to the corresponding page of the output PDF. url - The supported protocols are http:// and https://. return - The converter object. """ if not re.match('(?i)^https?://.*$', url): raise Error(create_invalid_value_message(url, "setMultipageBackgroundUrl", "pdf-to-pdf", "The supported protocols are http:// and https://.", "set_multipage_background_url"), 470); self.fields['multipage_background_url'] = get_utf8_string(url) return self def setLinearize(self, value): """ Create linearized PDF. This is also known as Fast Web View. value - Set to True to create linearized PDF. return - The converter object. """ self.fields['linearize'] = value return self def setEncrypt(self, value): """ Encrypt the PDF. This prevents search engines from indexing the contents. value - Set to True to enable PDF encryption. return - The converter object. """ self.fields['encrypt'] = value return self def setUserPassword(self, password): """ Protect the PDF with a user password. When a PDF has a user password, it must be supplied in order to view the document and to perform operations allowed by the access permissions. password - The user password. return - The converter object. """ self.fields['user_password'] = get_utf8_string(password) return self def setOwnerPassword(self, password): """ Protect the PDF with an owner password. Supplying an owner password grants unlimited access to the PDF including changing the passwords and access permissions. password - The owner password. return - The converter object. """ self.fields['owner_password'] = get_utf8_string(password) return self def setNoPrint(self, value): """ Disallow printing of the output PDF. value - Set to True to set the no-print flag in the output PDF. return - The converter object. """ self.fields['no_print'] = value return self def setNoModify(self, value): """ Disallow modification of the output PDF. value - Set to True to set the read-only only flag in the output PDF. return - The converter object. """ self.fields['no_modify'] = value return self def setNoCopy(self, value): """ Disallow text and graphics extraction from the output PDF. value - Set to True to set the no-copy flag in the output PDF. return - The converter object. """ self.fields['no_copy'] = value return self def setTitle(self, title): """ Set the title of the PDF. title - The title. return - The converter object. """ self.fields['title'] = get_utf8_string(title) return self def setSubject(self, subject): """ Set the subject of the PDF. subject - The subject. return - The converter object. """ self.fields['subject'] = get_utf8_string(subject) return self def setAuthor(self, author): """ Set the author of the PDF. author - The author. return - The converter object. """ self.fields['author'] = get_utf8_string(author) return self def setKeywords(self, keywords): """ Associate keywords with the document. keywords - The string with the keywords. return - The converter object. """ self.fields['keywords'] = get_utf8_string(keywords) return self def setUseMetadataFrom(self, index): """ Use metadata (title, subject, author and keywords) from the n-th input PDF. index - Set the index of the input PDF file from which to use the metadata. 0 means no metadata. Must be a positive integer number or 0. return - The converter object. """ if not (int(index) >= 0): raise Error(create_invalid_value_message(index, "setUseMetadataFrom", "pdf-to-pdf", "Must be a positive integer number or 0.", "set_use_metadata_from"), 470); self.fields['use_metadata_from'] = index return self def setPageLayout(self, layout): """ Specify the page layout to be used when the document is opened. layout - Allowed values are single-page, one-column, two-column-left, two-column-right. return - The converter object. """ if not re.match('(?i)^(single-page|one-column|two-column-left|two-column-right)$', layout): raise Error(create_invalid_value_message(layout, "setPageLayout", "pdf-to-pdf", "Allowed values are single-page, one-column, two-column-left, two-column-right.", "set_page_layout"), 470); self.fields['page_layout'] = get_utf8_string(layout) return self def setPageMode(self, mode): """ Specify how the document should be displayed when opened. mode - Allowed values are full-screen, thumbnails, outlines. return - The converter object. """ if not re.match('(?i)^(full-screen|thumbnails|outlines)$', mode): raise Error(create_invalid_value_message(mode, "setPageMode", "pdf-to-pdf", "Allowed values are full-screen, thumbnails, outlines.", "set_page_mode"), 470); self.fields['page_mode'] = get_utf8_string(mode) return self def setInitialZoomType(self, zoom_type): """ Specify how the page should be displayed when opened. zoom_type - Allowed values are fit-width, fit-height, fit-page. return - The converter object. """ if not re.match('(?i)^(fit-width|fit-height|fit-page)$', zoom_type): raise Error(create_invalid_value_message(zoom_type, "setInitialZoomType", "pdf-to-pdf", "Allowed values are fit-width, fit-height, fit-page.", "set_initial_zoom_type"), 470); self.fields['initial_zoom_type'] = get_utf8_string(zoom_type) return self def setInitialPage(self, page): """ Display the specified page when the document is opened. page - Must be a positive integer number. return - The converter object. """ if not (int(page) > 0): raise Error(create_invalid_value_message(page, "setInitialPage", "pdf-to-pdf", "Must be a positive integer number.", "set_initial_page"), 470); self.fields['initial_page'] = page return self def setInitialZoom(self, zoom): """ Specify the initial page zoom in percents when the document is opened. zoom - Must be a positive integer number. return - The converter object. """ if not (int(zoom) > 0): raise Error(create_invalid_value_message(zoom, "setInitialZoom", "pdf-to-pdf", "Must be a positive integer number.", "set_initial_zoom"), 470); self.fields['initial_zoom'] = zoom return self def setHideToolbar(self, value): """ Specify whether to hide the viewer application's tool bars when the document is active. value - Set to True to hide tool bars. return - The converter object. """ self.fields['hide_toolbar'] = value return self def setHideMenubar(self, value): """ Specify whether to hide the viewer application's menu bar when the document is active. value - Set to True to hide the menu bar. return - The converter object. """ self.fields['hide_menubar'] = value return self def setHideWindowUi(self, value): """ Specify whether to hide user interface elements in the document's window (such as scroll bars and navigation controls), leaving only the document's contents displayed. value - Set to True to hide ui elements. return - The converter object. """ self.fields['hide_window_ui'] = value return self def setFitWindow(self, value): """ Specify whether to resize the document's window to fit the size of the first displayed page. value - Set to True to resize the window. return - The converter object. """ self.fields['fit_window'] = value return self def setCenterWindow(self, value): """ Specify whether to position the document's window in the center of the screen. value - Set to True to center the window. return - The converter object. """ self.fields['center_window'] = value return self def setDisplayTitle(self, value): """ Specify whether the window's title bar should display the document title. If false , the title bar should instead display the name of the PDF file containing the document. value - Set to True to display the title. return - The converter object. """ self.fields['display_title'] = value return self def setRightToLeft(self, value): """ Set the predominant reading order for text to right-to-left. This option has no direct effect on the document's contents or page numbering but can be used to determine the relative positioning of pages when displayed side by side or printed n-up value - Set to True to set right-to-left reading order. return - The converter object. """ self.fields['right_to_left'] = value return self def setDebugLog(self, value): """ Turn on the debug logging. Details about the conversion are stored in the debug log. The URL of the log can be obtained from the getDebugLogUrl method or available in conversion statistics. value - Set to True to enable the debug logging. return - The converter object. """ self.fields['debug_log'] = value return self def getDebugLogUrl(self): """ Get the URL of the debug log for the last conversion. return - The link to the debug log. """ return self.helper.getDebugLogUrl() def getRemainingCreditCount(self): """ Get the number of conversion credits available in your account. This method can only be called after a call to one of the convertXYZ methods. The returned value can differ from the actual count if you run parallel conversions. The special value 999999 is returned if the information is not available. return - The number of credits. """ return self.helper.getRemainingCreditCount() def getConsumedCreditCount(self): """ Get the number of credits consumed by the last conversion. return - The number of credits. """ return self.helper.getConsumedCreditCount() def getJobId(self): """ Get the job id. return - The unique job identifier. """ return self.helper.getJobId() def getPageCount(self): """ Get the total number of pages in the output document. return - The page count. """ return self.helper.getPageCount() def getOutputSize(self): """ Get the size of the output in bytes. return - The count of bytes. """ return self.helper.getOutputSize() def getVersion(self): """ Get the version details. return - API version, converter version, and client version. """ return 'client {}, API v2, converter {}'.format(CLIENT_VERSION, self.helper.getConverterVersion()) def setTag(self, tag): """ Tag the conversion with a custom value. The tag is used in conversion statistics. A value longer than 32 characters is cut off. tag - A string with the custom tag. return - The converter object. """ self.fields['tag'] = get_utf8_string(tag) return self def setConverterVersion(self, version): """ Set the converter version. Different versions may produce different output. Choose which one provides the best output for your case. version - The version identifier. Allowed values are latest, 20.10, 18.10. return - The converter object. """ if not re.match('(?i)^(latest|20.10|18.10)$', version): raise Error(create_invalid_value_message(version, "setConverterVersion", "pdf-to-pdf", "Allowed values are latest, 20.10, 18.10.", "set_converter_version"), 470); self.helper.setConverterVersion(version) return self def setUseHttp(self, value): """ Specifies if the client communicates over HTTP or HTTPS with Pdfcrowd API. Warning: Using HTTP is insecure as data sent over HTTP is not encrypted. Enable this option only if you know what you are doing. value - Set to True to use HTTP. return - The converter object. """ self.helper.setUseHttp(value) return self def setUserAgent(self, agent): """ Set a custom user agent HTTP header. It can be useful if you are behind some proxy or firewall. agent - The user agent string. return - The converter object. """ self.helper.setUserAgent(agent) return self def setProxy(self, host, port, user_name, password): """ Specifies an HTTP proxy that the API client library will use to connect to the internet. host - The proxy hostname. port - The proxy port. user_name - The username. password - The password. return - The converter object. """ self.helper.setProxy(host, port, user_name, password) return self def setRetryCount(self, count): """ Specifies the number of retries when the 502 HTTP status code is received. The 502 status code indicates a temporary network issue. This feature can be disabled by setting to 0. count - Number of retries wanted. return - The converter object. """ self.helper.setRetryCount(count) return self class ImageToPdfClient: """ Conversion from an image to PDF. """ def __init__(self, user_name, api_key): """ Constructor for the Pdfcrowd API client. user_name - Your username at Pdfcrowd. api_key - Your API key. """ self.helper = ConnectionHelper(user_name, api_key) self.fields = { 'input_format': 'image', 'output_format': 'pdf' } self.file_id = 1 self.files = {} self.raw_data = {} def convertUrl(self, url): """ Convert an image. url - The address of the image to convert. The supported protocols are http:// and https://. return - Byte array containing the conversion output. """ if not re.match('(?i)^https?://.*$', url): raise Error(create_invalid_value_message(url, "convertUrl", "image-to-pdf", "The supported protocols are http:// and https://.", "convert_url"), 470); self.fields['url'] = get_utf8_string(url) return self.helper.post(self.fields, self.files, self.raw_data) def convertUrlToStream(self, url, out_stream): """ Convert an image and write the result to an output stream. url - The address of the image to convert. The supported protocols are http:// and https://. out_stream - The output stream that will contain the conversion output. """ if not re.match('(?i)^https?://.*$', url): raise Error(create_invalid_value_message(url, "convertUrlToStream::url", "image-to-pdf", "The supported protocols are http:// and https://.", "convert_url_to_stream"), 470); self.fields['url'] = get_utf8_string(url) self.helper.post(self.fields, self.files, self.raw_data, out_stream) def convertUrlToFile(self, url, file_path): """ Convert an image and write the result to a local file. url - The address of the image to convert. The supported protocols are http:// and https://. file_path - The output file path. The string must not be empty. """ if not (file_path): raise Error(create_invalid_value_message(file_path, "convertUrlToFile::file_path", "image-to-pdf", "The string must not be empty.", "convert_url_to_file"), 470); output_file = open(file_path, 'wb') try: self.convertUrlToStream(url, output_file) output_file.close() except Error: output_file.close() os.remove(file_path) raise def convertFile(self, file): """ Convert a local file. file - The path to a local file to convert. The file must exist and not be empty. return - Byte array containing the conversion output. """ if not (os.path.isfile(file) and os.path.getsize(file)): raise Error(create_invalid_value_message(file, "convertFile", "image-to-pdf", "The file must exist and not be empty.", "convert_file"), 470); self.files['file'] = get_utf8_string(file) return self.helper.post(self.fields, self.files, self.raw_data) def convertFileToStream(self, file, out_stream): """ Convert a local file and write the result to an output stream. file - The path to a local file to convert. The file must exist and not be empty. out_stream - The output stream that will contain the conversion output. """ if not (os.path.isfile(file) and os.path.getsize(file)): raise Error(create_invalid_value_message(file, "convertFileToStream::file", "image-to-pdf", "The file must exist and not be empty.", "convert_file_to_stream"), 470); self.files['file'] = get_utf8_string(file) self.helper.post(self.fields, self.files, self.raw_data, out_stream) def convertFileToFile(self, file, file_path): """ Convert a local file and write the result to a local file. file - The path to a local file to convert. The file must exist and not be empty. file_path - The output file path. The string must not be empty. """ if not (file_path): raise Error(create_invalid_value_message(file_path, "convertFileToFile::file_path", "image-to-pdf", "The string must not be empty.", "convert_file_to_file"), 470); output_file = open(file_path, 'wb') try: self.convertFileToStream(file, output_file) output_file.close() except Error: output_file.close() os.remove(file_path) raise def convertRawData(self, data): """ Convert raw data. data - The raw content to be converted. return - Byte array with the output. """ self.raw_data['file'] = data return self.helper.post(self.fields, self.files, self.raw_data) def convertRawDataToStream(self, data, out_stream): """ Convert raw data and write the result to an output stream. data - The raw content to be converted. out_stream - The output stream that will contain the conversion output. """ self.raw_data['file'] = data self.helper.post(self.fields, self.files, self.raw_data, out_stream) def convertRawDataToFile(self, data, file_path): """ Convert raw data to a file. data - The raw content to be converted. file_path - The output file path. The string must not be empty. """ if not (file_path): raise Error(create_invalid_value_message(file_path, "convertRawDataToFile::file_path", "image-to-pdf", "The string must not be empty.", "convert_raw_data_to_file"), 470); output_file = open(file_path, 'wb') try: self.convertRawDataToStream(data, output_file) output_file.close() except Error: output_file.close() os.remove(file_path) raise def convertStream(self, in_stream): """ Convert the contents of an input stream. in_stream - The input stream with source data. return - Byte array containing the conversion output. """ self.raw_data['stream'] = in_stream.read() return self.helper.post(self.fields, self.files, self.raw_data) def convertStreamToStream(self, in_stream, out_stream): """ Convert the contents of an input stream and write the result to an output stream. in_stream - The input stream with source data. out_stream - The output stream that will contain the conversion output. """ self.raw_data['stream'] = in_stream.read() self.helper.post(self.fields, self.files, self.raw_data, out_stream) def convertStreamToFile(self, in_stream, file_path): """ Convert the contents of an input stream and write the result to a local file. in_stream - The input stream with source data. file_path - The output file path. The string must not be empty. """ if not (file_path): raise Error(create_invalid_value_message(file_path, "convertStreamToFile::file_path", "image-to-pdf", "The string must not be empty.", "convert_stream_to_file"), 470); output_file = open(file_path, 'wb') try: self.convertStreamToStream(in_stream, output_file) output_file.close() except Error: output_file.close() os.remove(file_path) raise def setResize(self, resize): """ Resize the image. resize - The resize percentage or new image dimensions. return - The converter object. """ self.fields['resize'] = get_utf8_string(resize) return self def setRotate(self, rotate): """ Rotate the image. rotate - The rotation specified in degrees. return - The converter object. """ self.fields['rotate'] = get_utf8_string(rotate) return self def setDebugLog(self, value): """ Turn on the debug logging. Details about the conversion are stored in the debug log. The URL of the log can be obtained from the getDebugLogUrl method or available in conversion statistics. value - Set to True to enable the debug logging. return - The converter object. """ self.fields['debug_log'] = value return self def getDebugLogUrl(self): """ Get the URL of the debug log for the last conversion. return - The link to the debug log. """ return self.helper.getDebugLogUrl() def getRemainingCreditCount(self): """ Get the number of conversion credits available in your account. This method can only be called after a call to one of the convertXYZ methods. The returned value can differ from the actual count if you run parallel conversions. The special value 999999 is returned if the information is not available. return - The number of credits. """ return self.helper.getRemainingCreditCount() def getConsumedCreditCount(self): """ Get the number of credits consumed by the last conversion. return - The number of credits. """ return self.helper.getConsumedCreditCount() def getJobId(self): """ Get the job id. return - The unique job identifier. """ return self.helper.getJobId() def getOutputSize(self): """ Get the size of the output in bytes. return - The count of bytes. """ return self.helper.getOutputSize() def getVersion(self): """ Get the version details. return - API version, converter version, and client version. """ return 'client {}, API v2, converter {}'.format(CLIENT_VERSION, self.helper.getConverterVersion()) def setTag(self, tag): """ Tag the conversion with a custom value. The tag is used in conversion statistics. A value longer than 32 characters is cut off. tag - A string with the custom tag. return - The converter object. """ self.fields['tag'] = get_utf8_string(tag) return self def setHttpProxy(self, proxy): """ A proxy server used by Pdfcrowd conversion process for accessing the source URLs with HTTP scheme. It can help to circumvent regional restrictions or provide limited access to your intranet. proxy - The value must have format DOMAIN_OR_IP_ADDRESS:PORT. return - The converter object. """ if not re.match('(?i)^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z0-9]{1,}:\d+$', proxy): raise Error(create_invalid_value_message(proxy, "setHttpProxy", "image-to-pdf", "The value must have format DOMAIN_OR_IP_ADDRESS:PORT.", "set_http_proxy"), 470); self.fields['http_proxy'] = get_utf8_string(proxy) return self def setHttpsProxy(self, proxy): """ A proxy server used by Pdfcrowd conversion process for accessing the source URLs with HTTPS scheme. It can help to circumvent regional restrictions or provide limited access to your intranet. proxy - The value must have format DOMAIN_OR_IP_ADDRESS:PORT. return - The converter object. """ if not re.match('(?i)^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z0-9]{1,}:\d+$', proxy): raise Error(create_invalid_value_message(proxy, "setHttpsProxy", "image-to-pdf", "The value must have format DOMAIN_OR_IP_ADDRESS:PORT.", "set_https_proxy"), 470); self.fields['https_proxy'] = get_utf8_string(proxy) return self def setConverterVersion(self, version): """ Set the converter version. Different versions may produce different output. Choose which one provides the best output for your case. version - The version identifier. Allowed values are latest, 20.10, 18.10. return - The converter object. """ if not re.match('(?i)^(latest|20.10|18.10)$', version): raise Error(create_invalid_value_message(version, "setConverterVersion", "image-to-pdf", "Allowed values are latest, 20.10, 18.10.", "set_converter_version"), 470); self.helper.setConverterVersion(version) return self def setUseHttp(self, value): """ Specifies if the client communicates over HTTP or HTTPS with Pdfcrowd API. Warning: Using HTTP is insecure as data sent over HTTP is not encrypted. Enable this option only if you know what you are doing. value - Set to True to use HTTP. return - The converter object. """ self.helper.setUseHttp(value) return self def setUserAgent(self, agent): """ Set a custom user agent HTTP header. It can be useful if you are behind some proxy or firewall. agent - The user agent string. return - The converter object. """ self.helper.setUserAgent(agent) return self def setProxy(self, host, port, user_name, password): """ Specifies an HTTP proxy that the API client library will use to connect to the internet. host - The proxy hostname. port - The proxy port. user_name - The username. password - The password. return - The converter object. """ self.helper.setProxy(host, port, user_name, password) return self def setRetryCount(self, count): """ Specifies the number of retries when the 502 HTTP status code is received. The 502 status code indicates a temporary network issue. This feature can be disabled by setting to 0. count - Number of retries wanted. return - The converter object. """ self.helper.setRetryCount(count) return self def main(argv, converter_known = False): def show_help(): print(""" usage: pdfcrowd.py <converter> [options] [args] help: pdfcrowd.py help <converter> available converters: html2pdf - Conversion from HTML to PDF. html2image - Conversion from HTML to image. image2image - Conversion from one image format to another image format. pdf2pdf - Conversion from PDF to PDF. image2pdf - Conversion from an image to PDF. """) def term_error(message): sys.stderr.write(message + '\n') sys.exit(1) def add_generic_args(parser, nsource = 1): parser.add_argument('source', help = "Source to be converted. It can be URL, path to a local file or '-' to use stdin as an input text." if nsource == 1 else "Input files used for a conversion.", nargs = nsource) parser.add_argument('-user-name', help = 'Your user name at pdfcrowd.com.') parser.add_argument('-api-key', help = 'Your API key at pdfcrowd.com.') if not len(argv): show_help() sys.exit() help_wanted = False converter = argv[0] if len(argv) == 1: if argv[0] == 'help': show_help() sys.exit() help_wanted = True elif argv[0] == 'help': converter = argv[1] help_wanted = True parser = None usage = '%(prog)s' if not converter_known: usage += ' ' + converter usage += ' [options] source' epilog = 'produced by: www.pdfcrowd.com' multi_args = {} if converter == 'html2pdf': converter_name = 'HtmlToPdfClient' parser = argparse.ArgumentParser(usage = usage, description = 'Conversion from HTML to PDF.', add_help = False, epilog = epilog) add_generic_args(parser) parser.add_argument('-zip-main-filename', help = 'Set the file name of the main HTML document stored in the input archive. If not specified, the first HTML file in the archive is used for conversion. Use this method if the input archive contains multiple HTML documents. The file name.' ) parser.add_argument('-page-size', help = 'Set the output page size. Allowed values are A0, A1, A2, A3, A4, A5, A6, Letter. Default is A4.' ) parser.add_argument('-page-width', help = 'Set the output page width. The safe maximum is 200in otherwise some PDF viewers may be unable to open the PDF. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). Default is 8.27in.' ) parser.add_argument('-page-height', help = 'Set the output page height. Use -1 for a single page PDF. The safe maximum is 200in otherwise some PDF viewers may be unable to open the PDF. Can be -1 or specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). Default is 11.7in.' ) multi_args['page_dimensions'] = 2 parser.add_argument('-page-dimensions', help = 'Set the output page dimensions. PAGE_DIMENSIONS must contain 2 values separated by a semicolon. Set the output page width. The safe maximum is 200in otherwise some PDF viewers may be unable to open the PDF. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). Set the output page height. Use -1 for a single page PDF. The safe maximum is 200in otherwise some PDF viewers may be unable to open the PDF. Can be -1 or specified in inches (in), millimeters (mm), centimeters (cm), or points (pt).' ) parser.add_argument('-orientation', help = 'Set the output page orientation. Allowed values are landscape, portrait. Default is portrait.' ) parser.add_argument('-margin-top', help = 'Set the output page top margin. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). Default is 0.4in.' ) parser.add_argument('-margin-right', help = 'Set the output page right margin. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). Default is 0.4in.' ) parser.add_argument('-margin-bottom', help = 'Set the output page bottom margin. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). Default is 0.4in.' ) parser.add_argument('-margin-left', help = 'Set the output page left margin. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). Default is 0.4in.' ) parser.add_argument('-no-margins', action = 'store_true', help = 'Disable page margins.' ) multi_args['page_margins'] = 4 parser.add_argument('-page-margins', help = 'Set the output page margins. PAGE_MARGINS must contain 4 values separated by a semicolon. Set the output page top margin. Set the output page right margin. Set the output page bottom margin. Set the output page left margin. All values can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt).' ) parser.add_argument('-print-page-range', help = 'Set the page range to print. A comma separated list of page numbers or ranges.' ) parser.add_argument('-page-numbering-offset', help = 'Set an offset between physical and logical page numbers. Integer specifying page offset.' ) parser.add_argument('-content-area-x', help = 'Set the top left X coordinate of the content area. It is relative to the top left X coordinate of the print area. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). It may contain a negative value. Default is 0in.' ) parser.add_argument('-content-area-y', help = 'Set the top left Y coordinate of the content area. It is relative to the top left Y coordinate of the print area. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). It may contain a negative value. Default is 0in.' ) parser.add_argument('-content-area-width', help = 'Set the width of the content area. It should be at least 1 inch. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). Default is The width of the print area..' ) parser.add_argument('-content-area-height', help = 'Set the height of the content area. It should be at least 1 inch. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). Default is The height of the print area..' ) multi_args['content_area'] = 4 parser.add_argument('-content-area', help = 'Set the content area position and size. The content area enables to specify a web page area to be converted. CONTENT_AREA must contain 4 values separated by a semicolon. Set the top left X coordinate of the content area. It is relative to the top left X coordinate of the print area. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). It may contain a negative value. Set the top left Y coordinate of the content area. It is relative to the top left Y coordinate of the print area. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). It may contain a negative value. Set the width of the content area. It should be at least 1 inch. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). Set the height of the content area. It should be at least 1 inch. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt).' ) parser.add_argument('-css-page-rule-mode', help = 'Specifies behavior in presence of CSS @page rules. It may affect the page size, margins and orientation. The page rule mode. Allowed values are default, mode1, mode2. Default is default.' ) parser.add_argument('-header-url', help = 'Load an HTML code from the specified URL and use it as the page header. The following classes can be used in the HTML. The content of the respective elements will be expanded as follows: pdfcrowd-page-count - the total page count of printed pages pdfcrowd-page-number - the current page number pdfcrowd-source-url - the source URL of a converted document The following attributes can be used: data-pdfcrowd-number-format - specifies the type of the used numerals. Allowed values: arabic - Arabic numerals, they are used by default roman - Roman numerals eastern-arabic - Eastern Arabic numerals bengali - Bengali numerals devanagari - Devanagari numerals thai - Thai numerals east-asia - Chinese, Vietnamese, Japanese and Korean numerals chinese-formal - Chinese formal numerals Please contact us if you need another type of numerals. Example: <span class=\'pdfcrowd-page-number\' data-pdfcrowd-number-format=\'roman\'></span> data-pdfcrowd-placement - specifies where to place the source URL. Allowed values: The URL is inserted to the content Example: <span class=\'pdfcrowd-source-url\'></span> will produce <span>http://example.com</span> href - the URL is set to the href attribute Example: <a class=\'pdfcrowd-source-url\' data-pdfcrowd-placement=\'href\'>Link to source</a> will produce <a href=\'http://example.com\'>Link to source</a> href-and-content - the URL is set to the href attribute and to the content Example: <a class=\'pdfcrowd-source-url\' data-pdfcrowd-placement=\'href-and-content\'></a> will produce <a href=\'http://example.com\'>http://example.com</a> The supported protocols are http:// and https://.' ) parser.add_argument('-header-html', help = 'Use the specified HTML code as the page header. The following classes can be used in the HTML. The content of the respective elements will be expanded as follows: pdfcrowd-page-count - the total page count of printed pages pdfcrowd-page-number - the current page number pdfcrowd-source-url - the source URL of a converted document The following attributes can be used: data-pdfcrowd-number-format - specifies the type of the used numerals. Allowed values: arabic - Arabic numerals, they are used by default roman - Roman numerals eastern-arabic - Eastern Arabic numerals bengali - Bengali numerals devanagari - Devanagari numerals thai - Thai numerals east-asia - Chinese, Vietnamese, Japanese and Korean numerals chinese-formal - Chinese formal numerals Please contact us if you need another type of numerals. Example: <span class=\'pdfcrowd-page-number\' data-pdfcrowd-number-format=\'roman\'></span> data-pdfcrowd-placement - specifies where to place the source URL. Allowed values: The URL is inserted to the content Example: <span class=\'pdfcrowd-source-url\'></span> will produce <span>http://example.com</span> href - the URL is set to the href attribute Example: <a class=\'pdfcrowd-source-url\' data-pdfcrowd-placement=\'href\'>Link to source</a> will produce <a href=\'http://example.com\'>Link to source</a> href-and-content - the URL is set to the href attribute and to the content Example: <a class=\'pdfcrowd-source-url\' data-pdfcrowd-placement=\'href-and-content\'></a> will produce <a href=\'http://example.com\'>http://example.com</a> The string must not be empty.' ) parser.add_argument('-header-height', help = 'Set the header height. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). Default is 0.5in.' ) parser.add_argument('-zip-header-filename', help = 'Set the file name of the header HTML document stored in the input archive. Use this method if the input archive contains multiple HTML documents. The file name.' ) parser.add_argument('-footer-url', help = 'Load an HTML code from the specified URL and use it as the page footer. The following classes can be used in the HTML. The content of the respective elements will be expanded as follows: pdfcrowd-page-count - the total page count of printed pages pdfcrowd-page-number - the current page number pdfcrowd-source-url - the source URL of a converted document The following attributes can be used: data-pdfcrowd-number-format - specifies the type of the used numerals. Allowed values: arabic - Arabic numerals, they are used by default roman - Roman numerals eastern-arabic - Eastern Arabic numerals bengali - Bengali numerals devanagari - Devanagari numerals thai - Thai numerals east-asia - Chinese, Vietnamese, Japanese and Korean numerals chinese-formal - Chinese formal numerals Please contact us if you need another type of numerals. Example: <span class=\'pdfcrowd-page-number\' data-pdfcrowd-number-format=\'roman\'></span> data-pdfcrowd-placement - specifies where to place the source URL. Allowed values: The URL is inserted to the content Example: <span class=\'pdfcrowd-source-url\'></span> will produce <span>http://example.com</span> href - the URL is set to the href attribute Example: <a class=\'pdfcrowd-source-url\' data-pdfcrowd-placement=\'href\'>Link to source</a> will produce <a href=\'http://example.com\'>Link to source</a> href-and-content - the URL is set to the href attribute and to the content Example: <a class=\'pdfcrowd-source-url\' data-pdfcrowd-placement=\'href-and-content\'></a> will produce <a href=\'http://example.com\'>http://example.com</a> The supported protocols are http:// and https://.' ) parser.add_argument('-footer-html', help = 'Use the specified HTML as the page footer. The following classes can be used in the HTML. The content of the respective elements will be expanded as follows: pdfcrowd-page-count - the total page count of printed pages pdfcrowd-page-number - the current page number pdfcrowd-source-url - the source URL of a converted document The following attributes can be used: data-pdfcrowd-number-format - specifies the type of the used numerals. Allowed values: arabic - Arabic numerals, they are used by default roman - Roman numerals eastern-arabic - Eastern Arabic numerals bengali - Bengali numerals devanagari - Devanagari numerals thai - Thai numerals east-asia - Chinese, Vietnamese, Japanese and Korean numerals chinese-formal - Chinese formal numerals Please contact us if you need another type of numerals. Example: <span class=\'pdfcrowd-page-number\' data-pdfcrowd-number-format=\'roman\'></span> data-pdfcrowd-placement - specifies where to place the source URL. Allowed values: The URL is inserted to the content Example: <span class=\'pdfcrowd-source-url\'></span> will produce <span>http://example.com</span> href - the URL is set to the href attribute Example: <a class=\'pdfcrowd-source-url\' data-pdfcrowd-placement=\'href\'>Link to source</a> will produce <a href=\'http://example.com\'>Link to source</a> href-and-content - the URL is set to the href attribute and to the content Example: <a class=\'pdfcrowd-source-url\' data-pdfcrowd-placement=\'href-and-content\'></a> will produce <a href=\'http://example.com\'>http://example.com</a> The string must not be empty.' ) parser.add_argument('-footer-height', help = 'Set the footer height. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). Default is 0.5in.' ) parser.add_argument('-zip-footer-filename', help = 'Set the file name of the footer HTML document stored in the input archive. Use this method if the input archive contains multiple HTML documents. The file name.' ) parser.add_argument('-no-header-footer-horizontal-margins', action = 'store_true', help = 'Disable horizontal page margins for header and footer. The header/footer contents width will be equal to the physical page width.' ) parser.add_argument('-exclude-header-on-pages', help = 'The page header is not printed on the specified pages. List of physical page numbers. Negative numbers count backwards from the last page: -1 is the last page, -2 is the last but one page, and so on. A comma separated list of page numbers.' ) parser.add_argument('-exclude-footer-on-pages', help = 'The page footer is not printed on the specified pages. List of physical page numbers. Negative numbers count backwards from the last page: -1 is the last page, -2 is the last but one page, and so on. A comma separated list of page numbers.' ) parser.add_argument('-header-footer-scale-factor', help = 'Set the scaling factor (zoom) for the header and footer. The percentage value. The value must be in the range 10-500. Default is 100.' ) parser.add_argument('-page-watermark', help = 'Apply the first page of the watermark PDF to every page of the output PDF. The file path to a local watermark PDF file. The file must exist and not be empty.' ) parser.add_argument('-page-watermark-url', help = 'Load a watermark PDF from the specified URL and apply the first page of the watermark PDF to every page of the output PDF. The supported protocols are http:// and https://.' ) parser.add_argument('-multipage-watermark', help = 'Apply each page of the specified watermark PDF to the corresponding page of the output PDF. The file path to a local watermark PDF file. The file must exist and not be empty.' ) parser.add_argument('-multipage-watermark-url', help = 'Load a watermark PDF from the specified URL and apply each page of the specified watermark PDF to the corresponding page of the output PDF. The supported protocols are http:// and https://.' ) parser.add_argument('-page-background', help = 'Apply the first page of the specified PDF to the background of every page of the output PDF. The file path to a local background PDF file. The file must exist and not be empty.' ) parser.add_argument('-page-background-url', help = 'Load a background PDF from the specified URL and apply the first page of the background PDF to every page of the output PDF. The supported protocols are http:// and https://.' ) parser.add_argument('-multipage-background', help = 'Apply each page of the specified PDF to the background of the corresponding page of the output PDF. The file path to a local background PDF file. The file must exist and not be empty.' ) parser.add_argument('-multipage-background-url', help = 'Load a background PDF from the specified URL and apply each page of the specified background PDF to the corresponding page of the output PDF. The supported protocols are http:// and https://.' ) parser.add_argument('-page-background-color', help = 'The page background color in RGB or RGBA hexadecimal format. The color fills the entire page regardless of the margins. The value must be in RRGGBB or RRGGBBAA hexadecimal format.' ) parser.add_argument('-use-print-media', action = 'store_true', help = 'Use the print version of the page if available (@media print).' ) parser.add_argument('-no-background', action = 'store_true', help = 'Do not print the background graphics.' ) parser.add_argument('-disable-javascript', action = 'store_true', help = 'Do not execute JavaScript.' ) parser.add_argument('-disable-image-loading', action = 'store_true', help = 'Do not load images.' ) parser.add_argument('-disable-remote-fonts', action = 'store_true', help = 'Disable loading fonts from remote sources.' ) parser.add_argument('-load-iframes', help = 'Specifies how iframes are handled. Allowed values are all, same-origin, none. Default is all.' ) parser.add_argument('-block-ads', action = 'store_true', help = 'Try to block ads. Enabling this option can produce smaller output and speed up the conversion.' ) parser.add_argument('-default-encoding', help = 'Set the default HTML content text encoding. The text encoding of the HTML content. Default is auto detect.' ) parser.add_argument('-locale', help = 'Set the locale for the conversion. This may affect the output format of dates, times and numbers. The locale code according to ISO 639. Default is en-US.' ) parser.add_argument('-http-auth-user-name', help = argparse.SUPPRESS ) parser.add_argument('-http-auth-password', help = argparse.SUPPRESS ) multi_args['http_auth'] = 2 parser.add_argument('-http-auth', help = 'Set credentials to access HTTP base authentication protected websites. HTTP_AUTH must contain 2 values separated by a semicolon. Set the HTTP authentication user name. Set the HTTP authentication password.' ) parser.add_argument('-cookies', help = 'Set cookies that are sent in Pdfcrowd HTTP requests. The cookie string.' ) parser.add_argument('-verify-ssl-certificates', action = 'store_true', help = 'Do not allow insecure HTTPS connections.' ) parser.add_argument('-fail-on-main-url-error', action = 'store_true', help = 'Abort the conversion if the main URL HTTP status code is greater than or equal to 400.' ) parser.add_argument('-fail-on-any-url-error', action = 'store_true', help = 'Abort the conversion if any of the sub-request HTTP status code is greater than or equal to 400 or if some sub-requests are still pending. See details in a debug log.' ) parser.add_argument('-no-xpdfcrowd-header', action = 'store_true', help = 'Do not send the X-Pdfcrowd HTTP header in Pdfcrowd HTTP requests.' ) parser.add_argument('-custom-javascript', help = 'Run a custom JavaScript after the document is loaded and ready to print. The script is intended for post-load DOM manipulation (add/remove elements, update CSS, ...). In addition to the standard browser APIs, the custom JavaScript code can use helper functions from our JavaScript library. A string containing a JavaScript code. The string must not be empty.' ) parser.add_argument('-on-load-javascript', help = 'Run a custom JavaScript right after the document is loaded. The script is intended for early DOM manipulation (add/remove elements, update CSS, ...). In addition to the standard browser APIs, the custom JavaScript code can use helper functions from our JavaScript library. A string containing a JavaScript code. The string must not be empty.' ) parser.add_argument('-custom-http-header', help = 'Set a custom HTTP header that is sent in Pdfcrowd HTTP requests. A string containing the header name and value separated by a colon.' ) parser.add_argument('-javascript-delay', help = 'Wait the specified number of milliseconds to finish all JavaScript after the document is loaded. Your API license defines the maximum wait time by "Max Delay" parameter. The number of milliseconds to wait. Must be a positive integer number or 0. Default is 200.' ) parser.add_argument('-element-to-convert', help = 'Convert only the specified element from the main document and its children. The element is specified by one or more CSS selectors. If the element is not found, the conversion fails. If multiple elements are found, the first one is used. One or more CSS selectors separated by commas. The string must not be empty.' ) parser.add_argument('-element-to-convert-mode', help = 'Specify the DOM handling when only a part of the document is converted. This can affect the CSS rules used. Allowed values are cut-out, remove-siblings, hide-siblings. Default is cut-out.' ) parser.add_argument('-wait-for-element', help = 'Wait for the specified element in a source document. The element is specified by one or more CSS selectors. The element is searched for in the main document and all iframes. If the element is not found, the conversion fails. Your API license defines the maximum wait time by "Max Delay" parameter. One or more CSS selectors separated by commas. The string must not be empty.' ) parser.add_argument('-viewport-width', help = 'Set the viewport width in pixels. The viewport is the user\'s visible area of the page. The value must be in the range 96-65000. Default is 1024.' ) parser.add_argument('-viewport-height', help = 'Set the viewport height in pixels. The viewport is the user\'s visible area of the page. Must be a positive integer number. Default is 768.' ) multi_args['viewport'] = 2 parser.add_argument('-viewport', help = 'Set the viewport size. The viewport is the user\'s visible area of the page. VIEWPORT must contain 2 values separated by a semicolon. Set the viewport width in pixels. The viewport is the user\'s visible area of the page. The value must be in the range 96-65000. Set the viewport height in pixels. The viewport is the user\'s visible area of the page. Must be a positive integer number.' ) parser.add_argument('-rendering-mode', help = 'Set the rendering mode. The rendering mode. Allowed values are default, viewport. Default is default.' ) parser.add_argument('-smart-scaling-mode', help = 'Specifies the scaling mode used for fitting the HTML contents to the print area. The smart scaling mode. Allowed values are default, disabled, viewport-fit, content-fit, single-page-fit, mode1. Default is default.' ) parser.add_argument('-scale-factor', help = 'Set the scaling factor (zoom) for the main page area. The percentage value. The value must be in the range 10-500. Default is 100.' ) parser.add_argument('-jpeg-quality', help = 'Set the quality of embedded JPEG images. A lower quality results in a smaller PDF file but can lead to compression artifacts. The percentage value. The value must be in the range 1-100. Default is 100.' ) parser.add_argument('-convert-images-to-jpeg', help = 'Specify which image types will be converted to JPEG. Converting lossless compression image formats (PNG, GIF, ...) to JPEG may result in a smaller PDF file. The image category. Allowed values are none, opaque, all. Default is none.' ) parser.add_argument('-image-dpi', help = 'Set the DPI of images in PDF. A lower DPI may result in a smaller PDF file. If the specified DPI is higher than the actual image DPI, the original image DPI is retained (no upscaling is performed). Use 0 to leave the images unaltered. The DPI value. Must be a positive integer number or 0.' ) parser.add_argument('-linearize', action = 'store_true', help = 'Create linearized PDF. This is also known as Fast Web View.' ) parser.add_argument('-encrypt', action = 'store_true', help = 'Encrypt the PDF. This prevents search engines from indexing the contents.' ) parser.add_argument('-user-password', help = 'Protect the PDF with a user password. When a PDF has a user password, it must be supplied in order to view the document and to perform operations allowed by the access permissions. The user password.' ) parser.add_argument('-owner-password', help = 'Protect the PDF with an owner password. Supplying an owner password grants unlimited access to the PDF including changing the passwords and access permissions. The owner password.' ) parser.add_argument('-no-print', action = 'store_true', help = 'Disallow printing of the output PDF.' ) parser.add_argument('-no-modify', action = 'store_true', help = 'Disallow modification of the output PDF.' ) parser.add_argument('-no-copy', action = 'store_true', help = 'Disallow text and graphics extraction from the output PDF.' ) parser.add_argument('-title', help = 'Set the title of the PDF. The title.' ) parser.add_argument('-subject', help = 'Set the subject of the PDF. The subject.' ) parser.add_argument('-author', help = 'Set the author of the PDF. The author.' ) parser.add_argument('-keywords', help = 'Associate keywords with the document. The string with the keywords.' ) parser.add_argument('-extract-meta-tags', action = 'store_true', help = 'Extract meta tags (author, keywords and description) from the input HTML and use them in the output PDF.' ) parser.add_argument('-page-layout', help = 'Specify the page layout to be used when the document is opened. Allowed values are single-page, one-column, two-column-left, two-column-right.' ) parser.add_argument('-page-mode', help = 'Specify how the document should be displayed when opened. Allowed values are full-screen, thumbnails, outlines.' ) parser.add_argument('-initial-zoom-type', help = 'Specify how the page should be displayed when opened. Allowed values are fit-width, fit-height, fit-page.' ) parser.add_argument('-initial-page', help = 'Display the specified page when the document is opened. Must be a positive integer number.' ) parser.add_argument('-initial-zoom', help = 'Specify the initial page zoom in percents when the document is opened. Must be a positive integer number.' ) parser.add_argument('-hide-toolbar', action = 'store_true', help = 'Specify whether to hide the viewer application\'s tool bars when the document is active.' ) parser.add_argument('-hide-menubar', action = 'store_true', help = 'Specify whether to hide the viewer application\'s menu bar when the document is active.' ) parser.add_argument('-hide-window-ui', action = 'store_true', help = 'Specify whether to hide user interface elements in the document\'s window (such as scroll bars and navigation controls), leaving only the document\'s contents displayed.' ) parser.add_argument('-fit-window', action = 'store_true', help = 'Specify whether to resize the document\'s window to fit the size of the first displayed page.' ) parser.add_argument('-center-window', action = 'store_true', help = 'Specify whether to position the document\'s window in the center of the screen.' ) parser.add_argument('-display-title', action = 'store_true', help = 'Specify whether the window\'s title bar should display the document title. If false , the title bar should instead display the name of the PDF file containing the document.' ) parser.add_argument('-right-to-left', action = 'store_true', help = 'Set the predominant reading order for text to right-to-left. This option has no direct effect on the document\'s contents or page numbering but can be used to determine the relative positioning of pages when displayed side by side or printed n-up' ) parser.add_argument('-data-string', help = 'Set the input data for template rendering. The data format can be JSON, XML, YAML or CSV. The input data string.' ) parser.add_argument('-data-file', help = 'Load the input data for template rendering from the specified file. The data format can be JSON, XML, YAML or CSV. The file path to a local file containing the input data.' ) parser.add_argument('-data-format', help = 'Specify the input data format. The data format. Allowed values are auto, json, xml, yaml, csv. Default is auto.' ) parser.add_argument('-data-encoding', help = 'Set the encoding of the data file set by setDataFile. The data file encoding. Default is utf-8.' ) parser.add_argument('-data-ignore-undefined', action = 'store_true', help = 'Ignore undefined variables in the HTML template. The default mode is strict so any undefined variable causes the conversion to fail. You can use {%% if variable is defined %%} to check if the variable is defined.' ) parser.add_argument('-data-auto-escape', action = 'store_true', help = 'Auto escape HTML symbols in the input data before placing them into the output.' ) parser.add_argument('-data-trim-blocks', action = 'store_true', help = 'Auto trim whitespace around each template command block.' ) parser.add_argument('-data-options', help = 'Set the advanced data options:csv_delimiter - The CSV data delimiter, the default is ,.xml_remove_root - Remove the root XML element from the input data.data_root - The name of the root element inserted into the input data without a root node (e.g. CSV), the default is data. Comma separated list of options.' ) parser.add_argument('-debug-log', action = 'store_true', help = 'Turn on the debug logging. Details about the conversion are stored in the debug log.' ) parser.add_argument('-tag', help = 'Tag the conversion with a custom value. The tag is used in conversion statistics. A value longer than 32 characters is cut off. A string with the custom tag.' ) parser.add_argument('-http-proxy', help = 'A proxy server used by Pdfcrowd conversion process for accessing the source URLs with HTTP scheme. It can help to circumvent regional restrictions or provide limited access to your intranet. The value must have format DOMAIN_OR_IP_ADDRESS:PORT.' ) parser.add_argument('-https-proxy', help = 'A proxy server used by Pdfcrowd conversion process for accessing the source URLs with HTTPS scheme. It can help to circumvent regional restrictions or provide limited access to your intranet. The value must have format DOMAIN_OR_IP_ADDRESS:PORT.' ) parser.add_argument('-client-certificate', help = 'A client certificate to authenticate Pdfcrowd converter on your web server. The certificate is used for two-way SSL/TLS authentication and adds extra security. The file must be in PKCS12 format. The file must exist and not be empty.' ) parser.add_argument('-client-certificate-password', help = 'A password for PKCS12 file with a client certificate if it is needed.' ) parser.add_argument('-layout-dpi', help = 'Set the internal DPI resolution used for positioning of PDF contents. It can help in situations when there are small inaccuracies in the PDF. It is recommended to use values that are a multiple of 72, such as 288 or 360. The DPI value. The value must be in the range of 72-600. Default is 300.' ) parser.add_argument('-contents-matrix', help = 'A 2D transformation matrix applied to the main contents on each page. The origin [0,0] is located at the top-left corner of the contents. The resolution is 72 dpi. A comma separated string of matrix elements: "scaleX,skewX,transX,skewY,scaleY,transY" Default is 1,0,0,0,1,0.' ) parser.add_argument('-header-matrix', help = 'A 2D transformation matrix applied to the page header contents. The origin [0,0] is located at the top-left corner of the header. The resolution is 72 dpi. A comma separated string of matrix elements: "scaleX,skewX,transX,skewY,scaleY,transY" Default is 1,0,0,0,1,0.' ) parser.add_argument('-footer-matrix', help = 'A 2D transformation matrix applied to the page footer contents. The origin [0,0] is located at the top-left corner of the footer. The resolution is 72 dpi. A comma separated string of matrix elements: "scaleX,skewX,transX,skewY,scaleY,transY" Default is 1,0,0,0,1,0.' ) parser.add_argument('-disable-page-height-optimization', action = 'store_true', help = 'Disable automatic height adjustment that compensates for pixel to point rounding errors.' ) parser.add_argument('-main-document-css-annotation', action = 'store_true', help = 'Add special CSS classes to the main document\'s body element. This allows applying custom styling based on these classes: pdfcrowd-page-X - where X is the current page number pdfcrowd-page-odd - odd page pdfcrowd-page-even - even page Warning: If your custom styling affects the contents area size (e.g. by using different margins, padding, border width), the resulting PDF may contain duplicit contents or some contents may be missing.' ) parser.add_argument('-header-footer-css-annotation', action = 'store_true', help = 'Add special CSS classes to the header/footer\'s body element. This allows applying custom styling based on these classes: pdfcrowd-page-X - where X is the current page number pdfcrowd-page-count-X - where X is the total page count pdfcrowd-page-first - the first page pdfcrowd-page-last - the last page pdfcrowd-page-odd - odd page pdfcrowd-page-even - even page' ) parser.add_argument('-converter-version', help = 'Set the converter version. Different versions may produce different output. Choose which one provides the best output for your case. The version identifier. Allowed values are latest, 20.10, 18.10. Default is 20.10.' ) parser.add_argument('-use-http', action = 'store_true', help = 'Specifies if the client communicates over HTTP or HTTPS with Pdfcrowd API. Warning: Using HTTP is insecure as data sent over HTTP is not encrypted. Enable this option only if you know what you are doing.' ) parser.add_argument('-user-agent', help = 'Set a custom user agent HTTP header. It can be useful if you are behind some proxy or firewall. The user agent string.' ) multi_args['proxy'] = 4 parser.add_argument('-proxy', help = 'Specifies an HTTP proxy that the API client library will use to connect to the internet. PROXY must contain 4 values separated by a semicolon. The proxy hostname. The proxy port. The username. The password.' ) parser.add_argument('-retry-count', help = 'Specifies the number of retries when the 502 HTTP status code is received. The 502 status code indicates a temporary network issue. This feature can be disabled by setting to 0. Number of retries wanted. Default is 1.' ) if converter == 'html2image': converter_name = 'HtmlToImageClient' parser = argparse.ArgumentParser(usage = usage, description = 'Conversion from HTML to image.', add_help = False, epilog = epilog) add_generic_args(parser) parser.add_argument('-output-format', help = 'The format of the output file. Allowed values are png, jpg, gif, tiff, bmp, ico, ppm, pgm, pbm, pnm, psb, pct, ras, tga, sgi, sun, webp. Default is png.' ) parser.add_argument('-zip-main-filename', help = 'Set the file name of the main HTML document stored in the input archive. If not specified, the first HTML file in the archive is used for conversion. Use this method if the input archive contains multiple HTML documents. The file name.' ) parser.add_argument('-use-print-media', action = 'store_true', help = 'Use the print version of the page if available (@media print).' ) parser.add_argument('-no-background', action = 'store_true', help = 'Do not print the background graphics.' ) parser.add_argument('-disable-javascript', action = 'store_true', help = 'Do not execute JavaScript.' ) parser.add_argument('-disable-image-loading', action = 'store_true', help = 'Do not load images.' ) parser.add_argument('-disable-remote-fonts', action = 'store_true', help = 'Disable loading fonts from remote sources.' ) parser.add_argument('-load-iframes', help = 'Specifies how iframes are handled. Allowed values are all, same-origin, none. Default is all.' ) parser.add_argument('-block-ads', action = 'store_true', help = 'Try to block ads. Enabling this option can produce smaller output and speed up the conversion.' ) parser.add_argument('-default-encoding', help = 'Set the default HTML content text encoding. The text encoding of the HTML content. Default is auto detect.' ) parser.add_argument('-locale', help = 'Set the locale for the conversion. This may affect the output format of dates, times and numbers. The locale code according to ISO 639. Default is en-US.' ) parser.add_argument('-http-auth-user-name', help = argparse.SUPPRESS ) parser.add_argument('-http-auth-password', help = argparse.SUPPRESS ) multi_args['http_auth'] = 2 parser.add_argument('-http-auth', help = 'Set credentials to access HTTP base authentication protected websites. HTTP_AUTH must contain 2 values separated by a semicolon. Set the HTTP authentication user name. Set the HTTP authentication password.' ) parser.add_argument('-cookies', help = 'Set cookies that are sent in Pdfcrowd HTTP requests. The cookie string.' ) parser.add_argument('-verify-ssl-certificates', action = 'store_true', help = 'Do not allow insecure HTTPS connections.' ) parser.add_argument('-fail-on-main-url-error', action = 'store_true', help = 'Abort the conversion if the main URL HTTP status code is greater than or equal to 400.' ) parser.add_argument('-fail-on-any-url-error', action = 'store_true', help = 'Abort the conversion if any of the sub-request HTTP status code is greater than or equal to 400 or if some sub-requests are still pending. See details in a debug log.' ) parser.add_argument('-no-xpdfcrowd-header', action = 'store_true', help = 'Do not send the X-Pdfcrowd HTTP header in Pdfcrowd HTTP requests.' ) parser.add_argument('-custom-javascript', help = 'Run a custom JavaScript after the document is loaded and ready to print. The script is intended for post-load DOM manipulation (add/remove elements, update CSS, ...). In addition to the standard browser APIs, the custom JavaScript code can use helper functions from our JavaScript library. A string containing a JavaScript code. The string must not be empty.' ) parser.add_argument('-on-load-javascript', help = 'Run a custom JavaScript right after the document is loaded. The script is intended for early DOM manipulation (add/remove elements, update CSS, ...). In addition to the standard browser APIs, the custom JavaScript code can use helper functions from our JavaScript library. A string containing a JavaScript code. The string must not be empty.' ) parser.add_argument('-custom-http-header', help = 'Set a custom HTTP header that is sent in Pdfcrowd HTTP requests. A string containing the header name and value separated by a colon.' ) parser.add_argument('-javascript-delay', help = 'Wait the specified number of milliseconds to finish all JavaScript after the document is loaded. Your API license defines the maximum wait time by "Max Delay" parameter. The number of milliseconds to wait. Must be a positive integer number or 0. Default is 200.' ) parser.add_argument('-element-to-convert', help = 'Convert only the specified element from the main document and its children. The element is specified by one or more CSS selectors. If the element is not found, the conversion fails. If multiple elements are found, the first one is used. One or more CSS selectors separated by commas. The string must not be empty.' ) parser.add_argument('-element-to-convert-mode', help = 'Specify the DOM handling when only a part of the document is converted. This can affect the CSS rules used. Allowed values are cut-out, remove-siblings, hide-siblings. Default is cut-out.' ) parser.add_argument('-wait-for-element', help = 'Wait for the specified element in a source document. The element is specified by one or more CSS selectors. The element is searched for in the main document and all iframes. If the element is not found, the conversion fails. Your API license defines the maximum wait time by "Max Delay" parameter. One or more CSS selectors separated by commas. The string must not be empty.' ) parser.add_argument('-screenshot-width', help = 'Set the output image width in pixels. The value must be in the range 96-65000. Default is 1024.' ) parser.add_argument('-screenshot-height', help = 'Set the output image height in pixels. If it is not specified, actual document height is used. Must be a positive integer number.' ) parser.add_argument('-scale-factor', help = 'Set the scaling factor (zoom) for the output image. The percentage value. Must be a positive integer number. Default is 100.' ) parser.add_argument('-background-color', help = 'The output image background color. The value must be in RRGGBB or RRGGBBAA hexadecimal format.' ) parser.add_argument('-data-string', help = 'Set the input data for template rendering. The data format can be JSON, XML, YAML or CSV. The input data string.' ) parser.add_argument('-data-file', help = 'Load the input data for template rendering from the specified file. The data format can be JSON, XML, YAML or CSV. The file path to a local file containing the input data.' ) parser.add_argument('-data-format', help = 'Specify the input data format. The data format. Allowed values are auto, json, xml, yaml, csv. Default is auto.' ) parser.add_argument('-data-encoding', help = 'Set the encoding of the data file set by setDataFile. The data file encoding. Default is utf-8.' ) parser.add_argument('-data-ignore-undefined', action = 'store_true', help = 'Ignore undefined variables in the HTML template. The default mode is strict so any undefined variable causes the conversion to fail. You can use {%% if variable is defined %%} to check if the variable is defined.' ) parser.add_argument('-data-auto-escape', action = 'store_true', help = 'Auto escape HTML symbols in the input data before placing them into the output.' ) parser.add_argument('-data-trim-blocks', action = 'store_true', help = 'Auto trim whitespace around each template command block.' ) parser.add_argument('-data-options', help = 'Set the advanced data options:csv_delimiter - The CSV data delimiter, the default is ,.xml_remove_root - Remove the root XML element from the input data.data_root - The name of the root element inserted into the input data without a root node (e.g. CSV), the default is data. Comma separated list of options.' ) parser.add_argument('-debug-log', action = 'store_true', help = 'Turn on the debug logging. Details about the conversion are stored in the debug log.' ) parser.add_argument('-tag', help = 'Tag the conversion with a custom value. The tag is used in conversion statistics. A value longer than 32 characters is cut off. A string with the custom tag.' ) parser.add_argument('-http-proxy', help = 'A proxy server used by Pdfcrowd conversion process for accessing the source URLs with HTTP scheme. It can help to circumvent regional restrictions or provide limited access to your intranet. The value must have format DOMAIN_OR_IP_ADDRESS:PORT.' ) parser.add_argument('-https-proxy', help = 'A proxy server used by Pdfcrowd conversion process for accessing the source URLs with HTTPS scheme. It can help to circumvent regional restrictions or provide limited access to your intranet. The value must have format DOMAIN_OR_IP_ADDRESS:PORT.' ) parser.add_argument('-client-certificate', help = 'A client certificate to authenticate Pdfcrowd converter on your web server. The certificate is used for two-way SSL/TLS authentication and adds extra security. The file must be in PKCS12 format. The file must exist and not be empty.' ) parser.add_argument('-client-certificate-password', help = 'A password for PKCS12 file with a client certificate if it is needed.' ) parser.add_argument('-converter-version', help = 'Set the converter version. Different versions may produce different output. Choose which one provides the best output for your case. The version identifier. Allowed values are latest, 20.10, 18.10. Default is 20.10.' ) parser.add_argument('-use-http', action = 'store_true', help = 'Specifies if the client communicates over HTTP or HTTPS with Pdfcrowd API. Warning: Using HTTP is insecure as data sent over HTTP is not encrypted. Enable this option only if you know what you are doing.' ) parser.add_argument('-user-agent', help = 'Set a custom user agent HTTP header. It can be useful if you are behind some proxy or firewall. The user agent string.' ) multi_args['proxy'] = 4 parser.add_argument('-proxy', help = 'Specifies an HTTP proxy that the API client library will use to connect to the internet. PROXY must contain 4 values separated by a semicolon. The proxy hostname. The proxy port. The username. The password.' ) parser.add_argument('-retry-count', help = 'Specifies the number of retries when the 502 HTTP status code is received. The 502 status code indicates a temporary network issue. This feature can be disabled by setting to 0. Number of retries wanted. Default is 1.' ) if converter == 'image2image': converter_name = 'ImageToImageClient' parser = argparse.ArgumentParser(usage = usage, description = 'Conversion from one image format to another image format.', add_help = False, epilog = epilog) add_generic_args(parser) parser.add_argument('-output-format', help = 'The format of the output file. Allowed values are png, jpg, gif, tiff, bmp, ico, ppm, pgm, pbm, pnm, psb, pct, ras, tga, sgi, sun, webp. Default is png.' ) parser.add_argument('-resize', help = 'Resize the image. The resize percentage or new image dimensions. Default is 100%%.' ) parser.add_argument('-rotate', help = 'Rotate the image. The rotation specified in degrees.' ) parser.add_argument('-debug-log', action = 'store_true', help = 'Turn on the debug logging. Details about the conversion are stored in the debug log.' ) parser.add_argument('-tag', help = 'Tag the conversion with a custom value. The tag is used in conversion statistics. A value longer than 32 characters is cut off. A string with the custom tag.' ) parser.add_argument('-http-proxy', help = 'A proxy server used by Pdfcrowd conversion process for accessing the source URLs with HTTP scheme. It can help to circumvent regional restrictions or provide limited access to your intranet. The value must have format DOMAIN_OR_IP_ADDRESS:PORT.' ) parser.add_argument('-https-proxy', help = 'A proxy server used by Pdfcrowd conversion process for accessing the source URLs with HTTPS scheme. It can help to circumvent regional restrictions or provide limited access to your intranet. The value must have format DOMAIN_OR_IP_ADDRESS:PORT.' ) parser.add_argument('-converter-version', help = 'Set the converter version. Different versions may produce different output. Choose which one provides the best output for your case. The version identifier. Allowed values are latest, 20.10, 18.10. Default is 20.10.' ) parser.add_argument('-use-http', action = 'store_true', help = 'Specifies if the client communicates over HTTP or HTTPS with Pdfcrowd API. Warning: Using HTTP is insecure as data sent over HTTP is not encrypted. Enable this option only if you know what you are doing.' ) parser.add_argument('-user-agent', help = 'Set a custom user agent HTTP header. It can be useful if you are behind some proxy or firewall. The user agent string.' ) multi_args['proxy'] = 4 parser.add_argument('-proxy', help = 'Specifies an HTTP proxy that the API client library will use to connect to the internet. PROXY must contain 4 values separated by a semicolon. The proxy hostname. The proxy port. The username. The password.' ) parser.add_argument('-retry-count', help = 'Specifies the number of retries when the 502 HTTP status code is received. The 502 status code indicates a temporary network issue. This feature can be disabled by setting to 0. Number of retries wanted. Default is 1.' ) if converter == 'pdf2pdf': converter_name = 'PdfToPdfClient' parser = argparse.ArgumentParser(usage = usage, description = 'Conversion from PDF to PDF.', add_help = False, epilog = epilog) add_generic_args(parser, '+') parser.add_argument('-action', help = 'Specifies the action to be performed on the input PDFs. Allowed values are join, shuffle. Default is join.' ) parser.add_argument('-page-watermark', help = 'Apply the first page of the watermark PDF to every page of the output PDF. The file path to a local watermark PDF file. The file must exist and not be empty.' ) parser.add_argument('-page-watermark-url', help = 'Load a watermark PDF from the specified URL and apply the first page of the watermark PDF to every page of the output PDF. The supported protocols are http:// and https://.' ) parser.add_argument('-multipage-watermark', help = 'Apply each page of the specified watermark PDF to the corresponding page of the output PDF. The file path to a local watermark PDF file. The file must exist and not be empty.' ) parser.add_argument('-multipage-watermark-url', help = 'Load a watermark PDF from the specified URL and apply each page of the specified watermark PDF to the corresponding page of the output PDF. The supported protocols are http:// and https://.' ) parser.add_argument('-page-background', help = 'Apply the first page of the specified PDF to the background of every page of the output PDF. The file path to a local background PDF file. The file must exist and not be empty.' ) parser.add_argument('-page-background-url', help = 'Load a background PDF from the specified URL and apply the first page of the background PDF to every page of the output PDF. The supported protocols are http:// and https://.' ) parser.add_argument('-multipage-background', help = 'Apply each page of the specified PDF to the background of the corresponding page of the output PDF. The file path to a local background PDF file. The file must exist and not be empty.' ) parser.add_argument('-multipage-background-url', help = 'Load a background PDF from the specified URL and apply each page of the specified background PDF to the corresponding page of the output PDF. The supported protocols are http:// and https://.' ) parser.add_argument('-linearize', action = 'store_true', help = 'Create linearized PDF. This is also known as Fast Web View.' ) parser.add_argument('-encrypt', action = 'store_true', help = 'Encrypt the PDF. This prevents search engines from indexing the contents.' ) parser.add_argument('-user-password', help = 'Protect the PDF with a user password. When a PDF has a user password, it must be supplied in order to view the document and to perform operations allowed by the access permissions. The user password.' ) parser.add_argument('-owner-password', help = 'Protect the PDF with an owner password. Supplying an owner password grants unlimited access to the PDF including changing the passwords and access permissions. The owner password.' ) parser.add_argument('-no-print', action = 'store_true', help = 'Disallow printing of the output PDF.' ) parser.add_argument('-no-modify', action = 'store_true', help = 'Disallow modification of the output PDF.' ) parser.add_argument('-no-copy', action = 'store_true', help = 'Disallow text and graphics extraction from the output PDF.' ) parser.add_argument('-title', help = 'Set the title of the PDF. The title.' ) parser.add_argument('-subject', help = 'Set the subject of the PDF. The subject.' ) parser.add_argument('-author', help = 'Set the author of the PDF. The author.' ) parser.add_argument('-keywords', help = 'Associate keywords with the document. The string with the keywords.' ) parser.add_argument('-use-metadata-from', help = 'Use metadata (title, subject, author and keywords) from the n-th input PDF. Set the index of the input PDF file from which to use the metadata. 0 means no metadata. Must be a positive integer number or 0.' ) parser.add_argument('-page-layout', help = 'Specify the page layout to be used when the document is opened. Allowed values are single-page, one-column, two-column-left, two-column-right.' ) parser.add_argument('-page-mode', help = 'Specify how the document should be displayed when opened. Allowed values are full-screen, thumbnails, outlines.' ) parser.add_argument('-initial-zoom-type', help = 'Specify how the page should be displayed when opened. Allowed values are fit-width, fit-height, fit-page.' ) parser.add_argument('-initial-page', help = 'Display the specified page when the document is opened. Must be a positive integer number.' ) parser.add_argument('-initial-zoom', help = 'Specify the initial page zoom in percents when the document is opened. Must be a positive integer number.' ) parser.add_argument('-hide-toolbar', action = 'store_true', help = 'Specify whether to hide the viewer application\'s tool bars when the document is active.' ) parser.add_argument('-hide-menubar', action = 'store_true', help = 'Specify whether to hide the viewer application\'s menu bar when the document is active.' ) parser.add_argument('-hide-window-ui', action = 'store_true', help = 'Specify whether to hide user interface elements in the document\'s window (such as scroll bars and navigation controls), leaving only the document\'s contents displayed.' ) parser.add_argument('-fit-window', action = 'store_true', help = 'Specify whether to resize the document\'s window to fit the size of the first displayed page.' ) parser.add_argument('-center-window', action = 'store_true', help = 'Specify whether to position the document\'s window in the center of the screen.' ) parser.add_argument('-display-title', action = 'store_true', help = 'Specify whether the window\'s title bar should display the document title. If false , the title bar should instead display the name of the PDF file containing the document.' ) parser.add_argument('-right-to-left', action = 'store_true', help = 'Set the predominant reading order for text to right-to-left. This option has no direct effect on the document\'s contents or page numbering but can be used to determine the relative positioning of pages when displayed side by side or printed n-up' ) parser.add_argument('-debug-log', action = 'store_true', help = 'Turn on the debug logging. Details about the conversion are stored in the debug log.' ) parser.add_argument('-tag', help = 'Tag the conversion with a custom value. The tag is used in conversion statistics. A value longer than 32 characters is cut off. A string with the custom tag.' ) parser.add_argument('-converter-version', help = 'Set the converter version. Different versions may produce different output. Choose which one provides the best output for your case. The version identifier. Allowed values are latest, 20.10, 18.10. Default is 20.10.' ) parser.add_argument('-use-http', action = 'store_true', help = 'Specifies if the client communicates over HTTP or HTTPS with Pdfcrowd API. Warning: Using HTTP is insecure as data sent over HTTP is not encrypted. Enable this option only if you know what you are doing.' ) parser.add_argument('-user-agent', help = 'Set a custom user agent HTTP header. It can be useful if you are behind some proxy or firewall. The user agent string.' ) multi_args['proxy'] = 4 parser.add_argument('-proxy', help = 'Specifies an HTTP proxy that the API client library will use to connect to the internet. PROXY must contain 4 values separated by a semicolon. The proxy hostname. The proxy port. The username. The password.' ) parser.add_argument('-retry-count', help = 'Specifies the number of retries when the 502 HTTP status code is received. The 502 status code indicates a temporary network issue. This feature can be disabled by setting to 0. Number of retries wanted. Default is 1.' ) if converter == 'image2pdf': converter_name = 'ImageToPdfClient' parser = argparse.ArgumentParser(usage = usage, description = 'Conversion from an image to PDF.', add_help = False, epilog = epilog) add_generic_args(parser) parser.add_argument('-resize', help = 'Resize the image. The resize percentage or new image dimensions. Default is 100%%.' ) parser.add_argument('-rotate', help = 'Rotate the image. The rotation specified in degrees.' ) parser.add_argument('-debug-log', action = 'store_true', help = 'Turn on the debug logging. Details about the conversion are stored in the debug log.' ) parser.add_argument('-tag', help = 'Tag the conversion with a custom value. The tag is used in conversion statistics. A value longer than 32 characters is cut off. A string with the custom tag.' ) parser.add_argument('-http-proxy', help = 'A proxy server used by Pdfcrowd conversion process for accessing the source URLs with HTTP scheme. It can help to circumvent regional restrictions or provide limited access to your intranet. The value must have format DOMAIN_OR_IP_ADDRESS:PORT.' ) parser.add_argument('-https-proxy', help = 'A proxy server used by Pdfcrowd conversion process for accessing the source URLs with HTTPS scheme. It can help to circumvent regional restrictions or provide limited access to your intranet. The value must have format DOMAIN_OR_IP_ADDRESS:PORT.' ) parser.add_argument('-converter-version', help = 'Set the converter version. Different versions may produce different output. Choose which one provides the best output for your case. The version identifier. Allowed values are latest, 20.10, 18.10. Default is 20.10.' ) parser.add_argument('-use-http', action = 'store_true', help = 'Specifies if the client communicates over HTTP or HTTPS with Pdfcrowd API. Warning: Using HTTP is insecure as data sent over HTTP is not encrypted. Enable this option only if you know what you are doing.' ) parser.add_argument('-user-agent', help = 'Set a custom user agent HTTP header. It can be useful if you are behind some proxy or firewall. The user agent string.' ) multi_args['proxy'] = 4 parser.add_argument('-proxy', help = 'Specifies an HTTP proxy that the API client library will use to connect to the internet. PROXY must contain 4 values separated by a semicolon. The proxy hostname. The proxy port. The username. The password.' ) parser.add_argument('-retry-count', help = 'Specifies the number of retries when the 502 HTTP status code is received. The 502 status code indicates a temporary network issue. This feature can be disabled by setting to 0. Number of retries wanted. Default is 1.' ) if not parser: term_error("Unknown converter '%s'." % converter) if help_wanted: parser.print_help() sys.exit() args = parser.parse_args(argv[1:]) if not args.user_name: term_error('Missing user name.') if not args.api_key: term_error('Missing API key.') converter = getattr(sys.modules[__name__], converter_name)(args.user_name, args.api_key) def invoke_method(method, value, arg): if arg in multi_args.keys(): values = value.split(';') if len(values) != multi_args[arg]: raise Error("Invalid number of arguments for '%s': %s" % (arg, value)) getattr(converter, method)(*values) else: getattr(converter, method)(value) def get_input(source): if source == '-': lines = (line for line in sys.stdin) return 'convertString', ''.join(lines) if re.match('(?i)^https?://.*$', source): return 'convertUrl', source if os.path.isfile(source): return 'convertFile', source term_error("Invalid source '{}'. Must be valid file, URL or '-'.".format(source)) args.user_name = None args.api_key = None for arg in vars(args): if not arg.startswith('_') and arg != 'source': value = getattr(args, arg) if value: method = ''.join([w.title() if w.islower() else w for w in arg.split('_')]) try: invoke_method('set' + method, value, arg) except AttributeError: invoke_method(method[0].lower() + method[1:], value, arg) if converter_name == 'PdfToPdfClient': for in_file in args.source: converter.addPdfFile(in_file) out = converter.convert() else: method, args = get_input(args.source[0]) out = getattr(converter, method)(args) if PYTHON_3: sys.stdout.buffer.write(out) else: sys.stdout.write(out) if __name__ == "__main__": main(sys.argv[1:])
47.747276
1,664
0.631809
34,890
271,682
4.838091
0.034451
0.020675
0.02407
0.033839
0.927435
0.91548
0.904657
0.898484
0.890682
0.883686
0
0.008641
0.276301
271,682
5,689
1,665
47.755669
0.84989
0.276386
0
0.686689
0
0.038908
0.369161
0.043036
0
0
0
0
0.002048
1
0.160068
false
0.022867
0.004778
0.003754
0.283276
0.013652
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
41312458e2aabec4a3d7f8040242d857b27dc666
16,914
py
Python
spec/matchers/equal_ndarray_spec.py
slavad/py-series-clean
2a7cbd0cec1a46374e49eae79e6a88afb31ca54a
[ "MIT" ]
null
null
null
spec/matchers/equal_ndarray_spec.py
slavad/py-series-clean
2a7cbd0cec1a46374e49eae79e6a88afb31ca54a
[ "MIT" ]
null
null
null
spec/matchers/equal_ndarray_spec.py
slavad/py-series-clean
2a7cbd0cec1a46374e49eae79e6a88afb31ca54a
[ "MIT" ]
null
null
null
from spec.spec_helper import * with description(equal_ndarray) as self: with before.each: self.matcher = equal_ndarray(self.expected, self.precision) with description('#__init__'): with before.all: self.expected_message_success_precision = ["arrays are equal with precision 2"] self.expected_message_failure_precision = ["arrays are not equal with precision 2"] self.expected_message_success = ["arrays are equal"] self.expected_message_failure = ["arrays are not equal"] with description('expected is not an ndarray'): with before.all: self.expected = [1.333,2.444,3.555] self.precision = 2 with it('sets correct values'): expect( self.matcher._original_expected_array ).to( equal(self.expected) ) expect( self.matcher._precision ).to( equal(self.precision) ) expect(self.matcher).not_to(have_property('_rounded_expected_array')) expect(self.matcher).not_to(have_property('_message_success')) expect(self.matcher).not_to(have_property('_message_failure')) with description('precision is not an integer'): with before.all: self.expected = np.array([1.333,2.444,3.555]) self.precision = 'test' with it('sets correct values'): expect( self.matcher._precision ).to( equal(self.precision) ) expect( # converts from numpy.bool_ to bool bool( np.all( self.matcher._original_expected_array == self.expected ) ) ).to( be_true ) expect(self.matcher).not_to(have_property('_rounded_expected_array')) expect(self.matcher).not_to(have_property('_message_success')) expect(self.matcher).not_to(have_property('_message_failure')) with shared_context('default attributes checker'): with it('sets correct values'): expect( self.matcher._precision ).to( equal(self.precision) ) expect( # converts from numpy.bool_ to bool bool( np.all( self.matcher._original_expected_array == self.expected ) ) ).to( be_true ) expect( # converts from numpy.bool_ to bool bool( np.all( self.matcher._rounded_expected_array == self.expected ) ) ).to( be_true ) expect( self.matcher._message_success ).to( equal(self.expected_message_success) ) expect( self.matcher._message_failure ).to( equal(self.expected_message_failure) ) with description('precision has default value'): with before.each: self.matcher = equal_ndarray(self.expected) with before.all: self.expected = np.array([1.333,2.444,3.555]) self.precision = None with included_context('default attributes checker'): pass with description('precision is None'): with before.all: self.expected = np.array([1.333,2.444,3.555]) self.precision = None with included_context('default attributes checker'): pass with description('precision is zero'): with before.all: self.expected = np.array([1.333,2.444,3.555]) self.precision = 0 with it('sets correct values'): expect( self.matcher._precision ).to( equal(self.precision) ) expect( # converts from numpy.bool_ to bool bool( np.all( self.matcher._rounded_expected_array == np.array([1.0,2.0,4.0]) ) ) ).to( be_true ) expect( self.matcher._message_success ).to( equal(["arrays are equal with precision 0"]) ) expect( self.matcher._message_failure ).to( equal(["arrays are not equal with precision 0"]) ) with description('precision is an integer'): with before.all: self.expected = 'qwerty' self.precision = 2 with it('sets correct values'): expect( self.matcher._precision ).to( equal(self.precision) ) expect( self.matcher._original_expected_array ).to( equal(self.expected) ) expect(self.matcher).not_to(have_property('_rounded_expected_array')) expect(self.matcher).not_to(have_property('_message_success')) expect(self.matcher).not_to(have_property('_message_failure')) with description('expected is and ndarray and precision is an integer'): with before.all: self.expected = np.array([1.333,2.444,3.555]) self.precision = 2 with it('sets correct values'): expect( self.matcher._precision ).to( equal(self.precision) ) expect( # converts from numpy.bool_ to bool bool( np.all( self.matcher._original_expected_array == self.expected ) ) ).to( be_true ) expect( # converts from numpy.bool_ to bool bool( np.all( self.matcher._rounded_expected_array == np.array([1.33,2.44,3.56]) ) ) ).to( be_true ) expect( self.matcher._message_success ).to( equal(self.expected_message_success_precision) ) expect( self.matcher._message_failure ).to( equal(self.expected_message_failure_precision) ) with description('#_match'): with description('invalid input'): with before.each: self.action = lambda: self.matcher._match(self.actual) with description('expected is not an ndarray'): with before.all: self.expected = [1.333,2.444,3.555] self.precision = 2 self.actual = np.array([1.333,2.444,3.555]) with it('returns False with message'): expect( self.action ).to( raise_error(ValueError, 'expected was not an ndarray') ) with description('actual is not an ndarray'): with before.all: self.expected = np.array([1.333,2.444,3.555]) self.precision = 2 self.actual = [1.333,2.444,3.555] with it('returns False with message'): expect( self.action ).to( raise_error(ValueError, 'actual was not an ndarray') ) with description('precision is not an integer'): with before.all: self.expected = np.array([1.333,2.444,3.555]) self.precision = 'qwerty' self.actual = np.array([1.333,2.444,3.555]) with it('returns False with message'): expect( self.action ).to( raise_error(ValueError, 'precision was not an integer') ) with description('valid input'): with before.each: self.actual_result = self.matcher._match(self.actual) with shared_context('comparer with default precision'): with description('expected and actual are equal'): with before.all: self.expected = np.array([1.333,2.444,3.555]) self.precision = None self.actual = np.array([1.333,2.444,3.555]) with it('returns True with message'): expect( self.actual_result ).to( equal((True, ['arrays are equal'])) ) with description('expected and actual are not equal'): with before.all: self.expected = np.array([1.333,2.444,3.555]) self.precision = None self.actual = np.array([1.33,2.44,3.56]) with it('returns True with message'): expect( self.actual_result ).to( equal((False, ['arrays are not equal'])) ) with description('expected and actual have different shapes'): with before.all: self.expected = np.array([1.333,2.444,3.555]).reshape((-1,1)) self.precision = None self.actual = np.array([1.333,2.444,3.555]) with it('returns True with message'): expect( self.actual_result ).to( equal((False, ['arrays are not equal'])) ) with description('precision has default value'): with before.each: self.matcher = equal_ndarray(self.expected) with before.all: self.expected = np.array([1.333,2.444,3.555]) self.precision = None self.actual = np.array([1.333,2.444,3.555]) with included_context('comparer with default precision'): pass with description('precision is None'): with before.all: self.expected = np.array([1.333,2.444,3.555]) self.precision = None self.actual = np.array([1.333,2.444,3.555]) with included_context('comparer with default precision'): pass with description('precision is integer'): with description('arrays are equal within precision'): with before.all: self.expected = np.array([1.333,2.444,3.555]) self.precision = 2 self.actual = np.array([1.33,2.44,3.56]) with it('returns True with message'): expect( self.actual_result ).to( equal((True, ['arrays are equal with precision 2'])) ) with description('arrays are equal'): with before.all: self.expected = np.array([1.33,2.44,3.56]) self.precision = 2 self.actual = np.array([1.33,2.44,3.56]) with it('returns True with message'): expect( self.actual_result ).to( equal((True, ['arrays are equal with precision 2'])) ) with description('arrays are not equal within precision'): with before.all: self.expected = np.array([1.33,2.44,3.56]) self.precision = 2 self.actual = np.array([1.33,2.44,3.55]) with it('returns True with message'): expect( self.actual_result ).to( equal((False, ['arrays are not equal with precision 2'])) ) with description('#__repr__'): with description('precision is None'): with before.all: self.expected = np.array([1.33,2.44,3.56]) self.precision = None with it('returns correct value'): expect( self.matcher.__repr__() ).to( equal('equal') ) with description('precision is default'): with before.each: self.matcher = equal_ndarray(self.expected) with before.all: self.expected = np.array([1.33,2.44,3.56]) self.precision = None with it('returns correct value'): expect( self.matcher.__repr__() ).to( equal('equal') ) with description('precision is not None'): with before.all: self.expected = np.array([1.33,2.44,3.56]) self.precision = 2 with it('returns correct value'): expect( self.matcher.__repr__() ).to( equal('equal with precision 2') ) with description('failure message methods'): with before.all: self.subject = 'subject' self.reasons = ['one', 'two'] self.negated_expected_message = "\nexpected:\n'subject'\nnot to equal to\narray([1.33, 2.44, 3.56])\n but: one\n two" self.expected_message = "\nexpected:\n'subject'\nto equal to\narray([1.33, 2.44, 3.56])\n but: one\n two" self.expected = np.array([1.33,2.44,3.56]) self.precision = None with description('#_failure_message_general'): with before.each: self.message = self.matcher._failure_message_general(self.subject, self.reasons, self.negated) with description('is not negated'): with before.all: self.negated = False with it('returns expected message'): expect( self.message ).to( equal(self.expected_message) ) with description('is negated'): with before.all: self.negated = True with it('returns expected message'): expect( self.message ).to( equal(self.negated_expected_message) ) with description('#_failure_message'): with it('returns expected message'): expect( self.matcher._failure_message(self.subject, self.reasons) ).to( equal(self.expected_message) ) with description('#_failure_message_negated'): with it('returns expected message'): expect( self.matcher._failure_message_negated(self.subject, self.reasons) ).to( equal(self.negated_expected_message) )
40.855072
142
0.437507
1,529
16,914
4.720078
0.06671
0.071498
0.034363
0.058889
0.909381
0.867258
0.811695
0.771927
0.770819
0.75433
0
0.045653
0.472922
16,914
414
143
40.855072
0.763881
0.012002
0
0.703125
0
0.005208
0.134092
0.010296
0
0
0
0
0
1
0
true
0.010417
0.002604
0
0.002604
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
0
0
0
0
0
0
8
415b5cbf749fa8ce9d1e1298a2c2b655acb4b3e1
5,713
py
Python
reportcards/consumers.py
Davy-71993/MySchool
fa02c8ec19d71873fc0d714cf652d8ad05f2f0e7
[ "MIT" ]
null
null
null
reportcards/consumers.py
Davy-71993/MySchool
fa02c8ec19d71873fc0d714cf652d8ad05f2f0e7
[ "MIT" ]
null
null
null
reportcards/consumers.py
Davy-71993/MySchool
fa02c8ec19d71873fc0d714cf652d8ad05f2f0e7
[ "MIT" ]
null
null
null
# reportcards/consumers.py import json import datetime from channels.generic.websocket import WebsocketConsumer from .models import Score, MarkList from students.models import Student, Subject class ScoreConsumer(WebsocketConsumer): def connect(self): self.accept() def disconnect(self, close_code): pass def receive(self, text_data): text_data_json = json.loads(text_data) val = text_data_json['value'] mkl = text_data_json['mkl'] std = text_data_json['std'] name = text_data_json['name'] sub = text_data_json['sub'] score = Score.objects.get( student = Student.objects.get(id = std), marklist = MarkList.objects.get(id = mkl), subject = Subject.objects.get(id=sub) ) if score: if name == 'value': score.value = val score.save() self.send(text_data=json.dumps({ 'message': score.value })) elif name == 'value1': score.value1 = val score.save() self.send(text_data=json.dumps({ 'message': score.value1 })) else: self.send(text_data=json.dumps({ 'message': 'The name was not passed' })) else: self.send(text_data=json.dumps({ 'message': 'not found' })) class SubjectScoreConsumer(WebsocketConsumer): def connect(self): self.accept() def disconnect(self, close_code): pass def receive(self, text_data): text_data_json = json.loads(text_data) val = text_data_json['value'] mkl = text_data_json['mkl'] std = text_data_json['std'] name = text_data_json['name'] sub = text_data_json['sub'] score = Score.objects.get( student = Student.objects.get(id = std), marklist = MarkList.objects.get(id = mkl), subject = Subject.objects.get(id=sub) ) if score: if name == 'value': score.value = val score.save() self.send(text_data=json.dumps({ 'message': score.value })) elif name == 'value1': score.value1 = val score.save() self.send(text_data=json.dumps({ 'message': score.value1 })) else: self.send(text_data=json.dumps({ 'message': 'The name was not passed' })) else: self.send(text_data=json.dumps({ 'message': 'not found' })) class StreamScoreConsumer(WebsocketConsumer): def connect(self): self.accept() def disconnect(self, close_code): pass def receive(self, text_data): text_data_json = json.loads(text_data) val = text_data_json['value'] mkl = text_data_json['mkl'] std = text_data_json['std'] name = text_data_json['name'] sub = text_data_json['sub'] score = Score.objects.get( student = Student.objects.get(id = std), marklist = MarkList.objects.get(id = mkl), subject = Subject.objects.get(id=sub) ) if score: if name == 'value': score.value = val score.save() self.send(text_data=json.dumps({ 'message': score.value })) elif name == 'value1': score.value1 = val score.save() self.send(text_data=json.dumps({ 'message': score.value1 })) else: self.send(text_data=json.dumps({ 'message': 'The name was not passed' })) else: self.send(text_data=json.dumps({ 'message': 'not found' })) class ClassScoreConsumer(WebsocketConsumer): def connect(self): self.accept() def disconnect(self, close_code): pass def receive(self, text_data): text_data_json = json.loads(text_data) val = text_data_json['value'] int_class = text_data_json['int_class'] std = text_data_json['std'] name = text_data_json['name'] sub = text_data_json['sub'] term = text_data_json['term'] klass = f'S.{int_class}' year = datetime.datetime.now().year student = Student.objects.get(id = std) mkl = MarkList.objects.get(klass=klass, term=term, year=year, stream=student.stream) score = Score.objects.get( student = student, marklist = mkl, subject = Subject.objects.get(id=sub) ) if score: if name == 'value': score.value = val score.save() self.send(text_data=json.dumps({ 'message': score.value })) elif name == 'value1': score.value1 = val score.save() self.send(text_data=json.dumps({ 'message': score.value1 })) else: self.send(text_data=json.dumps({ 'message': 'The name was not passed' })) else: self.send(text_data=json.dumps({ 'message': 'not found' }))
25.850679
92
0.492036
580
5,713
4.706897
0.110345
0.14359
0.18022
0.093773
0.852381
0.852381
0.829304
0.829304
0.829304
0.829304
0
0.00349
0.398215
5,713
220
93
25.968182
0.790576
0.004201
0
0.87037
0
0
0.066997
0
0
0
0
0
0
1
0.074074
false
0.049383
0.030864
0
0.12963
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
0
0
0
0
0
0
0
0
0
0
8
41631a0e9c65d16d77c012fadef40808a5924645
6,484
py
Python
scripts/04_patch_flattening/02_patch_flatten.py
ofgulban/meso-MRI
15ef8e19aae6218833a06bf01418d3d83eafd8c7
[ "BSD-3-Clause" ]
1
2022-01-21T13:48:01.000Z
2022-01-21T13:48:01.000Z
scripts/04_patch_flattening/02_patch_flatten.py
ofgulban/meso-MRI
15ef8e19aae6218833a06bf01418d3d83eafd8c7
[ "BSD-3-Clause" ]
null
null
null
scripts/04_patch_flattening/02_patch_flatten.py
ofgulban/meso-MRI
15ef8e19aae6218833a06bf01418d3d83eafd8c7
[ "BSD-3-Clause" ]
1
2022-01-21T13:48:08.000Z
2022-01-21T13:48:08.000Z
"""Flatten several values into a cylinder (aka virtual Petri dish).""" import os import subprocess import nibabel as nb import numpy as np import glob VALUES = [[ "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/segmentation/02_layers/sub-01_ses-T2s_segm_rim_HG_RH_v02_borderized_curvature_binned.nii.gz", "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/segmentation/02_layers/sub-01_ses-T2s_segm_rim_HG_LH_v02_borderized_curvature_binned.nii.gz", "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/segmentation/02_layers/sub-01_ses-T2s_segm_rim_CS_RH_v02_borderized_curvature_binned.nii.gz", "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/segmentation/02_layers/sub-01_ses-T2s_segm_rim_CS_LH_v02_borderized_curvature_binned.nii.gz", ], [ "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/T2s/12_T2star/sub-01_ses-T2s_part-mag_MEGRE_crop_ups2X_prepped_avg_composite_decayfixed_T2s.nii.gz", "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/T2s/12_T2star/sub-01_ses-T2s_part-mag_MEGRE_crop_ups2X_prepped_avg_composite_decayfixed_T2s.nii.gz", "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/T2s/12_T2star/sub-01_ses-T2s_part-mag_MEGRE_crop_ups2X_prepped_avg_composite_decayfixed_T2s.nii.gz", "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/T2s/12_T2star/sub-01_ses-T2s_part-mag_MEGRE_crop_ups2X_prepped_avg_composite_decayfixed_T2s.nii.gz", ], [ "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/T1/07_register_to_T2s/sub-01_ses-T1_MP2RAGE_T1_crop_ups2X_avg_reg.nii.gz", "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/T1/07_register_to_T2s/sub-01_ses-T1_MP2RAGE_T1_crop_ups2X_avg_reg.nii.gz", "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/T1/07_register_to_T2s/sub-01_ses-T1_MP2RAGE_T1_crop_ups2X_avg_reg.nii.gz", "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/T1/07_register_to_T2s/sub-01_ses-T1_MP2RAGE_T1_crop_ups2X_avg_reg.nii.gz", ], [ "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/segmentation/03_multilaterate/sub-01_ses-T2s_segm_rim_HG_RH_v02_borderized_multilaterate_UV_norm_L2.nii.gz", "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/segmentation/03_multilaterate/sub-01_ses-T2s_segm_rim_HG_LH_v02_borderized_multilaterate_UV_norm_L2.nii.gz", "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/segmentation/03_multilaterate/sub-01_ses-T2s_segm_rim_CS_RH_v02_borderized_multilaterate_UV_norm_L2.nii.gz", "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/segmentation/03_multilaterate/sub-01_ses-T2s_segm_rim_CS_LH_v02_borderized_multilaterate_UV_norm_L2.nii.gz", ] ] # Make sure that these correspond to images in VALUES TAGS = ["curvature_binned", "T2star", "T1", "norm_L2"] COORD_UV = [ "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/segmentation/03_multilaterate/sub-01_ses-T2s_segm_rim_HG_RH_v02_borderized_multilaterate_UV_coordinates.nii.gz", "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/segmentation/03_multilaterate/sub-01_ses-T2s_segm_rim_HG_LH_v02_borderized_multilaterate_UV_coordinates.nii.gz", "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/segmentation/03_multilaterate/sub-01_ses-T2s_segm_rim_CS_RH_v02_borderized_multilaterate_UV_coordinates.nii.gz", "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/segmentation/03_multilaterate/sub-01_ses-T2s_segm_rim_CS_LH_v02_borderized_multilaterate_UV_coordinates.nii.gz", ] COORD_D = [ "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/segmentation/02_layers/sub-01_ses-T2s_segm_rim_HG_RH_v02_borderized_metric_equivol.nii.gz", "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/segmentation/02_layers/sub-01_ses-T2s_segm_rim_HG_LH_v02_borderized_metric_equivol.nii.gz", "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/segmentation/02_layers/sub-01_ses-T2s_segm_rim_CS_RH_v02_borderized_metric_equivol.nii.gz", "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/segmentation/02_layers/sub-01_ses-T2s_segm_rim_CS_LH_v02_borderized_metric_equivol.nii.gz", ] DOMAIN =[ "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/segmentation/03_multilaterate/sub-01_ses-T2s_segm_rim_HG_RH_v02_borderized_multilaterate_perimeter_chunk.nii.gz", "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/segmentation/03_multilaterate/sub-01_ses-T2s_segm_rim_HG_LH_v02_borderized_multilaterate_perimeter_chunk.nii.gz", "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/segmentation/03_multilaterate/sub-01_ses-T2s_segm_rim_CS_RH_v02_borderized_multilaterate_perimeter_chunk.nii.gz", "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/segmentation/03_multilaterate/sub-01_ses-T2s_segm_rim_CS_LH_v02_borderized_multilaterate_perimeter_chunk.nii.gz", ] OUTDIR = "/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-01/flattening/" LAYNIIDIR = "/home/faruk/Git/LAYNII/" BINS_U = 400 BINS_V = 400 BINS_D = 100 # ----------------------------------------------------------------------------- # Output directory if not os.path.exists(OUTDIR): os.makedirs(OUTDIR) print(" Output directory: {}\n".format(OUTDIR)) for j in range(len(VALUES)): tag = TAGS[j] for i in range(len(DOMAIN)): values = VALUES[j][i] coord_uv = COORD_UV[i] coord_d = COORD_D[i] domain = DOMAIN[i] # Determine output basename filename = os.path.basename(domain) basename, ext = filename.split(os.extsep, 1) outname = os.path.join(OUTDIR, "{}_{}.{} ".format(basename, tag, ext)) # Layers and middle gray matter command = os.path.join(LAYNIIDIR, "LN2_PATCH_FLATTEN ") command += "-values {} ".format(values) command += "-coord_uv {} ".format(coord_uv) command += "-coord_d {} ".format(coord_d) command += "-domain {} ".format(domain) command += "-bins_u {} ".format(BINS_U) command += "-bins_v {} ".format(BINS_V) command += "-bins_d {} ".format(BINS_D) command += "-voronoi " command += "-norm_mask " command += "-output {} ".format(outname) # Computing density once is enough if j == 0: command += "-density " print(command) subprocess.run(command, shell=True) print() # ----------------------------------------------------------------------------- # Make sform qform of flat niftis identity matrix nii_files = glob.glob(os.path.join(OUTDIR, "*.nii*")) for i in nii_files: nii = nb.load(i) new = nb.Nifti1Image(nii.dataobj, header=nii.header, affine=np.eye(4)) nb.save(new, i) print('Finished.\n')
57.892857
166
0.753547
1,019
6,484
4.417076
0.151129
0.063319
0.090202
0.115974
0.741613
0.741613
0.741613
0.737614
0.729838
0.718951
0
0.055556
0.100555
6,484
111
167
58.414414
0.716221
0.065854
0
0.127907
0
0.325581
0.720218
0.683984
0
0
0
0
0
1
0
false
0
0.05814
0
0.05814
0.046512
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
ec26d71cd62c2b9038c20ff6b5258f2ccd26a2b0
138,554
py
Python
KAMA1ShortOnly/jessetkdata/dnafiles/XLM-USDT 2021-01-15 2021-11-15.py
ysdede/jesse_strategies
ade9f4ba42cec11207c766d267b9d8feb8bce648
[ "CC0-1.0" ]
38
2021-09-18T15:33:28.000Z
2022-02-21T17:29:08.000Z
KAMA1ShortOnly/jessetkdata/dnafiles/XLM-USDT 2021-01-15 2021-11-15.py
ysdede/jesse_strategies
ade9f4ba42cec11207c766d267b9d8feb8bce648
[ "CC0-1.0" ]
4
2022-01-02T14:46:12.000Z
2022-02-16T18:39:41.000Z
KAMA1ShortOnly/jessetkdata/dnafiles/XLM-USDT 2021-01-15 2021-11-15.py
ysdede/jesse_strategies
ade9f4ba42cec11207c766d267b9d8feb8bce648
[ "CC0-1.0" ]
11
2021-10-19T06:21:43.000Z
2022-02-21T17:29:10.000Z
dnas = [ ['Ii()[Z', 86, 159, 13.79, 91, 46, 15.08, {'ott_len': 22, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 34, 'chop_bandwidth': 194}], ['@i:)WZ', 68, 160, 49.02, 72, 40, 12.51, {'ott_len': 17, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['Ji()[Z', 87, 159, 20.89, 92, 41, 12.97, {'ott_len': 23, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 34, 'chop_bandwidth': 194}], ['Ei:)WZ', 69, 151, 39.86, 75, 36, 19.96, {'ott_len': 20, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['?i()[Z', 81, 181, 8.99, 80, 46, -3.49, {'ott_len': 16, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 34, 'chop_bandwidth': 194}], ['Ei4)lT', 72, 154, 34.69, 79, 39, 20.02, {'ott_len': 20, 'ott_percent': 667, 'stop_loss': 103, 'risk_reward': 11, 'chop_rsi_len': 44, 'chop_bandwidth': 172}], ['Ji()[M', 84, 237, 32.69, 86, 67, 2.48, {'ott_len': 23, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 34, 'chop_bandwidth': 146}], ['Ji()[N', 85, 234, 32.8, 86, 65, 1.53, {'ott_len': 23, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 34, 'chop_bandwidth': 149}], ['Ci:)WZ', 66, 151, 39.04, 72, 37, 17.53, {'ott_len': 18, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['Ji()OZ', 86, 187, 23.72, 88, 50, -0.27, {'ott_len': 23, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 27, 'chop_bandwidth': 194}], ['Ji()sZ', 87, 120, 20.1, 90, 32, 8.31, {'ott_len': 23, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 48, 'chop_bandwidth': 194}], ['9`,1Mk', 67, 93, 10.34, 90, 21, 20.06, {'ott_len': 12, 'ott_percent': 582, 'stop_loss': 68, 'risk_reward': 18, 'chop_rsi_len': 26, 'chop_bandwidth': 256}], ['rw3.?v', 78, 51, 27.64, 93, 15, 16.19, {'ott_len': 47, 'ott_percent': 800, 'stop_loss': 99, 'risk_reward': 15, 'chop_rsi_len': 18, 'chop_bandwidth': 296}], ['@i()[Z', 82, 188, 9.99, 81, 43, -1.34, {'ott_len': 17, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 34, 'chop_bandwidth': 194}], ['Ai()[Z', 82, 188, 9.99, 81, 43, -1.34, {'ott_len': 17, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 34, 'chop_bandwidth': 194}], ['Ji()AZ', 85, 213, 31.02, 86, 58, -0.69, {'ott_len': 23, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 19, 'chop_bandwidth': 194}], ['@i:)sZ', 68, 108, 30.85, 76, 26, 17.05, {'ott_len': 17, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 48, 'chop_bandwidth': 194}], ['Ji()lZ', 87, 132, 25.01, 91, 36, 10.35, {'ott_len': 23, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 44, 'chop_bandwidth': 194}], ['rw3..v', 77, 67, 24.35, 79, 24, 10.84, {'ott_len': 47, 'ott_percent': 800, 'stop_loss': 99, 'risk_reward': 15, 'chop_rsi_len': 8, 'chop_bandwidth': 296}], ['Ji()7Z', 85, 235, 35.79, 87, 65, 2.62, {'ott_len': 23, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 14, 'chop_bandwidth': 194}], ['Ji()9Z', 85, 234, 35.16, 86, 61, 0.72, {'ott_len': 23, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 15, 'chop_bandwidth': 194}], ['Ji()[C', 83, 269, 33.8, 86, 72, 3.22, {'ott_len': 23, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 34, 'chop_bandwidth': 109}], ['Ji()/Z', 84, 245, 33.15, 85, 61, -0.9, {'ott_len': 23, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 9, 'chop_bandwidth': 194}], ['0-t5Nj', 53, 15, 23.94, 66, 3, 3.67, {'ott_len': 7, 'ott_percent': 97, 'stop_loss': 387, 'risk_reward': 22, 'chop_rsi_len': 27, 'chop_bandwidth': 252}], ['Ji()[)', 83, 273, 34.76, 86, 73, 3.71, {'ott_len': 23, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 34, 'chop_bandwidth': 14}], ['Ji()[*', 83, 273, 34.76, 86, 73, 3.71, {'ott_len': 23, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 34, 'chop_bandwidth': 17}], ['Ji()[:', 83, 272, 34.13, 86, 73, 3.71, {'ott_len': 23, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 34, 'chop_bandwidth': 76}], ['oGd,\\v', 80, 15, 37.49, 100, 1, 4.34, {'ott_len': 45, 'ott_percent': 344, 'stop_loss': 316, 'risk_reward': 14, 'chop_rsi_len': 35, 'chop_bandwidth': 296}], ['@m4(L.', 66, 264, 22.36, 79, 67, 20.98, {'ott_len': 17, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 32}], ['iH*0kg', 89, 37, 21.22, 71, 7, -0.53, {'ott_len': 41, 'ott_percent': 354, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 43, 'chop_bandwidth': 241}], ['iH*0hg', 88, 42, 22.5, 62, 8, -3.1, {'ott_len': 41, 'ott_percent': 354, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['Al/2PC', 57, 264, 48.22, 67, 65, 17.55, {'ott_len': 17, 'ott_percent': 696, 'stop_loss': 81, 'risk_reward': 19, 'chop_rsi_len': 28, 'chop_bandwidth': 109}], ['^BB)WZ', 64, 159, 45.44, 76, 46, 32.67, {'ott_len': 35, 'ott_percent': 297, 'stop_loss': 165, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['.:DSXq', 44, 18, 15.0, 100, 1, 2.9, {'ott_len': 6, 'ott_percent': 221, 'stop_loss': 174, 'risk_reward': 48, 'chop_rsi_len': 32, 'chop_bandwidth': 278}], ['Iw?.[v', 78, 28, 29.02, 66, 3, 3.65, {'ott_len': 22, 'ott_percent': 800, 'stop_loss': 152, 'risk_reward': 15, 'chop_rsi_len': 34, 'chop_bandwidth': 296}], ['su69Ct', 64, 45, 30.31, 76, 13, 2.86, {'ott_len': 48, 'ott_percent': 781, 'stop_loss': 112, 'risk_reward': 25, 'chop_rsi_len': 20, 'chop_bandwidth': 289}], ['Pi:)WZ', 71, 137, 32.92, 61, 34, -16.54, {'ott_len': 26, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['Pi:-WZ', 67, 136, 49.76, 58, 34, -14.06, {'ott_len': 26, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 14, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['Jm4(L.', 72, 218, 25.47, 71, 57, -5.6, {'ott_len': 23, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 32}], ['i=*0hg', 87, 40, 22.05, 100, 5, 4.69, {'ott_len': 41, 'ott_percent': 249, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['^A:)WZ', 68, 155, 28.07, 79, 48, 23.44, {'ott_len': 35, 'ott_percent': 287, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], [';9(VKr', 50, 53, 29.06, 66, 6, 8.58, {'ott_len': 14, 'ott_percent': 211, 'stop_loss': 50, 'risk_reward': 51, 'chop_rsi_len': 25, 'chop_bandwidth': 282}], ['Ui3)lZ', 80, 110, 37.48, 79, 29, 7.07, {'ott_len': 29, 'ott_percent': 667, 'stop_loss': 99, 'risk_reward': 11, 'chop_rsi_len': 44, 'chop_bandwidth': 194}], ['^B:)WZ', 67, 161, 24.44, 82, 47, 33.31, {'ott_len': 35, 'ott_percent': 297, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['bwi.tc', 38, 42, -8.9, 83, 6, 20.48, {'ott_len': 37, 'ott_percent': 800, 'stop_loss': 338, 'risk_reward': 15, 'chop_rsi_len': 48, 'chop_bandwidth': 227}], ['8r6-OF', 56, 272, 27.55, 57, 68, -10.17, {'ott_len': 12, 'ott_percent': 753, 'stop_loss': 112, 'risk_reward': 14, 'chop_rsi_len': 27, 'chop_bandwidth': 120}], ['3:<TPr', 37, 27, 8.12, 100, 2, 8.91, {'ott_len': 9, 'ott_percent': 221, 'stop_loss': 139, 'risk_reward': 49, 'chop_rsi_len': 28, 'chop_bandwidth': 282}], ['79llcf', 40, 25, 10.61, 100, 3, 5.63, {'ott_len': 11, 'ott_percent': 211, 'stop_loss': 351, 'risk_reward': 70, 'chop_rsi_len': 39, 'chop_bandwidth': 238}], ['Lm4(Ag', 79, 128, 30.91, 80, 35, 3.22, {'ott_len': 24, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 19, 'chop_bandwidth': 241}], ['OcB0tZ', 52, 90, 16.2, 66, 21, 15.34, {'ott_len': 26, 'ott_percent': 610, 'stop_loss': 165, 'risk_reward': 17, 'chop_rsi_len': 48, 'chop_bandwidth': 194}], ['bc7)tZ', 77, 98, 30.33, 75, 20, -1.43, {'ott_len': 37, 'ott_percent': 610, 'stop_loss': 116, 'risk_reward': 11, 'chop_rsi_len': 48, 'chop_bandwidth': 194}], ['<q,4O?', 62, 255, 75.82, 60, 69, 1.97, {'ott_len': 14, 'ott_percent': 743, 'stop_loss': 68, 'risk_reward': 21, 'chop_rsi_len': 27, 'chop_bandwidth': 94}], ['rc3)SZ', 82, 124, 41.13, 80, 31, 7.1, {'ott_len': 47, 'ott_percent': 610, 'stop_loss': 99, 'risk_reward': 11, 'chop_rsi_len': 29, 'chop_bandwidth': 194}], ['>cX0lZ', 39, 110, 14.57, 48, 29, 18.64, {'ott_len': 15, 'ott_percent': 610, 'stop_loss': 263, 'risk_reward': 17, 'chop_rsi_len': 44, 'chop_bandwidth': 194}], ['Mm4(Lg', 84, 100, 36.24, 83, 24, 9.53, {'ott_len': 24, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 241}], ['Eql+he', 50, 51, 47.08, 37, 8, 2.21, {'ott_len': 20, 'ott_percent': 743, 'stop_loss': 351, 'risk_reward': 13, 'chop_rsi_len': 41, 'chop_bandwidth': 234}], ['bc;)tZ', 76, 96, 40.24, 75, 20, 1.3, {'ott_len': 37, 'ott_percent': 610, 'stop_loss': 134, 'risk_reward': 11, 'chop_rsi_len': 48, 'chop_bandwidth': 194}], ['bcB0nZ', 57, 90, 19.34, 70, 20, 12.68, {'ott_len': 37, 'ott_percent': 610, 'stop_loss': 165, 'risk_reward': 17, 'chop_rsi_len': 45, 'chop_bandwidth': 194}], ['bc-0tZ', 76, 99, 25.65, 75, 20, 1.56, {'ott_len': 37, 'ott_percent': 610, 'stop_loss': 72, 'risk_reward': 17, 'chop_rsi_len': 48, 'chop_bandwidth': 194}], ['bcB0tX', 57, 94, 19.58, 73, 23, 22.13, {'ott_len': 37, 'ott_percent': 610, 'stop_loss': 165, 'risk_reward': 17, 'chop_rsi_len': 48, 'chop_bandwidth': 186}], ['bcG)tZ', 71, 94, 60.76, 73, 19, 5.82, {'ott_len': 37, 'ott_percent': 610, 'stop_loss': 187, 'risk_reward': 11, 'chop_rsi_len': 48, 'chop_bandwidth': 194}], ['^i8)WZ', 73, 127, 24.36, 76, 34, 3.89, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 121, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['_c30lZ', 71, 99, 35.86, 70, 24, 4.14, {'ott_len': 35, 'ott_percent': 610, 'stop_loss': 99, 'risk_reward': 17, 'chop_rsi_len': 44, 'chop_bandwidth': 194}], ['Bq6+ej', 83, 43, 32.82, 66, 3, 1.67, {'ott_len': 18, 'ott_percent': 743, 'stop_loss': 112, 'risk_reward': 13, 'chop_rsi_len': 40, 'chop_bandwidth': 252}], ['^i:)bZ', 75, 111, 37.96, 74, 31, 2.94, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 38, 'chop_bandwidth': 194}], ['rc3)MZ', 81, 126, 39.56, 80, 31, 7.1, {'ott_len': 47, 'ott_percent': 610, 'stop_loss': 99, 'risk_reward': 11, 'chop_rsi_len': 26, 'chop_bandwidth': 194}], ['^i:)cZ', 75, 110, 36.12, 74, 31, 2.94, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 39, 'chop_bandwidth': 194}], ['Pi)4Iw', 82, 45, 13.56, 66, 6, 0.28, {'ott_len': 26, 'ott_percent': 667, 'stop_loss': 54, 'risk_reward': 21, 'chop_rsi_len': 24, 'chop_bandwidth': 300}], ['bcB0lZ', 57, 92, 17.61, 71, 21, 15.75, {'ott_len': 37, 'ott_percent': 610, 'stop_loss': 165, 'risk_reward': 17, 'chop_rsi_len': 44, 'chop_bandwidth': 194}], ['JmR5Ct', 41, 65, 12.4, 50, 14, 10.6, {'ott_len': 23, 'ott_percent': 705, 'stop_loss': 236, 'risk_reward': 22, 'chop_rsi_len': 20, 'chop_bandwidth': 289}], ['bcA0tZ', 59, 89, 36.11, 68, 19, 8.97, {'ott_len': 37, 'ott_percent': 610, 'stop_loss': 161, 'risk_reward': 17, 'chop_rsi_len': 48, 'chop_bandwidth': 194}], ['gc?0[Z', 61, 109, 42.23, 65, 29, 4.21, {'ott_len': 40, 'ott_percent': 610, 'stop_loss': 152, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 194}], ['^i:)WX', 72, 132, 34.8, 73, 34, 0.74, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 186}], ['^i:)VZ', 73, 127, 36.14, 73, 34, 0.74, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 31, 'chop_bandwidth': 194}], ['_c40lZ', 71, 99, 42.73, 79, 24, 14.6, {'ott_len': 35, 'ott_percent': 610, 'stop_loss': 103, 'risk_reward': 17, 'chop_rsi_len': 44, 'chop_bandwidth': 194}], ['^c40lZ', 71, 99, 42.73, 79, 24, 14.6, {'ott_len': 35, 'ott_percent': 610, 'stop_loss': 103, 'risk_reward': 17, 'chop_rsi_len': 44, 'chop_bandwidth': 194}], ['1*e0^R', 33, 258, 78.82, 29, 71, -24.61, {'ott_len': 7, 'ott_percent': 69, 'stop_loss': 320, 'risk_reward': 17, 'chop_rsi_len': 36, 'chop_bandwidth': 164}], ['^i:)TZ', 73, 129, 39.83, 73, 34, 0.74, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 30, 'chop_bandwidth': 194}], ['bcc0te', 47, 42, 42.97, 80, 5, 19.03, {'ott_len': 37, 'ott_percent': 610, 'stop_loss': 311, 'risk_reward': 17, 'chop_rsi_len': 48, 'chop_bandwidth': 234}], ['^i:)LZ', 72, 133, 35.73, 67, 37, -7.86, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 26, 'chop_bandwidth': 194}], ['rc3)aZ', 85, 104, 46.2, 81, 27, 6.75, {'ott_len': 47, 'ott_percent': 610, 'stop_loss': 99, 'risk_reward': 11, 'chop_rsi_len': 37, 'chop_bandwidth': 194}], ['fcB0tZ', 61, 81, 31.91, 68, 22, 8.7, {'ott_len': 40, 'ott_percent': 610, 'stop_loss': 165, 'risk_reward': 17, 'chop_rsi_len': 48, 'chop_bandwidth': 194}], ['bcE)tZ', 72, 94, 59.89, 73, 19, 4.81, {'ott_len': 37, 'ott_percent': 610, 'stop_loss': 178, 'risk_reward': 11, 'chop_rsi_len': 48, 'chop_bandwidth': 194}], ['^i:)>g', 76, 108, 40.08, 68, 29, -4.9, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 18, 'chop_bandwidth': 241}], ['bcB-tZ', 66, 92, 45.29, 73, 19, 10.59, {'ott_len': 37, 'ott_percent': 610, 'stop_loss': 165, 'risk_reward': 14, 'chop_rsi_len': 48, 'chop_bandwidth': 194}], ['^i:)_Z', 72, 117, 28.78, 74, 31, 2.94, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 36, 'chop_bandwidth': 194}], ['hwb(bZ', 56, 87, 16.46, 64, 25, -5.55, {'ott_len': 41, 'ott_percent': 800, 'stop_loss': 307, 'risk_reward': 10, 'chop_rsi_len': 38, 'chop_bandwidth': 194}], ['rc3)lU', 82, 122, 46.97, 83, 30, 9.99, {'ott_len': 47, 'ott_percent': 610, 'stop_loss': 99, 'risk_reward': 11, 'chop_rsi_len': 44, 'chop_bandwidth': 175}], ['rc3)lT', 83, 124, 49.94, 78, 33, 5.25, {'ott_len': 47, 'ott_percent': 610, 'stop_loss': 99, 'risk_reward': 11, 'chop_rsi_len': 44, 'chop_bandwidth': 172}], ['eI+0hg', 86, 46, 26.91, 57, 7, -3.77, {'ott_len': 39, 'ott_percent': 363, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['^i:)NZ', 73, 131, 37.16, 69, 36, -5.95, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 27, 'chop_bandwidth': 194}], ['^i:)OZ', 73, 131, 37.16, 69, 36, -5.95, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 27, 'chop_bandwidth': 194}], ['bc<)tZ', 76, 96, 45.28, 70, 20, -6.52, {'ott_len': 37, 'ott_percent': 610, 'stop_loss': 139, 'risk_reward': 11, 'chop_rsi_len': 48, 'chop_bandwidth': 194}], ['oZ+VWv', 63, 22, 26.07, 100, 1, 3.13, {'ott_len': 45, 'ott_percent': 525, 'stop_loss': 63, 'risk_reward': 51, 'chop_rsi_len': 32, 'chop_bandwidth': 296}], ['bc30tZ', 72, 96, 47.88, 68, 19, 0.06, {'ott_len': 37, 'ott_percent': 610, 'stop_loss': 99, 'risk_reward': 17, 'chop_rsi_len': 48, 'chop_bandwidth': 194}], ['9pD,cq', 65, 26, 7.77, 33, 3, -7.17, {'ott_len': 12, 'ott_percent': 734, 'stop_loss': 174, 'risk_reward': 14, 'chop_rsi_len': 39, 'chop_bandwidth': 278}], ['rw35l(', 61, 123, 25.9, 64, 37, 13.0, {'ott_len': 47, 'ott_percent': 800, 'stop_loss': 99, 'risk_reward': 22, 'chop_rsi_len': 44, 'chop_bandwidth': 10}], ['rw36l(', 61, 123, 25.9, 64, 37, 13.0, {'ott_len': 47, 'ott_percent': 800, 'stop_loss': 99, 'risk_reward': 22, 'chop_rsi_len': 44, 'chop_bandwidth': 10}], ['^i:)W`', 77, 95, 35.4, 76, 26, 6.16, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 216}], ['^i:)lZ', 76, 98, 34.81, 73, 30, 1.57, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 44, 'chop_bandwidth': 194}], ['bcB0sZ', 57, 89, 16.16, 68, 19, 9.7, {'ott_len': 37, 'ott_percent': 610, 'stop_loss': 165, 'risk_reward': 17, 'chop_rsi_len': 48, 'chop_bandwidth': 194}], ['^C:)WZ', 69, 171, 29.09, 77, 45, 20.86, {'ott_len': 35, 'ott_percent': 306, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['mc?0[Z', 61, 111, 31.34, 68, 32, 11.79, {'ott_len': 44, 'ott_percent': 610, 'stop_loss': 152, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 194}], ['ms45j\\', 69, 69, 30.1, 78, 23, 28.76, {'ott_len': 44, 'ott_percent': 762, 'stop_loss': 103, 'risk_reward': 22, 'chop_rsi_len': 43, 'chop_bandwidth': 201}], ['gn2(,g', 83, 118, 43.41, 83, 36, 6.69, {'ott_len': 40, 'ott_percent': 715, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['Y=.Faj', 57, 40, 27.71, 42, 7, -8.21, {'ott_len': 32, 'ott_percent': 249, 'stop_loss': 77, 'risk_reward': 37, 'chop_rsi_len': 37, 'chop_bandwidth': 252}], ['^i:)IZ', 72, 136, 37.25, 65, 38, -10.9, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 24, 'chop_bandwidth': 194}], ['^i:)JZ', 72, 136, 37.25, 65, 38, -10.9, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 24, 'chop_bandwidth': 194}], ['^i:)GZ', 72, 136, 37.25, 65, 38, -10.9, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 23, 'chop_bandwidth': 194}], ['^i:)HZ', 72, 136, 37.25, 65, 38, -10.9, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 23, 'chop_bandwidth': 194}], ['rc=0lZ', 67, 88, 34.13, 71, 21, 10.22, {'ott_len': 47, 'ott_percent': 610, 'stop_loss': 143, 'risk_reward': 17, 'chop_rsi_len': 44, 'chop_bandwidth': 194}], ['^i:)QZ', 73, 131, 37.16, 71, 35, -2.13, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 28, 'chop_bandwidth': 194}], ['^i:)PZ', 73, 131, 37.16, 71, 35, -2.13, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 28, 'chop_bandwidth': 194}], [';9?l[f', 39, 56, 34.13, 66, 6, 8.02, {'ott_len': 14, 'ott_percent': 211, 'stop_loss': 152, 'risk_reward': 70, 'chop_rsi_len': 34, 'chop_bandwidth': 238}], ['ocB0tZ', 60, 81, 21.52, 68, 19, 7.56, {'ott_len': 45, 'ott_percent': 610, 'stop_loss': 165, 'risk_reward': 17, 'chop_rsi_len': 48, 'chop_bandwidth': 194}], ['^i;)WZ', 72, 127, 36.76, 72, 33, 0.08, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 134, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['ww3.l(', 70, 125, 28.44, 72, 36, 7.43, {'ott_len': 50, 'ott_percent': 800, 'stop_loss': 99, 'risk_reward': 15, 'chop_rsi_len': 44, 'chop_bandwidth': 10}], ['^i:)nZ', 76, 97, 33.01, 72, 29, 0.21, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 45, 'chop_bandwidth': 194}], ['_i10[S', 70, 148, 55.29, 60, 38, -13.96, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 90, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 168}], ['^i:)iZ', 75, 103, 35.85, 73, 30, 1.57, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 42, 'chop_bandwidth': 194}], ['^i<)WZ', 72, 125, 38.44, 69, 33, -7.27, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 139, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['Nu@4Qq', 56, 48, 12.39, 80, 5, 12.12, {'ott_len': 25, 'ott_percent': 781, 'stop_loss': 156, 'risk_reward': 21, 'chop_rsi_len': 28, 'chop_bandwidth': 278}], ['eiA0rg', 81, 33, 49.11, 100, 4, 11.04, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 161, 'risk_reward': 17, 'chop_rsi_len': 47, 'chop_bandwidth': 241}], ['icB0tZ', 60, 83, 28.55, 63, 22, -1.47, {'ott_len': 41, 'ott_percent': 610, 'stop_loss': 165, 'risk_reward': 17, 'chop_rsi_len': 48, 'chop_bandwidth': 194}], ['en7(eg', 90, 54, 42.36, 88, 9, 6.39, {'ott_len': 39, 'ott_percent': 715, 'stop_loss': 116, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['bcC)tZ', 72, 94, 51.82, 73, 19, 3.88, {'ott_len': 37, 'ott_percent': 610, 'stop_loss': 170, 'risk_reward': 11, 'chop_rsi_len': 48, 'chop_bandwidth': 194}], ['em)(eg', 96, 61, 20.46, 88, 9, 1.88, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 54, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['bci0te', 46, 41, 44.43, 80, 5, 21.11, {'ott_len': 37, 'ott_percent': 610, 'stop_loss': 338, 'risk_reward': 17, 'chop_rsi_len': 48, 'chop_bandwidth': 234}], ['fX/lJu', 43, 39, 14.87, 66, 3, 9.42, {'ott_len': 40, 'ott_percent': 506, 'stop_loss': 81, 'risk_reward': 70, 'chop_rsi_len': 24, 'chop_bandwidth': 293}], ['oc(0^Z', 83, 122, 33.53, 77, 31, 1.62, {'ott_len': 45, 'ott_percent': 610, 'stop_loss': 50, 'risk_reward': 17, 'chop_rsi_len': 36, 'chop_bandwidth': 194}], ['nc(0^Z', 83, 122, 33.53, 77, 31, 1.62, {'ott_len': 45, 'ott_percent': 610, 'stop_loss': 50, 'risk_reward': 17, 'chop_rsi_len': 36, 'chop_bandwidth': 194}], ['^i()Wg', 93, 86, 20.38, 85, 21, 1.29, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['ecB0tZ', 60, 82, 23.81, 68, 22, 8.7, {'ott_len': 39, 'ott_percent': 610, 'stop_loss': 165, 'risk_reward': 17, 'chop_rsi_len': 48, 'chop_bandwidth': 194}], ['ei+Nrg', 78, 33, 48.82, 75, 4, 6.46, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 44, 'chop_rsi_len': 47, 'chop_bandwidth': 241}], ['^i:)Wk', 82, 62, 30.28, 100, 9, 12.8, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 256}], ['^i:)W_', 76, 101, 30.86, 74, 27, 4.04, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 212}], ['[wi.t*', 34, 138, -39.53, 38, 44, -4.69, {'ott_len': 33, 'ott_percent': 800, 'stop_loss': 338, 'risk_reward': 15, 'chop_rsi_len': 48, 'chop_bandwidth': 17}], ['^i:)sb', 85, 60, 38.03, 100, 8, 11.3, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 48, 'chop_bandwidth': 223}], ['gn2()g', 83, 116, 42.21, 83, 36, 6.69, {'ott_len': 40, 'ott_percent': 715, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 6, 'chop_bandwidth': 241}], ['bcB0qZ', 57, 89, 16.16, 68, 19, 9.7, {'ott_len': 37, 'ott_percent': 610, 'stop_loss': 165, 'risk_reward': 17, 'chop_rsi_len': 47, 'chop_bandwidth': 194}], ['^i;)W_', 76, 101, 34.74, 74, 27, 4.67, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 134, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 212}], ['bc20tZ', 75, 96, 49.5, 65, 20, -7.15, {'ott_len': 37, 'ott_percent': 610, 'stop_loss': 94, 'risk_reward': 17, 'chop_rsi_len': 48, 'chop_bandwidth': 194}], ['Yi:)Wg', 80, 80, 40.28, 75, 16, 1.13, {'ott_len': 32, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['ei+Mrg', 78, 33, 46.47, 75, 4, 6.27, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 43, 'chop_rsi_len': 47, 'chop_bandwidth': 241}], ['m1?)[Z', 62, 178, 32.81, 71, 35, 6.62, {'ott_len': 44, 'ott_percent': 135, 'stop_loss': 152, 'risk_reward': 11, 'chop_rsi_len': 34, 'chop_bandwidth': 194}], ['Ou+?Rw', 72, 37, 23.5, 75, 4, 4.11, {'ott_len': 26, 'ott_percent': 781, 'stop_loss': 63, 'risk_reward': 30, 'chop_rsi_len': 29, 'chop_bandwidth': 300}], ['Yi:)W_', 75, 106, 37.71, 73, 26, 0.68, {'ott_len': 32, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 212}], ['bc>)tZ', 76, 96, 54.08, 70, 20, -5.79, {'ott_len': 37, 'ott_percent': 610, 'stop_loss': 147, 'risk_reward': 11, 'chop_rsi_len': 48, 'chop_bandwidth': 194}], ['^i:)FZ', 72, 141, 37.84, 64, 39, -13.11, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 22, 'chop_bandwidth': 194}], ['^i:)EZ', 72, 141, 37.84, 64, 39, -13.11, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 22, 'chop_bandwidth': 194}], ['^i:)Wg', 82, 70, 40.5, 75, 16, 2.6, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['^i:)ig', 88, 53, 42.6, 100, 4, 5.5, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 42, 'chop_bandwidth': 241}], ['ii,0hg', 89, 49, 39.62, 85, 7, 4.8, {'ott_len': 41, 'ott_percent': 667, 'stop_loss': 68, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['ci*([h', 94, 73, 24.25, 87, 16, 2.0, {'ott_len': 38, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 10, 'chop_rsi_len': 34, 'chop_bandwidth': 245}], ['gm4(:v', 90, 71, 47.17, 81, 16, 1.9, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 15, 'chop_bandwidth': 296}], ['^i*7WZ', 71, 127, 38.55, 66, 33, -1.09, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 23, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['^i:):Z', 70, 150, 35.95, 64, 42, -12.79, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 15, 'chop_bandwidth': 194}], ['^i:)9Z', 70, 150, 35.95, 64, 42, -12.79, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 15, 'chop_bandwidth': 194}], ['^i:)@Z', 71, 145, 33.68, 62, 40, -15.11, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 19, 'chop_bandwidth': 194}], ['rc3)lZ', 85, 95, 39.58, 86, 23, 11.47, {'ott_len': 47, 'ott_percent': 610, 'stop_loss': 99, 'risk_reward': 11, 'chop_rsi_len': 44, 'chop_bandwidth': 194}], ['^i>)WZ', 70, 125, 36.75, 69, 33, -6.11, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 147, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['=9?l[f', 37, 56, 32.14, 57, 7, 6.15, {'ott_len': 15, 'ott_percent': 211, 'stop_loss': 152, 'risk_reward': 70, 'chop_rsi_len': 34, 'chop_bandwidth': 238}], ['ei+0uc', 91, 49, 36.95, 85, 7, 4.3, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 49, 'chop_bandwidth': 227}], ['am7(lg', 96, 51, 54.44, 75, 4, 0.75, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 116, 'risk_reward': 10, 'chop_rsi_len': 44, 'chop_bandwidth': 241}], ['^i:)rZ', 76, 93, 31.24, 70, 24, -0.05, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 47, 'chop_bandwidth': 194}], ['bwU.t*', 40, 143, -31.14, 51, 39, -1.56, {'ott_len': 37, 'ott_percent': 800, 'stop_loss': 249, 'risk_reward': 15, 'chop_rsi_len': 48, 'chop_bandwidth': 17}], ['^i=)W_', 75, 99, 39.28, 70, 27, -2.61, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 143, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 212}], ['^i))Wg', 92, 84, 23.08, 85, 20, 1.44, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 54, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['am7(fi', 94, 53, 52.67, 75, 4, 0.75, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 116, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 249}], ['^i:)6Z', 69, 152, 31.81, 64, 42, -12.79, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 13, 'chop_bandwidth': 194}], ['<_)A8(', 49, 324, 8.29, 62, 78, 28.74, {'ott_len': 14, 'ott_percent': 572, 'stop_loss': 54, 'risk_reward': 32, 'chop_rsi_len': 14, 'chop_bandwidth': 10}], ['rc+0lZ', 84, 95, 40.55, 82, 23, 9.03, {'ott_len': 47, 'ott_percent': 610, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 44, 'chop_bandwidth': 194}], ['^i:)\\g', 83, 65, 35.63, 84, 13, 8.4, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 35, 'chop_bandwidth': 241}], ['ei+0uN', 78, 142, 47.4, 66, 39, -8.34, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 49, 'chop_bandwidth': 149}], ['qX44Lm', 66, 59, 12.01, 81, 11, 7.65, {'ott_len': 46, 'ott_percent': 506, 'stop_loss': 103, 'risk_reward': 21, 'chop_rsi_len': 26, 'chop_bandwidth': 263}], ['^i:)8Z', 70, 151, 34.87, 64, 42, -12.79, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 14, 'chop_bandwidth': 194}], ['ei+,hg', 92, 51, 27.85, 88, 9, 4.8, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 14, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['ei+-hg', 92, 51, 27.85, 88, 9, 4.8, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 14, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['ei+0hj', 92, 39, 28.72, 75, 4, 1.27, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 252}], ['hw?.[v', 90, 20, 39.81, 50, 2, -2.98, {'ott_len': 41, 'ott_percent': 800, 'stop_loss': 152, 'risk_reward': 15, 'chop_rsi_len': 34, 'chop_bandwidth': 296}], ['B(+KqJ', 36, 482, 11.62, 40, 116, 14.64, {'ott_len': 18, 'ott_percent': 50, 'stop_loss': 63, 'risk_reward': 41, 'chop_rsi_len': 47, 'chop_bandwidth': 135}], ['am7(cg', 92, 56, 51.31, 85, 7, 4.04, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 116, 'risk_reward': 10, 'chop_rsi_len': 39, 'chop_bandwidth': 241}], ['am7(dg', 92, 56, 51.31, 85, 7, 4.04, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 116, 'risk_reward': 10, 'chop_rsi_len': 39, 'chop_bandwidth': 241}], ['ei)0hg', 91, 49, 28.34, 88, 9, 5.19, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 54, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['ei+0hk', 92, 38, 27.46, 75, 4, 1.27, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 256}], ['@u+GPG', 47, 205, 19.53, 42, 63, -18.13, {'ott_len': 17, 'ott_percent': 781, 'stop_loss': 63, 'risk_reward': 37, 'chop_rsi_len': 28, 'chop_bandwidth': 124}], ['gn2(]g', 93, 59, 39.75, 92, 13, 8.45, {'ott_len': 40, 'ott_percent': 715, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 35, 'chop_bandwidth': 241}], ['gm2([i', 94, 53, 37.99, 90, 11, 6.55, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 34, 'chop_bandwidth': 249}], ['hm2(Lr', 95, 49, 37.44, 88, 9, 4.75, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 282}], ['am7(jg', 94, 53, 52.67, 75, 4, 0.75, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 116, 'risk_reward': 10, 'chop_rsi_len': 43, 'chop_bandwidth': 241}], ['gm4(hg', 95, 48, 41.66, 85, 7, 3.43, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['_u0G[G', 46, 145, 14.88, 47, 46, -0.84, {'ott_len': 35, 'ott_percent': 781, 'stop_loss': 85, 'risk_reward': 37, 'chop_rsi_len': 34, 'chop_bandwidth': 124}], ['ei+0rJ', 77, 163, 51.05, 67, 43, -6.41, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 47, 'chop_bandwidth': 135}], ['vc(0^Z', 83, 110, 24.66, 83, 24, 5.98, {'ott_len': 49, 'ott_percent': 610, 'stop_loss': 50, 'risk_reward': 17, 'chop_rsi_len': 36, 'chop_bandwidth': 194}], ['^i:)5Z', 69, 153, 30.82, 64, 42, -12.79, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 12, 'chop_bandwidth': 194}], ['^i:)2Z', 68, 153, 27.98, 63, 41, -13.95, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 11, 'chop_bandwidth': 194}], ['gm4(eg', 95, 48, 41.66, 87, 8, 4.4, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['gm4(fg', 95, 48, 41.66, 87, 8, 4.4, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['am7(ci', 94, 54, 54.31, 75, 4, 0.75, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 116, 'risk_reward': 10, 'chop_rsi_len': 39, 'chop_bandwidth': 249}], ['^i:)[g', 82, 68, 36.78, 84, 13, 8.4, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['ei+0dg', 92, 50, 38.31, 88, 9, 6.38, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 39, 'chop_bandwidth': 241}], ['gm4(*g', 79, 124, 32.05, 73, 34, -4.29, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 6, 'chop_bandwidth': 241}], ['gm4()g', 79, 124, 32.05, 73, 34, -4.29, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 6, 'chop_bandwidth': 241}], ['^i:5Wg', 66, 66, 42.06, 62, 16, 2.47, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 22, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['cm2(hg', 92, 55, 35.72, 85, 7, 2.94, {'ott_len': 38, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['cm2(gg', 92, 55, 35.72, 85, 7, 2.94, {'ott_len': 38, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['^iF)WZ', 65, 124, 39.03, 67, 31, -1.1, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 183, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['Kf,Pob', 56, 51, 33.12, 36, 11, -5.16, {'ott_len': 23, 'ott_percent': 639, 'stop_loss': 68, 'risk_reward': 45, 'chop_rsi_len': 45, 'chop_bandwidth': 223}], ['ei+0hL', 77, 162, 47.47, 67, 43, -6.41, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 142}], ['bwV.t*', 39, 143, -32.03, 48, 39, -19.2, {'ott_len': 37, 'ott_percent': 800, 'stop_loss': 254, 'risk_reward': 15, 'chop_rsi_len': 48, 'chop_bandwidth': 17}], ['gm4(Au', 90, 61, 37.67, 92, 13, 9.46, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 19, 'chop_bandwidth': 293}], ['gn2(@u', 92, 57, 37.39, 92, 13, 8.45, {'ott_len': 40, 'ott_percent': 715, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 19, 'chop_bandwidth': 293}], ['gm2(cg', 93, 49, 33.33, 90, 10, 5.65, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 39, 'chop_bandwidth': 241}], ['gm2(dg', 93, 49, 33.33, 90, 10, 5.65, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 39, 'chop_bandwidth': 241}], ['em+(eg', 96, 58, 24.68, 88, 9, 2.51, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 63, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['gn2(1g', 83, 116, 39.49, 83, 36, 6.69, {'ott_len': 40, 'ott_percent': 715, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 10, 'chop_bandwidth': 241}], ['hm2(Zl', 95, 48, 36.27, 88, 9, 4.75, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 33, 'chop_bandwidth': 260}], ['gn2(dg', 92, 51, 30.51, 88, 9, 4.81, {'ott_len': 40, 'ott_percent': 715, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 39, 'chop_bandwidth': 241}], ['gv+0rg', 92, 40, 32.95, 85, 7, 1.6, {'ott_len': 40, 'ott_percent': 791, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 47, 'chop_bandwidth': 241}], ['ei+0hO', 78, 151, 49.63, 66, 39, -8.34, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 153}], ['wk3)lZ', 85, 90, 40.99, 88, 25, 15.72, {'ott_len': 50, 'ott_percent': 686, 'stop_loss': 99, 'risk_reward': 11, 'chop_rsi_len': 44, 'chop_bandwidth': 194}], ['ei+0rc', 92, 52, 41.05, 87, 8, 5.33, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 47, 'chop_bandwidth': 227}], ['gm4(ig', 95, 46, 39.01, 80, 5, 1.49, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 42, 'chop_bandwidth': 241}], ['^i:-WV', 67, 138, 45.81, 69, 36, 0.5, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 14, 'chop_rsi_len': 32, 'chop_bandwidth': 179}], ['hm*(bZ', 90, 111, 31.41, 83, 30, -0.28, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 59, 'risk_reward': 10, 'chop_rsi_len': 38, 'chop_bandwidth': 194}], ['ei+0bM', 77, 162, 47.47, 67, 43, -6.41, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 38, 'chop_bandwidth': 146}], ['ei+0dP', 78, 145, 43.85, 66, 39, -8.34, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 39, 'chop_bandwidth': 157}], ['ei+0\\P', 78, 151, 42.8, 66, 39, -8.34, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 35, 'chop_bandwidth': 157}], ['bwD.t*', 53, 147, 5.46, 53, 39, -13.04, {'ott_len': 37, 'ott_percent': 800, 'stop_loss': 174, 'risk_reward': 15, 'chop_rsi_len': 48, 'chop_bandwidth': 17}], ['rm2(Zh', 93, 60, 39.74, 87, 16, 6.68, {'ott_len': 47, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 33, 'chop_bandwidth': 245}], ['hm2(aZ', 85, 104, 45.66, 82, 28, 5.27, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 37, 'chop_bandwidth': 194}], ['^i/0Wg', 82, 70, 41.82, 75, 16, 5.2, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 81, 'risk_reward': 17, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['rn2(eg', 91, 56, 30.48, 87, 8, 4.12, {'ott_len': 47, 'ott_percent': 715, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['ju*0[g', 86, 60, 25.4, 83, 18, 4.07, {'ott_len': 42, 'ott_percent': 781, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['gm2(eh', 95, 46, 33.92, 80, 5, 1.23, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 245}], ['^iB)eZ', 71, 105, 46.74, 70, 31, 0.75, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 165, 'risk_reward': 11, 'chop_rsi_len': 40, 'chop_bandwidth': 194}], ['^i00,g', 73, 127, 49.83, 54, 31, -12.38, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 85, 'risk_reward': 17, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['gn2(@g', 86, 94, 41.63, 82, 29, 3.58, {'ott_len': 40, 'ott_percent': 715, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 19, 'chop_bandwidth': 241}], ['gl4(gg', 93, 49, 38.04, 85, 7, 3.37, {'ott_len': 40, 'ott_percent': 696, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['gl4(hg', 93, 49, 38.04, 85, 7, 3.37, {'ott_len': 40, 'ott_percent': 696, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['gm2(hg', 95, 48, 36.24, 85, 7, 2.97, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['gm2(gg', 95, 48, 36.24, 85, 7, 2.97, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['ei+0:w', 87, 65, 40.4, 82, 17, 6.69, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 15, 'chop_bandwidth': 300}], ['gm2(ge', 94, 53, 37.98, 90, 11, 6.55, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 234}], ['hm2(^Z', 85, 104, 45.66, 79, 29, 3.55, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 36, 'chop_bandwidth': 194}], ['gm1(gg', 95, 49, 34.99, 85, 7, 2.77, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 90, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['am7(ng', 96, 50, 52.78, 75, 4, 0.75, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 116, 'risk_reward': 10, 'chop_rsi_len': 45, 'chop_bandwidth': 241}], ['ei+0rM', 78, 155, 45.64, 65, 40, -9.11, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 47, 'chop_bandwidth': 146}], ['gm.(eg', 94, 50, 24.64, 87, 8, 2.82, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 77, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['am4(kg', 94, 54, 45.12, 75, 4, 0.49, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 43, 'chop_bandwidth': 241}], ['ei+0hP', 79, 143, 48.23, 66, 39, -8.34, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 157}], ['^iA0/g', 60, 120, 57.13, 48, 31, -19.38, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 161, 'risk_reward': 17, 'chop_rsi_len': 9, 'chop_bandwidth': 241}], ['gn2(@s', 92, 66, 41.56, 92, 13, 8.45, {'ott_len': 40, 'ott_percent': 715, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 19, 'chop_bandwidth': 285}], ['gm2(eg', 95, 48, 36.24, 87, 8, 3.85, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['gm4(lg', 95, 44, 36.42, 75, 4, 0.54, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 44, 'chop_bandwidth': 241}], ['gm4(mg', 95, 44, 36.42, 75, 4, 0.54, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 44, 'chop_bandwidth': 241}], ['gm4(<g', 83, 107, 41.0, 75, 32, -3.09, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 16, 'chop_bandwidth': 241}], ['gm4(;g', 83, 107, 41.0, 75, 32, -3.09, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 16, 'chop_bandwidth': 241}], ['hm2(Tg', 92, 69, 45.95, 93, 16, 11.21, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 30, 'chop_bandwidth': 241}], ['hm2(]Z', 86, 108, 50.74, 79, 29, 3.55, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 35, 'chop_bandwidth': 194}], ['hm2(\\Z', 86, 108, 50.74, 79, 29, 3.55, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 35, 'chop_bandwidth': 194}], ['ei+0hN', 77, 154, 44.21, 66, 39, -8.34, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 149}], ['hm2(bZ', 86, 103, 50.19, 82, 28, 5.27, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 38, 'chop_bandwidth': 194}], ['im2(bZ', 86, 103, 50.19, 82, 28, 5.27, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 38, 'chop_bandwidth': 194}], ['^iA0Wg', 69, 66, 61.33, 62, 16, -0.53, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 161, 'risk_reward': 17, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['ei+0hK', 77, 164, 47.66, 65, 44, -8.82, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 138}], ['ei+0rK', 77, 159, 47.91, 65, 41, -8.23, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 47, 'chop_bandwidth': 138}], ['ei+0rL', 77, 157, 45.03, 65, 41, -8.23, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 47, 'chop_bandwidth': 142}], ['hm2(ec', 93, 64, 46.9, 92, 13, 8.39, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 227}], ['rm2(Zl', 94, 50, 32.36, 90, 10, 5.84, {'ott_len': 47, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 33, 'chop_bandwidth': 260}], ['hm1(bZ', 86, 103, 45.62, 82, 28, 4.49, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 90, 'risk_reward': 10, 'chop_rsi_len': 38, 'chop_bandwidth': 194}], ['gl4(eg', 94, 50, 39.35, 87, 8, 4.35, {'ott_len': 40, 'ott_percent': 696, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['rm2(Zj', 94, 53, 35.8, 85, 14, 4.87, {'ott_len': 47, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 33, 'chop_bandwidth': 252}], ['si()[Z', 89, 116, 17.2, 81, 33, -0.9, {'ott_len': 48, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 34, 'chop_bandwidth': 194}], ['gn2(Pg', 91, 69, 41.35, 90, 22, 12.73, {'ott_len': 40, 'ott_percent': 715, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 28, 'chop_bandwidth': 241}], ['hm2(8g', 86, 104, 49.2, 86, 29, 8.57, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 14, 'chop_bandwidth': 241}], ['gl4(bg', 92, 52, 37.66, 90, 10, 6.34, {'ott_len': 40, 'ott_percent': 696, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 38, 'chop_bandwidth': 241}], ['ci+0hg', 92, 51, 39.51, 88, 9, 6.37, {'ott_len': 38, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['gn2(@k', 89, 86, 48.61, 82, 29, 3.58, {'ott_len': 40, 'ott_percent': 715, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 19, 'chop_bandwidth': 256}], ['gl2(hg', 94, 50, 34.02, 85, 7, 2.92, {'ott_len': 40, 'ott_percent': 696, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['gl2(gg', 94, 50, 34.02, 85, 7, 2.92, {'ott_len': 40, 'ott_percent': 696, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['d3*eVl', 44, 38, 16.58, 57, 7, 2.66, {'ott_len': 38, 'ott_percent': 154, 'stop_loss': 59, 'risk_reward': 64, 'chop_rsi_len': 31, 'chop_bandwidth': 260}], ['gn2(Ug', 93, 65, 47.11, 94, 17, 12.23, {'ott_len': 40, 'ott_percent': 715, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 31, 'chop_bandwidth': 241}], ['hm2(<g', 87, 100, 48.4, 85, 28, 7.65, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 16, 'chop_bandwidth': 241}], ['hm2(+g', 83, 114, 43.05, 78, 33, 5.45, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['eh+0hg', 94, 50, 42.53, 87, 8, 5.28, {'ott_len': 39, 'ott_percent': 658, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['ei+0hM', 77, 159, 47.91, 65, 40, -9.11, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 146}], ['hm2(eY', 85, 104, 45.66, 82, 28, 5.27, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 190}], ['^i:)Wu', 88, 27, 23.26, 100, 3, 4.1, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 293}], ['gn2(gf', 92, 51, 30.51, 87, 8, 3.92, {'ott_len': 40, 'ott_percent': 715, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 238}], ['gm2(jg', 95, 44, 31.65, 75, 4, 0.37, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 43, 'chop_bandwidth': 241}], ['rcC)lZ', 75, 90, 49.22, 76, 21, 7.93, {'ott_len': 47, 'ott_percent': 610, 'stop_loss': 170, 'risk_reward': 11, 'chop_rsi_len': 44, 'chop_bandwidth': 194}], ['ei+09s', 87, 73, 45.99, 82, 17, 6.69, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 15, 'chop_bandwidth': 285}], ['ei+0hf', 91, 49, 36.95, 88, 9, 6.38, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 238}], ['hm2(bh', 95, 49, 37.44, 88, 9, 4.75, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 38, 'chop_bandwidth': 245}], ['bm2(hg', 91, 58, 34.87, 80, 5, 1.18, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['bm2(gg', 91, 58, 34.87, 80, 5, 1.18, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['gm4(AQ', 77, 159, 35.7, 69, 43, -6.09, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 19, 'chop_bandwidth': 161}], ['ei+0rf', 92, 40, 29.99, 75, 4, 1.27, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 47, 'chop_bandwidth': 238}], ['em7(eh', 94, 52, 50.75, 80, 5, 1.86, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 116, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 245}], ['ei+0qg', 92, 38, 27.46, 75, 4, 1.27, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 47, 'chop_bandwidth': 241}], ['ei+0rg', 92, 38, 27.46, 75, 4, 1.27, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 47, 'chop_bandwidth': 241}], ['^iE)WZ', 66, 124, 40.7, 68, 32, -1.31, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 178, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['em4(gg', 94, 54, 44.85, 85, 7, 3.41, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['em4(hg', 94, 54, 44.85, 85, 7, 3.41, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['gm4(AD', 75, 169, 27.75, 66, 48, -10.21, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 19, 'chop_bandwidth': 113}], ['hm2(Z[', 85, 107, 49.45, 80, 30, 4.44, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 33, 'chop_bandwidth': 197}], ['hm2(@g', 87, 94, 44.44, 84, 25, 4.92, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 19, 'chop_bandwidth': 241}], ['cn2(eg', 92, 57, 36.69, 87, 8, 3.89, {'ott_len': 38, 'ott_percent': 715, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['hv2(Zg', 92, 64, 41.88, 87, 16, 2.19, {'ott_len': 41, 'ott_percent': 791, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 33, 'chop_bandwidth': 241}], ['am7(fg', 92, 56, 51.31, 80, 5, 1.83, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 116, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['ei+0pg', 92, 38, 27.46, 75, 4, 1.27, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 46, 'chop_bandwidth': 241}], ['^iB)`Z', 69, 112, 42.84, 70, 31, 0.75, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 165, 'risk_reward': 11, 'chop_rsi_len': 37, 'chop_bandwidth': 194}], ['gm4(L_', 84, 111, 48.68, 74, 31, -4.0, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 212}], ['bwQ.t*', 44, 143, -20.17, 51, 39, -6.18, {'ott_len': 37, 'ott_percent': 800, 'stop_loss': 232, 'risk_reward': 15, 'chop_rsi_len': 48, 'chop_bandwidth': 17}], ['hm2(:g', 87, 100, 48.4, 86, 29, 8.57, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 15, 'chop_bandwidth': 241}], ['ei+09u', 87, 72, 44.55, 82, 17, 6.69, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 15, 'chop_bandwidth': 293}], ['gm4(ua', 92, 56, 42.01, 90, 10, 6.4, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 219}], ['ei+0:u', 87, 72, 44.55, 82, 17, 6.69, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 15, 'chop_bandwidth': 293}], ['hm2(eZ', 86, 102, 48.91, 82, 28, 5.27, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 194}], ['im2(eZ', 86, 102, 48.91, 82, 28, 5.27, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 194}], ['hm2(fZ', 86, 102, 48.91, 82, 28, 5.27, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 194}], ['hm1(eZ', 86, 102, 44.43, 82, 28, 4.49, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 90, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 194}], ['ei+0rI', 77, 165, 49.12, 65, 46, -9.87, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 47, 'chop_bandwidth': 131}], ['_u?9[G', 39, 145, -28.62, 43, 46, -22.93, {'ott_len': 35, 'ott_percent': 781, 'stop_loss': 152, 'risk_reward': 25, 'chop_rsi_len': 34, 'chop_bandwidth': 124}], ['ei+06w', 87, 72, 44.55, 82, 17, 6.69, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 13, 'chop_bandwidth': 300}], ['hm2(cZ', 86, 103, 50.19, 82, 28, 5.27, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 39, 'chop_bandwidth': 194}], ['hm2(dZ', 86, 103, 50.19, 82, 28, 5.27, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 39, 'chop_bandwidth': 194}], ['gn2(hg', 92, 51, 30.51, 85, 7, 3.03, {'ott_len': 40, 'ott_percent': 715, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['gm4(2g', 82, 118, 41.18, 74, 35, -3.39, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 11, 'chop_bandwidth': 241}], ['ei+06u', 86, 75, 43.27, 83, 18, 7.74, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 13, 'chop_bandwidth': 293}], ['ii*0ig', 92, 50, 34.67, 85, 7, 3.95, {'ott_len': 41, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 42, 'chop_bandwidth': 241}], ['Sr(@HX', 61, 149, 25.36, 63, 38, 3.18, {'ott_len': 28, 'ott_percent': 753, 'stop_loss': 50, 'risk_reward': 31, 'chop_rsi_len': 23, 'chop_bandwidth': 186}], ['ii*0pg', 90, 44, 27.45, 75, 4, 1.13, {'ott_len': 41, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 46, 'chop_bandwidth': 241}], ['jm4(Ag', 86, 90, 42.65, 76, 26, 0.18, {'ott_len': 42, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 19, 'chop_bandwidth': 241}], ['gm4(ud', 95, 45, 37.71, 75, 4, 0.54, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 230}], ['gm4(ng', 95, 43, 35.12, 75, 4, 0.54, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 45, 'chop_bandwidth': 241}], ['hm2(Rg', 92, 70, 47.2, 88, 18, 8.82, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 29, 'chop_bandwidth': 241}], ['hm2(Sg', 92, 70, 47.2, 88, 18, 8.82, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 29, 'chop_bandwidth': 241}], ['hm2(Z]', 86, 101, 47.65, 85, 27, 6.73, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 33, 'chop_bandwidth': 205}], ['hm2(>g', 87, 97, 48.19, 84, 25, 4.92, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 18, 'chop_bandwidth': 241}], ['rm2(eg', 94, 53, 35.8, 87, 8, 4.05, {'ott_len': 47, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['rn2(gg', 90, 55, 29.37, 87, 8, 4.12, {'ott_len': 47, 'ott_percent': 715, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['gn2(Eg', 88, 88, 47.41, 82, 29, 3.58, {'ott_len': 40, 'ott_percent': 715, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 22, 'chop_bandwidth': 241}], ['ii*0rg', 90, 44, 27.45, 75, 4, 1.13, {'ott_len': 41, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 47, 'chop_bandwidth': 241}], ['^i42lT', 64, 128, 46.26, 64, 34, -0.73, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 103, 'risk_reward': 19, 'chop_rsi_len': 44, 'chop_bandwidth': 172}], ['hm*(eZ', 90, 110, 30.74, 83, 30, -0.28, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 59, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 194}], ['gm4(9g', 83, 108, 42.33, 75, 33, -2.17, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 15, 'chop_bandwidth': 241}], ['gm4(:g', 83, 108, 42.33, 75, 33, -2.17, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 15, 'chop_bandwidth': 241}], ['fm4(:g', 83, 108, 42.33, 75, 33, -2.17, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 15, 'chop_bandwidth': 241}], ['ei+0hJ', 77, 165, 49.12, 63, 47, -13.12, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 135}], ['hm2(be', 95, 61, 47.84, 92, 13, 8.39, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 38, 'chop_bandwidth': 234}], ['gs4([g', 87, 65, 34.61, 87, 16, 7.51, {'ott_len': 40, 'ott_percent': 762, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['el6(eg', 92, 55, 46.59, 87, 8, 4.88, {'ott_len': 39, 'ott_percent': 696, 'stop_loss': 112, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['ji+0hg', 92, 50, 38.03, 85, 7, 3.86, {'ott_len': 42, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['^i:)-Z', 69, 149, 30.06, 62, 40, -15.1, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 8, 'chop_bandwidth': 194}], ['hm2(b[', 86, 102, 48.91, 85, 27, 6.73, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 38, 'chop_bandwidth': 197}], ['hm2(ee', 94, 58, 44.09, 90, 11, 6.56, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 234}], ['em7(eg', 94, 53, 52.37, 87, 8, 5.19, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 116, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['em4)eg', 94, 53, 50.98, 87, 8, 5.14, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 11, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['rm4(eg', 94, 52, 40.26, 87, 8, 4.6, {'ott_len': 47, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['^iB)jZ', 73, 97, 52.69, 70, 30, -0.98, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 165, 'risk_reward': 11, 'chop_rsi_len': 43, 'chop_bandwidth': 194}], ['vi()tZ', 89, 106, 13.52, 85, 20, 0.54, {'ott_len': 49, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 48, 'chop_bandwidth': 194}], ['^i:)(Z', 71, 145, 36.34, 64, 39, -12.69, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 5, 'chop_bandwidth': 194}], ['^i:)Wv', 88, 27, 23.26, 100, 3, 4.1, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 296}], ['Kw+.3v', 78, 110, 15.0, 78, 32, 3.2, {'ott_len': 23, 'ott_percent': 800, 'stop_loss': 63, 'risk_reward': 15, 'chop_rsi_len': 11, 'chop_bandwidth': 296}], ['am8(fg', 92, 56, 54.92, 80, 5, 1.98, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 121, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['^i:3Wg', 69, 66, 55.63, 62, 16, -0.08, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 20, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['am7(]g', 90, 63, 51.38, 75, 8, 0.43, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 116, 'risk_reward': 10, 'chop_rsi_len': 35, 'chop_bandwidth': 241}], ['^iB)gZ', 71, 101, 44.19, 70, 30, -0.98, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 165, 'risk_reward': 11, 'chop_rsi_len': 41, 'chop_bandwidth': 194}], ['ji*0mg', 93, 46, 33.98, 75, 4, 0.68, {'ott_len': 42, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 44, 'chop_bandwidth': 241}], ['gm4(7g', 82, 112, 37.49, 75, 33, -2.17, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 14, 'chop_bandwidth': 241}], ['hm2(Sh', 94, 68, 49.41, 93, 15, 10.26, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 29, 'chop_bandwidth': 245}], ['hm2(2g', 85, 111, 50.85, 83, 30, 6.33, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 11, 'chop_bandwidth': 241}], ['em8(eg', 94, 53, 56.19, 87, 8, 5.5, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 121, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['^i@0[g', 68, 64, 48.39, 69, 13, 3.65, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 156, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['^i*TWg', 65, 66, 53.64, 56, 16, 2.84, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 49, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['am7(^g', 90, 63, 51.38, 75, 8, 0.43, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 116, 'risk_reward': 10, 'chop_rsi_len': 36, 'chop_bandwidth': 241}], ['an7(ug', 95, 43, 40.46, 75, 4, 0.81, {'ott_len': 37, 'ott_percent': 715, 'stop_loss': 116, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['ii00hg', 87, 49, 38.64, 71, 7, -1.3, {'ott_len': 41, 'ott_percent': 667, 'stop_loss': 85, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['hm2(Ze', 92, 69, 45.95, 93, 16, 11.21, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 33, 'chop_bandwidth': 234}], ['im4(:g', 85, 99, 53.08, 82, 29, 5.86, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 15, 'chop_bandwidth': 241}], ['em5(eg', 94, 54, 48.32, 87, 8, 4.7, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 108, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['em2(gg', 94, 55, 40.0, 85, 7, 2.95, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['_w?.6v', 69, 63, 30.31, 65, 23, 2.83, {'ott_len': 35, 'ott_percent': 800, 'stop_loss': 152, 'risk_reward': 15, 'chop_rsi_len': 13, 'chop_bandwidth': 296}], ['ei+0wg', 93, 32, 23.56, 75, 4, 1.27, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 50, 'chop_bandwidth': 241}], ['gm2(ng', 95, 43, 30.52, 75, 4, 0.37, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 45, 'chop_bandwidth': 241}], ['gm2(og', 95, 43, 30.52, 75, 4, 0.37, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 45, 'chop_bandwidth': 241}], ['gm4(L.', 74, 171, 25.25, 65, 49, -11.5, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 32}], ['gm4(L0', 74, 171, 25.25, 65, 49, -11.5, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 39}], ['gm4(LA', 74, 171, 25.25, 65, 49, -11.5, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 102}], ['gm4(L-', 74, 171, 25.25, 65, 49, -11.5, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 28}], ['gm4(A8', 74, 171, 25.25, 65, 49, -11.5, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 19, 'chop_bandwidth': 69}], ['gm4(A1', 74, 171, 25.25, 65, 49, -11.5, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 19, 'chop_bandwidth': 43}], ['ei+0wG', 76, 168, 46.67, 63, 47, -13.12, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 50, 'chop_bandwidth': 124}], ['_i10-g', 73, 125, 60.36, 53, 32, -17.29, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 90, 'risk_reward': 17, 'chop_rsi_len': 8, 'chop_bandwidth': 241}], ['hm2(Tm', 94, 54, 39.25, 88, 9, 4.75, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 30, 'chop_bandwidth': 263}], ['gm4(Tg', 88, 68, 37.67, 81, 16, 3.47, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 30, 'chop_bandwidth': 241}], ['^i:-gZ', 71, 101, 48.17, 70, 30, 1.3, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 14, 'chop_rsi_len': 41, 'chop_bandwidth': 194}], ['em4(kg', 94, 52, 42.14, 75, 4, 0.52, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 43, 'chop_bandwidth': 241}], ['gm2(:g', 83, 109, 33.7, 78, 33, 0.51, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 15, 'chop_bandwidth': 241}], ['ei+0uG', 76, 168, 46.67, 63, 47, -13.12, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 49, 'chop_bandwidth': 124}], ['ei+0vG', 76, 168, 46.67, 63, 47, -13.12, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 49, 'chop_bandwidth': 124}], ['wi00[g', 89, 55, 49.88, 83, 12, 8.32, {'ott_len': 50, 'ott_percent': 667, 'stop_loss': 85, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['hm2(T_', 87, 97, 49.59, 85, 27, 6.73, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 30, 'chop_bandwidth': 212}], ['ii*1[g', 86, 60, 34.3, 81, 11, 4.01, {'ott_len': 41, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 18, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['hm1(eg', 95, 49, 35.02, 87, 8, 3.62, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 90, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['emF(eg', 86, 50, 55.52, 83, 6, 1.56, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 183, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['ji*0kg', 93, 47, 35.21, 80, 5, 1.61, {'ott_len': 42, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 43, 'chop_bandwidth': 241}], ['gl4(ng', 93, 47, 35.46, 75, 4, 0.48, {'ott_len': 40, 'ott_percent': 696, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 45, 'chop_bandwidth': 241}], ['gl4(og', 93, 47, 35.46, 75, 4, 0.48, {'ott_len': 40, 'ott_percent': 696, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 45, 'chop_bandwidth': 241}], ['gm4(L=', 74, 171, 25.25, 65, 49, -11.5, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 87}], ['gm4(L<', 74, 171, 25.25, 65, 49, -11.5, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 83}], ['gm4(A@', 74, 171, 25.25, 65, 49, -11.5, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 19, 'chop_bandwidth': 98}], ['=)W54n', 33, 420, 14.92, 39, 98, 36.59, {'ott_len': 15, 'ott_percent': 59, 'stop_loss': 258, 'risk_reward': 22, 'chop_rsi_len': 12, 'chop_bandwidth': 267}], ['ei+0he', 90, 55, 40.28, 90, 10, 7.43, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 234}], ['ei+06v', 86, 75, 43.27, 82, 17, 6.69, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 13, 'chop_bandwidth': 296}], ['hm2(eg', 95, 49, 37.44, 87, 8, 3.86, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['rm2(kg', 95, 48, 33.51, 83, 6, 2.29, {'ott_len': 47, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 43, 'chop_bandwidth': 241}], ['^i80Wg', 74, 67, 43.62, 68, 16, 1.56, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 121, 'risk_reward': 17, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['gm4(eY', 83, 109, 45.0, 76, 30, -0.59, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 190}], ['gn2(@m', 90, 76, 44.45, 80, 26, 0.96, {'ott_len': 40, 'ott_percent': 715, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 19, 'chop_bandwidth': 263}], ['em42eg', 84, 50, 59.97, 66, 6, -1.1, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 19, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['^iB)WZ', 67, 124, 36.48, 69, 33, -2.76, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 165, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['gm4(AV', 77, 151, 29.21, 70, 40, -6.74, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 19, 'chop_bandwidth': 179}], ['sm4(Ag', 87, 86, 37.85, 87, 31, 16.53, {'ott_len': 48, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 19, 'chop_bandwidth': 241}], ['rm2(Zi', 94, 55, 38.15, 87, 16, 6.68, {'ott_len': 47, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 33, 'chop_bandwidth': 249}], ['ii+0[g', 86, 60, 34.47, 81, 11, 4.0, {'ott_len': 41, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['gm4(]g', 91, 59, 42.21, 83, 12, 3.8, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 35, 'chop_bandwidth': 241}], ['^i:0Wg', 71, 67, 41.65, 68, 16, 2.74, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 17, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['cm2(eg', 92, 55, 35.72, 85, 7, 2.94, {'ott_len': 38, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['^i:-kZ', 73, 97, 55.77, 70, 30, 1.3, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 14, 'chop_rsi_len': 43, 'chop_bandwidth': 194}], ['hm+(bZ', 90, 111, 36.23, 83, 30, 0.51, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 63, 'risk_reward': 10, 'chop_rsi_len': 38, 'chop_bandwidth': 194}], ['^i:-NZ', 68, 128, 49.71, 66, 36, -5.12, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 14, 'chop_rsi_len': 27, 'chop_bandwidth': 194}], ['ei+0oP', 79, 136, 45.34, 65, 38, -9.25, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 45, 'chop_bandwidth': 157}], ['gm4(LE', 74, 171, 25.25, 66, 48, -10.21, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 116}], ['bi:)Wg', 83, 68, 37.1, 86, 15, 11.1, {'ott_len': 37, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['vi(=^Z', 73, 99, 30.08, 75, 24, 9.35, {'ott_len': 49, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 29, 'chop_rsi_len': 36, 'chop_bandwidth': 194}], ['ei+0rb', 90, 54, 38.9, 90, 10, 7.43, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 47, 'chop_bandwidth': 223}], ['hm2(bg', 94, 53, 38.06, 90, 10, 5.65, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 38, 'chop_bandwidth': 241}], ['bi+0]g', 87, 66, 39.88, 78, 14, 3.72, {'ott_len': 37, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 35, 'chop_bandwidth': 241}], ['^i:-VZ', 68, 124, 46.89, 70, 34, 1.68, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 14, 'chop_rsi_len': 31, 'chop_bandwidth': 194}], ['hm2(eh', 95, 48, 36.27, 80, 5, 1.23, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 245}], ['^i*DWZ', 61, 124, 42.94, 58, 31, -1.62, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 35, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['gm4(:d', 81, 121, 40.74, 75, 33, -2.17, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 15, 'chop_bandwidth': 230}], ['hm2(ef', 94, 51, 35.72, 90, 10, 5.65, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 238}], ['hm2(dh', 95, 48, 36.27, 87, 8, 3.86, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 39, 'chop_bandwidth': 245}], ['gn2(Gg', 90, 83, 50.48, 82, 28, 2.71, {'ott_len': 40, 'ott_percent': 715, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 23, 'chop_bandwidth': 241}], ['hm2(Vg', 94, 68, 49.41, 93, 15, 10.26, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 31, 'chop_bandwidth': 241}], ['hm2(Ug', 94, 68, 49.41, 93, 15, 10.26, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 31, 'chop_bandwidth': 241}], ['hm2(ed', 95, 60, 46.58, 92, 13, 8.39, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 230}], ['hm2(3h', 86, 108, 51.61, 83, 30, 6.33, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 11, 'chop_bandwidth': 245}], ['hm2(2h', 86, 108, 51.61, 83, 30, 6.33, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 11, 'chop_bandwidth': 245}], ['em4(eg', 94, 54, 44.85, 87, 8, 4.39, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['em4(fg', 94, 54, 44.85, 87, 8, 4.39, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['bm6(eg', 92, 56, 48.49, 80, 5, 1.71, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 112, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['vi()dZ', 89, 121, 16.42, 84, 25, -0.21, {'ott_len': 49, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 39, 'chop_bandwidth': 194}], ['hm2(Ll', 94, 67, 48.14, 92, 14, 9.32, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 260}], ['ii+0jg', 91, 49, 37.31, 80, 5, 2.29, {'ott_len': 41, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 43, 'chop_bandwidth': 241}], ['ii+0kg', 91, 49, 37.31, 80, 5, 2.29, {'ott_len': 41, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 43, 'chop_bandwidth': 241}], ['hm2(gg', 95, 48, 36.27, 85, 7, 2.98, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['hm2(hg', 95, 48, 36.27, 85, 7, 2.98, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['am4(fg', 92, 57, 43.66, 80, 5, 1.45, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['gn2(ig', 92, 50, 29.4, 80, 5, 1.29, {'ott_len': 40, 'ott_percent': 715, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 42, 'chop_bandwidth': 241}], ['^i*KWZ', 58, 123, 50.13, 51, 31, -6.11, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 41, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['AwB.t(', 49, 206, 20.43, 53, 56, -7.93, {'ott_len': 17, 'ott_percent': 800, 'stop_loss': 165, 'risk_reward': 15, 'chop_rsi_len': 48, 'chop_bandwidth': 10}], ['jc30lZ', 71, 96, 34.76, 63, 30, -11.56, {'ott_len': 42, 'ott_percent': 610, 'stop_loss': 99, 'risk_reward': 17, 'chop_rsi_len': 44, 'chop_bandwidth': 194}], ['ei+0JP', 77, 160, 43.13, 64, 45, -13.24, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 24, 'chop_bandwidth': 157}], ['ei+0IP', 77, 160, 43.13, 64, 45, -13.24, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 24, 'chop_bandwidth': 157}], ['hm2(`g', 94, 54, 39.24, 90, 11, 6.56, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 37, 'chop_bandwidth': 241}], ['^i:)Wi', 83, 65, 35.63, 83, 12, 6.96, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 249}], ['^i:)ug', 86, 30, 21.28, 100, 3, 4.1, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['ii(0kg', 92, 50, 26.08, 80, 5, 1.54, {'ott_len': 41, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 17, 'chop_rsi_len': 43, 'chop_bandwidth': 241}], ['gm4(Ai', 85, 90, 41.64, 73, 26, -4.92, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 19, 'chop_bandwidth': 249}], ['^i*)WT', 86, 168, 33.15, 78, 46, -5.62, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 172}], ['ei+0rP', 79, 136, 45.34, 65, 38, -9.25, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 47, 'chop_bandwidth': 157}], ['ei+0tG', 76, 168, 46.67, 63, 47, -13.12, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 48, 'chop_bandwidth': 124}], ['ei+0sG', 76, 168, 46.67, 63, 47, -13.12, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 48, 'chop_bandwidth': 124}], ['gn2(e^', 86, 84, 38.32, 87, 24, 9.23, {'ott_len': 40, 'ott_percent': 715, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 208}], ['^i*1/g', 78, 130, 34.93, 67, 34, -2.55, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 18, 'chop_rsi_len': 9, 'chop_bandwidth': 241}], ['gm4(.g', 79, 124, 32.4, 74, 35, -3.39, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 8, 'chop_bandwidth': 241}], ['^i*)LZ', 86, 153, 27.5, 76, 46, -7.39, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 11, 'chop_rsi_len': 26, 'chop_bandwidth': 194}], ['bw9.t*', 59, 151, -0.38, 58, 39, -11.99, {'ott_len': 37, 'ott_percent': 800, 'stop_loss': 125, 'risk_reward': 15, 'chop_rsi_len': 48, 'chop_bandwidth': 17}], ['bw:.t*', 58, 151, -2.49, 58, 39, -11.14, {'ott_len': 37, 'ott_percent': 800, 'stop_loss': 130, 'risk_reward': 15, 'chop_rsi_len': 48, 'chop_bandwidth': 17}], ['hm2(Z^', 87, 96, 48.33, 85, 27, 6.73, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 33, 'chop_bandwidth': 208}], ['nm4([g', 91, 59, 39.66, 86, 15, 6.76, {'ott_len': 45, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['hm2(ig', 95, 47, 35.11, 80, 5, 1.23, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 42, 'chop_bandwidth': 241}], ['^iR)Wg', 69, 66, 44.75, 62, 16, -3.8, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 236, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['hm2(Mh', 91, 74, 45.69, 89, 19, 9.74, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 245}], ['bi,0hg', 90, 52, 39.71, 88, 9, 7.01, {'ott_len': 37, 'ott_percent': 667, 'stop_loss': 68, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['em6(eg', 94, 53, 49.58, 87, 8, 4.94, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 112, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['em6(kg', 94, 51, 46.53, 75, 4, 0.7, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 112, 'risk_reward': 10, 'chop_rsi_len': 43, 'chop_bandwidth': 241}], ['gm4(A^', 82, 128, 41.4, 74, 35, -2.6, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 19, 'chop_bandwidth': 208}], ['lmB6f_', 55, 61, 23.76, 62, 16, 7.97, {'ott_len': 43, 'ott_percent': 705, 'stop_loss': 165, 'risk_reward': 22, 'chop_rsi_len': 40, 'chop_bandwidth': 212}], ['ii*2kg', 89, 47, 35.78, 80, 5, 2.54, {'ott_len': 41, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 19, 'chop_rsi_len': 43, 'chop_bandwidth': 241}], ['^iB)W_', 73, 98, 47.15, 70, 27, 1.03, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 165, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 212}], ['gm4(uf', 95, 40, 31.35, 66, 3, -0.4, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 238}], ['^i@0Wg', 69, 66, 56.12, 62, 16, -1.1, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 156, 'risk_reward': 17, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['ei+0HP', 77, 160, 43.13, 64, 45, -13.24, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 23, 'chop_bandwidth': 157}], ['_w?.[G', 58, 143, 19.57, 52, 44, -14.24, {'ott_len': 35, 'ott_percent': 800, 'stop_loss': 152, 'risk_reward': 15, 'chop_rsi_len': 34, 'chop_bandwidth': 124}], ['rc32lZ', 73, 90, 42.51, 71, 21, 6.83, {'ott_len': 47, 'ott_percent': 610, 'stop_loss': 99, 'risk_reward': 19, 'chop_rsi_len': 44, 'chop_bandwidth': 194}], ['ji*0[n', 93, 43, 30.34, 83, 6, 2.54, {'ott_len': 42, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 267}], ['^i*CWZ', 63, 124, 59.92, 58, 31, -2.64, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 34, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['em4(cg', 94, 55, 46.22, 88, 9, 5.38, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 39, 'chop_bandwidth': 241}], ['rm2(gg', 94, 52, 34.64, 87, 8, 4.05, {'ott_len': 47, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['ei+0pG', 76, 168, 46.67, 63, 47, -13.12, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 46, 'chop_bandwidth': 124}], ['hm2(eb', 92, 66, 42.24, 92, 13, 8.39, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 223}], ['hm1(Zg', 93, 66, 43.56, 92, 14, 8.81, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 90, 'risk_reward': 10, 'chop_rsi_len': 33, 'chop_bandwidth': 241}], ['rm2(lg', 95, 48, 33.51, 83, 6, 2.29, {'ott_len': 47, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 44, 'chop_bandwidth': 241}], ['\\i*0,g', 78, 131, 34.78, 72, 37, -1.07, {'ott_len': 34, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['gm4(Cg', 83, 95, 34.55, 75, 28, -3.12, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 20, 'chop_bandwidth': 241}], ['bw;.t*', 58, 150, 6.48, 58, 39, -10.46, {'ott_len': 37, 'ott_percent': 800, 'stop_loss': 134, 'risk_reward': 15, 'chop_rsi_len': 48, 'chop_bandwidth': 17}], ['ei+0rG', 76, 168, 46.67, 63, 47, -13.12, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 47, 'chop_bandwidth': 124}], ['ei+0qG', 76, 168, 46.67, 63, 47, -13.12, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 47, 'chop_bandwidth': 124}], ['ei+0hI', 76, 167, 45.0, 63, 47, -13.12, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 131}], ['hm2(Oh', 92, 71, 48.47, 88, 18, 8.82, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 27, 'chop_bandwidth': 245}], ['hm2(]g', 95, 61, 47.84, 91, 12, 7.47, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 35, 'chop_bandwidth': 241}], ['hm2(\\g', 95, 61, 47.84, 91, 12, 7.47, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 35, 'chop_bandwidth': 241}], ['^i*S[g', 67, 64, 59.38, 61, 13, 5.04, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 48, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['gm4(u_', 90, 61, 40.11, 85, 14, 5.78, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 212}], ['gm4(v_', 90, 61, 40.11, 85, 14, 5.78, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 212}], ['wd*0[g', 91, 60, 37.78, 76, 13, 1.62, {'ott_len': 50, 'ott_percent': 620, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['hm2(jg', 95, 45, 32.81, 75, 4, 0.37, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 43, 'chop_bandwidth': 241}], ['gm4(LW', 77, 141, 23.89, 69, 39, -6.67, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 183}], ['vi()[D', 84, 192, 8.04, 72, 50, -7.33, {'ott_len': 49, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 34, 'chop_bandwidth': 113}], ['hm2(Zj', 94, 56, 41.65, 90, 10, 5.65, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 33, 'chop_bandwidth': 252}], ['gm4(_g', 93, 58, 44.72, 83, 12, 3.8, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 36, 'chop_bandwidth': 241}], ['gm4(^g', 93, 58, 44.72, 83, 12, 3.8, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 36, 'chop_bandwidth': 241}], ['hm2(*g', 83, 115, 44.29, 75, 33, 1.68, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 6, 'chop_bandwidth': 241}], ['ei+0ug', 91, 35, 23.75, 75, 4, 1.27, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['am4(qg', 95, 47, 40.03, 66, 3, -0.45, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 47, 'chop_bandwidth': 241}], ['\\m7(ug', 94, 38, 34.49, 66, 3, -0.37, {'ott_len': 34, 'ott_percent': 705, 'stop_loss': 116, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['ei+0nG', 76, 169, 44.97, 63, 47, -13.12, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 45, 'chop_bandwidth': 124}], ['ei+0oG', 76, 169, 44.97, 63, 47, -13.12, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 45, 'chop_bandwidth': 124}], ['ei+0rF', 75, 170, 41.75, 63, 47, -13.12, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 47, 'chop_bandwidth': 120}], ['hm2(/g', 84, 112, 49.17, 83, 30, 6.33, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 9, 'chop_bandwidth': 241}], ['ei+0hm', 93, 31, 22.35, 75, 4, 1.27, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 263}], ['^i:-WZ', 67, 124, 42.09, 69, 33, -0.06, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 14, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['_w?.7v', 68, 58, 22.44, 65, 20, -0.27, {'ott_len': 35, 'ott_percent': 800, 'stop_loss': 152, 'risk_reward': 15, 'chop_rsi_len': 14, 'chop_bandwidth': 296}], ['^i*)WR', 85, 181, 30.57, 76, 51, -7.68, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 164}], ['_w?.[9', 58, 146, 22.27, 53, 45, -12.36, {'ott_len': 35, 'ott_percent': 800, 'stop_loss': 152, 'risk_reward': 15, 'chop_rsi_len': 34, 'chop_bandwidth': 72}], ['hm2(1g', 84, 112, 49.17, 83, 30, 6.33, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 10, 'chop_bandwidth': 241}], ['hm2(0g', 84, 112, 49.17, 83, 30, 6.33, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 10, 'chop_bandwidth': 241}], ['em3(eg', 94, 54, 42.14, 87, 8, 4.14, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 99, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['^i*P[g', 68, 64, 67.78, 61, 13, 3.6, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 45, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['^i90Wg', 73, 67, 42.37, 68, 16, 2.08, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 125, 'risk_reward': 17, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['ej+0rg', 92, 41, 31.29, 66, 3, 0.34, {'ott_len': 39, 'ott_percent': 677, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 47, 'chop_bandwidth': 241}], ['^iQ)Wg', 69, 66, 41.69, 62, 16, -4.13, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 232, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['_w?.[.', 58, 146, 22.27, 53, 45, -12.36, {'ott_len': 35, 'ott_percent': 800, 'stop_loss': 152, 'risk_reward': 15, 'chop_rsi_len': 34, 'chop_bandwidth': 32}], ['ei+0hF', 75, 170, 41.75, 63, 47, -13.12, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 120}], ['hm2(Xg', 94, 67, 48.13, 92, 14, 9.32, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['hm2(Wg', 94, 67, 48.13, 92, 14, 9.32, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['hm2(Td', 90, 76, 44.97, 89, 19, 9.74, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 30, 'chop_bandwidth': 230}], ['hm2(Eg', 89, 85, 45.13, 82, 23, 3.14, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 22, 'chop_bandwidth': 241}], ['hm2(ea', 92, 68, 44.71, 93, 16, 11.21, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 219}], ['lm4(u_', 91, 60, 39.5, 85, 14, 5.93, {'ott_len': 43, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 212}], ['hl2(eg', 96, 51, 39.65, 85, 7, 2.92, {'ott_len': 41, 'ott_percent': 696, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['vi()kZ', 89, 117, 17.23, 84, 25, -0.21, {'ott_len': 49, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 43, 'chop_bandwidth': 194}], ['_w?.[(', 58, 146, 22.27, 53, 45, -12.36, {'ott_len': 35, 'ott_percent': 800, 'stop_loss': 152, 'risk_reward': 15, 'chop_rsi_len': 34, 'chop_bandwidth': 10}], ['_w?.[*', 58, 146, 22.27, 53, 45, -12.36, {'ott_len': 35, 'ott_percent': 800, 'stop_loss': 152, 'risk_reward': 15, 'chop_rsi_len': 34, 'chop_bandwidth': 17}], ['hm2(Og', 91, 74, 45.69, 89, 19, 9.74, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 27, 'chop_bandwidth': 241}], ['hm2(bf', 94, 58, 44.09, 90, 11, 6.56, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 38, 'chop_bandwidth': 238}], ['em4(bg', 92, 57, 44.82, 88, 9, 5.38, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 38, 'chop_bandwidth': 241}], ['am7(u_', 89, 66, 51.15, 83, 12, 4.84, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 116, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 212}], ['hm2(Fh', 91, 83, 53.91, 81, 22, 2.26, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 22, 'chop_bandwidth': 245}], ['^i*)IZ', 86, 156, 27.34, 74, 47, -9.75, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 11, 'chop_rsi_len': 24, 'chop_bandwidth': 194}], ['em4(ef', 94, 55, 46.22, 88, 9, 5.38, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 238}], ['bi+-hg', 93, 58, 32.58, 90, 10, 5.61, {'ott_len': 37, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 14, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['^i*7,g', 71, 128, 41.62, 58, 31, -6.63, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 23, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['hm2(Ti', 94, 67, 48.13, 92, 13, 8.39, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 30, 'chop_bandwidth': 249}], ['hm2(_g', 95, 61, 47.84, 91, 12, 7.47, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 36, 'chop_bandwidth': 241}], ['hm2([h', 95, 60, 46.58, 91, 12, 7.47, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 34, 'chop_bandwidth': 245}], ['hm2(^g', 95, 61, 47.84, 91, 12, 7.47, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 36, 'chop_bandwidth': 241}], ['^i70Wg', 79, 67, 65.03, 68, 16, 0.9, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 116, 'risk_reward': 17, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['hm+(eZ', 90, 110, 35.47, 83, 30, 0.51, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 63, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 194}], ['gm4(tg', 95, 40, 31.35, 50, 2, -1.34, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 48, 'chop_bandwidth': 241}], ['hm2(bb', 92, 69, 45.95, 93, 16, 11.21, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 38, 'chop_bandwidth': 223}], ['v?()[Z', 85, 160, 8.0, 92, 39, 11.27, {'ott_len': 49, 'ott_percent': 268, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 34, 'chop_bandwidth': 194}], ['nm4(Lg', 90, 73, 47.52, 85, 21, 8.61, {'ott_len': 45, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 241}], ['wi/0[g', 89, 55, 45.39, 83, 12, 7.7, {'ott_len': 50, 'ott_percent': 667, 'stop_loss': 81, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['gm4(Rg', 88, 68, 37.67, 83, 18, 5.44, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 29, 'chop_bandwidth': 241}], ['gm4(Sg', 88, 68, 37.67, 83, 18, 5.44, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 29, 'chop_bandwidth': 241}], ['vi()EZ', 87, 149, 12.54, 79, 34, -3.18, {'ott_len': 49, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 22, 'chop_bandwidth': 194}], ['gm4(An', 91, 78, 54.34, 72, 18, -4.57, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 19, 'chop_bandwidth': 267}], ['gm4(Gg', 87, 88, 48.64, 72, 25, -5.82, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 23, 'chop_bandwidth': 241}], ['gm4(Hg', 87, 88, 48.64, 72, 25, -5.82, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 23, 'chop_bandwidth': 241}], ['^i20,g', 72, 125, 64.12, 51, 31, -18.14, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 94, 'risk_reward': 17, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['qm4(Lm', 92, 53, 36.8, 87, 16, 7.8, {'ott_len': 46, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 263}], ['^i:-Wu', 84, 26, 24.6, 100, 3, 5.3, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 14, 'chop_rsi_len': 32, 'chop_bandwidth': 293}], ['am7(tg', 95, 45, 44.81, 66, 3, -0.33, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 116, 'risk_reward': 10, 'chop_rsi_len': 48, 'chop_bandwidth': 241}], ['_w?.[a', 66, 71, 25.98, 58, 24, -5.07, {'ott_len': 35, 'ott_percent': 800, 'stop_loss': 152, 'risk_reward': 15, 'chop_rsi_len': 34, 'chop_bandwidth': 219}], ['^i*NWZ', 56, 122, 50.72, 48, 31, -9.3, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 44, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['ei+0^G', 76, 171, 43.18, 63, 47, -13.12, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 36, 'chop_bandwidth': 124}], ['ei+0bF', 76, 171, 43.18, 63, 47, -13.12, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 38, 'chop_bandwidth': 120}], ['ei+0_G', 76, 171, 43.18, 63, 47, -13.12, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 36, 'chop_bandwidth': 124}], ['ei+0hG', 75, 170, 41.75, 63, 47, -13.12, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 124}], ['bw<.t*', 58, 149, 10.4, 56, 39, -14.75, {'ott_len': 37, 'ott_percent': 800, 'stop_loss': 139, 'risk_reward': 15, 'chop_rsi_len': 48, 'chop_bandwidth': 17}], ['hm2(Pg', 91, 72, 43.23, 88, 18, 8.82, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 28, 'chop_bandwidth': 241}], ['hm0(bZ', 86, 104, 42.08, 82, 28, 3.34, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 85, 'risk_reward': 10, 'chop_rsi_len': 38, 'chop_bandwidth': 194}], ['ie*0hg', 93, 48, 34.43, 83, 6, 2.76, {'ott_len': 41, 'ott_percent': 629, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['hm2(vg', 97, 37, 27.8, 66, 3, -0.48, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['em6.eg', 86, 52, 52.83, 66, 6, -2.35, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 112, 'risk_reward': 15, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['^i*u,g', 42, 118, 52.82, 33, 30, -8.54, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 78, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['qm4(La', 84, 86, 33.85, 89, 29, 17.46, {'ott_len': 46, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 219}], ['nm2([g', 91, 59, 33.73, 86, 15, 5.73, {'ott_len': 45, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['^i*PWg', 69, 66, 76.53, 56, 16, 0.75, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 45, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['^i*SWZ', 54, 121, 43.93, 48, 31, -6.12, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 48, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['^i*R/g', 60, 120, 100.14, 41, 31, -13.16, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 47, 'chop_rsi_len': 9, 'chop_bandwidth': 241}], ['ci*0[h', 89, 64, 37.95, 84, 13, 5.53, {'ott_len': 38, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 245}], ['gm4(Lm', 90, 64, 41.62, 83, 12, 3.8, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 263}], ['hm,(eZ', 88, 109, 32.61, 83, 30, 1.49, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 68, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 194}], ['im2(Zh', 95, 63, 50.38, 91, 12, 7.47, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 33, 'chop_bandwidth': 245}], ['gg2(hg', 96, 51, 37.92, 87, 8, 3.95, {'ott_len': 40, 'ott_percent': 648, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['ii*0[g', 86, 60, 30.28, 81, 11, 3.47, {'ott_len': 41, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['^u:)Wg', 83, 56, 33.03, 76, 17, 1.45, {'ott_len': 35, 'ott_percent': 781, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['gm4(ug', 97, 37, 31.82, 50, 2, -1.34, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['fm4(ug', 97, 37, 31.82, 50, 2, -1.34, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['gm2(ug', 97, 37, 27.78, 50, 2, -1.34, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['vi()NZ', 88, 142, 12.5, 81, 32, -2.58, {'ott_len': 49, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 27, 'chop_bandwidth': 194}], ['gm4(Jg', 87, 87, 47.25, 75, 24, -4.04, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 24, 'chop_bandwidth': 241}], ['gm4(Ag', 83, 99, 39.72, 72, 29, -5.79, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 19, 'chop_bandwidth': 241}], ['gm4(@g', 83, 99, 39.72, 72, 29, -5.79, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 19, 'chop_bandwidth': 241}], ['hm2(bc', 92, 66, 42.24, 92, 13, 8.39, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 38, 'chop_bandwidth': 227}], ['^i41WZ', 66, 124, 39.63, 66, 33, -0.8, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 103, 'risk_reward': 18, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['vi()[T', 87, 159, 13.01, 77, 40, -4.33, {'ott_len': 49, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 34, 'chop_bandwidth': 172}], ['^i*<WZ', 67, 124, 46.18, 60, 33, -6.51, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 28, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['^i*r,g', 43, 118, 53.21, 33, 30, -9.55, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 76, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['ei+0]G', 76, 171, 43.18, 63, 47, -13.12, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 35, 'chop_bandwidth': 124}], ['ei+0\\G', 76, 171, 43.18, 63, 47, -13.12, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 35, 'chop_bandwidth': 124}], ['ei+0[G', 76, 171, 43.18, 63, 47, -13.12, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 124}], ['qm4(Lg', 88, 67, 31.22, 90, 21, 13.01, {'ott_len': 46, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 241}], ['gm2(Gg', 87, 88, 39.53, 76, 25, -2.72, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 23, 'chop_bandwidth': 241}], ['ei+0YG', 76, 171, 43.18, 63, 47, -13.12, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 33, 'chop_bandwidth': 124}], ['ei+0ZG', 76, 171, 43.18, 63, 47, -13.12, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 33, 'chop_bandwidth': 124}], ['wi*+[g', 93, 61, 27.7, 91, 12, 5.82, {'ott_len': 50, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 13, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['hm2(Ih', 92, 76, 48.21, 85, 20, 4.17, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 24, 'chop_bandwidth': 245}], ['hm2(Jh', 92, 76, 48.21, 85, 20, 4.17, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 24, 'chop_bandwidth': 245}], ['vi()@Z', 88, 150, 13.55, 77, 35, -4.77, {'ott_len': 49, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 19, 'chop_bandwidth': 194}], ['hm4(L.', 74, 167, 22.13, 64, 51, -7.49, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 32}], ['_i*0Wg', 87, 72, 32.64, 83, 18, 7.01, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['hm2(Kg', 91, 78, 47.47, 85, 21, 5.06, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 25, 'chop_bandwidth': 241}], ['^i-)Wg', 91, 78, 27.19, 84, 19, 4.02, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 72, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['^m7(fg', 92, 54, 50.33, 80, 5, 1.8, {'ott_len': 35, 'ott_percent': 705, 'stop_loss': 116, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['lpB,Qq', 75, 40, 26.56, 57, 7, -3.89, {'ott_len': 43, 'ott_percent': 734, 'stop_loss': 165, 'risk_reward': 14, 'chop_rsi_len': 28, 'chop_bandwidth': 278}], ['^i*6,g', 72, 129, 37.73, 59, 32, -6.49, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 22, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['hm2(Zg', 93, 66, 46.88, 92, 14, 9.32, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 33, 'chop_bandwidth': 241}], ['im2(Zg', 93, 66, 46.88, 92, 14, 9.32, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 33, 'chop_bandwidth': 241}], ['em6(`g', 91, 57, 44.87, 88, 9, 6.04, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 112, 'risk_reward': 10, 'chop_rsi_len': 37, 'chop_bandwidth': 241}], ['^i*C[g', 75, 65, 59.04, 69, 13, 4.2, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 34, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['et4(eg', 92, 54, 38.32, 83, 12, 3.75, {'ott_len': 39, 'ott_percent': 772, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['hm2(wg', 97, 37, 27.8, 66, 3, -0.48, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 50, 'chop_bandwidth': 241}], ['^i*R,g', 59, 122, 97.18, 40, 30, -15.43, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 47, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['ei+0]g', 90, 61, 43.4, 75, 12, 1.57, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 35, 'chop_bandwidth': 241}], ['am8(ug', 95, 44, 46.11, 66, 3, -0.28, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 121, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['id*0kg', 95, 40, 30.38, 66, 6, -0.35, {'ott_len': 41, 'ott_percent': 620, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 43, 'chop_bandwidth': 241}], ['^i10[g', 81, 66, 44.77, 69, 13, -1.38, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 90, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['hm2(Ln', 93, 62, 41.94, 91, 12, 7.47, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 267}], ['vi(0^Z', 84, 112, 35.94, 84, 26, 7.06, {'ott_len': 49, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 17, 'chop_rsi_len': 36, 'chop_bandwidth': 194}], ['ei+0hc', 90, 60, 42.0, 75, 12, 1.57, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 227}], ['^i*BWg', 77, 67, 68.48, 62, 16, 0.1, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 33, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['gm4(Kg', 86, 84, 43.12, 78, 23, -1.31, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 25, 'chop_bandwidth': 241}], ['ci3)aZ', 81, 117, 37.11, 70, 31, -6.22, {'ott_len': 38, 'ott_percent': 667, 'stop_loss': 99, 'risk_reward': 11, 'chop_rsi_len': 37, 'chop_bandwidth': 194}], ['hm2([g', 95, 63, 50.38, 92, 13, 8.39, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['gm1(ug', 97, 38, 27.06, 50, 2, -1.33, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 90, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['^i*;Wg', 80, 68, 55.17, 62, 16, -3.31, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 27, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['gm2)[g', 91, 61, 45.32, 83, 12, 4.04, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 11, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['rc30mZ', 74, 90, 31.43, 71, 21, 3.78, {'ott_len': 47, 'ott_percent': 610, 'stop_loss': 99, 'risk_reward': 17, 'chop_rsi_len': 44, 'chop_bandwidth': 194}], ['rc30lZ', 74, 90, 31.43, 71, 21, 3.78, {'ott_len': 47, 'ott_percent': 610, 'stop_loss': 99, 'risk_reward': 17, 'chop_rsi_len': 44, 'chop_bandwidth': 194}], ['hm2(Hg', 91, 83, 53.91, 81, 22, 2.26, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 23, 'chop_bandwidth': 241}], ['\\m4(ug', 94, 39, 30.0, 66, 3, -0.49, {'ott_len': 34, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['^i+)WZ', 84, 144, 18.1, 80, 40, -1.56, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['ei+0Tg', 86, 74, 43.97, 82, 17, 6.69, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 30, 'chop_bandwidth': 241}], ['am7(ug', 95, 44, 43.27, 66, 3, -0.33, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 116, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['am7(vg', 95, 44, 43.27, 66, 3, -0.33, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 116, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['aj4(ug', 97, 36, 30.28, 66, 3, -0.18, {'ott_len': 37, 'ott_percent': 677, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['ck10[g', 82, 62, 42.35, 70, 10, -1.71, {'ott_len': 38, 'ott_percent': 686, 'stop_loss': 90, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['gm/(ug', 94, 38, 19.47, 50, 2, -1.33, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 81, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['hm2(Lg', 92, 76, 48.21, 85, 20, 4.17, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 241}], ['hm2(Mg', 92, 76, 48.21, 85, 20, 4.17, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 241}], ['hm2(Jg', 91, 83, 53.91, 81, 22, 2.26, {'ott_len': 41, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 24, 'chop_bandwidth': 241}], ['rm2(pg', 95, 47, 32.37, 83, 6, 2.29, {'ott_len': 47, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 46, 'chop_bandwidth': 241}], ['^i50Wg', 79, 67, 54.41, 68, 16, -0.15, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 108, 'risk_reward': 17, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['if*0gg', 93, 48, 34.68, 75, 4, 0.95, {'ott_len': 41, 'ott_percent': 639, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['vi-)^Z', 85, 115, 25.88, 84, 26, 4.73, {'ott_len': 49, 'ott_percent': 667, 'stop_loss': 72, 'risk_reward': 11, 'chop_rsi_len': 36, 'chop_bandwidth': 194}], ['ei+0hX', 81, 110, 44.6, 67, 31, -6.27, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 186}], ['af4(ug', 96, 31, 24.67, 100, 4, 3.85, {'ott_len': 37, 'ott_percent': 639, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['ei+00P', 77, 151, 41.84, 65, 43, -11.06, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 10, 'chop_bandwidth': 157}], ['ge2(hg', 93, 48, 30.36, 87, 8, 3.62, {'ott_len': 40, 'ott_percent': 629, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['bi+0pg', 90, 43, 27.77, 66, 3, 0.25, {'ott_len': 37, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 46, 'chop_bandwidth': 241}], ['am7([g', 90, 64, 53.02, 70, 10, -1.75, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 116, 'risk_reward': 10, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['bv+0hg', 88, 50, 31.35, 70, 10, -2.81, {'ott_len': 37, 'ott_percent': 791, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['vi()[Z', 89, 127, 19.72, 82, 29, -2.18, {'ott_len': 49, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 11, 'chop_rsi_len': 34, 'chop_bandwidth': 194}], ['^i*01g', 80, 130, 32.73, 68, 35, -4.88, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 10, 'chop_bandwidth': 241}], ['^i80,g', 66, 124, 56.71, 53, 30, -13.66, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 121, 'risk_reward': 17, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['ei+06H', 76, 165, 43.72, 63, 49, -14.69, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 13, 'chop_bandwidth': 127}], ['^i*P,g', 59, 122, 90.56, 40, 30, -16.6, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 45, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['^i*O,g', 59, 122, 90.56, 40, 30, -16.6, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 45, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['^i*)Wh', 93, 78, 22.03, 85, 20, 2.23, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 245}], ['^i*+WZ', 84, 143, 29.38, 80, 40, 1.1, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 13, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['am4(ug', 95, 45, 37.41, 66, 3, -0.45, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['bm4(ug', 95, 45, 37.41, 66, 3, -0.45, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['^i*:,g', 71, 126, 61.55, 51, 31, -14.37, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 26, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['^iB)AZ', 66, 142, 42.3, 60, 40, -17.75, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 165, 'risk_reward': 11, 'chop_rsi_len': 19, 'chop_bandwidth': 194}], ['qm4(n.', 75, 160, 15.86, 79, 48, 13.29, {'ott_len': 46, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 45, 'chop_bandwidth': 32}], ['qm4(L.', 75, 160, 15.86, 79, 48, 13.29, {'ott_len': 46, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 32}], ['qm4(R.', 75, 160, 15.86, 79, 48, 13.29, {'ott_len': 46, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 29, 'chop_bandwidth': 32}], ['qm4(?.', 75, 160, 15.86, 79, 48, 13.29, {'ott_len': 46, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 18, 'chop_bandwidth': 32}], ['qm4(q.', 75, 160, 15.86, 79, 48, 13.29, {'ott_len': 46, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 47, 'chop_bandwidth': 32}], ['qm4(L5', 75, 160, 15.86, 79, 48, 13.29, {'ott_len': 46, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 58}], ['gm2([g', 91, 61, 37.94, 91, 12, 7.46, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['^i70[g', 78, 65, 58.97, 76, 13, 5.71, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 116, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['_i70[g', 78, 65, 58.97, 76, 13, 5.71, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 116, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['am4(u_', 89, 67, 42.41, 83, 12, 3.78, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 212}], ['ci10dg', 88, 51, 44.43, 77, 9, 1.86, {'ott_len': 38, 'ott_percent': 667, 'stop_loss': 90, 'risk_reward': 17, 'chop_rsi_len': 39, 'chop_bandwidth': 241}], ['rc30dZ', 74, 97, 33.18, 68, 22, -0.46, {'ott_len': 47, 'ott_percent': 610, 'stop_loss': 99, 'risk_reward': 17, 'chop_rsi_len': 39, 'chop_bandwidth': 194}], ['^i*9,g', 71, 128, 57.62, 54, 31, -8.55, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 25, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['qm4(L@', 75, 160, 15.86, 79, 48, 13.29, {'ott_len': 46, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 98}], ['go4(eg', 90, 53, 33.83, 90, 10, 6.7, {'ott_len': 40, 'ott_percent': 724, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['ci,0[g', 86, 66, 42.45, 78, 14, 4.54, {'ott_len': 38, 'ott_percent': 667, 'stop_loss': 68, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['rm2(tg', 97, 40, 32.93, 83, 6, 2.29, {'ott_len': 47, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 48, 'chop_bandwidth': 241}], ['rm2(sg', 97, 40, 32.93, 83, 6, 2.29, {'ott_len': 47, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 48, 'chop_bandwidth': 241}], ['ci10bg', 85, 56, 42.3, 77, 9, 1.86, {'ott_len': 38, 'ott_percent': 667, 'stop_loss': 90, 'risk_reward': 17, 'chop_rsi_len': 38, 'chop_bandwidth': 241}], ['ic30lZ', 73, 93, 37.12, 63, 30, -11.94, {'ott_len': 41, 'ott_percent': 610, 'stop_loss': 99, 'risk_reward': 17, 'chop_rsi_len': 44, 'chop_bandwidth': 194}], ['qm4(6.', 75, 160, 15.86, 79, 48, 13.29, {'ott_len': 46, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 13, 'chop_bandwidth': 32}], ['gm4([g', 91, 61, 44.91, 83, 12, 3.8, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['bm4([g', 90, 65, 44.16, 80, 10, 1.84, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['am4([g', 90, 65, 44.16, 80, 10, 1.84, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['km4([g', 93, 62, 47.11, 81, 11, 2.97, {'ott_len': 43, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['^m6(eg', 92, 54, 47.58, 80, 5, 1.69, {'ott_len': 35, 'ott_percent': 705, 'stop_loss': 112, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['^i*0,l', 81, 122, 37.76, 67, 31, -3.92, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 7, 'chop_bandwidth': 260}], ['^i60[g', 78, 65, 53.83, 76, 13, 5.16, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 112, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['gg4(ug', 97, 36, 30.09, 100, 3, 2.87, {'ott_len': 40, 'ott_percent': 648, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['jm2(Zg', 93, 63, 40.35, 90, 10, 5.64, {'ott_len': 42, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 33, 'chop_bandwidth': 241}], ['gm4(Zg', 90, 63, 40.29, 84, 13, 4.78, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 33, 'chop_bandwidth': 241}], ['`i*0[g', 88, 68, 37.37, 80, 15, 3.99, {'ott_len': 36, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['_i10eg', 87, 54, 47.81, 71, 7, -1.32, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 90, 'risk_reward': 17, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['bw3.t*', 62, 152, -9.44, 64, 39, -10.01, {'ott_len': 37, 'ott_percent': 800, 'stop_loss': 99, 'risk_reward': 15, 'chop_rsi_len': 48, 'chop_bandwidth': 17}], ['ei+0+G', 77, 155, 44.64, 63, 46, -12.83, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 7, 'chop_bandwidth': 124}], ['ei+0,G', 77, 155, 44.64, 63, 46, -12.83, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 7, 'chop_bandwidth': 124}], ['^i*K,g', 62, 124, 84.99, 43, 30, -13.79, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 41, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['bw4.t*', 61, 152, -8.4, 61, 39, -13.18, {'ott_len': 37, 'ott_percent': 800, 'stop_loss': 103, 'risk_reward': 15, 'chop_rsi_len': 48, 'chop_bandwidth': 17}], ['wi*2[g', 89, 58, 34.7, 83, 12, 5.49, {'ott_len': 50, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 19, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['ei+0Vg', 88, 70, 47.37, 80, 15, 4.61, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 31, 'chop_bandwidth': 241}], ['em/([g', 89, 69, 28.64, 90, 10, 4.55, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 81, 'risk_reward': 10, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['_m4(ug', 95, 40, 32.76, 66, 3, -0.47, {'ott_len': 35, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['lm2(Zh', 93, 61, 39.05, 90, 10, 5.81, {'ott_len': 43, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 33, 'chop_bandwidth': 245}], ['`m2(bg', 94, 59, 45.69, 83, 6, 2.04, {'ott_len': 36, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 38, 'chop_bandwidth': 241}], ['_i14[g', 78, 65, 56.4, 69, 13, 1.8, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 90, 'risk_reward': 21, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['^i*@Wg', 77, 67, 58.63, 62, 16, -1.05, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 31, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['^i*05g', 80, 125, 30.81, 70, 34, -3.66, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 12, 'chop_bandwidth': 241}], ['ag4(ug', 96, 32, 26.21, 100, 4, 3.85, {'ott_len': 37, 'ott_percent': 648, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['ei+0[g', 90, 63, 46.24, 75, 12, 1.57, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['wm2(gg', 95, 47, 33.11, 80, 10, 0.41, {'ott_len': 50, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['ei+04G', 76, 165, 43.72, 63, 49, -14.69, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 12, 'chop_bandwidth': 124}], ['ei+05G', 76, 165, 43.72, 63, 49, -14.69, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 12, 'chop_bandwidth': 124}], ['^i:-AZ', 66, 142, 49.88, 60, 40, -14.29, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 14, 'chop_rsi_len': 19, 'chop_bandwidth': 194}], ['ei+0:G', 75, 170, 42.02, 60, 51, -16.31, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 15, 'chop_bandwidth': 124}], ['^i*N,g', 60, 123, 87.31, 40, 30, -17.18, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 44, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['am7(wg', 95, 42, 40.22, 66, 3, -0.33, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 116, 'risk_reward': 10, 'chop_rsi_len': 50, 'chop_bandwidth': 241}], ['em4(_g', 91, 62, 45.43, 80, 10, 1.86, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 36, 'chop_bandwidth': 241}], ['fm4(Lg', 87, 80, 41.2, 77, 22, -2.24, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 241}], ['gm4(Mg', 87, 80, 41.2, 77, 22, -2.24, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 241}], ['gm4(Lg', 87, 80, 41.2, 77, 22, -2.24, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 241}], ['^s:)Wg', 81, 65, 33.68, 64, 14, -6.73, {'ott_len': 35, 'ott_percent': 762, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['ei+0-G', 77, 159, 42.93, 62, 48, -15.14, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 8, 'chop_bandwidth': 124}], ['ei+0.G', 77, 159, 42.93, 62, 48, -15.14, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 8, 'chop_bandwidth': 124}], ['lm2(Zg', 93, 65, 43.89, 91, 12, 7.64, {'ott_len': 43, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 33, 'chop_bandwidth': 241}], ['wi*01g', 84, 104, 39.85, 83, 24, 7.79, {'ott_len': 50, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 10, 'chop_bandwidth': 241}], ['^i*@[g', 76, 65, 53.23, 69, 13, 2.59, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 31, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['ak4(ug', 94, 36, 25.9, 66, 3, -0.13, {'ott_len': 37, 'ott_percent': 686, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['di*)WZ', 87, 139, 24.99, 75, 40, -9.77, {'ott_len': 38, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['ei+03G', 76, 164, 42.32, 63, 49, -14.69, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 11, 'chop_bandwidth': 124}], ['ai*0[g', 88, 70, 38.47, 78, 14, 3.08, {'ott_len': 37, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['bi*0[g', 88, 70, 38.47, 78, 14, 3.08, {'ott_len': 37, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['ei+0rX', 82, 102, 41.92, 67, 31, -6.27, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 47, 'chop_bandwidth': 186}], ['wi*02g', 85, 99, 40.34, 83, 24, 7.79, {'ott_len': 50, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 11, 'chop_bandwidth': 241}], ['ci10^g', 85, 57, 44.36, 80, 10, 3.33, {'ott_len': 38, 'ott_percent': 667, 'stop_loss': 90, 'risk_reward': 17, 'chop_rsi_len': 36, 'chop_bandwidth': 241}], ['ci10_g', 85, 57, 44.36, 80, 10, 3.33, {'ott_len': 38, 'ott_percent': 667, 'stop_loss': 90, 'risk_reward': 17, 'chop_rsi_len': 36, 'chop_bandwidth': 241}], ['ei+0rZ', 82, 95, 39.8, 64, 25, -8.15, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 47, 'chop_bandwidth': 194}], ['`i*0kg', 93, 49, 35.09, 75, 4, 1.06, {'ott_len': 36, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 43, 'chop_bandwidth': 241}], ['gm4(ui', 96, 32, 25.74, 50, 2, -1.34, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 249}], ['ei+01G', 76, 164, 42.32, 62, 50, -15.41, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 10, 'chop_bandwidth': 124}], ['wi*0Bg', 87, 79, 32.54, 86, 22, 10.12, {'ott_len': 50, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 20, 'chop_bandwidth': 241}], ['^i*-Wg', 91, 78, 31.53, 84, 19, 5.0, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 14, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['ei+0_e', 88, 68, 44.5, 76, 13, 2.57, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 36, 'chop_bandwidth': 234}], ['ei+0Zg', 87, 66, 41.67, 76, 13, 2.57, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 33, 'chop_bandwidth': 241}], ['ei+0Yg', 87, 66, 41.67, 76, 13, 2.57, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 33, 'chop_bandwidth': 241}], ['^i*M,g', 60, 124, 83.93, 40, 30, -17.74, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 43, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['wi*0Og', 89, 68, 32.6, 82, 17, 5.19, {'ott_len': 50, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 27, 'chop_bandwidth': 241}], ['ji*0[v', 96, 25, 17.25, 66, 3, -0.24, {'ott_len': 42, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 296}], ['^i*0,m', 80, 119, 34.03, 67, 31, -3.92, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 7, 'chop_bandwidth': 263}], ['gm*(Ag', 90, 106, 27.76, 77, 31, -6.72, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 59, 'risk_reward': 10, 'chop_rsi_len': 19, 'chop_bandwidth': 241}], ['^i*J,g', 62, 124, 82.9, 43, 30, -14.44, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 40, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['^i*0,n', 80, 118, 32.8, 67, 31, -3.92, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 7, 'chop_bandwidth': 267}], ['ic40lZ', 73, 93, 43.2, 63, 30, -11.22, {'ott_len': 41, 'ott_percent': 610, 'stop_loss': 103, 'risk_reward': 17, 'chop_rsi_len': 44, 'chop_bandwidth': 194}], ['ai10[g', 83, 66, 44.84, 69, 13, -1.38, {'ott_len': 37, 'ott_percent': 667, 'stop_loss': 90, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['^i70,g', 70, 124, 84.02, 58, 31, -8.41, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 116, 'risk_reward': 17, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['^i*)BZ', 85, 163, 25.33, 75, 48, -9.24, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 11, 'chop_rsi_len': 20, 'chop_bandwidth': 194}], ['^i*F/g', 65, 123, 74.53, 45, 31, -14.6, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 37, 'chop_rsi_len': 9, 'chop_bandwidth': 241}], ['ei+0Xg', 88, 68, 44.5, 80, 15, 4.61, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['ei+0Wg', 88, 68, 44.5, 80, 15, 4.61, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['_m2(eg', 91, 56, 34.31, 80, 5, 1.16, {'ott_len': 35, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['ii*,[g', 90, 62, 28.12, 81, 11, 1.85, {'ott_len': 41, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 14, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['rm2(vg', 97, 34, 26.29, 80, 5, 1.42, {'ott_len': 47, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['ei+0Rg', 85, 75, 39.73, 84, 19, 8.81, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 29, 'chop_bandwidth': 241}], ['dm4(Lg', 85, 82, 38.59, 82, 23, 4.67, {'ott_len': 38, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 241}], ['^iB)8Z', 66, 148, 49.17, 59, 42, -21.27, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 165, 'risk_reward': 11, 'chop_rsi_len': 14, 'chop_bandwidth': 194}], ['ji*0Yg', 85, 63, 28.07, 81, 11, 3.01, {'ott_len': 42, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 33, 'chop_bandwidth': 241}], ['^i:-:Z', 66, 147, 54.19, 59, 42, -17.34, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 14, 'chop_rsi_len': 15, 'chop_bandwidth': 194}], ['ci*R[g', 66, 59, 51.5, 50, 12, -3.71, {'ott_len': 38, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 47, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['ci10`g', 85, 56, 42.3, 80, 10, 3.33, {'ott_len': 38, 'ott_percent': 667, 'stop_loss': 90, 'risk_reward': 17, 'chop_rsi_len': 37, 'chop_bandwidth': 241}], ['ci10ag', 85, 56, 42.3, 80, 10, 3.33, {'ott_len': 38, 'ott_percent': 667, 'stop_loss': 90, 'risk_reward': 17, 'chop_rsi_len': 37, 'chop_bandwidth': 241}], ['el4([g', 90, 65, 43.51, 80, 15, 2.04, {'ott_len': 39, 'ott_percent': 696, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['^i*)9Z', 84, 171, 26.51, 76, 51, -7.67, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 11, 'chop_rsi_len': 15, 'chop_bandwidth': 194}], ['^i*D,g', 65, 125, 78.4, 50, 30, -8.74, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 35, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['vi(D[Z', 66, 100, 16.65, 72, 25, 11.44, {'ott_len': 49, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 35, 'chop_rsi_len': 34, 'chop_bandwidth': 194}], ['vi(C[Z', 67, 100, 16.23, 72, 25, 10.45, {'ott_len': 49, 'ott_percent': 667, 'stop_loss': 50, 'risk_reward': 34, 'chop_rsi_len': 34, 'chop_bandwidth': 194}], ['ji)0[g', 85, 63, 22.95, 80, 10, 1.49, {'ott_len': 42, 'ott_percent': 667, 'stop_loss': 54, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['wi*0[a', 88, 76, 35.2, 84, 19, 7.14, {'ott_len': 50, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 219}], ['am7(Lg', 87, 81, 56.6, 80, 20, 3.53, {'ott_len': 37, 'ott_percent': 705, 'stop_loss': 116, 'risk_reward': 10, 'chop_rsi_len': 26, 'chop_bandwidth': 241}], ['^i*F,g', 64, 125, 71.93, 43, 30, -16.35, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 37, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['wi3)lZ', 85, 94, 46.38, 78, 23, 2.35, {'ott_len': 50, 'ott_percent': 667, 'stop_loss': 99, 'risk_reward': 11, 'chop_rsi_len': 44, 'chop_bandwidth': 194}], ['gf4(ug', 94, 34, 24.41, 100, 3, 2.87, {'ott_len': 40, 'ott_percent': 639, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['vi4)^Z', 82, 106, 39.88, 76, 25, 1.02, {'ott_len': 49, 'ott_percent': 667, 'stop_loss': 103, 'risk_reward': 11, 'chop_rsi_len': 36, 'chop_bandwidth': 194}], ['^i:-8Z', 66, 148, 57.16, 59, 42, -17.34, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 14, 'chop_rsi_len': 14, 'chop_bandwidth': 194}], ['wi*0Fg', 88, 75, 32.71, 83, 18, 6.17, {'ott_len': 50, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 22, 'chop_bandwidth': 241}], ['mm4([g', 92, 55, 37.63, 85, 14, 5.95, {'ott_len': 44, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['`m4([g', 91, 67, 43.3, 71, 7, -1.02, {'ott_len': 36, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['oi*)WZ', 86, 122, 21.8, 78, 33, -3.1, {'ott_len': 45, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['^i*+,g', 84, 142, 35.11, 75, 36, -1.16, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 13, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['gm0(Ag', 85, 102, 30.59, 75, 29, -4.1, {'ott_len': 40, 'ott_percent': 705, 'stop_loss': 85, 'risk_reward': 10, 'chop_rsi_len': 19, 'chop_bandwidth': 241}], ['^i*)WK', 83, 193, 28.54, 78, 57, -4.49, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 138}], ['ci*q[g', 53, 56, 61.62, 33, 12, -19.44, {'ott_len': 38, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 75, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['di*0[g', 86, 68, 33.21, 78, 14, 3.1, {'ott_len': 38, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['ci*0[g', 86, 68, 33.21, 78, 14, 3.1, {'ott_len': 38, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['fi:)Wg', 84, 63, 38.62, 76, 13, -1.0, {'ott_len': 40, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['vi/)^Z', 85, 111, 37.03, 84, 26, 6.61, {'ott_len': 49, 'ott_percent': 667, 'stop_loss': 81, 'risk_reward': 11, 'chop_rsi_len': 36, 'chop_bandwidth': 194}], ['em4([g', 90, 66, 46.78, 80, 10, 1.86, {'ott_len': 39, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['`m2(hg', 94, 57, 43.21, 80, 5, 1.17, {'ott_len': 36, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['`m2(gg', 94, 57, 43.21, 80, 5, 1.17, {'ott_len': 36, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['ei+0Kg', 83, 86, 40.87, 80, 21, 5.54, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 25, 'chop_bandwidth': 241}], ['wi*0[^', 86, 91, 38.13, 78, 23, 2.92, {'ott_len': 50, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 208}], ['bw,.t*', 67, 158, -10.85, 70, 41, -4.3, {'ott_len': 37, 'ott_percent': 800, 'stop_loss': 68, 'risk_reward': 15, 'chop_rsi_len': 48, 'chop_bandwidth': 17}], ['oi+0hg', 92, 50, 38.14, 83, 6, 2.86, {'ott_len': 45, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['ni+0hg', 92, 50, 38.14, 83, 6, 2.86, {'ott_len': 45, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['ji*0[[', 81, 103, 34.46, 75, 32, 1.15, {'ott_len': 42, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 197}], ['ei*)WZ', 88, 127, 26.91, 72, 37, -11.18, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 11, 'chop_rsi_len': 32, 'chop_bandwidth': 194}], ['`m2(eg', 94, 57, 43.21, 80, 5, 1.17, {'ott_len': 36, 'ott_percent': 705, 'stop_loss': 94, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['oi*0hg', 92, 50, 34.15, 83, 6, 2.56, {'ott_len': 45, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 41, 'chop_bandwidth': 241}], ['ci10[g', 82, 64, 41.91, 66, 12, -2.7, {'ott_len': 38, 'ott_percent': 667, 'stop_loss': 90, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['`m4(eg', 96, 56, 52.93, 80, 5, 1.44, {'ott_len': 36, 'ott_percent': 705, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 40, 'chop_bandwidth': 241}], ['^i*0vg', 93, 31, 20.64, 66, 3, 0.13, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 49, 'chop_bandwidth': 241}], ['wi*08g', 87, 93, 40.62, 79, 24, 3.85, {'ott_len': 50, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 14, 'chop_bandwidth': 241}], ['wi*07g', 87, 93, 40.62, 79, 24, 3.85, {'ott_len': 50, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 14, 'chop_bandwidth': 241}], ['wi*09g', 86, 92, 39.33, 79, 24, 3.85, {'ott_len': 50, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 15, 'chop_bandwidth': 241}], ['gi10[g', 83, 60, 42.6, 70, 10, -1.73, {'ott_len': 40, 'ott_percent': 667, 'stop_loss': 90, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['fi10[g', 83, 60, 42.6, 70, 10, -1.73, {'ott_len': 40, 'ott_percent': 667, 'stop_loss': 90, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['ei+0Jg', 83, 89, 39.75, 78, 23, 3.53, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 24, 'chop_bandwidth': 241}], ['^i*>/g', 71, 123, 78.56, 53, 32, -10.53, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 29, 'chop_rsi_len': 9, 'chop_bandwidth': 241}], ['di*0Wg', 85, 71, 33.2, 80, 15, 4.05, {'ott_len': 38, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['vi1)[Z', 84, 109, 40.34, 76, 26, -0.91, {'ott_len': 49, 'ott_percent': 667, 'stop_loss': 90, 'risk_reward': 11, 'chop_rsi_len': 34, 'chop_bandwidth': 194}], ['wi*0[]', 85, 96, 37.86, 78, 23, 2.92, {'ott_len': 50, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 205}], ['ci*-[g', 88, 72, 27.97, 80, 15, 1.89, {'ott_len': 38, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 14, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['^i*<,g', 70, 125, 67.17, 51, 31, -12.77, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 28, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['wi*0<g', 86, 87, 33.09, 79, 24, 3.85, {'ott_len': 50, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 16, 'chop_bandwidth': 241}], ['gi*0[g', 88, 63, 37.46, 83, 12, 4.41, {'ott_len': 40, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['oi+0rg', 94, 39, 32.47, 75, 4, 0.86, {'ott_len': 45, 'ott_percent': 667, 'stop_loss': 63, 'risk_reward': 17, 'chop_rsi_len': 47, 'chop_bandwidth': 241}], ['^q*0Wg', 83, 71, 24.57, 76, 13, 2.03, {'ott_len': 35, 'ott_percent': 743, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['^i:-*Z', 66, 145, 52.36, 60, 40, -14.3, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 130, 'risk_reward': 14, 'chop_rsi_len': 6, 'chop_bandwidth': 194}], ['Tw3.l(', 67, 161, 28.8, 56, 55, -18.48, {'ott_len': 29, 'ott_percent': 800, 'stop_loss': 99, 'risk_reward': 15, 'chop_rsi_len': 44, 'chop_bandwidth': 10}], ['^i*0sg', 91, 36, 20.5, 66, 3, 0.13, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 48, 'chop_bandwidth': 241}], ['^i*@,g', 69, 125, 88.73, 51, 31, -10.32, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 31, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['gi4([g', 92, 63, 44.66, 83, 12, 3.74, {'ott_len': 40, 'ott_percent': 667, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['gi*0Wg', 87, 66, 36.93, 86, 15, 7.33, {'ott_len': 40, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['fi*0Wg', 87, 66, 36.93, 86, 15, 7.33, {'ott_len': 40, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 17, 'chop_rsi_len': 32, 'chop_bandwidth': 241}], ['^i*A,g', 68, 125, 89.2, 51, 31, -9.48, {'ott_len': 35, 'ott_percent': 667, 'stop_loss': 59, 'risk_reward': 32, 'chop_rsi_len': 7, 'chop_bandwidth': 241}], ['gh4([g', 89, 65, 38.16, 81, 11, 1.95, {'ott_len': 40, 'ott_percent': 658, 'stop_loss': 103, 'risk_reward': 10, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ['ei10[g', 86, 60, 51.78, 63, 11, -4.16, {'ott_len': 39, 'ott_percent': 667, 'stop_loss': 90, 'risk_reward': 17, 'chop_rsi_len': 34, 'chop_bandwidth': 241}], ]
157.269012
161
0.619621
25,482
138,554
3.126285
0.029786
0.066128
0.110213
0.082371
0.855543
0.836752
0.814948
0.798366
0.768227
0.751205
0
0.218015
0.12043
138,554
880
162
157.447727
0.435676
0
0
0
0
0
0.443654
0
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
1
0
0
0
0
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
6b838771ffc789ee73414a651d830b51c22b0e46
1,091
py
Python
recommender/models.py
Gnitch/Anime-Recommender
1573d32e213200e0876e81efdf52ab5511681701
[ "Apache-2.0" ]
1
2022-03-06T11:37:40.000Z
2022-03-06T11:37:40.000Z
recommender/models.py
Gnitch/Anime-Recommender
1573d32e213200e0876e81efdf52ab5511681701
[ "Apache-2.0" ]
null
null
null
recommender/models.py
Gnitch/Anime-Recommender
1573d32e213200e0876e81efdf52ab5511681701
[ "Apache-2.0" ]
1
2021-10-04T12:20:50.000Z
2021-10-04T12:20:50.000Z
from django.db import models class Anime(models.Model): mal_id = models.IntegerField(primary_key=True) name = models.CharField(max_length=100,null=False,blank=False) score = models.FloatField(null=False,blank=False) genres = models.TextField(null=False,blank=False) sypnopsis = models.TextField() group = models.CharField(max_length=10,null=False,blank=False) popularity = models.IntegerField(null=False,blank=False) def __str__(self): return self.name class AnimeAll(models.Model): mal_id = models.IntegerField(primary_key=True) name = models.CharField(max_length=100,null=False,blank=False) score = models.FloatField(null=False,blank=False) genres = models.TextField(null=False,blank=False) sypnopsis = models.TextField() group = models.CharField(max_length=10,null=False,blank=False) popularity = models.IntegerField(null=False,blank=False) members = models.IntegerField(null=False,blank=False) favorites = models.IntegerField(null=False,blank=False) def __str__(self): return self.name
37.62069
66
0.732356
141
1,091
5.553191
0.262411
0.137931
0.214559
0.291188
0.91954
0.91954
0.872286
0.872286
0.872286
0.872286
0
0.010799
0.151237
1,091
28
67
38.964286
0.834773
0
0
0.782609
0
0
0
0
0
0
0
0
0
1
0.086957
false
0
0.043478
0.086957
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
0
1
0
0
10
6bf3e34cc1c76c360f6c71f45b22715813bc518e
2,938
py
Python
rec_to_nwb/test/processing/device/acq/test_flDataAcqDeviceManager.py
jihyunbak/rec_to_nwb
6e65f8bf0a4faa4d986483ec2442ba19d70c92a9
[ "Apache-2.0" ]
8
2020-05-29T13:48:35.000Z
2021-11-19T04:24:48.000Z
rec_to_nwb/test/processing/device/acq/test_flDataAcqDeviceManager.py
jihyunbak/rec_to_nwb
6e65f8bf0a4faa4d986483ec2442ba19d70c92a9
[ "Apache-2.0" ]
12
2020-11-13T01:36:32.000Z
2022-01-23T20:35:55.000Z
rec_to_nwb/test/processing/device/acq/test_flDataAcqDeviceManager.py
jihyunbak/rec_to_nwb
6e65f8bf0a4faa4d986483ec2442ba19d70c92a9
[ "Apache-2.0" ]
3
2020-10-20T06:52:45.000Z
2021-07-06T23:00:53.000Z
from unittest import TestCase from rec_to_nwb.processing.nwb.components.device.acq.fl_data_acq_device import FlDataAcqDevice from rec_to_nwb.processing.nwb.components.device.acq.fl_data_acq_device_manager import FlDataAcqDeviceManager class TestFlDataAcqDeviceManager(TestCase): def test_fl_data_acq_device_manager_create_successfully_without_optional_data(self): metadata = [ {'name': 'dataacq_device0', 'system': 'system_0', 'amplifier': 'amplifier_0', 'adc_circuit': 'adc_circuit_0'}, {'name': 'dataacq_device1', 'system': 'system_1', 'amplifier': 'amplifier_1', 'adc_circuit': 'adc_circuit_1'} ] fl_data_acq_device_manager = FlDataAcqDeviceManager(metadata) fl_data_acq_device = fl_data_acq_device_manager.get_fl_data_acq_device() self.assertIsInstance(fl_data_acq_device[0], FlDataAcqDevice) self.assertIsInstance(fl_data_acq_device[0].system, str) self.assertIsInstance(fl_data_acq_device[0].amplifier, str) self.assertIsInstance(fl_data_acq_device[0].adc_circuit, str) self.assertEqual(fl_data_acq_device[0].name, 'dataacq_device0') self.assertEqual(fl_data_acq_device[0].system, 'system_0') self.assertEqual(fl_data_acq_device[0].amplifier, 'amplifier_0') self.assertEqual(fl_data_acq_device[0].adc_circuit, 'adc_circuit_0') self.assertEqual(fl_data_acq_device[1].name, 'dataacq_device1') self.assertEqual(fl_data_acq_device[1].system, 'system_1') self.assertEqual(fl_data_acq_device[1].amplifier, 'amplifier_1') self.assertEqual(fl_data_acq_device[1].adc_circuit, 'adc_circuit_1') def test_fl_data_acq_device_manager_create_successfully_with_optional_data(self): metadata = [ {'name': 'dataacq_device0', 'system': 'system_0', 'amplifier': 'amplifier_0', 'adc_circuit': 'adc_circuit_0'}, {'name': 'dataacq_device1', 'system': 'system_1'} ] fl_data_acq_device_manager = FlDataAcqDeviceManager(metadata) fl_data_acq_device = fl_data_acq_device_manager.get_fl_data_acq_device() self.assertIsInstance(fl_data_acq_device[0], FlDataAcqDevice) self.assertIsInstance(fl_data_acq_device[0].system, str) self.assertIsInstance(fl_data_acq_device[0].amplifier, str) self.assertIsInstance(fl_data_acq_device[0].adc_circuit, str) self.assertEqual(fl_data_acq_device[0].name, 'dataacq_device0') self.assertEqual(fl_data_acq_device[0].system, 'system_0') self.assertEqual(fl_data_acq_device[0].amplifier, 'amplifier_0') self.assertEqual(fl_data_acq_device[0].adc_circuit, 'adc_circuit_0') self.assertEqual(fl_data_acq_device[1].name, 'dataacq_device1') self.assertEqual(fl_data_acq_device[1].system, 'system_1') self.assertEqual(fl_data_acq_device[1].amplifier, '') self.assertEqual(fl_data_acq_device[1].adc_circuit, '')
53.418182
122
0.738938
391
2,938
5.102302
0.104859
0.108271
0.162406
0.270677
0.92381
0.920301
0.904261
0.904261
0.903759
0.815539
0
0.0208
0.149081
2,938
55
123
53.418182
0.7772
0
0
0.666667
0
0
0.145628
0
0
0
0
0
0.571429
1
0.047619
false
0
0.071429
0
0.142857
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
1
0
0
0
0
0
0
0
0
0
8
d4570da4ac9387d11c6e0d787a0e8368b96b1453
21,108
py
Python
tests/instrument.py
API-market/ore-protocol
54810c4f6352ba42170eaaec3c56051fd0a3ded3
[ "MIT" ]
1
2020-04-14T12:10:12.000Z
2020-04-14T12:10:12.000Z
tests/instrument.py
CryptoMechanics/aikon-ore-protocol
cea0b585380b96fdc801be2d6d8209107636ce8b
[ "MIT" ]
24
2018-12-10T22:52:45.000Z
2020-10-20T20:34:01.000Z
tests/instrument.py
API-market/ore-protocol
54810c4f6352ba42170eaaec3c56051fd0a3ded3
[ "MIT" ]
null
null
null
import unittest from eosfactory.eosf import * import time verbosity([Verbosity.INFO, Verbosity.OUT, Verbosity.TRACE, Verbosity.DEBUG]) class Test(unittest.TestCase): def run(self, result=None): super().run(result) @classmethod def setUpClass(cls): SCENARIO(''' Create a contract from template, then build and deploy it. ''') reset() create_wallet() create_master_account("master") COMMENT(''' Create test accounts: ''') create_account("app", master) create_account("notminter", master) def setUp(self): pass def test_01(self): create_account("right", master, account_name="rights.ore") right_contract = Contract(right, "/root/ore-protocol/contracts/ore.rights_registry") right_contract.build() right_contract.deploy() create_account("instr", master, account_name="instr.ore") instr_contract = Contract(instr, "/root/ore-protocol/contracts/ore.instrument") instr_contract.build() instr_contract.deploy() def test_02(self): COMMENT(''' Create and Issue OREINST: ''') instr.push_action( "create", { "issuer": instr, "maximum_supply": "100000000.0000 OREINST" }, permission=(instr, Permission.ACTIVE)) instr.push_action( "issue", { "to": instr, "quantity": "10000000.0000 OREINST", "memo": "" }, permission=(instr, Permission.ACTIVE)) def test_03(self): COMMENT(''' Register rights: ''') right.push_action( "upsertright", { "owner": app, "right_name": "apimarket.manager.licenseApi", "urls": [{ "base_right": "", "url": " ore://manager.apim/action/licenseapi", "method": "post", "matches_params": [{ "name": "sla", "value": "default" }], "token_life_span": 100, "is_default": 1 }], "issuer_whitelist": [app] }, permission=(app, Permission.ACTIVE)) right.push_action( "upsertright", { "owner": app, "right_name": "apimarket.manager.licenseApi2", "urls": [{ "base_right": "", "url": " ore://manager.apim/action/licenseapi", "method": "post", "matches_params": [{ "name": "sla", "value": "default" }], "token_life_span": 100, "is_default": 1 }], "issuer_whitelist": [] }, permission=(app, Permission.ACTIVE)) right.push_action( "upsertright", { "owner": app, "right_name": "apimarket.manager.licenseApi3", "urls": [{ "base_right": "", "url": " ore://manager.apim/action/licenseapi", "method": "post", "matches_params": [{ "name": "sla", "value": "default" }], "token_life_span": 100, "is_default": 1 }], "issuer_whitelist": [] }, permission=(app, Permission.ACTIVE)) def test_04(self): COMMENT(''' Mint: ''') instr.push_action( "mint", { "minter": app, "owner": app, "instrument": { "issuer": app, "instrument_class": "sample_class", "description": "sample_description", "instrument_template": "sample_template", "security_type": "", "parameter_rules": [], "rights": [{ "right_name": "apimarket.manager.licenseApi", "description": "licenser", "price_in_cpu": "10", "additional_url_params": [] }, { "right_name": "apimarket.manager.licenseApi2", "description": "licenser", "price_in_cpu": "10", "additional_url_params": [] }], "parent_instrument_id": 0, "data": [], "encrypted_by": "", "mutability": 2 }, "start_time": 0, "end_time": 0, "instrumentId": 0 }, permission=(app, Permission.ACTIVE)) with self.assertRaises(Error): # Instrument id exists instr.push_action( "mint", { "minter": app, "owner": app, "instrument": { "issuer": app, "instrument_class": "sample_class", "description": "sample_description", "instrument_template": "", "security_type": "", "parameter_rules": [], "rights": [{ "right_name": "apimarket.manager.licenseApi", "description": "licenser", "price_in_cpu": "10", "additional_url_params": [] }], "parent_instrument_id": 0, "data": [], "encrypted_by": "", "mutability": 2 }, "start_time": 0, "end_time": 0, "instrumentId": 1 }, permission=(app, Permission.ACTIVE)) with self.assertRaises(Error): # Owner account doesnt exists instr.push_action( "mint", { "minter": app, "owner": "notexists", "instrument": { "issuer": app, "instrument_class": "sample_class", "description": "sample_description", "instrument_template": "", "security_type": "", "parameter_rules": [], "rights": [{ "right_name": "apimarket.manager.licenseApi", "description": "licenser", "price_in_cpu": "10", "additional_url_params": [] }], "parent_instrument_id": 0, "data": [], "encrypted_by": "", "mutability": 2 }, "start_time": 0, "end_time": 0, "instrumentId": 0 }, permission=(app, Permission.ACTIVE)) def test_05(self): COMMENT(''' Create Instrument: ''') instr.push_action( "createinst", { "minter": app, "owner": app, "instrumentId": 2, "instrument": { "issuer": app, "instrument_class": "sample_class", "description": "sample_description", "instrument_template": "", "security_type": "", "parameter_rules": [], "rights": [{ "right_name": "apimarket.manager.licenseApi", "description": "licenser", "price_in_cpu": "10", "additional_url_params": [] }], "parent_instrument_id": 0, "data": [], "encrypted_by": "", "mutability": 2 }, "start_time": 0, "end_time": 0 }, permission=(instr, Permission.ACTIVE)) instr.push_action( "createinst", { "minter": app, "owner": app, "instrumentId": 5, "instrument": { "issuer": app, "instrument_class": "sample_class", "description": "sample_description", "instrument_template": "", "security_type": "", "parameter_rules": [], "rights": [{ "right_name": "apimarket.manager.licenseApi", "description": "licenser", "price_in_cpu": "10", "additional_url_params": [] }], "parent_instrument_id": 0, "data": [], "encrypted_by": "", "mutability": 2 }, "start_time": 0, "end_time": 0 }, permission=(instr, Permission.ACTIVE)) def test_06(self): COMMENT(''' Update Instrument: ''') time.sleep(3) instr.push_action( "createinst", { "minter": app, "owner": app, "instrumentId": 2, "instrument": { "issuer": app, "instrument_class": "sample_class", "description": "sample_description", "instrument_template": "", "security_type": "", "parameter_rules": [], "rights": [{ "right_name": "apimarket.manager.licenseApi", "description": "licenser", "price_in_cpu": "10", "additional_url_params": [] }], "parent_instrument_id": 0, "data": [], "encrypted_by": "", "mutability": 2 }, "start_time": 0, "end_time": 0 }, permission=(instr, Permission.ACTIVE)) def test_07(self): COMMENT(''' Check Rights: ''') instr.push_action( "mint", { "minter": app, "owner": app, "instrument": { "issuer": app, "instrument_class": "class", "description": "sample_description", "instrument_template": "", "security_type": "", "parameter_rules": [], "rights": [{ "right_name": "apimarket.manager.licenseApi3", "description": "licenser", "price_in_cpu": "10", "additional_url_params": [] }], "parent_instrument_id": 0, "data": [], "encrypted_by": "", "mutability": 2 }, "start_time": 0, "end_time": 0, "instrumentId": 3 }, permission=(app, Permission.ACTIVE)) instr.push_action( "checkright", { "minter": app, "issuer": app, "rightname": "apimarket.manager.licenseApi", "deferred_transaction_id": 10 }, permission=(instr, Permission.ACTIVE)) with self.assertRaises(Error): # Right doesn't exist instr.push_action( "checkright", { "minter": app, "issuer": app, "rightname": "nonexistent.right", "deferred_transaction_id": 0 }, permission=(instr, Permission.ACTIVE)) with self.assertRaises(Error): # minter neither owns the right nor whitelisted for the right instr.push_action( "checkright", { "minter": "ownerfails", "issuer": app, "rightname": "apimarket.manager.licenseApi", "deferred_transaction_id": 0 }, permission=(instr, Permission.ACTIVE)) with self.assertRaises(Error): # instrument issuer neither holds the right nor whitelisted for the right instr.push_action( "checkright", { "minter": "minter", "issuer": "issuerfails", "rightname": "apimarket.manager.licenseApi", "deferred_transaction_id": 0 }, permission=(instr, Permission.ACTIVE)) def test_08(self): COMMENT(''' Revoke: ''') instr.push_action( "mint", { "minter": app, "owner": app, "instrument": { "issuer": app, "instrument_class": "class", "description": "sample_description", "instrument_template": "", "security_type": "", "parameter_rules": [], "rights": [{ "right_name": "apimarket.manager.licenseApi3", "description": "licenser", "price_in_cpu": "10", "additional_url_params": [] }], "parent_instrument_id": 0, "data": [], "encrypted_by": "", "mutability": 2 }, "start_time": 0, "end_time": 0, "instrumentId": 4 }, permission=(app, Permission.ACTIVE)) instr.push_action( "revoke", { "revoker": app, "token_id": 5 }, permission=(app, Permission.ACTIVE)) with self.assertRaises(Error): #token doesn't exist instr.push_action( "revoke", { "revoker": app, "token_id": 70 }, permission=(app, Permission.ACTIVE)) with self.assertRaises(Error): # The revoker account doesn't have authority to revoke the instrument instr.push_action( "revoke", { "revoker": right, "token_id": 4 }, permission=(right, Permission.ACTIVE)) with self.assertRaises(Error): # token is already revoked instr.push_action( "revoke", { "revoker": app, "token_id": 5 }, permission=(app, Permission.ACTIVE)) def test_09(self): COMMENT(''' Update: ''') instr.push_action( "update", { "updater": app, "instrument_template": "", "instrument": { "issuer": app, "instrument_class": "sample_class", "description": "sample_description", "instrument_template": "", "security_type": "", "parameter_rules": [], "rights": [{ "right_name": "apimarket.manager.licenseApi", "description": "licenser", "price_in_cpu": "10", "additional_url_params": [] }], "parent_instrument_id": 0, "data": [], "encrypted_by": "", "mutability": 2 }, "instrument_id": 2, "start_time": 0, "end_time": 0 }, permission=(app, Permission.ACTIVE)) with self.assertRaises(Error): #Updater acccount doesn't have the authority to change start/edd time of the instrument instr.push_action( "update", { "updater": right, "instrument_template": "", "instrument": { "issuer": app, "instrument_class": "sample_class", "description": "sample_description", "instrument_template": "", "security_type": "", "parameter_rules": [], "rights": [{ "right_name": "apimarket.manager.licenseApi", "description": "licenser", "price_in_cpu": "10", "additional_url_params": [] }], "parent_instrument_id": 0, "data": [], "encrypted_by": "", "mutability": 2 }, "instrument_id": 1, "start_time": 0, "end_time": 0 }, permission=(right, Permission.ACTIVE)) def test_10(self): COMMENT(''' Transfer: ''') instr.push_action( "transfer", { "sender": app, "to": right, "token_id": 2 }, permission=(app, Permission.ACTIVE)) with self.assertRaises(Error): #Sender account is not allowed to transfer the instrument instr.push_action( "transfer", { "sender": app, "to": right, "token_id": 2 }, permission=(app, Permission.ACTIVE)) with self.assertRaises(Error): #Token doesn't exists instr.push_action( "transfer", { "sender": app, "to": right, "token_id": 99 }, permission=(app, Permission.ACTIVE)) # def test_06(self): # def test_07(self): # def test_08(self): def tearDown(self): pass @classmethod def tearDownClass(cls): stop() if __name__ == "__main__": unittest.main()
35.655405
126
0.359437
1,279
21,108
5.722439
0.140735
0.035524
0.047138
0.059434
0.803935
0.77046
0.753655
0.725646
0.689438
0.649269
0
0.015786
0.534821
21,108
592
127
35.655405
0.729606
0.025156
0
0.734962
0
0
0.241015
0.048777
0
0
0
0
0.020677
1
0.028195
false
0.003759
0.005639
0
0.035714
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
d47584c76196cb3c107aea8a42ea6a6ede558c8c
68,592
py
Python
benchmarks/SimResults/Paper2_pinned_spec_base/old/cmp_mcfgamessmilczeusmp/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
benchmarks/SimResults/Paper2_pinned_spec_base/old/cmp_mcfgamessmilczeusmp/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
benchmarks/SimResults/Paper2_pinned_spec_base/old/cmp_mcfgamessmilczeusmp/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate Leakage': 0.00662954, 'Peak Dynamic': 0.0, 'Runtime Dynamic': 0.0, 'Subthreshold Leakage': 0.0691322, 'Subthreshold Leakage with power gating': 0.0259246}, 'Core': [{'Area': 32.6082, 'Execution Unit/Area': 8.2042, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.245726, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.395692, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 1.03851, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.122718, 'Execution Unit/Instruction Scheduler/Area': 2.17927, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.707963, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 1.22594, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.703109, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 2.63701, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.540573, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 7.99816, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.196197, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0256642, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.28931, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.189803, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.485507, 'Execution Unit/Register Files/Runtime Dynamic': 0.215467, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.76641, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.71333, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155, 'Execution Unit/Runtime Dynamic': 5.36687, 'Execution Unit/Subthreshold Leakage': 1.83518, 'Execution Unit/Subthreshold Leakage with power gating': 0.709678, 'Gate Leakage': 0.372997, 'Instruction Fetch Unit/Area': 5.86007, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00207982, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00207982, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00181891, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000708172, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00272653, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00870509, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0196772, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0590479, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.182462, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.448207, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.619723, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.96874, 'Instruction Fetch Unit/Runtime Dynamic': 1.27877, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932587, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0235838, 'L2/Runtime Dynamic': 0.00626819, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80969, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 6.57326, 'Load Store Unit/Data Cache/Runtime Dynamic': 2.57242, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0351387, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.172637, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.172637, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 7.39181, 'Load Store Unit/Runtime Dynamic': 3.59644, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.425693, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.851386, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591622, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283406, 'Memory Management Unit/Area': 0.434579, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.15108, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.151349, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00813591, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.399995, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0737292, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.819682, 'Memory Management Unit/Runtime Dynamic': 0.225078, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 29.7637, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.684487, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925, 'Renaming Unit/Free List/Area': 0.0414755, 'Renaming Unit/Free List/Gate Leakage': 4.15911e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0401324, 'Renaming Unit/Free List/Runtime Dynamic': 0.0444379, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987, 'Renaming Unit/Gate Leakage': 0.00863632, 'Renaming Unit/Int Front End RAT/Area': 0.114751, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.360662, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781, 'Renaming Unit/Peak Dynamic': 4.56169, 'Renaming Unit/Runtime Dynamic': 1.08959, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 11.563, 'Subthreshold Leakage': 6.21877, 'Subthreshold Leakage with power gating': 2.58311}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202689, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.0, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.112348, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.181212, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.0914699, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.38503, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.128493, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.07422, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00471236, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0340763, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0348508, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.0340763, 'Execution Unit/Register Files/Runtime Dynamic': 0.0395631, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.0717892, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.209274, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 1.24193, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000590614, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000590614, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000519259, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000203658, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000500634, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00220112, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00549002, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0335029, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.13107, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.06549, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.113791, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 4.45301, 'Instruction Fetch Unit/Runtime Dynamic': 0.220475, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.05015, 'L2/Runtime Dynamic': 0.0138539, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 2.54494, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.649111, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.042311, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0423109, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 2.74474, 'Load Store Unit/Runtime Dynamic': 0.900085, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.104332, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.208663, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0370277, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0377799, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.132502, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0107387, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.352218, 'Memory Management Unit/Runtime Dynamic': 0.0485186, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 15.2638, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00506881, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0591822, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.064251, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 2.48912, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0713779, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.258752, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.356462, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.101885, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.164337, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.0829519, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.349174, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.0618772, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.58852, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0673433, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00427353, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.058805, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0316054, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.126148, 'Execution Unit/Register Files/Runtime Dynamic': 0.0358789, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.141734, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.280168, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 1.32935, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000124018, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000124018, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000111401, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 4.49745e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000454013, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.000813451, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00106827, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.030383, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 1.93262, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0656257, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.103194, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 4.24493, 'Instruction Fetch Unit/Runtime Dynamic': 0.201085, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0308259, 'L2/Runtime Dynamic': 0.00848646, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 2.1263, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.440509, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.028767, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.028767, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 2.26214, 'Load Store Unit/Runtime Dynamic': 0.611145, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0709344, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.141869, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0251749, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0256368, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.120163, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0107616, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.319518, 'Memory Management Unit/Runtime Dynamic': 0.0363984, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 15.0354, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.17715, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00675266, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0481404, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.232043, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 2.41851, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.115932, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.293747, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.567292, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.273302, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.440825, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.222514, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.936641, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.225604, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 5.29768, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.107174, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0114635, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.128688, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0847796, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.235862, 'Execution Unit/Register Files/Runtime Dynamic': 0.0962431, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.3001, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.692103, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.42411, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000608873, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000608873, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000529903, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000204902, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00121787, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00296551, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00585297, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0815008, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 5.18415, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.179088, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.276813, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 7.65426, 'Instruction Fetch Unit/Runtime Dynamic': 0.54622, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.112438, 'L2/Runtime Dynamic': 0.0287291, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.01998, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.929583, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0576798, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0576799, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.29236, 'Load Store Unit/Runtime Dynamic': 1.27172, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.142229, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.284458, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0504774, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0521597, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.322331, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0293781, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.565151, 'Memory Management Unit/Runtime Dynamic': 0.0815378, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 20.5114, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.281925, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0157616, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.135502, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.433188, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.78551, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 3.739430069397231, 'Runtime Dynamic': 3.739430069397231, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.224933, 'Runtime Dynamic': 0.0918498, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 80.7992, 'Peak Power': 113.911, 'Runtime Dynamic': 21.348, 'Subthreshold Leakage': 31.5774, 'Subthreshold Leakage with power gating': 13.9484, 'Total Cores/Area': 128.669, 'Total Cores/Gate Leakage': 1.4798, 'Total Cores/Peak Dynamic': 80.5742, 'Total Cores/Runtime Dynamic': 21.2561, 'Total Cores/Subthreshold Leakage': 24.7074, 'Total Cores/Subthreshold Leakage with power gating': 10.2429, 'Total L3s/Area': 61.9075, 'Total L3s/Gate Leakage': 0.0484137, 'Total L3s/Peak Dynamic': 0.224933, 'Total L3s/Runtime Dynamic': 0.0918498, 'Total L3s/Subthreshold Leakage': 6.80085, 'Total L3s/Subthreshold Leakage with power gating': 3.32364, 'Total Leakage': 33.1122, 'Total NoCs/Area': 1.33155, 'Total NoCs/Gate Leakage': 0.00662954, 'Total NoCs/Peak Dynamic': 0.0, 'Total NoCs/Runtime Dynamic': 0.0, 'Total NoCs/Subthreshold Leakage': 0.0691322, 'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}}
75.045952
124
0.681989
8,083
68,592
5.781393
0.067178
0.123601
0.112987
0.093471
0.939248
0.930646
0.918534
0.887355
0.86189
0.842546
0
0.131633
0.224385
68,592
914
125
75.045952
0.746753
0
0
0.642232
0
0
0.657574
0.04811
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
2e0127a267aaf7eb9173a90442be32687210896a
61,620
py
Python
azure-mgmt-iothub/azure/mgmt/iothub/operations/iot_hub_resource_operations.py
CharaD7/azure-sdk-for-python
9fdf0aac0cec8a15a5bb2a0ea27dd331dbfa2f5c
[ "MIT" ]
null
null
null
azure-mgmt-iothub/azure/mgmt/iothub/operations/iot_hub_resource_operations.py
CharaD7/azure-sdk-for-python
9fdf0aac0cec8a15a5bb2a0ea27dd331dbfa2f5c
[ "MIT" ]
null
null
null
azure-mgmt-iothub/azure/mgmt/iothub/operations/iot_hub_resource_operations.py
CharaD7/azure-sdk-for-python
9fdf0aac0cec8a15a5bb2a0ea27dd331dbfa2f5c
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from msrest.pipeline import ClientRawResponse from msrestazure.azure_operation import AzureOperationPoller import uuid from .. import models class IotHubResourceOperations(object): """IotHubResourceOperations operations. :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An objec model deserializer. """ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer self.config = config def get( self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): """Get an IotHub. Get an IotHub. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_name: The name of the resource. :type resource_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`IotHubDescription <azure.mgmt.iothub.models.IotHubDescription>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true """ # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}' path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send(request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.ErrorDetailsException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('IotHubDescription', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def create_or_update( self, resource_group_name, resource_name, iot_hub_description, custom_headers=None, raw=False, **operation_config): """Create or update an IotHub. Create or update an IotHub. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_name: The name of the resource. :type resource_name: str :param iot_hub_description: The Iot hub description. :type iot_hub_description: :class:`IotHubDescription <azure.mgmt.iothub.models.IotHubDescription>` :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :rtype: :class:`AzureOperationPoller<msrestazure.azure_operation.AzureOperationPoller>` instance that returns :class:`IotHubDescription <azure.mgmt.iothub.models.IotHubDescription>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true """ # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}' path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(iot_hub_description, 'IotHubDescription') # Construct and send request def long_running_send(): request = self._client.put(url, query_parameters) return self._client.send( request, header_parameters, body_content, **operation_config) def get_long_running_status(status_link, headers=None): request = self._client.get(status_link) if headers: request.headers.update(headers) return self._client.send( request, header_parameters, **operation_config) def get_long_running_output(response): if response.status_code not in [201]: raise models.ErrorDetailsException(self._deserialize, response) deserialized = None if response.status_code == 201: deserialized = self._deserialize('IotHubDescription', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized if raw: response = long_running_send() return get_long_running_output(response) long_running_operation_timeout = operation_config.get( 'long_running_operation_timeout', self.config.long_running_operation_timeout) return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) def delete( self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): """Delete an IotHub. Delete an IotHub. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_name: The name of the resource. :type resource_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :rtype: :class:`AzureOperationPoller<msrestazure.azure_operation.AzureOperationPoller>` instance that returns :class:`IotHubDescription <azure.mgmt.iothub.models.IotHubDescription>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true """ # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}' path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request def long_running_send(): request = self._client.delete(url, query_parameters) return self._client.send(request, header_parameters, **operation_config) def get_long_running_status(status_link, headers=None): request = self._client.get(status_link) if headers: request.headers.update(headers) return self._client.send( request, header_parameters, **operation_config) def get_long_running_output(response): if response.status_code not in [202]: raise models.ErrorDetailsException(self._deserialize, response) deserialized = None if response.status_code == 202: deserialized = self._deserialize('IotHubDescription', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized if raw: response = long_running_send() return get_long_running_output(response) long_running_operation_timeout = operation_config.get( 'long_running_operation_timeout', self.config.long_running_operation_timeout) return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) def list_by_subscription( self, custom_headers=None, raw=False, **operation_config): """Get all IotHubs in a subscription. Get all IotHubs in a subscription. :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`IotHubDescriptionPaged <azure.mgmt.iothub.models.IotHubDescriptionPaged>` """ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL url = '/subscriptions/{subscriptionId}/providers/Microsoft.Devices/IotHubs' path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') else: url = next_link query_parameters = {} # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.ErrorDetailsException(self._deserialize, response) return response # Deserialize response deserialized = models.IotHubDescriptionPaged(internal_paging, self._deserialize.dependencies) if raw: header_dict = {} client_raw_response = models.IotHubDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized def list_by_resource_group( self, resource_group_name, custom_headers=None, raw=False, **operation_config): """Get all IotHubs in a Resourcegroup. Get all IotHubs in a Resource group. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`IotHubDescriptionPaged <azure.mgmt.iothub.models.IotHubDescriptionPaged>` """ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs' path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') else: url = next_link query_parameters = {} # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.ErrorDetailsException(self._deserialize, response) return response # Deserialize response deserialized = models.IotHubDescriptionPaged(internal_paging, self._deserialize.dependencies) if raw: header_dict = {} client_raw_response = models.IotHubDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized def get_stats( self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): """Get IotHub Stats. Get IotHub Stats. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_name: The name of the resource. :type resource_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`RegistryStatistics <azure.mgmt.iothub.models.RegistryStatistics>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true """ # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/IotHubStats' path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send(request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.ErrorDetailsException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('RegistryStatistics', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def get_valid_skus( self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): """Get Valid Skus. Get Valid Skus. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_name: The name of the resource. :type resource_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`IotHubSkuDescriptionPaged <azure.mgmt.iothub.models.IotHubSkuDescriptionPaged>` """ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/skus' path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') else: url = next_link query_parameters = {} # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.ErrorDetailsException(self._deserialize, response) return response # Deserialize response deserialized = models.IotHubSkuDescriptionPaged(internal_paging, self._deserialize.dependencies) if raw: header_dict = {} client_raw_response = models.IotHubSkuDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized def list_event_hub_consumer_groups( self, resource_group_name, resource_name, event_hub_endpoint_name, custom_headers=None, raw=False, **operation_config): """Get EventHub Consumer Groups for an IotHub. Get EventHub Consumer Groups for an IotHub. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_name: The name of the resource. :type resource_name: str :param event_hub_endpoint_name: The name of the event hub endpoint. :type event_hub_endpoint_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`strPaged <azure.mgmt.iothub.models.strPaged>` """ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups' path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str'), 'eventHubEndpointName': self._serialize.url("event_hub_endpoint_name", event_hub_endpoint_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') else: url = next_link query_parameters = {} # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.ErrorDetailsException(self._deserialize, response) return response # Deserialize response deserialized = models.strPaged(internal_paging, self._deserialize.dependencies) if raw: header_dict = {} client_raw_response = models.strPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized def get_event_hub_consumer_group( self, resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers=None, raw=False, **operation_config): """Get EventHub Consumer Group for an IotHub. Get EventHub Consumer Group for an IotHub. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_name: The name of the resource. :type resource_name: str :param event_hub_endpoint_name: The name of the event hub endpoint. :type event_hub_endpoint_name: str :param name: The name of the consumer group. :type name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`EventHubConsumerGroupInfo <azure.mgmt.iothub.models.EventHubConsumerGroupInfo>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true """ # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}' path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str'), 'eventHubEndpointName': self._serialize.url("event_hub_endpoint_name", event_hub_endpoint_name, 'str'), 'name': self._serialize.url("name", name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send(request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.ErrorDetailsException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('EventHubConsumerGroupInfo', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def create_event_hub_consumer_group( self, resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers=None, raw=False, **operation_config): """Add an EventHub Consumer Group to an IotHub. Add an EventHub Consumer Group to an IotHub. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_name: The name of the resource. :type resource_name: str :param event_hub_endpoint_name: The name of the event hub endpoint. :type event_hub_endpoint_name: str :param name: The name of the consumer group. :type name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`EventHubConsumerGroupInfo <azure.mgmt.iothub.models.EventHubConsumerGroupInfo>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true """ # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}' path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str'), 'eventHubEndpointName': self._serialize.url("event_hub_endpoint_name", event_hub_endpoint_name, 'str'), 'name': self._serialize.url("name", name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.put(url, query_parameters) response = self._client.send(request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.ErrorDetailsException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('EventHubConsumerGroupInfo', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def delete_event_hub_consumer_group( self, resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers=None, raw=False, **operation_config): """Delete EventHub Consumer Group for an IotHub. Delete EventHub Consumer Group for an IotHub. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_name: The name of the resource. :type resource_name: str :param event_hub_endpoint_name: The name of the event hub endpoint. :type event_hub_endpoint_name: str :param name: The name of the consumer group. :type name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: None :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true """ # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}' path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str'), 'eventHubEndpointName': self._serialize.url("event_hub_endpoint_name", event_hub_endpoint_name, 'str'), 'name': self._serialize.url("name", name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.delete(url, query_parameters) response = self._client.send(request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.ErrorDetailsException(self._deserialize, response) if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response def list_jobs( self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): """Get all the jobs in an IotHub. Get all the jobs in an IotHub. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_name: The name of the resource. :type resource_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`JobResponsePaged <azure.mgmt.iothub.models.JobResponsePaged>` """ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/jobs' path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') else: url = next_link query_parameters = {} # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.ErrorDetailsException(self._deserialize, response) return response # Deserialize response deserialized = models.JobResponsePaged(internal_paging, self._deserialize.dependencies) if raw: header_dict = {} client_raw_response = models.JobResponsePaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized def get_job( self, resource_group_name, resource_name, job_id, custom_headers=None, raw=False, **operation_config): """Get a job in an IotHub. Get a job in an IotHub. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_name: The name of the resource. :type resource_name: str :param job_id: The job identifier. :type job_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`JobResponse <azure.mgmt.iothub.models.JobResponse>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true """ # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/jobs/{jobId}' path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str'), 'jobId': self._serialize.url("job_id", job_id, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send(request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.ErrorDetailsException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('JobResponse', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def get_quota_metrics( self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): """Get quota metrics for an IotHub. Get quota metrics for an IotHub. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_name: The name of the resource. :type resource_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`IotHubQuotaMetricInfoPaged <azure.mgmt.iothub.models.IotHubQuotaMetricInfoPaged>` """ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/quotaMetrics' path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') else: url = next_link query_parameters = {} # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.ErrorDetailsException(self._deserialize, response) return response # Deserialize response deserialized = models.IotHubQuotaMetricInfoPaged(internal_paging, self._deserialize.dependencies) if raw: header_dict = {} client_raw_response = models.IotHubQuotaMetricInfoPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized def check_name_availability( self, name, custom_headers=None, raw=False, **operation_config): """Check if an IotHub name is available. Check if an IotHub name is available. :param name: The name of the iot hub. :type name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`IotHubNameAvailabilityInfo <azure.mgmt.iothub.models.IotHubNameAvailabilityInfo>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true """ operation_inputs = models.OperationInputs(name=name) # Construct URL url = '/subscriptions/{subscriptionId}/providers/Microsoft.Devices/checkNameAvailability' path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(operation_inputs, 'OperationInputs') # Construct and send request request = self._client.post(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [200]: raise models.ErrorDetailsException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('IotHubNameAvailabilityInfo', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def list_keys( self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): """Get all keys for an IotHub. Get all keys for an IotHub. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_name: The name of the resource. :type resource_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`SharedAccessSignatureAuthorizationRulePaged <azure.mgmt.iothub.models.SharedAccessSignatureAuthorizationRulePaged>` """ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/listkeys' path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') else: url = next_link query_parameters = {} # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.post(url, query_parameters) response = self._client.send( request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.ErrorDetailsException(self._deserialize, response) return response # Deserialize response deserialized = models.SharedAccessSignatureAuthorizationRulePaged(internal_paging, self._deserialize.dependencies) if raw: header_dict = {} client_raw_response = models.SharedAccessSignatureAuthorizationRulePaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized def get_keys_for_key_name( self, resource_group_name, resource_name, key_name, custom_headers=None, raw=False, **operation_config): """Get the Key given a specific KeyName for an IotHub. Get the Key given a specific KeyName for an IotHub. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_name: The name of the resource. :type resource_name: str :param key_name: The name of the key. :type key_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`SharedAccessSignatureAuthorizationRule <azure.mgmt.iothub.models.SharedAccessSignatureAuthorizationRule>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true """ # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/IotHubKeys/{keyName}/listkeys' path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str'), 'keyName': self._serialize.url("key_name", key_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.post(url, query_parameters) response = self._client.send(request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.ErrorDetailsException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('SharedAccessSignatureAuthorizationRule', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def export_devices( self, resource_group_name, resource_name, export_blob_container_uri, exclude_keys, custom_headers=None, raw=False, **operation_config): """Export all the devices in an IotHub. Export all the devices in an IotHub. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_name: The name of the resource. :type resource_name: str :param export_blob_container_uri: The export BLOB container URI. :type export_blob_container_uri: str :param exclude_keys: The value indicating whether keys should be excluded during export. :type exclude_keys: bool :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`JobResponse <azure.mgmt.iothub.models.JobResponse>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true """ export_devices_parameters = models.ExportDevicesRequest(export_blob_container_uri=export_blob_container_uri, exclude_keys=exclude_keys) # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/exportDevices' path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(export_devices_parameters, 'ExportDevicesRequest') # Construct and send request request = self._client.post(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [200]: raise models.ErrorDetailsException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('JobResponse', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def import_devices( self, resource_group_name, resource_name, input_blob_container_uri, output_blob_container_uri, custom_headers=None, raw=False, **operation_config): """Import all the devices in an IotHub. Import all the devices in an IotHub. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_name: The name of the resource. :type resource_name: str :param input_blob_container_uri: The input BLOB container URI. :type input_blob_container_uri: str :param output_blob_container_uri: The output BLOB container URI. :type output_blob_container_uri: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`JobResponse <azure.mgmt.iothub.models.JobResponse>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true """ import_devices_parameters = models.ImportDevicesRequest(input_blob_container_uri=input_blob_container_uri, output_blob_container_uri=output_blob_container_uri) # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/importDevices' path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(import_devices_parameters, 'ImportDevicesRequest') # Construct and send request request = self._client.post(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [200]: raise models.ErrorDetailsException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('JobResponse', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized
46.50566
197
0.666277
6,483
61,620
6.10381
0.034706
0.03917
0.036517
0.034571
0.935559
0.930884
0.92305
0.901974
0.89419
0.891082
0
0.002764
0.2426
61,620
1,324
198
46.540786
0.845107
0.24492
0
0.850075
0
0.008996
0.177757
0.105236
0
0
0
0
0
1
0.049475
false
0
0.011994
0
0.14093
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
d846c100d79dc846be49ca41b6689373f0791f71
44,132
py
Python
angr/procedures/definitions/win32_tdh.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/definitions/win32_tdh.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/definitions/win32_tdh.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
# pylint:disable=line-too-long import logging from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool from ...calling_conventions import SimCCStdcall, SimCCMicrosoftAMD64 from .. import SIM_PROCEDURES as P from . import SimLibrary _l = logging.getLogger(name=__name__) lib = SimLibrary() lib.set_default_cc('X86', SimCCStdcall) lib.set_default_cc('AMD64', SimCCMicrosoftAMD64) lib.set_library_names("tdh.dll") prototypes = \ { # 'TdhCreatePayloadFilter': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Guid"), offset=0), SimTypePointer(SimStruct({"Id": SimTypeShort(signed=False, label="UInt16"), "Version": SimTypeChar(label="Byte"), "Channel": SimTypeChar(label="Byte"), "Level": SimTypeChar(label="Byte"), "Opcode": SimTypeChar(label="Byte"), "Task": SimTypeShort(signed=False, label="UInt16"), "Keyword": SimTypeLongLong(signed=False, label="UInt64")}, name="EVENT_DESCRIPTOR", pack=False, align=None), offset=0), SimTypeChar(label="Byte"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"FieldName": SimTypePointer(SimTypeChar(label="Char"), offset=0), "CompareOp": SimTypeShort(signed=False, label="UInt16"), "Value": SimTypePointer(SimTypeChar(label="Char"), offset=0)}, name="PAYLOAD_FILTER_PREDICATE", pack=False, align=None), label="LPArray", offset=0), SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["ProviderGuid", "EventDescriptor", "EventMatchANY", "PayloadPredicateCount", "PayloadPredicates", "PayloadFilter"]), # 'TdhDeletePayloadFilter': SimTypeFunction([SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["PayloadFilter"]), # 'TdhAggregatePayloadFilters': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), label="LPArray", offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypePointer(SimStruct({"Ptr": SimTypeLongLong(signed=False, label="UInt64"), "Size": SimTypeInt(signed=False, label="UInt32"), "Type": SimTypeInt(signed=False, label="UInt32")}, name="EVENT_FILTER_DESCRIPTOR", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["PayloadFilterCount", "PayloadFilterPtrs", "EventMatchALLFlags", "EventFilterDescriptor"]), # 'TdhCleanupPayloadEventFilterDescriptor': SimTypeFunction([SimTypePointer(SimStruct({"Ptr": SimTypeLongLong(signed=False, label="UInt64"), "Size": SimTypeInt(signed=False, label="UInt32"), "Type": SimTypeInt(signed=False, label="UInt32")}, name="EVENT_FILTER_DESCRIPTOR", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["EventFilterDescriptor"]), # 'TdhGetEventInformation': SimTypeFunction([SimTypePointer(SimStruct({"EventHeader": SimStruct({"Size": SimTypeShort(signed=False, label="UInt16"), "HeaderType": SimTypeShort(signed=False, label="UInt16"), "Flags": SimTypeShort(signed=False, label="UInt16"), "EventProperty": SimTypeShort(signed=False, label="UInt16"), "ThreadId": SimTypeInt(signed=False, label="UInt32"), "ProcessId": SimTypeInt(signed=False, label="UInt32"), "TimeStamp": SimTypeBottom(label="LARGE_INTEGER"), "ProviderId": SimTypeBottom(label="Guid"), "EventDescriptor": SimStruct({"Id": SimTypeShort(signed=False, label="UInt16"), "Version": SimTypeChar(label="Byte"), "Channel": SimTypeChar(label="Byte"), "Level": SimTypeChar(label="Byte"), "Opcode": SimTypeChar(label="Byte"), "Task": SimTypeShort(signed=False, label="UInt16"), "Keyword": SimTypeLongLong(signed=False, label="UInt64")}, name="EVENT_DESCRIPTOR", pack=False, align=None), "Anonymous": SimUnion({"Anonymous": SimStruct({"KernelTime": SimTypeInt(signed=False, label="UInt32"), "UserTime": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "ProcessorTime": SimTypeLongLong(signed=False, label="UInt64")}, name="<anon>", label="None"), "ActivityId": SimTypeBottom(label="Guid")}, name="EVENT_HEADER", pack=False, align=None), "BufferContext": SimStruct({"Anonymous": SimUnion({"Anonymous": SimStruct({"ProcessorNumber": SimTypeChar(label="Byte"), "Alignment": SimTypeChar(label="Byte")}, name="_Anonymous_e__Struct", pack=False, align=None), "ProcessorIndex": SimTypeShort(signed=False, label="UInt16")}, name="<anon>", label="None"), "LoggerId": SimTypeShort(signed=False, label="UInt16")}, name="ETW_BUFFER_CONTEXT", pack=False, align=None), "ExtendedDataCount": SimTypeShort(signed=False, label="UInt16"), "UserDataLength": SimTypeShort(signed=False, label="UInt16"), "ExtendedData": SimTypePointer(SimStruct({"Reserved1": SimTypeShort(signed=False, label="UInt16"), "ExtType": SimTypeShort(signed=False, label="UInt16"), "Anonymous": SimStruct({"_bitfield": SimTypeShort(signed=False, label="UInt16")}, name="_Anonymous_e__Struct", pack=False, align=None), "DataSize": SimTypeShort(signed=False, label="UInt16"), "DataPtr": SimTypeLongLong(signed=False, label="UInt64")}, name="EVENT_HEADER_EXTENDED_DATA_ITEM", pack=False, align=None), offset=0), "UserData": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "UserContext": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="EVENT_RECORD", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"ParameterValue": SimTypeLongLong(signed=False, label="UInt64"), "ParameterType": SimTypeInt(signed=False, label="TDH_CONTEXT_TYPE"), "ParameterSize": SimTypeInt(signed=False, label="UInt32")}, name="TDH_CONTEXT", pack=False, align=None), label="LPArray", offset=0), SimTypePointer(SimStruct({"ProviderGuid": SimTypeBottom(label="Guid"), "EventGuid": SimTypeBottom(label="Guid"), "EventDescriptor": SimStruct({"Id": SimTypeShort(signed=False, label="UInt16"), "Version": SimTypeChar(label="Byte"), "Channel": SimTypeChar(label="Byte"), "Level": SimTypeChar(label="Byte"), "Opcode": SimTypeChar(label="Byte"), "Task": SimTypeShort(signed=False, label="UInt16"), "Keyword": SimTypeLongLong(signed=False, label="UInt64")}, name="EVENT_DESCRIPTOR", pack=False, align=None), "DecodingSource": SimTypeInt(signed=False, label="DECODING_SOURCE"), "ProviderNameOffset": SimTypeInt(signed=False, label="UInt32"), "LevelNameOffset": SimTypeInt(signed=False, label="UInt32"), "ChannelNameOffset": SimTypeInt(signed=False, label="UInt32"), "KeywordsNameOffset": SimTypeInt(signed=False, label="UInt32"), "TaskNameOffset": SimTypeInt(signed=False, label="UInt32"), "OpcodeNameOffset": SimTypeInt(signed=False, label="UInt32"), "EventMessageOffset": SimTypeInt(signed=False, label="UInt32"), "ProviderMessageOffset": SimTypeInt(signed=False, label="UInt32"), "BinaryXMLOffset": SimTypeInt(signed=False, label="UInt32"), "BinaryXMLSize": SimTypeInt(signed=False, label="UInt32"), "Anonymous1": SimUnion({"EventNameOffset": SimTypeInt(signed=False, label="UInt32"), "ActivityIDNameOffset": SimTypeInt(signed=False, label="UInt32")}, name="<anon>", label="None"), "Anonymous2": SimUnion({"EventAttributesOffset": SimTypeInt(signed=False, label="UInt32"), "RelatedActivityIDNameOffset": SimTypeInt(signed=False, label="UInt32")}, name="<anon>", label="None"), "PropertyCount": SimTypeInt(signed=False, label="UInt32"), "TopLevelPropertyCount": SimTypeInt(signed=False, label="UInt32"), "Anonymous3": SimUnion({"Flags": SimTypeInt(signed=False, label="TEMPLATE_FLAGS"), "Anonymous": SimStruct({"_bitfield": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None"), "EventPropertyInfoArray": SimTypePointer(SimStruct({"Flags": SimTypeInt(signed=False, label="PROPERTY_FLAGS"), "NameOffset": SimTypeInt(signed=False, label="UInt32"), "Anonymous1": SimUnion({"nonStructType": SimStruct({"InType": SimTypeShort(signed=False, label="UInt16"), "OutType": SimTypeShort(signed=False, label="UInt16"), "MapNameOffset": SimTypeInt(signed=False, label="UInt32")}, name="_nonStructType", pack=False, align=None), "structType": SimStruct({"StructStartIndex": SimTypeShort(signed=False, label="UInt16"), "NumOfStructMembers": SimTypeShort(signed=False, label="UInt16"), "padding": SimTypeInt(signed=False, label="UInt32")}, name="_structType", pack=False, align=None), "customSchemaType": SimStruct({"InType": SimTypeShort(signed=False, label="UInt16"), "OutType": SimTypeShort(signed=False, label="UInt16"), "CustomSchemaOffset": SimTypeInt(signed=False, label="UInt32")}, name="_customSchemaType", pack=False, align=None)}, name="<anon>", label="None"), "Anonymous2": SimUnion({"count": SimTypeShort(signed=False, label="UInt16"), "countPropertyIndex": SimTypeShort(signed=False, label="UInt16")}, name="<anon>", label="None"), "Anonymous3": SimUnion({"length": SimTypeShort(signed=False, label="UInt16"), "lengthPropertyIndex": SimTypeShort(signed=False, label="UInt16")}, name="<anon>", label="None"), "Anonymous4": SimUnion({"Reserved": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimStruct({"_bitfield": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None")}, name="EVENT_PROPERTY_INFO", pack=False, align=None), offset=0)}, name="TRACE_EVENT_INFO", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["Event", "TdhContextCount", "TdhContext", "Buffer", "BufferSize"]), # 'TdhGetEventMapInformation': SimTypeFunction([SimTypePointer(SimStruct({"EventHeader": SimStruct({"Size": SimTypeShort(signed=False, label="UInt16"), "HeaderType": SimTypeShort(signed=False, label="UInt16"), "Flags": SimTypeShort(signed=False, label="UInt16"), "EventProperty": SimTypeShort(signed=False, label="UInt16"), "ThreadId": SimTypeInt(signed=False, label="UInt32"), "ProcessId": SimTypeInt(signed=False, label="UInt32"), "TimeStamp": SimTypeBottom(label="LARGE_INTEGER"), "ProviderId": SimTypeBottom(label="Guid"), "EventDescriptor": SimStruct({"Id": SimTypeShort(signed=False, label="UInt16"), "Version": SimTypeChar(label="Byte"), "Channel": SimTypeChar(label="Byte"), "Level": SimTypeChar(label="Byte"), "Opcode": SimTypeChar(label="Byte"), "Task": SimTypeShort(signed=False, label="UInt16"), "Keyword": SimTypeLongLong(signed=False, label="UInt64")}, name="EVENT_DESCRIPTOR", pack=False, align=None), "Anonymous": SimUnion({"Anonymous": SimStruct({"KernelTime": SimTypeInt(signed=False, label="UInt32"), "UserTime": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "ProcessorTime": SimTypeLongLong(signed=False, label="UInt64")}, name="<anon>", label="None"), "ActivityId": SimTypeBottom(label="Guid")}, name="EVENT_HEADER", pack=False, align=None), "BufferContext": SimStruct({"Anonymous": SimUnion({"Anonymous": SimStruct({"ProcessorNumber": SimTypeChar(label="Byte"), "Alignment": SimTypeChar(label="Byte")}, name="_Anonymous_e__Struct", pack=False, align=None), "ProcessorIndex": SimTypeShort(signed=False, label="UInt16")}, name="<anon>", label="None"), "LoggerId": SimTypeShort(signed=False, label="UInt16")}, name="ETW_BUFFER_CONTEXT", pack=False, align=None), "ExtendedDataCount": SimTypeShort(signed=False, label="UInt16"), "UserDataLength": SimTypeShort(signed=False, label="UInt16"), "ExtendedData": SimTypePointer(SimStruct({"Reserved1": SimTypeShort(signed=False, label="UInt16"), "ExtType": SimTypeShort(signed=False, label="UInt16"), "Anonymous": SimStruct({"_bitfield": SimTypeShort(signed=False, label="UInt16")}, name="_Anonymous_e__Struct", pack=False, align=None), "DataSize": SimTypeShort(signed=False, label="UInt16"), "DataPtr": SimTypeLongLong(signed=False, label="UInt64")}, name="EVENT_HEADER_EXTENDED_DATA_ITEM", pack=False, align=None), offset=0), "UserData": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "UserContext": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="EVENT_RECORD", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"NameOffset": SimTypeInt(signed=False, label="UInt32"), "Flag": SimTypeInt(signed=False, label="MAP_FLAGS"), "EntryCount": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimUnion({"MapEntryValueType": SimTypeInt(signed=False, label="MAP_VALUETYPE"), "FormatStringOffset": SimTypeInt(signed=False, label="UInt32")}, name="<anon>", label="None"), "MapEntryArray": SimTypePointer(SimStruct({"OutputOffset": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimUnion({"Value": SimTypeInt(signed=False, label="UInt32"), "InputOffset": SimTypeInt(signed=False, label="UInt32")}, name="<anon>", label="None")}, name="EVENT_MAP_ENTRY", pack=False, align=None), offset=0)}, name="EVENT_MAP_INFO", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["pEvent", "pMapName", "pBuffer", "pBufferSize"]), # 'TdhGetPropertySize': SimTypeFunction([SimTypePointer(SimStruct({"EventHeader": SimStruct({"Size": SimTypeShort(signed=False, label="UInt16"), "HeaderType": SimTypeShort(signed=False, label="UInt16"), "Flags": SimTypeShort(signed=False, label="UInt16"), "EventProperty": SimTypeShort(signed=False, label="UInt16"), "ThreadId": SimTypeInt(signed=False, label="UInt32"), "ProcessId": SimTypeInt(signed=False, label="UInt32"), "TimeStamp": SimTypeBottom(label="LARGE_INTEGER"), "ProviderId": SimTypeBottom(label="Guid"), "EventDescriptor": SimStruct({"Id": SimTypeShort(signed=False, label="UInt16"), "Version": SimTypeChar(label="Byte"), "Channel": SimTypeChar(label="Byte"), "Level": SimTypeChar(label="Byte"), "Opcode": SimTypeChar(label="Byte"), "Task": SimTypeShort(signed=False, label="UInt16"), "Keyword": SimTypeLongLong(signed=False, label="UInt64")}, name="EVENT_DESCRIPTOR", pack=False, align=None), "Anonymous": SimUnion({"Anonymous": SimStruct({"KernelTime": SimTypeInt(signed=False, label="UInt32"), "UserTime": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "ProcessorTime": SimTypeLongLong(signed=False, label="UInt64")}, name="<anon>", label="None"), "ActivityId": SimTypeBottom(label="Guid")}, name="EVENT_HEADER", pack=False, align=None), "BufferContext": SimStruct({"Anonymous": SimUnion({"Anonymous": SimStruct({"ProcessorNumber": SimTypeChar(label="Byte"), "Alignment": SimTypeChar(label="Byte")}, name="_Anonymous_e__Struct", pack=False, align=None), "ProcessorIndex": SimTypeShort(signed=False, label="UInt16")}, name="<anon>", label="None"), "LoggerId": SimTypeShort(signed=False, label="UInt16")}, name="ETW_BUFFER_CONTEXT", pack=False, align=None), "ExtendedDataCount": SimTypeShort(signed=False, label="UInt16"), "UserDataLength": SimTypeShort(signed=False, label="UInt16"), "ExtendedData": SimTypePointer(SimStruct({"Reserved1": SimTypeShort(signed=False, label="UInt16"), "ExtType": SimTypeShort(signed=False, label="UInt16"), "Anonymous": SimStruct({"_bitfield": SimTypeShort(signed=False, label="UInt16")}, name="_Anonymous_e__Struct", pack=False, align=None), "DataSize": SimTypeShort(signed=False, label="UInt16"), "DataPtr": SimTypeLongLong(signed=False, label="UInt64")}, name="EVENT_HEADER_EXTENDED_DATA_ITEM", pack=False, align=None), offset=0), "UserData": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "UserContext": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="EVENT_RECORD", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"ParameterValue": SimTypeLongLong(signed=False, label="UInt64"), "ParameterType": SimTypeInt(signed=False, label="TDH_CONTEXT_TYPE"), "ParameterSize": SimTypeInt(signed=False, label="UInt32")}, name="TDH_CONTEXT", pack=False, align=None), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"PropertyName": SimTypeLongLong(signed=False, label="UInt64"), "ArrayIndex": SimTypeInt(signed=False, label="UInt32"), "Reserved": SimTypeInt(signed=False, label="UInt32")}, name="PROPERTY_DATA_DESCRIPTOR", pack=False, align=None), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["pEvent", "TdhContextCount", "pTdhContext", "PropertyDataCount", "pPropertyData", "pPropertySize"]), # 'TdhGetProperty': SimTypeFunction([SimTypePointer(SimStruct({"EventHeader": SimStruct({"Size": SimTypeShort(signed=False, label="UInt16"), "HeaderType": SimTypeShort(signed=False, label="UInt16"), "Flags": SimTypeShort(signed=False, label="UInt16"), "EventProperty": SimTypeShort(signed=False, label="UInt16"), "ThreadId": SimTypeInt(signed=False, label="UInt32"), "ProcessId": SimTypeInt(signed=False, label="UInt32"), "TimeStamp": SimTypeBottom(label="LARGE_INTEGER"), "ProviderId": SimTypeBottom(label="Guid"), "EventDescriptor": SimStruct({"Id": SimTypeShort(signed=False, label="UInt16"), "Version": SimTypeChar(label="Byte"), "Channel": SimTypeChar(label="Byte"), "Level": SimTypeChar(label="Byte"), "Opcode": SimTypeChar(label="Byte"), "Task": SimTypeShort(signed=False, label="UInt16"), "Keyword": SimTypeLongLong(signed=False, label="UInt64")}, name="EVENT_DESCRIPTOR", pack=False, align=None), "Anonymous": SimUnion({"Anonymous": SimStruct({"KernelTime": SimTypeInt(signed=False, label="UInt32"), "UserTime": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "ProcessorTime": SimTypeLongLong(signed=False, label="UInt64")}, name="<anon>", label="None"), "ActivityId": SimTypeBottom(label="Guid")}, name="EVENT_HEADER", pack=False, align=None), "BufferContext": SimStruct({"Anonymous": SimUnion({"Anonymous": SimStruct({"ProcessorNumber": SimTypeChar(label="Byte"), "Alignment": SimTypeChar(label="Byte")}, name="_Anonymous_e__Struct", pack=False, align=None), "ProcessorIndex": SimTypeShort(signed=False, label="UInt16")}, name="<anon>", label="None"), "LoggerId": SimTypeShort(signed=False, label="UInt16")}, name="ETW_BUFFER_CONTEXT", pack=False, align=None), "ExtendedDataCount": SimTypeShort(signed=False, label="UInt16"), "UserDataLength": SimTypeShort(signed=False, label="UInt16"), "ExtendedData": SimTypePointer(SimStruct({"Reserved1": SimTypeShort(signed=False, label="UInt16"), "ExtType": SimTypeShort(signed=False, label="UInt16"), "Anonymous": SimStruct({"_bitfield": SimTypeShort(signed=False, label="UInt16")}, name="_Anonymous_e__Struct", pack=False, align=None), "DataSize": SimTypeShort(signed=False, label="UInt16"), "DataPtr": SimTypeLongLong(signed=False, label="UInt64")}, name="EVENT_HEADER_EXTENDED_DATA_ITEM", pack=False, align=None), offset=0), "UserData": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "UserContext": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="EVENT_RECORD", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"ParameterValue": SimTypeLongLong(signed=False, label="UInt64"), "ParameterType": SimTypeInt(signed=False, label="TDH_CONTEXT_TYPE"), "ParameterSize": SimTypeInt(signed=False, label="UInt32")}, name="TDH_CONTEXT", pack=False, align=None), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"PropertyName": SimTypeLongLong(signed=False, label="UInt64"), "ArrayIndex": SimTypeInt(signed=False, label="UInt32"), "Reserved": SimTypeInt(signed=False, label="UInt32")}, name="PROPERTY_DATA_DESCRIPTOR", pack=False, align=None), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["pEvent", "TdhContextCount", "pTdhContext", "PropertyDataCount", "pPropertyData", "BufferSize", "pBuffer"]), # 'TdhEnumerateProviders': SimTypeFunction([SimTypePointer(SimStruct({"NumberOfProviders": SimTypeInt(signed=False, label="UInt32"), "Reserved": SimTypeInt(signed=False, label="UInt32"), "TraceProviderInfoArray": SimTypePointer(SimStruct({"ProviderGuid": SimTypeBottom(label="Guid"), "SchemaSource": SimTypeInt(signed=False, label="UInt32"), "ProviderNameOffset": SimTypeInt(signed=False, label="UInt32")}, name="TRACE_PROVIDER_INFO", pack=False, align=None), offset=0)}, name="PROVIDER_ENUMERATION_INFO", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["pBuffer", "pBufferSize"]), # 'TdhQueryProviderFieldInformation': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Guid"), offset=0), SimTypeLongLong(signed=False, label="UInt64"), SimTypeInt(signed=False, label="EVENT_FIELD_TYPE"), SimTypePointer(SimStruct({"NumberOfElements": SimTypeInt(signed=False, label="UInt32"), "FieldType": SimTypeInt(signed=False, label="EVENT_FIELD_TYPE"), "FieldInfoArray": SimTypePointer(SimStruct({"NameOffset": SimTypeInt(signed=False, label="UInt32"), "DescriptionOffset": SimTypeInt(signed=False, label="UInt32"), "Value": SimTypeLongLong(signed=False, label="UInt64")}, name="PROVIDER_FIELD_INFO", pack=False, align=None), offset=0)}, name="PROVIDER_FIELD_INFOARRAY", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["pGuid", "EventFieldValue", "EventFieldType", "pBuffer", "pBufferSize"]), # 'TdhEnumerateProviderFieldInformation': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Guid"), offset=0), SimTypeInt(signed=False, label="EVENT_FIELD_TYPE"), SimTypePointer(SimStruct({"NumberOfElements": SimTypeInt(signed=False, label="UInt32"), "FieldType": SimTypeInt(signed=False, label="EVENT_FIELD_TYPE"), "FieldInfoArray": SimTypePointer(SimStruct({"NameOffset": SimTypeInt(signed=False, label="UInt32"), "DescriptionOffset": SimTypeInt(signed=False, label="UInt32"), "Value": SimTypeLongLong(signed=False, label="UInt64")}, name="PROVIDER_FIELD_INFO", pack=False, align=None), offset=0)}, name="PROVIDER_FIELD_INFOARRAY", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["pGuid", "EventFieldType", "pBuffer", "pBufferSize"]), # 'TdhEnumerateProviderFilters': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Guid"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"ParameterValue": SimTypeLongLong(signed=False, label="UInt64"), "ParameterType": SimTypeInt(signed=False, label="TDH_CONTEXT_TYPE"), "ParameterSize": SimTypeInt(signed=False, label="UInt32")}, name="TDH_CONTEXT", pack=False, align=None), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypePointer(SimStruct({"Id": SimTypeChar(label="Byte"), "Version": SimTypeChar(label="Byte"), "MessageOffset": SimTypeInt(signed=False, label="UInt32"), "Reserved": SimTypeInt(signed=False, label="UInt32"), "PropertyCount": SimTypeInt(signed=False, label="UInt32"), "EventPropertyInfoArray": SimTypePointer(SimStruct({"Flags": SimTypeInt(signed=False, label="PROPERTY_FLAGS"), "NameOffset": SimTypeInt(signed=False, label="UInt32"), "Anonymous1": SimUnion({"nonStructType": SimStruct({"InType": SimTypeShort(signed=False, label="UInt16"), "OutType": SimTypeShort(signed=False, label="UInt16"), "MapNameOffset": SimTypeInt(signed=False, label="UInt32")}, name="_nonStructType", pack=False, align=None), "structType": SimStruct({"StructStartIndex": SimTypeShort(signed=False, label="UInt16"), "NumOfStructMembers": SimTypeShort(signed=False, label="UInt16"), "padding": SimTypeInt(signed=False, label="UInt32")}, name="_structType", pack=False, align=None), "customSchemaType": SimStruct({"InType": SimTypeShort(signed=False, label="UInt16"), "OutType": SimTypeShort(signed=False, label="UInt16"), "CustomSchemaOffset": SimTypeInt(signed=False, label="UInt32")}, name="_customSchemaType", pack=False, align=None)}, name="<anon>", label="None"), "Anonymous2": SimUnion({"count": SimTypeShort(signed=False, label="UInt16"), "countPropertyIndex": SimTypeShort(signed=False, label="UInt16")}, name="<anon>", label="None"), "Anonymous3": SimUnion({"length": SimTypeShort(signed=False, label="UInt16"), "lengthPropertyIndex": SimTypeShort(signed=False, label="UInt16")}, name="<anon>", label="None"), "Anonymous4": SimUnion({"Reserved": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimStruct({"_bitfield": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None")}, name="EVENT_PROPERTY_INFO", pack=False, align=None), offset=0)}, name="PROVIDER_FILTER_INFO", pack=False, align=None), offset=0), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["Guid", "TdhContextCount", "TdhContext", "FilterCount", "Buffer", "BufferSize"]), # 'TdhLoadManifest': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["Manifest"]), # 'TdhLoadManifestFromMemory': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["pData", "cbData"]), # 'TdhUnloadManifest': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["Manifest"]), # 'TdhUnloadManifestFromMemory': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["pData", "cbData"]), # 'TdhFormatProperty': SimTypeFunction([SimTypePointer(SimStruct({"ProviderGuid": SimTypeBottom(label="Guid"), "EventGuid": SimTypeBottom(label="Guid"), "EventDescriptor": SimStruct({"Id": SimTypeShort(signed=False, label="UInt16"), "Version": SimTypeChar(label="Byte"), "Channel": SimTypeChar(label="Byte"), "Level": SimTypeChar(label="Byte"), "Opcode": SimTypeChar(label="Byte"), "Task": SimTypeShort(signed=False, label="UInt16"), "Keyword": SimTypeLongLong(signed=False, label="UInt64")}, name="EVENT_DESCRIPTOR", pack=False, align=None), "DecodingSource": SimTypeInt(signed=False, label="DECODING_SOURCE"), "ProviderNameOffset": SimTypeInt(signed=False, label="UInt32"), "LevelNameOffset": SimTypeInt(signed=False, label="UInt32"), "ChannelNameOffset": SimTypeInt(signed=False, label="UInt32"), "KeywordsNameOffset": SimTypeInt(signed=False, label="UInt32"), "TaskNameOffset": SimTypeInt(signed=False, label="UInt32"), "OpcodeNameOffset": SimTypeInt(signed=False, label="UInt32"), "EventMessageOffset": SimTypeInt(signed=False, label="UInt32"), "ProviderMessageOffset": SimTypeInt(signed=False, label="UInt32"), "BinaryXMLOffset": SimTypeInt(signed=False, label="UInt32"), "BinaryXMLSize": SimTypeInt(signed=False, label="UInt32"), "Anonymous1": SimUnion({"EventNameOffset": SimTypeInt(signed=False, label="UInt32"), "ActivityIDNameOffset": SimTypeInt(signed=False, label="UInt32")}, name="<anon>", label="None"), "Anonymous2": SimUnion({"EventAttributesOffset": SimTypeInt(signed=False, label="UInt32"), "RelatedActivityIDNameOffset": SimTypeInt(signed=False, label="UInt32")}, name="<anon>", label="None"), "PropertyCount": SimTypeInt(signed=False, label="UInt32"), "TopLevelPropertyCount": SimTypeInt(signed=False, label="UInt32"), "Anonymous3": SimUnion({"Flags": SimTypeInt(signed=False, label="TEMPLATE_FLAGS"), "Anonymous": SimStruct({"_bitfield": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None"), "EventPropertyInfoArray": SimTypePointer(SimStruct({"Flags": SimTypeInt(signed=False, label="PROPERTY_FLAGS"), "NameOffset": SimTypeInt(signed=False, label="UInt32"), "Anonymous1": SimUnion({"nonStructType": SimStruct({"InType": SimTypeShort(signed=False, label="UInt16"), "OutType": SimTypeShort(signed=False, label="UInt16"), "MapNameOffset": SimTypeInt(signed=False, label="UInt32")}, name="_nonStructType", pack=False, align=None), "structType": SimStruct({"StructStartIndex": SimTypeShort(signed=False, label="UInt16"), "NumOfStructMembers": SimTypeShort(signed=False, label="UInt16"), "padding": SimTypeInt(signed=False, label="UInt32")}, name="_structType", pack=False, align=None), "customSchemaType": SimStruct({"InType": SimTypeShort(signed=False, label="UInt16"), "OutType": SimTypeShort(signed=False, label="UInt16"), "CustomSchemaOffset": SimTypeInt(signed=False, label="UInt32")}, name="_customSchemaType", pack=False, align=None)}, name="<anon>", label="None"), "Anonymous2": SimUnion({"count": SimTypeShort(signed=False, label="UInt16"), "countPropertyIndex": SimTypeShort(signed=False, label="UInt16")}, name="<anon>", label="None"), "Anonymous3": SimUnion({"length": SimTypeShort(signed=False, label="UInt16"), "lengthPropertyIndex": SimTypeShort(signed=False, label="UInt16")}, name="<anon>", label="None"), "Anonymous4": SimUnion({"Reserved": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimStruct({"_bitfield": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None")}, name="EVENT_PROPERTY_INFO", pack=False, align=None), offset=0)}, name="TRACE_EVENT_INFO", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"NameOffset": SimTypeInt(signed=False, label="UInt32"), "Flag": SimTypeInt(signed=False, label="MAP_FLAGS"), "EntryCount": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimUnion({"MapEntryValueType": SimTypeInt(signed=False, label="MAP_VALUETYPE"), "FormatStringOffset": SimTypeInt(signed=False, label="UInt32")}, name="<anon>", label="None"), "MapEntryArray": SimTypePointer(SimStruct({"OutputOffset": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimUnion({"Value": SimTypeInt(signed=False, label="UInt32"), "InputOffset": SimTypeInt(signed=False, label="UInt32")}, name="<anon>", label="None")}, name="EVENT_MAP_ENTRY", pack=False, align=None), offset=0)}, name="EVENT_MAP_INFO", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeShort(signed=False, label="UInt16"), SimTypeShort(signed=False, label="UInt16"), SimTypeShort(signed=False, label="UInt16"), SimTypeShort(signed=False, label="UInt16"), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["EventInfo", "MapInfo", "PointerSize", "PropertyInType", "PropertyOutType", "PropertyLength", "UserDataLength", "UserData", "BufferSize", "Buffer", "UserDataConsumed"]), # 'TdhOpenDecodingHandle': SimTypeFunction([SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["Handle"]), # 'TdhSetDecodingParameter': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"ParameterValue": SimTypeLongLong(signed=False, label="UInt64"), "ParameterType": SimTypeInt(signed=False, label="TDH_CONTEXT_TYPE"), "ParameterSize": SimTypeInt(signed=False, label="UInt32")}, name="TDH_CONTEXT", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["Handle", "TdhContext"]), # 'TdhGetDecodingParameter': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"ParameterValue": SimTypeLongLong(signed=False, label="UInt64"), "ParameterType": SimTypeInt(signed=False, label="TDH_CONTEXT_TYPE"), "ParameterSize": SimTypeInt(signed=False, label="UInt32")}, name="TDH_CONTEXT", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["Handle", "TdhContext"]), # 'TdhGetWppProperty': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"EventHeader": SimStruct({"Size": SimTypeShort(signed=False, label="UInt16"), "HeaderType": SimTypeShort(signed=False, label="UInt16"), "Flags": SimTypeShort(signed=False, label="UInt16"), "EventProperty": SimTypeShort(signed=False, label="UInt16"), "ThreadId": SimTypeInt(signed=False, label="UInt32"), "ProcessId": SimTypeInt(signed=False, label="UInt32"), "TimeStamp": SimTypeBottom(label="LARGE_INTEGER"), "ProviderId": SimTypeBottom(label="Guid"), "EventDescriptor": SimStruct({"Id": SimTypeShort(signed=False, label="UInt16"), "Version": SimTypeChar(label="Byte"), "Channel": SimTypeChar(label="Byte"), "Level": SimTypeChar(label="Byte"), "Opcode": SimTypeChar(label="Byte"), "Task": SimTypeShort(signed=False, label="UInt16"), "Keyword": SimTypeLongLong(signed=False, label="UInt64")}, name="EVENT_DESCRIPTOR", pack=False, align=None), "Anonymous": SimUnion({"Anonymous": SimStruct({"KernelTime": SimTypeInt(signed=False, label="UInt32"), "UserTime": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "ProcessorTime": SimTypeLongLong(signed=False, label="UInt64")}, name="<anon>", label="None"), "ActivityId": SimTypeBottom(label="Guid")}, name="EVENT_HEADER", pack=False, align=None), "BufferContext": SimStruct({"Anonymous": SimUnion({"Anonymous": SimStruct({"ProcessorNumber": SimTypeChar(label="Byte"), "Alignment": SimTypeChar(label="Byte")}, name="_Anonymous_e__Struct", pack=False, align=None), "ProcessorIndex": SimTypeShort(signed=False, label="UInt16")}, name="<anon>", label="None"), "LoggerId": SimTypeShort(signed=False, label="UInt16")}, name="ETW_BUFFER_CONTEXT", pack=False, align=None), "ExtendedDataCount": SimTypeShort(signed=False, label="UInt16"), "UserDataLength": SimTypeShort(signed=False, label="UInt16"), "ExtendedData": SimTypePointer(SimStruct({"Reserved1": SimTypeShort(signed=False, label="UInt16"), "ExtType": SimTypeShort(signed=False, label="UInt16"), "Anonymous": SimStruct({"_bitfield": SimTypeShort(signed=False, label="UInt16")}, name="_Anonymous_e__Struct", pack=False, align=None), "DataSize": SimTypeShort(signed=False, label="UInt16"), "DataPtr": SimTypeLongLong(signed=False, label="UInt64")}, name="EVENT_HEADER_EXTENDED_DATA_ITEM", pack=False, align=None), offset=0), "UserData": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "UserContext": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="EVENT_RECORD", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["Handle", "EventRecord", "PropertyName", "BufferSize", "Buffer"]), # 'TdhGetWppMessage': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"EventHeader": SimStruct({"Size": SimTypeShort(signed=False, label="UInt16"), "HeaderType": SimTypeShort(signed=False, label="UInt16"), "Flags": SimTypeShort(signed=False, label="UInt16"), "EventProperty": SimTypeShort(signed=False, label="UInt16"), "ThreadId": SimTypeInt(signed=False, label="UInt32"), "ProcessId": SimTypeInt(signed=False, label="UInt32"), "TimeStamp": SimTypeBottom(label="LARGE_INTEGER"), "ProviderId": SimTypeBottom(label="Guid"), "EventDescriptor": SimStruct({"Id": SimTypeShort(signed=False, label="UInt16"), "Version": SimTypeChar(label="Byte"), "Channel": SimTypeChar(label="Byte"), "Level": SimTypeChar(label="Byte"), "Opcode": SimTypeChar(label="Byte"), "Task": SimTypeShort(signed=False, label="UInt16"), "Keyword": SimTypeLongLong(signed=False, label="UInt64")}, name="EVENT_DESCRIPTOR", pack=False, align=None), "Anonymous": SimUnion({"Anonymous": SimStruct({"KernelTime": SimTypeInt(signed=False, label="UInt32"), "UserTime": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "ProcessorTime": SimTypeLongLong(signed=False, label="UInt64")}, name="<anon>", label="None"), "ActivityId": SimTypeBottom(label="Guid")}, name="EVENT_HEADER", pack=False, align=None), "BufferContext": SimStruct({"Anonymous": SimUnion({"Anonymous": SimStruct({"ProcessorNumber": SimTypeChar(label="Byte"), "Alignment": SimTypeChar(label="Byte")}, name="_Anonymous_e__Struct", pack=False, align=None), "ProcessorIndex": SimTypeShort(signed=False, label="UInt16")}, name="<anon>", label="None"), "LoggerId": SimTypeShort(signed=False, label="UInt16")}, name="ETW_BUFFER_CONTEXT", pack=False, align=None), "ExtendedDataCount": SimTypeShort(signed=False, label="UInt16"), "UserDataLength": SimTypeShort(signed=False, label="UInt16"), "ExtendedData": SimTypePointer(SimStruct({"Reserved1": SimTypeShort(signed=False, label="UInt16"), "ExtType": SimTypeShort(signed=False, label="UInt16"), "Anonymous": SimStruct({"_bitfield": SimTypeShort(signed=False, label="UInt16")}, name="_Anonymous_e__Struct", pack=False, align=None), "DataSize": SimTypeShort(signed=False, label="UInt16"), "DataPtr": SimTypeLongLong(signed=False, label="UInt64")}, name="EVENT_HEADER_EXTENDED_DATA_ITEM", pack=False, align=None), offset=0), "UserData": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "UserContext": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="EVENT_RECORD", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["Handle", "EventRecord", "BufferSize", "Buffer"]), # 'TdhCloseDecodingHandle': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["Handle"]), # 'TdhLoadManifestFromBinary': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["BinaryPath"]), # 'TdhEnumerateManifestProviderEvents': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Guid"), offset=0), SimTypePointer(SimStruct({"NumberOfEvents": SimTypeInt(signed=False, label="UInt32"), "Reserved": SimTypeInt(signed=False, label="UInt32"), "EventDescriptorsArray": SimTypePointer(SimStruct({"Id": SimTypeShort(signed=False, label="UInt16"), "Version": SimTypeChar(label="Byte"), "Channel": SimTypeChar(label="Byte"), "Level": SimTypeChar(label="Byte"), "Opcode": SimTypeChar(label="Byte"), "Task": SimTypeShort(signed=False, label="UInt16"), "Keyword": SimTypeLongLong(signed=False, label="UInt64")}, name="EVENT_DESCRIPTOR", pack=False, align=None), offset=0)}, name="PROVIDER_EVENT_INFO", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["ProviderGuid", "Buffer", "BufferSize"]), # 'TdhGetManifestEventInformation': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Guid"), offset=0), SimTypePointer(SimStruct({"Id": SimTypeShort(signed=False, label="UInt16"), "Version": SimTypeChar(label="Byte"), "Channel": SimTypeChar(label="Byte"), "Level": SimTypeChar(label="Byte"), "Opcode": SimTypeChar(label="Byte"), "Task": SimTypeShort(signed=False, label="UInt16"), "Keyword": SimTypeLongLong(signed=False, label="UInt64")}, name="EVENT_DESCRIPTOR", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"ProviderGuid": SimTypeBottom(label="Guid"), "EventGuid": SimTypeBottom(label="Guid"), "EventDescriptor": SimStruct({"Id": SimTypeShort(signed=False, label="UInt16"), "Version": SimTypeChar(label="Byte"), "Channel": SimTypeChar(label="Byte"), "Level": SimTypeChar(label="Byte"), "Opcode": SimTypeChar(label="Byte"), "Task": SimTypeShort(signed=False, label="UInt16"), "Keyword": SimTypeLongLong(signed=False, label="UInt64")}, name="EVENT_DESCRIPTOR", pack=False, align=None), "DecodingSource": SimTypeInt(signed=False, label="DECODING_SOURCE"), "ProviderNameOffset": SimTypeInt(signed=False, label="UInt32"), "LevelNameOffset": SimTypeInt(signed=False, label="UInt32"), "ChannelNameOffset": SimTypeInt(signed=False, label="UInt32"), "KeywordsNameOffset": SimTypeInt(signed=False, label="UInt32"), "TaskNameOffset": SimTypeInt(signed=False, label="UInt32"), "OpcodeNameOffset": SimTypeInt(signed=False, label="UInt32"), "EventMessageOffset": SimTypeInt(signed=False, label="UInt32"), "ProviderMessageOffset": SimTypeInt(signed=False, label="UInt32"), "BinaryXMLOffset": SimTypeInt(signed=False, label="UInt32"), "BinaryXMLSize": SimTypeInt(signed=False, label="UInt32"), "Anonymous1": SimUnion({"EventNameOffset": SimTypeInt(signed=False, label="UInt32"), "ActivityIDNameOffset": SimTypeInt(signed=False, label="UInt32")}, name="<anon>", label="None"), "Anonymous2": SimUnion({"EventAttributesOffset": SimTypeInt(signed=False, label="UInt32"), "RelatedActivityIDNameOffset": SimTypeInt(signed=False, label="UInt32")}, name="<anon>", label="None"), "PropertyCount": SimTypeInt(signed=False, label="UInt32"), "TopLevelPropertyCount": SimTypeInt(signed=False, label="UInt32"), "Anonymous3": SimUnion({"Flags": SimTypeInt(signed=False, label="TEMPLATE_FLAGS"), "Anonymous": SimStruct({"_bitfield": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None"), "EventPropertyInfoArray": SimTypePointer(SimStruct({"Flags": SimTypeInt(signed=False, label="PROPERTY_FLAGS"), "NameOffset": SimTypeInt(signed=False, label="UInt32"), "Anonymous1": SimUnion({"nonStructType": SimStruct({"InType": SimTypeShort(signed=False, label="UInt16"), "OutType": SimTypeShort(signed=False, label="UInt16"), "MapNameOffset": SimTypeInt(signed=False, label="UInt32")}, name="_nonStructType", pack=False, align=None), "structType": SimStruct({"StructStartIndex": SimTypeShort(signed=False, label="UInt16"), "NumOfStructMembers": SimTypeShort(signed=False, label="UInt16"), "padding": SimTypeInt(signed=False, label="UInt32")}, name="_structType", pack=False, align=None), "customSchemaType": SimStruct({"InType": SimTypeShort(signed=False, label="UInt16"), "OutType": SimTypeShort(signed=False, label="UInt16"), "CustomSchemaOffset": SimTypeInt(signed=False, label="UInt32")}, name="_customSchemaType", pack=False, align=None)}, name="<anon>", label="None"), "Anonymous2": SimUnion({"count": SimTypeShort(signed=False, label="UInt16"), "countPropertyIndex": SimTypeShort(signed=False, label="UInt16")}, name="<anon>", label="None"), "Anonymous3": SimUnion({"length": SimTypeShort(signed=False, label="UInt16"), "lengthPropertyIndex": SimTypeShort(signed=False, label="UInt16")}, name="<anon>", label="None"), "Anonymous4": SimUnion({"Reserved": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimStruct({"_bitfield": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None")}, name="EVENT_PROPERTY_INFO", pack=False, align=None), offset=0)}, name="TRACE_EVENT_INFO", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["ProviderGuid", "EventDescriptor", "Buffer", "BufferSize"]), } lib.set_prototypes(prototypes)
596.378378
6,707
0.746624
4,666
44,132
6.993142
0.056151
0.132823
0.193196
0.171315
0.93411
0.929543
0.918388
0.912289
0.911922
0.904597
0
0.021345
0.060523
44,132
73
6,708
604.547945
0.765659
0.000634
0
0
0
0
0.289966
0.030465
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
1
1
1
1
1
1
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
10
2b305a2ad8b30db51e27d81349977ab65bcd649e
1,540
py
Python
lib/systems/anthracene.py
pulsar-chem/BPModule
f8e64e04fdb01947708f098e833600c459c2ff0e
[ "BSD-3-Clause" ]
null
null
null
lib/systems/anthracene.py
pulsar-chem/BPModule
f8e64e04fdb01947708f098e833600c459c2ff0e
[ "BSD-3-Clause" ]
null
null
null
lib/systems/anthracene.py
pulsar-chem/BPModule
f8e64e04fdb01947708f098e833600c459c2ff0e
[ "BSD-3-Clause" ]
null
null
null
import pulsar as psr def load_ref_system(): """ Returns anthracene as found in the IQMol fragment library. All credit to https://github.com/nutjunkie/IQmol """ return psr.make_system(""" C -0.00000 -0.70800 1.21622 C 0.00000 0.70800 1.21622 C 0.00000 1.40705 -0.00000 C 0.00000 0.70800 -1.21622 C -0.00000 -0.70800 -1.21622 C -0.00000 -1.40705 0.00000 C -0.00000 -1.40244 2.43645 C 0.00000 1.40244 2.43645 H 0.00000 2.49187 -0.00000 C 0.00000 1.40244 -2.43645 C -0.00000 -1.40244 -2.43645 H -0.00000 -2.49187 0.00000 C -0.00000 0.69871 3.64423 C -0.00000 -0.69871 3.64423 H -0.00000 -2.48586 2.45339 H 0.00000 2.48586 2.45339 H -0.00000 1.23796 4.58270 H -0.00000 -1.23796 4.58270 C 0.00000 0.69871 -3.64423 C 0.00000 -0.69871 -3.64423 H 0.00000 2.48586 -2.45339 H -0.00000 -2.48586 -2.45339 H 0.00000 1.23796 -4.58270 H 0.00000 -1.23796 -4.58270 """)
48.125
66
0.388961
197
1,540
3.025381
0.228426
0.281879
0.16443
0.107383
0.765101
0.765101
0.765101
0.765101
0.765101
0.765101
0
0.590164
0.524675
1,540
31
67
49.677419
0.224044
0.069481
0
0
0
0
0.940552
0
0
0
0
0
0
1
0.035714
true
0
0.035714
0
0.107143
0
0
0
0
null
1
0
0
0
1
1
1
1
1
0
1
1
0
0
0
0
1
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
11
2b4af879bd73a5b46de01096330b4f60c6271979
89
py
Python
qroute/visualizers/__init__.py
AnimeshSinha1309/qroute-router
56ef1b6c08e721011e1f73a04b0b0229f7bdff1b
[ "MIT" ]
null
null
null
qroute/visualizers/__init__.py
AnimeshSinha1309/qroute-router
56ef1b6c08e721011e1f73a04b0b0229f7bdff1b
[ "MIT" ]
10
2020-10-29T06:33:35.000Z
2021-01-12T18:40:45.000Z
qroute/visualizers/__init__.py
AnimeshSinha1309/quantum-rl
56ef1b6c08e721011e1f73a04b0b0229f7bdff1b
[ "MIT" ]
null
null
null
import qroute.visualizers.solution_validator import qroute.visualizers.greedy_schedulers
29.666667
44
0.910112
10
89
7.9
0.7
0.303797
0.582278
0
0
0
0
0
0
0
0
0
0.044944
89
2
45
44.5
0.929412
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
9948da8ae8c77533a05ae1869683f70ff9af96bd
12,690
py
Python
tests/python/unit/test_recipe_reverse_geocoding.py
dataiku/dss-plugin-geocoder
526ef69f80bab7a2091309074d5e2aff8afb5862
[ "Apache-2.0" ]
1
2020-10-12T21:03:52.000Z
2020-10-12T21:03:52.000Z
tests/python/unit/test_recipe_reverse_geocoding.py
dataiku/dss-plugin-geocoder
526ef69f80bab7a2091309074d5e2aff8afb5862
[ "Apache-2.0" ]
1
2020-12-14T19:34:14.000Z
2020-12-14T19:35:42.000Z
tests/python/unit/test_recipe_reverse_geocoding.py
dataiku/dss-plugin-geocoder
526ef69f80bab7a2091309074d5e2aff8afb5862
[ "Apache-2.0" ]
1
2022-02-10T00:31:41.000Z
2022-02-10T00:31:41.000Z
# -*- coding: utf-8 -*- import os import pandas as pd import pytest import shutil import time from cache_handler import CacheHandler from dataframe_reverse_geocoding import add_reverse_geocode_columns, get_reverse_geocode_function from dku_io import get_config_reverse_geocoding def test_no_cache_small_dataset(): plugin_config = {'cache_location': 'original', 'forward_cache_size': 1000, 'forward_cache_policy': 'least-recently-stored', 'reverse_cache_size': 1000, 'reverse_cache_policy': 'least-frequently-used', 'cache_location_custom': './tmp/cache/'} recipe_config = {'cache_enabled': False, 'batch_enabled': False, 'batch_size_bing': 50, 'address': True, 'city': True, 'postal': True, 'state': True, 'country': True, 'column_prefix': 'geo_', 'lat_column': 'latitude', 'lng_column': 'longitude', 'provider': 'osm'} config = get_config_reverse_geocoding(recipe_config=recipe_config, plugin_config=plugin_config) geocode_function = get_reverse_geocode_function(config) with CacheHandler(config['cache_location'], enabled=config['cache_enabled'], size_limit=config['cache_size'], eviction_policy=config['cache_eviction']) as cache: N = 10 current_df = pd.DataFrame({ 'latitude': [40.64749 for i in range(N)], 'longitude': [-73.97237 for i in range(N)] }) start_time = time.time() current_df = add_reverse_geocode_columns(cache, config, current_df, geocode_function) assert current_df.iloc[0]['geo_postal'] == '11218' job_duration = time.time() - start_time print("Job duration: {}".format(job_duration)) def test_with_cache_small_dataset(): plugin_config = {'cache_location': 'original', 'forward_cache_size': 1000, 'forward_cache_policy': 'least-recently-stored', 'reverse_cache_size': 1000, 'reverse_cache_policy': 'least-frequently-used', 'cache_location_custom': './tmp/cache/'} recipe_config = {'cache_enabled': True, 'batch_enabled': False, 'batch_size_bing': 50, 'address': True, 'city': True, 'postal': True, 'state': True, 'country': True, 'column_prefix': 'geo_', 'lat_column': 'latitude', 'lng_column': 'longitude', 'provider': 'osm'} config = get_config_reverse_geocoding(recipe_config=recipe_config, plugin_config=plugin_config) geocode_function = get_reverse_geocode_function(config) with CacheHandler(config['cache_location'], enabled=config['cache_enabled'], size_limit=config['cache_size'], eviction_policy=config['cache_eviction']) as cache: N = 10 current_df = pd.DataFrame({ 'latitude': [40.64749 for i in range(N)], 'longitude': [-73.97237 for i in range(N)] }) start_time = time.time() current_df = add_reverse_geocode_columns(cache, config, current_df, geocode_function) assert current_df.iloc[0]['geo_postal'] == '11218' job_duration = time.time() - start_time print("Job duration: {}".format(job_duration)) @pytest.mark.skip(reason="Test takes too much time") def test_large_cache_large_ds(): plugin_config = {'cache_location': 'original', 'forward_cache_size': 1000, 'forward_cache_policy': 'least-recently-stored', 'reverse_cache_size': 1000000, 'reverse_cache_policy': 'least-recently-stored', 'cache_location_custom': './tmp/cache/'} recipe_config = {'cache_enabled': True, 'batch_enabled': True, 'batch_size_bing': 50, 'address': True, 'city': True, 'postal': True, 'state': True, 'country': True, 'column_prefix': 'geo_', 'lat_column': 'latitude', 'lng_column': 'longitude', 'provider': 'osm'} config = get_config_reverse_geocoding(recipe_config=recipe_config, plugin_config=plugin_config) geocode_function = get_reverse_geocode_function(config) with CacheHandler(config['cache_location'], enabled=config['cache_enabled'], size_limit=config['cache_size'], eviction_policy=config['cache_eviction']) as cache: current_df = pd.DataFrame({ 'latitude': [40.64749 for i in range(2000000)], 'longitude': [-73.97237 for i in range(2000000)] }) current_df = add_reverse_geocode_columns(cache, config, current_df, geocode_function) assert current_df.iloc[0]['geo_postal'] == '11218' @pytest.mark.skip(reason="Test takes too much time") def test_small_cache_small_ds(): plugin_config = {'cache_location': 'original', 'forward_cache_size': 1000, 'forward_cache_policy': 'least-recently-stored', 'reverse_cache_size': 1, 'reverse_cache_policy': 'least-recently-stored', 'cache_location_custom': './tmp/cache/'} recipe_config = {'cache_enabled': True, 'batch_enabled': True, 'batch_size_bing': 50, 'address': True, 'city': True, 'postal': True, 'state': True, 'country': True, 'column_prefix': 'geo_', 'lat_column': 'latitude', 'lng_column': 'longitude', 'provider': 'osm'} config = get_config_reverse_geocoding(recipe_config=recipe_config, plugin_config=plugin_config) geocode_function = get_reverse_geocode_function(config) with CacheHandler(config['cache_location'], enabled=config['cache_enabled'], size_limit=config['cache_size'], eviction_policy=config['cache_eviction']) as cache: current_df = pd.DataFrame({ 'latitude': [40.64749], 'longitude': [-73.97237] }) current_df = add_reverse_geocode_columns(cache, config, current_df, geocode_function) assert current_df.iloc[0]['geo_postal'] == '11218' def test_small_cache_size(): """ This test is long :return: """ plugin_config = {'cache_location': 'original', 'forward_cache_size': 1000, 'forward_cache_policy': 'least-recently-stored', 'reverse_cache_size': 10, 'reverse_cache_policy': 'least-frequently-used', 'cache_location_custom': './tmp/cache/'} recipe_config = {'cache_enabled': True, 'batch_enabled': True, 'batch_size_bing': 50, 'address': True, 'city': True, 'postal': True, 'state': True, 'country': True, 'column_prefix': 'geo_', 'lat_column': 'latitude', 'lng_column': 'longitude', 'provider': 'osm'} config = get_config_reverse_geocoding(recipe_config=recipe_config, plugin_config=plugin_config) geocode_function = get_reverse_geocode_function(config) with CacheHandler(config['cache_location'], enabled=config['cache_enabled'], size_limit=config['cache_size'], eviction_policy=config['cache_eviction']) as cache: N = 1000 current_df = pd.DataFrame({ 'latitude': [40.64749 for i in range(N)], 'longitude': [-73.97237 for i in range(N)] }) current_df = add_reverse_geocode_columns(cache, config, current_df, geocode_function) assert current_df.iloc[0]['geo_postal'] == '11218' def test_null_cache_size(): plugin_config = {'cache_location': 'original', 'forward_cache_size': 1000, 'forward_cache_policy': 'least-recently-stored', 'reverse_cache_size': 0, 'reverse_cache_policy': 'least-recently-stored', 'cache_location_custom': './tmp/cache/'} recipe_config = {'cache_enabled': True, 'batch_enabled': True, 'batch_size_bing': 50, 'address': True, 'city': True, 'postal': True, 'state': True, 'country': True, 'column_prefix': 'geo_', 'lat_column': 'latitude', 'lng_column': 'longitude', 'provider': 'osm'} config = get_config_reverse_geocoding(recipe_config=recipe_config, plugin_config=plugin_config) geocode_function = get_reverse_geocode_function(config) with CacheHandler(config['cache_location'], enabled=config['cache_enabled'], size_limit=config['cache_size'], eviction_policy=config['cache_eviction']) as cache: current_df = pd.DataFrame({ 'latitude': [40.64749], 'longitude': [-73.97237] }) current_df = add_reverse_geocode_columns(cache, config, current_df, geocode_function) assert current_df.iloc[0]['geo_postal'] == '11218' def test_negative_cache_size(): plugin_config = {'cache_location': 'original', 'forward_cache_size': 1000, 'forward_cache_policy': 'least-recently-stored', 'reverse_cache_size': -1, 'reverse_cache_policy': 'least-recently-stored', 'cache_location_custom': './tmp/cache/'} recipe_config = {'cache_enabled': True, 'batch_enabled': True, 'batch_size_bing': 50, 'address': True, 'city': True, 'postal': True, 'state': True, 'country': True, 'column_prefix': 'geo_', 'lat_column': 'latitude', 'lng_column': 'longitude', 'provider': 'osm'} config = get_config_reverse_geocoding(recipe_config=recipe_config, plugin_config=plugin_config) geocode_function = get_reverse_geocode_function(config) with CacheHandler(config['cache_location'], enabled=config['cache_enabled'], size_limit=config['cache_size'], eviction_policy=config['cache_eviction']) as cache: current_df = pd.DataFrame({ 'latitude': [40.64749], 'longitude': [-73.97237] }) current_df = add_reverse_geocode_columns(cache, config, current_df, geocode_function) assert current_df.iloc[0]['geo_postal'] == '11218' def test_cache_not_enabled(): plugin_config = {'cache_location': 'original', 'forward_cache_size': 1000, 'forward_cache_policy': 'least-recently-stored', 'reverse_cache_size': 1000000, 'reverse_cache_policy': 'least-recently-stored', 'cache_location_custom': './tmp/cache/'} recipe_config = {'cache_enabled': False, 'batch_enabled': True, 'batch_size_bing': 50, 'address': True, 'city': True, 'postal': True, 'state': True, 'country': True, 'column_prefix': 'geo_', 'lat_column': 'latitude', 'lng_column': 'longitude', 'provider': 'osm'} config = get_config_reverse_geocoding(recipe_config=recipe_config, plugin_config=plugin_config) geocode_function = get_reverse_geocode_function(config) with CacheHandler(config['cache_location'], enabled=config['cache_enabled'], size_limit=config['cache_size'], eviction_policy=config['cache_eviction']) as cache: current_df = pd.DataFrame({ 'latitude': [40.64749], 'longitude': [-73.97237] }) current_df = add_reverse_geocode_columns(cache, config, current_df, geocode_function) print("Cache location: {}".format(config['cache_location'])) assert current_df.iloc[0]['geo_postal'] == '11218' def test_large_default_cache(): plugin_config = {'cache_location': 'original', 'forward_cache_size': 1000, 'forward_cache_policy': 'least-recently-stored', 'reverse_cache_size': 1000000, 'reverse_cache_policy': 'least-recently-stored', 'cache_location_custom': './tmp/cache/'} recipe_config = {'cache_enabled': True, 'batch_enabled': True, 'batch_size_bing': 50, 'address': True, 'city': True, 'postal': True, 'state': True, 'country': True, 'column_prefix': 'geo_', 'lat_column': 'latitude', 'lng_column': 'longitude', 'provider': 'osm'} config = get_config_reverse_geocoding(recipe_config=recipe_config, plugin_config=plugin_config) geocode_function = get_reverse_geocode_function(config) with CacheHandler(config['cache_location'], enabled=config['cache_enabled'], size_limit=config['cache_size'], eviction_policy=config['cache_eviction']) as cache: current_df = pd.DataFrame({ 'latitude': [40.64749], 'longitude': [-73.97237] }) current_df = add_reverse_geocode_columns(cache, config, current_df, geocode_function) assert current_df.iloc[0]['geo_postal'] == '11218' def test_large_custom_cache(): plugin_config = {'cache_location': 'custom', 'forward_cache_size': 1000, 'forward_cache_policy': 'least-recently-stored', 'reverse_cache_size': 1000000, 'reverse_cache_policy': 'least-recently-stored', 'cache_location_custom': './tmp/cache/'} recipe_config = {'cache_enabled': True, 'batch_enabled': True, 'batch_size_bing': 50, 'address': True, 'city': True, 'postal': True, 'state': True, 'country': True, 'column_prefix': 'geo_', 'lat_column': 'latitude', 'lng_column': 'longitude', 'provider': 'osm'} config = get_config_reverse_geocoding(recipe_config=recipe_config, plugin_config=plugin_config) geocode_function = get_reverse_geocode_function(config) with CacheHandler(config['cache_location'], enabled=config['cache_enabled'], size_limit=config['cache_size'], eviction_policy=config['cache_eviction']) as cache: current_df = pd.DataFrame({ 'latitude': [40.64749], 'longitude': [-73.97237] }) current_df = add_reverse_geocode_columns(cache, config, current_df, geocode_function) assert current_df.iloc[0]['geo_postal'] == '11218'
59.858491
267
0.698109
1,543
12,690
5.400518
0.070642
0.080523
0.047882
0.048962
0.951278
0.945398
0.945398
0.942158
0.942158
0.942158
0
0.030266
0.156422
12,690
211
268
60.14218
0.748155
0.003861
0
0.8
0
0
0.318517
0.049917
0
0
0
0
0.066667
1
0.066667
false
0
0.053333
0
0.12
0.02
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
41dcee51efe579cb7111c24769d70f6b7fbee61c
5,993
py
Python
burst_generator_inhomogeneous_poisson.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
1
2022-02-24T20:39:46.000Z
2022-02-24T20:39:46.000Z
burst_generator_inhomogeneous_poisson.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
null
null
null
burst_generator_inhomogeneous_poisson.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
4
2020-02-18T09:25:20.000Z
2021-11-20T23:52:29.000Z
# -*- coding: utf-8 -*- """ Created on Fri Apr 13 15:37:20 2018 @author: DanielM """ import numpy as np from elephant import spike_train_generation as stg from neo.core import AnalogSignal import quantities as pq def inhom_poiss_30Hz(): """Generate an inhomogeneous poisson spike train with a rate profile that is a 30Hz sin wave with 100Hz at max and 0Hz at min. """ sampling_interval = 0.0001 * pq.s max_rate = 100 t = np.arange(0, 0.5, sampling_interval.magnitude) rate_profile = (np.sin(t*30*np.pi*2-np.pi/2) + 1) * max_rate / 2 rate_profile_as_asig = AnalogSignal(rate_profile, units=1*pq.Hz, t_start=0*pq.s, t_stop=0.5*pq.s, sampling_period=sampling_interval) spike_trains = [] for x in range(400): curr_train = stg.inhomogeneous_poisson_process(rate_profile_as_asig) # We have to make sure that there is sufficient space between spikes. # If there is not, we move the next spike by 0.1ms spike_trains.append(curr_train) array_like = np.array([np.around(np.array(x.times)*1000, decimals=1) for x in spike_trains]) for arr_idx in range(array_like.shape[0]): bad_idc = np.argwhere(np.diff(array_like[arr_idx]) == 0).flatten() bad_idc = bad_idc+1 while bad_idc.any(): for bad_idx in bad_idc: array_like[arr_idx][bad_idx] = array_like[arr_idx][bad_idx] + 0.1 bad_idc = np.argwhere(np.diff(array_like[arr_idx]) == 0).flatten() bad_idc = bad_idc + 1 return array_like def inhom_poiss(rate=10, max_rate=100): """Generate an inhomogeneous poisson spike train with a rate profile that is a sine wave whose rate is given by the rate parameter and that maximum frequency is given by the max_rate parameter in Hz. min frequency is always 0Hz """ sampling_interval = 0.0001 * pq.s t = np.arange(0, 0.5, sampling_interval.magnitude) rate_profile = (np.sin(t*rate*np.pi*2-np.pi/2) + 1) * max_rate / 2 rate_profile_as_asig = AnalogSignal(rate_profile, units=1*pq.Hz, t_start=0*pq.s, t_stop=0.5*pq.s, sampling_period=sampling_interval) spike_trains = [] for x in range(400): curr_train = stg.inhomogeneous_poisson_process(rate_profile_as_asig) # We have to make sure that there is sufficient space between spikes. # If there is not, we move the next spike by 0.1ms spike_trains.append(curr_train) array_like = np.array([np.around(np.array(x.times)*1000, decimals=1) for x in spike_trains]) for arr_idx in range(array_like.shape[0]): bad_idc = np.argwhere(np.diff(array_like[arr_idx]) == 0).flatten() bad_idc = bad_idc+1 while bad_idc.any(): for bad_idx in bad_idc: array_like[arr_idx][bad_idx] = array_like[arr_idx][bad_idx] + 0.1 bad_idc = np.argwhere(np.diff(array_like[arr_idx]) == 0).flatten() bad_idc = bad_idc + 1 return array_like def inhom_poiss_io(rate=10, max_rate=100): """Generate an inhomogeneous poisson spike train with a rate profile that is a sine wave whose rate is given by the rate parameter and that maximum frequency is given by the max_rate parameter in Hz. min frequency is always 0Hz """ sampling_interval = 0.0001 * pq.s t = np.arange(0, 0.3, sampling_interval.magnitude) rate_profile = (np.sin(t*rate*np.pi*2-np.pi/2) + 1) * max_rate / 2 rate_profile_as_asig = AnalogSignal(rate_profile, units=1*pq.Hz, t_start=0*pq.s, t_stop=0.5*pq.s, sampling_period=sampling_interval) spike_trains = [] for x in range(24): curr_train = stg.inhomogeneous_poisson_process(rate_profile_as_asig) # We have to make sure that there is sufficient space between spikes. # If there is not, we move the next spike by 0.1ms spike_trains.append(curr_train) array_like = np.array([np.around(np.array(x.times)*1000, decimals=1) for x in spike_trains]) for arr_idx in range(array_like.shape[0]): bad_idc = np.argwhere(np.diff(array_like[arr_idx]) == 0).flatten() bad_idc = bad_idc+1 while bad_idc.any(): for bad_idx in bad_idc: array_like[arr_idx][bad_idx] = array_like[arr_idx][bad_idx] + 0.1 bad_idc = np.argwhere(np.diff(array_like[arr_idx]) == 0).flatten() bad_idc = bad_idc + 1 return array_like def hom_poiss(rate): """Generate a homogeneous spike train with average frequency given by rate parameter. """ rate = rate * pq.Hz spike_trains = [] for x in range(400): curr_train = stg.homogeneous_poisson_process(rate, 0.01*pq.s, 0.51 *pq.s) # We have to make sure that there is sufficient space between spikes. # If there is not, we move the next spike by 0.1ms spike_trains.append(curr_train) array_like = np.array([np.around(np.array(x.times)*1000, decimals=1) for x in spike_trains]) for arr_idx in range(array_like.shape[0]): bad_idc = np.argwhere(np.diff(array_like[arr_idx]) < 0.1).flatten() bad_idc = bad_idc+1 while bad_idc.any(): for bad_idx in bad_idc: array_like[arr_idx][bad_idx] = array_like[arr_idx][bad_idx] + 0.1 bad_idc = np.argwhere(np.diff(array_like[arr_idx]) < 0.1).flatten() bad_idc = bad_idc + 1 return array_like if __name__ =='__main__': np.random.seed(10000) temporal_patterns = inhom_poiss(rate=10)
38.915584
96
0.610712
912
5,993
3.807018
0.150219
0.0553
0.0553
0.069124
0.878744
0.878744
0.871832
0.871832
0.871832
0.867512
0
0.039613
0.292341
5,993
154
97
38.915584
0.779062
0.2004
0
0.797872
0
0
0.0017
0
0
0
0
0
0
1
0.042553
false
0
0.042553
0
0.12766
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
5c71e9a8b7255ea492df7062dbc35539685705d8
241
py
Python
plugins/rapid7_insightvm_cloud/icon_rapid7_insightvm_cloud/actions/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/rapid7_insightvm_cloud/icon_rapid7_insightvm_cloud/actions/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/rapid7_insightvm_cloud/icon_rapid7_insightvm_cloud/actions/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT from .asset_search.action import AssetSearch from .get_asset.action import GetAsset from .get_scan.action import GetScan from .start_scan.action import StartScan from .stop_scan.action import StopScan
34.428571
44
0.829876
37
241
5.27027
0.567568
0.307692
0.246154
0
0
0
0
0
0
0
0
0
0.120332
241
6
45
40.166667
0.919811
0.153527
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
5c99016d44944ed5851f9af813403b045e9f7b61
5,456
py
Python
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ipv4_telnet_cfg.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ipv4_telnet_cfg.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ipv4_telnet_cfg.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
""" Cisco_IOS_XR_ipv4_telnet_cfg This module contains a collection of YANG definitions for Cisco IOS\-XR ipv4\-telnet package configuration. This module contains definitions for the following management objects\: ipv6\-telnet\: IPv6 telnet configuration ipv4\-telnet\: ipv4 telnet Copyright (c) 2013\-2016 by Cisco Systems, Inc. All rights reserved. """ import re import collections from enum import Enum from ydk.types import Empty, YList, YLeafList, DELETE, Decimal64, FixedBitsDict from ydk.errors import YPYError, YPYModelError class Ipv6Telnet(object): """ IPv6 telnet configuration .. attribute:: client Telnet client configuration **type**\: :py:class:`Client <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ipv4_telnet_cfg.Ipv6Telnet.Client>` """ _prefix = 'ipv4-telnet-cfg' _revision = '2015-11-09' def __init__(self): self.client = Ipv6Telnet.Client() self.client.parent = self class Client(object): """ Telnet client configuration .. attribute:: source_interface Source interface for telnet sessions **type**\: str **pattern:** (([a\-zA\-Z0\-9\_]\*\\d+/){3,4}\\d+)\|(([a\-zA\-Z0\-9\_]\*\\d+/){3,4}\\d+\\.\\d+)\|(([a\-zA\-Z0\-9\_]\*\\d+/){2}([a\-zA\-Z0\-9\_]\*\\d+))\|(([a\-zA\-Z0\-9\_]\*\\d+/){2}([a\-zA\-Z0\-9\_]+))\|([a\-zA\-Z0\-9\_\-]\*\\d+)\|([a\-zA\-Z0\-9\_\-]\*\\d+\\.\\d+)\|(mpls)\|(dwdm) """ _prefix = 'ipv4-telnet-cfg' _revision = '2015-11-09' def __init__(self): self.parent = None self.source_interface = None @property def _common_path(self): return '/Cisco-IOS-XR-ipv4-telnet-cfg:ipv6-telnet/Cisco-IOS-XR-ipv4-telnet-cfg:client' def is_config(self): ''' Returns True if this instance represents config data else returns False ''' return True def _has_data(self): if not self.is_config(): return False if self.source_interface is not None: return True return False @staticmethod def _meta_info(): from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ipv4_telnet_cfg as meta return meta._meta_table['Ipv6Telnet.Client']['meta_info'] @property def _common_path(self): return '/Cisco-IOS-XR-ipv4-telnet-cfg:ipv6-telnet' def is_config(self): ''' Returns True if this instance represents config data else returns False ''' return True def _has_data(self): if not self.is_config(): return False if self.client is not None and self.client._has_data(): return True return False @staticmethod def _meta_info(): from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ipv4_telnet_cfg as meta return meta._meta_table['Ipv6Telnet']['meta_info'] class Ipv4Telnet(object): """ ipv4 telnet .. attribute:: client Telnet client configuration **type**\: :py:class:`Client <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ipv4_telnet_cfg.Ipv4Telnet.Client>` """ _prefix = 'ipv4-telnet-cfg' _revision = '2015-11-09' def __init__(self): self.client = Ipv4Telnet.Client() self.client.parent = self class Client(object): """ Telnet client configuration .. attribute:: source_interface Source interface for telnet sessions **type**\: str **pattern:** (([a\-zA\-Z0\-9\_]\*\\d+/){3,4}\\d+)\|(([a\-zA\-Z0\-9\_]\*\\d+/){3,4}\\d+\\.\\d+)\|(([a\-zA\-Z0\-9\_]\*\\d+/){2}([a\-zA\-Z0\-9\_]\*\\d+))\|(([a\-zA\-Z0\-9\_]\*\\d+/){2}([a\-zA\-Z0\-9\_]+))\|([a\-zA\-Z0\-9\_\-]\*\\d+)\|([a\-zA\-Z0\-9\_\-]\*\\d+\\.\\d+)\|(mpls)\|(dwdm) """ _prefix = 'ipv4-telnet-cfg' _revision = '2015-11-09' def __init__(self): self.parent = None self.source_interface = None @property def _common_path(self): return '/Cisco-IOS-XR-ipv4-telnet-cfg:ipv4-telnet/Cisco-IOS-XR-ipv4-telnet-cfg:client' def is_config(self): ''' Returns True if this instance represents config data else returns False ''' return True def _has_data(self): if not self.is_config(): return False if self.source_interface is not None: return True return False @staticmethod def _meta_info(): from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ipv4_telnet_cfg as meta return meta._meta_table['Ipv4Telnet.Client']['meta_info'] @property def _common_path(self): return '/Cisco-IOS-XR-ipv4-telnet-cfg:ipv4-telnet' def is_config(self): ''' Returns True if this instance represents config data else returns False ''' return True def _has_data(self): if not self.is_config(): return False if self.client is not None and self.client._has_data(): return True return False @staticmethod def _meta_info(): from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ipv4_telnet_cfg as meta return meta._meta_table['Ipv4Telnet']['meta_info']
26.614634
289
0.577713
684
5,456
4.390351
0.150585
0.07659
0.0666
0.031968
0.828838
0.822178
0.814519
0.814519
0.814519
0.814519
0
0.031297
0.273827
5,456
204
290
26.745098
0.726653
0.335227
0
0.808989
0
0.022472
0.127851
0.070828
0
0
0
0
0
1
0.224719
false
0
0.101124
0.044944
0.685393
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
1
0
0
0
0
1
0
0
9
7a4b9616a9d7ea35521b0e62d81d936cf53a6d65
53,880
py
Python
py/eval_example_resampler.py
alex6679/teensy-4-spdifIn
452ad3c8a5d667715cab9b29cbd4ddfe16f93e94
[ "MIT" ]
10
2019-12-09T22:00:26.000Z
2022-01-26T15:56:45.000Z
py/eval_example_resampler.py
alex6679/teensy-4-spdifIn
452ad3c8a5d667715cab9b29cbd4ddfe16f93e94
[ "MIT" ]
null
null
null
py/eval_example_resampler.py
alex6679/teensy-4-spdifIn
452ad3c8a5d667715cab9b29cbd4ddfe16f93e94
[ "MIT" ]
2
2020-02-02T07:10:21.000Z
2021-10-04T23:07:27.000Z
# -*- coding: utf-8 -*- """ Created on Sat Mar 28 18:18:52 2020 @author: kanali """ import numpy as np import matplotlib.pyplot as plt from scipy.fftpack import fft, ifft plt.close('all') yTeensy=np.array([ 0.0000000000, 0.0000007976, -0.0000002237, 0.0000023955, -0.0000022626, 0.0000045991, -0.0000075456, 0.0000093961, -0.0000159208, 0.0000203514, -0.0000288233, 0.0000388097, -0.0000508758, 0.0000673751, -0.0000852200, 0.0001097308, -0.0001372598, 0.0001704292, -0.0002120646, 0.0002574967, -0.0003153240, 0.0003805466, -0.0004585208, 0.0005509298, -0.0006593568, 0.0007913249, -0.0009487772, 0.0011451097, -0.0013935579, 0.0017173068, -0.0021678479, 0.0028291403, -0.0039187307, 0.0060250740, -0.0114802234, 0.0386737958, 0.5867028236, 0.9244191647, 0.9850081801, 0.7236108780, 0.2415385842, -0.3232354522, -0.7807019353, -0.9956059456, -0.8923183084, -0.5098762512, 0.0361553207, 0.5687390566, 0.9232288599, 0.9844974279, 0.7357233167, 0.2534453869, -0.3081720769, -0.7730043530, -0.9929925203, -0.8995010853, -0.5213691592, 0.0213198643, 0.5574576259, 0.9172446728, 0.9872014523, 0.7450324893, 0.2674190104, -0.2947627902, -0.7637461424, -0.9913308620, -0.9055511951, -0.5335399508, 0.0071244012, 0.5455346704, 0.9115056396, 0.9893547297, 0.7544761896, 0.2811110914, -0.2811110616, -0.7544761300, -0.9893547893, -0.9115058184, -0.5455347300, -0.0071243360, 0.5335394740, 0.9055528641, 0.9913280606, 0.7637499571, 0.2947550416, -0.2674102187, -0.7450480461, -0.9871815443, -0.9172729254, -0.5574195385, -0.0213702563, 0.5214350224, 0.8994171023, 0.9930999279, 0.7728688121, 0.3083395064, -0.2536545396, -0.7354696393, -0.9848083258, -0.9228534102, -0.5691913962, -0.0356118269, 0.5092251301, 0.8930990696, 0.9946693182, 0.7818312645, 0.3218611479, -0.2398476005, -0.7257423997, -0.9822336435, -0.9282468557, -0.5808480382, -0.0498461574, 0.4969109893, 0.8865988255, 0.9960370660, 0.7906352878, 0.3353171647, -0.2259920537, -0.7158669233, -0.9794601798, -0.9334528446, -0.5923860073, -0.0640704185, 0.4844973981, 0.8799184561, 0.9972034097, 0.7992777824, 0.3487054706, -0.2120907009, -0.7058460712, -0.9764884710, -0.9384683371, -0.6038040519, -0.0782817602, 0.4719847441, 0.8730604053, 0.9981668591, 0.8077582717, 0.3620231450, -0.1981461048, -0.6956824064, -0.9733185172, -0.9432930350, -0.6150999665, -0.0924770758, 0.4593766034, 0.8660247922, 0.9989267588, 0.8160752654, 0.3752669394, -0.1841612905, -0.6853778362, -0.9699498415, -0.9479271770, -0.6262705922, -0.1066536680, 0.4466755092, 0.8588126898, 0.9994850755, 0.8242270947, 0.3884345293, -0.1701392829, -0.6749332547, -0.9663849473, -0.9523689747, -0.6373137832, -0.1208086461, 0.4338833392, 0.8514270186, 0.9998407364, 0.8322101235, 0.4015234113, -0.1560827047, -0.6643519402, -0.9626243114, -0.9566165209, -0.6482281089, -0.1349392384, 0.4210029840, 0.8438686728, 0.9999924898, 0.8400248289, 0.4145311415, -0.1419942230, -0.6536360979, -0.9586681724, -0.9606701136, -0.6590112448, -0.1490422487, 0.4080374539, 0.8361393213, 0.9999414682, 0.8476695418, 0.4274540544, -0.1278771460, -0.6427878737, -0.9545164704, -0.9645291567, -0.6696599126, -0.1631150395, 0.3949892521, 0.8282392621, 0.9996878505, 0.8551419377, 0.4402903020, -0.1137341335, -0.6318082809, -0.9501716495, -0.9681928158, -0.6801723838, -0.1771547794, 0.3818605244, 0.8201714754, 0.9992322922, 0.8624399900, 0.4530374110, -0.0995678976, -0.6207006574, -0.9456347227, -0.9716585875, -0.6905473471, -0.1911586523, 0.3686541021, 0.8119376898, 0.9985722303, 0.8695644140, 0.4656929076, -0.0853815153, -0.6094675064, -0.9409047961, -0.9749274254, -0.7007825971, -0.2051234692, 0.3553732932, 0.8035387993, 0.9977098703, 0.8765121698, 0.4782530367, -0.0711778477, -0.5981107950, -0.9359838367, -0.9779993892, -0.7108746171, -0.2190468609, 0.3420203328, 0.7949761748, 0.9966455698, 0.8832812309, 0.4907163680, -0.0569597930, -0.5866316557, -0.9308732748, -0.9808722138, -0.7208223343, -0.2329258472, 0.3285974562, 0.7862527370, 0.9953792691, 0.8898710608, 0.5030815601, -0.0427301042, -0.5750343204, -0.9255746603, -0.9835451841, -0.7306244373, -0.2467574477, 0.3151081502, 0.7773701549, 0.9939094782, 0.8962805271, 0.5153434873, -0.0284917429, -0.5633200407, -0.9200863838, -0.9860193729, -0.7402784824, -0.2605388165, 0.3015549481, 0.7683291435, 0.9922385812, 0.9025087953, 0.5275003314, -0.0142476447, -0.5514912605, -0.9144119620, -0.9882938862, -0.7497810125, -0.2742673755, 0.2879406214, 0.7591317892, 0.9903667569, 0.9085524678, 0.5395504832, -0.0000006602, -0.5395504832, -0.9085523486, -0.9903667569, -0.7591318488, -0.2879406512, 0.2742674351, 0.7497810125, 0.9882937074, 0.9144119024, 0.5514913201, 0.0142476438, -0.5275003314, -0.9025086164, -0.9922385812, -0.7683289647, -0.3015550077, 0.2605388463, 0.7402783036, 0.9860194325, 0.9200864434, 0.5633200407, 0.0284917336, -0.5153436661, -0.8962804675, -0.9939094186, -0.7773701549, -0.3151081502, 0.2467573881, 0.7306244373, 0.9835452437, 0.9255746603, 0.5750340819, 0.0427300856, -0.5030815005, -0.8898708820, -0.9953794479, -0.7862526774, -0.3285975158, 0.2329258770, 0.7208225131, 0.9808723927, 0.9308733344, 0.5866318345, 0.0569597743, -0.4907162786, -0.8832812905, -0.9966455698, -0.7949762344, -0.3420203924, 0.2190468162, 0.7108746171, 0.9779995084, 0.9359837770, 0.5981106162, 0.0711778700, -0.4782529771, -0.8765124083, -0.9977096319, -0.8035389781, -0.3553732336, 0.2051235437, 0.7007827163, 0.9749274254, 0.9409048557, 0.6094674468, 0.0853815153, -0.4656928778, -0.8695644140, -0.9985722303, -0.8119377494, -0.3686540723, 0.1911586821, 0.6905473471, 0.9716584682, 0.9456348419, 0.6207008362, 0.0995679498, -0.4530374408, -0.8624400496, -0.9992322922, -0.8201713562, -0.3818604946, 0.1771547943, 0.6801723838, 0.9681926966, 0.9501719475, 0.6318081021, 0.1137341633, -0.4402903318, -0.8551420569, -0.9996879697, -0.8282391429, -0.3949893117, 0.1631149948, 0.6696598530, 0.9645291567, 0.9545165300, 0.6427880526, 0.1278771460, -0.4274540544, -0.8476694226, -0.9999412894, -0.8361392021, -0.4080375433, 0.1490421891, 0.6590111852, 0.9606699944, 0.9586679339, 0.6536361575, 0.1419942230, -0.4145311415, -0.8400247097, -0.9999927878, -0.8438686728, -0.4210029542, 0.1349392533, 0.6482280493, 0.9566165209, 0.9626244903, 0.6643518806, 0.1560826600, -0.4015235007, -0.8322100639, -0.9998408556, -0.8514268398, -0.4338833988, 0.1208086982, 0.6373137832, 0.9523692727, 0.9663848877, 0.6749334335, 0.1701392531, -0.3884345293, -0.8242269158, -0.9994850755, -0.8588125110, -0.4466754198, 0.1066536754, 0.6262705922, 0.9479271770, 0.9699497819, 0.6853777170, 0.1841612905, -0.3752669394, -0.8160753846, -0.9989270568, -0.8660253286, -0.4593765140, 0.0924770907, 0.6151000261, 0.9432930946, 0.9733183980, 0.6956822872, 0.1981460601, -0.3620231450, -0.8077580929, -0.9981670380, -0.8730603456, -0.4719847739, 0.0782817379, 0.6038040519, 0.9384682178, 0.9764884114, 0.7058458924, 0.2120907456, -0.3487055004, -0.7992776036, -0.9972034693, -0.8799184561, -0.4844973981, 0.0640704334, 0.5923860073, 0.9334529042, 0.9794601202, 0.7158668637, 0.2259920686, -0.3353171647, -0.7906354070, -0.9960369468, -0.8865987062, -0.4969110787, 0.0498461574, 0.5808479786, 0.9282470345, 0.9822334647, 0.7257422209, 0.2398475409, -0.3218612373, -0.7818312049, -0.9946690798, -0.8930990100, -0.5092251897, 0.0356118232, 0.5691913962, 0.9228532910, 0.9848083854, 0.7354695201, 0.2536545694, -0.3083394766, -0.7728687525, -0.9930998087, -0.8994169831, -0.5214350224, 0.0213702396, 0.5574195385, 0.9172728062, 0.9871815443, 0.7450481057, 0.2674101591, -0.2947550714, -0.7637500763, -0.9913280606, -0.9055531025, -0.5335395336, 0.0071243271, 0.5455346704, 0.9115056396, 0.9893547297, 0.7544761896, 0.2811110914, -0.2811110616, -0.7544761300, -0.9893547893, -0.9115058184, -0.5455347300, -0.0071243360, 0.5335394740, 0.9055528641, 0.9913280606, 0.7637499571, 0.2947550416, -0.2674102187, -0.7450480461, -0.9871815443, -0.9172729254, -0.5574195385, -0.0213702563, 0.5214350224, 0.8994171023, 0.9930999279, 0.7728688121, 0.3083395064, -0.2536545396, -0.7354696393, -0.9848083258, -0.9228534102, -0.5691913962, -0.0356118269, 0.5092251301, 0.8930990696, 0.9946693182, 0.7818312645, 0.3218611479, -0.2398476005, -0.7257423997, -0.9822336435, -0.9282468557, -0.5808480382, -0.0498461574, 0.4969109893, 0.8865988255, 0.9960370660, 0.7906352878, 0.3353171647, -0.2259920537, -0.7158669233, -0.9794601798, -0.9334528446, -0.5923860073, -0.0640704185, 0.4844973981, 0.8799184561, 0.9972034097, 0.7992777824, 0.3487054706, -0.2120907009, -0.7058460712, -0.9764884710, -0.9384683371, -0.6038040519, -0.0782817602, 0.4719847441, 0.8730604053, 0.9981668591, 0.8077582717, 0.3620231450, -0.1981461048, -0.6956824064, -0.9733185172, -0.9432930350, -0.6150999665, -0.0924770758, 0.4593766034, 0.8660247922, 0.9989267588, 0.8160752654, 0.3752669394, -0.1841612905, -0.6853778362, -0.9699498415, -0.9479271770, -0.6262705922, -0.1066536680, 0.4466755092, 0.8588126898, 0.9994850755, 0.8242270947, 0.3884345293, -0.1701392829, -0.6749332547, -0.9663849473, -0.9523689747, -0.6373137832, -0.1208086461, 0.4338833392, 0.8514270186, 0.9998407364, 0.8322101235, 0.4015234113, -0.1560827047, -0.6643519402, -0.9626243114, -0.9566165209, -0.6482281089, -0.1349392384, 0.4210029840, 0.8438686728, 0.9999924898, 0.8400248289, 0.4145311415, -0.1419942230, -0.6536360979, -0.9586681724, -0.9606701136, -0.6590112448, -0.1490422487, 0.4080374539, 0.8361393213, 0.9999414682, 0.8476695418, 0.4274540544, -0.1278771460, -0.6427878737, -0.9545164704, -0.9645291567, -0.6696599126, -0.1631150395, 0.3949892521, 0.8282392621, 0.9996878505, 0.8551419377, 0.4402903020, -0.1137341335, -0.6318082809, -0.9501716495, -0.9681928158, -0.6801723838, -0.1771547794, 0.3818605244, 0.8201714754, 0.9992322922, 0.8624399900, 0.4530374110, -0.0995678976, -0.6207006574, -0.9456347227, -0.9716585875, -0.6905473471, -0.1911586523, 0.3686541021, 0.8119376898, 0.9985722303, 0.8695644140, 0.4656929076, -0.0853815153, -0.6094675064, -0.9409047961, -0.9749274254, -0.7007825971, -0.2051234692, 0.3553732932, 0.8035387993, 0.9977098703, 0.8765121698, 0.4782530367, -0.0711778477, -0.5981107950, -0.9359838367, -0.9779993892, -0.7108746171, -0.2190468609, 0.3420203328, 0.7949761748, 0.9966455698, 0.8832812309, 0.4907163680, -0.0569597930, -0.5866316557, -0.9308732748, -0.9808722138, -0.7208223343, -0.2329258472, 0.3285974562, 0.7862527370, 0.9953792691, 0.8898710608, 0.5030815601, -0.0427301042, -0.5750343204, -0.9255746603, -0.9835451841, -0.7306244373, -0.2467574477, 0.3151081502, 0.7773701549, 0.9939094782, 0.8962805271, 0.5153434873, -0.0284917429, -0.5633200407, -0.9200863838, -0.9860193729, -0.7402784824, -0.2605388165, 0.3015549481, 0.7683291435, 0.9922385812, 0.9025087953, 0.5275003314, -0.0142476447, -0.5514912605, -0.9144119620, -0.9882938862, -0.7497810125, -0.2742673755, 0.2879406214, 0.7591317892, 0.9903667569, 0.9085524678, 0.5395504832, 0.0000006591, -0.5395504832, -0.9085523486, -0.9903667569, -0.7591318488, -0.2879406512, 0.2742674351, 0.7497810125, 0.9882937074, 0.9144119024, 0.5514913201, 0.0142476438, -0.5275003314, -0.9025086164, -0.9922385812, -0.7683289647, -0.3015550077, 0.2605388463, 0.7402783036, 0.9860194325, 0.9200864434, 0.5633200407, 0.0284917336, -0.5153436661, -0.8962804675, -0.9939094186, -0.7773701549, -0.3151081502, 0.2467573881, 0.7306244373, 0.9835452437, 0.9255746603, 0.5750340819, 0.0427300856, -0.5030815005, -0.8898708820, -0.9953794479, -0.7862526774, -0.3285975158, 0.2329258770, 0.7208225131, 0.9808723927, 0.9308733344, 0.5866318345, 0.0569597743, -0.4907162786, -0.8832812905, -0.9966455698, -0.7949762344, -0.3420203924, 0.2190468162, 0.7108746171, 0.9779995084, 0.9359837770, 0.5981106162, 0.0711778700, -0.4782529771, -0.8765124083, -0.9977096319, -0.8035389781, -0.3553732336, 0.2051235437, 0.7007827163, 0.9749274254, 0.9409048557, 0.6094674468, 0.0853815153, -0.4656928778, -0.8695644140, -0.9985722303, -0.8119377494, -0.3686540723, 0.1911586821, 0.6905473471, 0.9716584682, 0.9456348419, 0.6207008362, 0.0995679498, -0.4530374408, -0.8624400496, -0.9992322922, -0.8201713562, -0.3818604946, 0.1771547943, 0.6801723838, 0.9681926966, 0.9501719475, 0.6318081021, 0.1137341633, -0.4402903318, -0.8551420569, -0.9996879697, -0.8282391429, -0.3949893117, 0.1631149948, 0.6696598530, 0.9645291567, 0.9545165300, 0.6427880526, 0.1278771460, -0.4274540544, -0.8476694226, -0.9999412894, -0.8361392021, -0.4080375433, 0.1490421891, 0.6590111852, 0.9606699944, 0.9586679339, 0.6536361575, 0.1419942230, -0.4145311415, -0.8400247097, -0.9999927878, -0.8438686728, -0.4210029542, 0.1349392533, 0.6482280493, 0.9566165209, 0.9626244903, 0.6643518806, 0.1560826600, -0.4015235007, -0.8322100639, -0.9998408556, -0.8514268398, -0.4338833988, 0.1208086982, 0.6373137832, 0.9523692727, 0.9663848877, 0.6749334335, 0.1701392531, -0.3884345293, -0.8242269158, -0.9994850755, -0.8588125110, -0.4466754198, 0.1066536754, 0.6262705922, 0.9479271770, 0.9699497819, 0.6853777170, 0.1841612905, -0.3752669394, -0.8160753846, -0.9989270568, -0.8660253286, -0.4593765140, 0.0924770907, 0.6151000261, 0.9432930946, 0.9733183980, 0.6956822872, 0.1981460601, -0.3620231450, -0.8077580929, -0.9981670380, -0.8730603456, -0.4719847739, 0.0782817379, 0.6038040519, 0.9384682178, 0.9764884114, 0.7058458924, 0.2120907456, -0.3487055004, -0.7992776036, -0.9972034693, -0.8799184561, -0.4844973981, 0.0640704334, 0.5923860073, 0.9334529042, 0.9794601202, 0.7158668637, 0.2259920686, -0.3353171647, -0.7906354070, -0.9960369468, -0.8865987062, -0.4969110787, 0.0498461574, 0.5808479786, 0.9282470345, 0.9822334647, 0.7257422209, 0.2398475409, -0.3218612373, -0.7818312049, -0.9946690798, -0.8930990100, -0.5092251897, 0.0356118232, 0.5691913962, 0.9228532910, 0.9848083854, 0.7354695201, 0.2536545694, -0.3083394766, -0.7728687525, -0.9930998087, -0.8994169831, -0.5214350224, 0.0213702396, 0.5574195385, 0.9172728062, 0.9871815443, 0.7450481057, 0.2674101591, -0.2947550714, -0.7637500763, -0.9913280606, -0.9055531025, -0.5335395336, 0.0071243271, 0.5455346704, 0.9115056396, 0.9893547297, 0.7544761896, 0.2811110914, -0.2811110616, -0.7544761300, -0.9893547893, -0.9115058184, -0.5455347300, -0.0071243360, 0.5335394740, 0.9055528641, 0.9913280606, 0.7637499571, 0.2947550416, -0.2674102187, -0.7450480461, -0.9871815443, -0.9172729254, -0.5574195385, -0.0213702563, 0.5214350224, 0.8994171023, 0.9930999279, 0.7728688121, 0.3083395064, -0.2536545396, -0.7354696393, -0.9848083258, -0.9228534102, -0.5691913962, -0.0356118269, 0.5092251301, 0.8930990696, 0.9946693182, 0.7818312645, 0.3218611479, -0.2398476005, -0.7257423997, -0.9822336435, -0.9282468557, -0.5808480382, -0.0498461574, 0.4969109893, 0.8865988255, 0.9960370660, 0.7906352878, 0.3353171647, -0.2259920537, -0.7158669233, -0.9794601798, -0.9334528446, -0.5923860073, -0.0640704185, 0.4844973981, 0.8799184561, 0.9972034097, 0.7992777824, 0.3487054706, -0.2120907009, -0.7058460712, -0.9764884710, -0.9384683371, -0.6038040519, -0.0782817602, 0.4719847441, 0.8730604053, 0.9981668591, 0.8077582717, 0.3620231450, -0.1981461048, -0.6956824064, -0.9733185172, -0.9432930350, -0.6150999665, -0.0924770758, 0.4593766034, 0.8660247922, 0.9989267588, 0.8160752654, 0.3752669394, -0.1841612905, -0.6853778362, -0.9699498415, -0.9479271770, -0.6262705922, -0.1066536680, 0.4466755092, 0.8588126898, 0.9994850755, 0.8242270947, 0.3884345293, -0.1701392829, -0.6749332547, -0.9663849473, -0.9523689747, -0.6373137832, -0.1208086461, 0.4338833392, 0.8514270186, 0.9998407364, 0.8322101235, 0.4015234113, -0.1560827047, -0.6643519402, -0.9626243114, -0.9566165209, -0.6482281089, -0.1349392384, 0.4210029840, 0.8438686728, 0.9999924898, 0.8400248289, 0.4145311415, -0.1419942230, -0.6536360979, -0.9586681724, -0.9606701136, -0.6590112448, -0.1490422487, 0.4080374539, 0.8361393213, 0.9999414682, 0.8476695418, 0.4274540544, -0.1278771460, -0.6427878737, -0.9545164704, -0.9645291567, -0.6696599126, -0.1631150395, 0.3949892521, 0.8282392621, 0.9996878505, 0.8551419377, 0.4402903020, -0.1137341335, -0.6318082809, -0.9501716495, -0.9681928158, -0.6801723838, -0.1771547794, 0.3818605244, 0.8201714754, 0.9992322922, 0.8624399900, 0.4530374110, -0.0995678976, -0.6207006574, -0.9456347227, -0.9716585875, -0.6905473471, -0.1911586523, 0.3686541021, 0.8119376898, 0.9985722303, 0.8695644140, 0.4656929076, -0.0853815153, -0.6094675064, -0.9409047961, -0.9749274254, -0.7007825971, -0.2051234692, 0.3553732932, 0.8035387993, 0.9977098703, 0.8765121698, 0.4782530367, -0.0711778477, -0.5981107950, -0.9359838367, -0.9779993892, -0.7108746171, -0.2190468609, 0.3420203328, 0.7949761748, 0.9966455698, 0.8832812309, 0.4907163680, -0.0569597930, -0.5866316557, -0.9308732748, -0.9808722138, -0.7208223343, -0.2329258472, 0.3285974562, 0.7862527370, 0.9953792691, 0.8898710608, 0.5030815601, -0.0427301042, -0.5750343204, -0.9255746603, -0.9835451841, -0.7306244373, -0.2467574477, 0.3151081502, 0.7773701549, 0.9939094782, 0.8962805271, 0.5153434873, -0.0284917429, -0.5633200407, -0.9200863838, -0.9860193729, -0.7402784824, -0.2605388165, 0.3015549481, 0.7683291435, 0.9922385812, 0.9025087953, 0.5275003314, -0.0142476447, -0.5514912605, -0.9144119620, -0.9882938862, -0.7497810125, -0.2742673755, 0.2879406214, 0.7591317892, 0.9903667569, 0.9085524678, 0.5395504832, 0.0000006591, -0.5395504832, -0.9085523486, -0.9903667569, -0.7591318488, -0.2879406512, 0.2742674351, 0.7497810125, 0.9882937074, 0.9144119024, 0.5514913201, 0.0142476438, -0.5275003314, -0.9025086164, -0.9922385812, -0.7683289647, -0.3015550077, 0.2605388463, 0.7402783036, 0.9860194325, 0.9200864434, 0.5633200407, 0.0284917336, -0.5153436661, -0.8962804675, -0.9939094186, -0.7773701549, -0.3151081502, 0.2467573881, 0.7306244373, 0.9835452437, 0.9255746603, 0.5750340819, 0.0427300856, -0.5030815005, -0.8898708820, -0.9953794479, -0.7862526774, -0.3285975158, 0.2329258770, 0.7208225131, 0.9808723927, 0.9308733344, 0.5866318345, 0.0569597743, -0.4907162786, -0.8832812905, -0.9966455698, -0.7949762344, -0.3420203924, 0.2190468162, 0.7108746171, 0.9779995084, 0.9359837770, 0.5981106162, 0.0711778700, -0.4782529771, -0.8765124083, -0.9977096319, -0.8035389781, -0.3553732336, 0.2051235437, 0.7007827163, 0.9749274254, 0.9409048557, 0.6094674468, 0.0853815153, -0.4656928778, -0.8695644140, -0.9985722303, -0.8119377494, -0.3686540723, 0.1911586821, 0.6905473471, 0.9716584682, 0.9456348419, 0.6207008362, 0.0995679498, -0.4530374408, -0.8624400496, -0.9992322922, -0.8201713562, -0.3818604946, 0.1771547943, 0.6801723838, 0.9681926966, 0.9501719475, 0.6318081021, 0.1137341633, -0.4402903318, -0.8551420569, -0.9996879697, -0.8282391429, -0.3949893117, 0.1631149948, 0.6696598530, 0.9645291567, 0.9545165300, 0.6427880526, 0.1278771460, -0.4274540544, -0.8476694226, -0.9999412894, -0.8361392021, -0.4080375433, 0.1490421891, 0.6590111852, 0.9606699944, 0.9586679339, 0.6536361575, 0.1419942230, -0.4145311415, -0.8400247097, -0.9999927878, -0.8438686728, -0.4210029542, 0.1349392533, 0.6482280493, 0.9566165209, 0.9626244903, 0.6643518806, 0.1560826600, -0.4015235007, -0.8322100639, -0.9998408556, -0.8514268398, -0.4338833988, 0.1208086982, 0.6373137832, 0.9523692727, 0.9663848877, 0.6749334335, 0.1701392531, -0.3884345293, -0.8242269158, -0.9994850755, -0.8588125110, -0.4466754198, 0.1066536754, 0.6262705922, 0.9479271770, 0.9699497819, 0.6853777170, 0.1841612905, -0.3752669394, -0.8160753846, -0.9989270568, -0.8660253286, -0.4593765140, 0.0924770907, 0.6151000261, 0.9432930946, 0.9733183980, 0.6956822872, 0.1981460601, -0.3620231450, -0.8077580929, -0.9981670380, -0.8730603456, -0.4719847739, 0.0782817379, 0.6038040519, 0.9384682178, 0.9764884114, 0.7058458924, 0.2120907456, -0.3487055004, -0.7992776036, -0.9972034693, -0.8799184561, -0.4844973981, 0.0640704334, 0.5923860073, 0.9334529042, 0.9794601202, 0.7158668637, 0.2259920686, -0.3353171647, -0.7906354070, -0.9960369468, -0.8865987062, -0.4969110787, 0.0498461574, 0.5808479786, 0.9282470345, 0.9822334647, 0.7257422209, 0.2398475409, -0.3218612373, -0.7818312049, -0.9946690798, -0.8930990100, -0.5092251897, 0.0356118232, 0.5691913962, 0.9228532910, 0.9848083854, 0.7354695201, 0.2536545694, -0.3083394766, -0.7728687525, -0.9930998087, -0.8994169831, -0.5214350224, 0.0213702396, 0.5574195385, 0.9172728062, 0.9871815443, 0.7450481057, 0.2674101591, -0.2947550714, -0.7637500763, -0.9913280606, -0.9055531025, -0.5335395336, 0.0071243271, 0.5455346704, 0.9115056396, 0.9893547297, 0.7544761896, 0.2811110914, -0.2811110616, -0.7544761300, -0.9893547893, -0.9115058184, -0.5455347300, -0.0071243360, 0.5335394740, 0.9055528641, 0.9913280606, 0.7637499571, 0.2947550416, -0.2674102187, -0.7450480461, -0.9871815443, -0.9172729254, -0.5574195385, -0.0213702563, 0.5214350224, 0.8994171023, 0.9930999279, 0.7728688121, 0.3083395064, -0.2536545396, -0.7354696393, -0.9848083258, -0.9228534102, -0.5691913962, -0.0356118269, 0.5092251301, 0.8930990696, 0.9946693182, 0.7818312645, 0.3218611479, -0.2398476005, -0.7257423997, -0.9822336435, -0.9282468557, -0.5808480382, -0.0498461574, 0.4969109893, 0.8865988255, 0.9960370660, 0.7906352878, 0.3353171647, -0.2259920537, -0.7158669233, -0.9794601798, -0.9334528446, -0.5923860073, -0.0640704185, 0.4844973981, 0.8799184561, 0.9972034097, 0.7992777824, 0.3487054706, -0.2120907009, -0.7058460712, -0.9764884710, -0.9384683371, -0.6038040519, -0.0782817602, 0.4719847441, 0.8730604053, 0.9981668591, 0.8077582717, 0.3620231450, -0.1981461048, -0.6956824064, -0.9733185172, -0.9432930350, -0.6150999665, -0.0924770758, 0.4593766034, 0.8660247922, 0.9989267588, 0.8160752654, 0.3752669394, -0.1841612905, -0.6853778362, -0.9699498415, -0.9479271770, -0.6262705922, -0.1066536680, 0.4466755092, 0.8588126898, 0.9994850755, 0.8242270947, 0.3884345293, -0.1701392829, -0.6749332547, -0.9663849473, -0.9523689747, -0.6373137832, -0.1208086461, 0.4338833392, 0.8514270186, 0.9998407364, 0.8322101235, 0.4015234113, -0.1560827047, -0.6643519402, -0.9626243114, -0.9566165209, -0.6482281089, -0.1349392384, 0.4210029840, 0.8438686728, 0.9999924898, 0.8400248289, 0.4145311415, -0.1419942230, -0.6536360979, -0.9586681724, -0.9606701136, -0.6590112448, -0.1490422487, 0.4080374539, 0.8361393213, 0.9999414682, 0.8476695418, 0.4274540544, -0.1278771460, -0.6427878737, -0.9545164704, -0.9645291567, -0.6696599126, -0.1631150395, 0.3949892521, 0.8282392621, 0.9996878505, 0.8551419377, 0.4402903020, -0.1137341335, -0.6318082809, -0.9501716495, -0.9681928158, -0.6801723838, -0.1771547794, 0.3818605244, 0.8201714754, 0.9992322922, 0.8624399900, 0.4530374110, -0.0995678976, -0.6207006574, -0.9456347227, -0.9716585875, -0.6905473471, -0.1911586523, 0.3686541021, 0.8119376898, 0.9985722303, 0.8695644140, 0.4656929076, -0.0853815153, -0.6094675064, -0.9409047961, -0.9749274254, -0.7007825971, -0.2051234692, 0.3553732932, 0.8035387993, 0.9977098703, 0.8765121698, 0.4782530367, -0.0711778477, -0.5981107950, -0.9359838367, -0.9779993892, -0.7108746171, -0.2190468609, 0.3420203328, 0.7949761748, 0.9966455698, 0.8832812309, 0.4907163680, -0.0569597930, -0.5866316557, -0.9308732748, -0.9808722138, -0.7208223343, -0.2329258472, 0.3285974562, 0.7862527370, 0.9953792691, 0.8898710608, 0.5030815601, -0.0427301042, -0.5750343204, -0.9255746603, -0.9835451841, -0.7306244373, -0.2467574477, 0.3151081502, 0.7773701549, 0.9939094782, 0.8962805271, 0.5153434873, -0.0284917429, -0.5633200407, -0.9200863838, -0.9860193729, -0.7402784824, -0.2605388165, 0.3015549481, 0.7683291435, 0.9922385812, 0.9025087953, 0.5275003314, -0.0142476447, -0.5514912605, -0.9144119620, -0.9882938862, -0.7497810125, -0.2742673755, 0.2879406214, 0.7591317892, 0.9903667569, 0.9085524678, 0.5395504832, 0.0000006591, -0.5395504832, -0.9085523486, -0.9903667569, -0.7591318488, -0.2879406512, 0.2742674351, 0.7497810125, 0.9882937074, 0.9144119024, 0.5514913201, 0.0142476438, -0.5275003314, -0.9025086164, -0.9922385812, -0.7683289647, -0.3015550077, 0.2605388463, 0.7402783036, 0.9860194325, 0.9200864434, 0.5633200407, 0.0284917336, -0.5153436661, -0.8962804675, -0.9939094186, -0.7773701549, -0.3151081502, 0.2467573881, 0.7306244373, 0.9835452437, 0.9255746603, 0.5750340819, 0.0427300856, -0.5030815005, -0.8898708820, -0.9953794479, -0.7862526774, -0.3285975158, 0.2329258770, 0.7208225131, 0.9808723927, 0.9308733344, 0.5866318345, 0.0569597743, -0.4907162786, -0.8832812905, -0.9966455698, -0.7949762344, -0.3420203924, 0.2190468162, 0.7108746171, 0.9779995084, 0.9359837770, 0.5981106162, 0.0711778700, -0.4782529771, -0.8765124083, -0.9977096319, -0.8035389781, -0.3553732336, 0.2051235437, 0.7007827163, 0.9749274254, 0.9409048557, 0.6094674468, 0.0853815153, -0.4656928778, -0.8695644140, -0.9985722303, -0.8119377494, -0.3686540723, 0.1911586821, 0.6905473471, 0.9716584682, 0.9456348419, 0.6207008362, 0.0995679498, -0.4530374408, -0.8624400496, -0.9992322922, -0.8201713562, -0.3818604946, 0.1771547943, 0.6801723838, 0.9681926966, 0.9501719475, 0.6318081021, 0.1137341633, -0.4402903318, -0.8551420569, -0.9996879697, -0.8282391429, -0.3949893117, 0.1631149948, 0.6696598530, 0.9645291567, 0.9545165300, 0.6427880526, 0.1278771460, -0.4274540544, -0.8476694226, -0.9999412894, -0.8361392021, -0.4080375433, 0.1490421891, 0.6590111852, 0.9606699944, 0.9586679339, 0.6536361575, 0.1419942230, -0.4145311415, -0.8400247097, -0.9999927878, -0.8438686728, -0.4210029542, 0.1349392533, 0.6482280493, 0.9566165209, 0.9626244903, 0.6643518806, 0.1560826600, -0.4015235007, -0.8322100639, -0.9998408556, -0.8514268398, -0.4338833988, 0.1208086982, 0.6373137832, 0.9523692727, 0.9663848877, 0.6749334335, 0.1701392531, -0.3884345293, -0.8242269158, -0.9994850755, -0.8588125110, -0.4466754198, 0.1066536754, 0.6262705922, 0.9479271770, 0.9699497819, 0.6853777170, 0.1841612905, -0.3752669394, -0.8160753846, -0.9989270568, -0.8660253286, -0.4593765140, 0.0924770907, 0.6151000261, 0.9432930946, 0.9733183980, 0.6956822872, 0.1981460601, -0.3620231450, -0.8077580929, -0.9981670380, -0.8730603456, -0.4719847739, 0.0782817379, 0.6038040519, 0.9384682178, 0.9764884114, 0.7058458924, 0.2120907456, -0.3487055004, -0.7992776036, -0.9972034693, -0.8799184561, -0.4844973981, 0.0640704334, 0.5923860073, 0.9334529042, 0.9794601202, 0.7158668637, 0.2259920686, -0.3353171647, -0.7906354070, -0.9960369468, -0.8865987062, -0.4969110787, 0.0498461574, 0.5808479786, 0.9282470345, 0.9822334647, 0.7257422209, 0.2398475409, -0.3218612373, -0.7818312049, -0.9946690798, -0.8930990100, -0.5092251897, 0.0356118232, 0.5691913962, 0.9228532910, 0.9848083854, 0.7354695201, 0.2536545694, -0.3083394766, -0.7728687525, -0.9930998087, -0.8994169831, -0.5214350224, 0.0213702396, 0.5574195385, 0.9172728062, 0.9871815443, 0.7450481057, 0.2674101591, -0.2947550714, -0.7637500763, -0.9913280606, -0.9055531025, -0.5335395336, 0.0071243271, 0.5455346704, 0.9115056396, 0.9893547297, 0.7544761896, 0.2811110914, -0.2811110616, -0.7544761300, -0.9893547893, -0.9115058184, -0.5455347300, -0.0071243360, 0.5335394740, 0.9055528641, 0.9913280606, 0.7637499571, 0.2947550416, -0.2674102187, -0.7450480461, -0.9871815443, -0.9172729254, -0.5574195385, -0.0213702563, 0.5214350224, 0.8994171023, 0.9930999279, 0.7728688121, 0.3083395064, -0.2536545396, -0.7354696393, -0.9848083258, -0.9228534102, -0.5691913962, -0.0356118269, 0.5092251301, 0.8930990696, 0.9946693182, 0.7818312645, 0.3218611479, -0.2398476005, -0.7257423997, -0.9822336435, -0.9282468557, -0.5808480382, -0.0498461574, 0.4969109893, 0.8865988255, 0.9960370660, 0.7906352878, 0.3353171647, -0.2259920537, -0.7158669233, -0.9794601798, -0.9334528446, -0.5923860073, -0.0640704185, 0.4844973981, 0.8799184561, 0.9972034097, 0.7992777824, 0.3487054706, -0.2120907009, -0.7058460712, -0.9764884710, -0.9384683371, -0.6038040519, -0.0782817602, 0.4719847441, 0.8730604053, 0.9981668591, 0.8077582717, 0.3620231450, -0.1981461048, -0.6956824064, -0.9733185172, -0.9432930350, -0.6150999665, -0.0924770758, 0.4593766034, 0.8660247922, 0.9989267588, 0.8160752654, 0.3752669394, -0.1841612905, -0.6853778362, -0.9699498415, -0.9479271770, -0.6262705922, -0.1066536680, 0.4466755092, 0.8588126898, 0.9994850755, 0.8242270947, 0.3884345293, -0.1701392829, -0.6749332547, -0.9663849473, -0.9523689747, -0.6373137832, -0.1208086461, 0.4338833392, 0.8514270186, 0.9998407364, 0.8322101235, 0.4015234113, -0.1560827047, -0.6643519402, -0.9626243114, -0.9566165209, -0.6482281089, -0.1349392384, 0.4210029840, 0.8438686728, 0.9999924898, 0.8400248289, 0.4145311415, -0.1419942230, -0.6536360979, -0.9586681724, -0.9606701136, -0.6590112448, -0.1490422487, 0.4080374539, 0.8361393213, 0.9999414682, 0.8476695418, 0.4274540544, -0.1278771460, -0.6427878737, -0.9545164704, -0.9645291567, -0.6696599126, -0.1631150395, 0.3949892521, 0.8282392621, 0.9996878505, 0.8551419377, 0.4402903020, -0.1137341335, -0.6318082809, -0.9501716495, -0.9681928158, -0.6801723838, -0.1771547794, 0.3818605244, 0.8201714754, 0.9992322922, 0.8624399900, 0.4530374110, -0.0995678976, -0.6207006574, -0.9456347227, -0.9716585875, -0.6905473471, -0.1911586523, 0.3686541021, 0.8119376898, 0.9985722303, 0.8695644140, 0.4656929076, -0.0853815153, -0.6094675064, -0.9409047961, -0.9749274254, -0.7007825971, -0.2051234692, 0.3553732932, 0.8035387993, 0.9977098703, 0.8765121698, 0.4782530367, -0.0711778477, -0.5981107950, -0.9359838367, -0.9779993892, -0.7108746171, -0.2190468609, 0.3420203328, 0.7949761748, 0.9966455698, 0.8832812309, 0.4907163680, -0.0569597930, -0.5866316557, -0.9308732748, -0.9808722138, -0.7208223343, -0.2329258472, 0.3285974562, 0.7862527370, 0.9953792691, 0.8898710608, 0.5030815601, -0.0427301042, -0.5750343204, -0.9255746603, -0.9835451841, -0.7306244373, -0.2467574477, 0.3151081502, 0.7773701549, 0.9939094782, 0.8962805271, 0.5153434873, -0.0284917429, -0.5633200407, -0.9200863838, -0.9860193729, -0.7402784824, -0.2605388165, 0.3015549481, 0.7683291435, 0.9922385812, 0.9025087953, 0.5275003314, -0.0142476447, -0.5514912605, -0.9144119620, -0.9882938862, -0.7497810125, -0.2742673755, 0.2879406214, 0.7591317892, 0.9903667569, 0.9085524678, 0.5395504832, 0.0000006591, -0.5395504832, -0.9085523486, -0.9903667569, -0.7591318488, -0.2879406512, 0.2742674351, 0.7497810125, 0.9882937074, 0.9144119024, 0.5514913201, 0.0142476438, -0.5275003314, -0.9025086164, -0.9922385812, -0.7683289647, -0.3015550077, 0.2605388463, 0.7402783036, 0.9860194325, 0.9200864434, 0.5633200407, 0.0284917336, -0.5153436661, -0.8962804675, -0.9939094186, -0.7773701549, -0.3151081502, 0.2467573881, 0.7306244373, 0.9835452437, 0.9255746603, 0.5750340819, 0.0427300856, -0.5030815005, -0.8898708820, -0.9953794479, -0.7862526774, -0.3285975158, 0.2329258770, 0.7208225131, 0.9808723927, 0.9308733344, 0.5866318345, 0.0569597743, -0.4907162786, -0.8832812905, -0.9966455698, -0.7949762344, -0.3420203924, 0.2190468162, 0.7108746171, 0.9779995084, 0.9359837770, 0.5981106162, 0.0711778700, -0.4782529771, -0.8765124083, -0.9977096319, -0.8035389781, -0.3553732336, 0.2051235437, 0.7007827163, 0.9749274254, 0.9409048557, 0.6094674468, 0.0853815153, -0.4656928778, -0.8695644140, -0.9985722303, -0.8119377494, -0.3686540723, 0.1911586821, 0.6905473471, 0.9716584682, 0.9456348419, 0.6207008362, 0.0995679498, -0.4530374408, -0.8624400496, -0.9992322922, -0.8201713562, -0.3818604946, 0.1771547943, 0.6801723838, 0.9681926966, 0.9501719475, 0.6318081021, 0.1137341633, -0.4402903318, -0.8551420569, -0.9996879697, -0.8282391429, -0.3949893117, 0.1631149948, 0.6696598530, 0.9645291567, 0.9545165300, 0.6427880526, 0.1278771460, -0.4274540544, -0.8476694226, -0.9999412894, -0.8361392021, -0.4080375433, 0.1490421891, 0.6590111852, 0.9606699944, 0.9586679339, 0.6536361575, 0.1419942230, -0.4145311415, -0.8400247097, -0.9999927878, -0.8438686728, -0.4210029542, 0.1349392533, 0.6482280493, 0.9566165209, 0.9626244903, 0.6643518806, 0.1560826600, -0.4015235007, -0.8322100639, -0.9998408556, -0.8514268398, -0.4338833988, 0.1208086982, 0.6373137832, 0.9523692727, 0.9663848877, 0.6749334335, 0.1701392531, -0.3884345293, -0.8242269158, -0.9994850755, -0.8588125110, -0.4466754198, 0.1066536754, 0.6262705922, 0.9479271770, 0.9699497819, 0.6853777170, 0.1841612905, -0.3752669394, -0.8160753846, -0.9989270568, -0.8660246134, -0.4593765140, 0.0924770907, 0.6151000261, 0.9432930946, 0.9733183980, 0.6956822872, 0.1981460601, -0.3620231450, -0.8077580929, -0.9981670380, -0.8730603456, -0.4719847739, 0.0782817379, 0.6038040519, 0.9384682178, 0.9764884114, 0.7058458924, 0.2120907456, -0.3487055004, -0.7992776036, -0.9972034693, -0.8799184561, -0.4844973981, 0.0640704334, 0.5923860073, 0.9334529042, 0.9794601202, 0.7158668637, 0.2259920686, -0.3353171647, -0.7906354070, -0.9960369468, -0.8865987062, -0.4969110787, 0.0498461574, 0.5808479786, 0.9282470345, 0.9822334647, 0.7257422209, 0.2398475409, -0.3218612373, -0.7818312049, -0.9946690798, -0.8930990100, -0.5092251897, 0.0356118232, 0.5691913962, 0.9228532910, 0.9848083854, 0.7354695201, 0.2536545694, -0.3083394766, -0.7728687525, -0.9930998087, -0.8994169831, -0.5214350224, 0.0213702396, 0.5574195385, 0.9172728062, 0.9871815443, 0.7450481057, 0.2674101591, -0.2947550714, -0.7637500763, -0.9913280606, -0.9055531025, -0.5335395336, 0.0071243271, 0.5455346704, 0.9115056396, 0.9893547297, 0.7544761896, 0.2811110914, -0.2811110616, -0.7544761300, -0.9893547893, -0.9115058184, -0.5455347300, -0.0071243360, 0.5335394740, 0.9055528641, 0.9913280606, 0.7637499571, 0.2947550416, -0.2674102187, -0.7450480461, -0.9871815443, -0.9172729254, -0.5574195385, -0.0213702563, 0.5214350224, 0.8994171023, 0.9930999279, 0.7728688121, 0.3083395064, -0.2536545396, -0.7354696393, -0.9848083258, -0.9228534102, -0.5691913962, -0.0356118269, 0.5092251301, 0.8930990696, 0.9946693182, 0.7818312645, 0.3218611479, -0.2398476005, -0.7257423997, -0.9822336435, -0.9282468557, -0.5808480382, -0.0498461574, 0.4969109893, 0.8865988255, 0.9960370660, 0.7906352878, 0.3353171647, -0.2259920537, -0.7158669233, -0.9794601798, -0.9334528446, -0.5923860073, -0.0640704185, 0.4844973981, 0.8799184561, 0.9972034097, 0.7992777824, 0.3487054706, -0.2120907009, -0.7058460712, -0.9764884710, -0.9384683371, -0.6038040519, -0.0782817602, 0.4719847441, 0.8730604053, 0.9981668591, 0.8077582717, 0.3620231450, -0.1981461048, -0.6956824064, -0.9733185172, -0.9432930350, -0.6150999665, -0.0924770758, 0.4593766034, 0.8660254478, 0.9989267588, 0.8160752654, 0.3752669394, -0.1841612905, -0.6853778362, -0.9699498415, -0.9479271770, -0.6262705922, -0.1066536680, 0.4466755092, 0.8588126898, 0.9994850755, 0.8242270947, 0.3884345293, -0.1701392829, -0.6749332547, -0.9663849473, -0.9523689747, -0.6373137832, -0.1208086461, 0.4338833392, 0.8514270186, 0.9998407364, 0.8322101235, 0.4015234113, -0.1560827047, -0.6643519402, -0.9626243114, -0.9566165209, -0.6482281089, -0.1349392384, 0.4210029840, 0.8438686728, 0.9999924898, 0.8400248289, 0.4145311415, -0.1419942230, -0.6536360979, -0.9586681724, -0.9606701136, -0.6590112448, -0.1490422487, 0.4080374539, 0.8361393213, 0.9999414682, 0.8476695418, 0.4274540544, -0.1278771460, -0.6427878737, -0.9545164704, -0.9645291567, -0.6696599126, -0.1631150395, 0.3949892521, 0.8282392621, 0.9996878505, 0.8551419377, 0.4402903020, -0.1137341335, -0.6318082809, -0.9501716495, -0.9681928158, -0.6801723838, -0.1771547794, 0.3818605244, 0.8201714754, 0.9992322922, 0.8624399900, 0.4530374110, -0.0995678976, -0.6207006574, -0.9456347227, -0.9716585875, -0.6905473471, -0.1911586523, 0.3686541021, 0.8119376898, 0.9985722303, 0.8695644140, 0.4656929076, -0.0853815153, -0.6094675064, -0.9409047961, -0.9749274254, -0.7007825971, -0.2051234692, 0.3553732932, 0.8035387993, 0.9977098703, 0.8765121698, 0.4782530367, -0.0711778477, -0.5981107950, -0.9359838367, -0.9779993892, -0.7108746171, -0.2190468609, 0.3420203328, 0.7949761748, 0.9966455698, 0.8832812309, 0.4907163680, -0.0569597930, -0.5866316557, -0.9308732748, -0.9808722138, -0.7208223343, -0.2329258472, 0.3285974562, 0.7862527370, 0.9953792691, 0.8898710608, 0.5030815601, -0.0427301042, -0.5750343204, -0.9255746603, -0.9835451841, -0.7306244373, -0.2467574477, 0.3151081502, 0.7773701549, 0.9939094782, 0.8962805271, 0.5153434873, -0.0284917429, -0.5633200407, -0.9200863838, -0.9860193729, -0.7402784824, -0.2605388165, 0.3015549481, 0.7683291435, 0.9922385812, 0.9025087953, 0.5275003314, -0.0142476447, -0.5514912605, -0.9144119620, -0.9882938862, -0.7497810125, -0.2742673755, 0.2879406214, 0.7591317892, 0.9903667569, 0.9085524678, 0.5395504832, -0.0000006602, -0.5395504832, -0.9085523486, -0.9903667569, -0.7591318488, -0.2879406512, 0.2742674351, 0.7497810125, 0.9882937074, 0.9144119024, 0.5514913201, 0.0142476438, -0.5275003314, -0.9025086164, -0.9922385812, -0.7683289647, -0.3015550077, 0.2605388463, 0.7402783036, 0.9860194325, 0.9200864434, 0.5633200407, 0.0284917336, -0.5153436661, -0.8962804675, -0.9939094186, -0.7773701549, -0.3151081502, 0.2467573881, 0.7306244373, 0.9835452437, 0.9255746603, 0.5750340819, 0.0427300856, -0.5030815005, -0.8898708820, -0.9953794479, -0.7862526774, -0.3285975158, 0.2329258770, 0.7208225131, 0.9808723927, 0.9308733344, 0.5866318345, 0.0569597743, -0.4907162786, -0.8832812905, -0.9966455698, -0.7949762344, -0.3420203924, 0.2190468162, 0.7108746171, 0.9779995084, 0.9359837770, 0.5981106162, 0.0711778700, -0.4782529771, -0.8765124083, -0.9977096319, -0.8035389781, -0.3553732336, 0.2051235437, 0.7007827163, 0.9749274254, 0.9409048557, 0.6094674468, 0.0853815153, -0.4656928778, -0.8695644140, -0.9985722303, -0.8119377494, -0.3686540723, 0.1911586821, 0.6905473471, 0.9716584682, 0.9456348419, 0.6207008362, 0.0995679498, -0.4530374408, -0.8624400496, -0.9992322922, -0.8201713562, -0.3818604946, 0.1771547943, 0.6801723838, 0.9681926966, 0.9501719475, 0.6318081021, 0.1137341633, -0.4402903318, -0.8551420569, -0.9996879697, -0.8282391429, -0.3949893117, 0.1631149948, 0.6696598530, 0.9645291567, 0.9545165300, 0.6427880526, 0.1278771460, -0.4274540544, -0.8476694226, -0.9999412894, -0.8361392021, -0.4080375433, 0.1490421891, 0.6590111852, 0.9606699944, 0.9586679339, 0.6536361575, 0.1419942230, -0.4145311415, -0.8400247097, -0.9999927878, -0.8438686728, -0.4210029542, 0.1349392533, 0.6482280493, 0.9566165209, 0.9626244903, 0.6643518806, 0.1560826600, -0.4015235007, -0.8322100639, -0.9998408556, -0.8514268398, -0.4338833988, 0.1208086982, 0.6373137832, 0.9523692727, 0.9663848877, 0.6749334335, 0.1701392531, -0.3884345293, -0.8242269158, -0.9994850755, -0.8588125110, -0.4466754198, 0.1066536754, 0.6262705922, 0.9479271770, 0.9699497819, 0.6853777170, 0.1841612905, -0.3752669394, -0.8160753846, -0.9989270568, -0.8660246134, -0.4593765140, 0.0924770907, 0.6151000261, 0.9432930946, 0.9733183980, 0.6956822872, 0.1981460601, -0.3620231450, -0.8077580929, -0.9981670380, -0.8730603456, -0.4719847739, 0.0782817379, 0.6038040519, 0.9384682178, 0.9764884114, 0.7058458924, 0.2120907456, -0.3487055004, -0.7992776036, -0.9972034693, -0.8799184561, -0.4844973981, 0.0640704334, 0.5923860073, 0.9334529042, 0.9794601202, 0.7158668637, 0.2259920686, -0.3353171647, -0.7906354070, -0.9960369468, -0.8865987062, -0.4969110787, 0.0498461574, 0.5808479786, 0.9282470345, 0.9822334647, 0.7257422209, 0.2398475409, -0.3218612373, -0.7818312049, -0.9946690798, -0.8930990100, -0.5092251897, 0.0356118232, 0.5691913962, 0.9228532910, 0.9848083854, 0.7354695201, 0.2536545694, -0.3083394766, -0.7728687525, -0.9930998087, -0.8994169831, -0.5214350224, 0.0213702396, 0.5574195385, 0.9172728062, 0.9871815443, 0.7450481057, 0.2674101591, -0.2947550714, -0.7637500763, -0.9913280606, -0.9055531025, -0.5335395336, 0.0071243271, 0.5455346704, 0.9115056396, 0.9893547297, 0.7544761896, 0.2811110914, -0.2811110616, -0.7544761300, -0.9893547893, -0.9115058184, -0.5455347300, -0.0071243360, 0.5335394740, 0.9055528641, 0.9913280606, 0.7637499571, 0.2947550416, -0.2674102187, -0.7450480461, -0.9871815443, -0.9172729254, -0.5574195385, -0.0213702563, 0.5214350224, 0.8994171023, 0.9930999279, 0.7728688121, 0.3083395064, -0.2536545396, -0.7354696393, -0.9848083258, -0.9228534102, -0.5691913962, -0.0356118269, 0.5092251301, 0.8930990696, 0.9946693182, 0.7818312645, 0.3218611479, -0.2398476005, -0.7257423997, -0.9822336435, -0.9282468557, -0.5808480382, -0.0498461574, 0.4969109893, 0.8865988255, 0.9960370660, 0.7906352878, 0.3353171647, -0.2259920537, -0.7158669233, -0.9794601798, -0.9334528446, -0.5923860073, -0.0640704185, 0.4844973981, 0.8799184561, 0.9972034097, 0.7992777824, 0.3487054706, -0.2120907009, -0.7058460712, -0.9764884710, -0.9384683371, -0.6038040519, -0.0782817602, 0.4719847441, 0.8730604053, 0.9981668591, 0.8077582717, 0.3620231450, -0.1981461048, -0.6956824064, -0.9733185172, -0.9432930350, -0.6150999665, -0.0924770758, 0.4593766034, 0.8660254478, 0.9989267588, 0.8160752654, 0.3752669394, -0.1841612905, -0.6853778362, -0.9699498415, -0.9479271770, -0.6262705922, -0.1066536680, 0.4466755092, 0.8588126898, 0.9994850755, 0.8242270947, 0.3884345293, -0.1701392829, -0.6749332547, -0.9663849473, -0.9523689747, -0.6373137832, -0.1208086461, 0.4338833392, 0.8514270186, 0.9998407364, 0.8322101235, 0.4015234113, -0.1560827047, -0.6643519402, -0.9626243114, -0.9566165209, -0.6482281089, -0.1349392384, 0.4210029840, 0.8438686728, 0.9999924898, 0.8400248289, 0.4145311415, -0.1419942230, -0.6536360979, -0.9586681724, -0.9606701136, -0.6590112448, -0.1490422487, 0.4080374539, 0.8361393213, 0.9999414682, 0.8476695418, 0.4274540544, -0.1278771460, -0.6427878737, -0.9545164704, -0.9645291567, -0.6696599126, -0.1631150395, 0.3949892521, 0.8282392621, 0.9996878505, 0.8551419377, 0.4402903020, -0.1137341335, -0.6318082809, -0.9501716495, -0.9681928158, -0.6801723838, -0.1771547794, 0.3818605244, 0.8201714754, 0.9992322922, 0.8624399900, 0.4530374110, -0.0995678976, -0.6207006574, -0.9456347227, -0.9716585875, -0.6905473471, -0.1911586523, 0.3686541021, 0.8119376898, 0.9985722303, 0.8695644140, 0.4656929076, -0.0853815153, -0.6094675064, -0.9409047961, -0.9749274254, -0.7007825971, -0.2051234692, 0.3553732932, 0.8035387993, 0.9977098703, 0.8765121698, 0.4782530367, -0.0711778477, -0.5981107950, -0.9359838367, -0.9779993892, -0.7108746171, -0.2190468609, 0.3420203328, 0.7949761748, 0.9966455698, 0.8832812309, 0.4907163680, -0.0569597930, -0.5866316557, -0.9308732748, -0.9808722138, -0.7208223343, -0.2329258472, 0.3285974562, 0.7862527370, 0.9953792691, 0.8898710608, 0.5030815601, -0.0427301042, -0.5750343204, -0.9255746603, -0.9835451841, -0.7306244373, -0.2467574477, 0.3151081502, 0.7773701549, 0.9939094782, 0.8962805271, 0.5153434873, -0.0284917429, -0.5633200407, -0.9200863838, -0.9860193729, -0.7402784824, -0.2605388165, 0.3015549481, 0.7683291435, 0.9922385812, 0.9025087953, 0.5275003314, -0.0142476447, -0.5514912605, -0.9144119620, -0.9882938862, -0.7497810125, -0.2742673755, 0.2879406214, 0.7591317892, 0.9903667569, 0.9085524678, 0.5395504832, -0.0000006602, -0.5395504832, -0.9085523486, -0.9903667569, -0.7591318488, -0.2879406512, 0.2742674351, 0.7497810125, 0.9882937074, 0.9144119024, 0.5514913201, 0.0142476438, -0.5275003314, -0.9025086164, -0.9922385812, -0.7683289647, -0.3015550077, 0.2605388463, 0.7402783036, 0.9860194325, 0.9200864434, 0.5633200407, 0.0284917336, -0.5153436661, -0.8962804675, -0.9939094186, -0.7773701549, -0.3151081502, 0.2467573881, 0.7306244373, 0.9835452437, 0.9255746603, 0.5750340819, 0.0427300856, -0.5030815005, -0.8898708820, -0.9953794479, -0.7862526774, -0.3285975158, 0.2329258770, 0.7208225131, 0.9808723927, 0.9308733344, 0.5866318345, 0.0569597743, -0.4907162786, -0.8832812905, -0.9966455698, -0.7949762344, -0.3420203924, 0.2190468162, 0.7108746171, 0.9779995084, 0.9359837770, 0.5981106162, 0.0711778700, -0.4782529771, -0.8765124083, -0.9977096319, -0.8035389781, -0.3553732336, 0.2051235437, 0.7007827163, 0.9749274254, 0.9409048557, 0.6094674468, 0.0853815153, -0.4656928778, -0.8695644140, -0.9985722303, -0.8119377494, -0.3686540723, 0.1911586821, 0.6905473471, 0.9716584682, 0.9456348419, 0.6207008362, 0.0995679498, -0.4530374408, -0.8624400496, -0.9992322922, -0.8201713562, -0.3818604946, 0.1771547943, 0.6801723838, 0.9681926966, 0.9501719475, 0.6318081021, 0.1137341633, -0.4402903318, -0.8551420569, -0.9996879697, -0.8282391429, -0.3949893117, 0.1631149948, 0.6696598530, 0.9645291567, 0.9545165300, 0.6427880526, 0.1278771460, -0.4274540544, -0.8476694226, -0.9999412894, -0.8361392021, -0.4080375433, 0.1490421891, 0.6590111852, 0.9606699944, 0.9586679339, 0.6536361575, 0.1419942230, -0.4145311415, -0.8400247097, -0.9999927878, -0.8438686728, -0.4210029542, 0.1349392533, 0.6482280493, 0.9566165209, 0.9626244903, 0.6643518806, 0.1560826600, -0.4015235007, -0.8322100639, -0.9998408556, -0.8514268398, -0.4338833988, 0.1208086982, 0.6373137832, 0.9523692727, 0.9663848877, 0.6749334335, 0.1701392531, -0.3884345293, -0.8242269158, -0.9994850755, -0.8588125110, -0.4466754198, 0.1066536754, 0.6262705922, 0.9479271770, 0.9699497819, 0.6853777170, 0.1841612905, -0.3752669394, -0.8160753846, -0.9989270568, -0.8660246134, -0.4593765140, 0.0924770907, 0.6151000261, 0.9432930946, 0.9733183980, 0.6956822872, 0.1981460601, -0.3620231450, -0.8077580929, -0.9981670380, -0.8730603456, -0.4719847739, 0.0782817379, 0.6038040519, 0.9384682178, 0.9764884114, 0.7058458924, 0.2120907456, -0.3487055004, -0.7992776036, -0.9972034693, -0.8799184561, -0.4844973981, 0.0640704334, 0.5923860073, 0.9334529042, 0.9794601202, 0.7158668637, 0.2259920686, -0.3353171647, -0.7906354070, -0.9960369468, -0.8865987062, -0.4969110787, 0.0498461574, 0.5808479786, 0.9282470345, 0.9822334647, 0.7257422209, 0.2398475409, -0.3218612373, -0.7818312049, -0.9946690798, -0.8930990100, -0.5092251897, 0.0356118232, 0.5691913962, 0.9228532910, 0.9848083854, 0.7354695201, 0.2536545694, -0.3083394766, -0.7728687525, -0.9930998087, -0.8994169831, -0.5214350224, 0.0213702396, 0.5574195385, 0.9172728062, 0.9871815443, 0.7450481057, 0.2674101591, -0.2947550714, -0.7637500763, -0.9913280606, -0.9055531025, -0.5335395336, 0.0071243271, 0.5455346704, 0.9115056396, 0.9893547297, 0.7544761896, 0.2811110914, -0.2811110616, -0.7544761300, -0.9893547893, -0.9115058184, -0.5455347300, -0.0071243360, 0.5335394740, 0.9055528641, 0.9913280606, 0.7637499571, 0.2947550416, -0.2674102187, -0.7450480461, -0.9871815443, -0.9172729254, -0.5574195385, -0.0213702563, 0.5214350224, 0.8994171023, 0.9930999279, 0.7728688121, 0.3083395064, -0.2536545396, -0.7354696393, -0.9848083258, -0.9228534102, -0.5691913962, -0.0356118269, 0.5092251301, 0.8930990696, 0.9946693182, 0.7818312645, 0.3218611479, -0.2398476005, -0.7257423997, -0.9822336435, -0.9282468557, -0.5808480382, -0.0498461574, 0.4969109893, 0.8865988255, 0.9960370660, 0.7906352878, 0.3353171647, -0.2259920537, -0.7158669233, -0.9794601798, -0.9334528446, -0.5923860073, -0.0640704185, 0.4844973981, 0.8799184561, 0.9972034097, 0.7992777824, 0.3487054706, -0.2120907009, -0.7058460712, -0.9764884710, -0.9384683371, -0.6038040519, -0.0782817602, 0.4719847441, 0.8730604053, 0.9981668591, 0.8077582717, 0.3620231450, -0.1981461048, -0.6956824064, -0.9733185172, -0.9432930350, -0.6150999665, -0.0924770758, 0.4593766034, 0.8660254478, 0.9989267588, 0.8160752654, 0.3752669394, -0.1841613203, -0.6853778362, -0.9699498415, -0.9479271770, -0.6262705922, -0.1066536680, 0.4466755092, 0.8588126898, 0.9994850755, 0.8242270947, 0.3884345293, -0.1701392829, -0.6749332547, -0.9663849473, -0.9523689747, -0.6373137832, -0.1208086461, 0.4338833392, 0.8514270186, 0.9998407364, 0.8322101235, 0.4015234113, -0.1560827047, -0.6643519402, -0.9626243114, -0.9566165209, -0.6482281089, -0.1349392384, 0.4210029840, 0.8438686728, 0.9999924898, 0.8400248289, 0.4145311415, -0.1419942230, -0.6536360979, -0.9586681724, -0.9606701136, -0.6590112448, -0.1490422487, 0.4080374539, 0.8361393213, 0.9999414682, 0.8476695418, 0.4274540544, -0.1278771460, -0.6427878737, -0.9545164704, -0.9645291567, -0.6696599126, -0.1631150395, 0.3949892521, 0.8282392621, 0.9996878505, 0.8551419377, 0.4402903020, -0.1137341335, -0.6318082809, -0.9501716495, -0.9681928158, -0.6801723838, -0.1771547794, 0.3818605244, 0.8201714754, 0.9992322922, 0.8624399900, 0.4530374110, -0.0995678976, -0.6207006574, -0.9456347227, -0.9716585875, -0.6905473471, -0.1911586523, 0.3686541021, 0.8119376898, 0.9985722303, 0.8695644140, 0.4656929076, -0.0853815153, -0.6094675064, -0.9409047961, -0.9749274254, -0.7007825971, -0.2051234692, 0.3553732932, 0.8035387993, 0.9977098703, 0.8765121698, 0.4782530367, -0.0711778477, -0.5981107950, -0.9359838367, -0.9779993892, -0.7108746171, -0.2190468609, 0.3420203328, 0.7949761748, 0.9966455698, 0.8832812309, 0.4907163680, -0.0569597930, -0.5866316557, -0.9308732748, -0.9808722138, -0.7208223343, -0.2329258472, 0.3285974562, 0.7862527370, 0.9953792691, 0.8898710608, 0.5030815601, -0.0427301042, -0.5750343204, -0.9255746603, -0.9835451841, -0.7306244373, -0.2467574477, 0.3151081502, 0.7773701549, 0.9939094782, 0.8962805271, 0.5153434873, -0.0284917429, -0.5633200407, -0.9200863838, -0.9860193729, -0.7402784824, -0.2605388165, 0.3015549481, 0.7683291435, 0.9922385812, 0.9025087953, 0.5275003314, -0.0142476447, -0.5514912605, -0.9144119620, -0.9882938862, -0.7497810125, -0.2742673755, 0.2879406214, 0.7591317892, 0.9903667569, 0.9085524678, 0.5395504832, -0.0000006602, -0.5395504832, -0.9085523486, -0.9903667569, -0.7591318488, -0.2879406512, 0.2742674351, 0.7497810125, 0.9882937074, 0.9144119024, 0.5514913201, 0.0142476438, -0.5275003314, -0.9025086164, -0.9922385812, -0.7683289647, -0.3015550077, 0.2605388463, 0.7402783036, 0.9860194325, 0.9200864434, 0.5633200407, 0.0284917336, -0.5153436661, -0.8962804675, -0.9939094186, -0.7773701549, -0.3151081502, 0.2467573881, 0.7306244373, 0.9835452437, 0.9255746603, 0.5750340819, 0.0427300856, -0.5030815005, -0.8898708820, -0.9953794479, -0.7862526774, -0.3285975158, 0.2329258770, 0.7208225131, 0.9808723927, 0.9308733344, 0.5866318345, 0.0569597743, -0.4907162786, -0.8832812905, -0.9966455698, -0.7949762344, -0.3420203924, 0.2190468162, 0.7108746171, 0.9779995084, 0.9359837770, 0.5981106162, 0.0711778700, -0.4782529771, -0.8765124083, -0.9977096319, -0.8035389781, -0.3553732336, 0.2051235437, 0.7007827163, 0.9749274254, 0.9409048557, 0.6094674468, 0.0853815153, -0.4656928778, -0.8695644140, -0.9985722303, -0.8119377494, -0.3686540723, 0.1911586821, 0.6905473471, 0.9716584682, 0.9456348419, 0.6207008362, 0.0995679498, -0.4530374408, -0.8624400496, -0.9992322922, -0.8201713562, -0.3818604946, 0.1771547943, 0.6801723838, 0.9681926966, 0.9501719475, 0.6318081021, 0.1137341633, -0.4402903318, -0.8551420569, -0.9996879697, -0.8282391429, -0.3949893117, 0.1631149948, 0.6696598530, 0.9645291567, 0.9545165300, 0.6427880526, 0.1278771460, -0.4274540544, -0.8476694226, -0.9999412894, -0.8361392021, -0.4080375433, 0.1490421891, 0.6590111852, 0.9606699944, 0.9586679339, 0.6536361575, 0.1419942230, -0.4145311415, -0.8400247097, -0.9999927878, -0.8438686728, -0.4210029542, 0.1349392533, 0.6482280493, 0.9566165209, 0.9626244903, 0.6643518806, 0.1560826600, -0.4015235007, -0.8322100639, -0.9998408556, -0.8514268398, -0.4338833988, 0.1208086982, 0.6373137832, 0.9523692727, 0.9663848877, 0.6749334335, 0.1701392531, -0.3884345293, -0.8242269158, -0.9994850755, -0.8588125110, -0.4466754198, 0.1066536754, 0.6262705922, 0.9479271770, 0.9699497819, 0.6853777170, 0.1841612905, -0.3752669394, -0.8160753846, -0.9989270568, -0.8660246134, -0.4593765140, 0.0924770907, 0.6151000261, 0.9432930946, 0.9733183980, 0.6956822872, 0.1981460601, -0.3620231450, -0.8077580929, -0.9981670380, -0.8730603456, -0.4719847739, 0.0782817379, 0.6038040519, 0.9384682178, 0.9764884114, 0.7058458924, 0.2120907456, -0.3487055004, -0.7992776036, -0.9972034693, -0.8799184561, -0.4844973981, 0.0640704334, 0.5923860073, 0.9334529042, 0.9794601202, 0.7158668637, 0.2259920686, -0.3353171647, -0.7906354070, -0.9960369468, -0.8865987062, -0.4969110787, 0.0498461574, 0.5808479786, 0.9282470345, 0.9822334647, 0.7257422209, 0.2398475409, -0.3218612373, -0.7818312049, -0.9946690798, -0.8930990100, -0.5092251897, 0.0356118232, 0.5691913962, 0.9228532910, 0.9848083854, 0.7354695201, 0.2536545694, -0.3083394766, -0.7728687525, -0.9930998087, -0.8994169831, -0.5214350224, 0.0213702396, 0.5574195385, 0.9172728062, 0.9871815443, 0.7450481057, 0.2674101591, -0.2947550714, -0.7637500763, -0.9913280606, -0.9055531025, -0.5335395336, 0.0071243271, 0.5455346704, 0.9115056396, 0.9893547297, 0.7544761896, 0.2811110914, -0.2811110616, -0.7544761300, -0.9893547893, -0.9115058184, -0.5455347300, -0.0071243360, 0.5335394740, 0.9055528641, 0.9913280606, 0.7637499571, 0.2947550416, -0.2674102187, -0.7450480461, -0.9871815443, -0.9172729254, -0.5574195385, -0.0213702563, 0.5214350224, 0.8994171023, 0.9930999279, 0.7728688121, 0.3083395064, -0.2536545396, -0.7354696393, -0.9848083258, -0.9228534102, -0.5691913962, -0.0356118269, 0.5092251301, 0.8930990696, 0.9946693182, 0.7818312645, 0.3218611479, -0.2398476005, -0.7257423997, -0.9822336435, -0.9282468557, -0.5808480382, -0.0498461574, 0.4969109893, 0.8865988255, 0.9960370660, 0.7906352878, 0.3353171647, -0.2259920537, -0.7158669233, -0.9794601798, -0.9334528446, -0.5923860073, -0.0640704185, 0.4844973981, 0.8799184561, 0.9972034097, 0.7992777824, 0.3487054706, -0.2120907009, -0.7058460712, -0.9764884710, -0.9384683371, -0.6038040519, -0.0782817602, 0.4719847441, 0.8730604053, 0.9981668591, 0.8077582717, 0.3620231450, -0.1981461048, -0.6956824064, -0.9733185172, -0.9432930350, -0.6150999665, -0.0924770758, 0.4593766034 ]) # we know that f=4000Hz (compare teensy example 'example_resampler') # -> we use 200 periods to minimize the fft leakage effect frequ=4000 samplesPerPeriod=44100/frequ; yTeensy=yTeensy[100:100+int(round(samplesPerPeriod*200))] plt.plot(yTeensy) plt.figure() fs=44100 f=np.linspace(0, fs, len(yTeensy), False) plt.plot(f, 20 * np.log10(np.abs(fft(yTeensy))/len(yTeensy)), '-b')
14.554295
68
0.758203
7,446
53,880
5.486301
0.071582
0.004578
0.004994
0.004847
0.970747
0.970747
0.970747
0.970747
0.970747
0.970747
0
0.807345
0.069581
53,880
3,702
69
14.554295
0.00754
0.003693
0
0.976959
0
0
0.000093
0
0
0
0
0
0
1
0
false
0
0.000813
0
0.000813
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
1
0
0
0
0
0
1
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
8fa7ca41b0c25d3f75de712f19b857e54402392e
184,214
py
Python
line/f_ChannelService.py
winbotscript/LineService
4c79029648e858e567378485e75276f865c1f73f
[ "Apache-2.0" ]
1
2020-08-20T08:00:23.000Z
2020-08-20T08:00:23.000Z
line/f_ChannelService.py
winbotscript/LineService
4c79029648e858e567378485e75276f865c1f73f
[ "Apache-2.0" ]
null
null
null
line/f_ChannelService.py
winbotscript/LineService
4c79029648e858e567378485e75276f865c1f73f
[ "Apache-2.0" ]
null
null
null
# # Autogenerated by Frugal Compiler (3.4.3) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # from threading import Lock from frugal.middleware import Method from frugal.exceptions import TApplicationExceptionType from frugal.exceptions import TTransportExceptionType from frugal.processor import FBaseProcessor from frugal.processor import FProcessorFunction from frugal.util.deprecate import deprecated from frugal.util import make_hashable from thrift.Thrift import TApplicationException from thrift.Thrift import TMessageType from thrift.transport.TTransport import TTransportException from .ttypes import * class Iface(object): def issueOTP(self, ctx, channelId): """ Args: ctx: FContext channelId: string """ pass def approveChannelAndIssueChannelToken(self, ctx, channelId): """ Args: ctx: FContext channelId: string """ pass def approveChannelAndIssueRequestToken(self, ctx, channelId, otpId): """ Args: ctx: FContext channelId: string otpId: string """ pass def fetchNotificationItems(self, ctx, localRev): """ Args: ctx: FContext localRev: int (signed 64 bits) """ pass def getApprovedChannels(self, ctx, lastSynced, locale): """ Args: ctx: FContext lastSynced: int (signed 64 bits) locale: string """ pass def getChannelInfo(self, ctx, channelId, locale): """ Args: ctx: FContext channelId: string locale: string """ pass def getChannelNotificationSetting(self, ctx, channelId, locale): """ Args: ctx: FContext channelId: string locale: string """ pass def getChannelNotificationSettings(self, ctx, locale): """ Args: ctx: FContext locale: string """ pass def getChannels(self, ctx, lastSynced, locale): """ Args: ctx: FContext lastSynced: int (signed 64 bits) locale: string """ pass def getDomains(self, ctx, lastSynced): """ Args: ctx: FContext lastSynced: int (signed 64 bits) """ pass def getFriendChannelMatrices(self, ctx, channelIds): """ Args: ctx: FContext channelIds: list of string """ pass def updateChannelSettings(self, ctx, channelSettings): """ Args: ctx: FContext channelSettings: ChannelSettings """ pass def getCommonDomains(self, ctx, lastSynced): """ Args: ctx: FContext lastSynced: int (signed 64 bits) """ pass def getNotificationBadgeCount(self, ctx, localRev): """ Args: ctx: FContext localRev: int (signed 64 bits) """ pass def issueChannelToken(self, ctx, channelId): """ Args: ctx: FContext channelId: string """ pass def issueRequestToken(self, ctx, channelId, otpId): """ Args: ctx: FContext channelId: string otpId: string """ pass def issueRequestTokenWithAuthScheme(self, ctx, channelId, otpId, authScheme, returnUrl): """ Args: ctx: FContext channelId: string otpId: string authScheme: list of string returnUrl: string """ pass def issueRequestTokenForAutoLogin(self, ctx, channelId, otpId, redirectUrl): """ Args: ctx: FContext channelId: string otpId: string redirectUrl: string """ pass def getUpdatedChannelIds(self, ctx, channelIds): """ Args: ctx: FContext channelIds: list of ChannelIdWithLastUpdated """ pass def reserveCoinUse(self, ctx, request, locale): """ Args: ctx: FContext request: CoinUseReservation locale: string """ pass def revokeChannel(self, ctx, channelId): """ Args: ctx: FContext channelId: string """ pass def syncChannelData(self, ctx, lastSynced, locale): """ Args: ctx: FContext lastSynced: int (signed 64 bits) locale: string """ pass def updateChannelNotificationSetting(self, ctx, setting): """ Args: ctx: FContext setting: list of ChannelNotificationSetting """ pass class Client(Iface): def __init__(self, provider, middleware=None): """ Create a new Client with an FServiceProvider containing a transport and protocol factory. Args: provider: FServiceProvider with TSynchronousTransport middleware: ServiceMiddleware or list of ServiceMiddleware """ middleware = middleware or [] if middleware and not isinstance(middleware, list): middleware = [middleware] self._transport = provider.get_transport() self._protocol_factory = provider.get_protocol_factory() self._oprot = self._protocol_factory.get_protocol(self._transport) self._iprot = self._protocol_factory.get_protocol(self._transport) self._write_lock = Lock() middleware += provider.get_middleware() self._methods = { 'issueOTP': Method(self._issueOTP, middleware), 'approveChannelAndIssueChannelToken': Method(self._approveChannelAndIssueChannelToken, middleware), 'approveChannelAndIssueRequestToken': Method(self._approveChannelAndIssueRequestToken, middleware), 'fetchNotificationItems': Method(self._fetchNotificationItems, middleware), 'getApprovedChannels': Method(self._getApprovedChannels, middleware), 'getChannelInfo': Method(self._getChannelInfo, middleware), 'getChannelNotificationSetting': Method(self._getChannelNotificationSetting, middleware), 'getChannelNotificationSettings': Method(self._getChannelNotificationSettings, middleware), 'getChannels': Method(self._getChannels, middleware), 'getDomains': Method(self._getDomains, middleware), 'getFriendChannelMatrices': Method(self._getFriendChannelMatrices, middleware), 'updateChannelSettings': Method(self._updateChannelSettings, middleware), 'getCommonDomains': Method(self._getCommonDomains, middleware), 'getNotificationBadgeCount': Method(self._getNotificationBadgeCount, middleware), 'issueChannelToken': Method(self._issueChannelToken, middleware), 'issueRequestToken': Method(self._issueRequestToken, middleware), 'issueRequestTokenWithAuthScheme': Method(self._issueRequestTokenWithAuthScheme, middleware), 'issueRequestTokenForAutoLogin': Method(self._issueRequestTokenForAutoLogin, middleware), 'getUpdatedChannelIds': Method(self._getUpdatedChannelIds, middleware), 'reserveCoinUse': Method(self._reserveCoinUse, middleware), 'revokeChannel': Method(self._revokeChannel, middleware), 'syncChannelData': Method(self._syncChannelData, middleware), 'updateChannelNotificationSetting': Method(self._updateChannelNotificationSetting, middleware), } def issueOTP(self, ctx, channelId): """ Args: ctx: FContext channelId: string """ return self._methods['issueOTP']([ctx, channelId]) def _issueOTP(self, ctx, channelId): self._send_issueOTP(ctx, channelId) return self._recv_issueOTP(ctx) def _send_issueOTP(self, ctx, channelId): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('issueOTP', TMessageType.CALL, 0) args = issueOTP_args() args.channelId = channelId args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_issueOTP(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = issueOTP_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "issueOTP failed: unknown result") raise x def approveChannelAndIssueChannelToken(self, ctx, channelId): """ Args: ctx: FContext channelId: string """ return self._methods['approveChannelAndIssueChannelToken']([ctx, channelId]) def _approveChannelAndIssueChannelToken(self, ctx, channelId): self._send_approveChannelAndIssueChannelToken(ctx, channelId) return self._recv_approveChannelAndIssueChannelToken(ctx) def _send_approveChannelAndIssueChannelToken(self, ctx, channelId): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('approveChannelAndIssueChannelToken', TMessageType.CALL, 0) args = approveChannelAndIssueChannelToken_args() args.channelId = channelId args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_approveChannelAndIssueChannelToken(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = approveChannelAndIssueChannelToken_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "approveChannelAndIssueChannelToken failed: unknown result") raise x def approveChannelAndIssueRequestToken(self, ctx, channelId, otpId): """ Args: ctx: FContext channelId: string otpId: string """ return self._methods['approveChannelAndIssueRequestToken']([ctx, channelId, otpId]) def _approveChannelAndIssueRequestToken(self, ctx, channelId, otpId): self._send_approveChannelAndIssueRequestToken(ctx, channelId, otpId) return self._recv_approveChannelAndIssueRequestToken(ctx) def _send_approveChannelAndIssueRequestToken(self, ctx, channelId, otpId): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('approveChannelAndIssueRequestToken', TMessageType.CALL, 0) args = approveChannelAndIssueRequestToken_args() args.channelId = channelId args.otpId = otpId args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_approveChannelAndIssueRequestToken(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = approveChannelAndIssueRequestToken_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "approveChannelAndIssueRequestToken failed: unknown result") raise x def fetchNotificationItems(self, ctx, localRev): """ Args: ctx: FContext localRev: int (signed 64 bits) """ return self._methods['fetchNotificationItems']([ctx, localRev]) def _fetchNotificationItems(self, ctx, localRev): self._send_fetchNotificationItems(ctx, localRev) return self._recv_fetchNotificationItems(ctx) def _send_fetchNotificationItems(self, ctx, localRev): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('fetchNotificationItems', TMessageType.CALL, 0) args = fetchNotificationItems_args() args.localRev = localRev args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_fetchNotificationItems(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = fetchNotificationItems_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "fetchNotificationItems failed: unknown result") raise x def getApprovedChannels(self, ctx, lastSynced, locale): """ Args: ctx: FContext lastSynced: int (signed 64 bits) locale: string """ return self._methods['getApprovedChannels']([ctx, lastSynced, locale]) def _getApprovedChannels(self, ctx, lastSynced, locale): self._send_getApprovedChannels(ctx, lastSynced, locale) return self._recv_getApprovedChannels(ctx) def _send_getApprovedChannels(self, ctx, lastSynced, locale): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('getApprovedChannels', TMessageType.CALL, 0) args = getApprovedChannels_args() args.lastSynced = lastSynced args.locale = locale args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_getApprovedChannels(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = getApprovedChannels_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getApprovedChannels failed: unknown result") raise x def getChannelInfo(self, ctx, channelId, locale): """ Args: ctx: FContext channelId: string locale: string """ return self._methods['getChannelInfo']([ctx, channelId, locale]) def _getChannelInfo(self, ctx, channelId, locale): self._send_getChannelInfo(ctx, channelId, locale) return self._recv_getChannelInfo(ctx) def _send_getChannelInfo(self, ctx, channelId, locale): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('getChannelInfo', TMessageType.CALL, 0) args = getChannelInfo_args() args.channelId = channelId args.locale = locale args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_getChannelInfo(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = getChannelInfo_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getChannelInfo failed: unknown result") raise x def getChannelNotificationSetting(self, ctx, channelId, locale): """ Args: ctx: FContext channelId: string locale: string """ return self._methods['getChannelNotificationSetting']([ctx, channelId, locale]) def _getChannelNotificationSetting(self, ctx, channelId, locale): self._send_getChannelNotificationSetting(ctx, channelId, locale) return self._recv_getChannelNotificationSetting(ctx) def _send_getChannelNotificationSetting(self, ctx, channelId, locale): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('getChannelNotificationSetting', TMessageType.CALL, 0) args = getChannelNotificationSetting_args() args.channelId = channelId args.locale = locale args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_getChannelNotificationSetting(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = getChannelNotificationSetting_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getChannelNotificationSetting failed: unknown result") raise x def getChannelNotificationSettings(self, ctx, locale): """ Args: ctx: FContext locale: string """ return self._methods['getChannelNotificationSettings']([ctx, locale]) def _getChannelNotificationSettings(self, ctx, locale): self._send_getChannelNotificationSettings(ctx, locale) return self._recv_getChannelNotificationSettings(ctx) def _send_getChannelNotificationSettings(self, ctx, locale): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('getChannelNotificationSettings', TMessageType.CALL, 0) args = getChannelNotificationSettings_args() args.locale = locale args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_getChannelNotificationSettings(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = getChannelNotificationSettings_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getChannelNotificationSettings failed: unknown result") raise x def getChannels(self, ctx, lastSynced, locale): """ Args: ctx: FContext lastSynced: int (signed 64 bits) locale: string """ return self._methods['getChannels']([ctx, lastSynced, locale]) def _getChannels(self, ctx, lastSynced, locale): self._send_getChannels(ctx, lastSynced, locale) return self._recv_getChannels(ctx) def _send_getChannels(self, ctx, lastSynced, locale): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('getChannels', TMessageType.CALL, 0) args = getChannels_args() args.lastSynced = lastSynced args.locale = locale args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_getChannels(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = getChannels_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getChannels failed: unknown result") raise x def getDomains(self, ctx, lastSynced): """ Args: ctx: FContext lastSynced: int (signed 64 bits) """ return self._methods['getDomains']([ctx, lastSynced]) def _getDomains(self, ctx, lastSynced): self._send_getDomains(ctx, lastSynced) return self._recv_getDomains(ctx) def _send_getDomains(self, ctx, lastSynced): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('getDomains', TMessageType.CALL, 0) args = getDomains_args() args.lastSynced = lastSynced args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_getDomains(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = getDomains_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getDomains failed: unknown result") raise x def getFriendChannelMatrices(self, ctx, channelIds): """ Args: ctx: FContext channelIds: list of string """ return self._methods['getFriendChannelMatrices']([ctx, channelIds]) def _getFriendChannelMatrices(self, ctx, channelIds): self._send_getFriendChannelMatrices(ctx, channelIds) return self._recv_getFriendChannelMatrices(ctx) def _send_getFriendChannelMatrices(self, ctx, channelIds): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('getFriendChannelMatrices', TMessageType.CALL, 0) args = getFriendChannelMatrices_args() args.channelIds = channelIds args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_getFriendChannelMatrices(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = getFriendChannelMatrices_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getFriendChannelMatrices failed: unknown result") raise x def updateChannelSettings(self, ctx, channelSettings): """ Args: ctx: FContext channelSettings: ChannelSettings """ return self._methods['updateChannelSettings']([ctx, channelSettings]) def _updateChannelSettings(self, ctx, channelSettings): self._send_updateChannelSettings(ctx, channelSettings) return self._recv_updateChannelSettings(ctx) def _send_updateChannelSettings(self, ctx, channelSettings): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('updateChannelSettings', TMessageType.CALL, 0) args = updateChannelSettings_args() args.channelSettings = channelSettings args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_updateChannelSettings(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = updateChannelSettings_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "updateChannelSettings failed: unknown result") raise x def getCommonDomains(self, ctx, lastSynced): """ Args: ctx: FContext lastSynced: int (signed 64 bits) """ return self._methods['getCommonDomains']([ctx, lastSynced]) def _getCommonDomains(self, ctx, lastSynced): self._send_getCommonDomains(ctx, lastSynced) return self._recv_getCommonDomains(ctx) def _send_getCommonDomains(self, ctx, lastSynced): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('getCommonDomains', TMessageType.CALL, 0) args = getCommonDomains_args() args.lastSynced = lastSynced args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_getCommonDomains(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = getCommonDomains_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getCommonDomains failed: unknown result") raise x def getNotificationBadgeCount(self, ctx, localRev): """ Args: ctx: FContext localRev: int (signed 64 bits) """ return self._methods['getNotificationBadgeCount']([ctx, localRev]) def _getNotificationBadgeCount(self, ctx, localRev): self._send_getNotificationBadgeCount(ctx, localRev) return self._recv_getNotificationBadgeCount(ctx) def _send_getNotificationBadgeCount(self, ctx, localRev): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('getNotificationBadgeCount', TMessageType.CALL, 0) args = getNotificationBadgeCount_args() args.localRev = localRev args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_getNotificationBadgeCount(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = getNotificationBadgeCount_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getNotificationBadgeCount failed: unknown result") raise x def issueChannelToken(self, ctx, channelId): """ Args: ctx: FContext channelId: string """ return self._methods['issueChannelToken']([ctx, channelId]) def _issueChannelToken(self, ctx, channelId): self._send_issueChannelToken(ctx, channelId) return self._recv_issueChannelToken(ctx) def _send_issueChannelToken(self, ctx, channelId): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('issueChannelToken', TMessageType.CALL, 0) args = issueChannelToken_args() args.channelId = channelId args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_issueChannelToken(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = issueChannelToken_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "issueChannelToken failed: unknown result") raise x def issueRequestToken(self, ctx, channelId, otpId): """ Args: ctx: FContext channelId: string otpId: string """ return self._methods['issueRequestToken']([ctx, channelId, otpId]) def _issueRequestToken(self, ctx, channelId, otpId): self._send_issueRequestToken(ctx, channelId, otpId) return self._recv_issueRequestToken(ctx) def _send_issueRequestToken(self, ctx, channelId, otpId): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('issueRequestToken', TMessageType.CALL, 0) args = issueRequestToken_args() args.channelId = channelId args.otpId = otpId args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_issueRequestToken(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = issueRequestToken_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "issueRequestToken failed: unknown result") raise x def issueRequestTokenWithAuthScheme(self, ctx, channelId, otpId, authScheme, returnUrl): """ Args: ctx: FContext channelId: string otpId: string authScheme: list of string returnUrl: string """ return self._methods['issueRequestTokenWithAuthScheme']([ctx, channelId, otpId, authScheme, returnUrl]) def _issueRequestTokenWithAuthScheme(self, ctx, channelId, otpId, authScheme, returnUrl): self._send_issueRequestTokenWithAuthScheme(ctx, channelId, otpId, authScheme, returnUrl) return self._recv_issueRequestTokenWithAuthScheme(ctx) def _send_issueRequestTokenWithAuthScheme(self, ctx, channelId, otpId, authScheme, returnUrl): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('issueRequestTokenWithAuthScheme', TMessageType.CALL, 0) args = issueRequestTokenWithAuthScheme_args() args.channelId = channelId args.otpId = otpId args.authScheme = authScheme args.returnUrl = returnUrl args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_issueRequestTokenWithAuthScheme(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = issueRequestTokenWithAuthScheme_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "issueRequestTokenWithAuthScheme failed: unknown result") raise x def issueRequestTokenForAutoLogin(self, ctx, channelId, otpId, redirectUrl): """ Args: ctx: FContext channelId: string otpId: string redirectUrl: string """ return self._methods['issueRequestTokenForAutoLogin']([ctx, channelId, otpId, redirectUrl]) def _issueRequestTokenForAutoLogin(self, ctx, channelId, otpId, redirectUrl): self._send_issueRequestTokenForAutoLogin(ctx, channelId, otpId, redirectUrl) return self._recv_issueRequestTokenForAutoLogin(ctx) def _send_issueRequestTokenForAutoLogin(self, ctx, channelId, otpId, redirectUrl): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('issueRequestTokenForAutoLogin', TMessageType.CALL, 0) args = issueRequestTokenForAutoLogin_args() args.channelId = channelId args.otpId = otpId args.redirectUrl = redirectUrl args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_issueRequestTokenForAutoLogin(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = issueRequestTokenForAutoLogin_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "issueRequestTokenForAutoLogin failed: unknown result") raise x def getUpdatedChannelIds(self, ctx, channelIds): """ Args: ctx: FContext channelIds: list of ChannelIdWithLastUpdated """ return self._methods['getUpdatedChannelIds']([ctx, channelIds]) def _getUpdatedChannelIds(self, ctx, channelIds): self._send_getUpdatedChannelIds(ctx, channelIds) return self._recv_getUpdatedChannelIds(ctx) def _send_getUpdatedChannelIds(self, ctx, channelIds): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('getUpdatedChannelIds', TMessageType.CALL, 0) args = getUpdatedChannelIds_args() args.channelIds = channelIds args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_getUpdatedChannelIds(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = getUpdatedChannelIds_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getUpdatedChannelIds failed: unknown result") raise x def reserveCoinUse(self, ctx, request, locale): """ Args: ctx: FContext request: CoinUseReservation locale: string """ return self._methods['reserveCoinUse']([ctx, request, locale]) def _reserveCoinUse(self, ctx, request, locale): self._send_reserveCoinUse(ctx, request, locale) return self._recv_reserveCoinUse(ctx) def _send_reserveCoinUse(self, ctx, request, locale): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('reserveCoinUse', TMessageType.CALL, 0) args = reserveCoinUse_args() args.request = request args.locale = locale args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_reserveCoinUse(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = reserveCoinUse_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "reserveCoinUse failed: unknown result") raise x def revokeChannel(self, ctx, channelId): """ Args: ctx: FContext channelId: string """ return self._methods['revokeChannel']([ctx, channelId]) def _revokeChannel(self, ctx, channelId): self._send_revokeChannel(ctx, channelId) self._recv_revokeChannel(ctx) def _send_revokeChannel(self, ctx, channelId): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('revokeChannel', TMessageType.CALL, 0) args = revokeChannel_args() args.channelId = channelId args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_revokeChannel(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = revokeChannel_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e return def syncChannelData(self, ctx, lastSynced, locale): """ Args: ctx: FContext lastSynced: int (signed 64 bits) locale: string """ return self._methods['syncChannelData']([ctx, lastSynced, locale]) def _syncChannelData(self, ctx, lastSynced, locale): self._send_syncChannelData(ctx, lastSynced, locale) return self._recv_syncChannelData(ctx) def _send_syncChannelData(self, ctx, lastSynced, locale): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('syncChannelData', TMessageType.CALL, 0) args = syncChannelData_args() args.lastSynced = lastSynced args.locale = locale args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_syncChannelData(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = syncChannelData_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e if result.success is not None: return result.success x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "syncChannelData failed: unknown result") raise x def updateChannelNotificationSetting(self, ctx, setting): """ Args: ctx: FContext setting: list of ChannelNotificationSetting """ return self._methods['updateChannelNotificationSetting']([ctx, setting]) def _updateChannelNotificationSetting(self, ctx, setting): self._send_updateChannelNotificationSetting(ctx, setting) self._recv_updateChannelNotificationSetting(ctx) def _send_updateChannelNotificationSetting(self, ctx, setting): oprot = self._oprot with self._write_lock: oprot.get_transport().set_timeout(ctx.timeout) oprot.write_request_headers(ctx) oprot.writeMessageBegin('updateChannelNotificationSetting', TMessageType.CALL, 0) args = updateChannelNotificationSetting_args() args.setting = setting args.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() def _recv_updateChannelNotificationSetting(self, ctx): self._iprot.read_response_headers(ctx) _, mtype, _ = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE: raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message) raise x result = updateChannelNotificationSetting_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.e is not None: raise result.e return class Processor(FBaseProcessor): def __init__(self, handler, middleware=None): """ Create a new Processor. Args: handler: Iface """ if middleware and not isinstance(middleware, list): middleware = [middleware] super(Processor, self).__init__() self.add_to_processor_map('issueOTP', _issueOTP(Method(handler.issueOTP, middleware), self.get_write_lock())) self.add_to_processor_map('approveChannelAndIssueChannelToken', _approveChannelAndIssueChannelToken(Method(handler.approveChannelAndIssueChannelToken, middleware), self.get_write_lock())) self.add_to_processor_map('approveChannelAndIssueRequestToken', _approveChannelAndIssueRequestToken(Method(handler.approveChannelAndIssueRequestToken, middleware), self.get_write_lock())) self.add_to_processor_map('fetchNotificationItems', _fetchNotificationItems(Method(handler.fetchNotificationItems, middleware), self.get_write_lock())) self.add_to_processor_map('getApprovedChannels', _getApprovedChannels(Method(handler.getApprovedChannels, middleware), self.get_write_lock())) self.add_to_processor_map('getChannelInfo', _getChannelInfo(Method(handler.getChannelInfo, middleware), self.get_write_lock())) self.add_to_processor_map('getChannelNotificationSetting', _getChannelNotificationSetting(Method(handler.getChannelNotificationSetting, middleware), self.get_write_lock())) self.add_to_processor_map('getChannelNotificationSettings', _getChannelNotificationSettings(Method(handler.getChannelNotificationSettings, middleware), self.get_write_lock())) self.add_to_processor_map('getChannels', _getChannels(Method(handler.getChannels, middleware), self.get_write_lock())) self.add_to_processor_map('getDomains', _getDomains(Method(handler.getDomains, middleware), self.get_write_lock())) self.add_to_processor_map('getFriendChannelMatrices', _getFriendChannelMatrices(Method(handler.getFriendChannelMatrices, middleware), self.get_write_lock())) self.add_to_processor_map('updateChannelSettings', _updateChannelSettings(Method(handler.updateChannelSettings, middleware), self.get_write_lock())) self.add_to_processor_map('getCommonDomains', _getCommonDomains(Method(handler.getCommonDomains, middleware), self.get_write_lock())) self.add_to_processor_map('getNotificationBadgeCount', _getNotificationBadgeCount(Method(handler.getNotificationBadgeCount, middleware), self.get_write_lock())) self.add_to_processor_map('issueChannelToken', _issueChannelToken(Method(handler.issueChannelToken, middleware), self.get_write_lock())) self.add_to_processor_map('issueRequestToken', _issueRequestToken(Method(handler.issueRequestToken, middleware), self.get_write_lock())) self.add_to_processor_map('issueRequestTokenWithAuthScheme', _issueRequestTokenWithAuthScheme(Method(handler.issueRequestTokenWithAuthScheme, middleware), self.get_write_lock())) self.add_to_processor_map('issueRequestTokenForAutoLogin', _issueRequestTokenForAutoLogin(Method(handler.issueRequestTokenForAutoLogin, middleware), self.get_write_lock())) self.add_to_processor_map('getUpdatedChannelIds', _getUpdatedChannelIds(Method(handler.getUpdatedChannelIds, middleware), self.get_write_lock())) self.add_to_processor_map('reserveCoinUse', _reserveCoinUse(Method(handler.reserveCoinUse, middleware), self.get_write_lock())) self.add_to_processor_map('revokeChannel', _revokeChannel(Method(handler.revokeChannel, middleware), self.get_write_lock())) self.add_to_processor_map('syncChannelData', _syncChannelData(Method(handler.syncChannelData, middleware), self.get_write_lock())) self.add_to_processor_map('updateChannelNotificationSetting', _updateChannelNotificationSetting(Method(handler.updateChannelNotificationSetting, middleware), self.get_write_lock())) class _issueOTP(FProcessorFunction): def __init__(self, handler, lock): super(_issueOTP, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = issueOTP_args() args.read(iprot) iprot.readMessageEnd() result = issueOTP_result() try: result.success = self._handler([ctx, args.channelId]) except ChannelException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "issueOTP", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "issueOTP", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('issueOTP', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "issueOTP", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _approveChannelAndIssueChannelToken(FProcessorFunction): def __init__(self, handler, lock): super(_approveChannelAndIssueChannelToken, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = approveChannelAndIssueChannelToken_args() args.read(iprot) iprot.readMessageEnd() result = approveChannelAndIssueChannelToken_result() try: result.success = self._handler([ctx, args.channelId]) except ChannelException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "approveChannelAndIssueChannelToken", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "approveChannelAndIssueChannelToken", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('approveChannelAndIssueChannelToken', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "approveChannelAndIssueChannelToken", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _approveChannelAndIssueRequestToken(FProcessorFunction): def __init__(self, handler, lock): super(_approveChannelAndIssueRequestToken, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = approveChannelAndIssueRequestToken_args() args.read(iprot) iprot.readMessageEnd() result = approveChannelAndIssueRequestToken_result() try: result.success = self._handler([ctx, args.channelId, args.otpId]) except ChannelException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "approveChannelAndIssueRequestToken", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "approveChannelAndIssueRequestToken", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('approveChannelAndIssueRequestToken', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "approveChannelAndIssueRequestToken", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _fetchNotificationItems(FProcessorFunction): def __init__(self, handler, lock): super(_fetchNotificationItems, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = fetchNotificationItems_args() args.read(iprot) iprot.readMessageEnd() result = fetchNotificationItems_result() try: result.success = self._handler([ctx, args.localRev]) except ChannelException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "fetchNotificationItems", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "fetchNotificationItems", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('fetchNotificationItems', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "fetchNotificationItems", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _getApprovedChannels(FProcessorFunction): def __init__(self, handler, lock): super(_getApprovedChannels, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = getApprovedChannels_args() args.read(iprot) iprot.readMessageEnd() result = getApprovedChannels_result() try: result.success = self._handler([ctx, args.lastSynced, args.locale]) except ChannelException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "getApprovedChannels", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "getApprovedChannels", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('getApprovedChannels', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "getApprovedChannels", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _getChannelInfo(FProcessorFunction): def __init__(self, handler, lock): super(_getChannelInfo, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = getChannelInfo_args() args.read(iprot) iprot.readMessageEnd() result = getChannelInfo_result() try: result.success = self._handler([ctx, args.channelId, args.locale]) except ChannelException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "getChannelInfo", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "getChannelInfo", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('getChannelInfo', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "getChannelInfo", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _getChannelNotificationSetting(FProcessorFunction): def __init__(self, handler, lock): super(_getChannelNotificationSetting, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = getChannelNotificationSetting_args() args.read(iprot) iprot.readMessageEnd() result = getChannelNotificationSetting_result() try: result.success = self._handler([ctx, args.channelId, args.locale]) except ChannelException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "getChannelNotificationSetting", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "getChannelNotificationSetting", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('getChannelNotificationSetting', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "getChannelNotificationSetting", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _getChannelNotificationSettings(FProcessorFunction): def __init__(self, handler, lock): super(_getChannelNotificationSettings, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = getChannelNotificationSettings_args() args.read(iprot) iprot.readMessageEnd() result = getChannelNotificationSettings_result() try: result.success = self._handler([ctx, args.locale]) except ChannelException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "getChannelNotificationSettings", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "getChannelNotificationSettings", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('getChannelNotificationSettings', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "getChannelNotificationSettings", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _getChannels(FProcessorFunction): def __init__(self, handler, lock): super(_getChannels, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = getChannels_args() args.read(iprot) iprot.readMessageEnd() result = getChannels_result() try: result.success = self._handler([ctx, args.lastSynced, args.locale]) except ChannelException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "getChannels", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "getChannels", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('getChannels', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "getChannels", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _getDomains(FProcessorFunction): def __init__(self, handler, lock): super(_getDomains, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = getDomains_args() args.read(iprot) iprot.readMessageEnd() result = getDomains_result() try: result.success = self._handler([ctx, args.lastSynced]) except ChannelException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "getDomains", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "getDomains", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('getDomains', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "getDomains", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _getFriendChannelMatrices(FProcessorFunction): def __init__(self, handler, lock): super(_getFriendChannelMatrices, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = getFriendChannelMatrices_args() args.read(iprot) iprot.readMessageEnd() result = getFriendChannelMatrices_result() try: result.success = self._handler([ctx, args.channelIds]) except ChannelException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "getFriendChannelMatrices", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "getFriendChannelMatrices", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('getFriendChannelMatrices', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "getFriendChannelMatrices", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _updateChannelSettings(FProcessorFunction): def __init__(self, handler, lock): super(_updateChannelSettings, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = updateChannelSettings_args() args.read(iprot) iprot.readMessageEnd() result = updateChannelSettings_result() try: result.success = self._handler([ctx, args.channelSettings]) except ChannelException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "updateChannelSettings", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "updateChannelSettings", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('updateChannelSettings', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "updateChannelSettings", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _getCommonDomains(FProcessorFunction): def __init__(self, handler, lock): super(_getCommonDomains, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = getCommonDomains_args() args.read(iprot) iprot.readMessageEnd() result = getCommonDomains_result() try: result.success = self._handler([ctx, args.lastSynced]) except ChannelException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "getCommonDomains", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "getCommonDomains", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('getCommonDomains', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "getCommonDomains", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _getNotificationBadgeCount(FProcessorFunction): def __init__(self, handler, lock): super(_getNotificationBadgeCount, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = getNotificationBadgeCount_args() args.read(iprot) iprot.readMessageEnd() result = getNotificationBadgeCount_result() try: result.success = self._handler([ctx, args.localRev]) except ChannelException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "getNotificationBadgeCount", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "getNotificationBadgeCount", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('getNotificationBadgeCount', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "getNotificationBadgeCount", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _issueChannelToken(FProcessorFunction): def __init__(self, handler, lock): super(_issueChannelToken, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = issueChannelToken_args() args.read(iprot) iprot.readMessageEnd() result = issueChannelToken_result() try: result.success = self._handler([ctx, args.channelId]) except ChannelException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "issueChannelToken", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "issueChannelToken", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('issueChannelToken', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "issueChannelToken", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _issueRequestToken(FProcessorFunction): def __init__(self, handler, lock): super(_issueRequestToken, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = issueRequestToken_args() args.read(iprot) iprot.readMessageEnd() result = issueRequestToken_result() try: result.success = self._handler([ctx, args.channelId, args.otpId]) except ChannelException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "issueRequestToken", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "issueRequestToken", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('issueRequestToken', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "issueRequestToken", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _issueRequestTokenWithAuthScheme(FProcessorFunction): def __init__(self, handler, lock): super(_issueRequestTokenWithAuthScheme, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = issueRequestTokenWithAuthScheme_args() args.read(iprot) iprot.readMessageEnd() result = issueRequestTokenWithAuthScheme_result() try: result.success = self._handler([ctx, args.channelId, args.otpId, args.authScheme, args.returnUrl]) except ChannelException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "issueRequestTokenWithAuthScheme", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "issueRequestTokenWithAuthScheme", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('issueRequestTokenWithAuthScheme', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "issueRequestTokenWithAuthScheme", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _issueRequestTokenForAutoLogin(FProcessorFunction): def __init__(self, handler, lock): super(_issueRequestTokenForAutoLogin, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = issueRequestTokenForAutoLogin_args() args.read(iprot) iprot.readMessageEnd() result = issueRequestTokenForAutoLogin_result() try: result.success = self._handler([ctx, args.channelId, args.otpId, args.redirectUrl]) except ChannelException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "issueRequestTokenForAutoLogin", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "issueRequestTokenForAutoLogin", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('issueRequestTokenForAutoLogin', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "issueRequestTokenForAutoLogin", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _getUpdatedChannelIds(FProcessorFunction): def __init__(self, handler, lock): super(_getUpdatedChannelIds, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = getUpdatedChannelIds_args() args.read(iprot) iprot.readMessageEnd() result = getUpdatedChannelIds_result() try: result.success = self._handler([ctx, args.channelIds]) except ChannelException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "getUpdatedChannelIds", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "getUpdatedChannelIds", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('getUpdatedChannelIds', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "getUpdatedChannelIds", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _reserveCoinUse(FProcessorFunction): def __init__(self, handler, lock): super(_reserveCoinUse, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = reserveCoinUse_args() args.read(iprot) iprot.readMessageEnd() result = reserveCoinUse_result() try: result.success = self._handler([ctx, args.request, args.locale]) except ChannelException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "reserveCoinUse", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "reserveCoinUse", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('reserveCoinUse', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "reserveCoinUse", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _revokeChannel(FProcessorFunction): def __init__(self, handler, lock): super(_revokeChannel, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = revokeChannel_args() args.read(iprot) iprot.readMessageEnd() result = revokeChannel_result() try: self._handler([ctx, args.channelId]) except ChannelException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "revokeChannel", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "revokeChannel", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('revokeChannel', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "revokeChannel", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _syncChannelData(FProcessorFunction): def __init__(self, handler, lock): super(_syncChannelData, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = syncChannelData_args() args.read(iprot) iprot.readMessageEnd() result = syncChannelData_result() try: result.success = self._handler([ctx, args.lastSynced, args.locale]) except ChannelException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "syncChannelData", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "syncChannelData", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('syncChannelData', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "syncChannelData", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e class _updateChannelNotificationSetting(FProcessorFunction): def __init__(self, handler, lock): super(_updateChannelNotificationSetting, self).__init__(handler, lock) def process(self, ctx, iprot, oprot): args = updateChannelNotificationSetting_args() args.read(iprot) iprot.readMessageEnd() result = updateChannelNotificationSetting_result() try: self._handler([ctx, args.setting]) except ChannelException as e: result.e = e except TApplicationException as ex: with self._lock: _write_application_exception(ctx, oprot, "updateChannelNotificationSetting", exception=ex) return except Exception as e: with self._lock: _write_application_exception(ctx, oprot, "updateChannelNotificationSetting", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message) raise with self._lock: try: oprot.write_response_headers(ctx) oprot.writeMessageBegin('updateChannelNotificationSetting', TMessageType.REPLY, 0) result.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() except TTransportException as e: # catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written if e.type == TTransportExceptionType.REQUEST_TOO_LARGE: raise _write_application_exception(ctx, oprot, "updateChannelNotificationSetting", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0]) else: raise e def _write_application_exception(ctx, oprot, method, ex_code=None, message=None, exception=None): if exception is not None: x = exception else: x = TApplicationException(type=ex_code, message=message) oprot.write_response_headers(ctx) oprot.writeMessageBegin(method, TMessageType.EXCEPTION, 0) x.write(oprot) oprot.writeMessageEnd() oprot.get_transport().flush() return x class issueOTP_args(object): """ Attributes: - channelId """ def __init__(self, channelId=None): self.channelId = channelId def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 2: if ftype == TType.STRING: self.channelId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('issueOTP_args') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 2) oprot.writeString(self.channelId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.channelId)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class issueOTP_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRUCT: self.success = OTPResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('issueOTP_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class approveChannelAndIssueChannelToken_args(object): """ Attributes: - channelId """ def __init__(self, channelId=None): self.channelId = channelId def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRING: self.channelId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('approveChannelAndIssueChannelToken_args') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 1) oprot.writeString(self.channelId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.channelId)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class approveChannelAndIssueChannelToken_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRUCT: self.success = ChannelToken() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('approveChannelAndIssueChannelToken_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class approveChannelAndIssueRequestToken_args(object): """ Attributes: - channelId - otpId """ def __init__(self, channelId=None, otpId=None): self.channelId = channelId self.otpId = otpId def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRING: self.channelId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.otpId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('approveChannelAndIssueRequestToken_args') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 1) oprot.writeString(self.channelId) oprot.writeFieldEnd() if self.otpId is not None: oprot.writeFieldBegin('otpId', TType.STRING, 2) oprot.writeString(self.otpId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.channelId)) value = (value * 31) ^ hash(make_hashable(self.otpId)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class approveChannelAndIssueRequestToken_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('approveChannelAndIssueRequestToken_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class fetchNotificationItems_args(object): """ Attributes: - localRev """ def __init__(self, localRev=None): self.localRev = localRev def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 2: if ftype == TType.I64: self.localRev = iprot.readI64() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('fetchNotificationItems_args') if self.localRev is not None: oprot.writeFieldBegin('localRev', TType.I64, 2) oprot.writeI64(self.localRev) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.localRev)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class fetchNotificationItems_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRUCT: self.success = NotificationFetchResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('fetchNotificationItems_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getApprovedChannels_args(object): """ Attributes: - lastSynced - locale """ def __init__(self, lastSynced=None, locale=None): self.lastSynced = lastSynced self.locale = locale def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 2: if ftype == TType.I64: self.lastSynced = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.locale = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('getApprovedChannels_args') if self.lastSynced is not None: oprot.writeFieldBegin('lastSynced', TType.I64, 2) oprot.writeI64(self.lastSynced) oprot.writeFieldEnd() if self.locale is not None: oprot.writeFieldBegin('locale', TType.STRING, 3) oprot.writeString(self.locale) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.lastSynced)) value = (value * 31) ^ hash(make_hashable(self.locale)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getApprovedChannels_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRUCT: self.success = ApprovedChannelInfos() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('getApprovedChannels_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getChannelInfo_args(object): """ Attributes: - channelId - locale """ def __init__(self, channelId=None, locale=None): self.channelId = channelId self.locale = locale def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 2: if ftype == TType.STRING: self.channelId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.locale = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('getChannelInfo_args') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 2) oprot.writeString(self.channelId) oprot.writeFieldEnd() if self.locale is not None: oprot.writeFieldBegin('locale', TType.STRING, 3) oprot.writeString(self.locale) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.channelId)) value = (value * 31) ^ hash(make_hashable(self.locale)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getChannelInfo_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRUCT: self.success = ChannelInfo() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('getChannelInfo_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getChannelNotificationSetting_args(object): """ Attributes: - channelId - locale """ def __init__(self, channelId=None, locale=None): self.channelId = channelId self.locale = locale def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRING: self.channelId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.locale = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('getChannelNotificationSetting_args') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 1) oprot.writeString(self.channelId) oprot.writeFieldEnd() if self.locale is not None: oprot.writeFieldBegin('locale', TType.STRING, 2) oprot.writeString(self.locale) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.channelId)) value = (value * 31) ^ hash(make_hashable(self.locale)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getChannelNotificationSetting_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRUCT: self.success = ChannelNotificationSetting() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('getChannelNotificationSetting_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getChannelNotificationSettings_args(object): """ Attributes: - locale """ def __init__(self, locale=None): self.locale = locale def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRING: self.locale = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('getChannelNotificationSettings_args') if self.locale is not None: oprot.writeFieldBegin('locale', TType.STRING, 1) oprot.writeString(self.locale) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.locale)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getChannelNotificationSettings_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.LIST: self.success = [] (_, elem584) = iprot.readListBegin() for _ in range(elem584): elem585 = ChannelNotificationSetting() elem585.read(iprot) self.success.append(elem585) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('getChannelNotificationSettings_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for elem586 in self.success: elem586.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getChannels_args(object): """ Attributes: - lastSynced - locale """ def __init__(self, lastSynced=None, locale=None): self.lastSynced = lastSynced self.locale = locale def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 2: if ftype == TType.I64: self.lastSynced = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.locale = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('getChannels_args') if self.lastSynced is not None: oprot.writeFieldBegin('lastSynced', TType.I64, 2) oprot.writeI64(self.lastSynced) oprot.writeFieldEnd() if self.locale is not None: oprot.writeFieldBegin('locale', TType.STRING, 3) oprot.writeString(self.locale) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.lastSynced)) value = (value * 31) ^ hash(make_hashable(self.locale)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getChannels_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRUCT: self.success = ChannelInfos() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('getChannels_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getDomains_args(object): """ Attributes: - lastSynced """ def __init__(self, lastSynced=None): self.lastSynced = lastSynced def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 2: if ftype == TType.I64: self.lastSynced = iprot.readI64() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('getDomains_args') if self.lastSynced is not None: oprot.writeFieldBegin('lastSynced', TType.I64, 2) oprot.writeI64(self.lastSynced) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.lastSynced)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getDomains_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRUCT: self.success = ChannelDomains() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('getDomains_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getFriendChannelMatrices_args(object): """ Attributes: - channelIds """ def __init__(self, channelIds=None): self.channelIds = channelIds def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.LIST: self.channelIds = [] (_, elem587) = iprot.readListBegin() for _ in range(elem587): elem588 = iprot.readString() self.channelIds.append(elem588) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('getFriendChannelMatrices_args') if self.channelIds is not None: oprot.writeFieldBegin('channelIds', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.channelIds)) for elem589 in self.channelIds: oprot.writeString(elem589) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.channelIds)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getFriendChannelMatrices_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRUCT: self.success = FriendChannelMatricesResponse() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('getFriendChannelMatrices_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateChannelSettings_args(object): """ Attributes: - channelSettings """ def __init__(self, channelSettings=None): self.channelSettings = channelSettings def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRUCT: self.channelSettings = ChannelSettings() self.channelSettings.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('updateChannelSettings_args') if self.channelSettings is not None: oprot.writeFieldBegin('channelSettings', TType.STRUCT, 1) self.channelSettings.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.channelSettings)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateChannelSettings_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.BOOL: self.success = iprot.readBool() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('updateChannelSettings_result') if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getCommonDomains_args(object): """ Attributes: - lastSynced """ def __init__(self, lastSynced=None): self.lastSynced = lastSynced def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.I64: self.lastSynced = iprot.readI64() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('getCommonDomains_args') if self.lastSynced is not None: oprot.writeFieldBegin('lastSynced', TType.I64, 1) oprot.writeI64(self.lastSynced) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.lastSynced)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getCommonDomains_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRUCT: self.success = ChannelDomains() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('getCommonDomains_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getNotificationBadgeCount_args(object): """ Attributes: - localRev """ def __init__(self, localRev=None): self.localRev = localRev def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 2: if ftype == TType.I64: self.localRev = iprot.readI64() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('getNotificationBadgeCount_args') if self.localRev is not None: oprot.writeFieldBegin('localRev', TType.I64, 2) oprot.writeI64(self.localRev) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.localRev)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getNotificationBadgeCount_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.I32: self.success = iprot.readI32() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('getNotificationBadgeCount_result') if self.success is not None: oprot.writeFieldBegin('success', TType.I32, 0) oprot.writeI32(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class issueChannelToken_args(object): """ Attributes: - channelId """ def __init__(self, channelId=None): self.channelId = channelId def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRING: self.channelId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('issueChannelToken_args') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 1) oprot.writeString(self.channelId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.channelId)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class issueChannelToken_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRUCT: self.success = ChannelToken() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('issueChannelToken_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class issueRequestToken_args(object): """ Attributes: - channelId - otpId """ def __init__(self, channelId=None, otpId=None): self.channelId = channelId self.otpId = otpId def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRING: self.channelId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.otpId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('issueRequestToken_args') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 1) oprot.writeString(self.channelId) oprot.writeFieldEnd() if self.otpId is not None: oprot.writeFieldBegin('otpId', TType.STRING, 2) oprot.writeString(self.otpId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.channelId)) value = (value * 31) ^ hash(make_hashable(self.otpId)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class issueRequestToken_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('issueRequestToken_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class issueRequestTokenWithAuthScheme_args(object): """ Attributes: - channelId - otpId - authScheme - returnUrl """ def __init__(self, channelId=None, otpId=None, authScheme=None, returnUrl=None): self.channelId = channelId self.otpId = otpId self.authScheme = authScheme self.returnUrl = returnUrl def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRING: self.channelId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.otpId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.authScheme = [] (_, elem590) = iprot.readListBegin() for _ in range(elem590): elem591 = iprot.readString() self.authScheme.append(elem591) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.returnUrl = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('issueRequestTokenWithAuthScheme_args') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 1) oprot.writeString(self.channelId) oprot.writeFieldEnd() if self.otpId is not None: oprot.writeFieldBegin('otpId', TType.STRING, 2) oprot.writeString(self.otpId) oprot.writeFieldEnd() if self.authScheme is not None: oprot.writeFieldBegin('authScheme', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.authScheme)) for elem592 in self.authScheme: oprot.writeString(elem592) oprot.writeListEnd() oprot.writeFieldEnd() if self.returnUrl is not None: oprot.writeFieldBegin('returnUrl', TType.STRING, 4) oprot.writeString(self.returnUrl) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.channelId)) value = (value * 31) ^ hash(make_hashable(self.otpId)) value = (value * 31) ^ hash(make_hashable(self.authScheme)) value = (value * 31) ^ hash(make_hashable(self.returnUrl)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class issueRequestTokenWithAuthScheme_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRUCT: self.success = RequestTokenResponse() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('issueRequestTokenWithAuthScheme_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class issueRequestTokenForAutoLogin_args(object): """ Attributes: - channelId - otpId - redirectUrl """ def __init__(self, channelId=None, otpId=None, redirectUrl=None): self.channelId = channelId self.otpId = otpId self.redirectUrl = redirectUrl def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 2: if ftype == TType.STRING: self.channelId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.otpId = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.redirectUrl = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('issueRequestTokenForAutoLogin_args') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 2) oprot.writeString(self.channelId) oprot.writeFieldEnd() if self.otpId is not None: oprot.writeFieldBegin('otpId', TType.STRING, 3) oprot.writeString(self.otpId) oprot.writeFieldEnd() if self.redirectUrl is not None: oprot.writeFieldBegin('redirectUrl', TType.STRING, 4) oprot.writeString(self.redirectUrl) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.channelId)) value = (value * 31) ^ hash(make_hashable(self.otpId)) value = (value * 31) ^ hash(make_hashable(self.redirectUrl)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class issueRequestTokenForAutoLogin_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('issueRequestTokenForAutoLogin_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getUpdatedChannelIds_args(object): """ Attributes: - channelIds """ def __init__(self, channelIds=None): self.channelIds = channelIds def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.LIST: self.channelIds = [] (_, elem593) = iprot.readListBegin() for _ in range(elem593): elem594 = ChannelIdWithLastUpdated() elem594.read(iprot) self.channelIds.append(elem594) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('getUpdatedChannelIds_args') if self.channelIds is not None: oprot.writeFieldBegin('channelIds', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.channelIds)) for elem595 in self.channelIds: elem595.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.channelIds)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getUpdatedChannelIds_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.LIST: self.success = [] (_, elem596) = iprot.readListBegin() for _ in range(elem596): elem597 = iprot.readString() self.success.append(elem597) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('getUpdatedChannelIds_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for elem598 in self.success: oprot.writeString(elem598) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reserveCoinUse_args(object): """ Attributes: - request - locale """ def __init__(self, request=None, locale=None): self.request = request self.locale = locale def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 2: if ftype == TType.STRUCT: self.request = CoinUseReservation() self.request.read(iprot) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.locale = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('reserveCoinUse_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 2) self.request.write(oprot) oprot.writeFieldEnd() if self.locale is not None: oprot.writeFieldBegin('locale', TType.STRING, 3) oprot.writeString(self.locale) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.request)) value = (value * 31) ^ hash(make_hashable(self.locale)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reserveCoinUse_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('reserveCoinUse_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class revokeChannel_args(object): """ Attributes: - channelId """ def __init__(self, channelId=None): self.channelId = channelId def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRING: self.channelId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('revokeChannel_args') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 1) oprot.writeString(self.channelId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.channelId)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class revokeChannel_result(object): """ Attributes: - e """ def __init__(self, e=None): self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('revokeChannel_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class syncChannelData_args(object): """ Attributes: - lastSynced - locale """ def __init__(self, lastSynced=None, locale=None): self.lastSynced = lastSynced self.locale = locale def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 2: if ftype == TType.I64: self.lastSynced = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.locale = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('syncChannelData_args') if self.lastSynced is not None: oprot.writeFieldBegin('lastSynced', TType.I64, 2) oprot.writeI64(self.lastSynced) oprot.writeFieldEnd() if self.locale is not None: oprot.writeFieldBegin('locale', TType.STRING, 3) oprot.writeString(self.locale) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.lastSynced)) value = (value * 31) ^ hash(make_hashable(self.locale)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class syncChannelData_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None): self.success = success self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRUCT: self.success = ChannelSyncDatas() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('syncChannelData_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.success)) value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateChannelNotificationSetting_args(object): """ Attributes: - setting """ def __init__(self, setting=None): self.setting = setting def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.LIST: self.setting = [] (_, elem599) = iprot.readListBegin() for _ in range(elem599): elem600 = ChannelNotificationSetting() elem600.read(iprot) self.setting.append(elem600) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('updateChannelNotificationSetting_args') if self.setting is not None: oprot.writeFieldBegin('setting', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.setting)) for elem601 in self.setting: elem601.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.setting)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateChannelNotificationSetting_result(object): """ Attributes: - e """ def __init__(self, e=None): self.e = e def read(self, iprot): iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() self.validate() def write(self, oprot): self.validate() oprot.writeStructBegin('updateChannelNotificationSetting_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(make_hashable(self.e)) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other)
35.528255
195
0.587697
17,449
184,214
5.974211
0.015073
0.015972
0.014504
0.021757
0.875523
0.858946
0.831712
0.809802
0.804123
0.7884
0
0.005522
0.317723
184,214
5,184
196
35.535108
0.823885
0.039508
0
0.849644
1
0
0.040932
0.021996
0
0
0
0
0
1
0.130488
false
0.005641
0.002943
0.033848
0.229826
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
8fcd47aa508e26c91f047b190fb36d86bba2e224
12,623
py
Python
tests/charts-out/test_graphics_charts_piecharts_sample9.py
debragail/reportlab-mirror
1e5814e1313ed50d5abb65487b207711cb4f7595
[ "BSD-3-Clause" ]
1
2020-05-21T23:34:55.000Z
2020-05-21T23:34:55.000Z
tests/charts-out/test_graphics_charts_piecharts_sample9.py
debragail/reportlab-mirror
1e5814e1313ed50d5abb65487b207711cb4f7595
[ "BSD-3-Clause" ]
null
null
null
tests/charts-out/test_graphics_charts_piecharts_sample9.py
debragail/reportlab-mirror
1e5814e1313ed50d5abb65487b207711cb4f7595
[ "BSD-3-Clause" ]
null
null
null
#Autogenerated by ReportLab guiedit do not edit from reportlab.graphics.shapes import _DrawingEditorMixin, Drawing, Group, Wedge, String, Line from reportlab.lib.colors import Color, CMYKColor, PCMYKColor class ExplodedDrawing_Drawing(_DrawingEditorMixin,Drawing): def __init__(self,width=400,height=200,*args,**kw): Drawing.__init__(self,width,height,*args,**kw) self.transform = (1,0,0,1,0,0) self.add(Wedge(175,100,50,-127.3684,-95,yradius=50,annular=False,fillColor=Color(.27451,.509804,.705882,1),fillOpacity=None,strokeColor=Color(0,0,0,1),strokeWidth=1,strokeLineCap=0,strokeLineJoin=1,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Wedge(175,100,50,-143.1579,-127.3684,yradius=50,annular=False,fillColor=Color(.847059,.74902,.847059,1),fillOpacity=None,strokeColor=Color(0,0,0,1),strokeWidth=1,strokeLineCap=0,strokeLineJoin=1,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Wedge(175,100,50,-174.7368,-143.1579,yradius=50,annular=False,fillColor=Color(.392157,.584314,.929412,1),fillOpacity=None,strokeColor=Color(0,0,0,1),strokeWidth=1,strokeLineCap=0,strokeLineJoin=1,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Wedge(175,100,50,-186.5789,-174.7368,yradius=50,annular=False,fillColor=Color(.690196,.768627,.870588,1),fillOpacity=None,strokeColor=Color(0,0,0,1),strokeWidth=1,strokeLineCap=0,strokeLineJoin=1,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Wedge(175,100,50,-202.3684,-186.5789,yradius=50,annular=False,fillColor=Color(.498039,1,.831373,1),fillOpacity=None,strokeColor=Color(0,0,0,1),strokeWidth=1,strokeLineCap=0,strokeLineJoin=1,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Wedge(175,100,50,-226.0526,-202.3684,yradius=50,annular=False,fillColor=Color(.372549,.619608,.627451,1),fillOpacity=None,strokeColor=Color(0,0,0,1),strokeWidth=1,strokeLineCap=0,strokeLineJoin=1,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Wedge(175,100,50,-265.5263,-226.0526,yradius=50,annular=False,fillColor=Color(1,1,0,1),fillOpacity=None,strokeColor=Color(0,0,0,1),strokeWidth=1,strokeLineCap=0,strokeLineJoin=1,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Wedge(175,100,50,-277.3684,-265.5263,yradius=50,annular=False,fillColor=Color(.27451,.509804,.705882,1),fillOpacity=None,strokeColor=Color(0,0,0,1),strokeWidth=1,strokeLineCap=0,strokeLineJoin=1,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Wedge(175,100,50,-297.1053,-277.3684,yradius=50,annular=False,fillColor=Color(.847059,.74902,.847059,1),fillOpacity=None,strokeColor=Color(0,0,0,1),strokeWidth=1,strokeLineCap=0,strokeLineJoin=1,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Wedge(175,100,50,-324.7368,-297.1053,yradius=50,annular=False,fillColor=Color(.392157,.584314,.929412,1),fillOpacity=None,strokeColor=Color(0,0,0,1),strokeWidth=1,strokeLineCap=0,strokeLineJoin=1,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Wedge(175,100,50,-344.4737,-324.7368,yradius=50,annular=False,fillColor=Color(.690196,.768627,.870588,1),fillOpacity=None,strokeColor=Color(0,0,0,1),strokeWidth=1,strokeLineCap=0,strokeLineJoin=1,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Wedge(175,100,50,-360.2632,-344.4737,yradius=50,annular=False,fillColor=Color(.498039,1,.831373,1),fillOpacity=None,strokeColor=Color(0,0,0,1),strokeWidth=1,strokeLineCap=0,strokeLineJoin=1,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Wedge(175,100,50,-383.9474,-360.2632,yradius=50,annular=False,fillColor=Color(.372549,.619608,.627451,1),fillOpacity=None,strokeColor=Color(0,0,0,1),strokeWidth=1,strokeLineCap=0,strokeLineJoin=1,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Wedge(175,100,50,-415.5263,-383.9474,yradius=50,annular=False,fillColor=Color(1,1,0,1),fillOpacity=None,strokeColor=Color(0,0,0,1),strokeWidth=1,strokeLineCap=0,strokeLineJoin=1,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Wedge(175,100,50,-431.3158,-415.5263,yradius=50,annular=False,fillColor=Color(.27451,.509804,.705882,1),fillOpacity=None,strokeColor=Color(0,0,0,1),strokeWidth=1,strokeLineCap=0,strokeLineJoin=1,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Wedge(175,100,50,-455,-431.3158,yradius=50,annular=False,fillColor=Color(.847059,.74902,.847059,1),fillOpacity=None,strokeColor=Color(0,0,0,1),strokeWidth=1,strokeLineCap=0,strokeLineJoin=1,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(String(115,44.05459,'example1',textAnchor='end',fontName='Times-Roman',fontSize=10,fillColor=Color(0,0,0,1))) self.add(String(115,57.7689,'example2',textAnchor='end',fontName='Times-Roman',fontSize=10,fillColor=Color(0,0,0,1))) self.add(String(115,78.44648,'example3',textAnchor='end',fontName='Times-Roman',fontSize=10,fillColor=Color(0,0,0,1))) self.add(String(115,100.6889,'example4',textAnchor='end',fontName='Times-Roman',fontSize=10,fillColor=Color(0,0,0,1))) self.add(String(115,114.9961,'example5',textAnchor='end',fontName='Times-Roman',fontSize=10,fillColor=Color(0,0,0,1))) self.add(String(115,133.7341,'example6',textAnchor='end',fontName='Times-Roman',fontSize=10,fillColor=Color(0,0,0,1))) self.add(String(115,154.7227,'example7',textAnchor='end',fontName='Times-Roman',fontSize=10,fillColor=Color(0,0,0,1))) self.add(String(235,165.9809,'example8',textAnchor='start',fontName='Times-Roman',fontSize=10,fillColor=Color(0,0,0,1))) self.add(String(235,157.3053,'example9',textAnchor='start',fontName='Times-Roman',fontSize=10,fillColor=Color(0,0,0,1))) self.add(String(235,145.3368,'example10',textAnchor='start',fontName='Times-Roman',fontSize=10,fillColor=Color(0,0,0,1))) self.add(String(235,125.7311,'example11',textAnchor='start',fontName='Times-Roman',fontSize=10,fillColor=Color(0,0,0,1))) self.add(String(235,107.9682,'example12',textAnchor='start',fontName='Times-Roman',fontSize=10,fillColor=Color(0,0,0,1))) self.add(String(235,87.4175,'example13',textAnchor='start',fontName='Times-Roman',fontSize=10,fillColor=Color(0,0,0,1))) self.add(String(235,61.64425,'example14',textAnchor='start',fontName='Times-Roman',fontSize=10,fillColor=Color(0,0,0,1))) self.add(String(235,52.34088,'example15',textAnchor='start',fontName='Times-Roman',fontSize=10,fillColor=Color(0,0,0,1))) self.add(String(235,40.42731,'example16',textAnchor='start',fontName='Times-Roman',fontSize=10,fillColor=Color(0,0,0,1))) self.add(Line(156.9316,53.37883,135.9658,47.05459,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(135.9658,47.05459,115,47.05459,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(139.4826,64.80742,127.2413,60.7689,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(127.2413,60.7689,115,60.7689,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(128.3375,82.03873,121.6687,81.44648,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(121.6687,81.44648,115,81.44648,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(125.0033,100.5741,120.0016,103.6889,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(120.0016,103.6889,115,103.6889,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(126.5869,112.4968,120.7934,117.9961,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(120.7934,117.9961,115,117.9961,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(133.6511,128.1118,124.3256,136.7341,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(124.3256,136.7341,115,136.7341,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(154.4955,145.6022,134.7477,157.7227,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(134.7477,157.7227,115,157.7227,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(176.2629,149.984,205.6315,168.9809,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(205.6315,168.9809,235,168.9809,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(189.8161,147.7544,212.4081,160.3053,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(212.4081,160.3053,235,160.3053,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(207.7509,137.7806,221.3755,148.3368,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(221.3755,148.3368,235,148.3368,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(220.1687,121.4426,227.5844,128.7311,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(227.5844,128.7311,235,128.7311,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(224.5571,106.6401,229.7786,110.9682,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(229.7786,110.9682,235,110.9682,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(223.8882,89.51458,229.4441,90.4175,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(229.4441,90.4175,235,90.4175,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(213.4494,68.03688,224.2247,64.64425,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(224.2247,64.64425,235,64.64425,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(197.3715,55.28406,216.1858,55.34088,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(216.1858,55.34088,235,55.34088,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(180.9567,50.35609,207.9783,43.42731,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) self.add(Line(207.9783,43.42731,235,43.42731,strokeColor=Color(0,0,0,1),strokeWidth=.5,strokeLineCap=0,strokeLineJoin=0,strokeMiterLimit=0,strokeDashArray=None,strokeOpacity=None)) if __name__=="__main__": #NORUNTESTS ExplodedDrawing_Drawing().save(formats=['pdf'],outDir='.',fnRoot=None)
163.935065
267
0.800444
1,937
12,623
5.205989
0.133712
0.025783
0.019338
0.050774
0.86067
0.86067
0.858687
0.85829
0.85829
0.85829
0
0.172021
0.018617
12,623
76
268
166.092105
0.641992
0.004436
0
0
1
0
0.030959
0
0
0
0
0
0
1
0.013889
false
0
0.027778
0
0.055556
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
8f18da40c810f393ba4b674affd2853c0c61e3f0
28,257
py
Python
survey/txx/survey.py
afranck64/ultimatum
313b840e6f0942c1c937aa8b3f2d26e5059c7a7f
[ "MIT" ]
null
null
null
survey/txx/survey.py
afranck64/ultimatum
313b840e6f0942c1c937aa8b3f2d26e5059c7a7f
[ "MIT" ]
7
2020-01-28T22:41:06.000Z
2021-04-29T22:23:23.000Z
survey/txx/survey.py
afranck64/ultimatum
313b840e6f0942c1c937aa8b3f2d26e5059c7a7f
[ "MIT" ]
null
null
null
import os import uuid import datetime import requests from flask import render_template, request, flash, url_for, redirect, make_response, session from flask_wtf.form import FlaskForm from wtforms.validators import DataRequired, Optional, Regexp from wtforms import StringField, PasswordField, BooleanField, SubmitField, IntegerField, BooleanField, RadioField, TextAreaField, SelectMultipleField, SelectField from wtforms.widgets import ListWidget, CheckboxInput from survey.utils import ( get_table, save_result2db, save_result2file, get_output_filename, get_latest_treatment, generate_completion_code, save_worker_id, get_cookie_obj, set_cookie_obj, table_exists, WORKER_CODE_DROPPED, ALL_COOKIES_KEY, is_worker_available) from core.models.metrics import MAX_GAIN from survey.db import insert, get_db from survey.admin import get_job_config from survey._app import app, VALUES_SEPARATOR, MAXIMUM_CONTROL_MISTAKES, TREATMENTS_AUTO_DSS from survey.adapter import get_adapter, get_adapter_from_dict from survey.txx.index import check_is_proposer_next, NEXT_IS_WAITING BASE = os.path.splitext(os.path.split(__file__)[1])[0] class MultiCheckboxField(SelectMultipleField): # Thanks: https://snipnyet.com/adierebel/59f46bff77da1511c3503532/multiple-checkbox-field-using-wtforms-with-flask-wtf/ widget = ListWidget(prefix_label=False) option_widget = CheckboxInput() class MainForm(FlaskForm): gender = RadioField("What is your gender?", choices=[ ("female", "Female"), ("male", "Male"), ("other", "Other")], validators=[DataRequired("Please choose a value")] ) age = RadioField("What is your age?", choices=[ ("1825_years", "18-25 Years"), ("2635_years", "26-35 Years"), ("3645_years", "36-45 Years"), ("4655_years", "46-55 Years"), ("5665_years", "56-65 Years"), ("older_than_65_years", "Older than 65 Years")], validators=[DataRequired("Please choose a value")] ) ethnicity = MultiCheckboxField("What is the ethnicity with which you most closely identify? You may choose multiple options.", choices=[ ("american_indian_or_alaska_native", "American Indian or Alaska Native"), ("asian", "Asian"), ("black_or_african_american", "Black or African American"), ("hispanic_latino", "Hispanic/Latino"), ("hawaiian_or_pacific_islander", "Native Hawaiian or Pacific Islander"), ("white", "White/Caucasian"), ("other", "Other")], validators=[DataRequired("Please choose a value")] ) income = RadioField("Which of the following describes the income you earn from crowdsourced microtasks?", choices=[ ("Primary source of income", "Primary source of income"), ("Secondary source of income", "Secondary source of income"), ("I earn nearly equal incomes from crowdsourced microtasks and other job(s)", "I earn nearly equal incomes from crowdsourced microtasks and other job(s)")], validators=[DataRequired("Please choose a value")] ) education = RadioField("What is the highest degree or level of school you have completed?", choices=[ ("less_than_high_school_diploma", "Less than a high school diploma"), ("high_school_degree", "High school graduate, diploma or the equivalent"), ("bachelor_degree", "Bachelor's degree"), ("master_degree", "Master's degree"), ("doctorate_degree", "Doctorate degree"), ("other", "Other")], validators=[DataRequired("Please choose a value")] ) proposer = RadioField("The PROPOSER...", choices=[ ("incorrect1", "decides the amount of money that the RESPONDER is paid"), ("correct", f"proposes a division of the {MAX_GAIN / 100:.2f} USD with the RESPONDER"), ("incorrect2", "accepts or rejects the offer made by the RESPONDER")], validators=[DataRequired("Please choose a value"), Regexp(regex="correct")] ) responder = RadioField("The RESPONDER...", choices=[ ("incorrect1", "decides the amount of money that the PROPOSER is paid"), ("incorrect2", f"proposes a division of the {MAX_GAIN / 100:.2f} USD with the PROPOSER"), ("correct", "accepts or rejects the offer made by the PROPOSER")], validators=[DataRequired("Please choose a value"), Regexp(regex="correct")] ) proposer_responder = RadioField("Choose the correct answer", choices=[ ("correct", "The PROPOSER and the RESPONDER are both humans participating in the task simultaneously."), ("incorrect1", "Your matched worker is simulated by the computer and is not a real person."), ("incorrect2", "Your decisions do not affect another worker.")], validators=[DataRequired("Please choose a value"), Regexp(regex="correct")] ) money_division = RadioField("If the RESPONDER accepts the PROPOSER's offer...", choices=[ ("incorrect1", "the money is divided 50/50 between the RESPONDER and the PROPOSER"), ("incorrect2", "the money is divided according to the RESPONDER's minimum offer"), ("correct", "the money is divided according to the PROPOSER's offer")], validators=[DataRequired("Please choose a value"), Regexp(regex="correct")] ) code_resp_prop = StringField("Completion Code of the main task:", validators=[DataRequired(), Regexp(regex=r" *prop:\w*| *resp:\w*| *respNF:\w*")]) code_cpc = StringField("Completion Code of the choice task:", validators=[Optional()]) code_risk = StringField("Completion Code of the risk task:", validators=[Optional()]) code_exp = StringField("Completion Code of the experience task:", validators=[Optional()]) code_cc = StringField("Completion Code of the letters selection task:", validators=[Optional()]) code_ras = StringField("Completion Code of the assertiveness task:", validators=[Optional()]) test = RadioField("This is an attention check question. Please select the option 'BALL'", choices=[("apple", "APPLE"), ("ball", "BALL"), ("cat", "CAT")], validators=[DataRequired()]) feedback = TextAreaField("Please enter your comments, feedback or suggestions below.") class MainFormFeeback(FlaskForm): proposer = RadioField("The PROPOSER...", choices=[ ("incorrect1", "decides the amount of money that the RESPONDER is paid"), ("correct", f"proposes a division of the {MAX_GAIN / 100:.2f} USD with the RESPONDER"), ("incorrect2", "accepts or rejects the offer made by the RESPONDER")], validators=[DataRequired("Please choose a value"), Regexp(regex="correct")] ) responder = RadioField("The RESPONDER...", choices=[ ("incorrect1", "decides the amount of money that the PROPOSER is paid"), ("incorrect2", f"proposes a division of the {MAX_GAIN / 100:.2f} USD with the PROPOSER"), ("correct", "accepts or rejects the offer made by the PROPOSER")], validators=[DataRequired("Please choose a value"), Regexp(regex="correct")] ) proposer_responder = RadioField("Choose the correct answer", choices=[ ("correct", "The PROPOSER and the RESPONDER are both humans participating in the task simultaneously."), ("incorrect1", "Your matched worker is simulated by the computer and is not a real person."), ("incorrect2", "Your decisions do not affect another worker.")], validators=[DataRequired("Please choose a value"), Regexp(regex="correct")] ) money_division = RadioField("If the RESPONDER accepts the PROPOSER's offer...", choices=[ ("incorrect1", "the money is divided 50/50 between the RESPONDER and the PROPOSER"), ("incorrect2", "the money is divided according to the RESPONDER's minimum offer"), ("correct", "the money is divided according to the PROPOSER's offer")], validators=[DataRequired("Please choose a value"), Regexp(regex="correct")] ) code_resp_prop = StringField("Completion Code of the main task:", validators=[DataRequired(), Regexp(regex=r" *prop:\w*| *resp:\w*| *respNF:\w*")]) test = RadioField("This is an attention check question. Please select the option 'BALL'", choices=[("apple", "APPLE"), ("ball", "BALL"), ("cat", "CAT")], validators=[DataRequired()]) feedback = TextAreaField("Please enter your comments, feedback or suggestions below.") def select_adapter(): cookie_obj = get_cookie_obj(BASE) adapter_cookie = get_adapter_from_dict(cookie_obj.get("adapter", {})) adapter_args = get_adapter_from_dict(request.args) adapter_referrer = get_adapter() if adapter_referrer.job_id not in {"", "na", None}: adapter = adapter_referrer elif adapter_cookie.job_id not in {"", "na", None}: adapter = adapter_cookie else: adapter = adapter_args return adapter def handle_survey(treatment=None, template=None, code_prefixes=None, form_class=None, overview_url=None, resp_only=None, prop_only=None): app.logger.info("handle_survey") if code_prefixes is None: code_prefixes = {"code_cpc": "cpc:", "code_exp": "exp:", "code_risk": "risk:", "code_cc": "cc:", "code_ras": "ras:"} if form_class is None: form_class = MainForm if template is None: template = "txx/survey.html" if overview_url is None: overview_url = url_for("overview") cookie_obj = get_cookie_obj(BASE) adapter = select_adapter() app.logger.debug(f"adapter: {adapter.to_dict()}") worker_code_key = f"{BASE}_worker_code" arg_job_id = adapter.get_job_id() arg_worker_id = adapter.get_worker_id() job_id = arg_job_id or f"na" worker_id = arg_worker_id if worker_id in {"", "na", None}: worker_id = str(uuid.uuid4()) adapter.worker_id = worker_id max_judgments = 0 #not set if adapter.has_api(): api = adapter.get_api() max_judgments = api.get_max_judgments() else: try: max_judgments = int(request.args.get("max_judgments", max_judgments)) except: pass job_config = get_job_config(get_db(), job_id) max_judgments = max(max_judgments, job_config.expected_judgments) next_player = check_is_proposer_next(job_id, worker_id, treatment, max_judgments=max_judgments, resp_only=resp_only, prop_only=prop_only) table_all = get_table("txx", "all", schema=None) # The task was already completed, so we skip to the completion code display if cookie_obj.get(BASE) and cookie_obj.get(worker_code_key): req_response = make_response(redirect(url_for(f"{treatment}.survey.survey_done", **request.args))) set_cookie_obj(req_response, BASE, cookie_obj) return req_response if treatment is None: treatment = get_latest_treatment() cookie_obj["job_id"] = job_id cookie_obj["worker_id"] = worker_id cookie_obj["treatment"] = treatment cookie_obj["adapter"] = adapter.to_dict() cookie_obj[BASE] = True form = form_class(request.form) drop = request.form.get("drop") con = get_db() if table_exists(con, table_all): with con: res = con.execute(f"SELECT * from {table_all} WHERE worker_id=?", (worker_id,)).fetchone() if res: flash(f"You already took part on this survey.") flash("You can just ignore this HIT for the assignment to be RETURNED later to another worker.") req_response = make_response(render_template("error.html", worker_code=WORKER_CODE_DROPPED)) return req_response #The next player should be a proposer but some responders may still be processing data if next_player == NEXT_IS_WAITING: resp_table = get_table(base="resp", job_id=job_id, schema="result", treatment=treatment) prop_table = get_table(base="prop", job_id=job_id, schema="result", treatment=treatment) # We make sure the user didn't accidentaly refreshed the page after processing the main task if (not is_worker_available(worker_id, resp_table) and not is_worker_available(worker_id, prop_table)): flash("Unfortunately there is no task available right now. Please check again in 15 minutes. Otherwise you can just ignore this HIT for the assignment to be RETURNED later to another worker or you can submit right now for a REJECTION using the survey code provided.") return render_template("error.html", worker_code=WORKER_CODE_DROPPED) if adapter.is_preview() or job_id=="na": flash("Please do note that you are currently in the preview mode of the survey. You SHOULD NOT FILL NEITHER SUBMIT the survey in this mode. Please go back to Mturk and read the instructions about how to correctly start this survey.") if request.method == "POST" and (drop=="1" or form.validate_on_submit()): # Makes sure all fields are available, not only the one with value submitted!!! response = {k:None for k in form._fields} form = form_class(request.form) response.update(request.form.to_dict()) response["ethnicity"] = VALUES_SEPARATOR.join(sorted(request.form.getlist(form.ethnicity.name))) response["timestamp"] = str(datetime.datetime.now()) cookie_obj["response"] = response is_codes_valid = True # Responders have to fill and submit tasks if "resp:" in response.get("code_resp_prop", ""): for fieldname, prefix in code_prefixes.items(): if not prefix in response[fieldname] or not response[fieldname]: field = getattr(form, fieldname) # Validated forms have errors as tuples field.errors = field.errors + ("Invalid code",) is_codes_valid = False if is_codes_valid and job_id != "na" and worker_id != "na": cookie_obj["response"] = response req_response = make_response(redirect(url_for(f"{treatment}.survey.survey_done", **request.args))) set_cookie_obj(req_response, BASE, cookie_obj) return req_response elif is_codes_valid: flash("Your data was submitted and validated but not save as you are currently in the preview mode of the survey. Please go back to Mturk and read the instructions about how to correctly start this survey.") elif request.method == "POST": response = request.form.to_dict() # Responders have to fill and submit tasks if "resp:" in response.get("code_resp_prop", ""): for fieldname, prefix in code_prefixes.items(): if not response.get(fieldname) or not prefix in response[fieldname]: field = getattr(form, fieldname) # Non validated forms have errors as lists field.errors = field.errors + ["Invalid code"] is_codes_valid = False req_response = make_response(render_template(template, job_id=job_id, worker_id=worker_id, treatment=treatment, form=form, max_judgments=max_judgments, max_gain=MAX_GAIN, maximum_control_mistakes=MAXIMUM_CONTROL_MISTAKES, overview_url=overview_url, tasks=app.config["TASKS"])) set_cookie_obj(req_response, BASE, cookie_obj) return req_response def handle_survey_feedback(treatment=None, template=None, code_prefixes=None, form_class=None, overview_url=None): app.logger.info("handle_survey_feedback") if code_prefixes is None: code_prefixes = {"code_cpc": "cpc:", "code_exp": "exp:", "code_risk": "risk:", "code_cc": "cc:", "code_ras": "ras:"} if form_class is None: form_class = MainFormFeeback if template is None: template = "txx/survey_feedback.html" if overview_url is None: if treatment and treatment.upper() in TREATMENTS_AUTO_DSS: overview_url = url_for("overview_auto_prop_feedback") else: overview_url = url_for("overview_feedback") cookie_obj = get_cookie_obj(BASE) adapter_cookie = get_adapter_from_dict(cookie_obj.get("adapter", {})) adapter_args = get_adapter_from_dict(request.args) adapter_referrer = get_adapter() if adapter_referrer.job_id not in {"", "na", None}: adapter = adapter_referrer elif adapter_cookie.job_id not in {"", "na", None}: adapter = adapter_cookie else: adapter = adapter_args app.logger.debug(f"adapter: {adapter.to_dict()}") worker_code_key = f"{BASE}_worker_code" arg_job_id = adapter.get_job_id() arg_worker_id = adapter.get_worker_id() job_id = arg_job_id or f"na" worker_id = arg_worker_id if worker_id in {"", "na", None}: worker_id = str(uuid.uuid4()) adapter.worker_id = worker_id max_judgments = 0 #not set if adapter.has_api(): api = adapter.get_api() max_judgments = api.get_max_judgments() else: try: max_judgments = int(request.args.get("max_judgments", max_judgments)) except: pass job_config = get_job_config(get_db(), job_id) max_judgments = max(max_judgments, job_config.expected_judgments) next_player = check_is_proposer_next(job_id, worker_id, treatment, max_judgments=max_judgments) table_all = get_table("txx", "all", schema=None) # The task was already completed, so we skip to the completion code display if cookie_obj.get(BASE) and cookie_obj.get(worker_code_key): req_response = make_response(redirect(url_for(f"{treatment}.survey.survey_done", **request.args))) set_cookie_obj(req_response, BASE, cookie_obj) return req_response if treatment is None: treatment = get_latest_treatment() cookie_obj["job_id"] = job_id cookie_obj["worker_id"] = worker_id cookie_obj["assignment_id"] = adapter.get_assignment_id() cookie_obj["treatment"] = treatment cookie_obj["adapter"] = adapter.to_dict() cookie_obj[BASE] = True form = form_class(request.form) drop = request.form.get("drop") con = get_db() # if table_exists(con, table_all): # with con: # res = con.execute(f"SELECT * from {table_all} WHERE worker_id=?", (worker_id,)).fetchone() # if res: # flash(f"You already took part on this survey. You can just ignore this HIT for the assignment to be RETURNED later to another worker or you can submit right now for a REJECTION using the survey code provided.") # req_response = make_response(render_template("error.html", worker_code=WORKER_CODE_DROPPED)) # return req_response #The next player should be a proposer but some responders may still be processing data ## Should not matter in feedback surveys if next_player == NEXT_IS_WAITING: resp_table = get_table(base="resp", job_id=job_id, schema="result", treatment=treatment) prop_table = get_table(base="prop", job_id=job_id, schema="result", treatment=treatment) # We make sure the user didn't accidentaly refreshed the page after processing the main task if (not is_worker_available(worker_id, resp_table) and not is_worker_available(worker_id, prop_table)): flash("Unfortunately there is no task available right now. Please check again in 15 minutes. Otherwise you can just ignore this HIT for the assignment to be RETURNED later to another worker or you can submit right now for a REJECTION using the survey code provided.") return render_template("error.html", worker_code=WORKER_CODE_DROPPED) if adapter.is_preview() or job_id=="na": flash("Please do note that you are currently in the preview mode of the survey. You SHOULD NOT FILL NEITHER SUBMIT the survey in this mode. Please go back to Mturk and read the instructions about how to correctly start this survey.") if request.method == "POST" and (drop=="1" or form.validate_on_submit()): form = form_class(request.form) response = request.form.to_dict() response["timestamp"] = str(datetime.datetime.now()) cookie_obj["response"] = response is_codes_valid = True # Responders have to fill and submit tasks if is_codes_valid and job_id != "na" and worker_id != "na": cookie_obj["response"] = response #NOTE: the url should be pointing to handle_survey_feedback_done req_response = make_response(redirect(url_for(f"{treatment}.survey.survey_done", **request.args))) set_cookie_obj(req_response, BASE, cookie_obj) return req_response elif is_codes_valid: flash("Your data was submitted and validated but not save as you are currently in the preview mode of the survey. Please go back to Mturk and read the instructions about how to correctly start this survey.") req_response = make_response(render_template(template, job_id=job_id, worker_id=worker_id, treatment=treatment, form=form, max_judgments=max_judgments, max_gain=MAX_GAIN, maximum_control_mistakes=MAXIMUM_CONTROL_MISTAKES, overview_url=overview_url, tasks=app.config["TASKS"])) set_cookie_obj(req_response, BASE, cookie_obj) return req_response def handle_survey_done(template=None): if template is None: template = "txx/survey.done.html" cookie_obj = get_cookie_obj(BASE) if not cookie_obj.get(BASE): flash("Sorry, you are not allowed to use this service. ^_^") return render_template("error.html") worker_code_key = f"{BASE}_worker_code" worker_code = WORKER_CODE_DROPPED if True or not cookie_obj.get(worker_code_key): job_id = cookie_obj["job_id"] worker_id = cookie_obj["worker_id"] treatment = cookie_obj["treatment"] worker_code = generate_completion_code(base=treatment, job_id=job_id) response = cookie_obj["response"] app.logger.debug("DONE_response: {response}") dropped = response.get("drop") if dropped=="1": worker_code = WORKER_CODE_DROPPED flash(f"You have been disqualified as you made more than {MAXIMUM_CONTROL_MISTAKES} mistakes on the control questions. Close this window and don't submit any completion on MTurk to avoid getting a REJECTION.") response["worker_id"] = worker_id response["job_id"] = job_id response["completion_code"] = worker_code result = {k:v for k,v in response.items() if k not in {'csrf_token', 'drop'}} try: save_result2file(get_output_filename(base=BASE, job_id=job_id, treatment=treatment), result) except Exception as err: app.log_exception(err) try: save_result2db(table=get_table(base=BASE, job_id=job_id, schema="result", treatment=treatment), response_result=result, unique_fields=["worker_id"]) except Exception as err: app.log_exception(err) adapter = get_adapter_from_dict(cookie_obj["adapter"]) #adapter = get_adapter() app.logger.debug(f"adapter: {cookie_obj['adapter']}") cookie_obj.clear() save_worker_id(job_id=job_id, worker_id=worker_id, worker_code=worker_code, assignment_id=adapter.assignment_id) app.logger.debug(f"request-args: {request.args}, adapter: {adapter.to_dict()} ") try: expected_max_judgments = request.args.get("expected_max_judgments") if expected_max_judgments is not None: expected_max_judgments = int(expected_max_judgments) api = adapter.get_api() max_judgments = api.get_max_judgments() app.logger.debug(f"survey.done: max_judgments: {max_judgments} - {type(max_judgments)}, expected_max_judgments: {expected_max_judgments} - {type(expected_max_judgments)}") if max_judgments < expected_max_judgments: app.logger.debug(f"try create new assignments") create_res = api.create_additional_assignments(1) app.logger.debug(f"post assignment creation: new-max: {api.get_max_judgments()} , mturk-api-res: {create_res}") except Exception as err: app.log_exception(err) # directly reply to AWS as the survey should be served as an external question! app.logger.info(f"handle_survey_done: saved new survey - job_id: {job_id}, worker_id: {worker_id}") req_response = make_response(render_template(template, worker_code=worker_code, dropped=True)) set_cookie_obj(req_response, BASE, cookie_obj) for cookie in session.get(ALL_COOKIES_KEY, []): req_response.set_cookie(cookie, expires=0) session[ALL_COOKIES_KEY] = [] return req_response def handle_survey_feedback_done(template=None): """ Only used for treatment t10_feedback""" if template is None: template = "txx/survey.done.html" cookie_obj = get_cookie_obj(BASE) if not cookie_obj.get(BASE): flash("Sorry, you are not allowed to use this service. ^_^") return render_template("error.html") worker_code_key = f"{BASE}_worker_code" worker_code = WORKER_CODE_DROPPED if True or not cookie_obj.get(worker_code_key): job_id = cookie_obj["job_id"] worker_id = cookie_obj["worker_id"] treatment = cookie_obj["treatment"] assignment_id = cookie_obj.get("assignment_id") worker_code = generate_completion_code(base=treatment, job_id=job_id) response = cookie_obj["response"] app.logger.debug("DONE_response: {response}") dropped = response.get("drop") if dropped=="1": worker_code = WORKER_CODE_DROPPED flash(f"You have been disqualified as you made more than {MAXIMUM_CONTROL_MISTAKES} mistakes on the control questions. Close this window and don't submit any completion on MTurk to avoid getting a REJECTION.") response["worker_id"] = worker_id response["job_id"] = job_id response["assignment_id"] = assignment_id response["completion_code"] = worker_code result = {k:v for k,v in response.items() if k not in {'csrf_token', 'drop'}} try: save_result2file(get_output_filename(base=BASE, job_id=job_id, treatment=treatment), result) except Exception as err: app.log_exception(err) try: save_result2db(table=get_table(base=BASE, job_id=job_id, schema="result", treatment=treatment), response_result=result, unique_fields=["worker_id"]) except Exception as err: app.log_exception(err) adapter = get_adapter_from_dict(cookie_obj["adapter"]) #adapter = get_adapter() app.logger.debug(f"adapter: {cookie_obj['adapter']}") cookie_obj.clear() #save_worker_id(job_id=job_id, worker_id=worker_id, worker_code=worker_code, assignment_id=adapter.assignment_id) app.logger.debug(f"request-args: {request.args}, adapter: {adapter.to_dict()} ") try: expected_max_judgments = request.args.get("expected_max_judgments") if expected_max_judgments is not None: expected_max_judgments = int(expected_max_judgments) api = adapter.get_api() max_judgments = api.get_max_judgments() app.logger.debug(f"survey.done: max_judgments: {max_judgments} - {type(max_judgments)}, expected_max_judgments: {expected_max_judgments} - {type(expected_max_judgments)}") if max_judgments < expected_max_judgments: app.logger.debug(f"try create new assignments") create_res = api.create_additional_assignments(1) app.logger.debug(f"post assignment creation: new-max: {api.get_max_judgments()} , mturk-api-res: {create_res}") except Exception as err: app.log_exception(err) app.logger.info(f"handle_survey_feedback_done: saved new survey - job_id: {job_id}, worker_id: {worker_id}") req_response = make_response(render_template(template, worker_code=worker_code, dropped=True)) set_cookie_obj(req_response, BASE, cookie_obj) for cookie in session.get(ALL_COOKIES_KEY, []): req_response.set_cookie(cookie, expires=0) session[ALL_COOKIES_KEY] = [] return req_response
56.288845
280
0.685919
3,759
28,257
4.942272
0.118649
0.032942
0.009043
0.010765
0.84444
0.817903
0.794973
0.784799
0.776725
0.776725
0
0.005685
0.20947
28,257
502
281
56.288845
0.825992
0.063984
0
0.74359
0
0.027972
0.309786
0.027447
0
0
0
0
0.002331
1
0.011655
false
0.006993
0.037296
0
0.149184
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
8f5109a133fff6aa7a122fa9fee7b660d1e2d179
36,902
py
Python
src/domainClient/api/agencies_api.py
diabolical-ninja/smart-property-search
0931c7c8195ec21cbd56768c9c84cea2927a9e1d
[ "MIT" ]
5
2021-04-12T04:10:42.000Z
2021-04-28T05:54:22.000Z
src/domainClient/api/agencies_api.py
diabolical-ninja/smart-property-search
0931c7c8195ec21cbd56768c9c84cea2927a9e1d
[ "MIT" ]
35
2020-05-26T14:21:37.000Z
2022-03-29T16:14:42.000Z
src/domainClient/api/agencies_api.py
diabolical-ninja/smart-property-search
0931c7c8195ec21cbd56768c9c84cea2927a9e1d
[ "MIT" ]
2
2020-05-26T14:02:12.000Z
2022-01-10T08:19:49.000Z
# coding: utf-8 """ Domain Group API V1 Provides public access to Domain's microservices # noqa: E501 OpenAPI spec version: v1 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 domainClient.api_client import ApiClient class AgenciesApi(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 agencies_create_test_agency(self, **kwargs): # noqa: E501 """Creates a test agency # noqa: E501 Enables automatic creation of a test agency in our sandbox environment. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.agencies_create_test_agency(async_req=True) >>> result = thread.get() :param async_req bool :return: DomainAgencyServiceV2ModelAgency If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.agencies_create_test_agency_with_http_info(**kwargs) # noqa: E501 else: (data) = self.agencies_create_test_agency_with_http_info(**kwargs) # noqa: E501 return data def agencies_create_test_agency_with_http_info(self, **kwargs): # noqa: E501 """Creates a test agency # noqa: E501 Enables automatic creation of a test agency in our sandbox environment. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.agencies_create_test_agency_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :return: DomainAgencyServiceV2ModelAgency If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 all_params.append('async_req') 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 agencies_create_test_agency" % 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', 'text/json', 'text/html', 'application/xml', 'text/xml']) # noqa: E501 # Authentication setting auth_settings = ['oauth2'] # noqa: E501 return self.api_client.call_api( '/v1/agencies/_testAgency', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='DomainAgencyServiceV2ModelAgency', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _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 agencies_get(self, id, **kwargs): # noqa: E501 """Retrieves a specific agency details. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.agencies_get(id, async_req=True) >>> result = thread.get() :param async_req bool :param int id: Agency identifier (required) :return: DomainAgencyServiceV2ModelAgency If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.agencies_get_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.agencies_get_with_http_info(id, **kwargs) # noqa: E501 return data def agencies_get_with_http_info(self, id, **kwargs): # noqa: E501 """Retrieves a specific agency details. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.agencies_get_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param int id: Agency identifier (required) :return: DomainAgencyServiceV2ModelAgency If the method is called asynchronously, returns the request thread. """ all_params = ['id'] # noqa: E501 all_params.append('async_req') 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 agencies_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params or params['id'] is None): raise ValueError("Missing the required parameter `id` when calling `agencies_get`") # noqa: E501 collection_formats = {} path_params = {} if 'id' in params: path_params['id'] = params['id'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'text/json', 'text/html', 'application/xml', 'text/xml']) # noqa: E501 # Authentication setting auth_settings = ['oauth2'] # noqa: E501 return self.api_client.call_api( '/v1/agencies/{id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='DomainAgencyServiceV2ModelAgency', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _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 agencies_get_bundle_contracts(self, id, **kwargs): # noqa: E501 """Retrieves the product bundle contracts applicable to the specific agency. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.agencies_get_bundle_contracts(id, async_req=True) >>> result = thread.get() :param async_req bool :param int id: Agency identifier (required) :return: list[DomainBookingServiceV1ModelProductBundleContractDetailsResponse] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.agencies_get_bundle_contracts_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.agencies_get_bundle_contracts_with_http_info(id, **kwargs) # noqa: E501 return data def agencies_get_bundle_contracts_with_http_info(self, id, **kwargs): # noqa: E501 """Retrieves the product bundle contracts applicable to the specific agency. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.agencies_get_bundle_contracts_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param int id: Agency identifier (required) :return: list[DomainBookingServiceV1ModelProductBundleContractDetailsResponse] If the method is called asynchronously, returns the request thread. """ all_params = ['id'] # noqa: E501 all_params.append('async_req') 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 agencies_get_bundle_contracts" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params or params['id'] is None): raise ValueError("Missing the required parameter `id` when calling `agencies_get_bundle_contracts`") # noqa: E501 collection_formats = {} path_params = {} if 'id' in params: path_params['id'] = params['id'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'text/json', 'text/html', 'application/xml', 'text/xml']) # noqa: E501 # Authentication setting auth_settings = ['oauth2'] # noqa: E501 return self.api_client.call_api( '/v1/agencies/{id}/bundlecontracts', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[DomainBookingServiceV1ModelProductBundleContractDetailsResponse]', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _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 agencies_get_listings(self, id, **kwargs): # noqa: E501 """Retrieves listings across all channels for a specific agency matching specified criteria. # noqa: E501 Note that the result page size is clamped at 200. Requesting a page size greater than this will be treated as if only a page size of 200 were requested. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.agencies_get_listings(id, async_req=True) >>> result = thread.get() :param async_req bool :param int id: Agency identifier (required) :param str listing_status_filter: Filter for listing status :param datetime date_updated_since: Filter to remove listings not updated since before the given date time :param int page_number: Page number for paginated results :param int page_size: Page size for paginated results :return: list[DomainPublicAdapterWebApiModelsV1ListingsListing] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.agencies_get_listings_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.agencies_get_listings_with_http_info(id, **kwargs) # noqa: E501 return data def agencies_get_listings_with_http_info(self, id, **kwargs): # noqa: E501 """Retrieves listings across all channels for a specific agency matching specified criteria. # noqa: E501 Note that the result page size is clamped at 200. Requesting a page size greater than this will be treated as if only a page size of 200 were requested. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.agencies_get_listings_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param int id: Agency identifier (required) :param str listing_status_filter: Filter for listing status :param datetime date_updated_since: Filter to remove listings not updated since before the given date time :param int page_number: Page number for paginated results :param int page_size: Page size for paginated results :return: list[DomainPublicAdapterWebApiModelsV1ListingsListing] If the method is called asynchronously, returns the request thread. """ all_params = ['id', 'listing_status_filter', 'date_updated_since', 'page_number', 'page_size'] # noqa: E501 all_params.append('async_req') 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 agencies_get_listings" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params or params['id'] is None): raise ValueError("Missing the required parameter `id` when calling `agencies_get_listings`") # noqa: E501 collection_formats = {} path_params = {} if 'id' in params: path_params['id'] = params['id'] # noqa: E501 query_params = [] if 'listing_status_filter' in params: query_params.append(('listingStatusFilter', params['listing_status_filter'])) # noqa: E501 if 'date_updated_since' in params: query_params.append(('dateUpdatedSince', params['date_updated_since'])) # noqa: E501 if 'page_number' in params: query_params.append(('pageNumber', params['page_number'])) # noqa: E501 if 'page_size' in params: query_params.append(('pageSize', params['page_size'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'text/json', 'text/html', 'application/xml', 'text/xml']) # noqa: E501 # Authentication setting auth_settings = ['oauth2'] # noqa: E501 return self.api_client.call_api( '/v1/agencies/{id}/listings', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[DomainPublicAdapterWebApiModelsV1ListingsListing]', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _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 agencies_get_statistics(self, id, **kwargs): # noqa: E501 """Retrieves statistics across all channels for a specific agency. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.agencies_get_statistics(id, async_req=True) >>> result = thread.get() :param async_req bool :param int id: Agency identifier (required) :param str time_period: Period to report on, Valid values are: `last7Days`, `last90Days`, `wholeCampaign`. Default is `last7Days`. :param str status_filter: Status to filter, Valid values are: `Live`, `LiveAndArchived`. Default is `LiveAndArchived` :param int page_number: Page number :param int page_size: Page size :return: list[DomainPublicAdapterWebApiModelsV1ListingsStatistics] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.agencies_get_statistics_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.agencies_get_statistics_with_http_info(id, **kwargs) # noqa: E501 return data def agencies_get_statistics_with_http_info(self, id, **kwargs): # noqa: E501 """Retrieves statistics across all channels for a specific agency. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.agencies_get_statistics_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param int id: Agency identifier (required) :param str time_period: Period to report on, Valid values are: `last7Days`, `last90Days`, `wholeCampaign`. Default is `last7Days`. :param str status_filter: Status to filter, Valid values are: `Live`, `LiveAndArchived`. Default is `LiveAndArchived` :param int page_number: Page number :param int page_size: Page size :return: list[DomainPublicAdapterWebApiModelsV1ListingsStatistics] If the method is called asynchronously, returns the request thread. """ all_params = ['id', 'time_period', 'status_filter', 'page_number', 'page_size'] # noqa: E501 all_params.append('async_req') 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 agencies_get_statistics" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params or params['id'] is None): raise ValueError("Missing the required parameter `id` when calling `agencies_get_statistics`") # noqa: E501 collection_formats = {} path_params = {} if 'id' in params: path_params['id'] = params['id'] # noqa: E501 query_params = [] if 'time_period' in params: query_params.append(('timePeriod', params['time_period'])) # noqa: E501 if 'status_filter' in params: query_params.append(('statusFilter', params['status_filter'])) # noqa: E501 if 'page_number' in params: query_params.append(('pageNumber', params['page_number'])) # noqa: E501 if 'page_size' in params: query_params.append(('pageSize', params['page_size'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'text/json', 'text/html', 'application/xml', 'text/xml']) # noqa: E501 # Authentication setting auth_settings = ['oauth2'] # noqa: E501 return self.api_client.call_api( '/v1/agencies/{id}/statistics', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[DomainPublicAdapterWebApiModelsV1ListingsStatistics]', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _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 agencies_get_subscriptions(self, id, **kwargs): # noqa: E501 """Retrieves the active subscriptions for the specific agency # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.agencies_get_subscriptions(id, async_req=True) >>> result = thread.get() :param async_req bool :param int id: Agency identifier (required) :param str channel: Channel. Either `residential` or `commercial` (case insensitive). Defaults to `residential` if not provided :return: list[DomainAgencyServiceV1ModelAgencySubscriptionDto] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.agencies_get_subscriptions_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.agencies_get_subscriptions_with_http_info(id, **kwargs) # noqa: E501 return data def agencies_get_subscriptions_with_http_info(self, id, **kwargs): # noqa: E501 """Retrieves the active subscriptions for the specific agency # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.agencies_get_subscriptions_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param int id: Agency identifier (required) :param str channel: Channel. Either `residential` or `commercial` (case insensitive). Defaults to `residential` if not provided :return: list[DomainAgencyServiceV1ModelAgencySubscriptionDto] If the method is called asynchronously, returns the request thread. """ all_params = ['id', 'channel'] # noqa: E501 all_params.append('async_req') 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 agencies_get_subscriptions" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params or params['id'] is None): raise ValueError("Missing the required parameter `id` when calling `agencies_get_subscriptions`") # noqa: E501 collection_formats = {} path_params = {} if 'id' in params: path_params['id'] = params['id'] # noqa: E501 query_params = [] if 'channel' in params: query_params.append(('channel', params['channel'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'text/json', 'text/html', 'application/xml', 'text/xml']) # noqa: E501 # Authentication setting auth_settings = ['oauth2'] # noqa: E501 return self.api_client.call_api( '/v1/agencies/{id}/subscriptions', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[DomainAgencyServiceV1ModelAgencySubscriptionDto]', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _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 agencies_head(self, q, **kwargs): # noqa: E501 """Retrieves summary of agency search # noqa: E501 Given a specified agency search criteria, this endpoint can be used to ascertain the result count that can be expected. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.agencies_head(q, async_req=True) >>> result = thread.get() :param async_req bool :param str q: Search phrase. e.g. name:\"Agency XYZ\" (required) :param int page_number: Page number for paginated results :param int page_size: Page size for paginated results :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.agencies_head_with_http_info(q, **kwargs) # noqa: E501 else: (data) = self.agencies_head_with_http_info(q, **kwargs) # noqa: E501 return data def agencies_head_with_http_info(self, q, **kwargs): # noqa: E501 """Retrieves summary of agency search # noqa: E501 Given a specified agency search criteria, this endpoint can be used to ascertain the result count that can be expected. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.agencies_head_with_http_info(q, async_req=True) >>> result = thread.get() :param async_req bool :param str q: Search phrase. e.g. name:\"Agency XYZ\" (required) :param int page_number: Page number for paginated results :param int page_size: Page size for paginated results :return: None If the method is called asynchronously, returns the request thread. """ all_params = ['q', 'page_number', 'page_size'] # noqa: E501 all_params.append('async_req') 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 agencies_head" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'q' is set if ('q' not in params or params['q'] is None): raise ValueError("Missing the required parameter `q` when calling `agencies_head`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] if 'q' in params: query_params.append(('q', params['q'])) # noqa: E501 if 'page_number' in params: query_params.append(('pageNumber', params['page_number'])) # noqa: E501 if 'page_size' in params: query_params.append(('pageSize', params['page_size'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'text/json', 'text/html', 'application/xml', 'text/xml']) # noqa: E501 # Authentication setting auth_settings = ['oauth2'] # noqa: E501 return self.api_client.call_api( '/v1/agencies', 'HEAD', 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, async_req=params.get('async_req'), _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 agencies_search(self, q, **kwargs): # noqa: E501 """Retrieves summary of agencies matching the specified criteria. # noqa: E501 <para>The <code>q</code> parameter supports:</para> <ul> <li>name: search by name eg. <code>name:\"Agency XYZ\"</code></li> <li>providerId: search by providerId. eg. <code>providerId:\"ABC Software\"</code></li> <li>domainUrl: search by domainUrl. eg. <code>domainUrl:\"agency-xyz\"</code></li> <li>dateUpdated: search by dateUpdated. eg. <code>dateUpdated:\"2016-12-25\"</code></li> <li>suburbId: search by suburbId. Lists supported. eg. <code>suburbId:1</code> eg. <code>suburbId:(1 OR 2 OR 3)</code>. Can include related suburbs by adding <code>in:related</code></li> <li>accountType: search by account type. Lists supported. eg. <code>accountType:residential</code> eg. <code>accountType:(residential OR commercial)</code> Valid values are: none, residential, commerciallight, commercialfull, developer, holiday, business</li> <li> <code>in:all</code> includes archived agencies (archived agencies excluded by default)</li> <li> <code>-is:selfservice</code> excludes selfservice</li> </ul> # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.agencies_search(q, async_req=True) >>> result = thread.get() :param async_req bool :param str q: Search phrase. e.g. name:\"Agency XYZ\" (required) :param int page_number: Page number for paginated results :param int page_size: Page size for paginated results :return: list[DomainAgencyServiceV2ModelAgencySummary] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.agencies_search_with_http_info(q, **kwargs) # noqa: E501 else: (data) = self.agencies_search_with_http_info(q, **kwargs) # noqa: E501 return data def agencies_search_with_http_info(self, q, **kwargs): # noqa: E501 """Retrieves summary of agencies matching the specified criteria. # noqa: E501 <para>The <code>q</code> parameter supports:</para> <ul> <li>name: search by name eg. <code>name:\"Agency XYZ\"</code></li> <li>providerId: search by providerId. eg. <code>providerId:\"ABC Software\"</code></li> <li>domainUrl: search by domainUrl. eg. <code>domainUrl:\"agency-xyz\"</code></li> <li>dateUpdated: search by dateUpdated. eg. <code>dateUpdated:\"2016-12-25\"</code></li> <li>suburbId: search by suburbId. Lists supported. eg. <code>suburbId:1</code> eg. <code>suburbId:(1 OR 2 OR 3)</code>. Can include related suburbs by adding <code>in:related</code></li> <li>accountType: search by account type. Lists supported. eg. <code>accountType:residential</code> eg. <code>accountType:(residential OR commercial)</code> Valid values are: none, residential, commerciallight, commercialfull, developer, holiday, business</li> <li> <code>in:all</code> includes archived agencies (archived agencies excluded by default)</li> <li> <code>-is:selfservice</code> excludes selfservice</li> </ul> # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.agencies_search_with_http_info(q, async_req=True) >>> result = thread.get() :param async_req bool :param str q: Search phrase. e.g. name:\"Agency XYZ\" (required) :param int page_number: Page number for paginated results :param int page_size: Page size for paginated results :return: list[DomainAgencyServiceV2ModelAgencySummary] If the method is called asynchronously, returns the request thread. """ all_params = ['q', 'page_number', 'page_size'] # noqa: E501 all_params.append('async_req') 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 agencies_search" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'q' is set if ('q' not in params or params['q'] is None): raise ValueError("Missing the required parameter `q` when calling `agencies_search`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] if 'q' in params: query_params.append(('q', params['q'])) # noqa: E501 if 'page_number' in params: query_params.append(('pageNumber', params['page_number'])) # noqa: E501 if 'page_size' in params: query_params.append(('pageSize', params['page_size'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'text/json', 'text/html', 'application/xml', 'text/xml']) # noqa: E501 # Authentication setting auth_settings = ['oauth2'] # noqa: E501 return self.api_client.call_api( '/v1/agencies', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[DomainAgencyServiceV2ModelAgencySummary]', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _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)
44.406739
1,054
0.62582
4,270
36,902
5.198829
0.067916
0.041804
0.020181
0.025947
0.947475
0.940223
0.93761
0.925717
0.925717
0.924096
0
0.016406
0.278169
36,902
830
1,055
44.460241
0.816984
0.396591
0
0.793722
1
0
0.204069
0.063964
0
0
0
0
0
1
0.038117
false
0
0.008969
0
0.103139
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
8f6bdc4d357f92e208148ffdf3f8cbcf02652ef3
1,751
py
Python
tests/test_alarm.py
dmulcahey/aioflo
0c7e2befc1bc38cd4274f5e75627e4b8b516a93a
[ "MIT" ]
9
2020-05-21T02:31:00.000Z
2021-10-21T21:24:06.000Z
tests/test_alarm.py
dmulcahey/aioflo
0c7e2befc1bc38cd4274f5e75627e4b8b516a93a
[ "MIT" ]
48
2020-01-16T17:22:47.000Z
2022-03-01T18:06:20.000Z
tests/test_alarm.py
dmulcahey/aioflo
0c7e2befc1bc38cd4274f5e75627e4b8b516a93a
[ "MIT" ]
1
2020-07-24T11:41:52.000Z
2020-07-24T11:41:52.000Z
"""Define tests for alarm-related endpoints.""" import json import aiohttp import pytest from aioflo import async_get_api from .common import TEST_EMAIL_ADDRESS, TEST_PASSWORD, load_fixture @pytest.mark.asyncio async def test_get_user_info(aresponses, auth_success_response): """Test successfully retrieving user info.""" aresponses.add( "api.meetflo.com", "/api/v1/users/auth", "post", aresponses.Response(text=json.dumps(auth_success_response), status=200), ) aresponses.add( "api-gw.meetflo.com", "/api/v2/alarms", "get", aresponses.Response(text=load_fixture("alarms_response.json"), status=200), ) async with aiohttp.ClientSession() as session: api = await async_get_api(TEST_EMAIL_ADDRESS, TEST_PASSWORD, session=session) alarm_info = await api.alarm.get_all() assert len(alarm_info["items"]) == 1 assert alarm_info["items"][0]["name"] == "health_test_skipped" @pytest.mark.asyncio async def test_get_user_info_no_session(aresponses, auth_success_response): """Test successfully retrieving user info with an auto-generated session.""" aresponses.add( "api.meetflo.com", "/api/v1/users/auth", "post", aresponses.Response(text=json.dumps(auth_success_response), status=200), ) aresponses.add( "api-gw.meetflo.com", "/api/v2/alarms", "get", aresponses.Response(text=load_fixture("alarms_response.json"), status=200), ) api = await async_get_api(TEST_EMAIL_ADDRESS, TEST_PASSWORD) alarm_info = await api.alarm.get_all() assert len(alarm_info["items"]) == 1 assert alarm_info["items"][0]["name"] == "health_test_skipped"
31.836364
85
0.676756
223
1,751
5.098655
0.286996
0.047493
0.066843
0.05277
0.814424
0.789798
0.789798
0.789798
0.789798
0.608619
0
0.014194
0.195317
1,751
54
86
32.425926
0.792761
0.023415
0
0.666667
0
0
0.157928
0
0
0
0
0
0.095238
1
0
false
0.071429
0.119048
0
0.119048
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
8542eaebc317a5de437163227b9eb16e3ac40990
12,956
py
Python
tests/test_run_compare.py
xiaoluo91/whatshap
9882248c722b1020321fea6e9491c1cc5b75354b
[ "MIT" ]
2
2020-06-26T08:35:00.000Z
2020-07-13T04:30:11.000Z
tests/test_run_compare.py
xiaoluo91/whatshap
9882248c722b1020321fea6e9491c1cc5b75354b
[ "MIT" ]
null
null
null
tests/test_run_compare.py
xiaoluo91/whatshap
9882248c722b1020321fea6e9491c1cc5b75354b
[ "MIT" ]
null
null
null
""" Tests for 'whatshap compare' """ from collections import namedtuple from whatshap.cli.compare import run_compare, compute_switch_flips_poly, compare_block def test_compare1(tmp_path): outtsv = tmp_path / "output.tsv" run_compare( vcf=["tests/data/phased1.vcf", "tests/data/phased2.vcf"], ploidy=2, names="p1,p2", tsv_pairwise=outtsv, sample="sample1", ) lines = [l.split("\t") for l in open(outtsv)] assert len(lines) == 3 Fields = namedtuple("Fields", [f.strip("#\n") for f in lines[0]]) entry_chrA, entry_chrB = [Fields(*l) for l in lines[1:]] assert entry_chrA.chromosome == "chrA" assert entry_chrA.all_assessed_pairs == "4" assert entry_chrA.all_switches == "1" assert entry_chrA.all_switchflips == "1/0" assert entry_chrA.blockwise_hamming == "1" assert entry_chrA.largestblock_assessed_pairs == "2" assert entry_chrA.largestblock_switches == "1" assert entry_chrA.largestblock_hamming == "1" assert entry_chrB.chromosome == "chrB" assert entry_chrB.all_assessed_pairs == "1" assert entry_chrB.all_switches == "0" assert entry_chrB.all_switchflips == "0/0" assert entry_chrB.blockwise_hamming == "0" assert entry_chrB.largestblock_assessed_pairs == "1" assert entry_chrB.largestblock_switches == "0" assert entry_chrB.largestblock_hamming == "0" def test_compare2(tmp_path): outtsv = tmp_path / "output.tsv" run_compare( vcf=["tests/data/phased1.vcf", "tests/data/phased2.vcf"], ploidy=2, names="p1,p2", tsv_pairwise=outtsv, sample="sample2", ) lines = [l.split("\t") for l in open(outtsv)] assert len(lines) == 3 Fields = namedtuple("Fields", [f.strip("#\n") for f in lines[0]]) entry_chrA, entry_chrB = [Fields(*l) for l in lines[1:]] assert entry_chrA.chromosome == "chrA" assert entry_chrA.all_assessed_pairs == "6" assert entry_chrA.all_switches == "2" assert entry_chrA.all_switchflips == "0/1" assert entry_chrA.blockwise_hamming == "1" assert entry_chrA.largestblock_assessed_pairs == "5" assert entry_chrA.largestblock_switches == "2" assert entry_chrA.largestblock_hamming == "1" assert entry_chrB.chromosome == "chrB" assert entry_chrB.all_assessed_pairs == "1" assert entry_chrB.all_switches == "1" assert entry_chrB.all_switchflips == "1/0" assert entry_chrB.blockwise_hamming == "1" assert entry_chrB.largestblock_assessed_pairs == "1" assert entry_chrB.largestblock_switches == "1" assert entry_chrB.largestblock_hamming == "1" def test_compare_polyploid1(tmp_path): outtsv = tmp_path / "output.tsv" run_compare( vcf=["tests/data/phased.poly1.vcf", "tests/data/phased.poly2.vcf"], ploidy=4, names="p1,p2", tsv_pairwise=outtsv, sample="sample1", ) with open(outtsv) as t: lines = [line.split("\t") for line in t] assert len(lines) == 3 Fields = namedtuple("Fields", [f.strip("#\n") for f in lines[0]]) entry_chr21, entry_chr22 = [Fields(*l) for l in lines[1:]] assert entry_chr21.chromosome == "chr21" assert entry_chr21.all_assessed_pairs == "1" assert entry_chr21.all_switches == "0.0" assert entry_chr21.all_switchflips == "0.0/0.0" assert entry_chr21.blockwise_hamming == "0.0" assert entry_chr21.blockwise_diff_genotypes == "0" assert entry_chr21.largestblock_assessed_pairs == "1" assert entry_chr21.largestblock_switches == "0.0" assert entry_chr21.largestblock_hamming == "0.0" assert entry_chr21.largestblock_diff_genotypes == "0" assert entry_chr22.chromosome == "chr22" assert entry_chr22.all_assessed_pairs == "6" assert entry_chr22.all_switches == "1.0" assert entry_chr22.all_switchflips == "0.0/0.5" assert entry_chr22.blockwise_hamming == "0.5" assert entry_chr22.blockwise_diff_genotypes == "0" assert entry_chr22.largestblock_assessed_pairs == "5" assert entry_chr22.largestblock_switches == "1.0" assert entry_chr22.largestblock_hamming == "0.5" assert entry_chr22.largestblock_diff_genotypes == "0" def test_compare_polyploid2(tmp_path): outtsv = tmp_path / "output.tsv" run_compare( vcf=["tests/data/phased.poly1.vcf", "tests/data/phased.poly2.vcf"], ploidy=4, names="p1,p2", tsv_pairwise=outtsv, sample="sample2", ) with open(outtsv) as t: lines = [line.split("\t") for line in t] assert len(lines) == 3 Fields = namedtuple("Fields", [f.strip("#\n") for f in lines[0]]) entry_chr21, entry_chr22 = [Fields(*l) for l in lines[1:]] assert entry_chr21.chromosome == "chr21" assert entry_chr21.all_assessed_pairs == "3" assert entry_chr21.all_switches == "0.5" assert entry_chr21.all_switchflips in ["0.5/0.0", "0.0/0.5"] assert entry_chr21.blockwise_hamming == "0.5" assert entry_chr21.blockwise_diff_genotypes == "0" assert entry_chr21.largestblock_assessed_pairs == "3" assert entry_chr21.largestblock_switches == "0.5" assert entry_chr21.largestblock_switchflips in ["0.5/0.0", "0.0/0.5"] assert entry_chr21.largestblock_hamming == "0.5" assert entry_chr21.largestblock_diff_genotypes == "0" assert entry_chr22.chromosome == "chr22" assert entry_chr22.all_assessed_pairs == "5" assert entry_chr22.all_switches == "1.0" assert entry_chr22.all_switchflips in ["1.0/0.0", "0.5/0.5", "0.0/1.0"] assert entry_chr22.blockwise_hamming == "1.0" assert entry_chr22.blockwise_diff_genotypes == "0" assert entry_chr22.largestblock_assessed_pairs == "3" assert entry_chr22.largestblock_switches == "0.5" assert entry_chr22.largestblock_switchflips in ["0.5/0.0", "0.0/0.5"] assert entry_chr22.largestblock_hamming == "0.5" assert entry_chr22.largestblock_diff_genotypes == "0" def test_compare_polyploid3(tmp_path): outtsv = tmp_path / "output.tsv" run_compare( vcf=["tests/data/phased.poly1.vcf", "tests/data/phased.poly3.vcf"], ploidy=4, names="p1,p2", tsv_pairwise=outtsv, sample="sample1", ) with open(outtsv) as t: lines = [line.split("\t") for line in t] assert len(lines) == 3 Fields = namedtuple("Fields", [f.strip("#\n") for f in lines[0]]) entry_chr21, entry_chr22 = [Fields(*l) for l in lines[1:]] assert entry_chr21.chromosome == "chr21" assert entry_chr21.all_assessed_pairs == "2" assert entry_chr21.all_switches == "0.0" assert entry_chr21.all_switchflips == "0.0/0.0" assert entry_chr21.blockwise_hamming == "0.0" assert entry_chr21.blockwise_diff_genotypes == "0" assert entry_chr21.largestblock_assessed_pairs == "2" assert entry_chr21.largestblock_switches == "0.0" assert entry_chr21.largestblock_switchflips == "0.0/0.0" assert entry_chr21.largestblock_hamming == "0.0" assert entry_chr21.largestblock_diff_genotypes == "0" assert entry_chr22.chromosome == "chr22" assert entry_chr22.all_assessed_pairs == "6" assert entry_chr22.all_switches == "0.0" assert entry_chr22.all_switchflips == "0.0/0.25" assert entry_chr22.blockwise_hamming == "0.25" assert entry_chr22.blockwise_diff_genotypes == "1" assert entry_chr22.largestblock_assessed_pairs == "4" assert entry_chr22.largestblock_switches == "0.0" assert entry_chr22.largestblock_switchflips == "0.0/0.25" assert entry_chr22.largestblock_hamming == "0.25" assert entry_chr22.largestblock_diff_genotypes == "1" def test_compare_only_snvs(tmp_path): outtsv = tmp_path / "output.tsv" run_compare( vcf=["tests/data/phased1.vcf", "tests/data/phased2.vcf"], ploidy=2, names="p1,p2", tsv_pairwise=outtsv, sample="sample2", only_snvs=True, ) with open(outtsv) as t: lines = [line.split("\t") for line in t] assert len(lines) == 3 Fields = namedtuple("Fields", [f.strip("#\n") for f in lines[0]]) entry_chrA, entry_chrB = [Fields(*l) for l in lines[1:]] assert entry_chrA.chromosome == "chrA" assert entry_chrA.all_assessed_pairs == "3" assert entry_chrA.all_switches == "2" assert entry_chrA.all_switchflips == "0/1" assert entry_chrA.largestblock_assessed_pairs == "3" assert entry_chrA.largestblock_switches == "2" assert entry_chrA.largestblock_hamming == "1" assert entry_chrB.chromosome == "chrB" assert entry_chrB.all_assessed_pairs == "1" assert entry_chrB.all_switches == "1" assert entry_chrB.all_switchflips == "1/0" assert entry_chrB.largestblock_assessed_pairs == "1" assert entry_chrB.largestblock_switches == "1" assert entry_chrB.largestblock_hamming == "1" def test_compare_unphased(): run_compare( vcf=["tests/data/unphased.vcf", "tests/data/unphased.vcf", "tests/data/unphased.vcf",], ploidy=2, sample="sample1", ) def test_compute_switch_flips_poly(): phasing0 = ["0100", "1011"] phasing1 = ["0000", "1111"] sfp = compute_switch_flips_poly(phasing0, phasing1, flip_cost=3) assert sfp.switches == 2.0 assert sfp.flips == 0 phasing = ["00000000", "11111111"] truth = ["00000000", "11111111"] sfp = compute_switch_flips_poly(phasing, truth) assert sfp.flips + sfp.switches == 0.0 phasing = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 1, 1, 1, 1]] truth = [[0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0]] sfp = compute_switch_flips_poly(phasing, truth) assert sfp.flips + sfp.switches == 0.0 phasing = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 1, 1, 1, 1]] truth = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]] sfp = compute_switch_flips_poly(phasing, truth) assert sfp.flips + sfp.switches == 2.0 phasing = [[1, 1, 1, 1, 0, 0, 0, 0], [0, 0, 0, 0, 1, 1, 1, 1]] truth = [[0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1]] sfp = compute_switch_flips_poly(phasing, truth) assert sfp.flips + sfp.switches == 1.0 phasing = [[1, 1, 1, 1, 0, 0, 1, 0], [0, 0, 0, 0, 1, 1, 1, 1]] truth = [[0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1]] sfp = compute_switch_flips_poly(phasing, truth) assert sfp.flips + sfp.switches == 1.5 phasing = [[1, 1, 1, 1, 0, 0, 1, 0], [0, 0, 0, 0, 1, 1, 1, 1]] truth = [[0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1]] sfp = compute_switch_flips_poly(phasing, truth, flip_cost=5, switch_cost=1) assert sfp.flips * 5 + sfp.switches == 3.5 phasing = [[1, 1, 1, 1, 0, 0, 1, 0], [0, 0, 0, 0, 1, 1, 1, 1]] truth = [[0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1]] sfp = compute_switch_flips_poly(phasing, truth, flip_cost=1, switch_cost=10) assert sfp.flips + sfp.switches * 10 == 3.5 phasing = [[0, 0, 0, 1, 0, 0, 0, 0], [1, 1, 1, 0, 1, 1, 1, 1]] truth = [[0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1]] sfp = compute_switch_flips_poly(phasing, truth) assert sfp.flips + sfp.switches == 1.0 phasing = [[0, 0, 0, 1, 0, 0, 0, 0], [1, 1, 1, 0, 1, 1, 1, 1]] truth = [[0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1]] sfp = compute_switch_flips_poly(phasing, truth, flip_cost=5, switch_cost=1) assert sfp.flips * 5 + sfp.switches == 2.0 phasing = [[0, 0, 0, 1, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1]] truth = [[0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1]] sfp = compute_switch_flips_poly(phasing, truth, flip_cost=float("inf"), switch_cost=1) assert sfp.flips * float("inf") + sfp.switches == float("inf") def test_compare_block(): phasing = ["1111111111", "0000000000"] truth = ["1111100000", "0000011111"] phasing_errors = compare_block(phasing, truth) assert phasing_errors.switches == 1 assert phasing_errors.hamming == 5 phasing = ["000000", "101111", "111010"] truth = ["000000", "101010", "111111"] phasing_errors = compare_block(phasing, truth) assert phasing_errors.hamming == 2.0 / 3.0 switch_flips = phasing_errors.switch_flips assert switch_flips.switches == 2.0 / 3.0 phasing = ["1110001", "1011101", "0000010"] truth = ["1110001", "1010010", "0001101"] phasing_errors = compare_block(phasing, truth) assert phasing_errors.hamming == 4.0 / 3.0 switch_flips = phasing_errors.switch_flips assert switch_flips.switches == 2.0 / 3.0 phasing = ["1111101", "1010001", "0000010"] truth = ["1110001", "1010010", "0001101"] phasing_errors = compare_block(phasing, truth) assert phasing_errors.hamming == 6.0 / 3.0 switch_flips = phasing_errors.switch_flips assert switch_flips.switches == 3.0 / 3.0 phasing = ["111111", "111111", "111111"] truth = ["111111", "000000", "111111"] phasing_errors = compare_block(phasing, truth) assert phasing_errors.hamming == 2.0 switch_flips = phasing_errors.switch_flips assert switch_flips.switches == 0.0
39.864615
95
0.649506
1,917
12,956
4.191445
0.062076
0.044306
0.047791
0.047791
0.916739
0.882514
0.808463
0.803236
0.792657
0.773242
0
0.096117
0.200988
12,956
324
96
39.987654
0.680062
0.002161
0
0.628159
0
0
0.087616
0.028096
0
0
0
0
0.498195
1
0.032491
false
0
0.00722
0
0.039711
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
1
0
0
0
0
0
0
0
0
0
7
85c3507f0986bb2657deb68bdf52b7d378d012d9
103,820
py
Python
blocks.py
ThomasDoylend/PyCraft3
2f4bd6b61d81e0b959ae131e73ef5361f6ec37b7
[ "MIT" ]
1
2017-10-24T18:00:59.000Z
2017-10-24T18:00:59.000Z
blocks.py
ThomasDoylend/PyCraft3
2f4bd6b61d81e0b959ae131e73ef5361f6ec37b7
[ "MIT" ]
null
null
null
blocks.py
ThomasDoylend/PyCraft3
2f4bd6b61d81e0b959ae131e73ef5361f6ec37b7
[ "MIT" ]
null
null
null
pygame.mixer.init(channels=64) #kaboom = pygame.mixer.Sound("sounds/EXPLODE.WAV") class BlockError(Exception): pass PASTELS = [ (0.8,0.8,0.8,1.0), (0.7,0.9,1.0,1.0), (0.7,0.9,0.9,1.0), (0.9,0.7,0.8,1.0), (0.7,0.9,0.8,1.0), (0.7,1.0,0.7,1.0)] def ro(): return (random()-0.5)*0.2 class BasicBlock: coords_top=[RATE*1,RATE*15,RATE*2,RATE*14] coords_btm=[RATE*1,RATE*15,RATE*2,RATE*14] coords_lft=[RATE*1,RATE*15,RATE*2,RATE*14] coords_rgt=[RATE*1,RATE*15,RATE*2,RATE*14] coords_fwd=[RATE*1,RATE*15,RATE*2,RATE*14] coords_bck=[RATE*1,RATE*15,RATE*2,RATE*14] o_solid=True o_dynamic=False o_usable=False o_changesTo=None o_glows=0 o_breakFall=False o_name="Totally Boring" index=0 ag=False trans = False cutoff = True dcutoff=True o_combust = -1 particle_colors = [(0.5,0.5,0.5,1.0),(0.75,0.75,0.75,1.0)] def getState(self): #print "Ungghhhh!" return 0 def getE(self): return (0,0,0,0,0,0) #o_linked=[] def __init__(self,pos,world,create=True,recompile=True,state=0): self.pos=pos self.world=world self.solid=self.o_solid self.name=self.o_name self.dynamic=self.o_dynamic self.usable=self.o_usable self.changesTo = self.o_changesTo if self.changesTo: self.countdown=randint(30,60) self.glows=self.o_glows self.breakFall = self.o_breakFall if create:self.world.setBlockAt(self,recompile) self.render() self.linked=[] self.burn_counter = 0 def __str__(self): return self.o_name def render_index(self): glDisable(GL_TEXTURE_2D) glBegin(GL_QUADS) glColor(0.5,0.5,0.5,1.0); glNormal3f(0,0,1) glTexCoord2f(self.coords_fwd[0],self.coords_fwd[3]); glVertex3f(self.pos[0]+ -0.5,self.pos[1]+-0.5,self.pos[2]+0.5) #Front glTexCoord2f(self.coords_fwd[2],self.coords_fwd[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_fwd[2],self.coords_fwd[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_fwd[0],self.coords_fwd[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glNormal3f(0,0,-1) glColor(0,1,0,1.0); glTexCoord2f(self.coords_bck[2],self.coords_bck[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_bck[0],self.coords_bck[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Back glTexCoord2f(self.coords_bck[0],self.coords_bck[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_bck[2],self.coords_bck[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glNormal3f(0,-1,0) glColor(0,0,1,1.0); glTexCoord2f(self.coords_btm[2],self.coords_btm[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Bottom glTexCoord2f(self.coords_btm[0],self.coords_btm[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_btm[0],self.coords_btm[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_btm[2],self.coords_btm[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glNormal3f(0,1,0) glColor(1,1,0,1.0); glTexCoord2f(self.coords_top[0],self.coords_top[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #Top glTexCoord2f(self.coords_top[2],self.coords_top[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_top[2],self.coords_top[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_top[0],self.coords_top[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glNormal3f(-1,0,0) glColor(0,1,1,1.0); glTexCoord2f(self.coords_lft[0],self.coords_lft[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_lft[0],self.coords_lft[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #left glTexCoord2f(self.coords_lft[2],self.coords_lft[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_lft[2],self.coords_lft[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glNormal3f(1,0,0) glColor(1,0,1,1.0); glTexCoord2f(self.coords_rgt[2],self.coords_rgt[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_rgt[2],self.coords_rgt[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #right glTexCoord2f(self.coords_rgt[0],self.coords_rgt[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_rgt[0],self.coords_rgt[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glEnd() glEnable(GL_TEXTURE_2D) def render(self): #glBegin(GL_QUADS) #glColor(0.5,0.5,0.5,1.0); glNormal3f(0,0,-1) glColor(0.8,0.8,0.8) try: if not self.world.getBlockAt((self.pos[0],self.pos[1],self.pos[2]+1)).cutoff: raise BlockError except: #p#rint "Front!" glTexCoord2d(self.coords_fwd[0],self.coords_fwd[3]); glVertex3f(self.pos[0]+ -0.5,self.pos[1]+-0.5,self.pos[2]+0.5) #Front glTexCoord2d(self.coords_fwd[2],self.coords_fwd[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2d(self.coords_fwd[2],self.coords_fwd[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2d(self.coords_fwd[0],self.coords_fwd[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glNormal3f(0,0,1) glColor(0.6,0.6,0.6) try: if not self.world.getBlockAt((self.pos[0],self.pos[1],self.pos[2]-1)).cutoff: raise BlockError except: glTexCoord2d(self.coords_bck[2],self.coords_bck[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2d(self.coords_bck[0],self.coords_bck[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Back glTexCoord2d(self.coords_bck[0],self.coords_bck[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2d(self.coords_bck[2],self.coords_bck[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glNormal3f(0,-1,0) try: if not self.world.getBlockAt((self.pos[0],self.pos[1]-1,self.pos[2])).cutoff: raise BlockError except: glTexCoord2d(self.coords_btm[2],self.coords_btm[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Bottom glTexCoord2d(self.coords_btm[0],self.coords_btm[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2d(self.coords_btm[0],self.coords_btm[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2d(self.coords_btm[2],self.coords_btm[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glNormal3f(0,1,0) glColor(1,1,1) try: if not self.world.getBlockAt((self.pos[0],self.pos[1]+1,self.pos[2])).cutoff: raise BlockError except: glTexCoord2d(self.coords_top[0],self.coords_top[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #Top glTexCoord2d(self.coords_top[2],self.coords_top[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2d(self.coords_top[2],self.coords_top[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2d(self.coords_top[0],self.coords_top[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glNormal3f(-1,0,0) glColor(0.8,0.8,0.8) try: if not self.world.getBlockAt((self.pos[0]-1,self.pos[1],self.pos[2])).cutoff: raise BlockError except: glTexCoord2d(self.coords_lft[0],self.coords_lft[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2d(self.coords_lft[0],self.coords_lft[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #left glTexCoord2d(self.coords_lft[2],self.coords_lft[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2d(self.coords_lft[2],self.coords_lft[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glNormal3f(1,0,0) glColor(0.7,0.7,0.7) try: if not self.world.getBlockAt((self.pos[0]+1,self.pos[1],self.pos[2])).cutoff: raise BlockError except: glTexCoord2d(self.coords_rgt[2],self.coords_rgt[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2d(self.coords_rgt[2],self.coords_rgt[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #right glTexCoord2d(self.coords_rgt[0],self.coords_rgt[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2d(self.coords_rgt[0],self.coords_rgt[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) #glEnd() def on_kill(self): pass class Bush(BasicBlock): o_dynamic= False cutoff = False index = 54 trans= True coords_fwd=[RATE*0,RATE*4,RATE*1,RATE*3] coords_lft=[RATE*0,RATE*4,RATE*1,RATE*3] coords_top=[RATE*0,RATE*4,RATE*1,RATE*3] coords_btm=[RATE*0,RATE*4,RATE*1,RATE*3] coords_rgt=[RATE*0,RATE*4,RATE*1,RATE*3] coords_bck=[RATE*0,RATE*4,RATE*1,RATE*3] def render(self): glTexCoord2f(self.coords_lft[0],self.coords_lft[3]); glVertex3f(self.pos[0],self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_lft[0],self.coords_lft[1]); glVertex3f(self.pos[0],self.pos[1]+0.5,self.pos[2]+-0.5) #left glTexCoord2f(self.coords_lft[2],self.coords_lft[1]); glVertex3f(self.pos[0],self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_lft[2],self.coords_lft[3]); glVertex3f(self.pos[0],self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_fwd[0],self.coords_fwd[3]); glVertex3f(self.pos[0]+ -0.5,self.pos[1]+-0.5,self.pos[2]) #Front glTexCoord2f(self.coords_fwd[2],self.coords_fwd[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]) glTexCoord2f(self.coords_fwd[2],self.coords_fwd[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]) glTexCoord2f(self.coords_fwd[0],self.coords_fwd[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]) class Chemicals(BasicBlock): particle_colors = [(0,1,0),(0,0.5,0),(0,0.75,0)] o_dynamic = True coords_top=[RATE*0,RATE*3,RATE*1,RATE*2] coords_btm=[RATE*0,RATE*3,RATE*1,RATE*2] coords_lft=[RATE*1,RATE*3,RATE*2,RATE*2] coords_rgt=[RATE*1,RATE*3,RATE*2,RATE*2] coords_fwd=[RATE*1,RATE*3,RATE*2,RATE*2] coords_bck=[RATE*1,RATE*3,RATE*2,RATE*2] index = 53 cutoff = False o_solid=False def __init__(self,pos,world,create=True,recompile=True,state=0): self.count = randint(0,7) self.mcount=randint(0,3) self.burnmode = [1,1,1,1] BasicBlock.__init__(self,pos,world,create,False) def on_dynamic_update(self): pass if randint(1,5)==2: if randint(1,3)==2: delta = choice(([-1,0,0],[1,0,0],[0,0,1],[0,0,-1],[0,1,0],[-1,1,0],[1,1,0],[0,1,1],[0,1,-1])) else:delta = choice(([0,1,0],[-1,1,0],[1,1,0],[0,1,1],[0,1,-1])) block = self.world.getBlockAt((self.pos[0]+delta[0],self.pos[1]+delta[1],self.pos[2]+delta[2])) if not block: delta2 = choice(([-1,0,0],[1,0,0],[0,0,1],[0,0,-1],[0,-1,0])) block2 = self.world.getBlockAt((self.pos[0]+delta[0]+delta2[0],self.pos[1]+delta[1]+delta2[1],self.pos[2]+delta[2]+delta2[2])) if block2: if block2.index != 53: y=Chemicals((self.pos[0]+delta[0],self.pos[1]+delta[1],self.pos[2]+delta[2]),self.world,recompile=False) #if delta2[0]-delta[0] == 1: # y.burnmode=1 rdelta = choice(((-1,0,0),(1,0,0),(0,0,1),(0,0,-1),(0,-1,0))) block = self.world.getBlockAt((self.pos[0]+rdelta[0],self.pos[1]+rdelta[1],self.pos[2]+rdelta[2])) if block: #print rdelta, block.index if block.index != 53: if self.burnmode != None: if rdelta == (0,0,-1): #print "!!!!!" self.burnmode[3] = 1 elif rdelta==(0,0,1): self.burnmode[2] = 1 elif rdelta==(-1,0,0): self.burnmode[1] = 1 elif rdelta==(1,0,0): self.burnmode[0] = 1 elif rdelta==(0,-1,0): self.burnmode = None if block.index==20: if block.countdown == -1: block.on_use() else: if self.burnmode != None: if rdelta == (0,0,-1): #print "!!!!!" self.burnmode[3] = 0 elif rdelta==(0,0,1): self.burnmode[2] = 0 elif rdelta==(-1,0,0): self.burnmode[1] = 0 elif rdelta==(1,0,0): self.burnmode[0] = 0 elif rdelta==(0,-1,0): self.burnmode = [1,1,1,1] def render(self): self.mcount+=1 if self.mcount==4: self.mcount=0 self.count += 1 self.count = self.count % 8 if self.burnmode==None: glTexCoord2f(self.coords_lft[0]+(RATE*self.count),self.coords_lft[3]); glVertex3f(self.pos[0]-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_lft[0]+(RATE*self.count),self.coords_lft[1]); glVertex3f(self.pos[0]-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #left glTexCoord2f(self.coords_lft[2]+(RATE*self.count),self.coords_lft[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_lft[2]+(RATE*self.count),self.coords_lft[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_fwd[0]+(RATE*self.count),self.coords_fwd[3]); glVertex3f(self.pos[0]+ -0.5,self.pos[1]+-0.5,self.pos[2]+0.5) #Front glTexCoord2f(self.coords_fwd[2]+(RATE*self.count),self.coords_fwd[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]-0.5) glTexCoord2f(self.coords_fwd[2]+(RATE*self.count),self.coords_fwd[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]-0.5) glTexCoord2f(self.coords_fwd[0]+(RATE*self.count),self.coords_fwd[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) else: if self.burnmode[0]: glTexCoord2f(self.coords_fwd[0]+(RATE*self.count),self.coords_fwd[3]); glVertex3f(self.pos[0]+ -0.5,self.pos[1]+-0.5,self.pos[2]-0.5) #Front glTexCoord2f(self.coords_fwd[2]+(RATE*self.count),self.coords_fwd[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]-0.5) glTexCoord2f(self.coords_fwd[2]+(RATE*self.count),self.coords_fwd[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]-0.4) glTexCoord2f(self.coords_fwd[0]+(RATE*self.count),self.coords_fwd[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]-0.4) if self.burnmode==[1]: glTexCoord2f(self.coords_fwd[0]+(RATE*self.count),self.coords_fwd[3]); glVertex3f(self.pos[0]+ -0.5,self.pos[1]+-0.5,self.pos[2]+0.5) #Front glTexCoord2f(self.coords_fwd[2]+(RATE*self.count),self.coords_fwd[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_fwd[2]+(RATE*self.count),self.coords_fwd[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.4) glTexCoord2f(self.coords_fwd[0]+(RATE*self.count),self.coords_fwd[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.4) if self.burnmode==[2]: glTexCoord2f(self.coords_fwd[0]+(RATE*self.count),self.coords_fwd[3]); glVertex3f(self.pos[0] -0.5,self.pos[1]+-0.5,self.pos[2]+0.5) #Front glTexCoord2f(self.coords_fwd[2]+(RATE*self.count),self.coords_fwd[3]); glVertex3f(self.pos[0]-0.5,self.pos[1]+-0.5,self.pos[2]-0.5) glTexCoord2f(self.coords_fwd[2]+(RATE*self.count),self.coords_fwd[1]); glVertex3f(self.pos[0]-0.4,self.pos[1]+0.5,self.pos[2]-0.5) glTexCoord2f(self.coords_fwd[0]+(RATE*self.count),self.coords_fwd[1]); glVertex3f(self.pos[0]-0.4,self.pos[1]+0.5,self.pos[2]+0.5) if self.burnmode==[3]: glTexCoord2f(self.coords_fwd[0]+(RATE*self.count),self.coords_fwd[3]); glVertex3f(self.pos[0] +0.5,self.pos[1]+-0.5,self.pos[2]+0.5) #Front glTexCoord2f(self.coords_fwd[2]+(RATE*self.count),self.coords_fwd[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]-0.5) glTexCoord2f(self.coords_fwd[2]+(RATE*self.count),self.coords_fwd[1]); glVertex3f(self.pos[0]+0.4,self.pos[1]+0.5,self.pos[2]-0.5) glTexCoord2f(self.coords_fwd[0]+(RATE*self.count),self.coords_fwd[1]); glVertex3f(self.pos[0]+0.4,self.pos[1]+0.5,self.pos[2]+0.5) class StickyPusherLeft(BasicBlock): particle_colors = [(0.3,0.14,0.0)] coords_top=[RATE*6,RATE*13,RATE*7,RATE*12] coords_btm=[RATE*6,RATE*13,RATE*7,RATE*12] coords_lft=[RATE*8,RATE*14,RATE*9,RATE*13] coords_rgt=[RATE*6,RATE*13,RATE*7,RATE*12] coords_fwd=[RATE*6,RATE*13,RATE*7,RATE*12] coords_bck=[RATE*6,RATE*13,RATE*7,RATE*12] index=52 o_name="Sticky" o_dynamic = True def __init__(self,pos,world,create=True,recompile=True,state=0): self.state=False BasicBlock.__init__(self,pos,world,create,False) def on_dynamic_update(self): if sum(self.world.getNeighboringCurrents(self.pos)): self.state=True y= self.world.getBlockAt((self.pos[0]-1,self.pos[1],self.pos[2])) d = 1 shoved = [] while y: self.world.killBlock(y,recompile=False) y.pos = (y.pos[0]-1,y.pos[1],y.pos[2]) #self.world.setBlockAt(y,recompile=False) shoved.append(y) d+=1 y= self.world.getBlockAt((self.pos[0]-d,self.pos[1],self.pos[2])) for block in shoved: self.world.setBlockAt(block,recompile=False) if shoved:self.world.recompile() else: out = self.world.getBlockAt((self.pos[0]-1,self.pos[1],self.pos[2])) out2 = self.world.getBlockAt((self.pos[0]-2,self.pos[1],self.pos[2])) if out2 is None: self.state=False if out2 and not out: try: if out2.name=="Sticky": if not out2.state:raise TypeError,"Huhu!" else: raise TypeError, "Uiyipe!" except Exception as e: print e self.state=False self.world.killBlock(out2,recompile=False) out2.pos = (out2.pos[0]+1,out2.pos[1],out2.pos[2]) self.world.setBlockAt(out2,recompile=False) self.world.recompile() else:self.state=False class StickyPusherRight(BasicBlock): particle_colors = [(0.3,0.14,0.0)] coords_top=[RATE*6,RATE*13,RATE*7,RATE*12] coords_btm=[RATE*6,RATE*13,RATE*7,RATE*12] coords_lft=[RATE*6,RATE*13,RATE*7,RATE*12] coords_rgt=[RATE*8,RATE*14,RATE*9,RATE*13] coords_fwd=[RATE*6,RATE*13,RATE*7,RATE*12] coords_bck=[RATE*6,RATE*13,RATE*7,RATE*12] index=51 o_name="Sticky" o_dynamic = True def __init__(self,pos,world,create=True,recompile=True,state=0): self.state=False BasicBlock.__init__(self,pos,world,create,False) def on_dynamic_update(self): if sum(self.world.getNeighboringCurrents(self.pos)): self.state=True y= self.world.getBlockAt((self.pos[0]+1,self.pos[1],self.pos[2])) d = 1 shoved = [] while y: self.world.killBlock(y,recompile=False) y.pos = (y.pos[0]+1,y.pos[1],y.pos[2]) #self.world.setBlockAt(y,recompile=False) shoved.append(y) d+=1 y= self.world.getBlockAt((self.pos[0]+d,self.pos[1],self.pos[2])) for block in shoved: self.world.setBlockAt(block,recompile=False) if shoved:self.world.recompile() else: out = self.world.getBlockAt((self.pos[0]+1,self.pos[1],self.pos[2])) out2 = self.world.getBlockAt((self.pos[0]+2,self.pos[1],self.pos[2])) if out2 is None: self.state=False if out2 and not out: try: if out2.name=="Sticky": if not out2.state:raise TypeError,"Huhu!" else: raise TypeError, "Uiyipe!" except Exception as e: print e self.state=False self.world.killBlock(out2,recompile=False) out2.pos = (out2.pos[0]-1,out2.pos[1],out2.pos[2]) self.world.setBlockAt(out2,recompile=False) self.world.recompile() else:self.state=False class StickyPusherBack(BasicBlock): particle_colors = [(0.3,0.14,0.0)] coords_top=[RATE*6,RATE*13,RATE*7,RATE*12] coords_btm=[RATE*6,RATE*13,RATE*7,RATE*12] coords_lft=[RATE*6,RATE*13,RATE*7,RATE*12] coords_rgt=[RATE*6,RATE*13,RATE*7,RATE*12] coords_fwd=[RATE*6,RATE*13,RATE*7,RATE*12] coords_bck=[RATE*8,RATE*14,RATE*9,RATE*13] index=50 o_name="Sticky" o_dynamic = True def __init__(self,pos,world,create=True,recompile=True,state=0): self.state=False BasicBlock.__init__(self,pos,world,create,False) def on_dynamic_update(self): if sum(self.world.getNeighboringCurrents(self.pos)): self.state=True y= self.world.getBlockAt((self.pos[0],self.pos[1],self.pos[2]-1)) d = 1 shoved = [] while y: self.world.killBlock(y,recompile=False) y.pos = (y.pos[0],y.pos[1],y.pos[2]-1) #self.world.setBlockAt(y,recompile=False) shoved.append(y) d+=1 y= self.world.getBlockAt((self.pos[0],self.pos[1],self.pos[2]-d)) for block in shoved: self.world.setBlockAt(block,recompile=False) if shoved:self.world.recompile() else: out = self.world.getBlockAt((self.pos[0],self.pos[1],self.pos[2]-1)) out2 = self.world.getBlockAt((self.pos[0],self.pos[1],self.pos[2]-2)) if out2 is None: self.state=False if out2 and not out: try: if out2.name=="Sticky": if not out2.state:raise TypeError,"Huhu!" else: raise TypeError, "Uiyipe!" except Exception as e: print e self.state=False self.world.killBlock(out2,recompile=False) out2.pos = (out2.pos[0],out2.pos[1],out2.pos[2]+1) self.world.setBlockAt(out2,recompile=False) self.world.recompile() else:self.state=False class StickyPusherUp(BasicBlock): particle_colors = [(0.14,0.3,0.0)] coords_top=[RATE*8,RATE*14,RATE*9,RATE*13] coords_btm=[RATE*6,RATE*13,RATE*7,RATE*12] coords_lft=[RATE*6,RATE*13,RATE*7,RATE*12] coords_rgt=[RATE*6,RATE*13,RATE*7,RATE*12] coords_fwd=[RATE*6,RATE*13,RATE*7,RATE*12] coords_bck=[RATE*6,RATE*13,RATE*7,RATE*12] index=49 o_name="Sticky" o_dynamic = True def __init__(self,pos,world,create=True,recompile=True,state=0): self.state=False BasicBlock.__init__(self,pos,world,create,False) def on_dynamic_update(self): if sum(self.world.getNeighboringCurrents(self.pos)): self.state=True y= self.world.getBlockAt((self.pos[0],self.pos[1]+1,self.pos[2])) d = 1 shoved = [] while y: self.world.killBlock(y,recompile=False) y.pos = (y.pos[0],y.pos[1]+1,y.pos[2]) #self.world.setBlockAt(y,recompile=False) shoved.append(y) d+=1 y= self.world.getBlockAt((self.pos[0],self.pos[1]+d,self.pos[2])) for block in shoved: self.world.setBlockAt(block,recompile=False) if shoved:self.world.recompile() else: out = self.world.getBlockAt((self.pos[0],self.pos[1]+1,self.pos[2])) out2 = self.world.getBlockAt((self.pos[0],self.pos[1]+2,self.pos[2])) if out2 is None: self.state=False if out2 and not out: try: if out2.name=="Sticky": if not out2.state:raise TypeError,"Huhu!" else: raise TypeError, "Uiyipe!" except Exception as e: print e self.state=False self.world.killBlock(out2,recompile=False) out2.pos = (out2.pos[0],out2.pos[1]-1,out2.pos[2]) self.world.setBlockAt(out2,recompile=False) self.world.recompile() else:self.state=False class StickyPusherFront(BasicBlock): particle_colors = [(0.3,0.14,0.0)] coords_top=[RATE*6,RATE*13,RATE*7,RATE*12] coords_btm=[RATE*6,RATE*13,RATE*7,RATE*12] coords_lft=[RATE*6,RATE*13,RATE*7,RATE*12] coords_rgt=[RATE*6,RATE*13,RATE*7,RATE*12] coords_fwd=[RATE*8,RATE*14,RATE*9,RATE*13] coords_bck=[RATE*6,RATE*13,RATE*7,RATE*12] index=48 o_name="Sticky" o_dynamic = True def __init__(self,pos,world,create=True,recompile=True,state=0): self.state=False BasicBlock.__init__(self,pos,world,create,False) def on_dynamic_update(self): if sum(self.world.getNeighboringCurrents(self.pos)): self.state=True y= self.world.getBlockAt((self.pos[0],self.pos[1],self.pos[2]+1)) d = 1 shoved = [] while y: self.world.killBlock(y,recompile=False) y.pos = (y.pos[0],y.pos[1],y.pos[2]+1) #self.world.setBlockAt(y,recompile=False) shoved.append(y) d+=1 y= self.world.getBlockAt((self.pos[0],self.pos[1],self.pos[2]+d)) for block in shoved: self.world.setBlockAt(block,recompile=False) if shoved:self.world.recompile() else: out = self.world.getBlockAt((self.pos[0],self.pos[1],self.pos[2]+1)) out2 = self.world.getBlockAt((self.pos[0],self.pos[1],self.pos[2]+2)) if out2 is None: self.state=False if out2 and not out: try: if out2.name=="Sticky": if not out2.state:raise TypeError,"Huhu!" else: raise TypeError, "Uiyipe!" except Exception as e: print e self.state=False self.world.killBlock(out2,recompile=False) out2.pos = (out2.pos[0],out2.pos[1],out2.pos[2]-1) self.world.setBlockAt(out2,recompile=False) self.world.recompile() else:self.state=False class DyedSand(BasicBlock): particle_colors = [(0.3,0.14,0.0)] coords_top=[RATE*9,RATE*15,RATE*10,RATE*14] coords_btm=[RATE*9,RATE*15,RATE*10,RATE*14] coords_lft=[RATE*9,RATE*15,RATE*10,RATE*14] coords_rgt=[RATE*9,RATE*15,RATE*10,RATE*14] coords_fwd=[RATE*9,RATE*15,RATE*10,RATE*14] coords_bck=[RATE*9,RATE*15,RATE*10,RATE*14] index = 47 o_dynamic=True cutoff = False def on_dynamic_update(self): #print "Update:", if not self.world.getBlockAt((self.pos[0],self.pos[1]-1,self.pos[2])): #print "Yes" self.world.killBlock(self,recompile=False) self.pos = (self.pos[0],self.pos[1]-1,self.pos[2]) self.world.setBlockAt(self,recompile=False) else: pass class Button(BasicBlock): #particle_colors = [(0.3,0.3,0.0)] electric=True index=46 coords_top=[RATE*7,RATE*15,RATE*8,RATE*14] coords_btm=[RATE*7,RATE*13,RATE*8,RATE*12] coords_lft=[RATE*7,RATE*13,RATE*8,RATE*12] coords_rgt=[RATE*7,RATE*13,RATE*8,RATE*12] coords_fwd=[RATE*7,RATE*13,RATE*8,RATE*12] coords_bck=[RATE*7,RATE*13,RATE*8,RATE*12] def getE(self): y = self.world.getBlockAt((self.pos[0],self.pos[1]+1,self.pos[2]))==None upper = (self.pos[0],self.pos[1]+2,self.pos[2]) if (self.world.getRoundedPos() == upper) or not y: return [1]*6 else: return [0]*6 class ExperimentalPusherFront(BasicBlock): particle_colors = [(0.3,0.14,0.0)] coords_top=[RATE*6,RATE*13,RATE*7,RATE*12] coords_btm=[RATE*6,RATE*13,RATE*7,RATE*12] coords_lft=[RATE*6,RATE*13,RATE*7,RATE*12] coords_rgt=[RATE*6,RATE*13,RATE*7,RATE*12] coords_fwd=[RATE*5,RATE*14,RATE*6,RATE*13] coords_bck=[RATE*6,RATE*13,RATE*7,RATE*12] index=45 o_dynamic = True def on_dynamic_update(self): if sum(self.world.getNeighboringCurrents(self.pos)): y= self.world.getBlockAt((self.pos[0],self.pos[1],self.pos[2]+1)) d = 1 shoved = [] while y: self.world.killBlock(y,recompile=False) y.pos = (y.pos[0],y.pos[1],y.pos[2]+1) #self.world.setBlockAt(y,recompile=False) shoved.append(y) d+=1 y= self.world.getBlockAt((self.pos[0],self.pos[1],self.pos[2]+d)) for block in shoved: self.world.setBlockAt(block,recompile=False) if shoved:self.world.recompile() class ExperimentalPusherBack(BasicBlock): particle_colors = [(0.3,0.14,0.0)] coords_top=[RATE*6,RATE*13,RATE*7,RATE*12] coords_btm=[RATE*6,RATE*13,RATE*7,RATE*12] coords_lft=[RATE*6,RATE*13,RATE*7,RATE*12] coords_rgt=[RATE*6,RATE*13,RATE*7,RATE*12] coords_fwd=[RATE*6,RATE*13,RATE*7,RATE*12] coords_bck=[RATE*5,RATE*14,RATE*6,RATE*13] index=44 o_dynamic = True def on_dynamic_update(self): if sum(self.world.getNeighboringCurrents(self.pos)): y= self.world.getBlockAt((self.pos[0],self.pos[1],self.pos[2]-1)) d = 1 shoved = [] while y: self.world.killBlock(y,recompile=False) y.pos = (y.pos[0],y.pos[1],y.pos[2]-1) #self.world.setBlockAt(y,recompile=False) shoved.append(y) d+=1 y= self.world.getBlockAt((self.pos[0],self.pos[1],self.pos[2]-d)) for block in shoved: self.world.setBlockAt(block,recompile=False) if shoved:self.world.recompile() class ExperimentalPusherUp(BasicBlock): particle_colors = [(0.3,0.14,0.0)] coords_top=[RATE*5,RATE*14,RATE*6,RATE*13] coords_btm=[RATE*6,RATE*13,RATE*7,RATE*12] coords_lft=[RATE*6,RATE*13,RATE*7,RATE*12] coords_rgt=[RATE*6,RATE*13,RATE*7,RATE*12] coords_fwd=[RATE*6,RATE*13,RATE*7,RATE*12] coords_bck=[RATE*6,RATE*13,RATE*7,RATE*12] index=43 o_dynamic = True def on_dynamic_update(self): if sum(self.world.getNeighboringCurrents(self.pos)): y= self.world.getBlockAt((self.pos[0],self.pos[1]+1,self.pos[2])) d = 1 shoved = [] while y: self.world.killBlock(y,recompile=False) y.pos = (y.pos[0],y.pos[1]+1,y.pos[2]) #self.world.setBlockAt(y,recompile=False) shoved.append(y) d+=1 y= self.world.getBlockAt((self.pos[0],self.pos[1]+d,self.pos[2])) for block in shoved: self.world.setBlockAt(block,recompile=False) if shoved:self.world.recompile() class ExperimentalPusherLeft(BasicBlock): particle_colors = [(0.3,0.14,0.0)] coords_top=[RATE*6,RATE*13,RATE*7,RATE*12] coords_btm=[RATE*6,RATE*13,RATE*7,RATE*12] coords_lft=[RATE*5,RATE*14,RATE*6,RATE*13] coords_rgt=[RATE*6,RATE*13,RATE*7,RATE*12] coords_fwd=[RATE*6,RATE*13,RATE*7,RATE*12] coords_bck=[RATE*6,RATE*13,RATE*7,RATE*12] index=42 o_dynamic = True def on_dynamic_update(self): if sum(self.world.getNeighboringCurrents(self.pos)): y= self.world.getBlockAt((self.pos[0]-1,self.pos[1],self.pos[2])) d = 1 shoved = [] while y: self.world.killBlock(y,recompile=False) y.pos = (y.pos[0]-1,y.pos[1],y.pos[2]) #self.world.setBlockAt(y,recompile=False) shoved.append(y) d+=1 y= self.world.getBlockAt((self.pos[0]-d,self.pos[1],self.pos[2])) for block in shoved: self.world.setBlockAt(block,recompile=False) if shoved:self.world.recompile() class ExperimentalPusherRight(BasicBlock): particle_colors = [(0.3,0.14,0.0)] coords_top=[RATE*6,RATE*13,RATE*7,RATE*12] coords_btm=[RATE*6,RATE*13,RATE*7,RATE*12] coords_lft=[RATE*6,RATE*13,RATE*7,RATE*12] coords_rgt=[RATE*5,RATE*14,RATE*6,RATE*13] coords_fwd=[RATE*6,RATE*13,RATE*7,RATE*12] coords_bck=[RATE*6,RATE*13,RATE*7,RATE*12] index=41 o_dynamic = True def on_dynamic_update(self): if sum(self.world.getNeighboringCurrents(self.pos)): y= self.world.getBlockAt((self.pos[0]+1,self.pos[1],self.pos[2])) d = 1 shoved = [] while y: self.world.killBlock(y,recompile=False) y.pos = (y.pos[0]+1,y.pos[1],y.pos[2]) #self.world.setBlockAt(y,recompile=False) shoved.append(y) d+=1 y= self.world.getBlockAt((self.pos[0]+d,self.pos[1],self.pos[2])) for block in shoved: self.world.setBlockAt(block,recompile=False) if shoved:self.world.recompile() class Spout(BasicBlock): particle_colors = [(0.0,0.0,0.65,1.0)] o_name = "Water Fountain" ag=True wtrans = True coords_top=[RATE*0,RATE*11,RATE*1,RATE*10] coords_btm=[RATE*0,RATE*11,RATE*1,RATE*10] coords_lft=[RATE*0,RATE*11,RATE*1,RATE*10] coords_rgt=[RATE*0,RATE*11,RATE*1,RATE*10] coords_fwd=[RATE*0,RATE*11,RATE*1,RATE*10] coords_bck=[RATE*0,RATE*11,RATE*1,RATE*10] o_solid=False index=40 cutoff = False trans=False o_dynamic = True def on_dynamic_update(self): if not self.world.getBlockAt((self.pos[0],self.pos[1]-1,self.pos[2])): Water((self.pos[0],self.pos[1]-1,self.pos[2]),self.world,recompile=False) class XOR(BasicBlock): coords_top=[RATE*9,RATE*16,RATE*10,RATE*15] coords_btm=[RATE*8,RATE*15,RATE*9,RATE*14] coords_lft=[RATE*7,RATE*15,RATE*8,RATE*14] coords_rgt=[RATE*7,RATE*15,RATE*8,RATE*14] coords_fwd=[RATE*8,RATE*15,RATE*9,RATE*14] coords_bck=[RATE*8,RATE*15,RATE*9,RATE*14] o_dynamic = True index = 39 dcutoff = True particle_colors = [(1.0,0.0,0.0,1.0),(0.8,0.0,0.0,1.0)] def getE(self): on = 1 - int(self.last_info[0] == self.last_info[1]) data = (0,0,on,on,on,on) return data def on_dynamic_update(self): pass def render(self): self.last_info = self.world.getNeighboringCurrents(self.pos) glTexCoord2f(self.coords_fwd[0],self.coords_fwd[3]); glVertex3f(self.pos[0]+ -0.5,self.pos[1]+-0.5,self.pos[2]+0.5) #Front glTexCoord2f(self.coords_fwd[2],self.coords_fwd[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_fwd[2],self.coords_fwd[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_fwd[0],self.coords_fwd[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_bck[2],self.coords_bck[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_bck[0],self.coords_bck[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Back glTexCoord2f(self.coords_bck[0],self.coords_bck[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_bck[2],self.coords_bck[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_btm[2],self.coords_btm[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Bottom glTexCoord2f(self.coords_btm[0],self.coords_btm[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_btm[0],self.coords_btm[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_btm[2],self.coords_btm[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_top[0],self.coords_top[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #Top glTexCoord2f(self.coords_top[2],self.coords_top[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_top[2],self.coords_top[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_top[0],self.coords_top[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_lft[0],self.coords_lft[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_lft[0],self.coords_lft[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #left glTexCoord2f(self.coords_lft[2],self.coords_lft[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_lft[2],self.coords_lft[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_rgt[2],self.coords_rgt[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_rgt[2],self.coords_rgt[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #right glTexCoord2f(self.coords_rgt[0],self.coords_rgt[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_rgt[0],self.coords_rgt[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) def __init__(self,pos,world,create=True,recompile=True,state=0): self.last_info = (0,0,0,0,0,0) BasicBlock.__init__(self,pos,world,create,False) class NOT(BasicBlock): coords_top=[RATE*8,RATE*16,RATE*9,RATE*15] coords_btm=[RATE*8,RATE*15,RATE*9,RATE*14] coords_lft=[RATE*8,RATE*15,RATE*9,RATE*14] coords_rgt=[RATE*8,RATE*15,RATE*9,RATE*14] coords_fwd=[RATE*8,RATE*15,RATE*9,RATE*14] coords_bck=[RATE*7,RATE*15,RATE*8,RATE*14] o_dynamic = True index = 38 dcutoff = True particle_colors = [(1.0,0.0,0.0,1.0),(0.8,0.0,0.0,1.0)] def getE(self): on = 1 - int(self.last_info[5]) #print on data = (on,on,on,on,0,on) return data def on_dynamic_update(self): pass def render(self): self.last_info = self.world.getNeighboringCurrents(self.pos) glTexCoord2f(self.coords_fwd[0],self.coords_fwd[3]); glVertex3f(self.pos[0]+ -0.5,self.pos[1]+-0.5,self.pos[2]+0.5) #Front glTexCoord2f(self.coords_fwd[2],self.coords_fwd[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_fwd[2],self.coords_fwd[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_fwd[0],self.coords_fwd[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_bck[2],self.coords_bck[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_bck[0],self.coords_bck[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Back glTexCoord2f(self.coords_bck[0],self.coords_bck[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_bck[2],self.coords_bck[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_btm[2],self.coords_btm[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Bottom glTexCoord2f(self.coords_btm[0],self.coords_btm[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_btm[0],self.coords_btm[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_btm[2],self.coords_btm[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_top[0],self.coords_top[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #Top glTexCoord2f(self.coords_top[2],self.coords_top[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_top[2],self.coords_top[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_top[0],self.coords_top[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_lft[0],self.coords_lft[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_lft[0],self.coords_lft[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #left glTexCoord2f(self.coords_lft[2],self.coords_lft[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_lft[2],self.coords_lft[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_rgt[2],self.coords_rgt[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_rgt[2],self.coords_rgt[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #right glTexCoord2f(self.coords_rgt[0],self.coords_rgt[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_rgt[0],self.coords_rgt[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) def __init__(self,pos,world,create=True,recompile=True,state=0): self.last_info = (0,0,0,0,0,0) BasicBlock.__init__(self,pos,world,create,False) class AND(BasicBlock): coords_top=[RATE*7,RATE*16,RATE*8,RATE*15] coords_btm=[RATE*8,RATE*15,RATE*9,RATE*14] coords_lft=[RATE*7,RATE*15,RATE*8,RATE*14] coords_rgt=[RATE*7,RATE*15,RATE*8,RATE*14] coords_fwd=[RATE*8,RATE*15,RATE*9,RATE*14] coords_bck=[RATE*8,RATE*15,RATE*9,RATE*14] o_dynamic = True index = 37 dcutoff = True particle_colors = [(1.0,0.0,0.0,1.0),(0.8,0.0,0.0,1.0)] def getE(self): on = int((self.last_info[0] + self.last_info[1]) > 1) data = (0,0,on,on,on,on) return data def on_dynamic_update(self): pass def render(self): self.last_info = self.world.getNeighboringCurrents(self.pos) glTexCoord2f(self.coords_fwd[0],self.coords_fwd[3]); glVertex3f(self.pos[0]+ -0.5,self.pos[1]+-0.5,self.pos[2]+0.5) #Front glTexCoord2f(self.coords_fwd[2],self.coords_fwd[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_fwd[2],self.coords_fwd[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_fwd[0],self.coords_fwd[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_bck[2],self.coords_bck[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_bck[0],self.coords_bck[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Back glTexCoord2f(self.coords_bck[0],self.coords_bck[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_bck[2],self.coords_bck[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_btm[2],self.coords_btm[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Bottom glTexCoord2f(self.coords_btm[0],self.coords_btm[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_btm[0],self.coords_btm[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_btm[2],self.coords_btm[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_top[0],self.coords_top[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #Top glTexCoord2f(self.coords_top[2],self.coords_top[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_top[2],self.coords_top[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_top[0],self.coords_top[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_lft[0],self.coords_lft[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_lft[0],self.coords_lft[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #left glTexCoord2f(self.coords_lft[2],self.coords_lft[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_lft[2],self.coords_lft[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_rgt[2],self.coords_rgt[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_rgt[2],self.coords_rgt[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #right glTexCoord2f(self.coords_rgt[0],self.coords_rgt[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_rgt[0],self.coords_rgt[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) def __init__(self,pos,world,create=True,recompile=True,state=0): self.last_info = (0,0,0,0,0,0) BasicBlock.__init__(self,pos,world,create,False) class Wire(BasicBlock): coords_top=[RATE*6,RATE*13,RATE*7,RATE*12] coords_btm=[RATE*6,RATE*13,RATE*7,RATE*12] coords_lft=[RATE*6,RATE*13,RATE*7,RATE*12] coords_rgt=[RATE*6,RATE*13,RATE*7,RATE*12] coords_fwd=[RATE*6,RATE*13,RATE*7,RATE*12] coords_bck=[RATE*6,RATE*13,RATE*7,RATE*12] o_dynamic=True index = 36 dcutoff = True cutoff = False trans=True particle_colors = [(1.0,0.0,0.0,1.0),(0.8,0.0,0.0,1.0)] def getE(self): on = min(self.last_info[0]+self.last_info[1]+self.last_info[2]+self.last_info[3]+self.last_info[4]+self.last_info[5],1) data = ( int((not self.last_info[1]) and on), int((not self.last_info[0]) and on), int((not self.last_info[3]) and on), int((not self.last_info[2]) and on), int((not self.last_info[5]) and on), int((not self.last_info[4]) and on)) return data def on_dynamic_update(self): pass def render(self): #self.cache=None self.last_info = self.world.getNeighboringCurrents(self.pos) on = min(self.last_info[0]+self.last_info[1]+self.last_info[2]+self.last_info[3]+self.last_info[4]+self.last_info[5],1) glTexCoord2f((RATE*on)+self.coords_fwd[0],self.coords_fwd[3]); glVertex3f(self.pos[0]+ -0.5,self.pos[1]+-0.5,self.pos[2]+0.5) #Front glTexCoord2f((RATE*on)+self.coords_fwd[2],self.coords_fwd[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_fwd[2],self.coords_fwd[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_fwd[0],self.coords_fwd[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_bck[2],self.coords_bck[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_bck[0],self.coords_bck[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Back glTexCoord2f((RATE*on)+self.coords_bck[0],self.coords_bck[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_bck[2],self.coords_bck[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_btm[2],self.coords_btm[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Bottom glTexCoord2f((RATE*on)+self.coords_btm[0],self.coords_btm[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_btm[0],self.coords_btm[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_btm[2],self.coords_btm[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_top[0],self.coords_top[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #Top glTexCoord2f((RATE*on)+self.coords_top[2],self.coords_top[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_top[2],self.coords_top[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_top[0],self.coords_top[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_lft[0],self.coords_lft[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_lft[0],self.coords_lft[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #left glTexCoord2f((RATE*on)+self.coords_lft[2],self.coords_lft[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_lft[2],self.coords_lft[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_rgt[2],self.coords_rgt[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_rgt[2],self.coords_rgt[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #right glTexCoord2f((RATE*on)+self.coords_rgt[0],self.coords_rgt[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_rgt[0],self.coords_rgt[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) def __init__(self,pos,world,create=True,recompile=True,state=0): self.last_info = (0,0,0,0,0,0) self.cache = None BasicBlock.__init__(self,pos,world,create,False) class Switch(BasicBlock): coords_top=[RATE*6,RATE*14,RATE*7,RATE*13] coords_btm=[RATE*6,RATE*14,RATE*7,RATE*13] coords_lft=[RATE*6,RATE*14,RATE*7,RATE*13] coords_rgt=[RATE*6,RATE*14,RATE*7,RATE*13] coords_fwd=[RATE*6,RATE*14,RATE*7,RATE*13] coords_bck=[RATE*6,RATE*14,RATE*7,RATE*13] index = 35 cutoff = False o_dynamic = True o_usable = True def getState(self): #print "Hah! Gotcha!" #print self.on return self.on def getE(self): return [self.on] * 6 def __init__(self,pos,world,create=True,recompile=True,state=0): self.on = state BasicBlock.__init__(self,pos,world,create,False) def on_dynamic_update(self): pass def on_use(self): self.on = 1 - self.on def render(self): on = self.on glTexCoord2f((RATE*on)+self.coords_fwd[0],self.coords_fwd[3]); glVertex3f(self.pos[0]+ -0.5,self.pos[1]+-0.5,self.pos[2]+0.5) #Front glTexCoord2f((RATE*on)+self.coords_fwd[2],self.coords_fwd[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_fwd[2],self.coords_fwd[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_fwd[0],self.coords_fwd[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_bck[2],self.coords_bck[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_bck[0],self.coords_bck[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Back glTexCoord2f((RATE*on)+self.coords_bck[0],self.coords_bck[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_bck[2],self.coords_bck[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_btm[2],self.coords_btm[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Bottom glTexCoord2f((RATE*on)+self.coords_btm[0],self.coords_btm[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_btm[0],self.coords_btm[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_btm[2],self.coords_btm[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_top[0],self.coords_top[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #Top glTexCoord2f((RATE*on)+self.coords_top[2],self.coords_top[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_top[2],self.coords_top[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_top[0],self.coords_top[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_lft[0],self.coords_lft[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_lft[0],self.coords_lft[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #left glTexCoord2f((RATE*on)+self.coords_lft[2],self.coords_lft[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_lft[2],self.coords_lft[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_rgt[2],self.coords_rgt[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_rgt[2],self.coords_rgt[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #right glTexCoord2f((RATE*on)+self.coords_rgt[0],self.coords_rgt[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_rgt[0],self.coords_rgt[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) class WaterBucket(BasicBlock): particle_colors = [(0.3,0.14,0.0),(0.0,0.0,0.65,1.0)] coords_top=[RATE*6,RATE*16,RATE*7,RATE*15] coords_btm=[RATE*5,RATE*14,RATE*6,RATE*13] coords_lft=[RATE*5,RATE*14,RATE*6,RATE*13] coords_rgt=[RATE*5,RATE*14,RATE*6,RATE*13] coords_fwd=[RATE*5,RATE*14,RATE*6,RATE*13] coords_bck=[RATE*5,RATE*14,RATE*6,RATE*13] index = 31 class SandBlock(BasicBlock): particle_colors = [(1.0,1.0,0.6,1.0)] coords_top=[RATE*6,RATE*15,RATE*7,RATE*14] coords_btm=[RATE*6,RATE*15,RATE*7,RATE*14] coords_lft=[RATE*6,RATE*15,RATE*7,RATE*14] coords_rgt=[RATE*6,RATE*15,RATE*7,RATE*14] coords_fwd=[RATE*6,RATE*15,RATE*7,RATE*14] coords_bck=[RATE*6,RATE*15,RATE*7,RATE*14] index = 32 o_dynamic=True cutoff = False def on_dynamic_update(self): #print "Update:", if not self.world.getBlockAt((self.pos[0],self.pos[1]-1,self.pos[2])): #print "Yes" self.world.killBlock(self,recompile=False) self.pos = (self.pos[0],self.pos[1]-1,self.pos[2]) self.world.setBlockAt(self,recompile=False) else: pass #print "No" ##class WaterFountain(BasicBlock): ## coords_top=[RATE*6,RATE*16,RATE*7,RATE*15] ## coords_btm=[RATE*6,RATE*16,RATE*7,RATE*15] ## coords_lft=[RATE*6,RATE*16,RATE*7,RATE*15] ## coords_rgt=[RATE*6,RATE*16,RATE*7,RATE*15] ## coords_fwd=[RATE*6,RATE*16,RATE*7,RATE*15] ## coords_bck=[RATE*6,RATE*16,RATE*7,RATE*15] ## index = 33 class LED(BasicBlock): o_dynamic = True coords_top=[RATE*4,RATE*13,RATE*5,RATE*12] coords_btm=[RATE*4,RATE*13,RATE*5,RATE*12] coords_lft=[RATE*4,RATE*13,RATE*5,RATE*12] coords_rgt=[RATE*4,RATE*13,RATE*5,RATE*12] coords_fwd=[RATE*4,RATE*13,RATE*5,RATE*12] coords_bck=[RATE*4,RATE*13,RATE*5,RATE*12] index = 34 particle_colors = [(0.6,0.6,0.0,1.0)] def getE(self): return (0,0,0,0,0,0) def on_dynamic_update(self): pass def render(self): data = self.world.getNeighboringCurrents(self.pos) on = min(data[0]+data[1]+data[2]+data[3]+data[4]+data[5],1) glTexCoord2f((RATE*on)+self.coords_fwd[0],self.coords_fwd[3]); glVertex3f(self.pos[0]+ -0.5,self.pos[1]+-0.5,self.pos[2]+0.5) #Front glTexCoord2f((RATE*on)+self.coords_fwd[2],self.coords_fwd[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_fwd[2],self.coords_fwd[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_fwd[0],self.coords_fwd[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_bck[2],self.coords_bck[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_bck[0],self.coords_bck[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Back glTexCoord2f((RATE*on)+self.coords_bck[0],self.coords_bck[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_bck[2],self.coords_bck[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_btm[2],self.coords_btm[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Bottom glTexCoord2f((RATE*on)+self.coords_btm[0],self.coords_btm[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_btm[0],self.coords_btm[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_btm[2],self.coords_btm[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_top[0],self.coords_top[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #Top glTexCoord2f((RATE*on)+self.coords_top[2],self.coords_top[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_top[2],self.coords_top[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_top[0],self.coords_top[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_lft[0],self.coords_lft[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_lft[0],self.coords_lft[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #left glTexCoord2f((RATE*on)+self.coords_lft[2],self.coords_lft[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_lft[2],self.coords_lft[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_rgt[2],self.coords_rgt[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_rgt[2],self.coords_rgt[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #right glTexCoord2f((RATE*on)+self.coords_rgt[0],self.coords_rgt[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_rgt[0],self.coords_rgt[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) class Generator(BasicBlock): particle_colors = [(1.0,1.0,0.0,1.0),(1.0,0.8,0.0,1.0),(1.0,0.6,0.0,1.0),(1.0,0.4,0.0,1.0),(1.0,0.2,0.0,1.0),(1.0,0.1,0.0,1.0)] o_dynamic = True coords_top=[RATE*2,RATE*12,RATE*3,RATE*11] coords_btm=[RATE*2,RATE*12,RATE*3,RATE*11] coords_lft=[RATE*2,RATE*12,RATE*3,RATE*11] coords_rgt=[RATE*2,RATE*12,RATE*3,RATE*11] coords_fwd=[RATE*2,RATE*12,RATE*3,RATE*11] coords_bck=[RATE*2,RATE*12,RATE*3,RATE*11] index = 33 cutoff = False def getE(self): return (1,1,1,1,1,1) def __init__(self,pos,world,create=True,recompile=True,state=0): print "!!!" self.count = 0 print "!!!!" BasicBlock.__init__(self,pos,world,create,False) def on_dynamic_update(self): pass def render(self): self.count += 1 self.count = self.count % 6 glTexCoord2f(self.coords_fwd[0]+(RATE*self.count),self.coords_fwd[3]); glVertex3f(self.pos[0]+ -0.5,self.pos[1]+-0.5,self.pos[2]+0.5) #Front glTexCoord2f(self.coords_fwd[2]+(RATE*self.count),self.coords_fwd[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_fwd[2]+(RATE*self.count),self.coords_fwd[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_fwd[0]+(RATE*self.count),self.coords_fwd[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_bck[2]+(RATE*self.count),self.coords_bck[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_bck[0]+(RATE*self.count),self.coords_bck[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Back glTexCoord2f(self.coords_bck[0]+(RATE*self.count),self.coords_bck[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_bck[2]+(RATE*self.count),self.coords_bck[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_btm[2]+(RATE*self.count),self.coords_btm[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Bottom glTexCoord2f(self.coords_btm[0]+(RATE*self.count),self.coords_btm[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_btm[0]+(RATE*self.count),self.coords_btm[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_btm[2]+(RATE*self.count),self.coords_btm[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_top[0]+(RATE*self.count),self.coords_top[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #Top glTexCoord2f(self.coords_top[2]+(RATE*self.count),self.coords_top[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_top[2]+(RATE*self.count),self.coords_top[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_top[0]+(RATE*self.count),self.coords_top[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_lft[0]+(RATE*self.count),self.coords_lft[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_lft[0]+(RATE*self.count),self.coords_lft[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #left glTexCoord2f(self.coords_lft[2]+(RATE*self.count),self.coords_lft[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_lft[2]+(RATE*self.count),self.coords_lft[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_rgt[2]+(RATE*self.count),self.coords_rgt[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_rgt[2]+(RATE*self.count),self.coords_rgt[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #right glTexCoord2f(self.coords_rgt[0]+(RATE*self.count),self.coords_rgt[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_rgt[0]+(RATE*self.count),self.coords_rgt[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) class HatchShut(BasicBlock): particle_colors = [(0.3,0.14,0.0)] coords_top=[RATE*5,RATE*14,RATE*6,RATE*13] coords_btm=[RATE*5,RATE*14,RATE*6,RATE*13] coords_lft=[RATE*5,RATE*14,RATE*6,RATE*13] coords_rgt=[RATE*5,RATE*14,RATE*6,RATE*13] coords_fwd=[RATE*5,RATE*14,RATE*6,RATE*13] coords_bck=[RATE*5,RATE*14,RATE*6,RATE*13] o_name = "HatchShut" o_solid = True index = 29 o_usable = True counter = None cutoff = False def on_use(self): self.counter(self.pos,self.world) def render(self): if self.world.getBlockAt((self.pos[0],self.pos[1]-1,self.pos[2])): self.solid=False #glBegin(GL_QUADS) glTexCoord2f(self.coords_top[0],self.coords_top[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]-0.499,self.pos[2]+-0.5) #Top glTexCoord2f(self.coords_top[2],self.coords_top[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]-0.499,self.pos[2]+-0.5) glTexCoord2f(self.coords_top[2],self.coords_top[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]-0.499,self.pos[2]+0.5) glTexCoord2f(self.coords_top[0],self.coords_top[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]-0.499,self.pos[2]+0.5) #glEnd() else: self.solid=True #glBegin(GL_QUADS) glTexCoord2f(self.coords_top[0],self.coords_top[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.499,self.pos[2]+-0.5) #Top glTexCoord2f(self.coords_top[2],self.coords_top[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.499,self.pos[2]+-0.5) glTexCoord2f(self.coords_top[2],self.coords_top[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.499,self.pos[2]+0.5) glTexCoord2f(self.coords_top[0],self.coords_top[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.499,self.pos[2]+0.5) #glEnd() class HatchOpen(BasicBlock): particle_colors = [(0.3,0.14,0.0)] coords_top=[RATE*5,RATE*14,RATE*6,RATE*13] coords_btm=[RATE*5,RATE*14,RATE*6,RATE*13] coords_lft=[RATE*5,RATE*14,RATE*6,RATE*13] coords_rgt=[RATE*5,RATE*14,RATE*6,RATE*13] coords_fwd=[RATE*5,RATE*14,RATE*6,RATE*13] coords_bck=[RATE*5,RATE*14,RATE*6,RATE*13] o_name = "HatchShut" o_solid = False index = 30 trans=True o_usable = True counter = HatchShut cutoff = False def on_use(self): self.counter(self.pos,self.world) def render(self): if self.world.getBlockAt((self.pos[0],self.pos[1]-1,self.pos[2])): #glBegin(GL_QUADS) glTexCoord2f(self.coords_bck[2],self.coords_bck[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]-0.5,self.pos[2]+-0.499) glTexCoord2f(self.coords_bck[0],self.coords_bck[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]-0.5,self.pos[2]+-0.499) #Back glTexCoord2f(self.coords_bck[0],self.coords_bck[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.499) glTexCoord2f(self.coords_bck[2],self.coords_bck[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.499) #glEnd() else: #glBegin(GL_QUADS) glTexCoord2f(self.coords_bck[2],self.coords_bck[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.499) glTexCoord2f(self.coords_bck[0],self.coords_bck[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.499) #Back glTexCoord2f(self.coords_bck[0],self.coords_bck[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+1.5,self.pos[2]+-0.499) glTexCoord2f(self.coords_bck[2],self.coords_bck[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+1.5,self.pos[2]+-0.499) #glEnd() HatchShut.counter=HatchOpen class Water(BasicBlock): o_name = "Water" ag=True wtrans = True coords_top=[RATE*0,RATE*11,RATE*1,RATE*10] coords_btm=[RATE*0,RATE*11,RATE*1,RATE*10] coords_lft=[RATE*0,RATE*11,RATE*1,RATE*10] coords_rgt=[RATE*0,RATE*11,RATE*1,RATE*10] coords_fwd=[RATE*0,RATE*11,RATE*1,RATE*10] coords_bck=[RATE*0,RATE*11,RATE*1,RATE*10] o_solid=False index=27 cutoff = False trans=False particle_colors = [(0.0,0.0,0.65,1.0)] #o_dynamic = True def render(self): #glBegin(GL_QUADS) #glColor(0.5,0.5,0.5,1.0); #self.on -= (1/64.0) #if self.on == 0: self.on =1 on = 0 try: if self.world.getBlockAt((self.pos[0],self.pos[1],self.pos[2]+1)).trans: raise BlockError except: #print "!" #p#rint "Front!" glTexCoord2f(self.coords_fwd[0],self.coords_fwd[3]-(RATE*on)); glVertex3f(self.pos[0]+ -0.5,self.pos[1]+-0.5,self.pos[2]+0.5) #Front glTexCoord2f(self.coords_fwd[2],self.coords_fwd[3]-(RATE*on)); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_fwd[2],self.coords_fwd[1]-(RATE*on)); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_fwd[0],self.coords_fwd[1]-(RATE*on)); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) try: if self.world.getBlockAt((self.pos[0],self.pos[1],self.pos[2]-1)).trans: raise BlockError except: glTexCoord2f(self.coords_bck[2],self.coords_bck[3]-(RATE*on)); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_bck[0],self.coords_bck[3]-(RATE*on)); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Back glTexCoord2f(self.coords_bck[0],self.coords_bck[1]-(RATE*on)); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_bck[2],self.coords_bck[1]-(RATE*on)); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) try: if self.world.getBlockAt((self.pos[0],self.pos[1]-1,self.pos[2])).trans: raise BlockError except: glTexCoord2f(self.coords_btm[2],self.coords_btm[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Bottom glTexCoord2f(self.coords_btm[0],self.coords_btm[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_btm[0],self.coords_btm[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_btm[2],self.coords_btm[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) try: if self.world.getBlockAt((self.pos[0],self.pos[1]+1,self.pos[2])).trans: raise BlockError except: glTexCoord2f(self.coords_top[0],self.coords_top[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #Top glTexCoord2f(self.coords_top[2],self.coords_top[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_top[2],self.coords_top[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_top[0],self.coords_top[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) try: if self.world.getBlockAt((self.pos[0]-1,self.pos[1],self.pos[2])).trans: raise BlockError except: glTexCoord2f(self.coords_lft[0],self.coords_lft[3]-(RATE*on)); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_lft[0],self.coords_lft[1]-(RATE*on)); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #left glTexCoord2f(self.coords_lft[2],self.coords_lft[1]-(RATE*on)); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_lft[2],self.coords_lft[3]-(RATE*on)); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) try: if self.world.getBlockAt((self.pos[0]+1,self.pos[1],self.pos[2])).trans: raise BlockError except: glTexCoord2f(self.coords_rgt[2],self.coords_rgt[3]-(RATE*on)); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_rgt[2],self.coords_rgt[1]-(RATE*on)); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #right glTexCoord2f(self.coords_rgt[0],self.coords_rgt[1]-(RATE*on)); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_rgt[0],self.coords_rgt[3]-(RATE*on)); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) class BrickBlock(BasicBlock): index = 28 particle_colors = [(0.9,0.1,0.1,1.0)] o_name = "Brick" coords_top=[RATE*3,RATE*15,RATE*4,RATE*14] coords_btm=[RATE*3,RATE*15,RATE*4,RATE*14] coords_lft=[RATE*3,RATE*15,RATE*4,RATE*14] coords_rgt=[RATE*3,RATE*15,RATE*4,RATE*14] coords_fwd=[RATE*3,RATE*15,RATE*4,RATE*14] coords_bck=[RATE*3,RATE*15,RATE*4,RATE*14] class GoldBlock(BasicBlock): index = 25 particle_colors = [(0.5,0.5,0.1,1.0)] o_name = "GoldBlock" coords_top=[RATE*5,RATE*15,RATE*6,RATE*14] coords_btm=[RATE*5,RATE*15,RATE*6,RATE*14] coords_lft=[RATE*5,RATE*15,RATE*6,RATE*14] coords_rgt=[RATE*5,RATE*15,RATE*6,RATE*14] coords_fwd=[RATE*5,RATE*15,RATE*6,RATE*14] coords_bck=[RATE*5,RATE*15,RATE*6,RATE*14] class SilverBlock(BasicBlock): index = 26 o_name="SilverBlock" coords_top=[RATE*4,RATE*15,RATE*5,RATE*14] coords_btm=[RATE*4,RATE*15,RATE*5,RATE*14] coords_lft=[RATE*4,RATE*15,RATE*5,RATE*14] coords_rgt=[RATE*4,RATE*15,RATE*5,RATE*14] coords_fwd=[RATE*4,RATE*15,RATE*5,RATE*14] coords_bck=[RATE*4,RATE*15,RATE*5,RATE*14] class Glass(BasicBlock): index = 24 trans=True coords_top=[RATE*0,RATE*12,RATE*1,RATE*11] coords_btm=[RATE*0,RATE*12,RATE*1,RATE*11] coords_lft=[RATE*0,RATE*12,RATE*1,RATE*11] coords_rgt=[RATE*0,RATE*12,RATE*1,RATE*11] coords_fwd=[RATE*0,RATE*12,RATE*1,RATE*11] coords_bck=[RATE*0,RATE*12,RATE*1,RATE*11] cutoff = False dcutoff = False class Cake(BasicBlock): index = 22 particle_colors = [(0.5,0.25,0.0,1.0),(1.0,1.0,1.0,1.0)] coords_top=[RATE*1,RATE*13,RATE*2,RATE*12] coords_btm=[RATE*1,RATE*11,RATE*2,RATE*10] coords_lft=[RATE*1,RATE*12,RATE*2,RATE*11] coords_rgt=[RATE*1,RATE*12,RATE*2,RATE*11] coords_fwd=[RATE*1,RATE*12,RATE*2,RATE*11] coords_bck=[RATE*1,RATE*12,RATE*2,RATE*11] class SwissCheese(BasicBlock): index = 23 particle_colors = [(1.0,1.0,0.0,1.0)] coords_top=[RATE*2,RATE*13,RATE*3,RATE*12] coords_btm=[RATE*2,RATE*13,RATE*3,RATE*12] coords_lft=[RATE*2,RATE*13,RATE*3,RATE*12] coords_rgt=[RATE*2,RATE*13,RATE*3,RATE*12] coords_fwd=[RATE*2,RATE*13,RATE*3,RATE*12] coords_bck=[RATE*2,RATE*13,RATE*3,RATE*12] class Snow(BasicBlock): o_solid = False index = 21 particle_colors=[(1.0,1.0,1.0,1.0)] #trans=True coords_top=[RATE*0,RATE*13,RATE*1,RATE*12] coords_btm=[RATE*0,RATE*13,RATE*1,RATE*12] coords_lft=[RATE*0,RATE*13,RATE*1,RATE*12] coords_rgt=[RATE*0,RATE*13,RATE*1,RATE*12] coords_fwd=[RATE*0,RATE*13,RATE*1,RATE*12] coords_bck=[RATE*0,RATE*13,RATE*1,RATE*12] cutoff = False def render(self): #glBegin(GL_QUADS) #glColor(0.5,0.5,0.5,1.0); glNormal3f(0,0,1) glTexCoord2f(self.coords_fwd[0],self.coords_fwd[3]); glVertex3f(self.pos[0]+ -0.5,self.pos[1]+-0.5,self.pos[2]+0.5) #Front glTexCoord2f(self.coords_fwd[2],self.coords_fwd[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_fwd[2],self.coords_fwd[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0,self.pos[2]+0.5) glTexCoord2f(self.coords_fwd[0],self.coords_fwd[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0,self.pos[2]+0.5) glNormal3f(0,0,-1) #glColor(0,1,0,1.0); glTexCoord2f(self.coords_bck[2],self.coords_bck[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_bck[0],self.coords_bck[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Back glTexCoord2f(self.coords_bck[0],self.coords_bck[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0,self.pos[2]+-0.5) glTexCoord2f(self.coords_bck[2],self.coords_bck[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0,self.pos[2]+-0.5) glNormal3f(0,-1,0) #glColor(0,0,1,1.0); glTexCoord2f(self.coords_btm[2],self.coords_btm[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Bottom glTexCoord2f(self.coords_btm[0],self.coords_btm[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_btm[0],self.coords_btm[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_btm[2],self.coords_btm[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glNormal3f(0,1,0) #glColor(1,1,0,1.0); glTexCoord2f(self.coords_top[0],self.coords_top[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0,self.pos[2]+-0.5) #Top glTexCoord2f(self.coords_top[2],self.coords_top[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0,self.pos[2]+-0.5) glTexCoord2f(self.coords_top[2],self.coords_top[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0,self.pos[2]+0.5) glTexCoord2f(self.coords_top[0],self.coords_top[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0,self.pos[2]+0.5) glNormal3f(-1,0,0) #glColor(0,1,1,1.0); glTexCoord2f(self.coords_lft[0],self.coords_lft[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_lft[0],self.coords_lft[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0,self.pos[2]+-0.5) #left glTexCoord2f(self.coords_lft[2],self.coords_lft[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0,self.pos[2]+0.5) glTexCoord2f(self.coords_lft[2],self.coords_lft[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glNormal3f(1,0,0) #glColor(1,0,1,1.0); glTexCoord2f(self.coords_rgt[2],self.coords_rgt[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords_rgt[2],self.coords_rgt[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0,self.pos[2]+-0.5) #right glTexCoord2f(self.coords_rgt[0],self.coords_rgt[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0,self.pos[2]+0.5) glTexCoord2f(self.coords_rgt[0],self.coords_rgt[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) #glEnd() class Dynamite(BasicBlock): o_name = "Dynamite" o_usable = True o_dynamic = True index = 20 #order = 0 coords_top=[RATE*10,RATE*16,RATE*11,RATE*15] coords_btm=[RATE*10,RATE*16,RATE*11,RATE*15] coords_lft=[RATE*10,RATE*16,RATE*11,RATE*15] coords_rgt=[RATE*10,RATE*16,RATE*11,RATE*15] coords_fwd=[RATE*10,RATE*16,RATE*11,RATE*15] coords_bck=[RATE*10,RATE*16,RATE*11,RATE*15] particle_colors = [(1.0,0.0,0.0,1.0),(0.9,0.0,0.0,1.0),(0.8,0.0,0.0,1.0)] def __init__(self,pos,world,create=True,recompile=True,state=0): self.countdown = -1 BasicBlock.__init__(self,pos,world,create,False) def on_dynamic_update(self): currents = sum(self.world.getNeighboringCurrents(self.pos)) if currents: self.on_use() if self.countdown == 0: self.fire() def on_use(self,dc=None): if not dc: self.countdown = randint(30,120) else: self.countdown = dc def fire(self): #kaboom.play() for _ in range(randint(15,25)): self.world.particles.append(ExplosionParticle(self.world,self.pos,(self.coords_lft[0]+(random()*RATE),self.coords_lft[3]+(random()*RATE)))) #if ch:ch.set_volume(0.5,1.0) for y in range(-2,3): for x in range(-2,3): for z in range(-2,3): if [abs(x),abs(y),abs(z)].count(2) > 1: continue b = self.world.getBlockAt((self.pos[0]+x,self.pos[1]+y,self.pos[2]+z)) d = [] if b: if b.name != "Dynamite" or b == self: self.world.killBlock(self.world.getBlockAt((self.pos[0]+x,self.pos[1]+y,self.pos[2]+z))) else: d.append(b) for u in d: if u.countdown == -1: u.on_use(dc=randint(3,10)) self.world.recompile("Dynamite") def render(self): if self.countdown > 0: on = 1 - (self.countdown / 7) % 2 self.countdown -= 1 else: on = 0 glTexCoord2f((RATE*on)+self.coords_fwd[0],self.coords_fwd[3]); glVertex3f(self.pos[0]+ -0.5,self.pos[1]+-0.5,self.pos[2]+0.5) #Front glTexCoord2f((RATE*on)+self.coords_fwd[2],self.coords_fwd[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_fwd[2],self.coords_fwd[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_fwd[0],self.coords_fwd[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_bck[2],self.coords_bck[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_bck[0],self.coords_bck[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Back glTexCoord2f((RATE*on)+self.coords_bck[0],self.coords_bck[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_bck[2],self.coords_bck[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_btm[2],self.coords_btm[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Bottom glTexCoord2f((RATE*on)+self.coords_btm[0],self.coords_btm[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_btm[0],self.coords_btm[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_btm[2],self.coords_btm[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_top[0],self.coords_top[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #Top glTexCoord2f((RATE*on)+self.coords_top[2],self.coords_top[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_top[2],self.coords_top[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_top[0],self.coords_top[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_lft[0],self.coords_lft[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_lft[0],self.coords_lft[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #left glTexCoord2f((RATE*on)+self.coords_lft[2],self.coords_lft[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_lft[2],self.coords_lft[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_rgt[2],self.coords_rgt[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f((RATE*on)+self.coords_rgt[2],self.coords_rgt[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #right glTexCoord2f((RATE*on)+self.coords_rgt[0],self.coords_rgt[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f((RATE*on)+self.coords_rgt[0],self.coords_rgt[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) class DoorShutTop(BasicBlock): particle_colors = [(0.3,0.14,0.0)] o_name="Shut Door" o_solid=False o_usable=True #trans=True index = -1 cutoff = False trans=True def __init__(self,pos,world,below,state=0): self.linked=[] self.below=below BasicBlock.__init__(self,pos,world,recompile=False) #self.render() def render(self): pass def on_kill(self): self.world.killBlock(self.below,polite=False,shrapnel=False) def on_use(self): self.below.on_use() ## def on_use(self): ## self.dob((self.pos[0],self.pos[1]-1,self.pos[2]),self.world) class DoorShutBottom(BasicBlock): particle_colors = [(0.3,0.14,0.0)] o_name="Shut Door" o_solid=True o_usable=True cutoff = False #trans=True coords_top=[RATE*3,RATE*14,RATE*4,RATE*12] coords_btm=[RATE*3,RATE*14,RATE*4,RATE*12] coords_lft=[RATE*3,RATE*14,RATE*4,RATE*12] coords_rgt=[RATE*3,RATE*14,RATE*4,RATE*12] coords_fwd=[RATE*3,RATE*14,RATE*4,RATE*12] coords_bck=[RATE*3,RATE*14,RATE*4,RATE*12] index=18 trans=True def __init__(self,pos,world,create=True,recompile=True,state=0): BasicBlock.__init__(self,pos,world,create,recompile) t = DoorShutTop((pos[0],pos[1]+1,pos[2]),world,self) self.linked=[] self.t=t self.render() def render(self): #print "Huhu!" #glBegin(GL_QUADS) if self.world.getBlockAt((self.pos[0]+1,self.pos[1],self.pos[2])): glTexCoord2f(self.coords_fwd[0],self.coords_fwd[3]); glVertex3f(self.pos[0]+ -0.5,self.pos[1]+-0.5,self.pos[2]) #Front glTexCoord2f(self.coords_fwd[2],self.coords_fwd[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]) glTexCoord2f(self.coords_fwd[2],self.coords_fwd[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+1.5,self.pos[2]) glTexCoord2f(self.coords_fwd[0],self.coords_fwd[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+1.5,self.pos[2]) else: glTexCoord2f(self.coords_fwd[0],self.coords_fwd[3]); glVertex3f(self.pos[0],self.pos[1]+-0.5,self.pos[2]-0.5) #Front glTexCoord2f(self.coords_fwd[2],self.coords_fwd[3]); glVertex3f(self.pos[0],self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords_fwd[2],self.coords_fwd[1]); glVertex3f(self.pos[0],self.pos[1]+1.5,self.pos[2]+0.5) glTexCoord2f(self.coords_fwd[0],self.coords_fwd[1]); glVertex3f(self.pos[0],self.pos[1]+1.5,self.pos[2]-0.5) #glEnd() def on_kill(self): #print t self.world.killBlock(self.t,polite=False,shrapnel=False) def on_use(self): self.counter(self.pos,self.world) class DoorOpenTop(BasicBlock): particle_colors = [(0.3,0.14,0.0)] #trans=True o_name="Open Door" o_solid=False o_usable=True index = -1 cutoff = False trans=True def getE(self): return (1,1,1,1,1,1) def __init__(self,pos,world,below,state=0): self.linked=[] self.below=below BasicBlock.__init__(self,pos,world,recompile=False) #self.render() def render(self): pass def on_kill(self): self.world.killBlock(self.below,polite=False,shrapnel=False) def on_use(self): self.below.on_use() ## def on_use(self): ## self.dob((self.pos[0],self.pos[1]-1,self.pos[2]),self.world) class DoorOpenBottom(BasicBlock): particle_colors = [(0.3,0.14,0.0)] o_name="Open Door" #trans=True o_solid=False o_usable=True cutoff = False def getE(self): return (1,1,1,1,1,1) counter=DoorShutBottom coords_top=[RATE*3,RATE*14,RATE*4,RATE*12] coords_btm=[RATE*3,RATE*14,RATE*4,RATE*12] coords_lft=[RATE*3,RATE*14,RATE*4,RATE*12] coords_rgt=[RATE*3,RATE*14,RATE*4,RATE*12] coords_fwd=[RATE*3,RATE*14,RATE*4,RATE*12] coords_bck=[RATE*3,RATE*14,RATE*4,RATE*12] index=19 trans=True def __init__(self,pos,world,create=True,recompile=True,state=0): BasicBlock.__init__(self,pos,world,create,recompile) t = DoorShutTop((pos[0],pos[1]+1,pos[2]),world,self) self.linked=[] self.t=t #self.render() def render(self): #print "Huhu!" #glBegin(GL_QUADS) if self.world.getBlockAt((self.pos[0]+1,self.pos[1],self.pos[2])): glTexCoord2f(self.coords_fwd[0],self.coords_fwd[3]); glVertex3f(self.pos[0]-0.499,self.pos[1]+-0.5,self.pos[2]) #Front glTexCoord2f(self.coords_fwd[2],self.coords_fwd[3]); glVertex3f(self.pos[0]-0.499,self.pos[1]+-0.5,self.pos[2]+1) glTexCoord2f(self.coords_fwd[2],self.coords_fwd[1]); glVertex3f(self.pos[0]-0.499,self.pos[1]+1.5,self.pos[2]+1) glTexCoord2f(self.coords_fwd[0],self.coords_fwd[1]); glVertex3f(self.pos[0]-0.499,self.pos[1]+1.5,self.pos[2]) else: glTexCoord2f(self.coords_fwd[0],self.coords_fwd[3]); glVertex3f(self.pos[0],self.pos[1]+-0.5,self.pos[2]-0.499) #Front glTexCoord2f(self.coords_fwd[2],self.coords_fwd[3]); glVertex3f(self.pos[0]+1,self.pos[1]+-0.5,self.pos[2]-0.499) glTexCoord2f(self.coords_fwd[2],self.coords_fwd[1]); glVertex3f(self.pos[0]+1,self.pos[1]+1.5,self.pos[2]-0.499) glTexCoord2f(self.coords_fwd[0],self.coords_fwd[1]); glVertex3f(self.pos[0],self.pos[1]+1.5,self.pos[2]-0.499) #glEnd() def on_kill(self): #print t self.world.killBlock(self.t,polite=False,shrapnel=False) def on_use(self): self.counter(self.pos,self.world) DoorShutBottom.counter=DoorOpenBottom class PlankBlock(BasicBlock): particle_colors = [(1.0,1.0,0.0,1.0),(0.5,0.25,0.0,1.0),(0.3,0.14,0.0)] o_name="Planks" index=17 coords_top=[RATE*2,RATE*14,RATE*3,RATE*13] coords_btm=[RATE*2,RATE*14,RATE*3,RATE*13] coords_lft=[RATE*2,RATE*14,RATE*3,RATE*13] coords_rgt=[RATE*2,RATE*14,RATE*3,RATE*13] coords_fwd=[RATE*2,RATE*14,RATE*3,RATE*13] coords_bck=[RATE*2,RATE*14,RATE*3,RATE*13] class GrassBlock(BasicBlock): particle_colors = [(0.5,0.25,0.0,1.0),(0.0,0.8,0.0,1.0)] o_name="Grass" index=2 coords_top=[RATE*0,RATE*15,RATE*1,RATE*14] coords_btm=[RATE*0,RATE*16,RATE*1,RATE*15] coords_lft=[RATE*0,RATE*14,RATE*1,RATE*13] coords_rgt=[RATE*0,RATE*14,RATE*1,RATE*13] coords_fwd=[RATE*0,RATE*14,RATE*1,RATE*13] coords_bck=[RATE*0,RATE*14,RATE*1,RATE*13] class DirtBlock(BasicBlock): particle_colors = [(0.5,0.25,0.0,1.0)] o_name="Dirt" index=1 coords_top=[RATE*0,RATE*16,RATE*1,RATE*15] coords_btm=[RATE*0,RATE*16,RATE*1,RATE*15] coords_lft=[RATE*0,RATE*16,RATE*1,RATE*15] coords_rgt=[RATE*0,RATE*16,RATE*1,RATE*15] coords_fwd=[RATE*0,RATE*16,RATE*1,RATE*15] coords_bck=[RATE*0,RATE*16,RATE*1,RATE*15] o_changesTo=GrassBlock class RockBlock(BasicBlock): particle_colors = [(0.4,0.4,0.4,1.0),(0.5,0.5,0.5,1.0),(0.6,0.6,0.6,1.0)] o_name="Rock" index=4 coords_top=[RATE*1,RATE*16,RATE*2,RATE*15] coords_btm=[RATE*1,RATE*16,RATE*2,RATE*15] coords_lft=[RATE*1,RATE*16,RATE*2,RATE*15] coords_rgt=[RATE*1,RATE*16,RATE*2,RATE*15] coords_fwd=[RATE*1,RATE*16,RATE*2,RATE*15] coords_bck=[RATE*1,RATE*16,RATE*2,RATE*15] class WoodBlock(BasicBlock): particle_colors = [(0.3,0.14,0.0,1.0),(0.1,0.25,0.0,1.0)] o_name="Wood" index=3 coords_top=[RATE*2,RATE*15,RATE*3,RATE*14] coords_btm=[RATE*2,RATE*15,RATE*3,RATE*14] coords_lft=[RATE*2,RATE*16,RATE*3,RATE*15] coords_rgt=[RATE*2,RATE*16,RATE*3,RATE*15] coords_fwd=[RATE*2,RATE*16,RATE*3,RATE*15] coords_bck=[RATE*2,RATE*16,RATE*3,RATE*15] class LeafBlock(BasicBlock): particle_colors = [(0.0,0.8,0.0,1.0)] o_name="Leaf" index=5 cutoff = False dcutoff = False trans=True coords_top=[RATE*4,RATE*16,RATE*5,RATE*15] coords_btm=[RATE*4,RATE*16,RATE*5,RATE*15] coords_lft=[RATE*4,RATE*16,RATE*5,RATE*15] coords_rgt=[RATE*4,RATE*16,RATE*5,RATE*15] coords_fwd=[RATE*4,RATE*16,RATE*5,RATE*15] coords_bck=[RATE*4,RATE*16,RATE*5,RATE*15] class ApplesNLeavesBlock(BasicBlock): particle_colors = [(0.0,0.8,0.0,1.0),(0.8,0.0,0.0,1.0)] o_name="Apples" index=6 o_changesTo=LeafBlock coords_top=[RATE*5,RATE*16,RATE*6,RATE*15] coords_btm=[RATE*5,RATE*16,RATE*6,RATE*15] coords_lft=[RATE*5,RATE*16,RATE*6,RATE*15] coords_rgt=[RATE*5,RATE*16,RATE*6,RATE*15] coords_fwd=[RATE*5,RATE*16,RATE*6,RATE*15] coords_bck=[RATE*5,RATE*16,RATE*6,RATE*15] #LeafBlock.o_changesTo = ApplesNLeavesBlock class RedCloth(BasicBlock): particle_colors = [(1.0,0.0,0.0,1.0),(0.8,0.0,0.0,1.0)] index=7 o_name="Cloth" coords_top=[RATE*0,RATE*2,RATE*1,RATE*1] coords_btm=[RATE*0,RATE*2,RATE*1,RATE*1] coords_lft=[RATE*0,RATE*2,RATE*1,RATE*1] coords_rgt=[RATE*0,RATE*2,RATE*1,RATE*1] coords_fwd=[RATE*0,RATE*2,RATE*1,RATE*1] coords_bck=[RATE*0,RATE*2,RATE*1,RATE*1] class GreenCloth(BasicBlock): particle_colors = [(0.0,1.0,0.0,1.0),(0.0,0.75,0.0,1.0),(0.0,0.5,0.0,1.0)] o_name="Cloth" index=10 coords_top=[RATE*3,RATE*2,RATE*4,RATE*1] coords_btm=[RATE*3,RATE*2,RATE*4,RATE*1] coords_lft=[RATE*3,RATE*2,RATE*4,RATE*1] coords_rgt=[RATE*3,RATE*2,RATE*4,RATE*1] coords_fwd=[RATE*3,RATE*2,RATE*4,RATE*1] coords_bck=[RATE*3,RATE*2,RATE*4,RATE*1] class BlueCloth(BasicBlock): particle_colors = [(0.1,0.1,1.0,1.0),(0.0,0.0,1.0,1.0),(0.0,0.0,0.8,1.0)] o_name="Cloth" index=12 coords_top=[RATE*5,RATE*2,RATE*6,RATE*1] coords_btm=[RATE*5,RATE*2,RATE*6,RATE*1] coords_lft=[RATE*5,RATE*2,RATE*6,RATE*1] coords_rgt=[RATE*5,RATE*2,RATE*6,RATE*1] coords_fwd=[RATE*5,RATE*2,RATE*6,RATE*1] coords_bck=[RATE*5,RATE*2,RATE*6,RATE*1] class OrangeCloth(BasicBlock): particle_colors = [(1.0,0.5,0.0,1.0)] o_name="Cloth" index=8 coords_top=[RATE*1,RATE*2,RATE*2,RATE*1] coords_btm=[RATE*1,RATE*2,RATE*2,RATE*1] coords_lft=[RATE*1,RATE*2,RATE*2,RATE*1] coords_rgt=[RATE*1,RATE*2,RATE*2,RATE*1] coords_fwd=[RATE*1,RATE*2,RATE*2,RATE*1] coords_bck=[RATE*1,RATE*2,RATE*2,RATE*1] class YellowCloth(BasicBlock): particle_colors = [(1.0,1.0,0.0,1.0)] o_name="Cloth" index=9 coords_top=[RATE*2,RATE*2,RATE*3,RATE*1] coords_btm=[RATE*2,RATE*2,RATE*3,RATE*1] coords_lft=[RATE*2,RATE*2,RATE*3,RATE*1] coords_rgt=[RATE*2,RATE*2,RATE*3,RATE*1] coords_fwd=[RATE*2,RATE*2,RATE*3,RATE*1] coords_bck=[RATE*2,RATE*2,RATE*3,RATE*1] class CyanCloth(BasicBlock): particle_colors = [(0.0,1.0,1.0,1.0),(0.0,0.9,0.9,1.0)] o_name="Cloth" index=11 coords_top=[RATE*4,RATE*2,RATE*5,RATE*1] coords_btm=[RATE*4,RATE*2,RATE*5,RATE*1] coords_lft=[RATE*4,RATE*2,RATE*5,RATE*1] coords_rgt=[RATE*4,RATE*2,RATE*5,RATE*1] coords_fwd=[RATE*4,RATE*2,RATE*5,RATE*1] coords_bck=[RATE*4,RATE*2,RATE*5,RATE*1] class PurpleCloth(BasicBlock): particle_colors = [(0.5,0.0,0.5,1.0)] o_name="Cloth" index=13 coords_top=[RATE*6,RATE*2,RATE*7,RATE*1] coords_btm=[RATE*6,RATE*2,RATE*7,RATE*1] coords_lft=[RATE*6,RATE*2,RATE*7,RATE*1] coords_rgt=[RATE*6,RATE*2,RATE*7,RATE*1] coords_fwd=[RATE*6,RATE*2,RATE*7,RATE*1] coords_bck=[RATE*6,RATE*2,RATE*7,RATE*1] class BlackCloth(BasicBlock): particle_colors = [(0.0,0.0,0.0,1.0),(0.1,0.1,0.1,1.0),(0.2,0.2,0.2,1.0)] o_name="Cloth" index=14 coords_top=[RATE*7,RATE*2,RATE*8,RATE*1] coords_btm=[RATE*7,RATE*2,RATE*8,RATE*1] coords_lft=[RATE*7,RATE*2,RATE*8,RATE*1] coords_rgt=[RATE*7,RATE*2,RATE*8,RATE*1] coords_fwd=[RATE*7,RATE*2,RATE*8,RATE*1] coords_bck=[RATE*7,RATE*2,RATE*8,RATE*1] class GrayCloth(BasicBlock): particle_colors = [(0.4,0.4,0.4,1.0),(0.5,0.5,0.5,1.0),(0.6,0.6,0.6,1.0)] o_name="Cloth" index=15 coords_top=[RATE*8,RATE*2,RATE*9,RATE*1] coords_btm=[RATE*8,RATE*2,RATE*9,RATE*1] coords_lft=[RATE*8,RATE*2,RATE*9,RATE*1] coords_rgt=[RATE*8,RATE*2,RATE*9,RATE*1] coords_fwd=[RATE*8,RATE*2,RATE*9,RATE*1] coords_bck=[RATE*8,RATE*2,RATE*9,RATE*1] class WhiteCloth(BasicBlock): particle_colors = [(1.0,1.0,1.0,1.0),(0.9,0.9,0.9,1.0),(0.8,0.8,0.8,1.0)] o_name="Cloth" index=16 coords_top=[RATE*9,RATE*2,RATE*10,RATE*1] coords_btm=[RATE*9,RATE*2,RATE*10,RATE*1] coords_lft=[RATE*9,RATE*2,RATE*10,RATE*1] coords_rgt=[RATE*9,RATE*2,RATE*10,RATE*1] coords_fwd=[RATE*9,RATE*2,RATE*10,RATE*1] coords_bck=[RATE*9,RATE*2,RATE*10,RATE*1] class FastCube: def __init__(self,pos,vel=(0,0,0)): self.coords=[RATE*1,RATE*15,RATE*2,RATE*14] self.pos=[-pos[0],pos[1],pos[2]] self.vel=vel def render(self): self.pos[0]+=self.vel[0] self.pos[1]+=self.vel[1] self.pos[2]+=self.vel[2] glBegin(GL_QUADS) #glColor(0.5,0.5,0.5,1.0); glNormal3f(0,0,1) glTexCoord2f(self.coords[0],self.coords[3]); glVertex3f(self.pos[0]+ -0.5,self.pos[1]+-0.5,self.pos[2]+0.5) #Front glTexCoord2f(self.coords[2],self.coords[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords[2],self.coords[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords[0],self.coords[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glNormal3f(0,0,-1) #glColor(0,1,0,1.0); glTexCoord2f(self.coords[2],self.coords[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords[0],self.coords[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Back glTexCoord2f(self.coords[0],self.coords[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords[2],self.coords[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glNormal3f(0,-1,0) #glColor(0,0,1,1.0); glTexCoord2f(self.coords[2],self.coords[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) #Bottom glTexCoord2f(self.coords[0],self.coords[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords[0],self.coords[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glTexCoord2f(self.coords[2],self.coords[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glNormal3f(0,1,0) #glColor(1,1,0,1.0); glTexCoord2f(self.coords[0],self.coords[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #Top glTexCoord2f(self.coords[2],self.coords[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords[2],self.coords[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords[0],self.coords[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glNormal3f(-1,0,0) #glColor(0,1,1,1.0); glTexCoord2f(self.coords[0],self.coords[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords[0],self.coords[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #left glTexCoord2f(self.coords[2],self.coords[1]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords[2],self.coords[3]); glVertex3f(self.pos[0]+-0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glNormal3f(1,0,0) #glColor(1,0,1,1.0); glTexCoord2f(self.coords[2],self.coords[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+-0.5) glTexCoord2f(self.coords[2],self.coords[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+-0.5) #right glTexCoord2f(self.coords[0],self.coords[1]); glVertex3f(self.pos[0]+0.5,self.pos[1]+0.5,self.pos[2]+0.5) glTexCoord2f(self.coords[0],self.coords[3]); glVertex3f(self.pos[0]+0.5,self.pos[1]+-0.5,self.pos[2]+0.5) glEnd() def render_lamocube(coords_fwd,coords_bck,coords_btm,coords_top,coords_lft,coords_rgt): glBegin(GL_QUADS) #glColor(0.5,0.5,0.5,1.0); glNormal3f(0,0,1) glTexCoord2f(coords_fwd[0],coords_fwd[3]); glVertex3f(+ -0.5,+-0.5,+0.5) #Front glTexCoord2f(coords_fwd[2],coords_fwd[3]); glVertex3f(+0.5,+-0.5,+0.5) glTexCoord2f(coords_fwd[2],coords_fwd[1]); glVertex3f(+0.5,+0.5,+0.5) glTexCoord2f(coords_fwd[0],coords_fwd[1]); glVertex3f(+-0.5,+0.5,+0.5) glNormal3f(0,0,-1) #glColor(0,1,0,1.0); glTexCoord2f(coords_bck[2],coords_bck[3]); glVertex3f(+-0.5,+-0.5,+-0.5) glTexCoord2f(coords_bck[0],coords_bck[3]); glVertex3f(+0.5,+-0.5,+-0.5) #Back glTexCoord2f(coords_bck[0],coords_bck[1]); glVertex3f(+0.5,+0.5,+-0.5) glTexCoord2f(coords_bck[2],coords_bck[1]); glVertex3f(+-0.5,+0.5,+-0.5) glNormal3f(0,-1,0) #glColor(0,0,1,1.0); glTexCoord2f(coords_btm[2],coords_btm[1]); glVertex3f(+-0.5,+-0.5,+-0.5) #Bottom glTexCoord2f(coords_btm[0],coords_btm[1]); glVertex3f(+0.5,+-0.5,+-0.5) glTexCoord2f(coords_btm[0],coords_btm[3]); glVertex3f(+0.5,+-0.5,+0.5) glTexCoord2f(coords_btm[2],coords_btm[3]); glVertex3f(+-0.5,+-0.5,+0.5) glNormal3f(0,1,0) #glColor(1,1,0,1.0); glTexCoord2f(coords_top[0],coords_top[1]); glVertex3f(+-0.5,+0.5,+-0.5) #Top glTexCoord2f(coords_top[2],coords_top[1]); glVertex3f(+0.5,+0.5,+-0.5) glTexCoord2f(coords_top[2],coords_top[3]); glVertex3f(+0.5,+0.5,+0.5) glTexCoord2f(coords_top[0],coords_top[3]); glVertex3f(+-0.5,+0.5,+0.5) glNormal3f(-1,0,0) #glColor(0,1,1,1.0); glTexCoord2f(coords_lft[0],coords_lft[3]); glVertex3f(+-0.5,+-0.5,+-0.5) glTexCoord2f(coords_lft[0],coords_lft[1]); glVertex3f(+-0.5,+0.5,+-0.5) #left glTexCoord2f(coords_lft[2],coords_lft[1]); glVertex3f(+-0.5,+0.5,+0.5) glTexCoord2f(coords_lft[2],coords_lft[3]); glVertex3f(+-0.5,+-0.5,+0.5) glNormal3f(1,0,0) #glColor(1,0,1,1.0); glTexCoord2f(coords_rgt[2],coords_rgt[3]); glVertex3f(+0.5,+-0.5,+-0.5) glTexCoord2f(coords_rgt[2],coords_rgt[1]); glVertex3f(+0.5,+0.5,+-0.5) #right glTexCoord2f(coords_rgt[0],coords_rgt[1]); glVertex3f(+0.5,+0.5,+0.5) glTexCoord2f(coords_rgt[0],coords_rgt[3]); glVertex3f(+0.5,+-0.5,+0.5) glEnd()
56.028063
179
0.622327
18,958
103,820
3.328463
0.015613
0.152866
0.090268
0.100125
0.935389
0.918242
0.90707
0.897212
0.873631
0.794567
0
0.102855
0.166538
103,820
1,852
180
56.058315
0.626384
0.025197
0
0.571343
0
0
0.003426
0
0
0
0
0
0
0
null
null
0.008393
0
null
null
0.004197
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
a41c42714b2bc24e35771b8325c94409c8c54fdb
48
py
Python
LibreriaFyF/LibFyF/routes/errors.py
FedeBrus64/TPI_2021_03
d86ff822263080a8f8631829bde87d1421a866c4
[ "MIT" ]
null
null
null
LibreriaFyF/LibFyF/routes/errors.py
FedeBrus64/TPI_2021_03
d86ff822263080a8f8631829bde87d1421a866c4
[ "MIT" ]
null
null
null
LibreriaFyF/LibFyF/routes/errors.py
FedeBrus64/TPI_2021_03
d86ff822263080a8f8631829bde87d1421a866c4
[ "MIT" ]
null
null
null
from flask import jsonify, Blueprint, Response
24
47
0.8125
6
48
6.5
1
0
0
0
0
0
0
0
0
0
0
0
0.145833
48
1
48
48
0.95122
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
1
0
7
a427c9021f98cde18b6efa7753c7054e4a1dace8
8,922
py
Python
opencart_api/addresses.py
IP-CAM/erpnext-opencart-api
ecf5c400fa50229e7f0de83f175bb0f4c59ac925
[ "MIT" ]
null
null
null
opencart_api/addresses.py
IP-CAM/erpnext-opencart-api
ecf5c400fa50229e7f0de83f175bb0f4c59ac925
[ "MIT" ]
null
null
null
opencart_api/addresses.py
IP-CAM/erpnext-opencart-api
ecf5c400fa50229e7f0de83f175bb0f4c59ac925
[ "MIT" ]
1
2020-11-03T10:38:40.000Z
2020-11-03T10:38:40.000Z
from __future__ import unicode_literals import frappe from frappe.utils import cstr import countries def get_address(site_name, oc_address_id): db_address = frappe.db.get('Address', {'oc_site': site_name, 'oc_address_id': oc_address_id}) if db_address: return frappe.get_doc('Address', db_address.get('name')) def get_address_by_customer(customer, address_type): db_address = frappe.db.get('Address', {'customer': customer, 'address_type': address_type}) if db_address: return frappe.get_doc('Address', db_address.get('name')) def create_or_update(site_name, oc_customer, doc_customer): oc_addresses = oc_customer.get('addresses', {}) oc_address = {} # gettting first address` if isinstance(oc_addresses, list): for addr in oc_addresses: oc_address = addr break else: for addr_id, addr in oc_addresses.items(): oc_address = addr break # no addresses found if not oc_address: return if not oc_address.get('country'): frappe.msgprint('Warning. Country is missed in Address of Customer %s %s' % (doc_customer.get('name'), doc_customer.get('customer_name'))) return countries.create_if_does_not_exist(oc_address.get('country')) firstname = oc_address.get('firstname') or oc_customer.get('firstname') or '' lastname = oc_address.get('lastname') or oc_customer.get('lastname') or '' customer_name = firstname + ' ' + lastname oc_address_id = oc_address.get('address_id') # doc_address = get_address(site_name, oc_address_id) address_type = 'Office' if oc_address.get('company') else 'Personal' doc_address = get_address_by_customer(doc_customer.get('name'), address_type) if doc_address: # update existed Address (Billing) params = { 'address_type': address_type, 'customer': doc_customer.get('name'), 'phone': oc_customer.get('telephone', ''), 'fax': oc_customer.get('fax', ''), 'email_id': oc_customer.get('email', ''), 'customer_name': customer_name, 'pincode': oc_address.get('postcode', ''), 'country': oc_address.get('country', ''), 'state': oc_address.get('zone'), 'city': oc_address.get('city', 'not specified'), 'address_line1': oc_address.get('address_1', ''), 'address_line2': oc_address.get('address_2', ''), 'oc_address_id': oc_address_id } doc_address.update(params) doc_address.save() else: # create new Address params = { 'doctype': 'Address', 'address_type': address_type, 'customer': doc_customer.get('name'), 'phone': oc_customer.get('telephone', ''), 'fax': oc_customer.get('fax', ''), 'email_id': oc_customer.get('email', ''), 'customer_name': customer_name, 'pincode': oc_address.get('postcode', ''), 'country': oc_address.get('country', ''), 'state': oc_address.get('zone'), 'city': oc_address.get('city', 'not specified'), 'address_line1': oc_address.get('address_1', ''), 'address_line2': oc_address.get('address_2', ''), 'oc_site': site_name, 'oc_address_id': oc_address_id } doc_address = frappe.get_doc(params) doc_address.insert(ignore_permissions=True) # update Customer's name to Company name if needed if oc_address.get('company') and (oc_address.get('company') != doc_customer.get('customer_name') or 'Company' != doc_customer.get('customer_type')): doc_customer.update({ 'oc_is_updating': 1, 'customer_type': 'Company', 'customer_name': oc_address.get('company') }) doc_customer.save() def create_or_update_from_order(site_name, doc_customer, oc_order): # creating address from order payment if not oc_order.get('shipping_country'): frappe.msgprint('Warning. Country is missed in Address of Customer %s %s' % (doc_customer.get('name'), doc_customer.get('customer_name'))) return # billing address countries.create_if_does_not_exist(oc_order.get('payment_country')) doc_address = get_address_by_customer(doc_customer.get('name'), 'Billing') if doc_address: # update existed Address params = { 'address_type': 'Billing', 'is_primary_address': 1, 'is_shipping_address': 0, 'phone': oc_order.get('telephone', ''), 'fax': oc_order.get('fax', ''), 'email_id': oc_order.get('email', ''), 'customer_name': oc_order.get('payment_firstname', '') + ' ' + oc_order.get('payment_lastname', ''), 'pincode': oc_order.get('payment_postcode', ''), 'country': oc_order.get('payment_country', ''), 'state': oc_order.get('payment_zone'), 'city': oc_order.get('payment_city', ''), 'address_line1': oc_order.get('payment_address_1', ''), 'address_line2': oc_order.get('payment_address_2', '') } doc_address.update(params) doc_address.save() else: # create new Address (Billing) params = { 'doctype': 'Address', 'address_type': 'Billing', 'is_primary_address': 1, 'is_shipping_address': 0, 'customer': doc_customer.get('name'), 'phone': oc_order.get('telephone', ''), 'fax': oc_order.get('fax', ''), 'email_id': oc_order.get('email', ''), 'customer_name': oc_order.get('payment_firstname', '') + ' ' + oc_order.get('payment_lastname', ''), 'pincode': oc_order.get('payment_postcode', ''), 'country': oc_order.get('payment_country', ''), 'state': oc_order.get('payment_zone'), 'city': oc_order.get('payment_city', ''), 'address_line1': oc_order.get('payment_address_1', ''), 'address_line2': oc_order.get('payment_address_2', ''), 'oc_site': site_name, } doc_address = frappe.get_doc(params) doc_address.autoname() if frappe.db.get('Address', doc_address.get('name')): doc_address = frappe.get_doc('Address', doc_address.get('name')) doc_address.update(params) doc_address.save() else: doc_address.insert(ignore_permissions=True) # shipping address countries.create_if_does_not_exist(oc_order.get('shipping_country')) doc_address = get_address_by_customer(doc_customer.get('name'), 'Shipping') if doc_address: # update existed Address params = { 'address_type': 'Shipping', 'is_primary_address': 0, 'is_shipping_address': 1, 'phone': oc_order.get('telephone', ''), 'fax': oc_order.get('fax', ''), 'email_id': oc_order.get('email', ''), 'customer_name': oc_order.get('shipping_firstname', '') + ' ' + oc_order.get('shipping_lastname', ''), 'pincode': oc_order.get('shipping_postcode', ''), 'country': oc_order.get('shipping_country', ''), 'state': oc_order.get('shipping_zone'), 'city': oc_order.get('shipping_city', ''), 'address_line1': oc_order.get('shipping_address_1', ''), 'address_line2': oc_order.get('shipping_address_2', '') } doc_address.update(params) doc_address.save() else: # create new Address (Shipping) params = { 'doctype': 'Address', 'address_type': 'Shipping', 'is_primary_address': 0, 'is_shipping_address': 1, 'customer': doc_customer.get('name'), 'phone': oc_order.get('telephone', ''), 'fax': oc_order.get('fax', ''), 'email_id': oc_order.get('email', ''), 'customer_name': oc_order.get('shipping_firstname', '') + ' ' + oc_order.get('shipping_lastname', ''), 'pincode': oc_order.get('shipping_postcode', ''), 'country': oc_order.get('shipping_country', ''), 'state': oc_order.get('shipping_zone'), 'city': oc_order.get('shipping_city', ''), 'address_line1': oc_order.get('shipping_address_1', ''), 'address_line2': oc_order.get('shipping_address_2', ''), 'oc_site': site_name, } doc_address = frappe.get_doc(params) doc_address.autoname() if frappe.db.get('Address', doc_address.get('name')): doc_address = frappe.get_doc('Address', doc_address.get('name')) doc_address.update(params) doc_address.save() else: doc_address.insert(ignore_permissions=True)
43.101449
152
0.590899
1,027
8,922
4.8111
0.08666
0.068002
0.095122
0.065574
0.814612
0.774337
0.739324
0.721311
0.709573
0.694191
0
0.004987
0.25835
8,922
206
153
43.31068
0.741726
0.041358
0
0.741573
0
0
0.246048
0
0
0
0
0
0
1
0.022472
false
0
0.022472
0
0.073034
0.011236
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
74cc3e80dff6180d22380adf67188d975af62b78
49
py
Python
썸머코딩/tempCodeRunnerFile.py
seunghwanly/CODING-TEST
a820da950c163d399594770199aa2e782d1fbbde
[ "MIT" ]
null
null
null
썸머코딩/tempCodeRunnerFile.py
seunghwanly/CODING-TEST
a820da950c163d399594770199aa2e782d1fbbde
[ "MIT" ]
null
null
null
썸머코딩/tempCodeRunnerFile.py
seunghwanly/CODING-TEST
a820da950c163d399594770199aa2e782d1fbbde
[ "MIT" ]
null
null
null
"price=110 code=012345 time=2019062009",
24.5
48
0.653061
6
49
5.333333
1
0
0
0
0
0
0
0
0
0
0
0.5
0.22449
49
2
48
24.5
0.342105
0
0
0
0
0
0.755102
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
1
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
7
2d3118a58ff1a70ab24785e71514804276c6a153
117
py
Python
tools/bin/pythonSrc/pychecker-0.8.18/test/input/test_getmodule.py
YangHao666666/hawq
10cff8350f1ba806c6fec64eb67e0e6f6f24786c
[ "Artistic-1.0-Perl", "ISC", "bzip2-1.0.5", "TCL", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "PostgreSQL", "BSD-3-Clause" ]
450
2015-09-05T09:12:51.000Z
2018-08-30T01:45:36.000Z
tools/bin/pythonSrc/pychecker-0.8.18/test/input/test_getmodule.py
YangHao666666/hawq
10cff8350f1ba806c6fec64eb67e0e6f6f24786c
[ "Artistic-1.0-Perl", "ISC", "bzip2-1.0.5", "TCL", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "PostgreSQL", "BSD-3-Clause" ]
1,274
2015-09-22T20:06:16.000Z
2018-08-31T22:14:00.000Z
tools/bin/pythonSrc/pychecker-0.8.18/test/input/test_getmodule.py
YangHao666666/hawq
10cff8350f1ba806c6fec64eb67e0e6f6f24786c
[ "Artistic-1.0-Perl", "ISC", "bzip2-1.0.5", "TCL", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "PostgreSQL", "BSD-3-Clause" ]
278
2015-09-21T19:15:06.000Z
2018-08-31T00:36:51.000Z
# -*- Mode: Python -*- # vi:si:et:sw=4:sts=4:ts=4 from getmodule.A import C as one from getmodule.B import C as two
19.5
32
0.666667
25
117
3.12
0.72
0.333333
0.230769
0
0
0
0
0
0
0
0
0.030928
0.17094
117
5
33
23.4
0.773196
0.384615
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
2d3232015081c6cd5aab6aa065ae5a41b11e892a
21,002
py
Python
valorant_api/api.py
MinshuG/valorant-api
9c9a9dd4eb5401e3f80dc4daabddf2e343558260
[ "MIT" ]
3
2021-02-26T01:48:32.000Z
2022-02-08T03:04:50.000Z
valorant_api/api.py
MinshuG/valorant-api
9c9a9dd4eb5401e3f80dc4daabddf2e343558260
[ "MIT" ]
1
2021-07-05T00:03:25.000Z
2021-07-28T11:41:57.000Z
valorant_api/api.py
MinshuG/valorant-api
9c9a9dd4eb5401e3f80dc4daabddf2e343558260
[ "MIT" ]
3
2021-02-14T11:00:34.000Z
2021-07-19T17:36:08.000Z
from valorant_api.gear import Gear from valorant_api.events import Event from valorant_api.contracts import Contract from .competitive import Competitive from .competitivetiers import CompetitiveTier from .sprays import Spray from .sprays import Level as SprayLevel from .agents import Agent from .base_list import BaseList from .buddies import Buddy from .buddies import Level as BuddyLevel from .bundles import Bundle from .contenttiers import ContentTier from .currencies import Currency from .endpoints import Endpoints from .gamemodes import GameMode, Equippable from .httpclient import AsyncClient, SyncClient from .maps import Map from .playercards import PlayerCard from .playertitles import PlayerTitle from .seasons import Season from .themes import Theme from .version import Version from .weapons import Chroma, Skin, Weapon, Level class SyncValorantApi: """ Synchronous valorant-api wrapper """ headers: dict client: SyncClient params: dict = {} def __init__(self, headers=None, language: str = "en-US"): if headers is None: headers = {} self.params["language"] = language self.headers = headers self.client = SyncClient(headers, params=self.params) def get_agents(self, *args, **kwargs) -> BaseList[Agent]: data = self.client.get(Endpoints.Agents, *args, **kwargs) return BaseList([Agent(x) for x in data]) def search_agents_by_uuid(self, uuid: str, *args, **kwargs) -> Agent: data = self.client.get(f"{Endpoints.Agents}/{uuid}", *args, **kwargs) return Agent(data) def get_buddies(self, *args, **kwargs) -> BaseList[Buddy]: data = self.client.get(Endpoints.Buddies, *args, **kwargs) return BaseList([Buddy(x) for x in data]) def search_buddies_by_uuid(self, uuid: str, *args, **kwargs) -> Buddy: data = self.client.get(f"{Endpoints.Buddies}/{uuid}", *args, **kwargs) return Buddy(data) def get_bundles(self, *args, **kwargs) -> BaseList[Bundle]: data = self.client.get(Endpoints.Bundles, *args, **kwargs) return BaseList([Bundle(x) for x in data]) def search_bundles_by_uuid(self, uuid: str, *args, **kwargs) -> Bundle: data = self.client.get(f"{Endpoints.Bundles}/{uuid}", *args, **kwargs) return Bundle(data) def get_contenttiers(self, *args, **kwargs) -> BaseList[ContentTier]: data = self.client.get(Endpoints.ContentTiers, *args, **kwargs) return BaseList([ContentTier(x) for x in data]) def search_contenttier_by_uuid(self, uuid: str, *args, **kwargs) -> ContentTier: data = self.client.get(f"{Endpoints.ContentTiers}/{uuid}", *args, **kwargs) return ContentTier(data) def get_currencies(self, *args, **kwargs) -> BaseList[Currency]: data = self.client.get(Endpoints.Currencies, *args, **kwargs) return BaseList([Currency(x) for x in data]) def search_currencies_by_uuid(self, uuid: str, *args, **kwargs) -> ContentTier: data = self.client.get(f"{Endpoints.Currencies}/{uuid}", *args, **kwargs) return ContentTier(data) def get_gamemodes(self, *args, **kwargs) -> BaseList[GameMode]: data = self.client.get(Endpoints.GameMode, *args, **kwargs) return BaseList([GameMode(x) for x in data]) def search_gamemodes_by_uuid(self, uuid: str, *args, **kwargs) -> GameMode: data = self.client.get(f"{Endpoints.GameMode}/{uuid}", *args, **kwargs) return GameMode(data) def get_gamemode_equippables(self, *args, **kwargs) -> BaseList[Equippable]: data = self.client.get(Endpoints.GamemodeEquippables, *args, **kwargs) return BaseList([Equippable(x) for x in data]) def search_gamemode_equippables_by_uuid(self, uuid: str, *args, **kwargs) -> Equippable: data = self.client.get(f"{Endpoints.GamemodeEquippables}/{uuid}", *args, **kwargs) return Equippable(data) def get_maps(self, *args, **kwargs) -> BaseList[Map]: data = self.client.get(Endpoints.Maps, *args, **kwargs) return BaseList([Map(x) for x in data]) def search_maps_by_uuid(self, uuid: str, *args, **kwargs) -> Map: data = self.client.get(f"{Endpoints.Maps}/{uuid}", *args, **kwargs) return Map(data) def get_playercards(self, *args, **kwargs) -> BaseList[PlayerCard]: data = self.client.get(Endpoints.PlayerCards, *args, **kwargs) return BaseList([PlayerCard(x) for x in data]) def search_playercards_by_uuid(self, uuid: str, *args, **kwargs) -> PlayerCard: data = self.client.get(f"{Endpoints.PlayerCards}/{uuid}", *args, **kwargs) return PlayerCard(data) def get_playertitles(self, *args, **kwargs) -> BaseList[PlayerTitle]: data = self.client.get(Endpoints.PlayerTitles, *args, **kwargs) return BaseList([PlayerTitle(x) for x in data]) def search_playertitles_by_uuid(self, uuid: str, *args, **kwargs) -> PlayerTitle: data = self.client.get(f"{Endpoints.PlayerTitles}/{uuid}", *args, **kwargs) return PlayerTitle(data) def get_seasons(self, *args, **kwargs) -> BaseList[Season]: data = self.client.get(Endpoints.Seasons, *args, **kwargs) return BaseList([Season(x) for x in data]) def search_seasons_by_uuid(self, uuid: str, *args, **kwargs) -> Season: data = self.client.get(f"{Endpoints.Seasons}/{uuid}", *args, **kwargs) return Season(data) def get_themes(self, *args, **kwargs) -> BaseList[Theme]: data = self.client.get(Endpoints.Themes, *args, **kwargs) return BaseList([Theme(x) for x in data]) def search_themes_by_uuid(self, uuid: str, *args, **kwargs) -> Theme: data = self.client.get(f"{Endpoints.Themes}/{uuid}", *args, **kwargs) return Theme(data) def get_weapons(self, *args, **kwargs) -> BaseList[Weapon]: data = self.client.get(Endpoints.Weapons, *args, **kwargs) return BaseList([Weapon(x) for x in data]) def search_weapons_by_uuid(self, uuid: str, *args, **kwargs) -> Weapon: data = self.client.get(f"{Endpoints.Weapons}/{uuid}", *args, **kwargs) return Weapon(data) def get_sprays(self, *args, **kwargs) -> BaseList[Spray]: data = self.client.get(Endpoints.Sprays, *args, **kwargs) return BaseList([Spray(x) for x in data]) def search_sprays_by_uuid(self, uuid: str, *args, **kwargs) -> Spray: data = self.client.get(f"{Endpoints.Sprays}/{uuid}", *args, **kwargs) return Spray(data) def get_version(self, *args, **kwargs) -> Version: data = self.client.get(f"{Endpoints.Version}", *args, **kwargs) return Version(data) def get_competitivetiers(self, *args, **kwargs) -> BaseList[CompetitiveTier]: data = self.client.get(Endpoints.CompetitiveTiers, *args, **kwargs) return BaseList([CompetitiveTier(x) for x in data]) def search_competitivetiers_by_uuid(self, uuid: str, *args, **kwargs) -> CompetitiveTier: data = self.client.get(f"{Endpoints.CompetitiveTiers}/{uuid}", *args, **kwargs) return CompetitiveTier(data) def get_competitive(self, *args, **kwargs) -> BaseList[Competitive]: data = self.client.get(Endpoints.Competitive, *args, **kwargs) return BaseList([Competitive(x) for x in data]) def search_competitive_by_uuid(self, uuid: str, *args, **kwargs) -> BaseList[Competitive]: data = self.client.get(f"{Endpoints.Competitive}/{uuid}", *args, **kwargs) return Competitive(data) def get_weapon_skins(self, *args, **kwargs) -> BaseList[Skin]: data = self.client.get(Endpoints.WeaponSkins, *args, **kwargs) return BaseList([Skin(x) for x in data]) def search_weapon_skins_by_uuid(self, uuid: str, *args, **kwargs): data = self.client.get(f"{Endpoints.WeaponSkins}/{uuid}", *args, **kwargs) return Skin(data) def get_weapons_levels(self, *args, **kwargs) -> BaseList[Level]: data = self.client.get(Endpoints.WeaponSkinLevels, *args, **kwargs) return BaseList([Level(x) for x in data]) def search_weapon_levels_by_uuid(self, uuid: str, *args, **kwargs) -> Level: data = self.client.get(f"{Endpoints.WeaponSkinLevels}/{uuid}", *args, **kwargs) return Level(data) def get_weapon_chromas(self, *args, **kwargs) -> BaseList[Chroma]: data = self.client.get(Endpoints.WeaponSkinChromas, *args, **kwargs) return BaseList([Chroma(x) for x in data]) def search_weapon_chromas_by_uuid(self, uuid: str, *args, **kwargs) -> Chroma: data = self.client.get(f"{Endpoints.WeaponSkinChromas}/{uuid}", *args, **kwargs) return Chroma(data) def get_contracts(self, *args, **kwargs) -> BaseList[Contract]: data = self.client.get(Endpoints.Contracts, *args, **kwargs) return BaseList([Contract(x) for x in data]) def search_contracts_by_uuid(self, uuid: str, *args, **kwargs) -> Chroma: data = self.client.get(f"{Endpoints.Contracts}/{uuid}", *args, **kwargs) return Contract(data) def get_events(self, *args, **kwargs) -> BaseList[Event]: data = self.client.get(Endpoints.Events, *args, **kwargs) return BaseList([Event(x) for x in data]) def search_events_by_uuid(self, uuid: str, *args, **kwargs) -> Event: data = self.client.get(f"{Endpoints.Events}/{uuid}", *args, **kwargs) return Contract(data) def get_gears(self, *args, **kwargs) -> BaseList[Gear]: data = self.client.get(Endpoints.Gears, *args, **kwargs) return BaseList([Gear(x) for x in data]) def search_gears_by_uuid(self, uuid: str, *args, **kwargs) -> Gear: data = self.client.get(f"{Endpoints.Gears}/{uuid}", *args, **kwargs) return Gear(data) def get_buddy_levels(self, *args, **kwargs) -> BaseList[BuddyLevel]: data = self.client.get(Endpoints.BuddyLevels, *args, **kwargs) return BaseList([BuddyLevel(x) for x in data]) def search_buddy_levels_by_uuid(self, uuid: str, *args, **kwargs) -> BuddyLevel: data = self.client.get(f"{Endpoints.BuddyLevels}/{uuid}", *args, **kwargs) return BuddyLevel(data) def get_spray_levels(self, *args, **kwargs) -> BaseList[SprayLevel]: data = self.client.get(Endpoints.SprayLevels, *args, **kwargs) return BaseList([SprayLevel(x) for x in data]) def search_spray_levels_by_uuid(self, uuid: str, *args, **kwargs) -> SprayLevel: data = self.client.get(f"{Endpoints.SprayLevels}/{uuid}", *args, **kwargs) return SprayLevel(data) class AsyncValorantApi: """ Asynchronous valorant-api wrapper """ headers: dict client: AsyncClient params: dict = {} def __init__(self, headers=None, language: str = "en-US"): if headers is None: headers = {} self.params["language"] = language self.headers = headers self.client = AsyncClient(headers, params=self.params) async def get_agents(self, *args, **kwargs) -> BaseList[Agent]: data = await self.client.get(Endpoints.Agents, *args, **kwargs) return BaseList([Agent(x) for x in data]) async def search_agents_by_uuid(self, uuid: str, *args, **kwargs) -> Agent: data = await self.client.get(f"{Endpoints.Agents}/{uuid}", *args, **kwargs) return Agent(data) async def get_buddies(self, *args, **kwargs) -> BaseList[Buddy]: data = await self.client.get(Endpoints.Buddies, *args, **kwargs) return BaseList([Buddy(x) for x in data]) async def search_buddies_by_uuid(self, uuid: str, *args, **kwargs) -> Buddy: data = await self.client.get(f"{Endpoints.Buddies}/{uuid}", *args, **kwargs) return Buddy(data) async def get_bundles(self, *args, **kwargs) -> BaseList[Bundle]: data = await self.client.get(Endpoints.Bundles, *args, **kwargs) return BaseList([Bundle(x) for x in data]) async def search_bundles_by_uuid(self, uuid: str, *args, **kwargs) -> Bundle: data = await self.client.get(f"{Endpoints.Bundles}/{uuid}", *args, **kwargs) return Bundle(data) async def get_contenttiers(self, *args, **kwargs) -> BaseList[ContentTier]: data = await self.client.get(Endpoints.ContentTiers, *args, **kwargs) return BaseList([ContentTier(x) for x in data]) async def search_contenttier_by_uuid(self, uuid: str, *args, **kwargs) -> ContentTier: data = await self.client.get(f"{Endpoints.ContentTiers}/{uuid}", *args, **kwargs) return ContentTier(data) async def get_currencies(self, *args, **kwargs) -> BaseList[Currency]: data = await self.client.get(Endpoints.Currencies, *args, **kwargs) return BaseList([Currency(x) for x in data]) async def search_currencies_by_uuid(self, uuid: str, *args, **kwargs) -> ContentTier: data = await self.client.get(f"{Endpoints.Currencies}/{uuid}", *args, **kwargs) return ContentTier(data) async def get_gamemodes(self, *args, **kwargs) -> BaseList[GameMode]: data = await self.client.get(Endpoints.GameMode, *args, **kwargs) return BaseList([GameMode(x) for x in data]) async def search_gamemodes_by_uuid(self, uuid: str, *args, **kwargs) -> GameMode: data = await self.client.get(f"{Endpoints.GameMode}/{uuid}", *args, **kwargs) return GameMode(data) async def get_gamemode_equippables(self, *args, **kwargs) -> BaseList[Equippable]: data = await self.client.get(Endpoints.GamemodeEquippables, *args, **kwargs) return BaseList([Equippable(x) for x in data]) async def search_gamemode_equippables_by_uuid(self, uuid: str, *args, **kwargs) -> Equippable: data = await self.client.get(f"{Endpoints.GamemodeEquippables}/{uuid}", *args, **kwargs) return Equippable(data) async def get_maps(self, *args, **kwargs) -> BaseList[Map]: data = await self.client.get(Endpoints.Maps, *args, **kwargs) return BaseList([Map(x) for x in data]) async def search_maps_by_uuid(self, uuid: str, *args, **kwargs) -> Map: data = await self.client.get(f"{Endpoints.Maps}/{uuid}", *args, **kwargs) return Map(data) async def get_playercards(self, *args, **kwargs) -> BaseList[PlayerCard]: data = await self.client.get(Endpoints.PlayerCards, *args, **kwargs) return BaseList([PlayerCard(x) for x in data]) async def search_playercards_by_uuid(self, uuid: str, *args, **kwargs) -> PlayerCard: data = await self.client.get(f"{Endpoints.PlayerCards}/{uuid}", *args, **kwargs) return PlayerCard(data) async def get_playertitles(self, *args, **kwargs) -> BaseList[PlayerTitle]: data = await self.client.get(Endpoints.PlayerTitles, *args, **kwargs) return BaseList([PlayerTitle(x) for x in data]) async def search_playertitles_by_uuid(self, uuid: str, *args, **kwargs) -> PlayerTitle: data = await self.client.get(f"{Endpoints.PlayerTitles}/{uuid}", *args, **kwargs) return PlayerTitle(data) async def get_seasons(self, *args, **kwargs) -> BaseList[Season]: data = await self.client.get(Endpoints.Seasons, *args, **kwargs) return BaseList([Season(x) for x in data]) async def search_seasons_by_uuid(self, uuid: str, *args, **kwargs) -> Season: data = await self.client.get(f"{Endpoints.Seasons}/{uuid}", *args, **kwargs) return Season(data) async def get_themes(self, *args, **kwargs) -> BaseList[Theme]: data = await self.client.get(Endpoints.Themes, *args, **kwargs) return BaseList([Theme(x) for x in data]) async def search_themes_by_uuid(self, uuid: str, *args, **kwargs) -> Theme: data = await self.client.get(f"{Endpoints.Themes}/{uuid}", *args, **kwargs) return Theme(data) async def get_weapons(self, *args, **kwargs) -> BaseList[Weapon]: data = await self.client.get(Endpoints.Weapons, *args, **kwargs) return BaseList([Weapon(x) for x in data]) async def search_weapons_by_uuid(self, uuid: str, *args, **kwargs) -> Weapon: data = await self.client.get(f"{Endpoints.Weapons}/{uuid}", *args, **kwargs) return Weapon(data) async def get_sprays(self, *args, **kwargs) -> BaseList[Spray]: data = await self.client.get(Endpoints.Sprays, *args, **kwargs) return BaseList([Spray(x) for x in data]) async def search_sprays_by_uuid(self, uuid: str, *args, **kwargs) -> Spray: data = await self.client.get(f"{Endpoints.Sprays}/{uuid}", *args, **kwargs) return Spray(data) async def get_version(self, *args, **kwargs) -> Version: data = await self.client.get(f"{Endpoints.Version}", *args, **kwargs) return Version(data) async def get_competitivetiers(self, *args, **kwargs) -> BaseList[CompetitiveTier]: data = await self.client.get(Endpoints.CompetitiveTiers, *args, **kwargs) return BaseList([CompetitiveTier(x) for x in data]) async def search_competitivetiers_by_uuid(self, uuid: str, *args, **kwargs) -> CompetitiveTier: data = await self.client.get(f"{Endpoints.CompetitiveTiers}/{uuid}", *args, **kwargs) return CompetitiveTier(data) async def get_competitive(self, *args, **kwargs) -> BaseList[Competitive]: data = await self.client.get(Endpoints.Competitive, *args, **kwargs) return BaseList([Competitive(x) for x in data]) async def search_competitive_by_uuid(self, uuid: str, *args, **kwargs) -> BaseList[Competitive]: data = await self.client.get(f"{Endpoints.Competitive}/{uuid}", *args, **kwargs) return Competitive(data) async def get_weapon_skins(self, *args, **kwargs) -> BaseList[Skin]: data = await self.client.get(Endpoints.WeaponSkins, *args, **kwargs) return BaseList([Skin(x) for x in data]) async def search_weapon_skins_by_uuid(self, uuid: str, *args, **kwargs) -> Skin: data = await self.client.get(f"{Endpoints.WeaponSkins}/{uuid}", *args, **kwargs) return Skin(data) async def get_weapons_levels(self, *args, **kwargs) -> BaseList[Level]: data = await self.client.get(Endpoints.WeaponSkinLevels, *args, **kwargs) return BaseList([Level(x) for x in data]) async def search_weapon_levels_by_uuid(self, uuid: str, *args, **kwargs) -> Level: data = await self.client.get(f"{Endpoints.WeaponSkinLevels}/{uuid}", *args, **kwargs) return Level(data) async def get_weapon_chromas(self, *args, **kwargs) -> BaseList[Chroma]: data = await self.client.get(Endpoints.WeaponSkinChromas, *args, **kwargs) return BaseList([Chroma(x) for x in data]) async def search_weapon_chromas_by_uuid(self, uuid: str, *args, **kwargs) -> Chroma: data = await self.client.get(f"{Endpoints.WeaponSkinChromas}/{uuid}", *args, **kwargs) return Chroma(data) async def get_contracts(self, *args, **kwargs) -> BaseList[Contract]: data = await self.client.get(Endpoints.Contracts, *args, **kwargs) return BaseList([Contract(x) for x in data]) async def search_contracts_by_uuid(self, uuid: str, *args, **kwargs) -> Chroma: data = await self.client.get(f"{Endpoints.Contracts}/{uuid}", *args, **kwargs) return Contract(data) async def get_events(self, *args, **kwargs) -> BaseList[Event]: data = await self.client.get(Endpoints.Events, *args, **kwargs) return BaseList([Event(x) for x in data]) async def search_events_by_uuid(self, uuid: str, *args, **kwargs) -> Event: data = await self.client.get(f"{Endpoints.Events}/{uuid}", *args, **kwargs) return Contract(data) async def get_gears(self, *args, **kwargs) -> BaseList[Gear]: data = await self.client.get(Endpoints.Gears, *args, **kwargs) return BaseList([Gear(x) for x in data]) async def search_gears_by_uuid(self, uuid: str, *args, **kwargs) -> Gear: data = await self.client.get(f"{Endpoints.Gears}/{uuid}", *args, **kwargs) return Gear(data) async def get_buddy_levels(self, *args, **kwargs) -> BaseList[BuddyLevel]: data = await self.client.get(Endpoints.BuddyLevels, *args, **kwargs) return BaseList([BuddyLevel(x) for x in data]) async def search_buddy_levels_by_uuid(self, uuid: str, *args, **kwargs) -> BuddyLevel: data = await self.client.get(f"{Endpoints.BuddyLevels}/{uuid}", *args, **kwargs) return BuddyLevel(data) async def get_spray_levels(self, *args, **kwargs) -> BaseList[SprayLevel]: data = await self.client.get(Endpoints.SprayLevels, *args, **kwargs) return BaseList([SprayLevel(x) for x in data]) async def search_spray_levels_by_uuid(self, uuid: str, *args, **kwargs) -> SprayLevel: data = await self.client.get(f"{Endpoints.SprayLevels}/{uuid}", *args, **kwargs) return SprayLevel(data)
46.567627
100
0.658318
2,657
21,002
5.117049
0.036884
0.14416
0.093704
0.051486
0.930641
0.92917
0.914975
0.907326
0.894013
0.764342
0
0
0.194029
21,002
450
101
46.671111
0.803214
0.003381
0
0.331361
0
0
0.069144
0.066083
0
0
0
0
0
1
0.150888
false
0
0.071006
0
0.535503
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
0
0
0
1
0
0
7
7470cb253cc6e24a08405a65350eb474f8856756
15,991
py
Python
tests/test_subscribers.py
Firefly-Automation/Firefly
fccf40b8f6e015ef34c292264184090eb8d860b7
[ "Apache-2.0" ]
20
2017-03-24T08:25:50.000Z
2020-07-07T16:09:34.000Z
tests/test_subscribers.py
Firefly-Automation/Firefly
fccf40b8f6e015ef34c292264184090eb8d860b7
[ "Apache-2.0" ]
1
2017-11-02T17:46:48.000Z
2017-11-02T17:46:48.000Z
tests/test_subscribers.py
Firefly-Automation/Firefly
fccf40b8f6e015ef34c292264184090eb8d860b7
[ "Apache-2.0" ]
5
2017-04-11T02:27:38.000Z
2020-12-11T07:44:00.000Z
import unittest from Firefly.helpers.subscribers import Subscriptions, verify_event_action from Firefly.const import (EVENT_ACTION_ANY, EVENT_PROPERTY_ANY, EVENT_ACTION_ON, EVENT_ACTION_OFF, STATE, EVENT_ACTION_OFF, EVENT_ACTION_ON) class VerifyEventActions(unittest.TestCase): def test_any_string(self): event_action = EVENT_ACTION_ANY verify = verify_event_action(event_action) self.assertEquals(verify, [{ EVENT_ACTION_ANY: [EVENT_ACTION_ANY] }]) def test_any_list(self): event_action = [EVENT_ACTION_ANY] verify = verify_event_action(event_action) self.assertEquals(verify, [{ EVENT_ACTION_ANY: [EVENT_ACTION_ANY] }]) def test_single_event_action(self): event_action = { STATE: EVENT_ACTION_OFF } verify = verify_event_action(event_action) self.assertEquals(verify, [{ STATE: [EVENT_ACTION_OFF] }]) def test_single_event_list(self): event_action = [{ STATE: EVENT_ACTION_OFF }] verify = verify_event_action(event_action) self.assertEquals(verify, [{ STATE: [EVENT_ACTION_OFF] }]) def test_two_event_action(self): event_action = { STATE: [EVENT_ACTION_OFF, EVENT_ACTION_ON] } verify = verify_event_action(event_action) self.assertEquals(verify, [{ STATE: [EVENT_ACTION_OFF, EVENT_ACTION_ON] }]) def test_two_event_action_list(self): event_action = [{ STATE: [EVENT_ACTION_OFF, EVENT_ACTION_ON] }] verify = verify_event_action(event_action) self.assertEquals(verify, [{ STATE: [EVENT_ACTION_OFF, EVENT_ACTION_ON] }]) def test_any_single(self): event_action = { EVENT_PROPERTY_ANY: [EVENT_ACTION_OFF] } verify = verify_event_action(event_action) self.assertEquals(verify, [{ EVENT_ACTION_ANY: [EVENT_ACTION_OFF] }]) class SubscribersTest(unittest.TestCase): def setUp(self): self.device = 'fake_device' self.device_b = 'fake_device_b' self.app = 'subscriber_app' self.app_b = 'subscriber_app_b' def test_add_subscriber_any(self): s = Subscriptions() s.add_subscriber(self.app, self.device) self.assertDictEqual(s.subscriptions, { self.device: { EVENT_ACTION_ANY: { EVENT_ACTION_ANY: [self.app] } } }) def test_add_subscriber_custom_any(self): """This test would be an app listening to any change of property custom. An example of this would be a light switch and an app that wants to trigger when the value of switch is changed. This would be event_action={STATE:EVENT_ACTION_ANY} """ s = Subscriptions() s.add_subscriber(self.app, self.device, event_action={ 'CUSTOM': EVENT_ACTION_ANY }) self.assertDictEqual(s.subscriptions, { self.device: { 'CUSTOM': { EVENT_ACTION_ANY: [self.app] } } }) def test_add_subscriber_any_custom(self): """This would test an app listening any change that the value is 'CUSTOM' An example of this would be a powerstrip with multiple controllable outlets and an app that wants to be triggered when any of them turn on. This would be event_action={EVENT_PROPERTY_ANY:ACTION_ON} """ s = Subscriptions() s.add_subscriber(self.app, self.device, event_action={ EVENT_PROPERTY_ANY: 'CUSTOM' }) s.add_subscriber(self.app, self.device, event_action={ EVENT_PROPERTY_ANY: 'CUSTOM' }) self.assertDictEqual(s.subscriptions, { self.device: { EVENT_PROPERTY_ANY: { 'CUSTOM': [self.app] } } }) def test_add_subscriber_multiple_event_action_same_property(self): s = Subscriptions() s.add_subscriber(self.app, self.device, event_action={ STATE: [EVENT_ACTION_ON, EVENT_ACTION_OFF] }) self.assertDictEqual(s.subscriptions, { self.device: { STATE: { EVENT_ACTION_ON: [self.app], EVENT_ACTION_OFF: [self.app] } } }) def test_add_multiple_subscribers_any(self): s = Subscriptions() s.add_subscriber(self.app, self.device) s.add_subscriber(self.app_b, self.device) self.assertDictEqual(s.subscriptions, { self.device: { EVENT_ACTION_ANY: { EVENT_ACTION_ANY: [self.app, self.app_b] } } }) def test_add_multiple_subscribers_different_apps(self): s = Subscriptions() s.add_subscriber(self.app, self.device, event_action=[EVENT_ACTION_ON]) s.add_subscriber(self.app_b, self.device, event_action=[EVENT_ACTION_OFF]) self.assertDictEqual(s.subscriptions, { self.device: { EVENT_ACTION_ANY: { EVENT_ACTION_ON: [self.app], EVENT_ACTION_OFF: [self.app_b] } } }) def test_multiple_listen_to_any(self): s = Subscriptions() s.add_subscriber(self.app, self.device) s.add_subscriber(self.app, self.device_b) self.assertDictEqual(s.subscriptions, { self.device: { EVENT_ACTION_ANY: { EVENT_ACTION_ANY: [self.app] } }, self.device_b: { EVENT_ACTION_ANY: { EVENT_ACTION_ANY: [self.app] } } }) def test_get_all_subscribers_any(self): s = Subscriptions() s.add_subscriber(self.app, self.device) s.add_subscriber(self.app, self.device_b) self.assertDictEqual(s.subscriptions, { self.device: { EVENT_ACTION_ANY: { EVENT_ACTION_ANY: [self.app] } }, self.device_b: { EVENT_ACTION_ANY: { EVENT_ACTION_ANY: [self.app] } } }) subs = s.get_all_subscribers(self.device) self.assertSetEqual(set(subs), {self.app}) def test_get_all_subscribers_any_two(self): s = Subscriptions() s.add_subscriber(self.app, self.device) s.add_subscriber(self.app_b, self.device) self.assertDictEqual(s.subscriptions, { self.device: { EVENT_ACTION_ANY: { EVENT_ACTION_ANY: [self.app, self.app_b] } } }) subs = s.get_all_subscribers(self.device) self.assertSetEqual(set(subs), {self.app, self.app_b}) def test_get_all_subscribers_one(self): s = Subscriptions() s.add_subscriber(self.app, self.device, event_action={ STATE: [EVENT_ACTION_ON, EVENT_ACTION_OFF] }) self.assertDictEqual(s.subscriptions, { self.device: { STATE: { EVENT_ACTION_ON: [self.app], EVENT_ACTION_OFF: [self.app] } } }) subs = s.get_all_subscribers(self.device) self.assertSetEqual(set(subs), {self.app}) def test_get_all_subscribers_two(self): s = Subscriptions() s.add_subscriber(self.app, self.device, event_action=[EVENT_ACTION_ON]) s.add_subscriber(self.app_b, self.device, event_action=[EVENT_ACTION_OFF]) self.assertDictEqual(s.subscriptions, { self.device: { EVENT_ACTION_ANY: { EVENT_ACTION_ON: [self.app], EVENT_ACTION_OFF: [self.app_b] } } }) subs = s.get_all_subscribers(self.device) self.assertSetEqual(set(subs), {self.app, self.app_b}) def test_get_subscriber_items(self): s = Subscriptions() s.add_subscriber(self.app, self.device, event_action=[EVENT_ACTION_ON]) s.add_subscriber(self.app, self.device) s.add_subscriber(self.app_b, self.device, event_action=[EVENT_ACTION_OFF]) self.assertDictEqual(s.subscriptions, { self.device: { EVENT_ACTION_ANY: { EVENT_ACTION_ON: [self.app], EVENT_ACTION_OFF: [self.app_b], EVENT_ACTION_ANY: [self.app] } } }) items = s.get_subscriber_items(self.app, self.device) self.assertEqual(items, { EVENT_ACTION_ANY: { EVENT_ACTION_ON: True, EVENT_ACTION_ANY: True } }) # DELETE SUBSCRIBER TESTS def test_delete_subscription_simple(self): s = Subscriptions() s.add_subscriber(self.app, self.device, event_action={ STATE: [EVENT_ACTION_ON, EVENT_ACTION_OFF] }) delete_count = s.delete_subscriber(self.app, self.device, event_action={ STATE: [EVENT_ACTION_ON] }) self.assertEqual(delete_count, 1) self.assertDictEqual(s.subscriptions, { self.device: { STATE: { EVENT_ACTION_ON: [], EVENT_ACTION_OFF: [self.app] } } }) def test_delete_subscription_simple_all(self): s = Subscriptions() s.add_subscriber(self.app, self.device, event_action={ STATE: [EVENT_ACTION_ON, EVENT_ACTION_OFF] }) delete_count = s.delete_subscriber(self.app, self.device, delete_all=True) self.assertEqual(delete_count, 2) self.assertDictEqual(s.subscriptions, { self.device: { STATE: { EVENT_ACTION_ON: [], EVENT_ACTION_OFF: [] } } }) def test_delete_subscription_non_existant_all(self): s = Subscriptions() s.add_subscriber(self.app, self.device, event_action={ STATE: [EVENT_ACTION_ON, EVENT_ACTION_OFF] }) delete_count = s.delete_subscriber(self.app, self.device_b, delete_all=True) self.assertEqual(delete_count, 0) self.assertDictEqual(s.subscriptions, { self.device: { STATE: { EVENT_ACTION_ON: [self.app], EVENT_ACTION_OFF: [self.app] } } }) def test_delete_subscription_non_existant(self): s = Subscriptions() s.add_subscriber(self.app, self.device, event_action={ STATE: [EVENT_ACTION_ON, EVENT_ACTION_OFF] }) delete_count = s.delete_subscriber(self.app, self.device_b, event_action={ STATE: [EVENT_ACTION_ON] }) self.assertEqual(delete_count, 0) self.assertDictEqual(s.subscriptions, { self.device: { STATE: { EVENT_ACTION_ON: [self.app], EVENT_ACTION_OFF: [self.app] } } }) def test_delete_subscription_simple_twice(self): s = Subscriptions() s.add_subscriber(self.app, self.device, event_action={ STATE: [EVENT_ACTION_ON, EVENT_ACTION_OFF] }) delete_count = s.delete_subscriber(self.app, self.device, event_action={ STATE: [EVENT_ACTION_ON] }) self.assertEqual(delete_count, 1) self.assertDictEqual(s.subscriptions, { self.device: { STATE: { EVENT_ACTION_ON: [], EVENT_ACTION_OFF: [self.app] } } }) delete_count = s.delete_subscriber(self.app, self.device, event_action={ STATE: [EVENT_ACTION_ON] }) self.assertEqual(delete_count, 0) self.assertDictEqual(s.subscriptions, { self.device: { STATE: { EVENT_ACTION_ON: [], EVENT_ACTION_OFF: [self.app] } } }) def test_delete_subscription_simple_all_twice(self): s = Subscriptions() s.add_subscriber(self.app, self.device, event_action={ STATE: [EVENT_ACTION_ON, EVENT_ACTION_OFF] }) delete_count = s.delete_subscriber(self.app, self.device, delete_all=True) self.assertEqual(delete_count, 2) self.assertDictEqual(s.subscriptions, { self.device: { STATE: { EVENT_ACTION_ON: [], EVENT_ACTION_OFF: [] } } }) delete_count = s.delete_subscriber(self.app, self.device, delete_all=True) self.assertEqual(delete_count, 0) self.assertDictEqual(s.subscriptions, { self.device: { STATE: { EVENT_ACTION_ON: [], EVENT_ACTION_OFF: [] } } }) def test_delete_all_subscription(self): s = Subscriptions() s.add_subscriber(self.app, self.device, event_action={ STATE: [EVENT_ACTION_ON, EVENT_ACTION_OFF] }) s.add_subscriber(self.app, self.device_b, event_action={ STATE: [EVENT_ACTION_ON, EVENT_ACTION_OFF] }) s.add_subscriber(self.app_b, self.device, event_action={ STATE: [EVENT_ACTION_ON, EVENT_ACTION_OFF] }) delete_count = s.delete_all_subscriptions(self.app) self.assertEquals(delete_count, 4) self.assertDictEqual(s.subscriptions, { self.device: { STATE: { EVENT_ACTION_ON: [self.app_b], EVENT_ACTION_OFF: [self.app_b] } }, self.device_b: { STATE: { EVENT_ACTION_ON: [], EVENT_ACTION_OFF: [] } } }) def test_change_parent_id(self): s = Subscriptions() s.add_subscriber(self.app, self.device, event_action={ STATE: [EVENT_ACTION_ON, EVENT_ACTION_OFF] }) c = s.change_subscriber_parent_id(self.device, self.device_b) self.assertTrue(c) self.assertDictEqual(s.subscriptions, { self.device_b: { STATE: { EVENT_ACTION_OFF: [self.app], EVENT_ACTION_ON: [self.app] } } }) def test_change_subscriber_id(self): s = Subscriptions() s.add_subscriber(self.app, self.device, event_action={ STATE: [EVENT_ACTION_ON, EVENT_ACTION_OFF] }) count = s.change_subscriber_id(self.app, self.app_b) self.assertEqual(count, 2) self.assertDictEqual(s.subscriptions, { self.device: { STATE: { EVENT_ACTION_OFF: [self.app_b], EVENT_ACTION_ON: [self.app_b] } } }) def test_change_subscriber_id_complex(self): s = Subscriptions() s.add_subscriber(self.app, self.device, event_action={ STATE: [EVENT_ACTION_ON, EVENT_ACTION_OFF] }) s.add_subscriber(self.app, self.device_b) count = s.change_subscriber_id(self.app, self.app_b) self.assertEqual(count, 3) self.assertDictEqual(s.subscriptions, { self.device: { STATE: { EVENT_ACTION_OFF: [self.app_b], EVENT_ACTION_ON: [self.app_b] } }, self.device_b: { EVENT_ACTION_ANY: { EVENT_ACTION_ANY: [self.app_b] } } }) def test_change_subscriber_id_none_existant(self): s = Subscriptions() s.add_subscriber(self.app, self.device, event_action={ STATE: [EVENT_ACTION_ON, EVENT_ACTION_OFF] }) count = s.change_subscriber_id(self.app_b, self.app) self.assertEqual(count, 0) self.assertDictEqual(s.subscriptions, { self.device: { STATE: { EVENT_ACTION_OFF: [self.app], EVENT_ACTION_ON: [self.app] } } }) def test_get_subscribers_any(self): s = Subscriptions() s.add_subscriber(self.app, self.device) subscribers = s.get_subscribers(self.device, { STATE: [EVENT_ACTION_ON] }) self.assertListEqual(subscribers, [self.app]) def test_get_subscribers_none(self): s = Subscriptions() s.add_subscriber(self.app, self.device) subscribers = s.get_subscribers(self.device_b, { STATE: [EVENT_ACTION_ON] }) self.assertListEqual(subscribers, []) def test_get_subscribers_no_event(self): s = Subscriptions() s.add_subscriber(self.app, self.device) subscribers = s.get_subscribers(self.device) self.assertListEqual(subscribers, [self.app]) def test_get_subscribers_two(self): s = Subscriptions() s.add_subscriber(self.app, self.device, { STATE: [EVENT_ACTION_ANY] }) s.add_subscriber(self.app_b, self.device, { STATE: [EVENT_ACTION_OFF] }) subscribers = s.get_subscribers(self.device, { STATE: [EVENT_ACTION_ON] }) self.assertListEqual(subscribers, [self.app]) subscribers = s.get_subscribers(self.device, { STATE: [EVENT_ACTION_OFF] }) self.assertSetEqual(set(subscribers), {self.app, self.app_b}) def test_get_subscribers_multiple_events(self): s = Subscriptions() s.add_subscriber(self.app, self.device, { STATE: [EVENT_ACTION_ON] }) s.add_subscriber(self.app_b, self.device, { STATE: [EVENT_ACTION_OFF] }) subscribers = s.get_subscribers(self.device, { STATE: [EVENT_ACTION_OFF, EVENT_ACTION_ON] }) self.assertSetEqual(set(subscribers), {self.app, self.app_b})
29.50369
117
0.647927
1,958
15,991
4.969867
0.052094
0.22156
0.062172
0.078615
0.899291
0.86394
0.837427
0.820984
0.805878
0.777412
0
0.000987
0.240073
15,991
541
118
29.558226
0.799786
0.033144
0
0.718941
0
0
0.005446
0
0
0
0
0
0.114053
1
0.07332
false
0
0.00611
0
0.083503
0
0
0
0
null
1
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
8
748eb3ab2ee2bd0af146e432c3eaa46e87c89b15
163
py
Python
src/cores/kb_solve/__init__.py
snowdence/hcmus_ai_wumpus
a4f98cd294765b7094419e36a4f066a548123fe3
[ "MIT" ]
null
null
null
src/cores/kb_solve/__init__.py
snowdence/hcmus_ai_wumpus
a4f98cd294765b7094419e36a4f066a548123fe3
[ "MIT" ]
null
null
null
src/cores/kb_solve/__init__.py
snowdence/hcmus_ai_wumpus
a4f98cd294765b7094419e36a4f066a548123fe3
[ "MIT" ]
null
null
null
from .agent import * from .directions import * from .game import * from .kb import * from .kb_agent import * from .KnowledgeBase import * from .glu_agent import *
20.375
28
0.742331
23
163
5.173913
0.347826
0.504202
0.252101
0
0
0
0
0
0
0
0
0
0.171779
163
7
29
23.285714
0.881481
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
77fcc76629289a92ff46b7cef1eb97ea825672a4
168
py
Python
aspen_ssh/certificates/__init__.py
thinkwelltwd/aspen_ssh
68cfab56187b63b6e22ab96fefe4c87171f7ccce
[ "Apache-2.0" ]
1
2021-09-09T13:02:36.000Z
2021-09-09T13:02:36.000Z
aspen_ssh/certificates/__init__.py
thinkwelltwd/aspen_ssh
68cfab56187b63b6e22ab96fefe4c87171f7ccce
[ "Apache-2.0" ]
null
null
null
aspen_ssh/certificates/__init__.py
thinkwelltwd/aspen_ssh
68cfab56187b63b6e22ab96fefe4c87171f7ccce
[ "Apache-2.0" ]
null
null
null
from .ed25519_certificate_builder import * from .rsa_certificate_builder import * from .ssh_certificate_builder import * from .ssh_certificate_builder_factory import *
33.6
46
0.857143
21
168
6.428571
0.380952
0.533333
0.533333
0.622222
0.592593
0.592593
0.592593
0
0
0
0
0.032895
0.095238
168
4
47
42
0.855263
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
7ae9d4e28d54457ef3138fb417adf0822bf0b232
59
py
Python
src/RobotFrameworkCore/org.robotframework.ide.core-functions/src/test/python/scripts/res_test_robot_session_server/vars_modules/a/b.py
puraner/RED
d41b7c244ff2e449c541fd0691213fcf5a3b30c1
[ "Apache-2.0" ]
375
2015-11-02T19:15:30.000Z
2022-03-19T03:32:10.000Z
src/RobotFrameworkCore/org.robotframework.ide.core-functions/src/test/python/scripts/res_test_robot_session_server/vars_modules/a/b.py
puraner/RED
d41b7c244ff2e449c541fd0691213fcf5a3b30c1
[ "Apache-2.0" ]
433
2015-11-03T13:24:40.000Z
2022-03-30T11:20:14.000Z
src/RobotFrameworkCore/org.robotframework.ide.core-functions/src/test/python/scripts/res_test_robot_session_server/vars_modules/a/b.py
puraner/RED
d41b7c244ff2e449c541fd0691213fcf5a3b30c1
[ "Apache-2.0" ]
133
2016-05-02T02:20:06.000Z
2022-01-06T06:01:28.000Z
from a import VARS def get_variables(): return VARS
14.75
21
0.694915
9
59
4.444444
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.254237
59
4
22
14.75
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
true
0
0.333333
0.333333
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
1
1
0
0
7
bb03226edb2106b512b295f474e0cc49fb97d079
128
py
Python
database_expert/MySQL.py
eaingaran/TimeMachine
f6199827ffc358dd32f26edd8d68e2dbf7c63a90
[ "MIT" ]
null
null
null
database_expert/MySQL.py
eaingaran/TimeMachine
f6199827ffc358dd32f26edd8d68e2dbf7c63a90
[ "MIT" ]
null
null
null
database_expert/MySQL.py
eaingaran/TimeMachine
f6199827ffc358dd32f26edd8d68e2dbf7c63a90
[ "MIT" ]
null
null
null
import pymysql def get_connection(host, user, pwd, database_name): return pymysql.connect(host, user, pwd, database_name)
21.333333
58
0.765625
18
128
5.277778
0.666667
0.168421
0.231579
0.4
0.484211
0
0
0
0
0
0
0
0.140625
128
5
59
25.6
0.863636
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
1
0
0
null
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
1
0
0
8
bb0d9beb89b47f2506fc642087ba14ec5a80f323
203
py
Python
zoomconnect_sdk/error.py
tfoxcroft/zoomconnect_sdk
25121fddb6b0c31dd03e5c870802eaab99c7e4f4
[ "MIT" ]
null
null
null
zoomconnect_sdk/error.py
tfoxcroft/zoomconnect_sdk
25121fddb6b0c31dd03e5c870802eaab99c7e4f4
[ "MIT" ]
1
2020-06-25T10:16:56.000Z
2020-06-25T10:16:56.000Z
zoomconnect_sdk/error.py
tfoxcroft/zoomconnect_sdk
25121fddb6b0c31dd03e5c870802eaab99c7e4f4
[ "MIT" ]
1
2020-06-24T08:11:21.000Z
2020-06-24T08:11:21.000Z
class APIError(Exception): def __init__(self, code, message): self.code = code self.message = message def __str__(self): return f"APIError - {self.code} - {self.message}"
29
57
0.62069
24
203
4.916667
0.458333
0.20339
0.254237
0
0
0
0
0
0
0
0
0
0.256158
203
7
57
29
0.781457
0
0
0
0
0
0.191176
0
0
0
0
0
0
1
0.333333
false
0
0
0.166667
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
0
0
0
1
1
0
0
7
bb50c698761b62d78088e5cc89184212b6ff51c8
3,367
py
Python
WSJ_Classifier/models.py
Martin-Guenther/NLP_Collection
74990c402521ade947566cf7bd4c3d2e518db23e
[ "MIT" ]
null
null
null
WSJ_Classifier/models.py
Martin-Guenther/NLP_Collection
74990c402521ade947566cf7bd4c3d2e518db23e
[ "MIT" ]
null
null
null
WSJ_Classifier/models.py
Martin-Guenther/NLP_Collection
74990c402521ade947566cf7bd4c3d2e518db23e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Deep Learning Models for news article summary classification This file contains the definition of three slightly different models for news article summary classification. """ from keras.layers import Input, Dense, GRU, TimeDistributed from keras.layers import Bidirectional, Dropout, LSTM from keras.models import Model def model_1(seq_length, embedding_layer, num_categories): """Model with LSTM cells but without dropouts Args: seq_length (int): Number of words per input sequence embedding_layer (keras.layers.Embedding): Word embedding layer num_categories (int): Number of news article summary categories (sections) Returns: model (keras.models.Model): Keras neural network """ model_input = Input(shape=(seq_length,), dtype='int32') embed = embedding_layer(model_input) fc = TimeDistributed(Dense(100, activation="relu"))(embed) rnn = Bidirectional(LSTM(units=100, return_sequences=False))(fc) den = Dense(512, activation="relu")(rnn) out = Dense(num_categories, activation="softmax")(den) model = Model(model_input, out) model.compile(loss="categorical_crossentropy", optimizer="rmsprop", metrics=["acc"]) return model def model_2(seq_length, embedding_layer, num_categories): """Model with LSTM cells and dropout layers Args: seq_length (int): Number of words per input sequence embedding_layer (keras.layers.Embedding): Word embedding layer num_categories (int): Number of news article summary categories (sections) Returns: model (keras.models.Model): Keras neural network """ model_input = Input(shape=(seq_length,), dtype='int32') embed = embedding_layer(model_input) fc = TimeDistributed(Dense(100, activation="relu"))(embed) rnn = Bidirectional(LSTM(units=100, return_sequences=False))(fc) drop_1 = Dropout(0.5)(rnn) den = Dense(512, activation="relu")(drop_1) drop_2= Dropout(0.5)(den) out = Dense(num_categories, activation="softmax")(drop_2) model = Model(model_input, out) model.compile(loss="categorical_crossentropy", optimizer="rmsprop", metrics=["acc"]) return model def model_3(seq_length, embedding_layer, num_categories): """Model with GRU cells and dropout layers Args: seq_length (int): Number of words per input sequence embedding_layer (keras.layers.Embedding): Word embedding layer num_categories (int): Number of news article summary categories (sections) Returns: model (keras.models.Model): Keras neural network """ model_input = Input(shape=(seq_length,), dtype='int32') embed = embedding_layer(model_input) fc = TimeDistributed(Dense(100, activation="relu"))(embed) rnn = Bidirectional(GRU(units=100, return_sequences=False))(fc) drop_1 = Dropout(0.5)(rnn) den = Dense(512, activation="relu")(drop_1) drop_2= Dropout(0.5)(den) out = Dense(num_categories, activation="softmax")(drop_2) model = Model(model_input, out) model.compile(loss="categorical_crossentropy", optimizer="rmsprop", metrics=["acc"]) return model
38.261364
88
0.665875
404
3,367
5.418317
0.215347
0.076747
0.046597
0.074006
0.892188
0.880767
0.825948
0.825948
0.805391
0.805391
0
0.020369
0.227205
3,367
87
89
38.701149
0.820907
0.384021
0
0.756757
0
0
0.084684
0.037637
0
0
0
0
0
1
0.081081
false
0
0.081081
0
0.243243
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
2481943e69bcf9b0ba27bca52b5a638c3527c5bb
38
py
Python
batchq/__init__.py
troelsfr/BatchQ
390ea7179ed457673c6a1d764bc78cf816f603f4
[ "MIT" ]
1
2017-08-17T12:35:28.000Z
2017-08-17T12:35:28.000Z
batchq/__init__.py
troelsfr/BatchQ
390ea7179ed457673c6a1d764bc78cf816f603f4
[ "MIT" ]
1
2019-03-06T06:12:07.000Z
2019-03-06T06:12:07.000Z
batchq/__init__.py
troelsfr/BatchQ
390ea7179ed457673c6a1d764bc78cf816f603f4
[ "MIT" ]
null
null
null
def get_version(): return "0.3.0"
12.666667
18
0.605263
7
38
3.142857
0.857143
0
0
0
0
0
0
0
0
0
0
0.1
0.210526
38
2
19
19
0.633333
0
0
0
0
0
0.131579
0
0
0
0
0
0
1
0.5
true
0
0
0.5
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
1
1
0
0
7
24d00e6ce550a1b049523347bd20eb0b43ee84f4
125
py
Python
tests/models/base_test.py
BinSquare/busy-beaver
b8063a7e434eb47e638697719896880781f9783f
[ "MIT" ]
55
2019-05-05T01:20:58.000Z
2022-01-10T18:03:05.000Z
tests/models/base_test.py
BinSquare/busy-beaver
b8063a7e434eb47e638697719896880781f9783f
[ "MIT" ]
222
2019-05-03T16:31:26.000Z
2021-08-28T23:49:03.000Z
tests/models/base_test.py
BinSquare/busy-beaver
b8063a7e434eb47e638697719896880781f9783f
[ "MIT" ]
19
2019-04-27T19:49:32.000Z
2020-06-30T19:52:09.000Z
from busy_beaver.models import BaseModel def test_basemodel_tablename(): assert BaseModel.__tablename__ == "basemodel"
20.833333
49
0.8
14
125
6.642857
0.714286
0.387097
0
0
0
0
0
0
0
0
0
0
0.128
125
5
50
25
0.853211
0
0
0
0
0
0.072
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
562f541480e4447fea5ce470114d3e08434559d2
109
py
Python
certbot_docker_swarm/__init__.py
Shuenhoy/certbot-docker-swarm
79fa0b01414c4047ea157d610d4e719ffa08b5bf
[ "BSD-3-Clause" ]
3
2021-01-13T11:54:33.000Z
2022-01-19T09:29:49.000Z
certbot_docker_swarm/__init__.py
Shuenhoy/certbot-docker-swarm
79fa0b01414c4047ea157d610d4e719ffa08b5bf
[ "BSD-3-Clause" ]
1
2021-08-10T12:49:11.000Z
2021-08-12T16:10:46.000Z
certbot_docker_swarm/__init__.py
Shuenhoy/certbot-docker-swarm
79fa0b01414c4047ea157d610d4e719ffa08b5bf
[ "BSD-3-Clause" ]
1
2021-08-12T07:05:51.000Z
2021-08-12T07:05:51.000Z
"""Certbot Docker Swarm plugin.""" from certbot_docker_swarm._internal.swarminstaller import SwarmInstaller
27.25
72
0.834862
12
109
7.333333
0.666667
0.295455
0.409091
0
0
0
0
0
0
0
0
0
0.082569
109
3
73
36.333333
0.88
0.256881
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
3b59a396e52f1fd939108d19ab500a196ca946e8
2,040
py
Python
src/genie/libs/parser/nxos/tests/ShowMacAddressTable/cli/equal/golden_output_address_interface_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/nxos/tests/ShowMacAddressTable/cli/equal/golden_output_address_interface_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/nxos/tests/ShowMacAddressTable/cli/equal/golden_output_address_interface_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { "mac_table": { "vlans": { "102": { "vlan": "102", "mac_addresses": { "5e00.c0ff.0007": { "mac_address": "5e00.c0ff.0007", "entry": "G", "interfaces": { "Ethernet1/2": { "interface": "Ethernet1/2", "mac_type": "static", "age": "-", } }, "secure": "F", "ntfy": "F", } }, }, "107": { "vlan": "107", "mac_addresses": { "5e00.c0ff.0007": { "mac_address": "5e00.c0ff.0007", "entry": "G", "interfaces": { "Ethernet1/2": { "interface": "Ethernet1/2", "mac_type": "static", "age": "-", } }, "secure": "F", "ntfy": "F", } }, }, "1006": { "vlan": "1006", "mac_addresses": { "5e00.c0ff.0007": { "mac_address": "5e00.c0ff.0007", "entry": "G", "interfaces": { "Ethernet1/2": { "interface": "Ethernet1/2", "mac_type": "static", "age": "-", } }, "secure": "F", "ntfy": "F", } }, }, } } }
33.442623
59
0.209314
92
2,040
4.521739
0.282609
0.115385
0.173077
0.144231
0.858173
0.858173
0.858173
0.858173
0.858173
0.858173
0
0.11611
0.662255
2,040
60
60
34
0.487663
0
0
0.55
0
0
0.212255
0
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
1
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
3b82a466fb9baef2c56beca949bfabaf8d7205d7
32
py
Python
examples/simpledjango/utils/__init__.py
zhwei820/pyreds
4e11657c7ab98157d5b19b0395865b4089a3cd17
[ "MIT" ]
null
null
null
examples/simpledjango/utils/__init__.py
zhwei820/pyreds
4e11657c7ab98157d5b19b0395865b4089a3cd17
[ "MIT" ]
null
null
null
examples/simpledjango/utils/__init__.py
zhwei820/pyreds
4e11657c7ab98157d5b19b0395865b4089a3cd17
[ "MIT" ]
null
null
null
# coding: utf-8 # 19-1-30 下午4:38
16
16
0.625
8
32
2.5
1
0
0
0
0
0
0
0
0
0
0
0.333333
0.15625
32
2
16
16
0.407407
0.875
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
7
3b93c5475882e881aa7c894c41159d04b3b3097c
90
py
Python
djenga/inlinecss/__init__.py
2ps/djenga
85ac2c7b0b0e80b55aff43f027814d05b9b0532c
[ "BSD-3-Clause" ]
6
2015-01-18T10:31:13.000Z
2019-06-14T17:39:58.000Z
djenga/inlinecss/__init__.py
2ps/djenga
85ac2c7b0b0e80b55aff43f027814d05b9b0532c
[ "BSD-3-Clause" ]
12
2015-05-03T06:58:00.000Z
2019-06-26T21:58:16.000Z
djenga/inlinecss/__init__.py
2ps/djenga
85ac2c7b0b0e80b55aff43f027814d05b9b0532c
[ "BSD-3-Clause" ]
1
2018-04-27T20:36:29.000Z
2018-04-27T20:36:29.000Z
from pynliner import Pynliner def from_string(x): return Pynliner().from_string(x)
12.857143
36
0.744444
13
90
5
0.538462
0.307692
0.338462
0
0
0
0
0
0
0
0
0
0.166667
90
6
37
15
0.866667
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
8
8ed2bc7818371ce412947153cfa553bbccdf3859
1,238
py
Python
files.py/guiMarkDown.py
afolabi2/12Data_getTickerData
f4ddb6b3e90726a257750da1faeacb6062682457
[ "MIT" ]
null
null
null
files.py/guiMarkDown.py
afolabi2/12Data_getTickerData
f4ddb6b3e90726a257750da1faeacb6062682457
[ "MIT" ]
null
null
null
files.py/guiMarkDown.py
afolabi2/12Data_getTickerData
f4ddb6b3e90726a257750da1faeacb6062682457
[ "MIT" ]
null
null
null
import streamlit as st # ==================== # HELPER MARKDOWN FUNCTIONS # ==================== #<font color=‘red’>THIS TEXT WILL BE RED</font>, unsafe_allow_html=True) def colorMarkDown(fontcolor = '#33ff33', fontsze = 24, msg="Enter some Text"): # will need color to color coding map. default color '#33ff33' is green st.markdown(f'<h1 style="color:{fontcolor};font-size:{fontsze}px;">{msg}</h1>', unsafe_allow_html=True) def sideBarcolorMarkDown(fontcolor = '#33ff33', fontsze = 24, msg="Enter some Text"): # will need color to color coding map. default color '#33ff33' is green st.markdown(f'<h1 style="color:{fontcolor};font-size:{fontsze}px;">{msg}</h1>', unsafe_allow_html=True) def colorHeader(fontcolor = '#33ff33', fontsze = 30, msg="Enter some Text"): # will need color to color coding map. default color '#33ff33' is green st.markdown(f'<h1 style="color:{fontcolor};font-size:{fontsze}px;">{msg}</h1>', unsafe_allow_html=True) def sideBarcolorHeader(fontcolor = '#33ff33', fontsze = 30, msg="Enter some Text"): # will need color to color coding map. default color '#33ff33' is green st.markdown(f'<h1 style="color:{fontcolor};font-size:{fontsze}px;">{msg}</h1>', unsafe_allow_html=True)
51.583333
107
0.68336
176
1,238
4.75
0.244318
0.047847
0.089713
0.113636
0.836124
0.809809
0.809809
0.809809
0.809809
0.809809
0
0.044568
0.130048
1,238
23
108
53.826087
0.731662
0.33441
0
0.444444
0
0
0.419236
0.290999
0
0
0
0
0
1
0.444444
false
0
0.111111
0
0.555556
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
8ed90c5094d3ef7a1c9275365284a328eca8412a
2,362
py
Python
userbot/plugins/idea.py
ghion266/SensibleUserbot
16ad83206fa14fe4315143fa8a94e5687eb06fcb
[ "MIT" ]
26
2020-06-11T10:13:57.000Z
2022-01-26T07:17:57.000Z
userbot/plugins/idea.py
ghion266/SensibleUserbot
16ad83206fa14fe4315143fa8a94e5687eb06fcb
[ "MIT" ]
1
2022-03-17T07:25:42.000Z
2022-03-17T07:25:42.000Z
userbot/plugins/idea.py
ghion266/SensibleUserbot
16ad83206fa14fe4315143fa8a94e5687eb06fcb
[ "MIT" ]
129
2020-06-17T00:56:36.000Z
2022-03-22T10:39:57.000Z
"""This Idea Is Flip for @UniBorg Syntax: .This Idea Is flip [optiIn Favour Ofal_choice]""" from telethon import events import random, re from uniborg.util import admin_cmd @borg.on(admin_cmd(pattern="idea ?(.*)")) async def _(event): if event.fwd_from: return r = random.randint(1, 100) input_str = event.pattern_match.group(1) if input_str: input_str = input_str.lower() if r % 2 == 1: if input_str == "Good": await event.edit("The This Idea Is In Favour Of: **Good**. \n You were correct\n ☆┌─┐ ─┐☆ \n │▒│ /▒/\n │▒│/▒/\n │▒ /▒/─┬─┐◯\n │▒│▒|▒│▒│\n┌┴─┴─┐-┘─┘\n│▒┌──┘▒▒▒│◯\n└┐▒▒▒▒▒▒┌┘\n◯└┐▒▒▒▒┌.") elif input_str == "Bad‍": await event.edit("The This Idea In Favour Of: **Good**. \n You weren't correct, try again ...\n ☆┌─┐ ─┐☆ \n │▒│ /▒/\n │▒│/▒/\n │▒ /▒/─┬─┐◯\n │▒│▒|▒│▒│\n┌┴─┴─┐-┘─┘\n│▒┌──┘▒▒▒│◯\n└┐▒▒▒▒▒▒┌┘\n◯└┐▒▒▒▒┌.") else: await event.edit("The This Idea Is In Favour Of: **Good**.\n ☆┌─┐ ─┐☆ \n │▒│ /▒/\n │▒│/▒/\n │▒ /▒/─┬─┐◯\n │▒│▒|▒│▒│\n┌┴─┴─┐-┘─┘\n│▒┌──┘▒▒▒│◯\n└┐▒▒▒▒▒▒┌┘\n◯└┐▒▒▒▒┌.") elif r % 2 == 0: if input_str == "Bad ": await event.edit("The This Idea Is In Favour Of: **Bad 🙅‍**. \n You were correct\n███████▄▄███████████▄\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓███░░░░░░░░░░░░█\n██████▀░░█░░░░██████▀\n░░░░░░░░░█░░░░█\n░░░░░░░░░░█░░░█\n░░░░░░░░░░░█░░█\n░░░░░░░░░░░█░░█\n░░░░░░░░░░░░▀▀.") elif input_str == "Good": await event.edit("The This Idea Is In Favour Of: **Bad 🙅‍**. \n You weren't correct, try again ...\n███████▄▄███████████▄\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓███░░░░░░░░░░░░█\n██████▀░░█░░░░██████▀\n░░░░░░░░░█░░░░█\n░░░░░░░░░░█░░░█\n░░░░░░░░░░░█░░█\n░░░░░░░░░░░█░░█\n░░░░░░░░░░░░▀▀") else: await event.edit("The This Idea Is In Favour Of: **Bad 🙅‍**.\n███████▄▄███████████▄\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓███░░░░░░░░░░░░█\n██████▀░░█░░░░██████▀\n░░░░░░░░░█░░░░█\n░░░░░░░░░░█░░░█\n░░░░░░░░░░░█░░█\n░░░░░░░░░░░█░░█\n░░░░░░░░░░░░▀▀") else: await event.edit("¯\_(ツ)_/¯")
73.8125
387
0.326418
339
2,362
5.050147
0.244838
0.161215
0.168224
0.059579
0.817173
0.804322
0.77979
0.77979
0.752921
0.752921
0
0.004525
0.157917
2,362
31
388
76.193548
0.375063
0.035986
0
0.111111
0
0.222222
0.679877
0.442977
0
0
0
0
0
1
0
false
0
0.111111
0
0.148148
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
1
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
10
8eecf985c8c7d088dd5be8875e858ef8f7821f5f
2,175
py
Python
python/plot_bar_graph.py
shantanudeshmukh/project9
8d2555f6e31dbae6e15ba7aca4aa70478f98e990
[ "MIT" ]
1
2018-10-15T22:45:36.000Z
2018-10-15T22:45:36.000Z
python/plot_bar_graph.py
shantanudeshmukh/project9
8d2555f6e31dbae6e15ba7aca4aa70478f98e990
[ "MIT" ]
null
null
null
python/plot_bar_graph.py
shantanudeshmukh/project9
8d2555f6e31dbae6e15ba7aca4aa70478f98e990
[ "MIT" ]
null
null
null
###################################################################### Author: Shantanu V. Deshmukh ###################################################################### # plot single bar chart import plotly.graph_objs as go import plotly as plotly def plot_single_bar_graph(x1_data, x2_data, y1_data, y2_data, x_axis_title, y_axis_title, plot_title, output_path, save_filename): trace1 = go.Bar( x=x1_data, y=y1_data, name='legend line1' ) data = [trace1] layout = go.Layout(, title=plot_title, xaxis=dict( title=x_axis_title, titlefont=dict( # family='Courier New, monospace', size=18, color='#7f7f7f' ) ), yaxis=dict( title=y_axis_title, titlefont=dict( # family='Courier New, monospace', size=18, color='#7f7f7f' ) ) ) fig = go.Figure(data=data, layout=layout) plotly.offline.plot(fig, filename = output_path + save_filename + ".html") # plot grouped bar chart import plotly.graph_objs as go import plotly as plotly def plot_grouped_bar_graph(x1_data, x2_data, y1_data, y2_data, x_axis_title, y_axis_title, plot_title, output_path, save_filename): trace1 = go.Bar( x=x1_data, y=y1_data, name='legend line1' ) trace2 = go.Bar( x=x2_data, y=y2_data, name='legend line2' ) data = [trace1, trace2] layout = go.Layout( barmode='group', title=plot_title, xaxis=dict( title=x_axis_title, titlefont=dict( # family='Courier New, monospace', size=18, color='#7f7f7f' ) ), yaxis=dict( title=y_axis_title, titlefont=dict( # family='Courier New, monospace', size=18, color='#7f7f7f' ) ) ) fig = go.Figure(data=data, layout=layout) plotly.offline.plot(fig, filename = output_path + save_filename + ".html")
25.892857
131
0.502529
235
2,175
4.438298
0.229787
0.069032
0.038351
0.057526
0.84372
0.84372
0.84372
0.84372
0.84372
0.84372
0
0.029944
0.33977
2,175
83
132
26.204819
0.696379
0.08092
0
0.634921
0
0
0.042657
0
0
0
0
0
0
0
null
null
0
0.063492
null
null
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
1
0
0
0
0
0
0
0
0
7
d95bb5cb496514eefbc726e604c6498656066433
40,908
py
Python
project/tests/scripts/global_tests.py
LeDron12/c2eo
4f0dc6ed79df0739bd834eda6a0f77f3caf4292c
[ "MIT" ]
12
2021-08-05T12:12:09.000Z
2022-03-08T13:33:53.000Z
project/tests/scripts/global_tests.py
LeDron12/c2eo
4f0dc6ed79df0739bd834eda6a0f77f3caf4292c
[ "MIT" ]
26
2021-08-23T10:25:37.000Z
2022-03-30T12:56:08.000Z
project/tests/scripts/global_tests.py
LeDron12/c2eo
4f0dc6ed79df0739bd834eda6a0f77f3caf4292c
[ "MIT" ]
12
2021-08-17T09:20:07.000Z
2022-03-31T13:37:28.000Z
from utests import unittest from system_vars import * import fun class GlobalIntegerTestCase(unittest.TestCase): # Long Long Tests def test_long_long_min(self): fun.showname() c_type = integer[0] value = c_type[-1] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_long_long_max(self): fun.showname() c_type = integer[0] value = c_type[-2] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_long_long_min_overflow(self): fun.showname() c_type = integer[0] value = c_type[-1] - 18 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_long_long_max_overflow(self): fun.showname() c_type = integer[0] value = c_type[-2] + 18 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_long_long_1(self): fun.showname() c_type = integer[0] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 1 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_long_long_2(self): fun.showname() c_type = integer[0] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 2 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_long_long_3(self): fun.showname() c_type = integer[0] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 3 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) # Long Tests def test_long_min(self): fun.showname() c_type = integer[1] value = c_type[-1] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_long_max(self): fun.showname() c_type = integer[1] value = c_type[-2] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_long_min_overflow(self): fun.showname() c_type = integer[1] value = c_type[-1] - 18 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_long_max_overflow(self): fun.showname() c_type = integer[1] value = c_type[-2] + 18 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_long_1(self): fun.showname() c_type = integer[1] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 1 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_long_2(self): fun.showname() c_type = integer[1] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 2 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_long_3(self): fun.showname() c_type = integer[1] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 3 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) # Unsigned Long Tests def test_unsigned_long_min(self): fun.showname() c_type = integer[2] value = c_type[-1] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_long_max(self): fun.showname() c_type = integer[2] value = c_type[-2] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_long_min_overflow(self): fun.showname() c_type = integer[2] value = c_type[-1] - 18 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_long_max_overflow(self): fun.showname() c_type = integer[2] value = c_type[-2] + 18 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_long_1(self): fun.showname() c_type = integer[2] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 1 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_long_2(self): fun.showname() c_type = integer[2] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 2 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_long_3(self): fun.showname() c_type = integer[2] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 3 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) # Signed Tests def test_signed_min(self): fun.showname() c_type = integer[3] value = c_type[-1] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_signed_max(self): fun.showname() c_type = integer[3] value = c_type[-2] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_signed_min_overflow(self): fun.showname() c_type = integer[3] value = c_type[-1] - 18 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_signed_max_overflow(self): fun.showname() c_type = integer[3] value = c_type[-2] + 18 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_signed_1(self): fun.showname() c_type = integer[3] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 1 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_signed_2(self): fun.showname() c_type = integer[3] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 2 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_signed_3(self): fun.showname() c_type = integer[3] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 3 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) # Unsigned Tests def test_unsigned_min(self): fun.showname() c_type = integer[4] value = c_type[-1] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_max(self): fun.showname() c_type = integer[4] value = c_type[-2] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_min_overflow(self): fun.showname() c_type = integer[4] value = c_type[-1] - 18 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_max_overflow(self): fun.showname() c_type = integer[4] value = c_type[-2] + 18 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_1(self): fun.showname() c_type = integer[4] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 1 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_2(self): fun.showname() c_type = integer[4] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 2 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_3(self): fun.showname() c_type = integer[4] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 3 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) # Short Tests def test_short_min(self): fun.showname() c_type = integer[5] value = c_type[-1] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_short_max(self): fun.showname() c_type = integer[5] value = c_type[-2] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_short_min_overflow(self): fun.showname() c_type = integer[5] value = c_type[-1] - 18 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_short_max_overflow(self): fun.showname() c_type = integer[5] value = c_type[-2] + 18 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_short_1(self): fun.showname() c_type = integer[5] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 1 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_short_2(self): fun.showname() c_type = integer[5] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 2 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_short_3(self): fun.showname() c_type = integer[5] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 3 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) # Unsigned Short Tests def test_unsigned_short_min(self): fun.showname() c_type = integer[6] value = c_type[-1] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_short_max(self): fun.showname() c_type = integer[6] value = c_type[-2] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_short_min_overflow(self): fun.showname() c_type = integer[6] value = c_type[-1] - 18 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_short_max_overflow(self): fun.showname() c_type = integer[6] value = c_type[-2] - 18 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_short_1(self): fun.showname() c_type = integer[6] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 1 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_short_2(self): fun.showname() c_type = integer[6] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 2 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_short_3(self): fun.showname() c_type = integer[6] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 3 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) class GlobalSpecificTestCase(unittest.TestCase): # Char Tests def test_char_min(self): fun.showname() c_type = integer[7] value = c_type[-1] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_char_max(self): fun.showname() c_type = integer[7] value = c_type[-2] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_char_min_overflow(self): fun.showname() c_type = integer[7] value = c_type[-1] - 18 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_char_max_overflow(self): fun.showname() c_type = integer[7] value = c_type[-2] + 18 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_char_1(self): fun.showname() c_type = integer[7] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 1 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_char_2(self): fun.showname() c_type = integer[7] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 2 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_char_3(self): fun.showname() c_type = integer[7] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 3 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) # Unsigned Char Tests def test_unsigned_char_min(self): fun.showname() c_type = integer[8] value = c_type[-1] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_char_max(self): fun.showname() c_type = integer[8] value = c_type[-2] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_char_min_overflow(self): fun.showname() c_type = integer[8] value = c_type[-1] - 18 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_char_max_overflow(self): fun.showname() c_type = integer[8] value = c_type[-2] + 18 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_char_1(self): fun.showname() c_type = integer[8] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 1 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_char_2(self): fun.showname() c_type = integer[8] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 2 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_unsigned_char_3(self): fun.showname() c_type = integer[8] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 3 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) # Bool Tests def test_bool_min(self): fun.showname() c_type = integer[9] value = c_type[-1] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_bool_max(self): fun.showname() c_type = integer[9] value = c_type[-2] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_bool_min_overflow(self): fun.showname() c_type = integer[9] value = c_type[-1] - 18 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_bool_max_overflow(self): fun.showname() c_type = integer[9] value = c_type[-2] + 18 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_bool_1(self): fun.showname() c_type = integer[9] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 1 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_bool_2(self): fun.showname() c_type = integer[9] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 2 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_bool_3(self): fun.showname() c_type = integer[9] value = c_type[-1] + (c_type[-2] + 1 - c_type[-1]) // 4 * 3 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) class GlobalFloatTestCase(unittest.TestCase): # Float Tests def test_float_min(self): fun.showname() c_type = real[0] value = c_type[-1] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_float_max(self): fun.showname() c_type = real[0] value = c_type[-2] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_float_min_overflow(self): fun.showname() c_type = real[0] value = f'{c_type[-1]} * 2' declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_float_max_overflow(self): fun.showname() c_type = real[0] value = f'{c_type[-2]} * 2' declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_float_1(self): fun.showname() c_type = real[0] value = c_type[-1] // 2 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_float_2(self): fun.showname() c_type = real[0] value = 1 / 9 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_float_3(self): fun.showname() c_type = real[0] value = c_type[-2] // 2 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) # Double Tests def test_double_min(self): fun.showname() c_type = real[1] value = c_type[-1] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_double_max(self): fun.showname() c_type = real[1] value = c_type[-2] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_double_min_overflow(self): fun.showname() c_type = real[1] value = f'{c_type[-1]} * 2' declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_double_max_overflow(self): fun.showname() c_type = real[1] value = f'{c_type[-2]} * 2' declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_double_1(self): fun.showname() c_type = real[1] value = c_type[-1] // 2 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_double_2(self): fun.showname() c_type = real[1] value = 1 / 9 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_double_3(self): fun.showname() c_type = real[1] value = c_type[-2] // 2 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) # Long Double Tests def test_long_double_min(self): fun.showname() c_type = real[2] value = c_type[-1] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_long_double_max(self): fun.showname() c_type = real[2] value = c_type[-2] declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_long_double_min_overflow(self): fun.showname() c_type = real[2] value = f'{c_type[-1]} * 2' declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_long_double_max_overflow(self): fun.showname() c_type = real[2] value = f'{c_type[-2]} * 2' declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_long_double_1(self): fun.showname() c_type = real[2] value = c_type[-1] // 2 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_long_double_2(self): fun.showname() c_type = real[2] value = 1 / 9 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg) def test_long_double_3(self): fun.showname() c_type = real[2] value = c_type[-2] // 2 declaration, names = fun.generate_vars([c_type], [value]) fun.generate1([c_type], declaration, names) fun.generate2([c_type], declaration, names) res, msg = fun.compile_run() self.assertTrue(res, msg=msg) res, msg = fun.compare() self.assertTrue(res, msg=msg)
36.688789
67
0.588809
5,333
40,908
4.340709
0.010501
0.110588
0.14938
0.165104
0.984967
0.981165
0.981165
0.980129
0.972223
0.971057
0
0.020419
0.272123
40,908
1,114
68
36.721724
0.757019
0.004693
0
0.902681
0
0
0.002359
0
0
0
0
0
0.180735
1
0.090367
false
0
0.002979
0
0.096326
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
d969fd5af6512102f0873f1daeee7e29787627a7
5,085
py
Python
CAVA-2021-TEMA1/evaluare/cod_evaluare/evalueaza_solutie.py
AlexVulpoiu/Sudoku_information_extraction
4ed2b4d7abf511ffb5521e3c353fccbab08fe488
[ "MIT" ]
null
null
null
CAVA-2021-TEMA1/evaluare/cod_evaluare/evalueaza_solutie.py
AlexVulpoiu/Sudoku_information_extraction
4ed2b4d7abf511ffb5521e3c353fccbab08fe488
[ "MIT" ]
null
null
null
CAVA-2021-TEMA1/evaluare/cod_evaluare/evalueaza_solutie.py
AlexVulpoiu/Sudoku_information_extraction
4ed2b4d7abf511ffb5521e3c353fccbab08fe488
[ "MIT" ]
null
null
null
def evaluate_results_task1(predictions_path, ground_truth_path, verbose=0): total_correct = 0 for i in range(1, 21): add_0 = '' if i <= 9: add_0 = '0' filename_predictions = predictions_path + "/" + add_0 + str(i) + "_predicted.txt" p = open(filename_predictions, "rt") filename_ground_truth = ground_truth_path + "/" + add_0 + str(i) + "_gt.txt" gt = open(filename_ground_truth, "rt") correct_flag = 1 for row in range(1, 10): p_line = p.readline() gt_line = gt.readline() # print(p_line) # print(gt_line) if (p_line[:10] != gt_line[:10]): correct_flag = 0 p.close() gt.close() if verbose: print("Task 1 - Classic Sudoku: for test example number ", str(i), " the prediction is :", (1 - correct_flag) * "in" + "correct", "\n") total_correct = total_correct + correct_flag points = total_correct * 0.2 total_correct_bonus = 0 for i in range(1, 21): add_0 = '' if i <= 9: add_0 = '0' filename_predictions = predictions_path + "/" + add_0 + str(i) + "_bonus_predicted.txt" p = open(filename_predictions, "rt") filename_ground_truth = ground_truth_path + "/" + add_0 + str(i) + "_bonus_gt.txt" gt = open(filename_ground_truth, "rt") correct_flag = 1 for row in range(1, 10): p_line = p.readline() gt_line = gt.readline() # print(p_line) # print(gt_line) if (p_line[:10] != gt_line[:10]): correct_flag = 0 p.close() gt.close() if verbose: print("Task 1 bonus - Classic Sudoku: for test example number ", str(i), " the prediction is :", (1 - correct_flag) * "in" + "correct", "\n") total_correct_bonus = total_correct_bonus + correct_flag points_bonus = total_correct_bonus * 0.025 return total_correct, points, total_correct_bonus, points_bonus def evaluate_results_task2(predictions_path, ground_truth_path, verbose=0): total_correct = 0 for i in range(1, 41): add_0 = '' if i <= 9: add_0 = '0' filename_predictions = predictions_path + "/" + add_0 + str(i) + "_predicted.txt" p = open(filename_predictions, "rt") filename_ground_truth = ground_truth_path + "/" + add_0 + str(i) + "_gt.txt" gt = open(filename_ground_truth, "rt") correct_flag = 1 for row in range(1, 10): p_line = p.readline() gt_line = gt.readline() if (p_line[:19] != gt_line[:19]): correct_flag = 0 p.close() gt.close() if verbose: print("Task 2 - Jigsaw Sudoku: for test example number ", str(i), " the prediction is :", (1 - correct_flag) * "in" + "correct", "\n") total_correct = total_correct + correct_flag points = total_correct * 0.1 total_correct_bonus = 0 for i in range(1, 41): add_0 = '' if i <= 9: add_0 = '0' filename_predictions = predictions_path + "/" + add_0 + str(i) + "_bonus_predicted.txt" p = open(filename_predictions, "rt") filename_ground_truth = ground_truth_path + "/" + add_0 + str(i) + "_bonus_gt.txt" gt = open(filename_ground_truth, "rt") correct_flag = 1 for row in range(1, 10): p_line = p.readline() gt_line = gt.readline() # print(p_line) # print(gt_line) if (p_line[:19] != gt_line[:19]): correct_flag = 0 p.close() gt.close() if verbose: print("Task 2 bonus - Sudoku Jigsaw: for test example number ", str(i), " the prediction is :", (1 - correct_flag) * "in" + "correct", "\n") total_correct_bonus = total_correct_bonus + correct_flag points_bonus = total_correct_bonus * 0.025 return total_correct, points, total_correct_bonus, points_bonus verbose = 0 # #change this on your machine predictions_path_root = "..\\..\\..\\rezultate_Vulpoiu_Alexandru\\" ground_truth_path_root = "..\\CAVA-2021-TEMA1\\antrenare\\" path = "..\\C" # task1 predictions_path = predictions_path_root + "clasic\\" ground_truth_path = ground_truth_path_root + "clasic\\" total_correct_task1, points_task1, total_correct_bonus_task1, points_bonus_task1 = evaluate_results_task1( predictions_path, ground_truth_path, verbose) print(total_correct_task1, points_task1, total_correct_bonus_task1, points_bonus_task1) # task2 predictions_path = predictions_path_root + "jigsaw\\" ground_truth_path = ground_truth_path_root + "jigsaw\\" total_correct_task2, points_task2, total_correct_bonus_task2, points_bonus_task2 = evaluate_results_task2( predictions_path, ground_truth_path, verbose) print(total_correct_task2, points_task2, total_correct_bonus_task2, points_bonus_task2)
36.321429
108
0.595674
651
5,085
4.328725
0.107527
0.119234
0.084457
0.031228
0.932221
0.908091
0.908091
0.88396
0.88396
0.813698
0
0.034797
0.287906
5,085
139
109
36.582734
0.743441
0.024779
0
0.811321
0
0
0.116411
0.014753
0
0
0
0
0
1
0.018868
false
0
0
0
0.037736
0.056604
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
d96d53c16da6062cb3bd8cea6e97f1ec3317ee71
31,745
py
Python
sdk/python/pulumi_azure/synapse/outputs.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
109
2018-06-18T00:19:44.000Z
2022-02-20T05:32:57.000Z
sdk/python/pulumi_azure/synapse/outputs.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
663
2018-06-18T21:08:46.000Z
2022-03-31T20:10:11.000Z
sdk/python/pulumi_azure/synapse/outputs.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
41
2018-07-19T22:37:38.000Z
2022-03-14T10:56:26.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__ = [ 'LinkedServiceIntegrationRuntime', 'SparkPoolAutoPause', 'SparkPoolAutoScale', 'SparkPoolLibraryRequirement', 'SparkPoolSparkConfig', 'SqlPoolRestore', 'SqlPoolVulnerabilityAssessmentBaselineBaseline', 'SqlPoolVulnerabilityAssessmentRecurringScans', 'WorkspaceAadAdmin', 'WorkspaceAzureDevopsRepo', 'WorkspaceCustomerManagedKey', 'WorkspaceGithubRepo', 'WorkspaceIdentity', 'WorkspaceSqlAadAdmin', 'WorkspaceVulnerabilityAssessmentRecurringScans', 'GetWorkspaceIdentityResult', ] @pulumi.output_type class LinkedServiceIntegrationRuntime(dict): def __init__(__self__, *, name: str, parameters: Optional[Mapping[str, str]] = None): """ :param str name: The integration runtime reference to associate with the Synapse Linked Service. :param Mapping[str, str] parameters: A map of parameters to associate with the integration runtime. """ pulumi.set(__self__, "name", name) if parameters is not None: pulumi.set(__self__, "parameters", parameters) @property @pulumi.getter def name(self) -> str: """ The integration runtime reference to associate with the Synapse Linked Service. """ return pulumi.get(self, "name") @property @pulumi.getter def parameters(self) -> Optional[Mapping[str, str]]: """ A map of parameters to associate with the integration runtime. """ return pulumi.get(self, "parameters") @pulumi.output_type class SparkPoolAutoPause(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "delayInMinutes": suggest = "delay_in_minutes" if suggest: pulumi.log.warn(f"Key '{key}' not found in SparkPoolAutoPause. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: SparkPoolAutoPause.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: SparkPoolAutoPause.__key_warning(key) return super().get(key, default) def __init__(__self__, *, delay_in_minutes: int): """ :param int delay_in_minutes: Number of minutes of idle time before the Spark Pool is automatically paused. Must be between `5` and `10080`. """ pulumi.set(__self__, "delay_in_minutes", delay_in_minutes) @property @pulumi.getter(name="delayInMinutes") def delay_in_minutes(self) -> int: """ Number of minutes of idle time before the Spark Pool is automatically paused. Must be between `5` and `10080`. """ return pulumi.get(self, "delay_in_minutes") @pulumi.output_type class SparkPoolAutoScale(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "maxNodeCount": suggest = "max_node_count" elif key == "minNodeCount": suggest = "min_node_count" if suggest: pulumi.log.warn(f"Key '{key}' not found in SparkPoolAutoScale. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: SparkPoolAutoScale.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: SparkPoolAutoScale.__key_warning(key) return super().get(key, default) def __init__(__self__, *, max_node_count: int, min_node_count: int): """ :param int max_node_count: The maximum number of nodes the Spark Pool can support. Must be between `3` and `200`. :param int min_node_count: The minimum number of nodes the Spark Pool can support. Must be between `3` and `200`. """ pulumi.set(__self__, "max_node_count", max_node_count) pulumi.set(__self__, "min_node_count", min_node_count) @property @pulumi.getter(name="maxNodeCount") def max_node_count(self) -> int: """ The maximum number of nodes the Spark Pool can support. Must be between `3` and `200`. """ return pulumi.get(self, "max_node_count") @property @pulumi.getter(name="minNodeCount") def min_node_count(self) -> int: """ The minimum number of nodes the Spark Pool can support. Must be between `3` and `200`. """ return pulumi.get(self, "min_node_count") @pulumi.output_type class SparkPoolLibraryRequirement(dict): def __init__(__self__, *, content: str, filename: str): """ :param str content: The content of library requirements. :param str filename: The name of the library requirements file. """ pulumi.set(__self__, "content", content) pulumi.set(__self__, "filename", filename) @property @pulumi.getter def content(self) -> str: """ The content of library requirements. """ return pulumi.get(self, "content") @property @pulumi.getter def filename(self) -> str: """ The name of the library requirements file. """ return pulumi.get(self, "filename") @pulumi.output_type class SparkPoolSparkConfig(dict): def __init__(__self__, *, content: str, filename: str): """ :param str content: The contents of a spark configuration. :param str filename: The name of the file where the spark configuration `content` will be stored. """ pulumi.set(__self__, "content", content) pulumi.set(__self__, "filename", filename) @property @pulumi.getter def content(self) -> str: """ The contents of a spark configuration. """ return pulumi.get(self, "content") @property @pulumi.getter def filename(self) -> str: """ The name of the file where the spark configuration `content` will be stored. """ return pulumi.get(self, "filename") @pulumi.output_type class SqlPoolRestore(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "pointInTime": suggest = "point_in_time" elif key == "sourceDatabaseId": suggest = "source_database_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in SqlPoolRestore. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: SqlPoolRestore.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: SqlPoolRestore.__key_warning(key) return super().get(key, default) def __init__(__self__, *, point_in_time: str, source_database_id: str): """ :param str point_in_time: Specifies the Snapshot time to restore. Changing this forces a new Synapse Sql Pool to be created. :param str source_database_id: The ID of the Synapse Sql Pool or Sql Database which is to restore. Changing this forces a new Synapse Sql Pool to be created. """ pulumi.set(__self__, "point_in_time", point_in_time) pulumi.set(__self__, "source_database_id", source_database_id) @property @pulumi.getter(name="pointInTime") def point_in_time(self) -> str: """ Specifies the Snapshot time to restore. Changing this forces a new Synapse Sql Pool to be created. """ return pulumi.get(self, "point_in_time") @property @pulumi.getter(name="sourceDatabaseId") def source_database_id(self) -> str: """ The ID of the Synapse Sql Pool or Sql Database which is to restore. Changing this forces a new Synapse Sql Pool to be created. """ return pulumi.get(self, "source_database_id") @pulumi.output_type class SqlPoolVulnerabilityAssessmentBaselineBaseline(dict): def __init__(__self__, *, results: Sequence[str]): """ :param Sequence[str] results: Specifies a list of rule baseline result. """ pulumi.set(__self__, "results", results) @property @pulumi.getter def results(self) -> Sequence[str]: """ Specifies a list of rule baseline result. """ return pulumi.get(self, "results") @pulumi.output_type class SqlPoolVulnerabilityAssessmentRecurringScans(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "emailSubscriptionAdminsEnabled": suggest = "email_subscription_admins_enabled" if suggest: pulumi.log.warn(f"Key '{key}' not found in SqlPoolVulnerabilityAssessmentRecurringScans. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: SqlPoolVulnerabilityAssessmentRecurringScans.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: SqlPoolVulnerabilityAssessmentRecurringScans.__key_warning(key) return super().get(key, default) def __init__(__self__, *, email_subscription_admins_enabled: Optional[bool] = None, emails: Optional[Sequence[str]] = None, enabled: Optional[bool] = None): """ :param bool email_subscription_admins_enabled: Boolean flag which specifies if the schedule scan notification will be sent to the subscription administrators. Defaults to `false`. :param Sequence[str] emails: Specifies an array of e-mail addresses to which the scan notification is sent. :param bool enabled: Boolean flag which specifies if recurring scans is enabled or disabled. Defaults to `false`. """ if email_subscription_admins_enabled is not None: pulumi.set(__self__, "email_subscription_admins_enabled", email_subscription_admins_enabled) if emails is not None: pulumi.set(__self__, "emails", emails) if enabled is not None: pulumi.set(__self__, "enabled", enabled) @property @pulumi.getter(name="emailSubscriptionAdminsEnabled") def email_subscription_admins_enabled(self) -> Optional[bool]: """ Boolean flag which specifies if the schedule scan notification will be sent to the subscription administrators. Defaults to `false`. """ return pulumi.get(self, "email_subscription_admins_enabled") @property @pulumi.getter def emails(self) -> Optional[Sequence[str]]: """ Specifies an array of e-mail addresses to which the scan notification is sent. """ return pulumi.get(self, "emails") @property @pulumi.getter def enabled(self) -> Optional[bool]: """ Boolean flag which specifies if recurring scans is enabled or disabled. Defaults to `false`. """ return pulumi.get(self, "enabled") @pulumi.output_type class WorkspaceAadAdmin(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "objectId": suggest = "object_id" elif key == "tenantId": suggest = "tenant_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in WorkspaceAadAdmin. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: WorkspaceAadAdmin.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: WorkspaceAadAdmin.__key_warning(key) return super().get(key, default) def __init__(__self__, *, login: str, object_id: str, tenant_id: str): """ :param str login: The login name of the Azure AD Administrator of this Synapse Workspace. :param str object_id: The object id of the Azure AD Administrator of this Synapse Workspace. :param str tenant_id: The tenant id of the Azure AD Administrator of this Synapse Workspace. """ pulumi.set(__self__, "login", login) pulumi.set(__self__, "object_id", object_id) pulumi.set(__self__, "tenant_id", tenant_id) @property @pulumi.getter def login(self) -> str: """ The login name of the Azure AD Administrator of this Synapse Workspace. """ return pulumi.get(self, "login") @property @pulumi.getter(name="objectId") def object_id(self) -> str: """ The object id of the Azure AD Administrator of this Synapse Workspace. """ return pulumi.get(self, "object_id") @property @pulumi.getter(name="tenantId") def tenant_id(self) -> str: """ The tenant id of the Azure AD Administrator of this Synapse Workspace. """ return pulumi.get(self, "tenant_id") @pulumi.output_type class WorkspaceAzureDevopsRepo(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "accountName": suggest = "account_name" elif key == "branchName": suggest = "branch_name" elif key == "projectName": suggest = "project_name" elif key == "repositoryName": suggest = "repository_name" elif key == "rootFolder": suggest = "root_folder" elif key == "lastCommitId": suggest = "last_commit_id" elif key == "tenantId": suggest = "tenant_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in WorkspaceAzureDevopsRepo. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: WorkspaceAzureDevopsRepo.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: WorkspaceAzureDevopsRepo.__key_warning(key) return super().get(key, default) def __init__(__self__, *, account_name: str, branch_name: str, project_name: str, repository_name: str, root_folder: str, last_commit_id: Optional[str] = None, tenant_id: Optional[str] = None): """ :param str account_name: Specifies the Azure DevOps account name. :param str branch_name: Specifies the collaboration branch of the repository to get code from. :param str project_name: Specifies the name of the Azure DevOps project. :param str repository_name: Specifies the name of the git repository. :param str root_folder: Specifies the root folder within the repository. Set to `/` for the top level. :param str last_commit_id: The last commit ID. :param str tenant_id: the ID of the tenant for the Azure DevOps account. """ pulumi.set(__self__, "account_name", account_name) pulumi.set(__self__, "branch_name", branch_name) pulumi.set(__self__, "project_name", project_name) pulumi.set(__self__, "repository_name", repository_name) pulumi.set(__self__, "root_folder", root_folder) if last_commit_id is not None: pulumi.set(__self__, "last_commit_id", last_commit_id) if tenant_id is not None: pulumi.set(__self__, "tenant_id", tenant_id) @property @pulumi.getter(name="accountName") def account_name(self) -> str: """ Specifies the Azure DevOps account name. """ return pulumi.get(self, "account_name") @property @pulumi.getter(name="branchName") def branch_name(self) -> str: """ Specifies the collaboration branch of the repository to get code from. """ return pulumi.get(self, "branch_name") @property @pulumi.getter(name="projectName") def project_name(self) -> str: """ Specifies the name of the Azure DevOps project. """ return pulumi.get(self, "project_name") @property @pulumi.getter(name="repositoryName") def repository_name(self) -> str: """ Specifies the name of the git repository. """ return pulumi.get(self, "repository_name") @property @pulumi.getter(name="rootFolder") def root_folder(self) -> str: """ Specifies the root folder within the repository. Set to `/` for the top level. """ return pulumi.get(self, "root_folder") @property @pulumi.getter(name="lastCommitId") def last_commit_id(self) -> Optional[str]: """ The last commit ID. """ return pulumi.get(self, "last_commit_id") @property @pulumi.getter(name="tenantId") def tenant_id(self) -> Optional[str]: """ the ID of the tenant for the Azure DevOps account. """ return pulumi.get(self, "tenant_id") @pulumi.output_type class WorkspaceCustomerManagedKey(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "keyVersionlessId": suggest = "key_versionless_id" elif key == "keyName": suggest = "key_name" if suggest: pulumi.log.warn(f"Key '{key}' not found in WorkspaceCustomerManagedKey. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: WorkspaceCustomerManagedKey.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: WorkspaceCustomerManagedKey.__key_warning(key) return super().get(key, default) def __init__(__self__, *, key_versionless_id: str, key_name: Optional[str] = None): """ :param str key_versionless_id: The Azure Key Vault Key Versionless ID to be used as the Customer Managed Key (CMK) for double encryption (e.g. `https://example-keyvault.vault.azure.net/type/cmk/`). :param str key_name: An identifier for the key. Name needs to match the name of the key used with the `synapse.WorkspaceKey` resource. Defaults to "cmk" if not specified. """ pulumi.set(__self__, "key_versionless_id", key_versionless_id) if key_name is not None: pulumi.set(__self__, "key_name", key_name) @property @pulumi.getter(name="keyVersionlessId") def key_versionless_id(self) -> str: """ The Azure Key Vault Key Versionless ID to be used as the Customer Managed Key (CMK) for double encryption (e.g. `https://example-keyvault.vault.azure.net/type/cmk/`). """ return pulumi.get(self, "key_versionless_id") @property @pulumi.getter(name="keyName") def key_name(self) -> Optional[str]: """ An identifier for the key. Name needs to match the name of the key used with the `synapse.WorkspaceKey` resource. Defaults to "cmk" if not specified. """ return pulumi.get(self, "key_name") @pulumi.output_type class WorkspaceGithubRepo(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "accountName": suggest = "account_name" elif key == "branchName": suggest = "branch_name" elif key == "repositoryName": suggest = "repository_name" elif key == "rootFolder": suggest = "root_folder" elif key == "gitUrl": suggest = "git_url" elif key == "lastCommitId": suggest = "last_commit_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in WorkspaceGithubRepo. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: WorkspaceGithubRepo.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: WorkspaceGithubRepo.__key_warning(key) return super().get(key, default) def __init__(__self__, *, account_name: str, branch_name: str, repository_name: str, root_folder: str, git_url: Optional[str] = None, last_commit_id: Optional[str] = None): """ :param str account_name: Specifies the GitHub account name. :param str branch_name: Specifies the collaboration branch of the repository to get code from. :param str repository_name: Specifies the name of the git repository. :param str root_folder: Specifies the root folder within the repository. Set to `/` for the top level. :param str git_url: Specifies the GitHub Enterprise host name. For example: https://github.mydomain.com. :param str last_commit_id: The last commit ID. """ pulumi.set(__self__, "account_name", account_name) pulumi.set(__self__, "branch_name", branch_name) pulumi.set(__self__, "repository_name", repository_name) pulumi.set(__self__, "root_folder", root_folder) if git_url is not None: pulumi.set(__self__, "git_url", git_url) if last_commit_id is not None: pulumi.set(__self__, "last_commit_id", last_commit_id) @property @pulumi.getter(name="accountName") def account_name(self) -> str: """ Specifies the GitHub account name. """ return pulumi.get(self, "account_name") @property @pulumi.getter(name="branchName") def branch_name(self) -> str: """ Specifies the collaboration branch of the repository to get code from. """ return pulumi.get(self, "branch_name") @property @pulumi.getter(name="repositoryName") def repository_name(self) -> str: """ Specifies the name of the git repository. """ return pulumi.get(self, "repository_name") @property @pulumi.getter(name="rootFolder") def root_folder(self) -> str: """ Specifies the root folder within the repository. Set to `/` for the top level. """ return pulumi.get(self, "root_folder") @property @pulumi.getter(name="gitUrl") def git_url(self) -> Optional[str]: """ Specifies the GitHub Enterprise host name. For example: https://github.mydomain.com. """ return pulumi.get(self, "git_url") @property @pulumi.getter(name="lastCommitId") def last_commit_id(self) -> Optional[str]: """ The last commit ID. """ return pulumi.get(self, "last_commit_id") @pulumi.output_type class WorkspaceIdentity(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "principalId": suggest = "principal_id" elif key == "tenantId": suggest = "tenant_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in WorkspaceIdentity. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: WorkspaceIdentity.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: WorkspaceIdentity.__key_warning(key) return super().get(key, default) def __init__(__self__, *, principal_id: Optional[str] = None, tenant_id: Optional[str] = None, type: Optional[str] = None): """ :param str principal_id: The Principal ID for the Service Principal associated with the Managed Service Identity of this Synapse Workspace. :param str tenant_id: The tenant id of the Azure AD Administrator of this Synapse Workspace. :param str type: The Identity Type for the Service Principal associated with the Managed Service Identity of this Synapse Workspace. """ if principal_id is not None: pulumi.set(__self__, "principal_id", principal_id) if tenant_id is not None: pulumi.set(__self__, "tenant_id", tenant_id) if type is not None: pulumi.set(__self__, "type", type) @property @pulumi.getter(name="principalId") def principal_id(self) -> Optional[str]: """ The Principal ID for the Service Principal associated with the Managed Service Identity of this Synapse Workspace. """ return pulumi.get(self, "principal_id") @property @pulumi.getter(name="tenantId") def tenant_id(self) -> Optional[str]: """ The tenant id of the Azure AD Administrator of this Synapse Workspace. """ return pulumi.get(self, "tenant_id") @property @pulumi.getter def type(self) -> Optional[str]: """ The Identity Type for the Service Principal associated with the Managed Service Identity of this Synapse Workspace. """ return pulumi.get(self, "type") @pulumi.output_type class WorkspaceSqlAadAdmin(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "objectId": suggest = "object_id" elif key == "tenantId": suggest = "tenant_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in WorkspaceSqlAadAdmin. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: WorkspaceSqlAadAdmin.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: WorkspaceSqlAadAdmin.__key_warning(key) return super().get(key, default) def __init__(__self__, *, login: str, object_id: str, tenant_id: str): """ :param str login: The login name of the Azure AD Administrator of this Synapse Workspace SQL. :param str object_id: The object id of the Azure AD Administrator of this Synapse Workspace SQL. :param str tenant_id: The tenant id of the Azure AD Administrator of this Synapse Workspace SQL. """ pulumi.set(__self__, "login", login) pulumi.set(__self__, "object_id", object_id) pulumi.set(__self__, "tenant_id", tenant_id) @property @pulumi.getter def login(self) -> str: """ The login name of the Azure AD Administrator of this Synapse Workspace SQL. """ return pulumi.get(self, "login") @property @pulumi.getter(name="objectId") def object_id(self) -> str: """ The object id of the Azure AD Administrator of this Synapse Workspace SQL. """ return pulumi.get(self, "object_id") @property @pulumi.getter(name="tenantId") def tenant_id(self) -> str: """ The tenant id of the Azure AD Administrator of this Synapse Workspace SQL. """ return pulumi.get(self, "tenant_id") @pulumi.output_type class WorkspaceVulnerabilityAssessmentRecurringScans(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "emailSubscriptionAdminsEnabled": suggest = "email_subscription_admins_enabled" if suggest: pulumi.log.warn(f"Key '{key}' not found in WorkspaceVulnerabilityAssessmentRecurringScans. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: WorkspaceVulnerabilityAssessmentRecurringScans.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: WorkspaceVulnerabilityAssessmentRecurringScans.__key_warning(key) return super().get(key, default) def __init__(__self__, *, email_subscription_admins_enabled: Optional[bool] = None, emails: Optional[Sequence[str]] = None, enabled: Optional[bool] = None): """ :param bool email_subscription_admins_enabled: Boolean flag which specifies if the schedule scan notification will be sent to the subscription administrators. Defaults to `false`. :param Sequence[str] emails: Specifies an array of e-mail addresses to which the scan notification is sent. :param bool enabled: Boolean flag which specifies if recurring scans is enabled or disabled. Defaults to `false`. """ if email_subscription_admins_enabled is not None: pulumi.set(__self__, "email_subscription_admins_enabled", email_subscription_admins_enabled) if emails is not None: pulumi.set(__self__, "emails", emails) if enabled is not None: pulumi.set(__self__, "enabled", enabled) @property @pulumi.getter(name="emailSubscriptionAdminsEnabled") def email_subscription_admins_enabled(self) -> Optional[bool]: """ Boolean flag which specifies if the schedule scan notification will be sent to the subscription administrators. Defaults to `false`. """ return pulumi.get(self, "email_subscription_admins_enabled") @property @pulumi.getter def emails(self) -> Optional[Sequence[str]]: """ Specifies an array of e-mail addresses to which the scan notification is sent. """ return pulumi.get(self, "emails") @property @pulumi.getter def enabled(self) -> Optional[bool]: """ Boolean flag which specifies if recurring scans is enabled or disabled. Defaults to `false`. """ return pulumi.get(self, "enabled") @pulumi.output_type class GetWorkspaceIdentityResult(dict): def __init__(__self__, *, principal_id: str, tenant_id: str, type: str): """ :param str principal_id: The Principal ID for the Service Principal associated with the Managed Service Identity of this Synapse Workspace. :param str tenant_id: The Tenant ID for the Service Principal associated with the Managed Service Identity of this Synapse Workspace. :param str type: The Identity Type for the Service Principal associated with the Managed Service Identity of this Synapse Workspace. """ pulumi.set(__self__, "principal_id", principal_id) pulumi.set(__self__, "tenant_id", tenant_id) pulumi.set(__self__, "type", type) @property @pulumi.getter(name="principalId") def principal_id(self) -> str: """ The Principal ID for the Service Principal associated with the Managed Service Identity of this Synapse Workspace. """ return pulumi.get(self, "principal_id") @property @pulumi.getter(name="tenantId") def tenant_id(self) -> str: """ The Tenant ID for the Service Principal associated with the Managed Service Identity of this Synapse Workspace. """ return pulumi.get(self, "tenant_id") @property @pulumi.getter def type(self) -> str: """ The Identity Type for the Service Principal associated with the Managed Service Identity of this Synapse Workspace. """ return pulumi.get(self, "type")
36.363116
205
0.633486
3,670
31,745
5.255313
0.068392
0.020325
0.030331
0.04433
0.828226
0.808524
0.795821
0.752891
0.743195
0.731736
0
0.001251
0.269617
31,745
872
206
36.404817
0.830587
0.26716
0
0.727955
1
0.020638
0.17143
0.034915
0
0
0
0
0
1
0.17636
false
0
0.009381
0
0.341463
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
796105cb25f6b9709bb1d39e40ec68adfdfff284
157
py
Python
log/dreyeve/old/long/configuration.py
ErikKratzCth/ALOCC_Keras_SMILE
27dc6aafd951e95085351bd8d56f4006f58ca9fa
[ "MIT" ]
5
2019-03-01T12:22:50.000Z
2020-09-24T07:19:14.000Z
log/dreyeve/old/long/configuration.py
KratzErik/ALOCC_Keras_SMILE
27dc6aafd951e95085351bd8d56f4006f58ca9fa
[ "MIT" ]
null
null
null
log/dreyeve/old/long/configuration.py
KratzErik/ALOCC_Keras_SMILE
27dc6aafd951e95085351bd8d56f4006f58ca9fa
[ "MIT" ]
1
2020-07-28T14:41:58.000Z
2020-07-28T14:41:58.000Z
################################################################# Test started at: 2018-12-02 07:23:06.979351AUROC D()-score: 0.82961AUPRC D()-score: 0.77627
157
157
0.426752
18
157
3.722222
0.833333
0.179104
0.208955
0
0
0
0
0
0
0
0
0.216216
0.057325
157
1
157
157
0.236486
0.579618
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
1
0
0
0
0
0
0
0
0
1
0
0
1
0
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
7
7972aab10feba30f35f769b98f137f2b9a50ab07
63,238
py
Python
src/genie/libs/parser/iosxe/tests/ShowSdwanAppRouteStatistics/cli/equal/app_route_lc_stats_golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/ShowSdwanAppRouteStatistics/cli/equal/app_route_lc_stats_golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/ShowSdwanAppRouteStatistics/cli/equal/app_route_lc_stats_golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
null
null
null
expected_output = { "approute":{ "151.0.5.1":{ "150.0.0.1":{ "protocol":"ipsec", "src_port":12346, "dst_port":12346, "remote_system_ip":"20.0.0.20", "local_color":"silver", "remote_color":"bronze", "sla_class_index":"0,1", "fall_back_sla_index":"None", "app_probe_class_list":{ "None":{ "mean_loss":0, "mean_latency":0, "mean_jitter":1, "interval":{ "0":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "1":{ "total_packets":662, "loss":0, "average_latency":0, "average_jitter":1, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "2":{ "total_packets":666, "loss":0, "average_latency":0, "average_jitter":1, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "3":{ "total_packets":661, "loss":0, "average_latency":0, "average_jitter":1, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "4":{ "total_packets":662, "loss":0, "average_latency":0, "average_jitter":1, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "5":{ "total_packets":663, "loss":0, "average_latency":1, "average_jitter":1, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 } } } } }, "150.0.1.1":{ "protocol":"ipsec", "src_port":12346, "dst_port":12346, "remote_system_ip":"21.0.0.21", "local_color":"silver", "remote_color":"3g", "sla_class_index":"0,1", "fall_back_sla_index":"None", "app_probe_class_list":{ "None":{ "mean_loss":0, "mean_latency":6, "mean_jitter":8, "interval":{ "0":{ "total_packets":663, "loss":0, "average_latency":5, "average_jitter":7, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "1":{ "total_packets":659, "loss":0, "average_latency":6, "average_jitter":7, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "2":{ "total_packets":665, "loss":0, "average_latency":6, "average_jitter":7, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "3":{ "total_packets":662, "loss":0, "average_latency":5, "average_jitter":7, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "4":{ "total_packets":662, "loss":0, "average_latency":6, "average_jitter":8, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "5":{ "total_packets":662, "loss":1, "average_latency":8, "average_jitter":11, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 } } } } }, "150.0.2.1":{ "protocol":"ipsec", "src_port":12346, "dst_port":12346, "remote_system_ip":"22.0.0.22", "local_color":"silver", "remote_color":"private1", "sla_class_index":"0,1", "fall_back_sla_index":"None", "app_probe_class_list":{ "None":{ "mean_loss":0, "mean_latency":0, "mean_jitter":0, "interval":{ "0":{ "total_packets":664, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "1":{ "total_packets":664, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "2":{ "total_packets":666, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "3":{ "total_packets":664, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "4":{ "total_packets":665, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "5":{ "total_packets":664, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 } } } } }, "150.0.3.1":{ "protocol":"ipsec", "src_port":12346, "dst_port":12346, "remote_system_ip":"23.0.0.23", "local_color":"silver", "remote_color":"biz-internet", "sla_class_index":"0,1", "fall_back_sla_index":"None", "app_probe_class_list":{ "None":{ "mean_loss":0, "mean_latency":0, "mean_jitter":0, "interval":{ "0":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":7790, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "1":{ "total_packets":665, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":7107, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "2":{ "total_packets":662, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":64849, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "3":{ "total_packets":661, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":7326, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "4":{ "total_packets":661, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":8057, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "5":{ "total_packets":661, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":8529, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 } } } } }, "150.0.4.1":{ "protocol":"ipsec", "src_port":12346, "dst_port":12346, "remote_system_ip":"24.0.0.24", "local_color":"silver", "remote_color":"blue", "sla_class_index":"0,1", "fall_back_sla_index":"None", "app_probe_class_list":{ "None":{ "mean_loss":0, "mean_latency":0, "mean_jitter":0, "interval":{ "0":{ "total_packets":664, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "1":{ "total_packets":661, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "2":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "3":{ "total_packets":661, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "4":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "5":{ "total_packets":662, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 } } } } }, "150.0.6.1":{ "protocol":"ipsec", "src_port":12346, "dst_port":12346, "remote_system_ip":"26.0.0.26", "local_color":"silver", "remote_color":"green", "sla_class_index":"0,1", "fall_back_sla_index":"None", "app_probe_class_list":{ "None":{ "mean_loss":0, "mean_latency":0, "mean_jitter":0, "interval":{ "0":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "1":{ "total_packets":662, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "2":{ "total_packets":661, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "3":{ "total_packets":662, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "4":{ "total_packets":664, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "5":{ "total_packets":666, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 } } } } }, "150.0.7.1":{ "protocol":"ipsec", "src_port":12346, "dst_port":12346, "remote_system_ip":"27.0.0.27", "local_color":"silver", "remote_color":"silver", "sla_class_index":"0,1", "fall_back_sla_index":"None", "app_probe_class_list":{ "None":{ "mean_loss":0, "mean_latency":0, "mean_jitter":0, "interval":{ "0":{ "total_packets":661, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "1":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "2":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "3":{ "total_packets":661, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "4":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "5":{ "total_packets":664, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 } } } } }, "150.0.8.1":{ "protocol":"ipsec", "src_port":12346, "dst_port":12346, "remote_system_ip":"28.0.0.28", "local_color":"silver", "remote_color":"custom1", "sla_class_index":"0,1", "fall_back_sla_index":"None", "app_probe_class_list":{ "None":{ "mean_loss":0, "mean_latency":0, "mean_jitter":0, "interval":{ "0":{ "total_packets":662, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "1":{ "total_packets":664, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "2":{ "total_packets":665, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "3":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "4":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "5":{ "total_packets":661, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 } } } } }, "150.0.10.1":{ "protocol":"ipsec", "src_port":12346, "dst_port":12346, "remote_system_ip":"30.0.0.30", "local_color":"silver", "remote_color":"mpls", "sla_class_index":"0,1", "fall_back_sla_index":"None", "app_probe_class_list":{ "None":{ "mean_loss":0, "mean_latency":0, "mean_jitter":0, "interval":{ "0":{ "total_packets":665, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "1":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "2":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "3":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "4":{ "total_packets":664, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "5":{ "total_packets":662, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 } } } } }, "150.0.40.4":{ "protocol":"ipsec", "src_port":12346, "dst_port":12366, "remote_system_ip":"140.0.1.140", "local_color":"silver", "remote_color":"gold", "sla_class_index":"0,1", "fall_back_sla_index":"None", "app_probe_class_list":{ "None":{ "mean_loss":0, "mean_latency":0, "mean_jitter":0, "interval":{ "0":{ "total_packets":660, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":214692, "rx_data_pkts":259916, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "1":{ "total_packets":664, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":226004, "rx_data_pkts":262009, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "2":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":226231, "rx_data_pkts":256729, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "3":{ "total_packets":667, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":233946, "rx_data_pkts":267214, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "4":{ "total_packets":664, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":213044, "rx_data_pkts":251836, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "5":{ "total_packets":666, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":261236, "rx_data_pkts":301577, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 } } } } }, "151.0.0.1":{ "protocol":"ipsec", "src_port":12346, "dst_port":12346, "remote_system_ip":"20.0.0.20", "local_color":"silver", "remote_color":"silver", "sla_class_index":"0,1", "fall_back_sla_index":"None", "app_probe_class_list":{ "None":{ "mean_loss":0, "mean_latency":0, "mean_jitter":1, "interval":{ "0":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":1, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "1":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":1, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "2":{ "total_packets":665, "loss":0, "average_latency":0, "average_jitter":1, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "3":{ "total_packets":662, "loss":0, "average_latency":0, "average_jitter":1, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "4":{ "total_packets":662, "loss":0, "average_latency":0, "average_jitter":1, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "5":{ "total_packets":663, "loss":0, "average_latency":1, "average_jitter":1, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 } } } } }, "151.0.1.1":{ "protocol":"ipsec", "src_port":12346, "dst_port":12346, "remote_system_ip":"21.0.0.21", "local_color":"silver", "remote_color":"lte", "sla_class_index":"0,1", "fall_back_sla_index":"None", "app_probe_class_list":{ "None":{ "mean_loss":0, "mean_latency":6, "mean_jitter":8, "interval":{ "0":{ "total_packets":660, "loss":0, "average_latency":5, "average_jitter":7, "tx_data_pkts":562521, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "1":{ "total_packets":661, "loss":0, "average_latency":6, "average_jitter":7, "tx_data_pkts":558711, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "2":{ "total_packets":665, "loss":0, "average_latency":6, "average_jitter":7, "tx_data_pkts":564510, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "3":{ "total_packets":664, "loss":0, "average_latency":5, "average_jitter":7, "tx_data_pkts":560219, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "4":{ "total_packets":664, "loss":0, "average_latency":6, "average_jitter":9, "tx_data_pkts":559410, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "5":{ "total_packets":665, "loss":1, "average_latency":8, "average_jitter":11, "tx_data_pkts":228613, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 } } } } }, "151.0.2.1":{ "protocol":"ipsec", "src_port":12346, "dst_port":12346, "remote_system_ip":"22.0.0.22", "local_color":"silver", "remote_color":"private2", "sla_class_index":"0,1", "fall_back_sla_index":"None", "app_probe_class_list":{ "None":{ "mean_loss":0, "mean_latency":0, "mean_jitter":0, "interval":{ "0":{ "total_packets":665, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "1":{ "total_packets":664, "loss":1, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "2":{ "total_packets":662, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "3":{ "total_packets":666, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "4":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "5":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 } } } } }, "151.0.3.1":{ "protocol":"ipsec", "src_port":12346, "dst_port":12346, "remote_system_ip":"23.0.0.23", "local_color":"silver", "remote_color":"bronze", "sla_class_index":"0,1", "fall_back_sla_index":"None", "app_probe_class_list":{ "None":{ "mean_loss":0, "mean_latency":0, "mean_jitter":0, "interval":{ "0":{ "total_packets":665, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "1":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "2":{ "total_packets":662, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "3":{ "total_packets":665, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "4":{ "total_packets":666, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "5":{ "total_packets":662, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 } } } } }, "151.0.4.1":{ "protocol":"ipsec", "src_port":12346, "dst_port":12346, "remote_system_ip":"24.0.0.24", "local_color":"silver", "remote_color":"metro-ethernet", "sla_class_index":"0,1", "fall_back_sla_index":"None", "app_probe_class_list":{ "None":{ "mean_loss":0, "mean_latency":0, "mean_jitter":0, "interval":{ "0":{ "total_packets":667, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "1":{ "total_packets":664, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "2":{ "total_packets":666, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "3":{ "total_packets":661, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "4":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "5":{ "total_packets":661, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 } } } } }, "151.0.6.1":{ "protocol":"ipsec", "src_port":12346, "dst_port":12346, "remote_system_ip":"26.0.0.26", "local_color":"silver", "remote_color":"custom1", "sla_class_index":"0,1", "fall_back_sla_index":"None", "app_probe_class_list":{ "None":{ "mean_loss":0, "mean_latency":0, "mean_jitter":0, "interval":{ "0":{ "total_packets":667, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "1":{ "total_packets":662, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "2":{ "total_packets":661, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "3":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "4":{ "total_packets":662, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "5":{ "total_packets":662, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 } } } } }, "151.0.7.1":{ "protocol":"ipsec", "src_port":12346, "dst_port":12346, "remote_system_ip":"27.0.0.27", "local_color":"silver", "remote_color":"blue", "sla_class_index":"0,1", "fall_back_sla_index":"None", "app_probe_class_list":{ "None":{ "mean_loss":0, "mean_latency":0, "mean_jitter":0, "interval":{ "0":{ "total_packets":665, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "1":{ "total_packets":662, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "2":{ "total_packets":664, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "3":{ "total_packets":661, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "4":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "5":{ "total_packets":661, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":0, "rx_data_pkts":0, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 } } } } }, "151.0.40.4":{ "protocol":"ipsec", "src_port":12346, "dst_port":12366, "remote_system_ip":"140.0.1.140", "local_color":"silver", "remote_color":"mpls", "sla_class_index":"0,1", "fall_back_sla_index":"None", "app_probe_class_list":{ "None":{ "mean_loss":0, "mean_latency":0, "mean_jitter":0, "interval":{ "0":{ "total_packets":661, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":245771, "rx_data_pkts":269803, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "1":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":263232, "rx_data_pkts":283535, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "2":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":262412, "rx_data_pkts":275379, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "3":{ "total_packets":663, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":273509, "rx_data_pkts":294351, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "4":{ "total_packets":667, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":258773, "rx_data_pkts":275562, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 }, "5":{ "total_packets":662, "loss":0, "average_latency":0, "average_jitter":0, "tx_data_pkts":294365, "rx_data_pkts":322271, "ipv6_tx_data_pkts":0, "ipv6_rx_data_pkts":0 } } } } } } } }
44.253324
54
0.259164
4,149
63,238
3.53772
0.029405
0.235454
0.242812
0.152882
0.969751
0.969751
0.969751
0.967843
0.967843
0.96723
0
0.094949
0.653752
63,238
1,428
55
44.284314
0.575402
0
0
0.822829
0
0
0.237515
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
1
0
1
1
1
1
1
1
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
10
8ddb8419db83068da01d666a6a57770ffe929ff4
52
py
Python
pyretimetout/__init__.py
rfyiambest/pyretimeout
9f6dbd5d163887831aae7dc2ab5545d51d121c51
[ "MIT" ]
2
2015-05-28T04:46:00.000Z
2015-06-01T12:07:45.000Z
pyretimetout/__init__.py
rfyiambest/pyretimeout
9f6dbd5d163887831aae7dc2ab5545d51d121c51
[ "MIT" ]
null
null
null
pyretimetout/__init__.py
rfyiambest/pyretimeout
9f6dbd5d163887831aae7dc2ab5545d51d121c51
[ "MIT" ]
null
null
null
from .retry import retry from .retry import Failing
17.333333
26
0.807692
8
52
5.25
0.5
0.428571
0.714286
0
0
0
0
0
0
0
0
0
0.153846
52
2
27
26
0.954545
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
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
8dfe9ce72f477c55639da1ad459077e995b0f5b8
40,835
py
Python
sdk/python/pulumi_sakuracloud/mobile_gateway.py
sacloud/pulumi-sakuracloud
3eff14c6ec8ef4ad6422e0cdf15585df67eb4d6e
[ "ECL-2.0", "Apache-2.0" ]
6
2019-12-07T07:46:05.000Z
2020-12-19T02:41:42.000Z
sdk/python/pulumi_sakuracloud/mobile_gateway.py
sacloud/pulumi-sakuracloud
3eff14c6ec8ef4ad6422e0cdf15585df67eb4d6e
[ "ECL-2.0", "Apache-2.0" ]
5
2019-09-11T04:41:06.000Z
2021-10-19T07:50:34.000Z
sdk/python/pulumi_sakuracloud/mobile_gateway.py
sacloud/pulumi-sakuracloud
3eff14c6ec8ef4ad6422e0cdf15585df67eb4d6e
[ "ECL-2.0", "Apache-2.0" ]
2
2019-09-08T05:38:16.000Z
2021-06-24T01:32:47.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 from . import outputs from ._inputs import * __all__ = ['MobileGatewayArgs', 'MobileGateway'] @pulumi.input_type class MobileGatewayArgs: def __init__(__self__, *, dns_servers: pulumi.Input[Sequence[pulumi.Input[str]]], description: Optional[pulumi.Input[str]] = None, icon_id: Optional[pulumi.Input[str]] = None, inter_device_communication: Optional[pulumi.Input[bool]] = None, internet_connection: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, private_network_interface: Optional[pulumi.Input['MobileGatewayPrivateNetworkInterfaceArgs']] = None, sim_routes: Optional[pulumi.Input[Sequence[pulumi.Input['MobileGatewaySimRouteArgs']]]] = None, sims: Optional[pulumi.Input[Sequence[pulumi.Input['MobileGatewaySimArgs']]]] = None, static_routes: Optional[pulumi.Input[Sequence[pulumi.Input['MobileGatewayStaticRouteArgs']]]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, traffic_control: Optional[pulumi.Input['MobileGatewayTrafficControlArgs']] = None, zone: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a MobileGateway resource. :param pulumi.Input[Sequence[pulumi.Input[str]]] dns_servers: A list of IP address used by each connected devices. :param pulumi.Input[str] description: The description of the MobileGateway. The length of this value must be in the range [`1`-`512`]. :param pulumi.Input[str] icon_id: The icon id to attach to the MobileGateway. :param pulumi.Input[bool] inter_device_communication: The flag to allow communication between each connected devices. :param pulumi.Input[bool] internet_connection: The flag to enable connect to the Internet. :param pulumi.Input[str] name: The name of the MobileGateway. The length of this value must be in the range [`1`-`64`]. :param pulumi.Input['MobileGatewayPrivateNetworkInterfaceArgs'] private_network_interface: An `private_network_interface` block as defined below. :param pulumi.Input[Sequence[pulumi.Input['MobileGatewaySimRouteArgs']]] sim_routes: One or more `sim_route` blocks as defined below. :param pulumi.Input[Sequence[pulumi.Input['MobileGatewaySimArgs']]] sims: One or more `sim` blocks as defined below. :param pulumi.Input[Sequence[pulumi.Input['MobileGatewayStaticRouteArgs']]] static_routes: One or more `static_route` blocks as defined below. :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: Any tags to assign to the MobileGateway. :param pulumi.Input['MobileGatewayTrafficControlArgs'] traffic_control: A `traffic_control` block as defined below. :param pulumi.Input[str] zone: The name of zone that the MobileGateway will be created. (e.g. `is1a`, `tk1a`). Changing this forces a new resource to be created. """ pulumi.set(__self__, "dns_servers", dns_servers) if description is not None: pulumi.set(__self__, "description", description) if icon_id is not None: pulumi.set(__self__, "icon_id", icon_id) if inter_device_communication is not None: pulumi.set(__self__, "inter_device_communication", inter_device_communication) if internet_connection is not None: pulumi.set(__self__, "internet_connection", internet_connection) if name is not None: pulumi.set(__self__, "name", name) if private_network_interface is not None: pulumi.set(__self__, "private_network_interface", private_network_interface) if sim_routes is not None: pulumi.set(__self__, "sim_routes", sim_routes) if sims is not None: pulumi.set(__self__, "sims", sims) if static_routes is not None: pulumi.set(__self__, "static_routes", static_routes) if tags is not None: pulumi.set(__self__, "tags", tags) if traffic_control is not None: pulumi.set(__self__, "traffic_control", traffic_control) if zone is not None: pulumi.set(__self__, "zone", zone) @property @pulumi.getter(name="dnsServers") def dns_servers(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: """ A list of IP address used by each connected devices. """ return pulumi.get(self, "dns_servers") @dns_servers.setter def dns_servers(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): pulumi.set(self, "dns_servers", value) @property @pulumi.getter def description(self) -> Optional[pulumi.Input[str]]: """ The description of the MobileGateway. The length of this value must be in the range [`1`-`512`]. """ return pulumi.get(self, "description") @description.setter def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) @property @pulumi.getter(name="iconId") def icon_id(self) -> Optional[pulumi.Input[str]]: """ The icon id to attach to the MobileGateway. """ return pulumi.get(self, "icon_id") @icon_id.setter def icon_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "icon_id", value) @property @pulumi.getter(name="interDeviceCommunication") def inter_device_communication(self) -> Optional[pulumi.Input[bool]]: """ The flag to allow communication between each connected devices. """ return pulumi.get(self, "inter_device_communication") @inter_device_communication.setter def inter_device_communication(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "inter_device_communication", value) @property @pulumi.getter(name="internetConnection") def internet_connection(self) -> Optional[pulumi.Input[bool]]: """ The flag to enable connect to the Internet. """ return pulumi.get(self, "internet_connection") @internet_connection.setter def internet_connection(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "internet_connection", value) @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ The name of the MobileGateway. The length of this value must be in the range [`1`-`64`]. """ return pulumi.get(self, "name") @name.setter def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @property @pulumi.getter(name="privateNetworkInterface") def private_network_interface(self) -> Optional[pulumi.Input['MobileGatewayPrivateNetworkInterfaceArgs']]: """ An `private_network_interface` block as defined below. """ return pulumi.get(self, "private_network_interface") @private_network_interface.setter def private_network_interface(self, value: Optional[pulumi.Input['MobileGatewayPrivateNetworkInterfaceArgs']]): pulumi.set(self, "private_network_interface", value) @property @pulumi.getter(name="simRoutes") def sim_routes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MobileGatewaySimRouteArgs']]]]: """ One or more `sim_route` blocks as defined below. """ return pulumi.get(self, "sim_routes") @sim_routes.setter def sim_routes(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MobileGatewaySimRouteArgs']]]]): pulumi.set(self, "sim_routes", value) @property @pulumi.getter def sims(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MobileGatewaySimArgs']]]]: """ One or more `sim` blocks as defined below. """ return pulumi.get(self, "sims") @sims.setter def sims(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MobileGatewaySimArgs']]]]): pulumi.set(self, "sims", value) @property @pulumi.getter(name="staticRoutes") def static_routes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MobileGatewayStaticRouteArgs']]]]: """ One or more `static_route` blocks as defined below. """ return pulumi.get(self, "static_routes") @static_routes.setter def static_routes(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MobileGatewayStaticRouteArgs']]]]): pulumi.set(self, "static_routes", value) @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ Any tags to assign to the MobileGateway. """ return pulumi.get(self, "tags") @tags.setter def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "tags", value) @property @pulumi.getter(name="trafficControl") def traffic_control(self) -> Optional[pulumi.Input['MobileGatewayTrafficControlArgs']]: """ A `traffic_control` block as defined below. """ return pulumi.get(self, "traffic_control") @traffic_control.setter def traffic_control(self, value: Optional[pulumi.Input['MobileGatewayTrafficControlArgs']]): pulumi.set(self, "traffic_control", value) @property @pulumi.getter def zone(self) -> Optional[pulumi.Input[str]]: """ The name of zone that the MobileGateway will be created. (e.g. `is1a`, `tk1a`). Changing this forces a new resource to be created. """ return pulumi.get(self, "zone") @zone.setter def zone(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "zone", value) @pulumi.input_type class _MobileGatewayState: def __init__(__self__, *, description: Optional[pulumi.Input[str]] = None, dns_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, icon_id: Optional[pulumi.Input[str]] = None, inter_device_communication: Optional[pulumi.Input[bool]] = None, internet_connection: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, private_network_interface: Optional[pulumi.Input['MobileGatewayPrivateNetworkInterfaceArgs']] = None, public_ip: Optional[pulumi.Input[str]] = None, public_netmask: Optional[pulumi.Input[int]] = None, sim_routes: Optional[pulumi.Input[Sequence[pulumi.Input['MobileGatewaySimRouteArgs']]]] = None, sims: Optional[pulumi.Input[Sequence[pulumi.Input['MobileGatewaySimArgs']]]] = None, static_routes: Optional[pulumi.Input[Sequence[pulumi.Input['MobileGatewayStaticRouteArgs']]]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, traffic_control: Optional[pulumi.Input['MobileGatewayTrafficControlArgs']] = None, zone: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering MobileGateway resources. :param pulumi.Input[str] description: The description of the MobileGateway. The length of this value must be in the range [`1`-`512`]. :param pulumi.Input[Sequence[pulumi.Input[str]]] dns_servers: A list of IP address used by each connected devices. :param pulumi.Input[str] icon_id: The icon id to attach to the MobileGateway. :param pulumi.Input[bool] inter_device_communication: The flag to allow communication between each connected devices. :param pulumi.Input[bool] internet_connection: The flag to enable connect to the Internet. :param pulumi.Input[str] name: The name of the MobileGateway. The length of this value must be in the range [`1`-`64`]. :param pulumi.Input['MobileGatewayPrivateNetworkInterfaceArgs'] private_network_interface: An `private_network_interface` block as defined below. :param pulumi.Input[str] public_ip: The public IP address assigned to the MobileGateway. :param pulumi.Input[int] public_netmask: The bit length of the subnet assigned to the MobileGateway. :param pulumi.Input[Sequence[pulumi.Input['MobileGatewaySimRouteArgs']]] sim_routes: One or more `sim_route` blocks as defined below. :param pulumi.Input[Sequence[pulumi.Input['MobileGatewaySimArgs']]] sims: One or more `sim` blocks as defined below. :param pulumi.Input[Sequence[pulumi.Input['MobileGatewayStaticRouteArgs']]] static_routes: One or more `static_route` blocks as defined below. :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: Any tags to assign to the MobileGateway. :param pulumi.Input['MobileGatewayTrafficControlArgs'] traffic_control: A `traffic_control` block as defined below. :param pulumi.Input[str] zone: The name of zone that the MobileGateway will be created. (e.g. `is1a`, `tk1a`). Changing this forces a new resource to be created. """ if description is not None: pulumi.set(__self__, "description", description) if dns_servers is not None: pulumi.set(__self__, "dns_servers", dns_servers) if icon_id is not None: pulumi.set(__self__, "icon_id", icon_id) if inter_device_communication is not None: pulumi.set(__self__, "inter_device_communication", inter_device_communication) if internet_connection is not None: pulumi.set(__self__, "internet_connection", internet_connection) if name is not None: pulumi.set(__self__, "name", name) if private_network_interface is not None: pulumi.set(__self__, "private_network_interface", private_network_interface) if public_ip is not None: pulumi.set(__self__, "public_ip", public_ip) if public_netmask is not None: pulumi.set(__self__, "public_netmask", public_netmask) if sim_routes is not None: pulumi.set(__self__, "sim_routes", sim_routes) if sims is not None: pulumi.set(__self__, "sims", sims) if static_routes is not None: pulumi.set(__self__, "static_routes", static_routes) if tags is not None: pulumi.set(__self__, "tags", tags) if traffic_control is not None: pulumi.set(__self__, "traffic_control", traffic_control) if zone is not None: pulumi.set(__self__, "zone", zone) @property @pulumi.getter def description(self) -> Optional[pulumi.Input[str]]: """ The description of the MobileGateway. The length of this value must be in the range [`1`-`512`]. """ return pulumi.get(self, "description") @description.setter def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) @property @pulumi.getter(name="dnsServers") def dns_servers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ A list of IP address used by each connected devices. """ return pulumi.get(self, "dns_servers") @dns_servers.setter def dns_servers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "dns_servers", value) @property @pulumi.getter(name="iconId") def icon_id(self) -> Optional[pulumi.Input[str]]: """ The icon id to attach to the MobileGateway. """ return pulumi.get(self, "icon_id") @icon_id.setter def icon_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "icon_id", value) @property @pulumi.getter(name="interDeviceCommunication") def inter_device_communication(self) -> Optional[pulumi.Input[bool]]: """ The flag to allow communication between each connected devices. """ return pulumi.get(self, "inter_device_communication") @inter_device_communication.setter def inter_device_communication(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "inter_device_communication", value) @property @pulumi.getter(name="internetConnection") def internet_connection(self) -> Optional[pulumi.Input[bool]]: """ The flag to enable connect to the Internet. """ return pulumi.get(self, "internet_connection") @internet_connection.setter def internet_connection(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "internet_connection", value) @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ The name of the MobileGateway. The length of this value must be in the range [`1`-`64`]. """ return pulumi.get(self, "name") @name.setter def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @property @pulumi.getter(name="privateNetworkInterface") def private_network_interface(self) -> Optional[pulumi.Input['MobileGatewayPrivateNetworkInterfaceArgs']]: """ An `private_network_interface` block as defined below. """ return pulumi.get(self, "private_network_interface") @private_network_interface.setter def private_network_interface(self, value: Optional[pulumi.Input['MobileGatewayPrivateNetworkInterfaceArgs']]): pulumi.set(self, "private_network_interface", value) @property @pulumi.getter(name="publicIp") def public_ip(self) -> Optional[pulumi.Input[str]]: """ The public IP address assigned to the MobileGateway. """ return pulumi.get(self, "public_ip") @public_ip.setter def public_ip(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "public_ip", value) @property @pulumi.getter(name="publicNetmask") def public_netmask(self) -> Optional[pulumi.Input[int]]: """ The bit length of the subnet assigned to the MobileGateway. """ return pulumi.get(self, "public_netmask") @public_netmask.setter def public_netmask(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "public_netmask", value) @property @pulumi.getter(name="simRoutes") def sim_routes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MobileGatewaySimRouteArgs']]]]: """ One or more `sim_route` blocks as defined below. """ return pulumi.get(self, "sim_routes") @sim_routes.setter def sim_routes(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MobileGatewaySimRouteArgs']]]]): pulumi.set(self, "sim_routes", value) @property @pulumi.getter def sims(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MobileGatewaySimArgs']]]]: """ One or more `sim` blocks as defined below. """ return pulumi.get(self, "sims") @sims.setter def sims(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MobileGatewaySimArgs']]]]): pulumi.set(self, "sims", value) @property @pulumi.getter(name="staticRoutes") def static_routes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MobileGatewayStaticRouteArgs']]]]: """ One or more `static_route` blocks as defined below. """ return pulumi.get(self, "static_routes") @static_routes.setter def static_routes(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MobileGatewayStaticRouteArgs']]]]): pulumi.set(self, "static_routes", value) @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ Any tags to assign to the MobileGateway. """ return pulumi.get(self, "tags") @tags.setter def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "tags", value) @property @pulumi.getter(name="trafficControl") def traffic_control(self) -> Optional[pulumi.Input['MobileGatewayTrafficControlArgs']]: """ A `traffic_control` block as defined below. """ return pulumi.get(self, "traffic_control") @traffic_control.setter def traffic_control(self, value: Optional[pulumi.Input['MobileGatewayTrafficControlArgs']]): pulumi.set(self, "traffic_control", value) @property @pulumi.getter def zone(self) -> Optional[pulumi.Input[str]]: """ The name of zone that the MobileGateway will be created. (e.g. `is1a`, `tk1a`). Changing this forces a new resource to be created. """ return pulumi.get(self, "zone") @zone.setter def zone(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "zone", value) class MobileGateway(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, description: Optional[pulumi.Input[str]] = None, dns_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, icon_id: Optional[pulumi.Input[str]] = None, inter_device_communication: Optional[pulumi.Input[bool]] = None, internet_connection: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, private_network_interface: Optional[pulumi.Input[pulumi.InputType['MobileGatewayPrivateNetworkInterfaceArgs']]] = None, sim_routes: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MobileGatewaySimRouteArgs']]]]] = None, sims: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MobileGatewaySimArgs']]]]] = None, static_routes: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MobileGatewayStaticRouteArgs']]]]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, traffic_control: Optional[pulumi.Input[pulumi.InputType['MobileGatewayTrafficControlArgs']]] = None, zone: Optional[pulumi.Input[str]] = None, __props__=None): """ Manages a SakuraCloud Mobile Gateway. ## Example Usage ```python import pulumi import pulumi_sakuracloud as sakuracloud zone = sakuracloud.get_zone() foobar_switch = sakuracloud.Switch("foobarSwitch") foobar_mobile_gateway = sakuracloud.MobileGateway("foobarMobileGateway", internet_connection=True, dns_servers=zone.dns_servers, private_network_interface=sakuracloud.MobileGatewayPrivateNetworkInterfaceArgs( switch_id=foobar_switch.id, ip_address="192.168.11.101", netmask=24, ), description="description", tags=[ "tag1", "tag2", ], traffic_control=sakuracloud.MobileGatewayTrafficControlArgs( quota=256, band_width_limit=64, enable_email=True, enable_slack=True, slack_webhook="https://hooks.slack.com/services/xxx/xxx/xxx", auto_traffic_shaping=True, ), static_routes=[ sakuracloud.MobileGatewayStaticRouteArgs( prefix="192.168.10.0/24", next_hop="192.168.11.1", ), sakuracloud.MobileGatewayStaticRouteArgs( prefix="192.168.10.0/25", next_hop="192.168.11.2", ), sakuracloud.MobileGatewayStaticRouteArgs( prefix="192.168.10.0/26", next_hop="192.168.11.3", ), ]) ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] description: The description of the MobileGateway. The length of this value must be in the range [`1`-`512`]. :param pulumi.Input[Sequence[pulumi.Input[str]]] dns_servers: A list of IP address used by each connected devices. :param pulumi.Input[str] icon_id: The icon id to attach to the MobileGateway. :param pulumi.Input[bool] inter_device_communication: The flag to allow communication between each connected devices. :param pulumi.Input[bool] internet_connection: The flag to enable connect to the Internet. :param pulumi.Input[str] name: The name of the MobileGateway. The length of this value must be in the range [`1`-`64`]. :param pulumi.Input[pulumi.InputType['MobileGatewayPrivateNetworkInterfaceArgs']] private_network_interface: An `private_network_interface` block as defined below. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MobileGatewaySimRouteArgs']]]] sim_routes: One or more `sim_route` blocks as defined below. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MobileGatewaySimArgs']]]] sims: One or more `sim` blocks as defined below. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MobileGatewayStaticRouteArgs']]]] static_routes: One or more `static_route` blocks as defined below. :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: Any tags to assign to the MobileGateway. :param pulumi.Input[pulumi.InputType['MobileGatewayTrafficControlArgs']] traffic_control: A `traffic_control` block as defined below. :param pulumi.Input[str] zone: The name of zone that the MobileGateway will be created. (e.g. `is1a`, `tk1a`). Changing this forces a new resource to be created. """ ... @overload def __init__(__self__, resource_name: str, args: MobileGatewayArgs, opts: Optional[pulumi.ResourceOptions] = None): """ Manages a SakuraCloud Mobile Gateway. ## Example Usage ```python import pulumi import pulumi_sakuracloud as sakuracloud zone = sakuracloud.get_zone() foobar_switch = sakuracloud.Switch("foobarSwitch") foobar_mobile_gateway = sakuracloud.MobileGateway("foobarMobileGateway", internet_connection=True, dns_servers=zone.dns_servers, private_network_interface=sakuracloud.MobileGatewayPrivateNetworkInterfaceArgs( switch_id=foobar_switch.id, ip_address="192.168.11.101", netmask=24, ), description="description", tags=[ "tag1", "tag2", ], traffic_control=sakuracloud.MobileGatewayTrafficControlArgs( quota=256, band_width_limit=64, enable_email=True, enable_slack=True, slack_webhook="https://hooks.slack.com/services/xxx/xxx/xxx", auto_traffic_shaping=True, ), static_routes=[ sakuracloud.MobileGatewayStaticRouteArgs( prefix="192.168.10.0/24", next_hop="192.168.11.1", ), sakuracloud.MobileGatewayStaticRouteArgs( prefix="192.168.10.0/25", next_hop="192.168.11.2", ), sakuracloud.MobileGatewayStaticRouteArgs( prefix="192.168.10.0/26", next_hop="192.168.11.3", ), ]) ``` :param str resource_name: The name of the resource. :param MobileGatewayArgs 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(MobileGatewayArgs, 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, description: Optional[pulumi.Input[str]] = None, dns_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, icon_id: Optional[pulumi.Input[str]] = None, inter_device_communication: Optional[pulumi.Input[bool]] = None, internet_connection: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, private_network_interface: Optional[pulumi.Input[pulumi.InputType['MobileGatewayPrivateNetworkInterfaceArgs']]] = None, sim_routes: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MobileGatewaySimRouteArgs']]]]] = None, sims: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MobileGatewaySimArgs']]]]] = None, static_routes: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MobileGatewayStaticRouteArgs']]]]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, traffic_control: Optional[pulumi.Input[pulumi.InputType['MobileGatewayTrafficControlArgs']]] = None, zone: Optional[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__ = MobileGatewayArgs.__new__(MobileGatewayArgs) __props__.__dict__["description"] = description if dns_servers is None and not opts.urn: raise TypeError("Missing required property 'dns_servers'") __props__.__dict__["dns_servers"] = dns_servers __props__.__dict__["icon_id"] = icon_id __props__.__dict__["inter_device_communication"] = inter_device_communication __props__.__dict__["internet_connection"] = internet_connection __props__.__dict__["name"] = name __props__.__dict__["private_network_interface"] = private_network_interface __props__.__dict__["sim_routes"] = sim_routes __props__.__dict__["sims"] = sims __props__.__dict__["static_routes"] = static_routes __props__.__dict__["tags"] = tags __props__.__dict__["traffic_control"] = traffic_control __props__.__dict__["zone"] = zone __props__.__dict__["public_ip"] = None __props__.__dict__["public_netmask"] = None super(MobileGateway, __self__).__init__( 'sakuracloud:index/mobileGateway:MobileGateway', resource_name, __props__, opts) @staticmethod def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, description: Optional[pulumi.Input[str]] = None, dns_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, icon_id: Optional[pulumi.Input[str]] = None, inter_device_communication: Optional[pulumi.Input[bool]] = None, internet_connection: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, private_network_interface: Optional[pulumi.Input[pulumi.InputType['MobileGatewayPrivateNetworkInterfaceArgs']]] = None, public_ip: Optional[pulumi.Input[str]] = None, public_netmask: Optional[pulumi.Input[int]] = None, sim_routes: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MobileGatewaySimRouteArgs']]]]] = None, sims: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MobileGatewaySimArgs']]]]] = None, static_routes: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MobileGatewayStaticRouteArgs']]]]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, traffic_control: Optional[pulumi.Input[pulumi.InputType['MobileGatewayTrafficControlArgs']]] = None, zone: Optional[pulumi.Input[str]] = None) -> 'MobileGateway': """ Get an existing MobileGateway 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] description: The description of the MobileGateway. The length of this value must be in the range [`1`-`512`]. :param pulumi.Input[Sequence[pulumi.Input[str]]] dns_servers: A list of IP address used by each connected devices. :param pulumi.Input[str] icon_id: The icon id to attach to the MobileGateway. :param pulumi.Input[bool] inter_device_communication: The flag to allow communication between each connected devices. :param pulumi.Input[bool] internet_connection: The flag to enable connect to the Internet. :param pulumi.Input[str] name: The name of the MobileGateway. The length of this value must be in the range [`1`-`64`]. :param pulumi.Input[pulumi.InputType['MobileGatewayPrivateNetworkInterfaceArgs']] private_network_interface: An `private_network_interface` block as defined below. :param pulumi.Input[str] public_ip: The public IP address assigned to the MobileGateway. :param pulumi.Input[int] public_netmask: The bit length of the subnet assigned to the MobileGateway. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MobileGatewaySimRouteArgs']]]] sim_routes: One or more `sim_route` blocks as defined below. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MobileGatewaySimArgs']]]] sims: One or more `sim` blocks as defined below. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MobileGatewayStaticRouteArgs']]]] static_routes: One or more `static_route` blocks as defined below. :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: Any tags to assign to the MobileGateway. :param pulumi.Input[pulumi.InputType['MobileGatewayTrafficControlArgs']] traffic_control: A `traffic_control` block as defined below. :param pulumi.Input[str] zone: The name of zone that the MobileGateway will be created. (e.g. `is1a`, `tk1a`). Changing this forces a new resource to be created. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) __props__ = _MobileGatewayState.__new__(_MobileGatewayState) __props__.__dict__["description"] = description __props__.__dict__["dns_servers"] = dns_servers __props__.__dict__["icon_id"] = icon_id __props__.__dict__["inter_device_communication"] = inter_device_communication __props__.__dict__["internet_connection"] = internet_connection __props__.__dict__["name"] = name __props__.__dict__["private_network_interface"] = private_network_interface __props__.__dict__["public_ip"] = public_ip __props__.__dict__["public_netmask"] = public_netmask __props__.__dict__["sim_routes"] = sim_routes __props__.__dict__["sims"] = sims __props__.__dict__["static_routes"] = static_routes __props__.__dict__["tags"] = tags __props__.__dict__["traffic_control"] = traffic_control __props__.__dict__["zone"] = zone return MobileGateway(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter def description(self) -> pulumi.Output[Optional[str]]: """ The description of the MobileGateway. The length of this value must be in the range [`1`-`512`]. """ return pulumi.get(self, "description") @property @pulumi.getter(name="dnsServers") def dns_servers(self) -> pulumi.Output[Sequence[str]]: """ A list of IP address used by each connected devices. """ return pulumi.get(self, "dns_servers") @property @pulumi.getter(name="iconId") def icon_id(self) -> pulumi.Output[Optional[str]]: """ The icon id to attach to the MobileGateway. """ return pulumi.get(self, "icon_id") @property @pulumi.getter(name="interDeviceCommunication") def inter_device_communication(self) -> pulumi.Output[Optional[bool]]: """ The flag to allow communication between each connected devices. """ return pulumi.get(self, "inter_device_communication") @property @pulumi.getter(name="internetConnection") def internet_connection(self) -> pulumi.Output[Optional[bool]]: """ The flag to enable connect to the Internet. """ return pulumi.get(self, "internet_connection") @property @pulumi.getter def name(self) -> pulumi.Output[str]: """ The name of the MobileGateway. The length of this value must be in the range [`1`-`64`]. """ return pulumi.get(self, "name") @property @pulumi.getter(name="privateNetworkInterface") def private_network_interface(self) -> pulumi.Output[Optional['outputs.MobileGatewayPrivateNetworkInterface']]: """ An `private_network_interface` block as defined below. """ return pulumi.get(self, "private_network_interface") @property @pulumi.getter(name="publicIp") def public_ip(self) -> pulumi.Output[str]: """ The public IP address assigned to the MobileGateway. """ return pulumi.get(self, "public_ip") @property @pulumi.getter(name="publicNetmask") def public_netmask(self) -> pulumi.Output[int]: """ The bit length of the subnet assigned to the MobileGateway. """ return pulumi.get(self, "public_netmask") @property @pulumi.getter(name="simRoutes") def sim_routes(self) -> pulumi.Output[Optional[Sequence['outputs.MobileGatewaySimRoute']]]: """ One or more `sim_route` blocks as defined below. """ return pulumi.get(self, "sim_routes") @property @pulumi.getter def sims(self) -> pulumi.Output[Optional[Sequence['outputs.MobileGatewaySim']]]: """ One or more `sim` blocks as defined below. """ return pulumi.get(self, "sims") @property @pulumi.getter(name="staticRoutes") def static_routes(self) -> pulumi.Output[Optional[Sequence['outputs.MobileGatewayStaticRoute']]]: """ One or more `static_route` blocks as defined below. """ return pulumi.get(self, "static_routes") @property @pulumi.getter def tags(self) -> pulumi.Output[Optional[Sequence[str]]]: """ Any tags to assign to the MobileGateway. """ return pulumi.get(self, "tags") @property @pulumi.getter(name="trafficControl") def traffic_control(self) -> pulumi.Output[Optional['outputs.MobileGatewayTrafficControl']]: """ A `traffic_control` block as defined below. """ return pulumi.get(self, "traffic_control") @property @pulumi.getter def zone(self) -> pulumi.Output[str]: """ The name of zone that the MobileGateway will be created. (e.g. `is1a`, `tk1a`). Changing this forces a new resource to be created. """ return pulumi.get(self, "zone")
47.42741
171
0.654806
4,537
40,835
5.689002
0.055764
0.106544
0.089807
0.062958
0.918911
0.905312
0.891558
0.882376
0.875983
0.855527
0
0.007173
0.235288
40,835
860
172
47.482558
0.819387
0.32122
0
0.828025
1
0
0.14356
0.075734
0
0
0
0
0
1
0.165605
false
0.002123
0.014862
0
0.280255
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
5c22b108db3e9cfff8d59630d27fcb86a8bae1bc
169
py
Python
synth/synth_part_builder/__init__.py
jmgindi/synth
7ec29a36e95fd50a2ec6342e877c0fea71815962
[ "MIT" ]
11
2019-06-13T19:10:04.000Z
2022-01-21T21:27:56.000Z
synth/synth_part_builder/__init__.py
jmgindi/synth
7ec29a36e95fd50a2ec6342e877c0fea71815962
[ "MIT" ]
5
2019-08-21T00:51:47.000Z
2022-02-12T12:16:40.000Z
synth/synth_part_builder/__init__.py
jmgindi/synth
7ec29a36e95fd50a2ec6342e877c0fea71815962
[ "MIT" ]
3
2019-06-14T21:27:28.000Z
2021-03-20T23:20:16.000Z
#!/usr/bin/env python3 """init for partbuilder module """ from part_builder.part_exception import PartBuilderException from part_builder.part_builder import PartBuilder
28.166667
60
0.83432
22
169
6.227273
0.636364
0.240876
0.218978
0.277372
0
0
0
0
0
0
0
0.006494
0.088757
169
5
61
33.8
0.883117
0.289941
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
0
0
0
7
30904989a42c0aef4a6e1b797ac3e99a82f5f7b7
6,746
py
Python
code/models/mrc.py
bflashcp3f/ProcBERT
72afe18ac30825e1756672235e1369aa8837e62a
[ "MIT" ]
8
2021-09-19T21:42:03.000Z
2021-12-17T06:17:13.000Z
code/models/mrc.py
bflashcp3f/ProcBERT
72afe18ac30825e1756672235e1369aa8837e62a
[ "MIT" ]
null
null
null
code/models/mrc.py
bflashcp3f/ProcBERT
72afe18ac30825e1756672235e1369aa8837e62a
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import torch import torch.nn as nn from transformers import BertTokenizer, BertModel, BertPreTrainedModel, AdamW, BertConfig, BertForSequenceClassification from transformers import RobertaTokenizer, RobertaModel, RobertaConfig, RobertaForSequenceClassification from keras.preprocessing.sequence import pad_sequences from torch.nn import CrossEntropyLoss, MSELoss class BertMRC(BertPreTrainedModel): config_class = BertConfig def __init__(self, config): super(BertMRC, self).__init__(config) self.num_labels = config.num_labels self.hidden_size = config.hidden_size self.bert = BertModel(config) self.dropout = nn.Dropout(config.hidden_dropout_prob) # self.classifier = nn.Linear(config.hidden_size, self.config.num_labels) self.classifier = nn.Linear(config.hidden_size, self.config.num_labels) self.init_weights() def forward(self, input_ids, token_type_ids=None, attention_mask=None, labels=None, position_ids=None, head_mask=None, cls_pos=None): # print("input_ids.size(): ", input_ids.size()) # print("attention_mask.size(): ", attention_mask.size()) # print("labels.size(): ", labels.size()) # print("cls_pos.size(): ", cls_pos.size()) # Get the embedding for paraphrase # outputs = self.bert(input_ids[:, 0, :], attention_mask=attention_mask[:, 0, :]) outputs = self.bert(input_ids, attention_mask=attention_mask) # outputs = self.bert(input_ids_new, attention_mask=attention_mask_new) sequence_output = outputs[0] pooled_output = outputs[1] # print("sequence_output.size(): ", sequence_output.size()) # print("pooled_output.size(): ", pooled_output.size()) # # print("sequence_output[0][5]: ", sequence_output[0][5]) # print("sequence_output[0][23]: ", sequence_output[0][23]) # print("sequence_output[0][31]: ", sequence_output[0][31]) # print("cls_pos: ", cls_pos) # Take select the representation from coresponding index cls_output = torch.cat([torch.index_select(a, 0, i).unsqueeze(0) for a, i in zip(sequence_output, cls_pos)]) # print("cls_output.size()", cls_output.size()) # print("cls_output: ", cls_output) cls_output = self.dropout(cls_output) logits = self.classifier(cls_output) outputs = (logits,) + outputs[2:] # add hidden states and attention if they are here # print("logits.size(): ", logits.size()) # print("labels.size(): ", labels.size()) # # print("logits: ", logits) # print("labels: ", labels) # # print("logits.view(-1, self.num_labels): ", logits.view(-1, self.num_labels)) # print("labels.view(-1, 1): ", labels.view(-1, 1)) # print("labels.view(-1): ", labels.view(-1)) if labels is not None: if self.num_labels == 1: # We are doing regression loss_fct = MSELoss() loss = loss_fct(logits.view(-1), labels.view(-1)) else: loss_fct = CrossEntropyLoss() loss = loss_fct(logits.view(-1, self.num_labels), labels.view(-1)) outputs = (loss,) + outputs # print("outputs: ", outputs) return outputs # (loss), logits, (hidden_states), (attentions) # class RobertaMRC(RobertaPreTrainedModel): class RobertaMRC(BertPreTrainedModel): config_class = RobertaConfig # pretrained_model_archive_map = ROBERTA_PRETRAINED_MODEL_ARCHIVE_MAP base_model_prefix = "roberta" def __init__(self, config): super(RobertaMRC, self).__init__(config) self.num_labels = config.num_labels self.hidden_size = config.hidden_size self.roberta = RobertaModel(config) self.dropout = nn.Dropout(config.hidden_dropout_prob) # self.classifier = nn.Linear(config.hidden_size, self.config.num_labels) self.classifier = nn.Linear(config.hidden_size, self.config.num_labels) self.init_weights() def forward(self, input_ids, token_type_ids=None, attention_mask=None, labels=None, position_ids=None, head_mask=None, cls_pos=None): # print("input_ids.size(): ", input_ids.size()) # print("attention_mask.size(): ", attention_mask.size()) # print("labels.size(): ", labels.size()) # print("cls_pos.size(): ", cls_pos.size()) # Get the embedding for paraphrase # outputs = self.bert(input_ids[:, 0, :], attention_mask=attention_mask[:, 0, :]) outputs = self.roberta(input_ids, attention_mask=attention_mask) # outputs = self.bert(input_ids_new, attention_mask=attention_mask_new) sequence_output = outputs[0] pooled_output = outputs[1] # print("sequence_output.size(): ", sequence_output.size()) # print("pooled_output.size(): ", pooled_output.size()) # # print("sequence_output[0][5]: ", sequence_output[0][5]) # print("sequence_output[0][23]: ", sequence_output[0][23]) # print("sequence_output[0][31]: ", sequence_output[0][31]) # print("cls_pos: ", cls_pos) # Take select the representation from coresponding index cls_output = torch.cat([torch.index_select(a, 0, i).unsqueeze(0) for a, i in zip(sequence_output, cls_pos)]) # print("cls_output.size()", cls_output.size()) # print("cls_output: ", cls_output) cls_output = self.dropout(cls_output) logits = self.classifier(cls_output) outputs = (logits,) + outputs[2:] # add hidden states and attention if they are here # print("logits.size(): ", logits.size()) # print("labels.size(): ", labels.size()) # # print("logits: ", logits) # print("labels: ", labels) # # print("logits.view(-1, self.num_labels): ", logits.view(-1, self.num_labels)) # print("labels.view(-1, 1): ", labels.view(-1, 1)) # print("labels.view(-1): ", labels.view(-1)) if labels is not None: if self.num_labels == 1: # We are doing regression loss_fct = MSELoss() loss = loss_fct(logits.view(-1), labels.view(-1)) else: loss_fct = CrossEntropyLoss() loss = loss_fct(logits.view(-1, self.num_labels), labels.view(-1)) outputs = (loss,) + outputs # print("outputs: ", outputs) return outputs # (loss), logits, (hidden_states), (attentions)
40.39521
120
0.618292
794
6,746
5.036524
0.139798
0.070018
0.045011
0.028507
0.837209
0.825206
0.825206
0.825206
0.825206
0.825206
0
0.014148
0.245627
6,746
166
121
40.638554
0.771664
0.414023
0
0.735294
0
0
0.001805
0
0
0
0
0
0
1
0.058824
false
0
0.102941
0
0.264706
0.014706
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
a5109f084d3fc8b8d829707e7bb06540d5c11a37
128
py
Python
python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_0/_pkg0_0_1/_pkg0_0_1_1/_pkg0_0_1_1_1/_mod0_0_1_1_1_0.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_0/_pkg0_0_1/_pkg0_0_1_1/_pkg0_0_1_1_1/_mod0_0_1_1_1_0.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_0/_pkg0_0_1/_pkg0_0_1_1/_pkg0_0_1_1_1/_mod0_0_1_1_1_0.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
name0_0_1_1_1_0_0 = None name0_0_1_1_1_0_1 = None name0_0_1_1_1_0_2 = None name0_0_1_1_1_0_3 = None name0_0_1_1_1_0_4 = None
14.222222
24
0.820313
40
128
1.875
0.175
0.266667
0.466667
0.533333
0.88
0.88
0.746667
0
0
0
0
0.318182
0.140625
128
9
25
14.222222
0.363636
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
1
null
1
1
1
1
1
1
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
10
a515761982fe0d42449f9cba1199af4a8c3f9010
104
py
Python
rcnn_dff/symbol/__init__.py
tonysy/mx-rcnn-flow
b78c3c964c802bb874d673170d7452e7a573a998
[ "Apache-2.0" ]
2
2018-01-31T02:47:42.000Z
2019-07-05T03:48:54.000Z
rcnn_dff/symbol/__init__.py
tonysy/mx-rcnn-flow
b78c3c964c802bb874d673170d7452e7a573a998
[ "Apache-2.0" ]
null
null
null
rcnn_dff/symbol/__init__.py
tonysy/mx-rcnn-flow
b78c3c964c802bb874d673170d7452e7a573a998
[ "Apache-2.0" ]
null
null
null
from symbol_vgg import * from symbol_resnet import * from symbol_pva import * from symbol_enet import *
20.8
27
0.807692
16
104
5
0.4375
0.5
0.6
0
0
0
0
0
0
0
0
0
0.153846
104
4
28
26
0.909091
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
eb69e1f89f81a6d89c4e947f62f95d7b24404bb7
14
py
Python
testenv/nihao.py
halon1989/halontest
97600528d1933c836263458952ca3eae617749f3
[ "MIT" ]
null
null
null
testenv/nihao.py
halon1989/halontest
97600528d1933c836263458952ca3eae617749f3
[ "MIT" ]
null
null
null
testenv/nihao.py
halon1989/halontest
97600528d1933c836263458952ca3eae617749f3
[ "MIT" ]
null
null
null
a = 10 bb=20
3.5
6
0.5
4
14
1.75
1
0
0
0
0
0
0
0
0
0
0
0.444444
0.357143
14
3
7
4.666667
0.333333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
eb766d74912d48c472051e0f76a02e55a397ea2c
7,065
py
Python
src/bpp/tests/test_selenium/test_admin/test_change_form_pbn_isbn_doi_etc.py
iplweb/django-bpp
85f183a99d8d5027ae4772efac1e4a9f21675849
[ "BSD-3-Clause" ]
1
2017-04-27T19:50:02.000Z
2017-04-27T19:50:02.000Z
src/bpp/tests/test_selenium/test_admin/test_change_form_pbn_isbn_doi_etc.py
mpasternak/django-bpp
434338821d5ad1aaee598f6327151aba0af66f5e
[ "BSD-3-Clause" ]
41
2019-11-07T00:07:02.000Z
2022-02-27T22:09:39.000Z
src/bpp/tests/test_selenium/test_admin/test_change_form_pbn_isbn_doi_etc.py
iplweb/bpp
f027415cc3faf1ca79082bf7bacd4be35b1a6fdf
[ "BSD-3-Clause" ]
null
null
null
import time import pytest from django.urls import reverse from selenium.common.exceptions import NoAlertPresentException from selenium.webdriver.common.keys import Keys from fixtures import pbn_pageable_json, pbn_publication_json from pbn_api.client import PBN_GET_PUBLICATION_BY_ID_URL, PBN_SEARCH_PUBLICATIONS_URL from pbn_api.models import Publication from pbn_api.models.publication import STATUS_ACTIVE from bpp.tests import ( proper_click_element, rozwin_ekstra_informacje_na_stronie_edycji_wydawnictwa, ) from django_bpp.selenium_util import VERY_SHORT_WAIT_TIME, wait_for_page_load @pytest.mark.parametrize("field_name", ["isbn", "e_isbn"]) def test_change_form_get_pbn_by_isbn_or_eisbn_via_api_pub_jest_w_api( admin_browser, asgi_live_server, field_name, pbn_serwer, ): url = reverse("admin:bpp_wydawnictwo_zwarte_add") with wait_for_page_load(admin_browser): admin_browser.visit(asgi_live_server.url + url) ROK = "2222" ISBN = "123" UID_REKORDU = "aosidjfoasidjfasdfghjksl" rozwin_ekstra_informacje_na_stronie_edycji_wydawnictwa(admin_browser) pub1 = pbn_publication_json(ROK, mongoId=UID_REKORDU, isbn=ISBN) pbn_serwer.expect_request(PBN_SEARCH_PUBLICATIONS_URL).respond_with_json( pbn_pageable_json([pub1]) ) pbn_serwer.expect_request( PBN_GET_PUBLICATION_BY_ID_URL.format(id=UID_REKORDU) ).respond_with_json(pub1) admin_browser.find_by_id("id_tytul_oryginalny").fill("nie istotny") admin_browser.find_by_id("id_rok").fill(ROK) admin_browser.find_by_id(f"id_{field_name}").fill(ISBN) if not admin_browser.find_by_id("id_isbn_pbn_get"): raise Exception("Nie mozna znalexc elementu") btn = admin_browser.find_by_id("id_isbn_pbn_get") proper_click_element(admin_browser, btn) time.sleep(VERY_SHORT_WAIT_TIME) admin_browser.switch_to.active_element.send_keys(Keys.ENTER) time.sleep(VERY_SHORT_WAIT_TIME) assert admin_browser.find_by_id("id_pbn_uid").value == UID_REKORDU @pytest.mark.parametrize("field_name", ["isbn", "e_isbn"]) def test_change_form_get_pbn_by_isbn_or_eisbn_via_api_pub_jest_w_lokalnej_bazie( admin_browser, asgi_live_server, field_name, pbn_serwer, transactional_db ): url = reverse("admin:bpp_wydawnictwo_zwarte_add") with wait_for_page_load(admin_browser): admin_browser.visit(asgi_live_server.url + url) ROK = "2222" ISBN = "123" UID_REKORDU = "aosidjfoasidjfasdfghjksl" try: pub = Publication.objects.create( mongoId=UID_REKORDU, verificationLevel="moze", verified=True, status=STATUS_ACTIVE, versions=[ { "current": True, "object": {"year": ROK, "isbn": ISBN, "title": "Ten tego"}, } ], ) rozwin_ekstra_informacje_na_stronie_edycji_wydawnictwa(admin_browser) pbn_serwer.expect_request(PBN_SEARCH_PUBLICATIONS_URL).respond_with_json( pbn_pageable_json([]) ) admin_browser.find_by_id("id_tytul_oryginalny").fill("nie istotny") admin_browser.find_by_id("id_rok").fill(ROK) admin_browser.find_by_id(f"id_{field_name}").fill(ISBN) if not admin_browser.find_by_id("id_isbn_pbn_get"): raise Exception("Nie mozna znalexc elementu") btn = admin_browser.find_by_id("id_isbn_pbn_get") proper_click_element(admin_browser, btn) time.sleep(VERY_SHORT_WAIT_TIME) admin_browser.switch_to.active_element.send_keys(Keys.ENTER) assert admin_browser.find_by_id("id_pbn_uid").value == UID_REKORDU finally: pub.delete() @pytest.mark.parametrize("wydawnictwo", ["wydawnictwo_ciagle", "wydawnictwo_zwarte"]) def test_change_form_get_pbn_by_doi_via_api_jest_w_api( admin_browser, asgi_live_server, wydawnictwo, pbn_serwer ): url = reverse(f"admin:bpp_{wydawnictwo}_add") with wait_for_page_load(admin_browser): admin_browser.visit(asgi_live_server.url + url) ROK = "2222" DOI = "123" UID_REKORDU = "aosidjfoasidjfasdfghjksl" pub1 = pbn_publication_json(ROK, mongoId=UID_REKORDU, doi=DOI) pbn_serwer.expect_request(PBN_SEARCH_PUBLICATIONS_URL).respond_with_json( pbn_pageable_json([pub1]) ) pbn_serwer.expect_request( PBN_GET_PUBLICATION_BY_ID_URL.format(id=UID_REKORDU) ).respond_with_json(pub1) rozwin_ekstra_informacje_na_stronie_edycji_wydawnictwa(admin_browser) admin_browser.find_by_id("id_tytul_oryginalny").fill("nie istotny") admin_browser.find_by_id("id_rok").fill(ROK) admin_browser.find_by_id("id_doi").fill(DOI) if not admin_browser.find_by_id("id_doi_pbn_get"): raise Exception("Nie mozna znalexc elementu") btn = admin_browser.find_by_id("id_doi_pbn_get") proper_click_element(admin_browser, btn) time.sleep(VERY_SHORT_WAIT_TIME) with pytest.raises(NoAlertPresentException): admin_browser.driver.switch_to.alert admin_browser.switch_to.active_element.send_keys(Keys.ENTER) assert admin_browser.find_by_id("id_pbn_uid").value == UID_REKORDU @pytest.mark.parametrize("wydawnictwo", ["wydawnictwo_ciagle", "wydawnictwo_zwarte"]) def test_change_form_get_pbn_by_doi_via_api_nie_ma_w_api_jest_w_bazie( admin_browser, asgi_live_server, wydawnictwo, pbn_serwer, transactional_db ): url = reverse(f"admin:bpp_{wydawnictwo}_add") with wait_for_page_load(admin_browser): admin_browser.visit(asgi_live_server.url + url) ROK = "2222" DOI = "123" UID_REKORDU = "aosidjfoasidjfasdfghjksl" try: res = Publication.objects.create( mongoId=UID_REKORDU, verificationLevel="moze", verified=True, status="ACTIVE", versions=[ { "current": True, "object": {"year": ROK, "doi": DOI, "title": "Ten tego"}, } ], ) pbn_serwer.expect_request(PBN_SEARCH_PUBLICATIONS_URL).respond_with_json( pbn_pageable_json([]) ) rozwin_ekstra_informacje_na_stronie_edycji_wydawnictwa(admin_browser) admin_browser.find_by_id("id_tytul_oryginalny").fill("nie istotny") admin_browser.find_by_id("id_rok").fill(ROK) admin_browser.find_by_id("id_doi").fill(DOI) if not admin_browser.find_by_id("id_doi_pbn_get"): raise Exception("Nie mozna znalexc elementu") btn = admin_browser.find_by_id("id_doi_pbn_get") proper_click_element(admin_browser, btn) time.sleep(VERY_SHORT_WAIT_TIME) with pytest.raises(NoAlertPresentException): admin_browser.driver.switch_to.alert time.sleep(VERY_SHORT_WAIT_TIME) admin_browser.switch_to.active_element.send_keys(Keys.ENTER) time.sleep(VERY_SHORT_WAIT_TIME) assert admin_browser.find_by_id("id_pbn_uid").value == UID_REKORDU finally: res.delete()
33.483412
85
0.715499
946
7,065
4.890063
0.143763
0.129702
0.083009
0.093385
0.887808
0.886511
0.872676
0.8623
0.80415
0.759187
0
0.00595
0.191224
7,065
210
86
33.642857
0.80364
0
0
0.71519
0
0
0.127813
0.03029
0
0
0
0
0.025316
1
0.025316
false
0
0.06962
0
0.094937
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
eba32ddd74021e2a41be35286b0789db2be4765a
2,349
py
Python
Svaston.py
Krukov9/SVASTON
5239a6f8710773aa3ebf084558f4dc5fde73f13f
[ "Apache-2.0" ]
null
null
null
Svaston.py
Krukov9/SVASTON
5239a6f8710773aa3ebf084558f4dc5fde73f13f
[ "Apache-2.0" ]
null
null
null
Svaston.py
Krukov9/SVASTON
5239a6f8710773aa3ebf084558f4dc5fde73f13f
[ "Apache-2.0" ]
null
null
null
print(""" __ (_ _. _ _|_ _ ._ __) \/ (_| _> |_ (_) | | """) print("[1].Построить член") while 1 == 1: choose = input(">>>") if choose == "1": print("[1].построить один раз") print("[2].авто постройка") while 1 == 1: choose = input(">>>") if choose == "1": import pyautogui import time time.sleep(5) pyautogui.click(button='right') pyautogui.keyDown("D") time.sleep(0.25) pyautogui.keyUp("D") pyautogui.click(button='right') time.sleep(0.25) pyautogui.keyDown("A") time.sleep(0.10) pyautogui.keyUp("A") pyautogui.click(button='right') pyautogui.keyDown("Space") time.sleep(0.10) pyautogui.keyUp("Space") pyautogui.click(button='right') pyautogui.keyDown("Space") time.sleep(0.10) pyautogui.keyUp("Space") pyautogui.click(button='right') print("[Penis.minecraft]Succesfully") if choose == "2": import pyautogui import time time.sleep(5) while 1 == 1: pyautogui.click(button='right') pyautogui.keyDown("D") time.sleep(0.25) pyautogui.keyUp("D") pyautogui.click(button='right') time.sleep(0.25) pyautogui.keyDown("A") time.sleep(0.10) pyautogui.keyUp("A") pyautogui.click(button='right') pyautogui.keyDown("Space") time.sleep(0.10) pyautogui.keyUp("Space") pyautogui.click(button='right') pyautogui.keyDown("Space") time.sleep(0.10) pyautogui.keyUp("Space") pyautogui.click(button='right') print("[Penis.minecraft]Succesfully") pyautogui.keyDown("D") time.sleep(1) pyautogui.keyUp("D")
37.285714
57
0.417199
195
2,349
4.948718
0.164103
0.121244
0.207254
0.259067
0.899482
0.872539
0.872539
0.8
0.744041
0.744041
0
0.035239
0.456364
2,349
62
58
37.887097
0.720439
0
0
0.868852
0
0
0.130268
0.02384
0
0
0
0
0
1
0
false
0
0.065574
0
0.065574
0.098361
0
0
0
null
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
ccdcb4e63ae0fef6a1244484f2fdec664c9f896b
6,002
py
Python
tests/osd/test_sine_square.py
bmeyers/optimal-signal-decomposition
14376d38e3b2965e0ccdaf4a8a1c3683697c146c
[ "BSD-3-Clause" ]
9
2022-02-22T00:43:12.000Z
2022-03-20T22:00:43.000Z
tests/osd/test_sine_square.py
cvxgrp/signal-decomposition
14376d38e3b2965e0ccdaf4a8a1c3683697c146c
[ "BSD-3-Clause" ]
1
2022-02-04T21:28:55.000Z
2022-02-04T21:28:55.000Z
tests/osd/test_sine_square.py
cvxgrp/signal-decomposition
14376d38e3b2965e0ccdaf4a8a1c3683697c146c
[ "BSD-3-Clause" ]
null
null
null
import unittest import numpy as np from scipy import signal from osd import Problem from osd.classes import ( MeanSquareSmall, SmoothSecondDifference, SparseFirstDiffConvex ) rms = lambda x: np.sqrt(np.average(np.power(x, 2))) VERBOSE = False class TestSineSquare(unittest.TestCase): def test_cvx(self): y, X_real = make_data() T = len(y) c1 = MeanSquareSmall(size=T) c2 = SmoothSecondDifference(weight=1e3 / T) c3 = SparseFirstDiffConvex(weight=2e0 / T, vmax=1, vmin=-1) classes = [c1, c2, c3] problem1 = Problem(y, classes) problem1.decompose(how='cvx', verbose=VERBOSE) opt_obj_val = problem1.objective_value np.testing.assert_(np.isclose(problem1.problem.value, opt_obj_val)) np.testing.assert_(opt_obj_val <= 0.096) np.testing.assert_(rms(problem1.components[0] - X_real[0]) <= 0.1) np.testing.assert_(rms(problem1.components[1] - X_real[1]) <= 0.21) np.testing.assert_(rms(problem1.components[2] - X_real[2]) <= 0.25) def test_admm(self): y, X_real = make_data() T = len(y) c1 = MeanSquareSmall(size=T) c2 = SmoothSecondDifference(weight=1e3 / T) c3 = SparseFirstDiffConvex(weight=2e0 / T, vmax=1, vmin=-1) classes = [c1, c2, c3] problem1 = Problem(y, classes) problem1.decompose(how='admm', verbose=VERBOSE) opt_obj_val = problem1.objective_value np.testing.assert_(opt_obj_val <= 0.096) np.testing.assert_(rms(problem1.components[0] - X_real[0]) <= 0.1) np.testing.assert_(rms(problem1.components[1] - X_real[1]) <= 0.21) np.testing.assert_( rms(problem1.components[2] - X_real[2]) <= 0.252, 'actual value: {:.3e}'.format( rms(problem1.components[2] - X_real[2])) ) def test_bcd(self): y, X_real = make_data() T = len(y) c1 = MeanSquareSmall(size=T) c2 = SmoothSecondDifference(weight=1e3 / T) c3 = SparseFirstDiffConvex(weight=2e0 / T, vmax=1, vmin=-1) classes = [c1, c2, c3] problem1 = Problem(y, classes) problem1.decompose(how='bcd', verbose=VERBOSE) opt_obj_val = problem1.objective_value np.testing.assert_(opt_obj_val <= 0.096) np.testing.assert_(rms(problem1.components[0] - X_real[0]) <= 0.1) np.testing.assert_(rms(problem1.components[1] - X_real[1]) <= 0.23) np.testing.assert_(rms(problem1.components[2] - X_real[2]) <= 0.27) class TestSineSquareMasked(unittest.TestCase): def test_cvx(self): y, X_real = make_masked_data() T = len(y) c1 = MeanSquareSmall(size=T) c2 = SmoothSecondDifference(weight=1e3 / T) c3 = SparseFirstDiffConvex(weight=2e0 / T, vmax=1, vmin=-1) classes = [c1, c2, c3] problem1 = Problem(y, classes) problem1.decompose(how='cvx', verbose=VERBOSE) opt_obj_val = problem1.objective_value np.testing.assert_(opt_obj_val <= 0.081) rms1 = rms(problem1.components[0, problem1.use_set] - X_real[0, problem1.use_set]) rms2 =rms(problem1.components[1, problem1.use_set] - X_real[1, problem1.use_set]) rms3 = rms(problem1.components[2, problem1.use_set] - X_real[2, problem1.use_set]) np.testing.assert_(rms1 <= 0.14) np.testing.assert_(rms2 <= 1.04) np.testing.assert_(rms3 <= 0.81) def test_admm(self): y, X_real = make_masked_data() T = len(y) c1 = MeanSquareSmall(size=T) c2 = SmoothSecondDifference(weight=1e3 / T) c3 = SparseFirstDiffConvex(weight=2e0 / T, vmax=1, vmin=-1) classes = [c1, c2, c3] problem1 = Problem(y, classes) problem1.decompose(how='admm', verbose=VERBOSE) opt_obj_val = problem1.objective_value np.testing.assert_(opt_obj_val <= 0.081) rms1 = rms(problem1.components[0, problem1.use_set] - X_real[0, problem1.use_set]) rms2 = rms(problem1.components[1, problem1.use_set] - X_real[1, problem1.use_set]) rms3 = rms(problem1.components[2, problem1.use_set] - X_real[2, problem1.use_set]) np.testing.assert_(rms1 <= 0.14) np.testing.assert_(rms2 <= 1.04) np.testing.assert_(rms3 <= 0.81) def test_bcd(self): y, X_real = make_masked_data() T = len(y) c1 = MeanSquareSmall(size=T) c2 = SmoothSecondDifference(weight=1e3 / T) c3 = SparseFirstDiffConvex(weight=2e0 / T, vmax=1, vmin=-1) classes = [c1, c2, c3] problem1 = Problem(y, classes) problem1.decompose(how='bcd', verbose=VERBOSE) opt_obj_val = problem1.objective_value np.testing.assert_(opt_obj_val <= 0.081) rms1 = rms(problem1.components[0, problem1.use_set] - X_real[0, problem1.use_set]) rms2 = rms(problem1.components[1, problem1.use_set] - X_real[1, problem1.use_set]) rms3 = rms(problem1.components[2, problem1.use_set] - X_real[2, problem1.use_set]) np.testing.assert_(rms1 <= 0.14) np.testing.assert_(rms2 <= 1.04) np.testing.assert_(rms3 <= 0.81) def make_masked_data(): y, X_real = make_data() y[55:90] = np.nan y[270:360] = np.nan X_real[:, np.isnan(y)] = np.nan return y, X_real def make_data(): """ a sine wave plus a square wave at a different frequency, and Gaussian noise """ np.random.seed(42) t = np.linspace(0, 1000, 200) signal1 = np.sin(2 * np.pi * t * 1 / (500.)) signal2 = signal.square(2 * np.pi * t * 1 / (450.)) X_real = np.zeros((3, len(t)), dtype=float) X_real[0] = 0.15 * np.random.randn(len(signal1)) X_real[1] = signal1 X_real[2] = signal2 y = np.sum(X_real, axis=0) return y, X_real
39.748344
79
0.6008
816
6,002
4.262255
0.145833
0.048879
0.107821
0.046578
0.820299
0.812248
0.812248
0.804198
0.796147
0.796147
0
0.06913
0.264912
6,002
151
80
39.748344
0.719175
0.012496
0
0.731884
0
0
0.006766
0
0
0
0
0
0.181159
1
0.057971
false
0
0.036232
0
0.123188
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
690c5e60189789fd2806f48675587fc6d24fe440
116
py
Python
python-scripts/tools/animate/__init__.py
matt-frey/epic
954ebc44f2c041eee98bd14e22a85540a0c6c4bb
[ "BSD-3-Clause" ]
15
2021-11-11T10:50:14.000Z
2022-03-25T00:11:41.000Z
python-scripts/tools/animate/__init__.py
matt-frey/epic
954ebc44f2c041eee98bd14e22a85540a0c6c4bb
[ "BSD-3-Clause" ]
47
2021-11-12T17:09:56.000Z
2022-03-24T16:50:58.000Z
python-scripts/tools/animate/__init__.py
matt-frey/epic
954ebc44f2c041eee98bd14e22a85540a0c6c4bb
[ "BSD-3-Clause" ]
null
null
null
from tools.animate.parcel_animation import * try: from tools.animate.bokeh_animation import * except: pass
16.571429
47
0.758621
15
116
5.733333
0.666667
0.209302
0.372093
0
0
0
0
0
0
0
0
0
0.172414
116
6
48
19.333333
0.895833
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.2
0.4
0
0.4
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
1
1
0
0
0
0
7
6933480a44d3b022502624de6a33edadee1a73c5
7,065
py
Python
app/forms.py
Gorgoras/Flask-Azure-Wrapper
56177bc3cb45d602eec3f98f8e2a3a975fe72c42
[ "bzip2-1.0.6", "MIT" ]
null
null
null
app/forms.py
Gorgoras/Flask-Azure-Wrapper
56177bc3cb45d602eec3f98f8e2a3a975fe72c42
[ "bzip2-1.0.6", "MIT" ]
null
null
null
app/forms.py
Gorgoras/Flask-Azure-Wrapper
56177bc3cb45d602eec3f98f8e2a3a975fe72c42
[ "bzip2-1.0.6", "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField, SubmitField, SelectField from wtforms.validators import DataRequired from flask import session class LoginForm(FlaskForm): username = StringField('Username', validators=[DataRequired()]) password = PasswordField('Password', validators=[DataRequired()]) submit = SubmitField('Sign In') class CreateResGroupForm(FlaskForm): rg_name = StringField('Resource Group Name') subscriptionID = StringField('SubscriptionId') region = SelectField('Region', choices=[('eastasia','East Asia'), ('southeastasia','Southeast Asia'), ('centralus','Central US'), ('eastus','East US'), ('eastus2','East US 2'), ('westus','West US'), ('northcentralus','North Central US'), ('southcentralus','South Central US'), ('northeurope','North Europe'), ('westeurope','West Europe'), ('japanwest','Japan West'), ('japaneast','Japan East'), ('brazilsouth','Brazil South'), ('australiaeast','Australia East'), ('australiasoutheast','Australia Southeast'), ('southindia','South India'), ('centralindia','Central India'), ('westindia','West India'), ('canadacentral','Canada Central'), ('canadaeast','Canada East'), ('uksouth','UK South'), ('ukwest','UK West'), ('westcentralus','West Central US'), ('westus2','West US 2'), ('koreacentral','Korea Central'), ('koreasouth','Korea South'), ('francecentral','France Central'), ('francesouth','France South'), ('australiacentral','Australia Central'), ('australiacentral2','Australia Central 2'), ('uaecentral','UAE Central'), ('uaenorth','UAE North'), ('southafricanorth','South Africa North'), ('southafricawest','South Africa West')]) submit = SubmitField('Create Resource Group!') class CreateSqlServerForm(FlaskForm): rg_name = SelectField('Resource Group Name') subscriptionID = StringField('SubscriptionId') sql_svname = StringField('Sql Server Name') admin_user = StringField('Admin Username') admin_pass = PasswordField('Admin Password') sql_dbname = StringField('Database Name') submit = SubmitField('Create Sql Server!') region = SelectField('Region', choices=[('eastasia','East Asia'), ('southeastasia','Southeast Asia'), ('centralus','Central US'), ('eastus','East US'), ('eastus2','East US 2'), ('westus','West US'), ('northcentralus','North Central US'), ('southcentralus','South Central US'), ('northeurope','North Europe'), ('westeurope','West Europe'), ('japanwest','Japan West'), ('japaneast','Japan East'), ('brazilsouth','Brazil South'), ('australiaeast','Australia East'), ('australiasoutheast','Australia Southeast'), ('southindia','South India'), ('centralindia','Central India'), ('westindia','West India'), ('canadacentral','Canada Central'), ('canadaeast','Canada East'), ('uksouth','UK South'), ('ukwest','UK West'), ('westcentralus','West Central US'), ('westus2','West US 2'), ('koreacentral','Korea Central'), ('koreasouth','Korea South'), ('francecentral','France Central'), ('francesouth','France South'), ('australiacentral','Australia Central'), ('australiacentral2','Australia Central 2'), ('uaecentral','UAE Central'), ('uaenorth','UAE North'), ('southafricanorth','South Africa North'), ('southafricawest','South Africa West')]) class CreateDataFactoryForm(FlaskForm): subscriptionID = StringField('SubscriptionId') rg_name = SelectField('Resource Group Name') datafactoryName = StringField('Data Factory Name') submit = SubmitField('Create Data Factory!') region = SelectField('Region', choices=[('eastasia','East Asia'), ('southeastasia','Southeast Asia'), ('centralus','Central US'), ('eastus','East US'), ('eastus2','East US 2'), ('westus','West US'), ('northcentralus','North Central US'), ('southcentralus','South Central US'), ('northeurope','North Europe'), ('westeurope','West Europe'), ('japanwest','Japan West'), ('japaneast','Japan East'), ('brazilsouth','Brazil South'), ('australiaeast','Australia East'), ('australiasoutheast','Australia Southeast'), ('southindia','South India'), ('centralindia','Central India'), ('westindia','West India'), ('canadacentral','Canada Central'), ('canadaeast','Canada East'), ('uksouth','UK South'), ('ukwest','UK West'), ('westcentralus','West Central US'), ('westus2','West US 2'), ('koreacentral','Korea Central'), ('koreasouth','Korea South'), ('francecentral','France Central'), ('francesouth','France South'), ('australiacentral','Australia Central'), ('australiacentral2','Australia Central 2'), ('uaecentral','UAE Central'), ('uaenorth','UAE North'), ('southafricanorth','South Africa North'), ('southafricawest','South Africa West')]) class CreateStorageAccountForm(FlaskForm): rg_name = SelectField('Resource Group Name') subscriptionID = StringField('SubscriptionId') storageName = StringField('Storage Account Name') submit = SubmitField('Create Storage Account!') region = SelectField('Region', choices=[('eastasia','East Asia'), ('southeastasia','Southeast Asia'), ('centralus','Central US'), ('eastus','East US'), ('eastus2','East US 2'), ('westus','West US'), ('northcentralus','North Central US'), ('southcentralus','South Central US'), ('northeurope','North Europe'), ('westeurope','West Europe'), ('japanwest','Japan West'), ('japaneast','Japan East'), ('brazilsouth','Brazil South'), ('australiaeast','Australia East'), ('australiasoutheast','Australia Southeast'), ('southindia','South India'), ('centralindia','Central India'), ('westindia','West India'), ('canadacentral','Canada Central'), ('canadaeast','Canada East'), ('uksouth','UK South'), ('ukwest','UK West'), ('westcentralus','West Central US'), ('westus2','West US 2'), ('koreacentral','Korea Central'), ('koreasouth','Korea South'), ('francecentral','France Central'), ('francesouth','France South'), ('australiacentral','Australia Central'), ('australiacentral2','Australia Central 2'), ('uaecentral','UAE Central'), ('uaenorth','UAE North'), ('southafricanorth','South Africa North'), ('southafricawest','South Africa West')])
40.83815
86
0.595188
594
7,065
7.063973
0.170034
0.034318
0.016206
0.028599
0.802669
0.802669
0.78122
0.78122
0.78122
0.78122
0
0.004391
0.226327
7,065
172
87
41.075581
0.763264
0
0
0.861446
0
0
0.496461
0
0
0
0
0
0
1
0
false
0.018072
0.024096
0
0.204819
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
15f64153b7f4f9ce79c7f81c028ea0de1ac1970d
122
py
Python
cloudslang-runtime/src/main/resources/scripts/check_empty.py
srinisubramanian/cloud-slang
132e03bb5e06d161f81e1ad2561a2c57f30befd1
[ "ECL-2.0", "Apache-2.0" ]
215
2015-03-24T09:29:46.000Z
2022-03-06T00:10:22.000Z
cloudslang-runtime/src/main/resources/scripts/check_empty.py
srinisubramanian/cloud-slang
132e03bb5e06d161f81e1ad2561a2c57f30befd1
[ "ECL-2.0", "Apache-2.0" ]
752
2015-03-23T11:05:50.000Z
2022-03-31T18:36:09.000Z
cloudslang-runtime/src/main/resources/scripts/check_empty.py
srinisubramanian/cloud-slang
132e03bb5e06d161f81e1ad2561a2c57f30befd1
[ "ECL-2.0", "Apache-2.0" ]
94
2015-03-24T09:32:16.000Z
2021-12-22T03:20:23.000Z
def check_empty(value_to_check, default_value=None): return default_value if value_to_check is None else value_to_check
40.666667
68
0.852459
22
122
4.318182
0.5
0.221053
0.378947
0
0
0
0
0
0
0
0
0
0.106557
122
2
69
61
0.87156
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
7
c6160d9b57ab63cc4fea483dd42452ea17e98673
15,078
py
Python
src/functions.py
s231644/DerivBaseRu
0f246dc0ba7886e5dca76ab9a730b2a4a9995ae2
[ "Apache-2.0" ]
2
2019-05-07T15:24:35.000Z
2021-02-25T22:50:11.000Z
src/functions.py
s231644/DerivBaseRu
0f246dc0ba7886e5dca76ab9a730b2a4a9995ae2
[ "Apache-2.0" ]
null
null
null
src/functions.py
s231644/DerivBaseRu
0f246dc0ba7886e5dca76ab9a730b2a4a9995ae2
[ "Apache-2.0" ]
null
null
null
from typing import List, Set, Tuple, Dict all_pos = {'noun', 'adj', 'adj*', 'verb', 'adv', 'num'} paired = {'б', 'п', 'м', 'в', 'ф', 'д', 'т', 'з', 'с', 'н', 'л', 'р'} velar = {'г', 'к', 'х'} sh_hard = {'ш', 'ж'} sh_soft = {'щ', 'ч'} voiced = {'б', 'м', 'в', 'д', 'з', 'н', 'л', 'р', 'г', 'ж'} unvoiced = {'п', 'ф', 'т', 'с', 'к', 'х', 'ш', 'ч', 'щ', 'ц'} plt_pairs = ({('к', 'ч'), ('г', 'ж'), ('х', 'ш')}) inv_plt_pairs = ({('ч', 'к'), ('ж', 'г'), ('ш', 'х')}) plt5_pairs = ({('ц', 'ч')}) inv_plt5_pairs = ({('ч', 'ц')}) alt7_pairs = ({('е', 'о')}) altcons_pairs = ({('б', 'бл'), ('п', 'пл'), ('в', 'вл'), ('ф', 'фл'), ('м', 'мл'), ('з', 'ж'), ('с', 'ш'), ('д', 'ж'), ('т', 'ч'), ('т', 'щ'), ('ст', 'щ'), ('к', 'ч'), ('г', 'ж'), ('х', 'ш'), ('ск', 'щ')}) inv_altcons_pairs = ({('бл', 'б'), ('пл', 'п'), ('вл', 'в'), ('фл', 'ф'), ('мл', 'м'), ('ж', 'з'), ('ш', 'с'), ('ж', 'д'), ('ч', 'т'), ('щ', 'т'), ('щ', 'ст'), ('ч', 'к'), ('ж', 'г'), ('ш', 'х'), ('щ', 'ск')}) vowels = {'а', 'о', 'у', 'ы', 'и', 'э', 'я', 'ё', 'ю', 'е'} double_vowels = {'я', 'ё', 'ю', 'е'} sh = sh_hard | sh_soft consonants = paired | velar | sh_hard | sh_soft morphobad = velar | sh_hard | sh_soft | {'ц'} all_letters = consonants | vowels | {'ъ', 'ь'} def nochange(word: str, args: Set[str], mode='do'): return [word] def onlysfx(word: str, args: Set[str], mode='do'): sfx_b_ = args possible_results = list() for sfx_b in sfx_b_: if mode == 'do': if word.endswith(sfx_b): possible_results.append(word) else: possible_results.append(word) return possible_results def excsfx(word: str, args: Set[str], mode='do'): sfx_b_ = args possible_results = list() counter = 0 for sfx_b in sfx_b_: if mode == 'do': if word.endswith(sfx_b): continue else: counter += 1 else: possible_results.append(word) if counter == len(sfx_b_): possible_results.append(word) return possible_results def replsfx(word: str, args: Set[Tuple[str, str]], mode='do'): pairs = args possible_results = list() if mode == 'do': for sfx_b, sfx_a in pairs: if word.endswith(sfx_b): # возможно изменение -> изменяем possible_word = word[:-len(sfx_b)] + sfx_a possible_results.append(possible_word) elif mode == 'try': counter = 0 for sfx_b, sfx_a in pairs: if word.endswith(sfx_b): counter += 1 # возможно изменение -> изменяем possible_word = word[:-len(sfx_b)] + sfx_a possible_results.append(possible_word) if counter == 0: # невозможно изменение -> не страшно possible_results.append(word) elif mode == 'opt': for sfx_b, sfx_a in pairs: if word.endswith(sfx_b): # возможно изменение -> изменяем или не изменяем possible_word = word[:-len(sfx_b)] + sfx_a possible_results.append(possible_word) possible_results.append(word) return possible_results def addsfx(word: str, args: Set[str], mode='do'): sfx_a_ = args possible_results = list() for sfx_a in sfx_a_: possible_word = word + sfx_a possible_results.append(possible_word) if mode == 'opt': possible_results.append(word) return possible_results def delsfx(word: str, args: Set[str], mode='do'): sfx_b_ = args possible_results = list() if mode == 'do': for sfx_b in sfx_b_: if word.endswith(sfx_b): # возможно изменение -> изменяем w_a = word[:-len(sfx_b)] possible_word = w_a possible_results.append(possible_word) elif mode == 'try': for sfx_b in sfx_b_: if word.endswith(sfx_b): # возможно изменение -> изменяем w_a = word[:-len(sfx_b)] possible_word = w_a possible_results.append(possible_word) # невозможно изменение -> не страшно if not possible_results: w_a = word possible_word = w_a possible_results.append(possible_word) elif mode == 'opt': for sfx_b in sfx_b_: if word.endswith(sfx_b): # возможно изменение -> изменяем или не изменяем w_a = word[:-len(sfx_b)] possible_word = w_a possible_results.append(possible_word) w_a = word possible_word = w_a possible_results.append(possible_word) return possible_results def del_n(word: str, args: Set[str], mode='do'): # разнообразн|ый -> разнообраз|ить if len(word) < 3 or word[-1] != 'н' or word[-2] in vowels: if mode == 'do': return [] else: return [word] w_a = word[:-1] if w_a.endswith('ь'): w_a = w_a[:-1] if mode == 'opt': return [word, w_a] else: return [w_a] def del_k(word: str, args: Set[str], mode='do'): # крепк|ий -> креп|ить if len(word) < 3 or word[-1] != 'к' or word[-2] in vowels: if mode == 'do': return [] else: return [word] w_a = word[:-1] if w_a.endswith('ь'): w_a = w_a[:-1] if mode == 'opt': return [word, w_a] else: return [w_a] def atleast3(word: str, args: Set[str], mode='do'): # ! п|ировать -> п|ант # эмигр|ировать -> эмигр|ант if len(word) < 3: if mode == 'do': return [] else: return [word] def uppercase(word: str, args: Set[str], mode='do'): w_a = word[0].upper() + word[1:] if mode == 'opt': return [w_a, word] else: return [w_a] def lowercase(word: str, args: Set[str], mode='do'): w_a = word.lower() if mode == 'opt': return [w_a, word] else: return [w_a] def delptfx(word: str, args: Set[str], mode='do'): return delsfx(word, {'ся', 'сь'}, mode) def delvowel(word: str, args: Set[str], mode='do'): if len(word) < 3: if mode == 'do': return [] else: return [word] possible_results = list() if mode == 'do': if word[-2] in {'о', 'е'} and word[-3] in consonants: # возможно изменение -> изменяем w_a = word[:-2] if w_a.endswith('л'): w_a += 'ь' possible_word = w_a + word[-1] possible_results.append(possible_word) elif mode == 'try': if word[-2] in {'о', 'е'} and word[-3] in consonants: # возможно изменение -> изменяем w_a = word[:-2] if w_a.endswith('л'): w_a += 'ь' possible_word = w_a + word[-1] possible_results.append(possible_word) else: # невозможно изменение -> не страшно w_a = word possible_word = w_a possible_results.append(possible_word) elif mode == 'opt': if word[-2] in {'о', 'е'} and word[-3] in consonants: # возможно изменение -> изменяем w_a = word[:-2] if w_a.endswith('л'): w_a += 'ь' possible_word = w_a + word[-1] possible_results.append(possible_word) w_a = word possible_word = w_a possible_results.append(possible_word) return possible_results def addvowel(word: str, args: Set[str], mode='do'): if len(word) < 3: if mode == 'do': return [] else: return [word] possible_results = list() w_a = word[:-1] if w_a[-1] == 'ь': w_a = w_a[:-1] if w_a[-1] == 'й': possible_word = w_a[:-1] + 'е' + word[-1] possible_results.append(possible_word) elif w_a[-1] in consonants: for add_vowel in {'о', 'е'}: possible_word = w_a + add_vowel + word[-1] possible_results.append(possible_word) if mode == 'opt' or (mode == 'try' and not possible_results): w_a = word possible_word = w_a possible_results.append(possible_word) return possible_results def plt(word: str, args: Set[str], mode='do'): return replsfx(word, plt_pairs, mode) def inv_plt(word: str, args: Set[str], mode='do'): return replsfx(word, inv_plt_pairs, mode) def plt5(word: str, args: Set[str], mode='do'): return replsfx(word, plt5_pairs, mode) def inv_plt5(word: str, args: Set[str], mode='do'): return replsfx(word, inv_plt5_pairs, mode) def altcons(word: str, args: Set[str], mode='do'): return replsfx(word, altcons_pairs, mode) def inv_altcons(word: str, args: Set[str], mode='do'): return replsfx(word, inv_altcons_pairs, mode) def l_soft(word: str, args: Set[str], mode='do'): return replsfx(word, ({('л', 'ль')}), mode) def l_hard(word: str, args: Set[str], mode='do'): return replsfx(word, ({('ль', 'л')}), mode) def alt_a(word: str, args: Set[str], mode='do'): # выкорм|ить -> выкарм|ливать possible_results = list() if mode == 'opt': possible_results.append(word) for i in range(len(word) - 1, -1, -1): if word[i] == 'о': w_a = word[:i] + 'а' + word[i + 1:] possible_word = w_a possible_results.append(possible_word) return possible_results if mode == 'try': possible_results.append(word) return possible_results def alt7(word: str, args: Set[str], mode='do'): # вывести -> вывод possible_results = list() if mode == 'opt': possible_results.append(word) for i in range(len(word) - 1, -1, -1): if word[i] == 'е': w_a = word[:i] + 'о' + word[i + 1:] possible_word = w_a possible_results.append(possible_word) return possible_results if mode == 'try': possible_results.append(word) return possible_results def alt_pfx(word: str, args: Set[str], mode='do'): possible_results = list() if mode == 'opt': possible_results.append(word) if word[0] == 'и': w_a = 'ы' + word[1:] possible_word = w_a possible_results.append(possible_word) elif word[0] in double_vowels: w_a = 'ъ' + word possible_word = w_a possible_results.append(possible_word) else: possible_results.append(word) return possible_results def alt_pfxi(word: str, args: Set[str], mode='do'): possible_results = list() if mode == 'opt': possible_results.append(word) if word[0] in double_vowels: w_a = 'ъ' + word possible_word = w_a possible_results.append(possible_word) else: possible_results.append(word) return possible_results def ins_pfx(word: str, args: Set[str], mode='do'): # only for prefixes like из, раз, без, ... possible_results = list() pfx_a = list(args)[0] if mode == 'opt': possible_results.append(word) if pfx_a.endswith('з'): if word[0] in unvoiced: w_a = pfx_a[:-1] + 'с' + word possible_word = w_a possible_results.append(possible_word) else: w_a = pfx_a + word possible_word = w_a possible_results.append(possible_word) return possible_results else: if mode == 'do': return possible_results else: possible_results.append(word) return possible_results def addpfx(word: str, args: Set[str], mode='do'): pfx_a_ = args possible_results = list() w_a = word for pfx_a in pfx_a_: possible_word = pfx_a + w_a possible_results.append(possible_word) if mode == 'opt': w_a = word possible_word = w_a possible_results.append(possible_word) return possible_results def replpfx(word: str, args: Set[Tuple[str, str]], mode='do'): pairs = args possible_results = list() if mode == 'do': for pair in pairs: pfx_b, pfx_a = pair if word[:len(pfx_b)] == pfx_b: # возможно изменение -> изменяем w_a = word[len(pfx_b):] possible_word = pfx_a + w_a possible_results.append(possible_word) elif mode == 'try': counter = 0 for pair in pairs: pfx_b, pfx_a = pair if word[:len(pfx_b)] == pfx_b: counter += 1 # возможно изменение -> изменяем w_a = word[len(pfx_b):] possible_word = pfx_a + w_a possible_results.append(possible_word) if counter == 0: # невозможно изменение -> не страшно w_a = word possible_word = w_a possible_results.append(possible_word) elif mode == 'opt': for pair in pairs: pfx_b, pfx_a = pair if word[:len(pfx_b)] == pfx_b: # возможно изменение -> изменяем или не изменяем w_a = word[len(pfx_b):] possible_word = pfx_a + w_a possible_results.append(possible_word) w_a = word possible_word = w_a possible_results.append(possible_word) return possible_results def soft(word: str, args: Set[str], mode='do'): possible_results = list() w_a = word possible_word = w_a + 'ь' possible_results.append(possible_word) if mode == 'opt': w_a = word possible_word = w_a possible_results.append(possible_word) return possible_results def hard(word: str, args: Set[str], mode='do'): possible_results = list() w_a = word if w_a.endswith('ь'): possible_word = w_a[:-1] possible_results.append(possible_word) elif mode == 'try': possible_results.append(word) if mode == 'opt': w_a = word possible_word = w_a possible_results.append(possible_word) return possible_results def excpfx(word: str, args: Set[str], mode='do'): pfx_b_ = args possible_results = list() counter = 0 for pfx_b in pfx_b_: if mode == 'do': if word[:len(pfx_b)] == pfx_b: continue else: counter += 1 else: possible_results.append(word) if counter == len(pfx_b_): possible_results.append(word) return possible_results def onlypfx(word: str, args: Set[str], mode='do'): pfx_b_ = args possible_results = list() for pfx_b in pfx_b_: if mode == 'do': if word[:len(pfx_b)] == pfx_b: possible_results.append(word) else: possible_results.append(word) return possible_results
27.315217
118
0.530176
2,003
15,078
3.790814
0.082876
0.195575
0.157645
0.133676
0.853549
0.842091
0.824575
0.80245
0.745555
0.711576
0
0.006858
0.323053
15,078
551
119
27.364791
0.737043
0.049542
0
0.75
0
0
0.02684
0
0
0
0
0
0
1
0.0825
false
0
0.0025
0.025
0.21
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
c61cee7a660b8d8cd8119fdf8ee808876400a7aa
174
py
Python
first_django_project/first_django_project/views.py
ArRosid/Django-Article
92bfb1047b734ac1627ab17163d4d077ed0d2c44
[ "MIT" ]
null
null
null
first_django_project/first_django_project/views.py
ArRosid/Django-Article
92bfb1047b734ac1627ab17163d4d077ed0d2c44
[ "MIT" ]
null
null
null
first_django_project/first_django_project/views.py
ArRosid/Django-Article
92bfb1047b734ac1627ab17163d4d077ed0d2c44
[ "MIT" ]
null
null
null
from django.http import HttpResponse def home(request): return HttpResponse("<h1>This is Home</h1>") def about_me(request): return HttpResponse("<h1>About Me</h1>")
24.857143
48
0.718391
25
174
4.96
0.56
0.209677
0.403226
0.435484
0
0
0
0
0
0
0
0.026667
0.137931
174
7
49
24.857143
0.8
0
0
0
0
0
0.217143
0
0
0
0
0
0
1
0.4
false
0
0.2
0.4
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
1
0
0
0
1
0
0
0
7
c648ce23be3e5633b12a9387c675c23960fbfa22
131
py
Python
app/efubot/utils.py
ammar369/RM-Automation-Py
da74345b7bdfd53dcb29b64595f259ed8f8c0e13
[ "Apache-2.0" ]
null
null
null
app/efubot/utils.py
ammar369/RM-Automation-Py
da74345b7bdfd53dcb29b64595f259ed8f8c0e13
[ "Apache-2.0" ]
null
null
null
app/efubot/utils.py
ammar369/RM-Automation-Py
da74345b7bdfd53dcb29b64595f259ed8f8c0e13
[ "Apache-2.0" ]
null
null
null
from selenium.webdriver.common.by import By def form_xpath_locator_class(xpath_string: str): return (By.XPATH, xpath_string)
21.833333
48
0.793893
20
131
4.95
0.7
0.222222
0
0
0
0
0
0
0
0
0
0
0.122137
131
5
49
26.2
0.86087
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
7
c6561c4feebd8920296686b7bc72d904e0307747
112,270
py
Python
NearBeach/migrations/0001_initial.py
undecidedzogvisvitalispotent8stars360/CoralCoastProjectManagementApp
c32ef80cc395dab0268637f43eb2f4016395d715
[ "MIT" ]
1
2022-02-09T10:39:02.000Z
2022-02-09T10:39:02.000Z
NearBeach/migrations/0001_initial.py
ANANTASHESHALOKAGREENTARAEGPTRANSHOLON/CoralCoastProjectManagementApp
c32ef80cc395dab0268637f43eb2f4016395d715
[ "MIT" ]
null
null
null
NearBeach/migrations/0001_initial.py
ANANTASHESHALOKAGREENTARAEGPTRANSHOLON/CoralCoastProjectManagementApp
c32ef80cc395dab0268637f43eb2f4016395d715
[ "MIT" ]
1
2022-02-09T10:39:05.000Z
2022-02-09T10:39:05.000Z
# Generated by Django 3.0.5 on 2020-10-05 13:08 import NearBeach.private_media from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='campus', fields=[ ('campus_id', models.AutoField(primary_key=True, serialize=False)), ('campus_nickname', models.CharField(max_length=100)), ('campus_phone', models.CharField(max_length=20, null=True)), ('campus_fax', models.CharField(max_length=20, null=True)), ('campus_address1', models.CharField(max_length=255, null=True)), ('campus_address2', models.CharField(max_length=255, null=True)), ('campus_address3', models.CharField(max_length=255, null=True)), ('campus_suburb', models.CharField(max_length=50)), ('campus_postcode', models.CharField( blank=True, max_length=10, null=True)), ('campus_longitude', models.DecimalField( blank=True, decimal_places=13, max_digits=16, null=True)), ('campus_latitude', models.DecimalField( blank=True, decimal_places=13, max_digits=16, null=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ], options={ 'db_table': 'campus', }, ), migrations.CreateModel( name='customer', fields=[ ('customer_id', models.AutoField( primary_key=True, serialize=False)), ('customer_first_name', models.CharField(max_length=50)), ('customer_last_name', models.CharField(max_length=50)), ('customer_email', models.CharField(max_length=200)), ('customer_profile_picture', models.ImageField( blank=True, null=True, upload_to='profile_pictures')), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='customer_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'customer', }, ), migrations.CreateModel( name='document', fields=[ ('document_key', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('document_description', models.CharField(max_length=255)), ('document_url_location', models.TextField(blank=True, null=True)), ('document', models.FileField(blank=True, null=True, storage=NearBeach.private_media.File_Storage(), upload_to='')), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default='FALSE')), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='document_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'document', }, ), migrations.CreateModel( name='group', fields=[ ('group_id', models.AutoField(primary_key=True, serialize=False)), ('group_name', models.CharField(max_length=50)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='group_change_user', to=settings.AUTH_USER_MODEL)), ('parent_group', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.group')), ], options={ 'db_table': 'group', }, ), migrations.CreateModel( name='kanban_board', fields=[ ('kanban_board_id', models.AutoField( primary_key=True, serialize=False)), ('kanban_board_name', models.CharField(max_length=255)), ('kanban_board_status', models.CharField(choices=[ ('Open', 'Open'), ('Closed', 'Closed')], default='Open', max_length=10)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default='FALSE')), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='kanban_board_change_user', to=settings.AUTH_USER_MODEL)), ('creation_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='kanban_board_creation_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'kanban_board', }, ), migrations.CreateModel( name='kanban_card', fields=[ ('kanban_card_id', models.AutoField( primary_key=True, serialize=False)), ('kanban_card_text', models.CharField(max_length=255)), ('kanban_card_sort_number', models.IntegerField()), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default='FALSE')), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='kanban_card_change_user', to=settings.AUTH_USER_MODEL)), ('kanban_board', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.kanban_board')), ], options={ 'db_table': 'kanban_card', }, ), migrations.CreateModel( name='list_of_amount_type', fields=[ ('amount_type_id', models.AutoField( primary_key=True, serialize=False)), ('amount_type_description', models.CharField(max_length=20)), ('list_order', models.IntegerField(unique=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='list_of_amount_type_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'list_of_amount_type', 'ordering': ['list_order'], }, ), migrations.CreateModel( name='list_of_country', fields=[ ('country_id', models.CharField( max_length=2, primary_key=True, serialize=False)), ('country_name', models.CharField(max_length=50)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='list_of_country_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'list_of_country', }, ), migrations.CreateModel( name='list_of_currency', fields=[ ('currency_id', models.AutoField( primary_key=True, serialize=False)), ('currency_description', models.CharField(max_length=20)), ('currency_short_description', models.CharField(max_length=4)), ('list_order', models.IntegerField(unique=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='list_of_currency_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'list_of_currency', }, ), migrations.CreateModel( name='list_of_lead_source', fields=[ ('lead_source_id', models.AutoField( primary_key=True, serialize=False)), ('lead_source_description', models.CharField(max_length=20)), ('list_order', models.IntegerField(unique=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='list_of_lead_source_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'list_of_lead_source', }, ), migrations.CreateModel( name='list_of_opportunity_stage', fields=[ ('opportunity_stage_id', models.AutoField( primary_key=True, serialize=False)), ('opportunity_stage_description', models.CharField(max_length=50)), ('probability_success', models.DecimalField( decimal_places=0, max_digits=3)), ('list_order', models.IntegerField(unique=True)), ('opportunity_closed', models.BooleanField(default=False)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='list_of_opportunity_stage_change_user', to=settings.AUTH_USER_MODEL)), ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'list_of_opportunity_stage', 'ordering': ['list_order'], }, ), migrations.CreateModel( name='list_of_quote_stage', fields=[ ('sort_order', models.IntegerField( auto_created=True, unique=True)), ('quote_stage_id', models.AutoField( primary_key=True, serialize=False)), ('quote_stage', models.CharField(max_length=50, unique=True)), ('is_invoice', models.BooleanField(default=False)), ('quote_closed', models.BooleanField(default=False)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='list_of_quote_stage_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'list_of_quote_stage', }, ), migrations.CreateModel( name='list_of_requirement_item_status', fields=[ ('requirement_item_status_id', models.AutoField( primary_key=True, serialize=False)), ('requirement_item_status', models.CharField(max_length=100)), ('status_is_closed', models.BooleanField(default=False)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='list_of_requirement_item_status_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'list_of_requirement_item_status', }, ), migrations.CreateModel( name='list_of_requirement_item_type', fields=[ ('requirement_item_type_id', models.AutoField( primary_key=True, serialize=False)), ('requirement_item_type', models.CharField(max_length=100)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='list_of_requirement_item_type_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'list_of_requirement_item_type', }, ), migrations.CreateModel( name='list_of_requirement_status', fields=[ ('requirement_status_id', models.AutoField( primary_key=True, serialize=False)), ('requirement_status', models.CharField(max_length=50)), ('requirement_status_is_closed', models.BooleanField(default=False)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='list_of_requirement_status_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'list_of_requirement_status', }, ), migrations.CreateModel( name='list_of_requirement_type', fields=[ ('requirement_type_id', models.AutoField( primary_key=True, serialize=False)), ('requirement_type', models.CharField(max_length=100)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='list_of_requirement_type_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'list_of_requirement_type', }, ), migrations.CreateModel( name='list_of_tax', fields=[ ('tax_id', models.AutoField(primary_key=True, serialize=False)), ('tax_amount', models.DecimalField( decimal_places=4, max_digits=6)), ('tax_description', models.CharField( blank=True, max_length=50, null=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='list_of_tax_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'list_of_tax', }, ), migrations.CreateModel( name='opportunity', fields=[ ('opportunity_id', models.AutoField( primary_key=True, serialize=False)), ('opportunity_name', models.CharField(max_length=255)), ('opportunity_description', models.TextField( verbose_name='oppertunity_description')), ('opportunity_amount', models.DecimalField( decimal_places=2, max_digits=12)), ('opportunity_expected_close_date', models.DateTimeField()), ('opportunity_success_probability', models.IntegerField()), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('amount_type', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.list_of_amount_type')), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='opportunity_change_user', to=settings.AUTH_USER_MODEL)), ('creation_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='opportunity_creation_user', to=settings.AUTH_USER_MODEL)), ('currency', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.list_of_currency')), ('lead_source', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.list_of_lead_source')), ('opportunity_stage', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.list_of_opportunity_stage')), ('user_id', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'opportunities', }, ), migrations.CreateModel( name='organisation', fields=[ ('organisation_id', models.AutoField( primary_key=True, serialize=False)), ('organisation_name', models.CharField(max_length=255)), ('organisation_website', models.CharField(max_length=50)), ('organisation_email', models.CharField(max_length=100)), ('organisation_profile_picture', models.ImageField( blank=True, null=True, upload_to='')), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='organisation_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'organisation', }, ), migrations.CreateModel( name='permission_set', fields=[ ('permission_set_id', models.AutoField( primary_key=True, serialize=False)), ('permission_set_name', models.CharField(max_length=255)), ('administration_assign_user_to_group', models.IntegerField(choices=[(0, 'No Permission'), ( 1, 'Read Only'), (2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('administration_create_group', models.IntegerField(choices=[(0, 'No Permission'), ( 1, 'Read Only'), (2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('administration_create_permission_set', models.IntegerField(choices=[(0, 'No Permission'), ( 1, 'Read Only'), (2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('administration_create_user', models.IntegerField(choices=[(0, 'No Permission'), ( 1, 'Read Only'), (2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('assign_campus_to_customer', models.IntegerField(choices=[(0, 'No Permission'), ( 1, 'Read Only'), (2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('associate_project_and_task', models.IntegerField(choices=[(0, 'No Permission'), ( 1, 'Read Only'), (2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('bug', models.IntegerField(choices=[(0, 'No Permission'), (1, 'Read Only'), ( 2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('bug_client', models.IntegerField(choices=[(0, 'No Permission'), (1, 'Read Only'), ( 2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('email', models.IntegerField(choices=[(0, 'No Permission'), (1, 'Read Only'), ( 2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('invoice', models.IntegerField(choices=[(0, 'No Permission'), (1, 'Read Only'), ( 2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('invoice_product', models.IntegerField(choices=[(0, 'No Permission'), (1, 'Read Only'), ( 2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('customer', models.IntegerField(choices=[(0, 'No Permission'), (1, 'Read Only'), ( 2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('kanban', models.IntegerField(choices=[(0, 'No Permission'), (1, 'Read Only'), ( 2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('kanban_card', models.IntegerField(choices=[(0, 'No Permission'), (1, 'Read Only'), ( 2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('opportunity', models.IntegerField(choices=[(0, 'No Permission'), (1, 'Read Only'), ( 2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('organisation', models.IntegerField(choices=[(0, 'No Permission'), (1, 'Read Only'), ( 2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('organisation_campus', models.IntegerField(choices=[(0, 'No Permission'), (1, 'Read Only'), ( 2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('project', models.IntegerField(choices=[(0, 'No Permission'), (1, 'Read Only'), ( 2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('quote', models.IntegerField(choices=[(0, 'No Permission'), (1, 'Read Only'), ( 2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('request_for_change', models.IntegerField(choices=[(0, 'No Permission'), (1, 'Read Only'), ( 2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('requirement', models.IntegerField(choices=[(0, 'No Permission'), (1, 'Read Only'), ( 2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('requirement_link', models.IntegerField(choices=[(0, 'No Permission'), (1, 'Read Only'), ( 2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('tag', models.IntegerField(choices=[(0, 'No Permission'), (1, 'Read Only'), ( 2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('task', models.IntegerField(choices=[(0, 'No Permission'), (1, 'Read Only'), ( 2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('tax', models.IntegerField(choices=[(0, 'No Permission'), (1, 'Read Only'), ( 2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('template', models.IntegerField(choices=[(0, 'No Permission'), (1, 'Read Only'), ( 2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('whiteboard', models.IntegerField(choices=[(0, 'No Permission'), (1, 'Read Only'), ( 2, 'Edit Only'), (3, 'Add and Edit'), (4, 'Full Permission')], default=0)), ('document', models.IntegerField(choices=[ (0, 'No Permission'), (1, 'Has Permission')], default=0)), ('contact_history', models.IntegerField(choices=[ (0, 'No Permission'), (1, 'Has Permission')], default=0)), ('kanban_comment', models.IntegerField(choices=[ (0, 'No Permission'), (1, 'Has Permission')], default=0)), ('project_history', models.IntegerField(choices=[ (0, 'No Permission'), (1, 'Has Permission')], default=0)), ('task_history', models.IntegerField(choices=[ (0, 'No Permission'), (1, 'Has Permission')], default=0)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='permission_set_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'permission_set', }, ), migrations.CreateModel( name='product_and_service', fields=[ ('product_id', models.AutoField(primary_key=True, serialize=False)), ('product_or_service', models.CharField(choices=[ ('Product', 'Product'), ('Service', 'Service')], max_length=7)), ('product_name', models.CharField(max_length=100, unique=True)), ('product_part_number', models.CharField( blank=True, max_length=100, null=True)), ('product_cost', models.DecimalField( decimal_places=2, max_digits=19)), ('product_price', models.DecimalField( decimal_places=2, max_digits=19)), ('product_description', models.TextField(blank=True, null=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='product_and_service_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'product_and_service', }, ), migrations.CreateModel( name='project', fields=[ ('project_id', models.AutoField(primary_key=True, serialize=False)), ('project_name', models.CharField(max_length=255)), ('project_description', models.TextField( verbose_name='project_description')), ('project_start_date', models.DateTimeField()), ('project_end_date', models.DateTimeField()), ('project_status', models.CharField(choices=[('Backlog', 'Backlog'), ('Blocked', 'Blocked'), ( 'In Progress', 'In Progress'), ('Test/Review', 'Test/Review'), ('Closed', 'Closed')], default='New', max_length=15)), ('project_story_point_min', models.IntegerField(default=1)), ('project_story_point_max', models.IntegerField(default=4)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='project_change_user', to=settings.AUTH_USER_MODEL)), ('creation_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='project_creation_user', to=settings.AUTH_USER_MODEL)), ('customer', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.customer')), ('organisation', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.organisation')), ], options={ 'db_table': 'project', }, ), migrations.CreateModel( name='quote', fields=[ ('quote_id', models.AutoField(primary_key=True, serialize=False)), ('quote_uuid', models.UUIDField( default=uuid.uuid4, editable=False, unique=True)), ('quote_title', models.CharField(max_length=255)), ('quote_valid_till', models.DateTimeField()), ('is_invoice', models.BooleanField(default=False)), ('quote_terms', models.TextField(blank=True, null=True)), ('customer_notes', models.TextField(blank=True, null=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='quote_change_user', to=settings.AUTH_USER_MODEL)), ('creation_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='quote_creation_user', to=settings.AUTH_USER_MODEL)), ('customer', models.ForeignKey(blank=True, db_column='customer_id', null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.customer')), ('opportunity', models.ForeignKey(blank=True, db_column='opportunity_id', null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.opportunity')), ('organisation', models.ForeignKey(blank=True, db_column='organisation_id', null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.organisation')), ('project', models.ForeignKey(blank=True, db_column='project_id', null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.project')), ('quote_billing_address', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.campus')), ('quote_stage', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.list_of_quote_stage')), ], options={ 'db_table': 'quote', }, ), migrations.CreateModel( name='request_for_change', fields=[ ('rfc_id', models.AutoField(primary_key=True, serialize=False)), ('rfc_title', models.CharField(max_length=255)), ('rfc_summary', models.TextField(verbose_name='rfc_summary')), ('rfc_type', models.IntegerField(choices=[ (4, 'Emergency'), (3, 'High'), (2, 'Medium'), (1, 'Low')])), ('rfc_implementation_start_date', models.DateTimeField()), ('rfc_implementation_end_date', models.DateTimeField()), ('rfc_implementation_release_date', models.DateTimeField()), ('rfc_version_number', models.CharField( blank=True, max_length=25, null=True)), ('rfc_status', models.IntegerField(choices=[(1, 'Draft'), (2, 'Waiting for approval'), ( 3, 'Approved'), (4, 'Started'), (5, 'Finished'), (6, 'Rejected')])), ('rfc_priority', models.IntegerField(choices=[ (4, 'Critical'), (3, 'High'), (2, 'Medium'), (1, 'Low')], default=1)), ('rfc_risk', models.IntegerField(choices=[ (5, 'Very High'), (4, 'High'), (3, 'Moderate'), (2, 'Low'), (1, 'None')], default=1)), ('rfc_impact', models.IntegerField(choices=[ (3, 'High'), (2, 'Medium'), (1, 'Low')], default=1)), ('rfc_risk_and_impact_analysis', models.TextField( verbose_name='rfc_risk_and_impact_analysis')), ('rfc_implementation_plan', models.TextField( verbose_name='rfc_implementation_plan')), ('rfc_backout_plan', models.TextField( verbose_name='rfc_backout_plan')), ('rfc_test_plan', models.TextField(verbose_name='rfc_test_plan')), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='request_for_change_change_user', to=settings.AUTH_USER_MODEL)), ('creation_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='request_for_change_creation_user', to=settings.AUTH_USER_MODEL)), ('rfc_lead', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='rfc_lead', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'request_for_change', }, ), migrations.CreateModel( name='requirement', fields=[ ('requirement_id', models.AutoField( primary_key=True, serialize=False)), ('requirement_title', models.CharField(max_length=255)), ('requirement_scope', models.TextField(blank=True, null=True)), ('requirement_story_point_min', models.IntegerField(default=1)), ('requirement_story_point_max', models.IntegerField(default=4)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='requirement_change_user', to=settings.AUTH_USER_MODEL)), ('creation_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='requirement_creation_user', to=settings.AUTH_USER_MODEL)), ('organisation', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.organisation')), ('requirement_status', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.list_of_requirement_status')), ('requirement_type', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.list_of_requirement_type')), ], options={ 'db_table': 'requirement', }, ), migrations.CreateModel( name='requirement_item', fields=[ ('requirement_item_id', models.AutoField( primary_key=True, serialize=False)), ('requirement_item_title', models.CharField(max_length=255)), ('requirement_item_scope', models.TextField(blank=True, null=True)), ('ri_story_point_min', models.IntegerField(default=4)), ('ri_story_point_max', models.IntegerField(default=10)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='requirement_item_change_user', to=settings.AUTH_USER_MODEL)), ('requirement', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.requirement')), ('requirement_item_status', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.list_of_requirement_item_status')), ('requirement_item_type', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.list_of_requirement_item_type')), ], options={ 'db_table': 'requirement_item', }, ), migrations.CreateModel( name='tag', fields=[ ('tag_id', models.AutoField(primary_key=True, serialize=False)), ('tag_name', models.CharField(max_length=50, unique=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tag_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'tag', }, ), migrations.CreateModel( name='task', fields=[ ('task_id', models.AutoField(primary_key=True, serialize=False)), ('task_short_description', models.CharField(max_length=255)), ('task_long_description', models.TextField()), ('task_start_date', models.DateTimeField()), ('task_end_date', models.DateTimeField()), ('task_status', models.CharField(choices=[('Backlog', 'Backlog'), ('Blocked', 'Blocked'), ( 'In Progress', 'In Progress'), ('Test/Review', 'Test/Review'), ('Closed', 'Closed')], default='New', max_length=15)), ('task_story_point_min', models.IntegerField(default=4)), ('task_story_point_max', models.IntegerField(default=10)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='task_change_user', to=settings.AUTH_USER_MODEL)), ('creation_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='task_creation_user', to=settings.AUTH_USER_MODEL)), ('organisation', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.organisation')), ('task_assigned_to', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'task', }, ), migrations.CreateModel( name='whiteboard', fields=[ ('whiteboard_id', models.AutoField( primary_key=True, serialize=False)), ('whiteboard_title', models.CharField(max_length=255)), ('whiteboard_xml', models.TextField(blank=True, null=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='whiteboard_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'whiteboard', }, ), migrations.CreateModel( name='user_weblink', fields=[ ('user_weblink_id', models.AutoField( primary_key=True, serialize=False)), ('user_weblink_url', models.URLField(max_length=255)), ('user_weblink_source', models.CharField(choices=[('Twitter', 'Twitter'), ('Facebook', 'Facebook'), ('Github', 'Github'), ('Gitlab', 'Gitlab'), ( 'Website', 'Website'), ('LinkedIn', 'LinkedIn'), ('Staff Page', 'Staff page'), ('Other', 'Other')], max_length=50)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='user_weblink_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'user_weblink', }, ), migrations.CreateModel( name='user_want', fields=[ ('user_want_id', models.AutoField( primary_key=True, serialize=False)), ('want_choice', models.CharField(choices=[ ('0', 'Do not want to do'), ('1', 'Want to do')], max_length=50)), ('want_choice_text', models.CharField(max_length=50)), ('want_skill', models.CharField(choices=[('0', 'Can not do'), ('1', 'Willing to learn'), ( '2', 'Knows a little'), ('3', 'Knows a lot'), ('4', 'Proficient')], max_length=50)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='user_want_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'user_want', }, ), migrations.CreateModel( name='user_group', fields=[ ('user_group_id', models.AutoField( primary_key=True, serialize=False)), ('group_leader', models.BooleanField(default=False)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='user_group_change_user', to=settings.AUTH_USER_MODEL)), ('group', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.group')), ('permission_set', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.permission_set')), ('report_to', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='report_to', to=settings.AUTH_USER_MODEL)), ('username', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'user_group', }, ), migrations.CreateModel( name='to_do', fields=[ ('to_do_id', models.AutoField(primary_key=True, serialize=False)), ('to_do', models.CharField(max_length=255)), ('to_do_completed', models.BooleanField(default=False)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='to_do_change_user', to=settings.AUTH_USER_MODEL)), ('opportunity', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.opportunity')), ('project', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.project')), ('task', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.task')), ], options={ 'db_table': 'to_do', }, ), migrations.CreateModel( name='timesheet', fields=[ ('timesheet_id', models.AutoField( primary_key=True, serialize=False)), ('timesheet_description', models.CharField( blank=True, max_length=255, null=True)), ('timesheet_date', models.DateField()), ('timesheet_start_time', models.TimeField()), ('timesheet_end_time', models.TimeField()), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='timesheet_change_user', to=settings.AUTH_USER_MODEL)), ('project', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.project')), ('requirement_item', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.requirement_item')), ('task', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.task')), ], options={ 'db_table': 'timesheet', }, ), migrations.CreateModel( name='task_customer', fields=[ ('task_customer_id', models.AutoField( primary_key=True, serialize=False)), ('customer_description', models.CharField( blank=True, max_length=155, null=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='task_customer_change_user', to=settings.AUTH_USER_MODEL)), ('customer', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.customer')), ('task', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.task')), ], options={ 'db_table': 'task_customer', }, ), migrations.CreateModel( name='task_action', fields=[ ('task_action_id', models.AutoField( primary_key=True, serialize=False)), ('task_action', models.TextField()), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='task_action_change_user', to=settings.AUTH_USER_MODEL)), ('submitted_by', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('task', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.task')), ], options={ 'db_table': 'task_action', }, ), migrations.CreateModel( name='tag_assignment', fields=[ ('tag_assignment_id', models.AutoField( primary_key=True, serialize=False)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tag_assignment_change_user', to=settings.AUTH_USER_MODEL)), ('opportunity', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.opportunity')), ('project', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.project')), ('requirement', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.requirement')), ('tag', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.tag')), ('task', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.task')), ], options={ 'db_table': 'tag_assignment', }, ), migrations.CreateModel( name='requirement_customer', fields=[ ('requirement_customer_id', models.AutoField( primary_key=True, serialize=False)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='requirement_customer_change_user', to=settings.AUTH_USER_MODEL)), ('customer', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.customer')), ('requirement', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.requirement')), ], options={ 'db_table': 'requirement_customer', }, ), migrations.CreateModel( name='request_for_change_stakeholder', fields=[ ('rfc_stakeholder_id', models.AutoField( primary_key=True, serialize=False)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='request_for_change_stakeholder_change_user', to=settings.AUTH_USER_MODEL)), ('customer', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.customer')), ('organisation', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.organisation')), ('request_for_change', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.request_for_change')), ], options={ 'db_table': 'request_for_change_stakeholder', }, ), migrations.CreateModel( name='request_for_change_note', fields=[ ('rfc_note_id', models.AutoField( primary_key=True, serialize=False)), ('rfc_note', models.TextField(blank=True, null=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='request_for_change_note_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'request_for_change_note', }, ), migrations.CreateModel( name='request_for_change_group_approval', fields=[ ('rfc_group_approval_id', models.AutoField( primary_key=True, serialize=False)), ('approval', models.IntegerField(choices=[ (1, 'Waiting'), (2, 'Approved'), (3, 'Rejected'), (4, 'Cancel')], default=1)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='request_for_change_group_approval_change_user', to=settings.AUTH_USER_MODEL)), ('group', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.group')), ('rfc', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.request_for_change')), ], options={ 'db_table': 'request_for_change_group_approval', }, ), migrations.CreateModel( name='quote_template', fields=[ ('quote_template_id', models.AutoField( primary_key=True, serialize=False)), ('quote_template_description', models.CharField(max_length=255)), ('template_css', models.TextField(blank=True, null=True)), ('header', models.TextField(blank=True, null=True)), ('company_letter_head', models.TextField(blank=True, null=True)), ('payment_terms', models.CharField( blank=True, max_length=255, null=True)), ('notes', models.CharField(blank=True, max_length=255, null=True)), ('organisation_details', models.TextField(blank=True, null=True)), ('product_line', models.TextField()), ('service_line', models.TextField()), ('payment_method', models.TextField(blank=True, null=True)), ('footer', models.TextField(blank=True, null=True)), ('page_layout', models.CharField(choices=[ ('Landscape', 'Landscape'), ('Portrait', 'Portrait')], default='Landscape', max_length=50)), ('margin_left', models.IntegerField(default=1)), ('margin_right', models.IntegerField(default=1)), ('margin_top', models.IntegerField(default=1)), ('margin_bottom', models.IntegerField(default=1)), ('margin_header', models.IntegerField(default=1)), ('margin_footer', models.IntegerField(default=1)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='quote_template_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'quote_template', }, ), migrations.CreateModel( name='quote_responsible_customer', fields=[ ('quote_responsible_customer_id', models.AutoField( primary_key=True, serialize=False)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='quote_responsible_customer_change_user', to=settings.AUTH_USER_MODEL)), ('customer', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.customer')), ('quote', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.quote')), ], options={ 'db_table': 'quote_responsible_customer', }, ), migrations.CreateModel( name='quote_product_and_service', fields=[ ('quotes_product_and_service_id', models.AutoField( primary_key=True, serialize=False)), ('product_price', models.DecimalField( decimal_places=2, max_digits=19)), ('quantity', models.IntegerField()), ('product_description', models.CharField( blank=True, max_length=255, null=True)), ('product_cost', models.DecimalField( decimal_places=2, max_digits=19)), ('discount_choice', models.CharField(choices=[ ('Percentage', 'Percentage'), ('Amount', 'Amount')], default='PERCENTAGE', max_length=10)), ('discount_percent', models.DecimalField(decimal_places=2, default=0, max_digits=5, validators=[ django.core.validators.MaxValueValidator(100), django.core.validators.MinValueValidator(0)])), ('discount_amount', models.DecimalField(decimal_places=2, default=0, max_digits=19, validators=[ django.core.validators.MaxValueValidator(1000000000), django.core.validators.MinValueValidator(0)])), ('sales_price', models.DecimalField(decimal_places=2, default=0, max_digits=19, validators=[ django.core.validators.MaxValueValidator(1000000000), django.core.validators.MinValueValidator(0)])), ('tax_amount', models.DecimalField( decimal_places=2, default=0, max_digits=19)), ('total', models.DecimalField(decimal_places=2, max_digits=19, validators=[ django.core.validators.MaxValueValidator( 99999999999999999999), django.core.validators.MinValueValidator(-99999999999999999999)])), ('product_note', models.CharField( blank=True, max_length=255, null=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='quote_product_and_service_change_user', to=settings.AUTH_USER_MODEL)), ('product_and_service', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.product_and_service')), ('quote', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.quote')), ('tax', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.list_of_tax')), ], options={ 'db_table': 'quote_product_and_service', }, ), migrations.AddField( model_name='quote', name='task', field=models.ForeignKey(blank=True, db_column='task_id', null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.task'), ), migrations.CreateModel( name='project_customer', fields=[ ('project_customer_id', models.AutoField( primary_key=True, serialize=False)), ('customer_description', models.CharField( blank=True, max_length=255, null=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='project_customer_change_user', to=settings.AUTH_USER_MODEL)), ('customer', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.customer')), ('project', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.project')), ], options={ 'db_table': 'project_customer', }, ), migrations.CreateModel( name='object_note', fields=[ ('object_note_id', models.AutoField( primary_key=True, serialize=False)), ('object_note', models.TextField()), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='object_note_change_user', to=settings.AUTH_USER_MODEL)), ('opportunity', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.opportunity')), ('organisation', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.organisation')), ('project', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.project')), ('quote', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.quote')), ('request_for_change', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.request_for_change')), ('requirement', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.requirement')), ('requirement_item', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.requirement_item')), ('task', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.task')), ], options={ 'db_table': 'object_note', }, ), migrations.CreateModel( name='object_assignment', fields=[ ('object_assignment_id', models.AutoField( primary_key=True, serialize=False)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('assigned_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='object_assignment_assigned_user', to=settings.AUTH_USER_MODEL)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='object_assignment_change_user', to=settings.AUTH_USER_MODEL)), ('customer', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.customer')), ('group_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.group')), ('kanban_board', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.kanban_board')), ('opportunity', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.opportunity')), ('organisation', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.organisation')), ('project', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.project')), ('quote', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.quote')), ('request_for_change', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.request_for_change')), ('requirement', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.requirement')), ('requirement_item', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.requirement_item')), ('task', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.task')), ('whiteboard', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.whiteboard')), ], options={ 'db_table': 'object_assignment', }, ), migrations.CreateModel( name='nearbeach_option', fields=[ ('nearbeach_option_id', models.AutoField( primary_key=True, serialize=False)), ('story_point_hour_min', models.IntegerField(default=4)), ('story_point_hour_max', models.IntegerField(default=10)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('change_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='nearbeach_option_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'nearbeach_option', }, ), migrations.CreateModel( name='list_of_title', fields=[ ('title_id', models.AutoField(primary_key=True, serialize=False)), ('title', models.CharField(max_length=10)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='list_of_title_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'list_of_title', }, ), migrations.CreateModel( name='list_of_country_region', fields=[ ('region_id', models.AutoField(primary_key=True, serialize=False)), ('region_name', models.CharField(max_length=150)), ('region_type', models.CharField(max_length=80, null=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='list_of_country_region_change_user', to=settings.AUTH_USER_MODEL)), ('country', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.list_of_country')), ], options={ 'db_table': 'list_of_country_region', }, ), migrations.CreateModel( name='list_of_contact_type', fields=[ ('contact_type_id', models.AutoField( primary_key=True, serialize=False)), ('contact_type', models.CharField(max_length=50)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='list_of_contact_type_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'list_of_contact_type', }, ), migrations.CreateModel( name='list_of_bug_client', fields=[ ('list_of_bug_client_id', models.AutoField( primary_key=True, serialize=False)), ('bug_client_name', models.CharField(max_length=50)), ('bug_client_api_url', models.CharField(max_length=255)), ('api_open_bugs', models.CharField(max_length=255)), ('api_search_bugs', models.CharField(max_length=255)), ('api_bug', models.CharField(max_length=255)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='list_of_bug_client_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'list_of_bug_client', }, ), migrations.CreateModel( name='kudos', fields=[ ('kudos_key', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('kudos_rating', models.IntegerField(choices=[ (1, '1 Star'), (2, '2 Star'), (3, '3 Star'), (4, '4 Star'), (5, '5 Star')], default=0)), ('improvement_note', models.TextField(blank=True, null=True)), ('liked_note', models.TextField(blank=True, null=True)), ('submitted_kudos', models.BooleanField(default=False)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='kudos_change_user', to=settings.AUTH_USER_MODEL)), ('customer', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.customer')), ('extra_kudos', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('project', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.project')), ], options={ 'db_table': 'kudos', }, ), migrations.CreateModel( name='kanban_level', fields=[ ('kanban_level_id', models.AutoField( primary_key=True, serialize=False)), ('kanban_level_name', models.CharField(max_length=255)), ('kanban_level_sort_number', models.IntegerField()), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default='FALSE')), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='kanban_level_change_user', to=settings.AUTH_USER_MODEL)), ('kanban_board', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.kanban_board')), ], options={ 'db_table': 'kanban_level', }, ), migrations.CreateModel( name='kanban_comment', fields=[ ('kanban_comment_id', models.AutoField( primary_key=True, serialize=False)), ('kanban_comment', models.TextField()), ('user_infomation', models.CharField(max_length=255)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default='FALSE')), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='kanban_comment_change_user', to=settings.AUTH_USER_MODEL)), ('kanban_board', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.kanban_board')), ('kanban_card', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.kanban_card')), ('user', models.ForeignKey( null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'kanban_comment', }, ), migrations.CreateModel( name='kanban_column', fields=[ ('kanban_column_id', models.AutoField( primary_key=True, serialize=False)), ('kanban_column_name', models.CharField(max_length=255)), ('kanban_column_sort_number', models.IntegerField()), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default='FALSE')), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='kanban_column_change_user', to=settings.AUTH_USER_MODEL)), ('kanban_board', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.kanban_board')), ], options={ 'db_table': 'kanban_column', }, ), migrations.AddField( model_name='kanban_card', name='kanban_column', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.kanban_column'), ), migrations.AddField( model_name='kanban_card', name='kanban_level', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.kanban_level'), ), migrations.AddField( model_name='kanban_card', name='project', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.project'), ), migrations.AddField( model_name='kanban_card', name='requirement', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.requirement'), ), migrations.AddField( model_name='kanban_card', name='task', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.task'), ), migrations.AddField( model_name='kanban_board', name='requirement', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.requirement'), ), migrations.CreateModel( name='group_permission', fields=[ ('group_permission_id', models.AutoField( primary_key=True, serialize=False)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default='FALSE')), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='group_permission_change_user', to=settings.AUTH_USER_MODEL)), ('group', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.group')), ('permission_set', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.permission_set')), ], options={ 'db_table': 'group_permission', }, ), migrations.CreateModel( name='folder', fields=[ ('folder_id', models.AutoField(primary_key=True, serialize=False)), ('folder_description', models.CharField(max_length=255)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='folder_change_user', to=settings.AUTH_USER_MODEL)), ('customer', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.customer')), ('organisation', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.organisation')), ('parent_folder', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.folder')), ('project', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.project')), ('request_for_change', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.request_for_change')), ('requirement', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.requirement')), ('requirement_item', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.requirement_item')), ('task', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.task')), ], options={ 'db_table': 'folder', }, ), migrations.CreateModel( name='email_content', fields=[ ('email_content_id', models.AutoField( primary_key=True, serialize=False)), ('email_subject', models.CharField(max_length=255)), ('email_content', models.TextField(verbose_name='email_content')), ('is_private', models.BooleanField(default=False)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='email_content_change_user', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'email_content', }, ), migrations.CreateModel( name='email_contact', fields=[ ('email_contact_id', models.AutoField( primary_key=True, serialize=False)), ('is_private', models.BooleanField(default=False)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('bcc_customer', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='email_contact_bcc_customer', to='NearBeach.customer')), ('cc_customer', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='email_contact_cc_customer', to='NearBeach.customer')), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='email_contact_change_user', to=settings.AUTH_USER_MODEL)), ('email_content', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.email_content')), ('opportunity', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.opportunity')), ('organisation', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.organisation')), ('project', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.project')), ('quotes', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.quote')), ('task', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.task')), ('to_customer', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='email_contact_to_customer', to='NearBeach.customer')), ], options={ 'db_table': 'email_contact', }, ), migrations.CreateModel( name='document_permission', fields=[ ('document_permisssion_id', models.AutoField( primary_key=True, serialize=False)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='document_permission_change_user', to=settings.AUTH_USER_MODEL)), ('customer', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.customer')), ('document_key', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.document')), ('folder', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.folder')), ('opportunity', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.opportunity')), ('organisation', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.organisation')), ('project', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.project')), ('request_for_change', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.request_for_change')), ('requirement', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.requirement')), ('requirement_item', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.requirement_item')), ('task', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.task')), ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('whiteboard', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.whiteboard')), ], options={ 'db_table': 'document_permission', }, ), migrations.AddField( model_name='document', name='whiteboard', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.whiteboard'), ), migrations.CreateModel( name='customer_campus', fields=[ ('customer_campus_id', models.AutoField( primary_key=True, serialize=False)), ('customer_phone', models.CharField(max_length=20)), ('customer_fax', models.CharField(max_length=20)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('campus', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.campus')), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='customer_campus_change_user', to=settings.AUTH_USER_MODEL)), ('customer', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.customer')), ], options={ 'db_table': 'customer_campus', }, ), migrations.AddField( model_name='customer', name='customer_title', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.list_of_title'), ), migrations.AddField( model_name='customer', name='organisation', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.organisation'), ), migrations.CreateModel( name='cost', fields=[ ('cost_id', models.AutoField(primary_key=True, serialize=False)), ('cost_description', models.CharField(max_length=255)), ('cost_amount', models.DecimalField( decimal_places=2, max_digits=19)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='cost_change_user', to=settings.AUTH_USER_MODEL)), ('project', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.project')), ('task', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.task')), ], options={ 'db_table': 'cost', }, ), migrations.CreateModel( name='contact_history', fields=[ ('contact_history_id', models.AutoField( primary_key=True, serialize=False)), ('contact_date', models.DateTimeField()), ('contact_history', models.TextField( verbose_name='contact_history')), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='contact_history_change_user', to=settings.AUTH_USER_MODEL)), ('contact_type', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.list_of_contact_type')), ('customer', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.customer')), ('document_key', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.document')), ('organisation', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.organisation')), ('user', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'contact_history', }, ), migrations.CreateModel( name='change_task', fields=[ ('change_task_id', models.AutoField( primary_key=True, serialize=False)), ('change_task_title', models.CharField(max_length=255)), ('change_task_description', models.TextField( verbose_name='change_task_description')), ('change_task_start_date', models.DateTimeField()), ('change_task_end_date', models.DateTimeField()), ('change_task_seconds', models.BigIntegerField(default=0)), ('change_task_required_by', models.CharField( default='Stakeholder(s)', max_length=255)), ('change_task_status', models.IntegerField(choices=[ (1, 'Draft'), (2, 'Waiting for approval'), (3, 'Approved'), (4, 'Started'), (5, 'Finished'), (6, 'Rejected')])), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_task_assigned_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='change_assigned_user', to=settings.AUTH_USER_MODEL)), ('change_task_qa_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='change_qa_user', to=settings.AUTH_USER_MODEL)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='change_task_change_user', to=settings.AUTH_USER_MODEL)), ('creation_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='change_task_creation_user', to=settings.AUTH_USER_MODEL)), ('request_for_change', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.request_for_change')), ], options={ 'db_table': 'change_task', }, ), migrations.AddField( model_name='campus', name='campus_country', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.list_of_country'), ), migrations.AddField( model_name='campus', name='campus_region', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.list_of_country_region'), ), migrations.AddField( model_name='campus', name='change_user', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='campus_change_user', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='campus', name='customer', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.customer'), ), migrations.AddField( model_name='campus', name='organisation', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.organisation'), ), migrations.CreateModel( name='bug_client', fields=[ ('bug_client_id', models.AutoField( primary_key=True, serialize=False)), ('bug_client_name', models.CharField(max_length=50)), ('bug_client_url', models.URLField()), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='bug_client_change_user', to=settings.AUTH_USER_MODEL)), ('list_of_bug_client', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.list_of_bug_client')), ], options={ 'db_table': 'bug_client', }, ), migrations.CreateModel( name='bug', fields=[ ('bug_id', models.AutoField(primary_key=True, serialize=False)), ('bug_code', models.CharField(max_length=255)), ('bug_description', models.TextField()), ('bug_status', models.CharField(max_length=50)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('bug_client', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='NearBeach.bug_client')), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='bug_change_user', to=settings.AUTH_USER_MODEL)), ('project', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.project')), ('requirement', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.requirement')), ('task', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='NearBeach.task')), ], options={ 'db_table': 'bug', }, ), migrations.CreateModel( name='about_user', fields=[ ('about_user_id', models.AutoField( primary_key=True, serialize=False)), ('about_user_text', models.TextField()), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default='FALSE')), ('change_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='about_user_change_user', to=settings.AUTH_USER_MODEL)), ('user', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'about_user', }, ), ]
60.62095
120
0.515383
9,872
112,270
5.624696
0.034947
0.032993
0.057486
0.090334
0.858123
0.826175
0.792623
0.764007
0.734381
0.706575
0
0.008445
0.364015
112,270
1,851
121
60.653701
0.769222
0.000401
0
0.612256
1
0
0.175766
0.049624
0
0
0
0
0
1
0
false
0
0.003254
0
0.005423
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