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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
089c17367088a3f7d7a66fdc88c79a3f35583a3f | 124 | py | Python | rasa_exp/nlu/utils/__init__.py | shfshf/rasa_exp | dd6db46c14c36f0ffe9602551836af43cebcfead | [
"Apache-2.0"
] | 17 | 2019-07-02T05:27:33.000Z | 2021-11-21T08:03:51.000Z | rasa_contrib/nlu/utils/__init__.py | howl-anderson/rasa_nlu_addons | fea3b818a343f1458d7cf15a4d9063464a304b19 | [
"Apache-2.0"
] | 13 | 2019-12-23T18:15:45.000Z | 2022-03-11T23:50:37.000Z | rasa_contrib/nlu/utils/__init__.py | howl-anderson/rasa_nlu_addons | fea3b818a343f1458d7cf15a4d9063464a304b19 | [
"Apache-2.0"
] | 3 | 2019-09-10T08:42:33.000Z | 2020-10-19T15:48:52.000Z | from rasa_contrib.nlu.utils.paddle_utils import PaddleNLP
from rasa_contrib.nlu.utils.tensorflow_utils import TensorflowNLP
| 41.333333 | 65 | 0.887097 | 18 | 124 | 5.888889 | 0.555556 | 0.150943 | 0.283019 | 0.339623 | 0.433962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 124 | 2 | 66 | 62 | 0.913793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
08d53e31be855bcc870a2a014e433c09d1c85841 | 10,120 | py | Python | tests/lsp/test_semantic_tokens.py | kammoh/pygls | 4772250f8ede25aee8e457dae5bca394aeccdd2f | [
"Apache-2.0"
] | 1 | 2020-01-11T13:20:26.000Z | 2020-01-11T13:20:26.000Z | tests/lsp/test_semantic_tokens.py | kammoh/pygls | 4772250f8ede25aee8e457dae5bca394aeccdd2f | [
"Apache-2.0"
] | null | null | null | tests/lsp/test_semantic_tokens.py | kammoh/pygls | 4772250f8ede25aee8e457dae5bca394aeccdd2f | [
"Apache-2.0"
] | null | null | null | ############################################################################
# Copyright(c) Open Law Library. All rights reserved. #
# See ThirdPartyNotices.txt in the project root for additional notices. #
# #
# Licensed under the Apache License, Version 2.0 (the "License") #
# you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at #
# #
# http: // www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and #
# limitations under the License. #
############################################################################
import unittest
from typing import Optional, Union
from pygls.lsp.methods import (TEXT_DOCUMENT_SEMANTIC_TOKENS_FULL,
TEXT_DOCUMENT_SEMANTIC_TOKENS_FULL_DELTA,
TEXT_DOCUMENT_SEMANTIC_TOKENS_RANGE)
from pygls.lsp.types import (Position, Range, SemanticTokens, SemanticTokensDeltaParams,
SemanticTokensLegend, SemanticTokensParams,
SemanticTokensPartialResult, SemanticTokensRequestsFull,
SemanticTokensRangeParams, TextDocumentIdentifier)
from ..conftest import CALL_TIMEOUT, ClientServer
class TestSemanticTokensFullMissingLegend(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.client_server = ClientServer()
cls.client, cls.server = cls.client_server
@cls.server.feature(TEXT_DOCUMENT_SEMANTIC_TOKENS_FULL)
def f(params: SemanticTokensParams) -> Union[SemanticTokensPartialResult, Optional[SemanticTokens]]:
return SemanticTokens(data=[0,0,3,0,0])
cls.client_server.start()
@classmethod
def tearDownClass(cls):
cls.client_server.stop()
def test_capabilities(self):
capabilities = self.server.server_capabilities
assert capabilities.semantic_tokens_provider is None
class TestSemanticTokensFull(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.client_server = ClientServer()
cls.client, cls.server = cls.client_server
@cls.server.feature(
TEXT_DOCUMENT_SEMANTIC_TOKENS_FULL,
SemanticTokensLegend(
token_types=["keyword", "operator"],
token_modifiers=["readonly"]
)
)
def f(params: SemanticTokensParams) -> Optional[Union[SemanticTokensPartialResult, Optional[SemanticTokens]]]:
if params.text_document.uri == "file://return.tokens":
return SemanticTokens(data=[0,0,3,0,0])
cls.client_server.start()
@classmethod
def tearDownClass(cls):
cls.client_server.stop()
def test_capabilities(self):
capabilities = self.server.server_capabilities
assert capabilities.semantic_tokens_provider.full
assert capabilities.semantic_tokens_provider.legend.token_types == ["keyword", "operator"]
assert capabilities.semantic_tokens_provider.legend.token_modifiers == ["readonly"]
def test_semantic_tokens_full_return_tokens(self):
response = self.client.lsp.send_request(
TEXT_DOCUMENT_SEMANTIC_TOKENS_FULL,
SemanticTokensParams(
text_document=TextDocumentIdentifier(uri='file://return.tokens')
)
).result(timeout=CALL_TIMEOUT)
assert response
assert response['data'] == [0, 0, 3, 0, 0]
def test_semantic_tokens_full_return_none(self):
response = self.client.lsp.send_request(
TEXT_DOCUMENT_SEMANTIC_TOKENS_FULL,
SemanticTokensParams(
text_document=TextDocumentIdentifier(uri='file://return.none')
)
).result(timeout=CALL_TIMEOUT)
assert response is None
class TestSemanticTokensFullDeltaMissingLegend(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.client_server = ClientServer()
cls.client, cls.server = cls.client_server
@cls.server.feature(TEXT_DOCUMENT_SEMANTIC_TOKENS_FULL_DELTA)
def f(params: SemanticTokensDeltaParams) -> Union[SemanticTokensPartialResult, Optional[SemanticTokens]]:
return SemanticTokens(data=[0,0,3,0,0])
cls.client_server.start()
@classmethod
def tearDownClass(cls):
cls.client_server.stop()
def test_capabilities(self):
capabilities = self.server.server_capabilities
assert capabilities.semantic_tokens_provider is None
class TestSemanticTokensFullDeltaMissingLegend(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.client_server = ClientServer()
cls.client, cls.server = cls.client_server
@cls.server.feature(
TEXT_DOCUMENT_SEMANTIC_TOKENS_FULL_DELTA,
SemanticTokensLegend(
token_types=["keyword", "operator"],
token_modifiers=["readonly"]
)
)
def f(params: SemanticTokensDeltaParams) -> Union[SemanticTokensPartialResult, Optional[SemanticTokens]]:
if params.text_document.uri == 'file://return.tokens':
return SemanticTokens(data=[0,0,3,0,0])
cls.client_server.start()
@classmethod
def tearDownClass(cls):
cls.client_server.stop()
def test_capabilities(self):
capabilities = self.server.server_capabilities
assert capabilities.semantic_tokens_provider.full == SemanticTokensRequestsFull(delta=True)
assert capabilities.semantic_tokens_provider.legend.token_types == ["keyword", "operator"]
assert capabilities.semantic_tokens_provider.legend.token_modifiers == ["readonly"]
def test_semantic_tokens_full_delta_return_tokens(self):
response = self.client.lsp.send_request(
TEXT_DOCUMENT_SEMANTIC_TOKENS_FULL_DELTA,
SemanticTokensDeltaParams(
text_document=TextDocumentIdentifier(uri='file://return.tokens'),
previous_result_id='id'
)
).result(timeout=CALL_TIMEOUT)
assert response
assert response['data'] == [0, 0, 3, 0, 0]
def test_semantic_tokens_full_delta_return_none(self):
response = self.client.lsp.send_request(
TEXT_DOCUMENT_SEMANTIC_TOKENS_FULL_DELTA,
SemanticTokensDeltaParams(
text_document=TextDocumentIdentifier(uri='file://return.none'),
previous_result_id='id'
)
).result(timeout=CALL_TIMEOUT)
assert response is None
class TestSemanticTokensRangeMissingLegend(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.client_server = ClientServer()
cls.client, cls.server = cls.client_server
@cls.server.feature(TEXT_DOCUMENT_SEMANTIC_TOKENS_RANGE)
def f(params: SemanticTokensParams) -> Union[SemanticTokensPartialResult, Optional[SemanticTokens]]:
return SemanticTokens(data=[0,0,3,0,0])
cls.client_server.start()
@classmethod
def tearDownClass(cls):
cls.client_server.stop()
def test_capabilities(self):
capabilities = self.server.server_capabilities
assert capabilities.semantic_tokens_provider is None
class TestSemanticTokensRange(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.client_server = ClientServer()
cls.client, cls.server = cls.client_server
@cls.server.feature(
TEXT_DOCUMENT_SEMANTIC_TOKENS_RANGE,
SemanticTokensLegend(
token_types=["keyword", "operator"],
token_modifiers=["readonly"]
)
)
def f(params: SemanticTokensRangeParams) -> Optional[Union[SemanticTokensPartialResult, Optional[SemanticTokens]]]:
if params.text_document.uri == "file://return.tokens":
return SemanticTokens(data=[0,0,3,0,0])
cls.client_server.start()
@classmethod
def tearDownClass(cls):
cls.client_server.stop()
def test_capabilities(self):
capabilities = self.server.server_capabilities
assert capabilities.semantic_tokens_provider.range
assert capabilities.semantic_tokens_provider.legend.token_types == ["keyword", "operator"]
assert capabilities.semantic_tokens_provider.legend.token_modifiers == ["readonly"]
def test_semantic_tokens_range_return_tokens(self):
response = self.client.lsp.send_request(
TEXT_DOCUMENT_SEMANTIC_TOKENS_RANGE,
SemanticTokensRangeParams(
text_document=TextDocumentIdentifier(uri='file://return.tokens'),
range=Range(
start=Position(line=0, character=0),
end=Position(line=10, character=80)
)
)
).result(timeout=CALL_TIMEOUT)
assert response
assert response['data'] == [0, 0, 3, 0, 0]
def test_semantic_tokens_range_return_none(self):
response = self.client.lsp.send_request(
TEXT_DOCUMENT_SEMANTIC_TOKENS_RANGE,
SemanticTokensRangeParams(
text_document=TextDocumentIdentifier(uri='file://return.none'),
range=Range(
start=Position(line=0, character=0),
end=Position(line=10, character=80)
)
)
).result(timeout=CALL_TIMEOUT)
assert response is None | 38.333333 | 123 | 0.63004 | 956 | 10,120 | 6.465481 | 0.156904 | 0.074745 | 0.058243 | 0.063097 | 0.830772 | 0.820903 | 0.813622 | 0.807151 | 0.796473 | 0.788546 | 0 | 0.00828 | 0.272036 | 10,120 | 264 | 124 | 38.333333 | 0.830732 | 0.098024 | 0 | 0.765957 | 0 | 0 | 0.036833 | 0 | 0 | 0 | 0 | 0 | 0.111702 | 1 | 0.159574 | false | 0 | 0.026596 | 0.015957 | 0.25 | 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 |
08f085e20a98e371c6abbb9f739319f8084a65d1 | 250 | py | Python | dglgo/dglgo/model/edge_encoder/__init__.py | ketyi/dgl | a1b859c29b63a673c148d13231a49504740e0e01 | [
"Apache-2.0"
] | 1 | 2022-02-23T01:35:37.000Z | 2022-02-23T01:35:37.000Z | dglgo/dglgo/model/edge_encoder/__init__.py | ketyi/dgl | a1b859c29b63a673c148d13231a49504740e0e01 | [
"Apache-2.0"
] | null | null | null | dglgo/dglgo/model/edge_encoder/__init__.py | ketyi/dgl | a1b859c29b63a673c148d13231a49504740e0e01 | [
"Apache-2.0"
] | null | null | null | from ...utils.factory import EdgeModelFactory
from .ele import ElementWiseProductPredictor
from .bilinear import BilinearPredictor
EdgeModelFactory.register("ele")(ElementWiseProductPredictor)
EdgeModelFactory.register("bilinear")(BilinearPredictor) | 41.666667 | 61 | 0.864 | 21 | 250 | 10.285714 | 0.47619 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056 | 250 | 6 | 62 | 41.666667 | 0.915254 | 0 | 0 | 0 | 0 | 0 | 0.043825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 1 | 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 |
3edaa1b3b99242df27b729ccffa1b070bdbb5659 | 350,408 | py | Python | Lib/Security/_metadata.py | mosen/pudquick-pyobjc-framework-Security | 2f3b0a51c36bd1aa564876c6f285e12ed422c780 | [
"MIT"
] | 5 | 2017-03-21T11:45:38.000Z | 2017-08-02T18:23:37.000Z | Lib/Security/_metadata.py | mosen/moobjc-framework-Security | 2f3b0a51c36bd1aa564876c6f285e12ed422c780 | [
"MIT"
] | null | null | null | Lib/Security/_metadata.py | mosen/moobjc-framework-Security | 2f3b0a51c36bd1aa564876c6f285e12ed422c780 | [
"MIT"
] | null | null | null | # This file is generated by objective.metadata
#
# Last update: Sat Mar 18 12:42:35 2017
import objc, sys
if sys.maxsize > 2 ** 32:
def sel32or64(a, b): return b
else:
def sel32or64(a, b): return a
if sys.byteorder == 'little':
def littleOrBig(a, b): return a
else:
def littleOrBig(a, b): return b
misc = {
}
misc.update({'CE_SemanticsInformation': objc.createStructType('CE_SemanticsInformation', b'{__CE_SemanticsInformation=^{cssm_data=Q^C}^{__CE_GeneralNames=I^{__CE_GeneralName=Ii{cssm_data=Q^C}}}}', ['semanticsIdentifier', 'nameRegistrationAuthorities']), 'SecItemImportExportKeyParameters': objc.createStructType('SecItemImportExportKeyParameters', b'{_SecItemImportExportKeyParameters=II@^{__CFString=}^{__CFString=}^{OpaqueSecAccessRef=}^{__CFArray=}^{__CFArray=}}', ['version', 'flags', 'passphrase', 'alertTitle', 'alertPrompt', 'accessRef', 'keyUsage', 'keyAttributes']), 'CE_GeneralSubtrees': objc.createStructType('CE_GeneralSubtrees', b'{__CE_GeneralSubtrees=I^{__CE_GeneralSubtree=^{__CE_GeneralNames=I^{__CE_GeneralName=Ii{cssm_data=Q^C}}}IiI}}', ['numSubtrees', 'subtrees']), 'CE_NameConstraints': objc.createStructType('CE_NameConstraints', b'{__CE_NameConstraints=^{__CE_GeneralSubtrees=I^{__CE_GeneralSubtree=^{__CE_GeneralNames=I^{__CE_GeneralName=Ii{cssm_data=Q^C}}}IiI}}^{__CE_GeneralSubtrees=I^{__CE_GeneralSubtree=^{__CE_GeneralNames=I^{__CE_GeneralName=Ii{cssm_data=Q^C}}}IiI}}}', ['permitted', 'excluded']), 'CSSM_X509_RDN': objc.createStructType('CSSM_X509_RDN', b'{cssm_x509_rdn=I^{cssm_x509_type_value_pair={cssm_data=Q^C}C{cssm_data=Q^C}}}', ['numberOfPairs', 'AttributeTypeAndValue']), 'CSSM_TUPLE': objc.createStructType('CSSM_TUPLE', b'{_CSSM_TUPLE={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}}', ['Issuer', 'Subject', 'Delegate', 'AuthorizationTag', 'ValidityPeriod']), 'CSSM_TP_POLICYINFO': objc.createStructType('CSSM_TP_POLICYINFO', b'{cssm_tp_policyinfo=I^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}^v}', ['NumberOfPolicyIds', 'PolicyIds', 'PolicyControl']), 'CSSM_NAME_LIST': objc.createStructType('CSSM_NAME_LIST', b'{cssm_name_list=I^^c}', ['NumStrings', 'String']), 'CE_IssuingDistributionPoint': objc.createStructType('CE_IssuingDistributionPoint', b'{__CE_IssuingDistributionPoint=^{__CE_DistributionPointName=I(_anonymousunion=^{__CE_GeneralNames=I^{__CE_GeneralName}}^{cssm_x509_rdn=I^{cssm_x509_type_value_pair}})(=^{__CE_GeneralNames=I^{__CE_GeneralName}}^{cssm_x509_rdn=I^{cssm_x509_type_value_pair}})}iiiiiCii}', ['distPointName', 'onlyUserCertsPresent', 'onlyUserCerts', 'onlyCACertsPresent', 'onlyCACerts', 'onlySomeReasonsPresent', 'onlySomeReasons', 'indirectCrlPresent', 'indirectCrl']), 'CSSM_PKCS5_PBKDF1_PARAMS': objc.createStructType('CSSM_PKCS5_PBKDF1_PARAMS', b'{cssm_pkcs5_pbkdf1_params={cssm_data=Q^C}{cssm_data=Q^C}}', ['Passphrase', 'InitVector']), 'CSSM_QUERY': objc.createStructType('CSSM_QUERY', b'{cssm_query=III^{cssm_selection_predicate=I{cssm_db_attribute_data={cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}I^{cssm_data=Q^C}}}{cssm_query_limits=II}I}', ['RecordType', 'Conjunctive', 'NumSelectionPredicates', 'SelectionPredicate', 'QueryLimits', 'QueryFlags']), 'CSSM_SUBSERVICE_UID': objc.createStructType('CSSM_SUBSERVICE_UID', b'{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}', ['Guid', 'Version', 'SubserviceId', 'SubserviceType']), 'CSSM_FIELDGROUP': objc.createStructType('CSSM_FIELDGROUP', b'{cssm_fieldgroup=i^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}}', ['NumberOfFields', 'Fields']), 'CSSM_FIELD': objc.createStructType('CSSM_FIELD', b'{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}', ['FieldOid', 'FieldValue']), 'SecAsn1Template': objc.createStructType('SecAsn1Template', b'{SecAsn1Template_struct=II^vI}', ['kind', 'offset', 'sub', 'size']), 'CSSM_DB_RECORD_ATTRIBUTE_INFO': objc.createStructType('CSSM_DB_RECORD_ATTRIBUTE_INFO', b'{cssm_db_record_attribute_info=II^{cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}}', ['DataRecordType', 'NumberOfAttributes', 'AttributeInfo']), 'SecKeyImportExportParameters': objc.createStructType('SecKeyImportExportParameters', b'{_SecKeyImportExportParameters=II@^{__CFString=}^{__CFString=}^{OpaqueSecAccessRef=}II}', ['version', 'flags', 'passphrase', 'alertTitle', 'alertPrompt', 'accessRef', 'keyUsage', 'keyAttributes']), 'CSSM_X509_SUBJECT_PUBLIC_KEY_INFO': objc.createStructType('CSSM_X509_SUBJECT_PUBLIC_KEY_INFO', b'{cssm_x509_subject_public_key_info={cssm_x509_algorithm_identifier={cssm_data=Q^C}{cssm_data=Q^C}}{cssm_data=Q^C}}', ['algorithm', 'subjectPublicKey']), 'CSSM_CERT_BUNDLE': objc.createStructType('CSSM_CERT_BUNDLE', b'{cssm_cert_bundle={cssm_cert_bundle_header=II}{cssm_data=Q^C}}', ['BundleHeader', 'Bundle']), 'CSSM_X509_SIGNED_CRL': objc.createStructType('CSSM_X509_SIGNED_CRL', b'{cssm_x509_signed_crl={cssm_x509_tbs_certlist={cssm_data=Q^C}{cssm_x509_algorithm_identifier={cssm_data=Q^C}{cssm_data=Q^C}}{cssm_x509_name=I^{cssm_x509_rdn=I^{cssm_x509_type_value_pair={cssm_data=Q^C}C{cssm_data=Q^C}}}}{cssm_x509_time=C{cssm_data=Q^C}}{cssm_x509_time=C{cssm_data=Q^C}}^{cssm_x509_revoked_cert_list=I^{cssm_x509_revoked_cert_entry={cssm_data=Q^C}{cssm_x509_time=C{cssm_data=Q^C}}{cssm_x509_extensions=I^{cssm_x509_extension={cssm_data=Q^C}iI(cssm_x509ext_value=^{cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v^{cssm_x509ext_pair={cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v})(cssm_x509ext_value=^{cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v^{cssm_x509ext_pair={cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v}){cssm_data=Q^C}}}}}{cssm_x509_extensions=I^{cssm_x509_extension={cssm_data=Q^C}iI(cssm_x509ext_value=^{cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v^{cssm_x509ext_pair={cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v})(cssm_x509ext_value=^{cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v^{cssm_x509ext_pair={cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v}){cssm_data=Q^C}}}}{cssm_x509_signature={cssm_x509_algorithm_identifier={cssm_data=Q^C}{cssm_data=Q^C}}{cssm_data=Q^C}}}', ['tbsCertList', 'signature']), 'CSSM_QUERY_LIMITS': objc.createStructType('CSSM_QUERY_LIMITS', b'{cssm_query_limits=II}', ['TimeLimit', 'SizeLimit']), 'AuthorizationItem': objc.createStructType('AuthorizationItem', b'{_AuthorizationItem=^cQ^vI}', ['name', 'valueLength', 'value', 'flags']), 'CSSM_X509_NAME': objc.createStructType('CSSM_X509_NAME', b'{cssm_x509_name=I^{cssm_x509_rdn=I^{cssm_x509_type_value_pair={cssm_data=Q^C}C{cssm_data=Q^C}}}}', ['numberOfRDNs', 'RelativeDistinguishedName']), 'CE_DistributionPointName': objc.createStructType('CE_DistributionPointName', b'{__CE_DistributionPointName=I(_anonymousunion=^{__CE_GeneralNames=I^{__CE_GeneralName}}^{cssm_x509_rdn=I^{cssm_x509_type_value_pair}})(=^{__CE_GeneralNames=I^{__CE_GeneralName}}^{cssm_x509_rdn=I^{cssm_x509_type_value_pair}})}', ['nameType', 'dpn']), 'CSSM_KEA_DERIVE_PARAMS': objc.createStructType('CSSM_KEA_DERIVE_PARAMS', b'{cssm_kea_derive_params={cssm_data=Q^C}{cssm_data=Q^C}}', ['Rb', 'Yb']), 'CSSM_LIST': objc.createStructType('CSSM_LIST', b'{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}', ['ListType', 'Head', 'Tail']), 'CSSM_RANGE': objc.createStructType('CSSM_RANGE', b'{cssm_range=II}', ['Min', 'Max']), 'SecAsn1AlgId': objc.createStructType('SecAsn1AlgId', b'{cssm_x509_algorithm_identifier={cssm_data=Q^C}{cssm_data=Q^C}}', ['algorithm', 'parameters']), 'CSSM_OID': objc.createStructType('CSSM_OID', b'{cssm_data=Q^C}', ['Length', 'Data']), 'CSSM_ACL_VALIDITY_PERIOD': objc.createStructType('CSSM_ACL_VALIDITY_PERIOD', b'{cssm_acl_validity_period={cssm_data=Q^C}{cssm_data=Q^C}}', ['StartDate', 'EndDate']), 'CE_PolicyInformation': objc.createStructType('CE_PolicyInformation', b'{__CE_PolicyInformation={cssm_data=Q^C}I^{__CE_PolicyQualifierInfo={cssm_data=Q^C}{cssm_data=Q^C}}}', ['certPolicyId', 'numPolicyQualifiers', 'policyQualifiers']), 'CSSM_TP_CERTVERIFY_OUTPUT': objc.createStructType('CSSM_TP_CERTVERIFY_OUTPUT', b'{cssm_tp_certverify_output=II^{cssm_evidence=I^v}}', ['VerifyStatus', 'NumberOfEvidence', 'Evidence']), 'CSSM_VERSION': objc.createStructType('CSSM_VERSION', b'{cssm_version=II}', ['Major', 'Minor']), 'CSSM_X509_TYPE_VALUE_PAIR': objc.createStructType('CSSM_X509_TYPE_VALUE_PAIR', b'{cssm_x509_type_value_pair={cssm_data=Q^C}C{cssm_data=Q^C}}', ['type', 'valueType', 'value']), 'CSSM_TP_AUTHORITY_ID': objc.createStructType('CSSM_TP_AUTHORITY_ID', b'{cssm_tp_authority_id=^{cssm_data=Q^C}^{cssm_net_address=I{cssm_data=Q^C}}}', ['AuthorityCert', 'AuthorityLocation']), 'CSSM_ENCODED_CERT': objc.createStructType('CSSM_ENCODED_CERT', b'{cssm_encoded_cert=II{cssm_data=Q^C}}', ['CertType', 'CertEncoding', 'CertBlob']), 'CSSM_TP_VERIFY_CONTEXT_RESULT': objc.createStructType('CSSM_TP_VERIFY_CONTEXT_RESULT', b'{cssm_tp_verify_context_result=I^{cssm_evidence=I^v}}', ['NumberOfEvidences', 'Evidence']), 'CSSM_TP_CERTCHANGE_OUTPUT': objc.createStructType('CSSM_TP_CERTCHANGE_OUTPUT', b'{cssm_tp_certchange_output=I{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}}', ['ActionStatus', 'RevokeInfo']), 'CSSM_TP_RESULT_SET': objc.createStructType('CSSM_TP_RESULT_SET', b'{cssm_tp_result_set=I^v}', ['NumberOfResults', 'Results']), 'CSSM_X509_TBS_CERTIFICATE': objc.createStructType('CSSM_X509_TBS_CERTIFICATE', b'{cssm_x509_tbs_certificate={cssm_data=Q^C}{cssm_data=Q^C}{cssm_x509_algorithm_identifier={cssm_data=Q^C}{cssm_data=Q^C}}{cssm_x509_name=I^{cssm_x509_rdn=I^{cssm_x509_type_value_pair={cssm_data=Q^C}C{cssm_data=Q^C}}}}{x509_validity={cssm_x509_time=C{cssm_data=Q^C}}{cssm_x509_time=C{cssm_data=Q^C}}}{cssm_x509_name=I^{cssm_x509_rdn=I^{cssm_x509_type_value_pair={cssm_data=Q^C}C{cssm_data=Q^C}}}}{cssm_x509_subject_public_key_info={cssm_x509_algorithm_identifier={cssm_data=Q^C}{cssm_data=Q^C}}{cssm_data=Q^C}}{cssm_data=Q^C}{cssm_data=Q^C}{cssm_x509_extensions=I^{cssm_x509_extension={cssm_data=Q^C}iI(cssm_x509ext_value=^{cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v^{cssm_x509ext_pair={cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v})(cssm_x509ext_value=^{cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v^{cssm_x509ext_pair={cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v}){cssm_data=Q^C}}}}', ['version', 'serialNumber', 'signature', 'issuer', 'validity', 'subject', 'subjectPublicKeyInfo', 'issuerUniqueIdentifier', 'subjectUniqueIdentifier', 'extensions']), 'CSSM_TP_APPLE_EVIDENCE_HEADER': objc.createStructType('CSSM_TP_APPLE_EVIDENCE_HEADER', b'{_CSSM_TP_APPLE_EVIDENCE_HEADER=I}', ['Version']), 'CSSM_AUTHORIZATIONGROUP': objc.createStructType('CSSM_AUTHORIZATIONGROUP', b'{cssm_authorizationgroup=I^i}', ['NumberOfAuthTags', 'AuthTags']), 'CSSM_PARSED_CRL': objc.createStructType('CSSM_PARSED_CRL', b'{cssm_parsed_crl=II^v}', ['CrlType', 'ParsedCrlFormat', 'ParsedCrl']), 'CSSM_SAMPLEGROUP': objc.createStructType('CSSM_SAMPLEGROUP', b'{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}', ['NumberOfSamples', 'Samples']), 'CE_OtherName': objc.createStructType('CE_OtherName', b'{__CE_OtherName={cssm_data=Q^C}{cssm_data=Q^C}}', ['typeId', 'value']), 'CSSM_DB_PARSING_MODULE_INFO': objc.createStructType('CSSM_DB_PARSING_MODULE_INFO', b'{cssm_db_parsing_module_info=I{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}', ['RecordType', 'ModuleSubserviceUid']), 'CSSM_MANAGER_EVENT_NOTIFICATION': objc.createStructType('CSSM_MANAGER_EVENT_NOTIFICATION', b'{cssm_manager_event_notification=IIII{cssm_data=Q^C}}', ['DestinationModuleManagerType', 'SourceModuleManagerType', 'Event', 'EventId', 'EventData']), 'CSSM_SELECTION_PREDICATE': objc.createStructType('CSSM_SELECTION_PREDICATE', b'{cssm_selection_predicate=I{cssm_db_attribute_data={cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}I^{cssm_data=Q^C}}}', ['DbOperator', 'Attribute']), 'CSSM_X509EXT_POLICYQUALIFIERINFO': objc.createStructType('CSSM_X509EXT_POLICYQUALIFIERINFO', b'{cssm_x509ext_policyQualifierInfo={cssm_data=Q^C}{cssm_data=Q^C}}', ['policyQualifierId', 'value']), 'CSSM_KEY_SIZE': objc.createStructType('CSSM_KEY_SIZE', b'{cssm_key_size=II}', ['LogicalKeySizeInBits', 'EffectiveKeySizeInBits']), 'CSSM_TUPLEGROUP': objc.createStructType('CSSM_TUPLEGROUP', b'{cssm_tuplegroup=I^{_CSSM_TUPLE_PTR={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}}}', ['NumberOfTuples', 'Tuples']), 'CSSM_KRSUBSERVICE': objc.createStructType('CSSM_KRSUBSERVICE', b'{cssm_krsubservice=I^c{cssm_kr_wrappedproductinfo={cssm_version=II}[68c]{cssm_version=II}[68c][68c]I}}', ['SubServiceId', 'Description', 'WrappedProduct']), 'CSSM_DB_UNIQUE_RECORD': objc.createStructType('CSSM_DB_UNIQUE_RECORD', b'{cssm_db_unique_record={cssm_db_index_info=II{cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}}{cssm_data=Q^C}}', ['RecordLocator', 'RecordIdentifier']), 'CSSM_GUID': objc.createStructType('CSSM_GUID', b'{cssm_guid=ISS[8C]}', ['Data1', 'Data2', 'Data3', 'Data4']), 'CSSM_WRAP_KEY': objc.createStructType('CSSM_WRAP_KEY', b'{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}', ['KeyHeader', 'KeyData']), 'CE_PolicyQualifierInfo': objc.createStructType('CE_PolicyQualifierInfo', b'{__CE_PolicyQualifierInfo={cssm_data=Q^C}{cssm_data=Q^C}}', ['policyQualifierId', 'qualifier']), 'CSSM_KEYHEADER': objc.createStructType('CSSM_KEYHEADER', b'{cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}', ['HeaderVersion', 'CspId', 'BlobType', 'Format', 'AlgorithmId', 'KeyClass', 'LogicalKeySizeInBits', 'KeyAttr', 'KeyUsage', 'StartDate', 'EndDate', 'WrapAlgorithmId', 'WrapMode', 'Reserved']), 'CSSM_APPLEDL_OPEN_PARAMETERS': objc.createStructType('CSSM_APPLEDL_OPEN_PARAMETERS', b'{cssm_appledl_open_parameters=IIiIS}', ['length', 'version', 'autoCommit', 'mask', 'mode']), 'CE_QC_Statements': objc.createStructType('CE_QC_Statements', b'{__CE_QC_Statements=I^{__CE_QC_Statement={cssm_data=Q^C}^{__CE_SemanticsInformation=^{cssm_data=Q^C}^{__CE_GeneralNames=I^{__CE_GeneralName=Ii{cssm_data=Q^C}}}}^{cssm_data=Q^C}}}', ['numQCStatements', 'qcStatements']), 'CE_BasicConstraints': objc.createStructType('CE_BasicConstraints', b'{__CE_BasicConstraints=iiI}', ['cA', 'pathLenConstraintPresent', 'pathLenConstraint']), 'SecAsn1Item': objc.createStructType('SecAsn1Item', b'{cssm_data=Q^C}', ['Length', 'Data']), 'CSSM_APPLECSPDL_DB_SETTINGS_PARAMETERS': objc.createStructType('CSSM_APPLECSPDL_DB_SETTINGS_PARAMETERS', b'{cssm_applecspdl_db_settings_parameters=IC}', ['idleTimeout', 'lockOnSleep']), 'CSSM_DATA': objc.createStructType('CSSM_DATA', b'{cssm_data=Q^C}', ['Length', 'Data']), 'CSSM_DATE': objc.createStructType('CSSM_DATE', b'{cssm_date=[4C][2C][2C]}', ['Year', 'Month', 'Day']), 'CSSM_TP_CRLISSUE_OUTPUT': objc.createStructType('CSSM_TP_CRLISSUE_OUTPUT', b'{cssm_tp_crlissue_output=I^{cssm_encoded_crl=II{cssm_data=Q^C}}^c}', ['IssueStatus', 'Crl', 'CrlNextTime']), 'CSSM_CRL_PAIR': objc.createStructType('CSSM_CRL_PAIR', b'{cssm_crl_pair={cssm_encoded_crl=II{cssm_data=Q^C}}{cssm_parsed_crl=II^v}}', ['EncodedCrl', 'ParsedCrl']), 'CSSM_TP_CERTNOTARIZE_OUTPUT': objc.createStructType('CSSM_TP_CERTNOTARIZE_OUTPUT', b'{cssm_tp_certnotarize_output=I^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}I}', ['NotarizeStatus', 'NotarizedCertGroup', 'PerformedServiceRequests']), 'CSSM_X509_REVOKED_CERT_LIST': objc.createStructType('CSSM_X509_REVOKED_CERT_LIST', b'{cssm_x509_revoked_cert_list=I^{cssm_x509_revoked_cert_entry={cssm_data=Q^C}{cssm_x509_time=C{cssm_data=Q^C}}{cssm_x509_extensions=I^{cssm_x509_extension={cssm_data=Q^C}iI(cssm_x509ext_value=^{cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v^{cssm_x509ext_pair={cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v})(cssm_x509ext_value=^{cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v^{cssm_x509ext_pair={cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v}){cssm_data=Q^C}}}}}', ['numberOfRevokedCertEntries', 'revokedCertEntry']), 'CSSM_CERT_BUNDLE_HEADER': objc.createStructType('CSSM_CERT_BUNDLE_HEADER', b'{cssm_cert_bundle_header=II}', ['BundleType', 'BundleEncoding']), 'CSSM_DL_DB_HANDLE': objc.createStructType('CSSM_DL_DB_HANDLE', b'{cssm_dl_db_handle=qq}', ['DLHandle', 'DBHandle']), 'CSSM_APPLE_CL_CSR_REQUEST': objc.createStructType('CSSM_APPLE_CL_CSR_REQUEST', b'{_CSSM_APPLE_CL_CSR_REQUEST=^{cssm_x509_name=I^{cssm_x509_rdn=I^{cssm_x509_type_value_pair={cssm_data=Q^C}C{cssm_data=Q^C}}}}I{cssm_data=Q^C}q^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}^c}', ['subjectNameX509', 'signatureAlg', 'signatureOid', 'cspHand', 'subjectPublicKey', 'subjectPrivateKey', 'challengeString']), 'CE_SubjectKeyID': objc.createStructType('CE_SubjectKeyID', b'{cssm_data=Q^C}', ['Length', 'Data']), 'CSSM_KR_POLICY_LIST_ITEM': objc.createStructType('CSSM_KR_POLICY_LIST_ITEM', b'{cssm_kr_policy_list_item={kr_policy_list_item=}^{kr_policy_list_item=}IIIICII}', ['next', 'AlgorithmId', 'Mode', 'MaxKeyLength', 'MaxRounds', 'WorkFactor', 'PolicyFlags', 'AlgClass']), 'CSSM_ACL_PROCESS_SUBJECT_SELECTOR': objc.createStructType('CSSM_ACL_PROCESS_SUBJECT_SELECTOR', b'{cssm_acl_process_subject_selector=SSII}', ['version', 'mask', 'uid', 'gid']), 'AuthorizationExternalForm': objc.createStructType('AuthorizationExternalForm', b'{_AuthorizationExternalForm=[32c]}', ['bytes']), 'SecAsn1Oid': objc.createStructType('SecAsn1Oid', b'{cssm_data=Q^C}', ['Length', 'Data']), 'CE_Data': objc.createStructType('CE_Data', b'(_CE_Data={__CE_AuthorityKeyID=i{cssm_data=Q*}i^{__CE_GeneralNames}i{cssm_data=Q*}}{cssm_data=Q*}S{__CE_GeneralNames=I^{__CE_GeneralName}}{__CE_GeneralNames=I^{__CE_GeneralName}}{__CE_ExtendedKeyUsage=I^{cssm_data}}{__CE_BasicConstraints=iiI}{__CE_CertPolicies=I^{__CE_PolicyInformation}}SIII{__CE_CRLDistPointsSyntax=I^{__CE_CRLDistributionPoint}}{__CE_IssuingDistributionPoint=^{__CE_DistributionPointName}iiiiiCii}{__CE_AuthorityInfoAccess=I^{__CE_AccessDescription}}{__CE_QC_Statements=I^{__CE_QC_Statement}}{__CE_NameConstraints=^{__CE_GeneralSubtrees}^{__CE_GeneralSubtrees}}{__CE_PolicyMappings=I^{__CE_PolicyMapping}}{__CE_PolicyConstraints=iIiI}I{cssm_data=Q*})', []), 'CSSM_PKCS5_PBKDF2_PARAMS': objc.createStructType('CSSM_PKCS5_PBKDF2_PARAMS', b'{cssm_pkcs5_pbkdf2_params={cssm_data=Q^C}I}', ['Passphrase', 'PseudoRandomFunction']), 'CSSM_NET_ADDRESS': objc.createStructType('CSSM_NET_ADDRESS', b'{cssm_net_address=I{cssm_data=Q^C}}', ['AddressType', 'Address']), 'CSSM_DL_DB_LIST': objc.createStructType('CSSM_DL_DB_LIST', b'{cssm_dl_db_list=I^{cssm_dl_db_handle=qq}}', ['NumHandles', 'DLDBHandle']), 'CSSM_EVIDENCE': objc.createStructType('CSSM_EVIDENCE', b'{cssm_evidence=I^v}', ['EvidenceForm', 'Evidence']), 'CE_AuthorityInfoAccess': objc.createStructType('CE_AuthorityInfoAccess', b'{__CE_AuthorityInfoAccess=I^{__CE_AccessDescription={cssm_data=Q^C}{__CE_GeneralName=Ii{cssm_data=Q^C}}}}', ['numAccessDescriptions', 'accessDescriptions']), 'CSSM_X509_SIGNATURE': objc.createStructType('CSSM_X509_SIGNATURE', b'{cssm_x509_signature={cssm_x509_algorithm_identifier={cssm_data=Q^C}{cssm_data=Q^C}}{cssm_data=Q^C}}', ['algorithmIdentifier', 'encrypted']), 'CSSM_X509_ALGORITHM_IDENTIFIER': objc.createStructType('CSSM_X509_ALGORITHM_IDENTIFIER', b'{cssm_x509_algorithm_identifier={cssm_data=Q^C}{cssm_data=Q^C}}', ['algorithm', 'parameters']), 'CSSM_X509_EXTENSIONS': objc.createStructType('CSSM_X509_EXTENSIONS', b'{cssm_x509_extensions=I^{cssm_x509_extension={cssm_data=Q^C}iI(cssm_x509ext_value=^{cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v^{cssm_x509ext_pair={cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v})(cssm_x509ext_value=^{cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v^{cssm_x509ext_pair={cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v}){cssm_data=Q^C}}}', ['numberOfExtensions', 'extensions']), 'CSSM_X509_EXTENSION': objc.createStructType('CSSM_X509_EXTENSION', b'{cssm_x509_extension={cssm_data=Q^C}iI(cssm_x509ext_value=^{cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v^{cssm_x509ext_pair={cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v})(cssm_x509ext_value=^{cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v^{cssm_x509ext_pair={cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v}){cssm_data=Q^C}}', ['extnId', 'critical', 'format', 'value', 'BERvalue']), 'CE_AccessDescription': objc.createStructType('CE_AccessDescription', b'{__CE_AccessDescription={cssm_data=Q^C}{__CE_GeneralName=Ii{cssm_data=Q^C}}}', ['accessMethod', 'accessLocation']), 'CSSM_PKCS1_OAEP_PARAMS': objc.createStructType('CSSM_PKCS1_OAEP_PARAMS', b'{cssm_pkcs1_oaep_params=I{cssm_data=Q^C}I{cssm_data=Q^C}I{cssm_data=Q^C}}', ['HashAlgorithm', 'HashParams', 'MGF', 'MGFParams', 'PSource', 'PSourceParams']), 'CSSM_APPLECSPDL_DB_IS_LOCKED_PARAMETERS': objc.createStructType('CSSM_APPLECSPDL_DB_IS_LOCKED_PARAMETERS', b'{cssm_applecspdl_db_is_locked_parameters=C}', ['isLocked']), 'CSSM_ACL_ENTRY_PROTOTYPE': objc.createStructType('CSSM_ACL_ENTRY_PROTOTYPE', b'{cssm_acl_entry_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_authorizationgroup=I^i}{cssm_acl_validity_period={cssm_data=Q^C}{cssm_data=Q^C}}[68c]}', ['TypedSubject', 'Delegate', 'Authorization', 'TimeRange', 'EntryTag']), 'CE_NameRegistrationAuthorities': objc.createStructType('CE_NameRegistrationAuthorities', b'{__CE_GeneralNames=I^{__CE_GeneralName=Ii{cssm_data=Q^C}}}', ['numNames', 'generalName']), 'CSSM_TP_CERTISSUE_OUTPUT': objc.createStructType('CSSM_TP_CERTISSUE_OUTPUT', b'{cssm_tp_certissue_output=I^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}I}', ['IssueStatus', 'CertGroup', 'PerformedServiceRequests']), 'CSSM_TP_REQUEST_SET': objc.createStructType('CSSM_TP_REQUEST_SET', b'{cssm_tp_request_set=I^v}', ['NumberOfRequests', 'Requests']), 'CSSM_APPLE_TP_SSL_OPTIONS': objc.createStructType('CSSM_APPLE_TP_SSL_OPTIONS', b'{_CSSM_APPLE_TP_SSL_OPTIONS=II^cI}', ['Version', 'ServerNameLen', 'ServerName', 'Flags']), 'CSSM_X509EXT_PAIR': objc.createStructType('CSSM_X509EXT_PAIR', b'{cssm_x509ext_pair={cssm_x509_extensionTagAndValue=C{cssm_data=Q^C}}^v}', ['tagAndValue', 'parsedValue']), 'CSSM_X509_TIME': objc.createStructType('CSSM_X509_TIME', b'{cssm_x509_time=C{cssm_data=Q^C}}', ['timeType', 'time']), 'CE_DataAndType': objc.createStructType('CE_DataAndType', b'{__CE_DataAndType=I(_CE_Data={__CE_AuthorityKeyID=i{cssm_data=Q*}i^{__CE_GeneralNames}i{cssm_data=Q*}}{cssm_data=Q*}S{__CE_GeneralNames=I^{__CE_GeneralName}}{__CE_GeneralNames=I^{__CE_GeneralName}}{__CE_ExtendedKeyUsage=I^{cssm_data}}{__CE_BasicConstraints=iiI}{__CE_CertPolicies=I^{__CE_PolicyInformation}}SIII{__CE_CRLDistPointsSyntax=I^{__CE_CRLDistributionPoint}}{__CE_IssuingDistributionPoint=^{__CE_DistributionPointName}iiiiiCii}{__CE_AuthorityInfoAccess=I^{__CE_AccessDescription}}{__CE_QC_Statements=I^{__CE_QC_Statement}}{__CE_NameConstraints=^{__CE_GeneralSubtrees}^{__CE_GeneralSubtrees}}{__CE_PolicyMappings=I^{__CE_PolicyMapping}}{__CE_PolicyConstraints=iIiI}I{cssm_data=Q*})i}', ['type', 'extension', 'critical']), 'CE_CertPolicies': objc.createStructType('CE_CertPolicies', b'{__CE_CertPolicies=I^{__CE_PolicyInformation={cssm_data=Q^C}I^{__CE_PolicyQualifierInfo={cssm_data=Q^C}{cssm_data=Q^C}}}}', ['numPolicies', 'policies']), 'DERItem': objc.createStructType('DERItem', b'{_DERItem=^CQ}', ['data', 'length']), 'CE_GeneralName': objc.createStructType('CE_GeneralName', b'{__CE_GeneralName=Ii{cssm_data=Q^C}}', ['nameType', 'berEncoded', 'name']), 'SecKeychainAttributeList': objc.createStructType('SecKeychainAttributeList', b'{SecKeychainAttributeList=I^{SecKeychainAttribute=II^v}}', ['count', 'attr']), 'CSSM_SAMPLE': objc.createStructType('CSSM_SAMPLE', b'{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}', ['TypedSample', 'Verifier']), 'CSSM_DB_SCHEMA_INDEX_INFO': objc.createStructType('CSSM_DB_SCHEMA_INDEX_INFO', b'{cssm_db_schema_index_info=IIII}', ['AttributeId', 'IndexId', 'IndexType', 'IndexedDataLocation']), 'CSSM_TP_APPLE_EVIDENCE_INFO': objc.createStructType('CSSM_TP_APPLE_EVIDENCE_INFO', b'{_CSSM_TP_APPLE_EVIDENCE_INFO=II^iI{cssm_dl_db_handle=qq}^{cssm_db_unique_record={cssm_db_index_info=II{cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}}{cssm_data=Q^C}}}', ['StatusBits', 'NumStatusCodes', 'StatusCodes', 'Index', 'DlDbHandle', 'UniqueRecord']), 'CSSM_KEY': objc.createStructType('CSSM_KEY', b'{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}', ['KeyHeader', 'KeyData']), 'CSSM_X509_SIGNED_CERTIFICATE': objc.createStructType('CSSM_X509_SIGNED_CERTIFICATE', b'{cssm_x509_signed_certificate={cssm_x509_tbs_certificate={cssm_data=Q^C}{cssm_data=Q^C}{cssm_x509_algorithm_identifier={cssm_data=Q^C}{cssm_data=Q^C}}{cssm_x509_name=I^{cssm_x509_rdn=I^{cssm_x509_type_value_pair={cssm_data=Q^C}C{cssm_data=Q^C}}}}{x509_validity={cssm_x509_time=C{cssm_data=Q^C}}{cssm_x509_time=C{cssm_data=Q^C}}}{cssm_x509_name=I^{cssm_x509_rdn=I^{cssm_x509_type_value_pair={cssm_data=Q^C}C{cssm_data=Q^C}}}}{cssm_x509_subject_public_key_info={cssm_x509_algorithm_identifier={cssm_data=Q^C}{cssm_data=Q^C}}{cssm_data=Q^C}}{cssm_data=Q^C}{cssm_data=Q^C}{cssm_x509_extensions=I^{cssm_x509_extension={cssm_data=Q^C}iI(cssm_x509ext_value=^{cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v^{cssm_x509ext_pair={cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v})(cssm_x509ext_value=^{cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v^{cssm_x509ext_pair={cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v}){cssm_data=Q^C}}}}{cssm_x509_signature={cssm_x509_algorithm_identifier={cssm_data=Q^C}{cssm_data=Q^C}}{cssm_data=Q^C}}}', ['certificate', 'signature']), 'CSSM_X509_VALIDITY': objc.createStructType('CSSM_X509_VALIDITY', b'{x509_validity={cssm_x509_time=C{cssm_data=Q^C}}{cssm_x509_time=C{cssm_data=Q^C}}}', ['notBefore', 'notAfter']), 'CSSM_APPLE_TP_CERT_REQUEST': objc.createStructType('CSSM_APPLE_TP_CERT_REQUEST', b'{_CSSM_APPLE_TP_CERT_REQUEST=qqII^{_CSSM_APPLE_TP_NAME_OID=^c^{cssm_data=Q^C}}I^{_CSSM_APPLE_TP_NAME_OID=^c^{cssm_data=Q^C}}^{cssm_x509_name=I^{cssm_x509_rdn=I^{cssm_x509_type_value_pair={cssm_data=Q^C}C{cssm_data=Q^C}}}}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}I{cssm_data=Q^C}III^{__CE_DataAndType=I(_CE_Data={__CE_AuthorityKeyID=i{cssm_data=Q*}i^{__CE_GeneralNames}i{cssm_data=Q*}}{cssm_data=Q*}S{__CE_GeneralNames=I^{__CE_GeneralName}}{__CE_GeneralNames=I^{__CE_GeneralName}}{__CE_ExtendedKeyUsage=I^{cssm_data}}{__CE_BasicConstraints=iiI}{__CE_CertPolicies=I^{__CE_PolicyInformation}}SIII{__CE_CRLDistPointsSyntax=I^{__CE_CRLDistributionPoint}}{__CE_IssuingDistributionPoint=^{__CE_DistributionPointName}iiiiiCii}{__CE_AuthorityInfoAccess=I^{__CE_AccessDescription}}{__CE_QC_Statements=I^{__CE_QC_Statement}}{__CE_NameConstraints=^{__CE_GeneralSubtrees}^{__CE_GeneralSubtrees}}{__CE_PolicyMappings=I^{__CE_PolicyMapping}}{__CE_PolicyConstraints=iIiI}I{cssm_data=Q*})i}^c}', ['cspHand', 'clHand', 'serialNumber', 'numSubjectNames', 'subjectNames', 'numIssuerNames', 'issuerNames', 'issuerNameX509', 'certPublicKey', 'issuerPrivateKey', 'signatureAlg', 'signatureOid', 'notBefore', 'notAfter', 'numExtensions', 'extensions', 'challengeString']), 'CSSM_DB_SCHEMA_ATTRIBUTE_INFO': objc.createStructType('CSSM_DB_SCHEMA_ATTRIBUTE_INFO', b'{cssm_db_schema_attribute_info=I^c{cssm_data=Q^C}I}', ['AttributeId', 'AttributeName', 'AttributeNameID', 'DataType']), 'AuthorizationRights': objc.createStructType('AuthorizationRights', b'{_AuthorizationRights=I^{_AuthorizationItem=^cQ^vI}}', ['count', 'items']), 'CSSM_KR_NAME': objc.createStructType('CSSM_KR_NAME', b'{cssm_kr_name=CC^c}', ['Type', 'Length', 'Name']), 'CSSM_APPLE_TP_ACTION_DATA': objc.createStructType('CSSM_APPLE_TP_ACTION_DATA', b'{_CSSM_APPLE_TP_ACTION_DATA=II}', ['Version', 'ActionFlags']), 'CSSM_ENCODED_CRL': objc.createStructType('CSSM_ENCODED_CRL', b'{cssm_encoded_crl=II{cssm_data=Q^C}}', ['CrlType', 'CrlEncoding', 'CrlBlob']), 'CE_QC_Statement': objc.createStructType('CE_QC_Statement', b'{__CE_QC_Statement={cssm_data=Q^C}^{__CE_SemanticsInformation=^{cssm_data=Q^C}^{__CE_GeneralNames=I^{__CE_GeneralName=Ii{cssm_data=Q^C}}}}^{cssm_data=Q^C}}', ['statementId', 'semanticsInfo', 'otherInfo']), 'CSSM_X509EXT_POLICYINFO': objc.createStructType('CSSM_X509EXT_POLICYINFO', b'{cssm_x509ext_policyInfo={cssm_data=Q^C}{cssm_x509ext_policyQualifiers=I^{cssm_x509ext_policyQualifierInfo={cssm_data=Q^C}{cssm_data=Q^C}}}}', ['policyIdentifier', 'policyQualifiers']), 'CSSM_APPLE_TP_SMIME_OPTIONS': objc.createStructType('CSSM_APPLE_TP_SMIME_OPTIONS', b'{_CSSM_APPLE_TP_SMIME_OPTIONS=ISI^c}', ['Version', 'IntendedUsage', 'SenderEmailLen', 'SenderEmail']), 'MDS_DB_HANDLE': objc.createStructType('MDS_DB_HANDLE', b'{cssm_dl_db_handle=qq}', ['DLHandle', 'DBHandle']), 'CSSM_DBINFO': objc.createStructType('CSSM_DBINFO', b'{cssm_dbinfo=I^{cssm_db_parsing_module_info=I{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}^{cssm_db_record_attribute_info=II^{cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}}^{cssm_db_record_index_info=II^{cssm_db_index_info=II{cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}}}i^c^v}', ['NumberOfRecordTypes', 'DefaultParsingModules', 'RecordAttributeNames', 'RecordIndexes', 'IsLocal', 'AccessPath', 'Reserved']), 'CE_PolicyMappings': objc.createStructType('CE_PolicyMappings', b'{__CE_PolicyMappings=I^{__CE_PolicyMapping={cssm_data=Q^C}{cssm_data=Q^C}}}', ['numPolicyMappings', 'policyMappings']), 'CSSM_DB_RECORD_INDEX_INFO': objc.createStructType('CSSM_DB_RECORD_INDEX_INFO', b'{cssm_db_record_index_info=II^{cssm_db_index_info=II{cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}}}', ['DataRecordType', 'NumberOfIndexes', 'IndexInfo']), 'CSSM_DB_INDEX_INFO': objc.createStructType('CSSM_DB_INDEX_INFO', b'{cssm_db_index_info=II{cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}}', ['IndexType', 'IndexedDataLocation', 'Info']), 'SecKeychainAttribute': objc.createStructType('SecKeychainAttribute', b'{SecKeychainAttribute=II^v}', ['tag', 'length', 'data']), 'CSSM_PARSED_CERT': objc.createStructType('CSSM_PARSED_CERT', b'{cssm_parsed_cert=II^v}', ['CertType', 'ParsedCertFormat', 'ParsedCert']), 'AuthorizationItemSet': objc.createStructType('AuthorizationItemSet', b'{_AuthorizationItemSet=I^{_AuthorizationItem=^cQ^vI}}', ['count', 'items']), 'CSSM_APPLE_TP_CRL_OPTIONS': objc.createStructType('CSSM_APPLE_TP_CRL_OPTIONS', b'{_CSSM_APPLE_TP_CRL_OPTIONS=II^{cssm_dl_db_handle=qq}}', ['Version', 'CrlFlags', 'crlStore']), 'CE_GeneralNames': objc.createStructType('CE_GeneralNames', b'{__CE_GeneralNames=I^{__CE_GeneralName=Ii{cssm_data=Q^C}}}', ['numNames', 'generalName']), 'CSSM_CSP_OPERATIONAL_STATISTICS': objc.createStructType('CSSM_CSP_OPERATIONAL_STATISTICS', b'{cssm_csp_operational_statistics=iIIIIIIIII}', ['UserAuthenticated', 'DeviceFlags', 'TokenMaxSessionCount', 'TokenOpenedSessionCount', 'TokenMaxRWSessionCount', 'TokenOpenedRWSessionCount', 'TokenTotalPublicMem', 'TokenFreePublicMem', 'TokenTotalPrivateMem', 'TokenFreePrivateMem']), 'CSSM_X509EXT_TAGandVALUE': objc.createStructType('CSSM_X509EXT_TAGandVALUE', b'{cssm_x509_extensionTagAndValue=C{cssm_data=Q^C}}', ['type', 'value']), 'CSSM_X509_REVOKED_CERT_ENTRY': objc.createStructType('CSSM_X509_REVOKED_CERT_ENTRY', b'{cssm_x509_revoked_cert_entry={cssm_data=Q^C}{cssm_x509_time=C{cssm_data=Q^C}}{cssm_x509_extensions=I^{cssm_x509_extension={cssm_data=Q^C}iI(cssm_x509ext_value=^{cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v^{cssm_x509ext_pair={cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v})(cssm_x509ext_value=^{cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v^{cssm_x509ext_pair={cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v}){cssm_data=Q^C}}}}', ['certificateSerialNumber', 'revocationDate', 'extensions']), 'CE_ExtendedKeyUsage': objc.createStructType('CE_ExtendedKeyUsage', b'{__CE_ExtendedKeyUsage=I^{cssm_data=Q^C}}', ['numPurposes', 'purposes']), 'SecKeychainSettings': objc.createStructType('SecKeychainSettings', b'{SecKeychainSettings=IZZI}', ['version', 'lockOnSleep', 'useLockInterval', 'lockInterval']), 'CSSM_DB_RECORD_ATTRIBUTE_DATA': objc.createStructType('CSSM_DB_RECORD_ATTRIBUTE_DATA', b'{cssm_db_record_attribute_data=III^{cssm_db_attribute_data={cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}I^{cssm_data=Q^C}}}', ['DataRecordType', 'SemanticInformation', 'NumberOfAttributes', 'AttributeData']), 'SecKeychainAttributeInfo': objc.createStructType('SecKeychainAttributeInfo', b'{SecKeychainAttributeInfo=I^I^I}', ['count', 'tag', 'format']), 'AuthorizationEnvironment': objc.createStructType('AuthorizationEnvironment', b'{_AuthorizationEnvironment=I^{_AuthorizationItem=^cQ^vI}}', ['count', 'items']), 'SecAsn1PubKeyInfo': objc.createStructType('SecAsn1PubKeyInfo', b'{cssm_x509_subject_public_key_info={cssm_x509_algorithm_identifier={cssm_data=Q^C}{cssm_data=Q^C}}{cssm_data=Q^C}}', ['algorithm', 'subjectPublicKey']), 'CSSM_KR_POLICY_INFO': objc.createStructType('CSSM_KR_POLICY_INFO', b'{cssm_kr_policy_info=iI^{cssm_kr_policy_list_item={kr_policy_list_item=}^{kr_policy_list_item=}IIIICII}}', ['krbNotAllowed', 'numberOfEntries', 'policyEntry']), 'CE_CRLDistributionPoint': objc.createStructType('CE_CRLDistributionPoint', b'{__CE_CRLDistributionPoint=^{__CE_DistributionPointName=I(_anonymousunion=^{__CE_GeneralNames=I^{__CE_GeneralName}}^{cssm_x509_rdn=I^{cssm_x509_type_value_pair}})(=^{__CE_GeneralNames=I^{__CE_GeneralName}}^{cssm_x509_rdn=I^{cssm_x509_type_value_pair}})}iC^{__CE_GeneralNames=I^{__CE_GeneralName=Ii{cssm_data=Q^C}}}}', ['distPointName', 'reasonsPresent', 'reasons', 'crlIssuer']), 'CE_AuthorityKeyID': objc.createStructType('CE_AuthorityKeyID', b'{__CE_AuthorityKeyID=i{cssm_data=Q^C}i^{__CE_GeneralNames=I^{__CE_GeneralName=Ii{cssm_data=Q^C}}}i{cssm_data=Q^C}}', ['keyIdentifierPresent', 'keyIdentifier', 'generalNamesPresent', 'generalNames', 'serialNumberPresent', 'serialNumber']), 'CSSM_DB_ATTRIBUTE_INFO': objc.createStructType('CSSM_DB_ATTRIBUTE_INFO', b'{cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}', ['AttributeNameFormat', 'Label', 'AttributeFormat']), 'SecKeychainCallbackInfo': objc.createStructType('SecKeychainCallbackInfo', b'{SecKeychainCallbackInfo=I^{OpaqueSecKeychainItemRef=}^{OpaqueSecKeychainRef=}i}', ['version', 'item', 'keychain', 'pid']), 'CSSM_ACL_KEYCHAIN_PROMPT_SELECTOR': objc.createStructType('CSSM_ACL_KEYCHAIN_PROMPT_SELECTOR', b'{cssm_acl_keychain_prompt_selector=SS}', ['version', 'flags']), 'CSSM_ACL_ENTRY_INFO': objc.createStructType('CSSM_ACL_ENTRY_INFO', b'{cssm_acl_entry_info={cssm_acl_entry_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_authorizationgroup=I^i}{cssm_acl_validity_period={cssm_data=Q^C}{cssm_data=Q^C}}[68c]}q}', ['EntryPublicInfo', 'EntryHandle']), 'CSSM_LIST_ELEMENT': objc.createStructType('CSSM_LIST_ELEMENT', b'{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}', ['NextElement', 'WordID', 'ElementType', 'Element']), 'CSSM_CERTGROUP': objc.createStructType('CSSM_CERTGROUP', b'{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}', ['CertType', 'CertEncoding', 'NumCerts', 'GroupList', 'CertGroupType', 'Reserved']), 'CE_PolicyConstraints': objc.createStructType('CE_PolicyConstraints', b'{__CE_PolicyConstraints=iIiI}', ['requireExplicitPolicyPresent', 'requireExplicitPolicy', 'inhibitPolicyMappingPresent', 'inhibitPolicyMapping']), 'CSSM_CRLGROUP': objc.createStructType('CSSM_CRLGROUP', b'{cssm_crlgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_crl=II{cssm_data=Q*}}^{cssm_parsed_crl=II^v}^{cssm_crl_pair={cssm_encoded_crl=II{cssm_data=Q*}}{cssm_parsed_crl=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_crl=II{cssm_data=Q*}}^{cssm_parsed_crl=II^v}^{cssm_crl_pair={cssm_encoded_crl=II{cssm_data=Q*}}{cssm_parsed_crl=II^v}})I}', ['CrlType', 'CrlEncoding', 'NumberOfCrls', 'GroupCrlList', 'CrlGroupType']), 'CSSM_APPLE_TP_NAME_OID': objc.createStructType('CSSM_APPLE_TP_NAME_OID', b'{_CSSM_APPLE_TP_NAME_OID=^c^{cssm_data=Q^C}}', ['string', 'oid']), 'CE_CRLDistPointsSyntax': objc.createStructType('CE_CRLDistPointsSyntax', b'{__CE_CRLDistPointsSyntax=I^{__CE_CRLDistributionPoint=^{__CE_DistributionPointName=I(_anonymousunion=^{__CE_GeneralNames=I^{__CE_GeneralName}}^{cssm_x509_rdn=I^{cssm_x509_type_value_pair}})(=^{__CE_GeneralNames=I^{__CE_GeneralName}}^{cssm_x509_rdn=I^{cssm_x509_type_value_pair}})}iC^{__CE_GeneralNames=I^{__CE_GeneralName=Ii{cssm_data=Q^C}}}}}', ['numDistPoints', 'distPoints']), 'CSSM_KR_PROFILE': objc.createStructType('CSSM_KR_PROFILE', b'{cssm_kr_profile={cssm_kr_name=CC^c}^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}C^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}C^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}C^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}^{cssm_data=Q^C}I^{cssm_data=Q^C}}', ['UserName', 'UserCertificate', 'KRSCertChain', 'LE_KRANum', 'LE_KRACertChainList', 'ENT_KRANum', 'ENT_KRACertChainList', 'INDIV_KRANum', 'INDIV_KRACertChainList', 'INDIV_AuthenticationInfo', 'KRSPFlags', 'KRSPExtensions']), 'CSSM_QUERY_SIZE_DATA': objc.createStructType('CSSM_QUERY_SIZE_DATA', b'{cssm_query_size_data=II}', ['SizeInputBlock', 'SizeOutputBlock']), 'CSSM_ACL_OWNER_PROTOTYPE': objc.createStructType('CSSM_ACL_OWNER_PROTOTYPE', b'{cssm_acl_owner_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i}', ['TypedSubject', 'Delegate']), 'CE_PolicyMapping': objc.createStructType('CE_PolicyMapping', b'{__CE_PolicyMapping={cssm_data=Q^C}{cssm_data=Q^C}}', ['issuerDomainPolicy', 'subjectDomainPolicy']), 'CSSM_CERT_PAIR': objc.createStructType('CSSM_CERT_PAIR', b'{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q^C}}{cssm_parsed_cert=II^v}}', ['EncodedCert', 'ParsedCert']), 'CE_GeneralSubtree': objc.createStructType('CE_GeneralSubtree', b'{__CE_GeneralSubtree=^{__CE_GeneralNames=I^{__CE_GeneralName=Ii{cssm_data=Q^C}}}IiI}', ['base', 'minimum', 'maximumPresent', 'maximum']), 'CSSM_X509EXT_POLICYQUALIFIERS': objc.createStructType('CSSM_X509EXT_POLICYQUALIFIERS', b'{cssm_x509ext_policyQualifiers=I^{cssm_x509ext_policyQualifierInfo={cssm_data=Q^C}{cssm_data=Q^C}}}', ['numberOfPolicyQualifiers', 'policyQualifier']), 'CSSM_X509EXT_BASICCONSTRAINTS': objc.createStructType('CSSM_X509EXT_BASICCONSTRAINTS', b'{cssm_x509ext_basicConstraints=iiI}', ['cA', 'pathLenConstraintPresent', 'pathLenConstraint']), 'CSSM_TP_CERTRECLAIM_OUTPUT': objc.createStructType('CSSM_TP_CERTRECLAIM_OUTPUT', b'{cssm_tp_certreclaim_output=I^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}Q}', ['ReclaimStatus', 'ReclaimedCertGroup', 'KeyCacheHandle']), 'CSSM_BASE_CERTS': objc.createStructType('CSSM_BASE_CERTS', b'{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}', ['TPHandle', 'CLHandle', 'Certs']), 'CSSM_TP_CONFIRM_RESPONSE': objc.createStructType('CSSM_TP_CONFIRM_RESPONSE', b'{cssm_tp_confirm_response=I^I}', ['NumberOfResponses', 'Responses']), 'CSSM_DB_ATTRIBUTE_DATA': objc.createStructType('CSSM_DB_ATTRIBUTE_DATA', b'{cssm_db_attribute_data={cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}I^{cssm_data=Q^C}}', ['Info', 'NumberOfValues', 'Value']), 'CSSM_X509_TBS_CERTLIST': objc.createStructType('CSSM_X509_TBS_CERTLIST', b'{cssm_x509_tbs_certlist={cssm_data=Q^C}{cssm_x509_algorithm_identifier={cssm_data=Q^C}{cssm_data=Q^C}}{cssm_x509_name=I^{cssm_x509_rdn=I^{cssm_x509_type_value_pair={cssm_data=Q^C}C{cssm_data=Q^C}}}}{cssm_x509_time=C{cssm_data=Q^C}}{cssm_x509_time=C{cssm_data=Q^C}}^{cssm_x509_revoked_cert_list=I^{cssm_x509_revoked_cert_entry={cssm_data=Q^C}{cssm_x509_time=C{cssm_data=Q^C}}{cssm_x509_extensions=I^{cssm_x509_extension={cssm_data=Q^C}iI(cssm_x509ext_value=^{cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v^{cssm_x509ext_pair={cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v})(cssm_x509ext_value=^{cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v^{cssm_x509ext_pair={cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v}){cssm_data=Q^C}}}}}{cssm_x509_extensions=I^{cssm_x509_extension={cssm_data=Q^C}iI(cssm_x509ext_value=^{cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v^{cssm_x509ext_pair={cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v})(cssm_x509ext_value=^{cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v^{cssm_x509ext_pair={cssm_x509_extensionTagAndValue=C{cssm_data=Q*}}^v}){cssm_data=Q^C}}}}', ['version', 'signature', 'issuer', 'thisUpdate', 'nextUpdate', 'revokedCertificates', 'extensions']), 'CSSM_KR_WRAPPEDPRODUCT_INFO': objc.createStructType('CSSM_KR_WRAPPEDPRODUCT_INFO', b'{cssm_kr_wrappedproductinfo={cssm_version=II}[68c]{cssm_version=II}[68c][68c]I}', ['StandardVersion', 'StandardDescription', 'ProductVersion', 'ProductDescription', 'ProductVendor', 'ProductFlags'])})
constants = '''$CSSMOID_ADC_CERT_POLICY@{cssm_data=Q^C}$CSSMOID_AD_CA_ISSUERS@{cssm_data=Q^C}$CSSMOID_AD_CA_REPOSITORY@{cssm_data=Q^C}$CSSMOID_AD_OCSP@{cssm_data=Q^C}$CSSMOID_AD_TIME_STAMPING@{cssm_data=Q^C}$CSSMOID_ANSI_DH_EPHEM@{cssm_data=Q^C}$CSSMOID_ANSI_DH_EPHEM_SHA1@{cssm_data=Q^C}$CSSMOID_ANSI_DH_HYBRID1@{cssm_data=Q^C}$CSSMOID_ANSI_DH_HYBRID1_SHA1@{cssm_data=Q^C}$CSSMOID_ANSI_DH_HYBRID2@{cssm_data=Q^C}$CSSMOID_ANSI_DH_HYBRID2_SHA1@{cssm_data=Q^C}$CSSMOID_ANSI_DH_HYBRID_ONEFLOW@{cssm_data=Q^C}$CSSMOID_ANSI_DH_ONE_FLOW@{cssm_data=Q^C}$CSSMOID_ANSI_DH_ONE_FLOW_SHA1@{cssm_data=Q^C}$CSSMOID_ANSI_DH_PUB_NUMBER@{cssm_data=Q^C}$CSSMOID_ANSI_DH_STATIC@{cssm_data=Q^C}$CSSMOID_ANSI_DH_STATIC_SHA1@{cssm_data=Q^C}$CSSMOID_ANSI_MQV1@{cssm_data=Q^C}$CSSMOID_ANSI_MQV1_SHA1@{cssm_data=Q^C}$CSSMOID_ANSI_MQV2@{cssm_data=Q^C}$CSSMOID_ANSI_MQV2_SHA1@{cssm_data=Q^C}$CSSMOID_APPLEID_CERT_POLICY@{cssm_data=Q^C}$CSSMOID_APPLEID_SHARING_CERT_POLICY@{cssm_data=Q^C}$CSSMOID_APPLE_ASC@{cssm_data=Q^C}$CSSMOID_APPLE_CERT_POLICY@{cssm_data=Q^C}$CSSMOID_APPLE_ECDSA@{cssm_data=Q^C}$CSSMOID_APPLE_EKU_CODE_SIGNING@{cssm_data=Q^C}$CSSMOID_APPLE_EKU_CODE_SIGNING_DEV@{cssm_data=Q^C}$CSSMOID_APPLE_EKU_ICHAT_ENCRYPTION@{cssm_data=Q^C}$CSSMOID_APPLE_EKU_ICHAT_SIGNING@{cssm_data=Q^C}$CSSMOID_APPLE_EKU_PASSBOOK_SIGNING@{cssm_data=Q^C}$CSSMOID_APPLE_EKU_PROFILE_SIGNING@{cssm_data=Q^C}$CSSMOID_APPLE_EKU_QA_PROFILE_SIGNING@{cssm_data=Q^C}$CSSMOID_APPLE_EKU_RESOURCE_SIGNING@{cssm_data=Q^C}$CSSMOID_APPLE_EKU_SYSTEM_IDENTITY@{cssm_data=Q^C}$CSSMOID_APPLE_EXTENSION@{cssm_data=Q^C}$CSSMOID_APPLE_EXTENSION_AAI_INTERMEDIATE@{cssm_data=Q^C}$CSSMOID_APPLE_EXTENSION_ADC_APPLE_SIGNING@{cssm_data=Q^C}$CSSMOID_APPLE_EXTENSION_ADC_DEV_SIGNING@{cssm_data=Q^C}$CSSMOID_APPLE_EXTENSION_APPLEID_INTERMEDIATE@{cssm_data=Q^C}$CSSMOID_APPLE_EXTENSION_APPLEID_SHARING@{cssm_data=Q^C}$CSSMOID_APPLE_EXTENSION_APPLE_SIGNING@{cssm_data=Q^C}$CSSMOID_APPLE_EXTENSION_CODE_SIGNING@{cssm_data=Q^C}$CSSMOID_APPLE_EXTENSION_DEVELOPER_AUTHENTICATION@{cssm_data=Q^C}$CSSMOID_APPLE_EXTENSION_ESCROW_SERVICE@{cssm_data=Q^C}$CSSMOID_APPLE_EXTENSION_INTERMEDIATE_MARKER@{cssm_data=Q^C}$CSSMOID_APPLE_EXTENSION_ITMS_INTERMEDIATE@{cssm_data=Q^C}$CSSMOID_APPLE_EXTENSION_MACAPPSTORE_RECEIPT@{cssm_data=Q^C}$CSSMOID_APPLE_EXTENSION_PASSBOOK_SIGNING@{cssm_data=Q^C}$CSSMOID_APPLE_EXTENSION_PROVISIONING_PROFILE_SIGNING@{cssm_data=Q^C}$CSSMOID_APPLE_EXTENSION_SERVER_AUTHENTICATION@{cssm_data=Q^C}$CSSMOID_APPLE_EXTENSION_SYSINT2_INTERMEDIATE@{cssm_data=Q^C}$CSSMOID_APPLE_EXTENSION_WWDR_INTERMEDIATE@{cssm_data=Q^C}$CSSMOID_APPLE_FEE@{cssm_data=Q^C}$CSSMOID_APPLE_FEED@{cssm_data=Q^C}$CSSMOID_APPLE_FEEDEXP@{cssm_data=Q^C}$CSSMOID_APPLE_FEE_MD5@{cssm_data=Q^C}$CSSMOID_APPLE_FEE_SHA1@{cssm_data=Q^C}$CSSMOID_APPLE_ISIGN@{cssm_data=Q^C}$CSSMOID_APPLE_TP_APPLEID_SHARING@{cssm_data=Q^C}$CSSMOID_APPLE_TP_CODE_SIGN@{cssm_data=Q^C}$CSSMOID_APPLE_TP_CODE_SIGNING@{cssm_data=Q^C}$CSSMOID_APPLE_TP_CSR_GEN@{cssm_data=Q^C}$CSSMOID_APPLE_TP_EAP@{cssm_data=Q^C}$CSSMOID_APPLE_TP_ESCROW_SERVICE@{cssm_data=Q^C}$CSSMOID_APPLE_TP_ICHAT@{cssm_data=Q^C}$CSSMOID_APPLE_TP_IP_SEC@{cssm_data=Q^C}$CSSMOID_APPLE_TP_LOCAL_CERT_GEN@{cssm_data=Q^C}$CSSMOID_APPLE_TP_MACAPPSTORE_RECEIPT@{cssm_data=Q^C}$CSSMOID_APPLE_TP_MOBILE_STORE@{cssm_data=Q^C}$CSSMOID_APPLE_TP_PACKAGE_SIGNING@{cssm_data=Q^C}$CSSMOID_APPLE_TP_PASSBOOK_SIGNING@{cssm_data=Q^C}$CSSMOID_APPLE_TP_PCS_ESCROW_SERVICE@{cssm_data=Q^C}$CSSMOID_APPLE_TP_PKINIT_CLIENT@{cssm_data=Q^C}$CSSMOID_APPLE_TP_PKINIT_SERVER@{cssm_data=Q^C}$CSSMOID_APPLE_TP_PROFILE_SIGNING@{cssm_data=Q^C}$CSSMOID_APPLE_TP_PROVISIONING_PROFILE_SIGNING@{cssm_data=Q^C}$CSSMOID_APPLE_TP_QA_PROFILE_SIGNING@{cssm_data=Q^C}$CSSMOID_APPLE_TP_RESOURCE_SIGN@{cssm_data=Q^C}$CSSMOID_APPLE_TP_REVOCATION@{cssm_data=Q^C}$CSSMOID_APPLE_TP_REVOCATION_CRL@{cssm_data=Q^C}$CSSMOID_APPLE_TP_REVOCATION_OCSP@{cssm_data=Q^C}$CSSMOID_APPLE_TP_SMIME@{cssm_data=Q^C}$CSSMOID_APPLE_TP_SSL@{cssm_data=Q^C}$CSSMOID_APPLE_TP_SW_UPDATE_SIGNING@{cssm_data=Q^C}$CSSMOID_APPLE_TP_TEST_MOBILE_STORE@{cssm_data=Q^C}$CSSMOID_APPLE_TP_TIMESTAMPING@{cssm_data=Q^C}$CSSMOID_APPLE_X509_BASIC@{cssm_data=Q^C}$CSSMOID_AliasedEntryName@{cssm_data=Q^C}$CSSMOID_AuthorityInfoAccess@{cssm_data=Q^C}$CSSMOID_AuthorityKeyIdentifier@{cssm_data=Q^C}$CSSMOID_AuthorityRevocationList@{cssm_data=Q^C}$CSSMOID_BasicConstraints@{cssm_data=Q^C}$CSSMOID_BiometricInfo@{cssm_data=Q^C}$CSSMOID_BusinessCategory@{cssm_data=Q^C}$CSSMOID_CACertificate@{cssm_data=Q^C}$CSSMOID_CSSMKeyStruct@{cssm_data=Q^C}$CSSMOID_CertIssuer@{cssm_data=Q^C}$CSSMOID_Certicom@{cssm_data=Q^C}$CSSMOID_CerticomEllCurve@{cssm_data=Q^C}$CSSMOID_CertificatePolicies@{cssm_data=Q^C}$CSSMOID_CertificateRevocationList@{cssm_data=Q^C}$CSSMOID_ChallengePassword@{cssm_data=Q^C}$CSSMOID_ClientAuth@{cssm_data=Q^C}$CSSMOID_CollectiveFacsimileTelephoneNumber@{cssm_data=Q^C}$CSSMOID_CollectiveInternationalISDNNumber@{cssm_data=Q^C}$CSSMOID_CollectiveOrganizationName@{cssm_data=Q^C}$CSSMOID_CollectiveOrganizationalUnitName@{cssm_data=Q^C}$CSSMOID_CollectivePhysicalDeliveryOfficeName@{cssm_data=Q^C}$CSSMOID_CollectivePostOfficeBox@{cssm_data=Q^C}$CSSMOID_CollectivePostalAddress@{cssm_data=Q^C}$CSSMOID_CollectivePostalCode@{cssm_data=Q^C}$CSSMOID_CollectiveStateProvinceName@{cssm_data=Q^C}$CSSMOID_CollectiveStreetAddress@{cssm_data=Q^C}$CSSMOID_CollectiveTelephoneNumber@{cssm_data=Q^C}$CSSMOID_CollectiveTelexNumber@{cssm_data=Q^C}$CSSMOID_CollectiveTelexTerminalIdentifier@{cssm_data=Q^C}$CSSMOID_CommonName@{cssm_data=Q^C}$CSSMOID_ContentType@{cssm_data=Q^C}$CSSMOID_CounterSignature@{cssm_data=Q^C}$CSSMOID_CountryName@{cssm_data=Q^C}$CSSMOID_CrlDistributionPoints@{cssm_data=Q^C}$CSSMOID_CrlNumber@{cssm_data=Q^C}$CSSMOID_CrlReason@{cssm_data=Q^C}$CSSMOID_CrossCertificatePair@{cssm_data=Q^C}$CSSMOID_DES_CBC@{cssm_data=Q^C}$CSSMOID_DH@{cssm_data=Q^C}$CSSMOID_DNQualifier@{cssm_data=Q^C}$CSSMOID_DOTMAC_CERT@{cssm_data=Q^C}$CSSMOID_DOTMAC_CERT_EMAIL_ENCRYPT@{cssm_data=Q^C}$CSSMOID_DOTMAC_CERT_EMAIL_SIGN@{cssm_data=Q^C}$CSSMOID_DOTMAC_CERT_EXTENSION@{cssm_data=Q^C}$CSSMOID_DOTMAC_CERT_IDENTITY@{cssm_data=Q^C}$CSSMOID_DOTMAC_CERT_POLICY@{cssm_data=Q^C}$CSSMOID_DOTMAC_CERT_REQ@{cssm_data=Q^C}$CSSMOID_DOTMAC_CERT_REQ_ARCHIVE_FETCH@{cssm_data=Q^C}$CSSMOID_DOTMAC_CERT_REQ_ARCHIVE_LIST@{cssm_data=Q^C}$CSSMOID_DOTMAC_CERT_REQ_ARCHIVE_REMOVE@{cssm_data=Q^C}$CSSMOID_DOTMAC_CERT_REQ_ARCHIVE_STORE@{cssm_data=Q^C}$CSSMOID_DOTMAC_CERT_REQ_EMAIL_ENCRYPT@{cssm_data=Q^C}$CSSMOID_DOTMAC_CERT_REQ_EMAIL_SIGN@{cssm_data=Q^C}$CSSMOID_DOTMAC_CERT_REQ_IDENTITY@{cssm_data=Q^C}$CSSMOID_DOTMAC_CERT_REQ_SHARED_SERVICES@{cssm_data=Q^C}$CSSMOID_DOTMAC_CERT_REQ_VALUE_ASYNC@{cssm_data=Q^C}$CSSMOID_DOTMAC_CERT_REQ_VALUE_HOSTNAME@{cssm_data=Q^C}$CSSMOID_DOTMAC_CERT_REQ_VALUE_IS_PENDING@{cssm_data=Q^C}$CSSMOID_DOTMAC_CERT_REQ_VALUE_PASSWORD@{cssm_data=Q^C}$CSSMOID_DOTMAC_CERT_REQ_VALUE_RENEW@{cssm_data=Q^C}$CSSMOID_DOTMAC_CERT_REQ_VALUE_USERNAME@{cssm_data=Q^C}$CSSMOID_DSA@{cssm_data=Q^C}$CSSMOID_DSA_CMS@{cssm_data=Q^C}$CSSMOID_DSA_JDK@{cssm_data=Q^C}$CSSMOID_DeltaCrlIndicator@{cssm_data=Q^C}$CSSMOID_Description@{cssm_data=Q^C}$CSSMOID_DestinationIndicator@{cssm_data=Q^C}$CSSMOID_DistinguishedName@{cssm_data=Q^C}$CSSMOID_DomainComponent@{cssm_data=Q^C}$CSSMOID_ECDSA_WithSHA1@{cssm_data=Q^C}$CSSMOID_ECDSA_WithSHA224@{cssm_data=Q^C}$CSSMOID_ECDSA_WithSHA256@{cssm_data=Q^C}$CSSMOID_ECDSA_WithSHA384@{cssm_data=Q^C}$CSSMOID_ECDSA_WithSHA512@{cssm_data=Q^C}$CSSMOID_ECDSA_WithSpecified@{cssm_data=Q^C}$CSSMOID_EKU_IPSec@{cssm_data=Q^C}$CSSMOID_ETSI_QCS_QC_COMPLIANCE@{cssm_data=Q^C}$CSSMOID_ETSI_QCS_QC_LIMIT_VALUE@{cssm_data=Q^C}$CSSMOID_ETSI_QCS_QC_RETENTION@{cssm_data=Q^C}$CSSMOID_ETSI_QCS_QC_SSCD@{cssm_data=Q^C}$CSSMOID_EmailAddress@{cssm_data=Q^C}$CSSMOID_EmailProtection@{cssm_data=Q^C}$CSSMOID_EnhancedSearchGuide@{cssm_data=Q^C}$CSSMOID_ExtendedCertificateAttributes@{cssm_data=Q^C}$CSSMOID_ExtendedKeyUsage@{cssm_data=Q^C}$CSSMOID_ExtendedKeyUsageAny@{cssm_data=Q^C}$CSSMOID_ExtendedUseCodeSigning@{cssm_data=Q^C}$CSSMOID_FacsimileTelephoneNumber@{cssm_data=Q^C}$CSSMOID_GenerationQualifier@{cssm_data=Q^C}$CSSMOID_GivenName@{cssm_data=Q^C}$CSSMOID_HoldInstructionCode@{cssm_data=Q^C}$CSSMOID_HouseIdentifier@{cssm_data=Q^C}$CSSMOID_InhibitAnyPolicy@{cssm_data=Q^C}$CSSMOID_Initials@{cssm_data=Q^C}$CSSMOID_InternationalISDNNumber@{cssm_data=Q^C}$CSSMOID_InvalidityDate@{cssm_data=Q^C}$CSSMOID_IssuerAltName@{cssm_data=Q^C}$CSSMOID_IssuingDistributionPoint@{cssm_data=Q^C}$CSSMOID_IssuingDistributionPoints@{cssm_data=Q^C}$CSSMOID_KERBv5_PKINIT_AUTH_DATA@{cssm_data=Q^C}$CSSMOID_KERBv5_PKINIT_DH_KEY_DATA@{cssm_data=Q^C}$CSSMOID_KERBv5_PKINIT_KP_CLIENT_AUTH@{cssm_data=Q^C}$CSSMOID_KERBv5_PKINIT_KP_KDC@{cssm_data=Q^C}$CSSMOID_KERBv5_PKINIT_RKEY_DATA@{cssm_data=Q^C}$CSSMOID_KeyUsage@{cssm_data=Q^C}$CSSMOID_KnowledgeInformation@{cssm_data=Q^C}$CSSMOID_LocalityName@{cssm_data=Q^C}$CSSMOID_MACAPPSTORE_CERT_POLICY@{cssm_data=Q^C}$CSSMOID_MACAPPSTORE_RECEIPT_CERT_POLICY@{cssm_data=Q^C}$CSSMOID_MD2@{cssm_data=Q^C}$CSSMOID_MD2WithRSA@{cssm_data=Q^C}$CSSMOID_MD4@{cssm_data=Q^C}$CSSMOID_MD4WithRSA@{cssm_data=Q^C}$CSSMOID_MD5@{cssm_data=Q^C}$CSSMOID_MD5WithRSA@{cssm_data=Q^C}$CSSMOID_MOBILE_STORE_SIGNING_POLICY@{cssm_data=Q^C}$CSSMOID_Member@{cssm_data=Q^C}$CSSMOID_MessageDigest@{cssm_data=Q^C}$CSSMOID_MicrosoftSGC@{cssm_data=Q^C}$CSSMOID_Name@{cssm_data=Q^C}$CSSMOID_NameConstraints@{cssm_data=Q^C}$CSSMOID_NetscapeCertSequence@{cssm_data=Q^C}$CSSMOID_NetscapeCertType@{cssm_data=Q^C}$CSSMOID_NetscapeSGC@{cssm_data=Q^C}$CSSMOID_OAEP_ID_PSPECIFIED@{cssm_data=Q^C}$CSSMOID_OAEP_MGF1@{cssm_data=Q^C}$CSSMOID_OCSPSigning@{cssm_data=Q^C}$CSSMOID_OID_QCS_SYNTAX_V1@{cssm_data=Q^C}$CSSMOID_OID_QCS_SYNTAX_V2@{cssm_data=Q^C}$CSSMOID_ObjectClass@{cssm_data=Q^C}$CSSMOID_OrganizationName@{cssm_data=Q^C}$CSSMOID_OrganizationalUnitName@{cssm_data=Q^C}$CSSMOID_Owner@{cssm_data=Q^C}$CSSMOID_PDA_COUNTRY_CITIZEN@{cssm_data=Q^C}$CSSMOID_PDA_COUNTRY_RESIDENCE@{cssm_data=Q^C}$CSSMOID_PDA_DATE_OF_BIRTH@{cssm_data=Q^C}$CSSMOID_PDA_GENDER@{cssm_data=Q^C}$CSSMOID_PDA_PLACE_OF_BIRTH@{cssm_data=Q^C}$CSSMOID_PKCS12_certBag@{cssm_data=Q^C}$CSSMOID_PKCS12_crlBag@{cssm_data=Q^C}$CSSMOID_PKCS12_keyBag@{cssm_data=Q^C}$CSSMOID_PKCS12_pbeWithSHAAnd128BitRC2CBC@{cssm_data=Q^C}$CSSMOID_PKCS12_pbeWithSHAAnd128BitRC4@{cssm_data=Q^C}$CSSMOID_PKCS12_pbeWithSHAAnd2Key3DESCBC@{cssm_data=Q^C}$CSSMOID_PKCS12_pbeWithSHAAnd3Key3DESCBC@{cssm_data=Q^C}$CSSMOID_PKCS12_pbeWithSHAAnd40BitRC4@{cssm_data=Q^C}$CSSMOID_PKCS12_pbewithSHAAnd40BitRC2CBC@{cssm_data=Q^C}$CSSMOID_PKCS12_safeContentsBag@{cssm_data=Q^C}$CSSMOID_PKCS12_secretBag@{cssm_data=Q^C}$CSSMOID_PKCS12_shroudedKeyBag@{cssm_data=Q^C}$CSSMOID_PKCS3@{cssm_data=Q^C}$CSSMOID_PKCS5_DES_EDE3_CBC@{cssm_data=Q^C}$CSSMOID_PKCS5_DIGEST_ALG@{cssm_data=Q^C}$CSSMOID_PKCS5_ENCRYPT_ALG@{cssm_data=Q^C}$CSSMOID_PKCS5_HMAC_SHA1@{cssm_data=Q^C}$CSSMOID_PKCS5_PBES2@{cssm_data=Q^C}$CSSMOID_PKCS5_PBKDF2@{cssm_data=Q^C}$CSSMOID_PKCS5_PBMAC1@{cssm_data=Q^C}$CSSMOID_PKCS5_RC2_CBC@{cssm_data=Q^C}$CSSMOID_PKCS5_RC5_CBC@{cssm_data=Q^C}$CSSMOID_PKCS5_pbeWithMD2AndDES@{cssm_data=Q^C}$CSSMOID_PKCS5_pbeWithMD2AndRC2@{cssm_data=Q^C}$CSSMOID_PKCS5_pbeWithMD5AndDES@{cssm_data=Q^C}$CSSMOID_PKCS5_pbeWithMD5AndRC2@{cssm_data=Q^C}$CSSMOID_PKCS5_pbeWithSHA1AndDES@{cssm_data=Q^C}$CSSMOID_PKCS5_pbeWithSHA1AndRC2@{cssm_data=Q^C}$CSSMOID_PKCS7_Data@{cssm_data=Q^C}$CSSMOID_PKCS7_DataWithAttributes@{cssm_data=Q^C}$CSSMOID_PKCS7_DigestedData@{cssm_data=Q^C}$CSSMOID_PKCS7_EncryptedData@{cssm_data=Q^C}$CSSMOID_PKCS7_EncryptedPrivateKeyInfo@{cssm_data=Q^C}$CSSMOID_PKCS7_EnvelopedData@{cssm_data=Q^C}$CSSMOID_PKCS7_SignedAndEnvelopedData@{cssm_data=Q^C}$CSSMOID_PKCS7_SignedData@{cssm_data=Q^C}$CSSMOID_PKCS9_CertTypes@{cssm_data=Q^C}$CSSMOID_PKCS9_CrlTypes@{cssm_data=Q^C}$CSSMOID_PKCS9_FriendlyName@{cssm_data=Q^C}$CSSMOID_PKCS9_Id_Ct_TSTInfo@{cssm_data=Q^C}$CSSMOID_PKCS9_LocalKeyId@{cssm_data=Q^C}$CSSMOID_PKCS9_SdsiCertificate@{cssm_data=Q^C}$CSSMOID_PKCS9_TimeStampToken@{cssm_data=Q^C}$CSSMOID_PKCS9_X509Certificate@{cssm_data=Q^C}$CSSMOID_PKCS9_X509Crl@{cssm_data=Q^C}$CSSMOID_PKIX_OCSP@{cssm_data=Q^C}$CSSMOID_PKIX_OCSP_ARCHIVE_CUTOFF@{cssm_data=Q^C}$CSSMOID_PKIX_OCSP_BASIC@{cssm_data=Q^C}$CSSMOID_PKIX_OCSP_CRL@{cssm_data=Q^C}$CSSMOID_PKIX_OCSP_NOCHECK@{cssm_data=Q^C}$CSSMOID_PKIX_OCSP_NONCE@{cssm_data=Q^C}$CSSMOID_PKIX_OCSP_RESPONSE@{cssm_data=Q^C}$CSSMOID_PKIX_OCSP_SERVICE_LOCATOR@{cssm_data=Q^C}$CSSMOID_PhysicalDeliveryOfficeName@{cssm_data=Q^C}$CSSMOID_PolicyConstraints@{cssm_data=Q^C}$CSSMOID_PolicyMappings@{cssm_data=Q^C}$CSSMOID_PostOfficeBox@{cssm_data=Q^C}$CSSMOID_PostalAddress@{cssm_data=Q^C}$CSSMOID_PostalCode@{cssm_data=Q^C}$CSSMOID_PreferredDeliveryMethod@{cssm_data=Q^C}$CSSMOID_PresentationAddress@{cssm_data=Q^C}$CSSMOID_PrivateKeyUsagePeriod@{cssm_data=Q^C}$CSSMOID_ProtocolInformation@{cssm_data=Q^C}$CSSMOID_QC_Statements@{cssm_data=Q^C}$CSSMOID_QT_CPS@{cssm_data=Q^C}$CSSMOID_QT_UNOTICE@{cssm_data=Q^C}$CSSMOID_RSA@{cssm_data=Q^C}$CSSMOID_RSAWithOAEP@{cssm_data=Q^C}$CSSMOID_RegisteredAddress@{cssm_data=Q^C}$CSSMOID_RoleOccupant@{cssm_data=Q^C}$CSSMOID_SHA1@{cssm_data=Q^C}$CSSMOID_SHA1WithDSA@{cssm_data=Q^C}$CSSMOID_SHA1WithDSA_CMS@{cssm_data=Q^C}$CSSMOID_SHA1WithDSA_JDK@{cssm_data=Q^C}$CSSMOID_SHA1WithRSA@{cssm_data=Q^C}$CSSMOID_SHA1WithRSA_OIW@{cssm_data=Q^C}$CSSMOID_SHA224@{cssm_data=Q^C}$CSSMOID_SHA224WithRSA@{cssm_data=Q^C}$CSSMOID_SHA256@{cssm_data=Q^C}$CSSMOID_SHA256WithRSA@{cssm_data=Q^C}$CSSMOID_SHA384@{cssm_data=Q^C}$CSSMOID_SHA384WithRSA@{cssm_data=Q^C}$CSSMOID_SHA512@{cssm_data=Q^C}$CSSMOID_SHA512WithRSA@{cssm_data=Q^C}$CSSMOID_SearchGuide@{cssm_data=Q^C}$CSSMOID_SeeAlso@{cssm_data=Q^C}$CSSMOID_SerialNumber@{cssm_data=Q^C}$CSSMOID_ServerAuth@{cssm_data=Q^C}$CSSMOID_SigningTime@{cssm_data=Q^C}$CSSMOID_StateProvinceName@{cssm_data=Q^C}$CSSMOID_StreetAddress@{cssm_data=Q^C}$CSSMOID_SubjectAltName@{cssm_data=Q^C}$CSSMOID_SubjectDirectoryAttributes@{cssm_data=Q^C}$CSSMOID_SubjectEmailAddress@{cssm_data=Q^C}$CSSMOID_SubjectInfoAccess@{cssm_data=Q^C}$CSSMOID_SubjectKeyIdentifier@{cssm_data=Q^C}$CSSMOID_SubjectPicture@{cssm_data=Q^C}$CSSMOID_SubjectSignatureBitmap@{cssm_data=Q^C}$CSSMOID_SupportedApplicationContext@{cssm_data=Q^C}$CSSMOID_Surname@{cssm_data=Q^C}$CSSMOID_TEST_MOBILE_STORE_SIGNING_POLICY@{cssm_data=Q^C}$CSSMOID_TelephoneNumber@{cssm_data=Q^C}$CSSMOID_TelexNumber@{cssm_data=Q^C}$CSSMOID_TelexTerminalIdentifier@{cssm_data=Q^C}$CSSMOID_TimeStamping@{cssm_data=Q^C}$CSSMOID_Title@{cssm_data=Q^C}$CSSMOID_UniqueIdentifier@{cssm_data=Q^C}$CSSMOID_UniqueMember@{cssm_data=Q^C}$CSSMOID_UnstructuredAddress@{cssm_data=Q^C}$CSSMOID_UnstructuredName@{cssm_data=Q^C}$CSSMOID_UseExemptions@{cssm_data=Q^C}$CSSMOID_UserCertificate@{cssm_data=Q^C}$CSSMOID_UserID@{cssm_data=Q^C}$CSSMOID_UserPassword@{cssm_data=Q^C}$CSSMOID_X509V1CRLIssuerNameCStruct@{cssm_data=Q^C}$CSSMOID_X509V1CRLIssuerNameLDAP@{cssm_data=Q^C}$CSSMOID_X509V1CRLIssuerStruct@{cssm_data=Q^C}$CSSMOID_X509V1CRLNextUpdate@{cssm_data=Q^C}$CSSMOID_X509V1CRLNumberOfRevokedCertEntries@{cssm_data=Q^C}$CSSMOID_X509V1CRLRevokedCertificatesCStruct@{cssm_data=Q^C}$CSSMOID_X509V1CRLRevokedCertificatesStruct@{cssm_data=Q^C}$CSSMOID_X509V1CRLRevokedEntryCStruct@{cssm_data=Q^C}$CSSMOID_X509V1CRLRevokedEntryRevocationDate@{cssm_data=Q^C}$CSSMOID_X509V1CRLRevokedEntrySerialNumber@{cssm_data=Q^C}$CSSMOID_X509V1CRLRevokedEntryStruct@{cssm_data=Q^C}$CSSMOID_X509V1CRLThisUpdate@{cssm_data=Q^C}$CSSMOID_X509V1CertificateIssuerUniqueId@{cssm_data=Q^C}$CSSMOID_X509V1CertificateSubjectUniqueId@{cssm_data=Q^C}$CSSMOID_X509V1IssuerName@{cssm_data=Q^C}$CSSMOID_X509V1IssuerNameCStruct@{cssm_data=Q^C}$CSSMOID_X509V1IssuerNameLDAP@{cssm_data=Q^C}$CSSMOID_X509V1IssuerNameStd@{cssm_data=Q^C}$CSSMOID_X509V1SerialNumber@{cssm_data=Q^C}$CSSMOID_X509V1Signature@{cssm_data=Q^C}$CSSMOID_X509V1SignatureAlgorithm@{cssm_data=Q^C}$CSSMOID_X509V1SignatureAlgorithmParameters@{cssm_data=Q^C}$CSSMOID_X509V1SignatureAlgorithmTBS@{cssm_data=Q^C}$CSSMOID_X509V1SignatureCStruct@{cssm_data=Q^C}$CSSMOID_X509V1SignatureStruct@{cssm_data=Q^C}$CSSMOID_X509V1SubjectName@{cssm_data=Q^C}$CSSMOID_X509V1SubjectNameCStruct@{cssm_data=Q^C}$CSSMOID_X509V1SubjectNameLDAP@{cssm_data=Q^C}$CSSMOID_X509V1SubjectNameStd@{cssm_data=Q^C}$CSSMOID_X509V1SubjectPublicKey@{cssm_data=Q^C}$CSSMOID_X509V1SubjectPublicKeyAlgorithm@{cssm_data=Q^C}$CSSMOID_X509V1SubjectPublicKeyAlgorithmParameters@{cssm_data=Q^C}$CSSMOID_X509V1SubjectPublicKeyCStruct@{cssm_data=Q^C}$CSSMOID_X509V1ValidityNotAfter@{cssm_data=Q^C}$CSSMOID_X509V1ValidityNotBefore@{cssm_data=Q^C}$CSSMOID_X509V1Version@{cssm_data=Q^C}$CSSMOID_X509V2CRLAllExtensionsCStruct@{cssm_data=Q^C}$CSSMOID_X509V2CRLAllExtensionsStruct@{cssm_data=Q^C}$CSSMOID_X509V2CRLExtensionCritical@{cssm_data=Q^C}$CSSMOID_X509V2CRLExtensionId@{cssm_data=Q^C}$CSSMOID_X509V2CRLExtensionType@{cssm_data=Q^C}$CSSMOID_X509V2CRLNumberOfExtensions@{cssm_data=Q^C}$CSSMOID_X509V2CRLRevokedEntryAllExtensionsCStruct@{cssm_data=Q^C}$CSSMOID_X509V2CRLRevokedEntryAllExtensionsStruct@{cssm_data=Q^C}$CSSMOID_X509V2CRLRevokedEntryExtensionCritical@{cssm_data=Q^C}$CSSMOID_X509V2CRLRevokedEntryExtensionId@{cssm_data=Q^C}$CSSMOID_X509V2CRLRevokedEntryExtensionType@{cssm_data=Q^C}$CSSMOID_X509V2CRLRevokedEntryExtensionValue@{cssm_data=Q^C}$CSSMOID_X509V2CRLRevokedEntryNumberOfExtensions@{cssm_data=Q^C}$CSSMOID_X509V2CRLRevokedEntrySingleExtensionCStruct@{cssm_data=Q^C}$CSSMOID_X509V2CRLRevokedEntrySingleExtensionStruct@{cssm_data=Q^C}$CSSMOID_X509V2CRLSignedCrlCStruct@{cssm_data=Q^C}$CSSMOID_X509V2CRLSignedCrlStruct@{cssm_data=Q^C}$CSSMOID_X509V2CRLSingleExtensionCStruct@{cssm_data=Q^C}$CSSMOID_X509V2CRLSingleExtensionStruct@{cssm_data=Q^C}$CSSMOID_X509V2CRLTbsCertListCStruct@{cssm_data=Q^C}$CSSMOID_X509V2CRLTbsCertListStruct@{cssm_data=Q^C}$CSSMOID_X509V2CRLVersion@{cssm_data=Q^C}$CSSMOID_X509V3Certificate@{cssm_data=Q^C}$CSSMOID_X509V3CertificateCStruct@{cssm_data=Q^C}$CSSMOID_X509V3CertificateExtensionCStruct@{cssm_data=Q^C}$CSSMOID_X509V3CertificateExtensionCritical@{cssm_data=Q^C}$CSSMOID_X509V3CertificateExtensionId@{cssm_data=Q^C}$CSSMOID_X509V3CertificateExtensionStruct@{cssm_data=Q^C}$CSSMOID_X509V3CertificateExtensionType@{cssm_data=Q^C}$CSSMOID_X509V3CertificateExtensionValue@{cssm_data=Q^C}$CSSMOID_X509V3CertificateExtensionsCStruct@{cssm_data=Q^C}$CSSMOID_X509V3CertificateExtensionsStruct@{cssm_data=Q^C}$CSSMOID_X509V3CertificateNumberOfExtensions@{cssm_data=Q^C}$CSSMOID_X509V3SignedCertificate@{cssm_data=Q^C}$CSSMOID_X509V3SignedCertificateCStruct@{cssm_data=Q^C}$CSSMOID_X9_62@{cssm_data=Q^C}$CSSMOID_X9_62_C_TwoCurve@{cssm_data=Q^C}$CSSMOID_X9_62_EllCurve@{cssm_data=Q^C}$CSSMOID_X9_62_FieldType@{cssm_data=Q^C}$CSSMOID_X9_62_PrimeCurve@{cssm_data=Q^C}$CSSMOID_X9_62_PubKeyType@{cssm_data=Q^C}$CSSMOID_X9_62_SigType@{cssm_data=Q^C}$CSSMOID_X_121Address@{cssm_data=Q^C}$CSSMOID_ecPublicKey@{cssm_data=Q^C}$CSSMOID_secp112r1@{cssm_data=Q^C}$CSSMOID_secp112r2@{cssm_data=Q^C}$CSSMOID_secp128r1@{cssm_data=Q^C}$CSSMOID_secp128r2@{cssm_data=Q^C}$CSSMOID_secp160k1@{cssm_data=Q^C}$CSSMOID_secp160r1@{cssm_data=Q^C}$CSSMOID_secp160r2@{cssm_data=Q^C}$CSSMOID_secp192k1@{cssm_data=Q^C}$CSSMOID_secp192r1@{cssm_data=Q^C}$CSSMOID_secp224k1@{cssm_data=Q^C}$CSSMOID_secp224r1@{cssm_data=Q^C}$CSSMOID_secp256k1@{cssm_data=Q^C}$CSSMOID_secp256r1@{cssm_data=Q^C}$CSSMOID_secp384r1@{cssm_data=Q^C}$CSSMOID_secp521r1@{cssm_data=Q^C}$CSSMOID_sect113r1@{cssm_data=Q^C}$CSSMOID_sect113r2@{cssm_data=Q^C}$CSSMOID_sect131r1@{cssm_data=Q^C}$CSSMOID_sect131r2@{cssm_data=Q^C}$CSSMOID_sect163k1@{cssm_data=Q^C}$CSSMOID_sect163r1@{cssm_data=Q^C}$CSSMOID_sect163r2@{cssm_data=Q^C}$CSSMOID_sect193r1@{cssm_data=Q^C}$CSSMOID_sect193r2@{cssm_data=Q^C}$CSSMOID_sect233k1@{cssm_data=Q^C}$CSSMOID_sect233r1@{cssm_data=Q^C}$CSSMOID_sect239k1@{cssm_data=Q^C}$CSSMOID_sect283k1@{cssm_data=Q^C}$CSSMOID_sect283r1@{cssm_data=Q^C}$CSSMOID_sect409k1@{cssm_data=Q^C}$CSSMOID_sect409r1@{cssm_data=Q^C}$CSSMOID_sect571k1@{cssm_data=Q^C}$CSSMOID_sect571r1@{cssm_data=Q^C}$gGuidAppleCSP@{cssm_guid=ISS[8C]}$gGuidAppleCSPDL@{cssm_guid=ISS[8C]}$gGuidAppleDotMacDL@{cssm_guid=ISS[8C]}$gGuidAppleDotMacTP@{cssm_guid=ISS[8C]}$gGuidAppleFileDL@{cssm_guid=ISS[8C]}$gGuidAppleLDAPDL@{cssm_guid=ISS[8C]}$gGuidAppleSdCSPDL@{cssm_guid=ISS[8C]}$gGuidAppleX509CL@{cssm_guid=ISS[8C]}$gGuidAppleX509TP@{cssm_guid=ISS[8C]}$gGuidCssm@{cssm_guid=ISS[8C]}$kCMSEncoderDigestAlgorithmSHA1@^{__CFString=}$kCMSEncoderDigestAlgorithmSHA256@^{__CFString=}$kSSLSessionConfig_3DES_fallback@^{__CFString=}$kSSLSessionConfig_ATSv1@^{__CFString=}$kSSLSessionConfig_ATSv1_noPFS@^{__CFString=}$kSSLSessionConfig_RC4_fallback@^{__CFString=}$kSSLSessionConfig_TLSv1_3DES_fallback@^{__CFString=}$kSSLSessionConfig_TLSv1_RC4_fallback@^{__CFString=}$kSSLSessionConfig_TLSv1_fallback@^{__CFString=}$kSSLSessionConfig_anonymous@^{__CFString=}$kSSLSessionConfig_default@^{__CFString=}$kSSLSessionConfig_legacy@^{__CFString=}$kSSLSessionConfig_legacy_DHE@^{__CFString=}$kSSLSessionConfig_standard@^{__CFString=}$kSecACLAuthorizationAny@^{__CFString=}$kSecACLAuthorizationChangeACL@^{__CFString=}$kSecACLAuthorizationChangeOwner@^{__CFString=}$kSecACLAuthorizationDecrypt@^{__CFString=}$kSecACLAuthorizationDelete@^{__CFString=}$kSecACLAuthorizationDerive@^{__CFString=}$kSecACLAuthorizationEncrypt@^{__CFString=}$kSecACLAuthorizationExportClear@^{__CFString=}$kSecACLAuthorizationExportWrapped@^{__CFString=}$kSecACLAuthorizationGenKey@^{__CFString=}$kSecACLAuthorizationImportClear@^{__CFString=}$kSecACLAuthorizationImportWrapped@^{__CFString=}$kSecACLAuthorizationIntegrity@^{__CFString=}$kSecACLAuthorizationKeychainCreate@^{__CFString=}$kSecACLAuthorizationKeychainDelete@^{__CFString=}$kSecACLAuthorizationKeychainItemDelete@^{__CFString=}$kSecACLAuthorizationKeychainItemInsert@^{__CFString=}$kSecACLAuthorizationKeychainItemModify@^{__CFString=}$kSecACLAuthorizationKeychainItemRead@^{__CFString=}$kSecACLAuthorizationLogin@^{__CFString=}$kSecACLAuthorizationMAC@^{__CFString=}$kSecACLAuthorizationPartitionID@^{__CFString=}$kSecACLAuthorizationSign@^{__CFString=}$kSecAttrAccess@^{__CFString=}$kSecAttrAccessControl@^{__CFString=}$kSecAttrAccessGroup@^{__CFString=}$kSecAttrAccessGroupToken@^{__CFString=}$kSecAttrAccessible@^{__CFString=}$kSecAttrAccessibleAfterFirstUnlock@^{__CFString=}$kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly@^{__CFString=}$kSecAttrAccessibleAlways@^{__CFString=}$kSecAttrAccessibleAlwaysThisDeviceOnly@^{__CFString=}$kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly@^{__CFString=}$kSecAttrAccessibleWhenUnlocked@^{__CFString=}$kSecAttrAccessibleWhenUnlockedThisDeviceOnly@^{__CFString=}$kSecAttrAccount@^{__CFString=}$kSecAttrApplicationLabel@^{__CFString=}$kSecAttrApplicationTag@^{__CFString=}$kSecAttrAuthenticationType@^{__CFString=}$kSecAttrAuthenticationTypeDPA@^{__CFString=}$kSecAttrAuthenticationTypeDefault@^{__CFString=}$kSecAttrAuthenticationTypeHTMLForm@^{__CFString=}$kSecAttrAuthenticationTypeHTTPBasic@^{__CFString=}$kSecAttrAuthenticationTypeHTTPDigest@^{__CFString=}$kSecAttrAuthenticationTypeMSN@^{__CFString=}$kSecAttrAuthenticationTypeNTLM@^{__CFString=}$kSecAttrAuthenticationTypeRPA@^{__CFString=}$kSecAttrCanDecrypt@^{__CFString=}$kSecAttrCanDerive@^{__CFString=}$kSecAttrCanEncrypt@^{__CFString=}$kSecAttrCanSign@^{__CFString=}$kSecAttrCanUnwrap@^{__CFString=}$kSecAttrCanVerify@^{__CFString=}$kSecAttrCanWrap@^{__CFString=}$kSecAttrCertificateEncoding@^{__CFString=}$kSecAttrCertificateType@^{__CFString=}$kSecAttrComment@^{__CFString=}$kSecAttrCreationDate@^{__CFString=}$kSecAttrCreator@^{__CFString=}$kSecAttrDescription@^{__CFString=}$kSecAttrEffectiveKeySize@^{__CFString=}$kSecAttrGeneric@^{__CFString=}$kSecAttrIsExtractable@^{__CFString=}$kSecAttrIsInvisible@^{__CFString=}$kSecAttrIsNegative@^{__CFString=}$kSecAttrIsPermanent@^{__CFString=}$kSecAttrIsSensitive@^{__CFString=}$kSecAttrIssuer@^{__CFString=}$kSecAttrKeyClass@^{__CFString=}$kSecAttrKeyClassPrivate@^{__CFString=}$kSecAttrKeyClassPublic@^{__CFString=}$kSecAttrKeyClassSymmetric@^{__CFString=}$kSecAttrKeySizeInBits@^{__CFString=}$kSecAttrKeyType@^{__CFString=}$kSecAttrKeyType3DES@^{__CFString=}$kSecAttrKeyTypeAES@^{__CFString=}$kSecAttrKeyTypeCAST@^{__CFString=}$kSecAttrKeyTypeDES@^{__CFString=}$kSecAttrKeyTypeDSA@^{__CFString=}$kSecAttrKeyTypeEC@^{__CFString=}$kSecAttrKeyTypeECDSA@^{__CFString=}$kSecAttrKeyTypeECSECPrimeRandom@^{__CFString=}$kSecAttrKeyTypeRC2@^{__CFString=}$kSecAttrKeyTypeRC4@^{__CFString=}$kSecAttrKeyTypeRSA@^{__CFString=}$kSecAttrLabel@^{__CFString=}$kSecAttrModificationDate@^{__CFString=}$kSecAttrPRF@^{__CFString=}$kSecAttrPRFHmacAlgSHA1@^{__CFString=}$kSecAttrPRFHmacAlgSHA224@^{__CFString=}$kSecAttrPRFHmacAlgSHA256@^{__CFString=}$kSecAttrPRFHmacAlgSHA384@^{__CFString=}$kSecAttrPRFHmacAlgSHA512@^{__CFString=}$kSecAttrPath@^{__CFString=}$kSecAttrPort@^{__CFString=}$kSecAttrProtocol@^{__CFString=}$kSecAttrProtocolAFP@^{__CFString=}$kSecAttrProtocolAppleTalk@^{__CFString=}$kSecAttrProtocolDAAP@^{__CFString=}$kSecAttrProtocolEPPC@^{__CFString=}$kSecAttrProtocolFTP@^{__CFString=}$kSecAttrProtocolFTPAccount@^{__CFString=}$kSecAttrProtocolFTPProxy@^{__CFString=}$kSecAttrProtocolFTPS@^{__CFString=}$kSecAttrProtocolHTTP@^{__CFString=}$kSecAttrProtocolHTTPProxy@^{__CFString=}$kSecAttrProtocolHTTPS@^{__CFString=}$kSecAttrProtocolHTTPSProxy@^{__CFString=}$kSecAttrProtocolIMAP@^{__CFString=}$kSecAttrProtocolIMAPS@^{__CFString=}$kSecAttrProtocolIPP@^{__CFString=}$kSecAttrProtocolIRC@^{__CFString=}$kSecAttrProtocolIRCS@^{__CFString=}$kSecAttrProtocolLDAP@^{__CFString=}$kSecAttrProtocolLDAPS@^{__CFString=}$kSecAttrProtocolNNTP@^{__CFString=}$kSecAttrProtocolNNTPS@^{__CFString=}$kSecAttrProtocolPOP3@^{__CFString=}$kSecAttrProtocolPOP3S@^{__CFString=}$kSecAttrProtocolRTSP@^{__CFString=}$kSecAttrProtocolRTSPProxy@^{__CFString=}$kSecAttrProtocolSMB@^{__CFString=}$kSecAttrProtocolSMTP@^{__CFString=}$kSecAttrProtocolSOCKS@^{__CFString=}$kSecAttrProtocolSSH@^{__CFString=}$kSecAttrProtocolTelnet@^{__CFString=}$kSecAttrProtocolTelnetS@^{__CFString=}$kSecAttrPublicKeyHash@^{__CFString=}$kSecAttrRounds@^{__CFString=}$kSecAttrSalt@^{__CFString=}$kSecAttrSecurityDomain@^{__CFString=}$kSecAttrSerialNumber@^{__CFString=}$kSecAttrServer@^{__CFString=}$kSecAttrService@^{__CFString=}$kSecAttrSubject@^{__CFString=}$kSecAttrSubjectKeyID@^{__CFString=}$kSecAttrSynchronizable@^{__CFString=}$kSecAttrSynchronizableAny@^{__CFString=}$kSecAttrTokenID@^{__CFString=}$kSecAttrTokenIDSecureEnclave@^{__CFString=}$kSecAttrType@^{__CFString=}$kSecBase32Encoding@^{__CFString=}$kSecBase64Encoding@^{__CFString=}$kSecCFErrorArchitecture@^{__CFString=}$kSecCFErrorGuestAttributes@^{__CFString=}$kSecCFErrorInfoPlist@^{__CFString=}$kSecCFErrorPath@^{__CFString=}$kSecCFErrorPattern@^{__CFString=}$kSecCFErrorRequirementSyntax@^{__CFString=}$kSecCFErrorResourceAdded@^{__CFString=}$kSecCFErrorResourceAltered@^{__CFString=}$kSecCFErrorResourceMissing@^{__CFString=}$kSecCFErrorResourceSeal@^{__CFString=}$kSecCFErrorResourceSideband@^{__CFString=}$kSecCertificateUsageDeriveAndSign@^{__CFString=}$kSecCertificateUsageSigning@^{__CFString=}$kSecCertificateUsageSigningAndEncrypting@^{__CFString=}$kSecClass@^{__CFString=}$kSecClassCertificate@^{__CFString=}$kSecClassGenericPassword@^{__CFString=}$kSecClassIdentity@^{__CFString=}$kSecClassInternetPassword@^{__CFString=}$kSecClassKey@^{__CFString=}$kSecCodeAttributeArchitecture@^{__CFString=}$kSecCodeAttributeBundleVersion@^{__CFString=}$kSecCodeAttributeSubarchitecture@^{__CFString=}$kSecCodeAttributeUniversalFileOffset@^{__CFString=}$kSecCodeInfoCMS@^{__CFString=}$kSecCodeInfoCdHashes@^{__CFString=}$kSecCodeInfoCertificates@^{__CFString=}$kSecCodeInfoChangedFiles@^{__CFString=}$kSecCodeInfoDesignatedRequirement@^{__CFString=}$kSecCodeInfoDigestAlgorithm@^{__CFString=}$kSecCodeInfoDigestAlgorithms@^{__CFString=}$kSecCodeInfoEntitlements@^{__CFString=}$kSecCodeInfoEntitlementsDict@^{__CFString=}$kSecCodeInfoFlags@^{__CFString=}$kSecCodeInfoFormat@^{__CFString=}$kSecCodeInfoIdentifier@^{__CFString=}$kSecCodeInfoImplicitDesignatedRequirement@^{__CFString=}$kSecCodeInfoMainExecutable@^{__CFString=}$kSecCodeInfoPList@^{__CFString=}$kSecCodeInfoPlatformIdentifier@^{__CFString=}$kSecCodeInfoRequirementData@^{__CFString=}$kSecCodeInfoRequirements@^{__CFString=}$kSecCodeInfoSource@^{__CFString=}$kSecCodeInfoStatus@^{__CFString=}$kSecCodeInfoTeamIdentifier@^{__CFString=}$kSecCodeInfoTime@^{__CFString=}$kSecCodeInfoTimestamp@^{__CFString=}$kSecCodeInfoTrust@^{__CFString=}$kSecCodeInfoUnique@^{__CFString=}$kSecCompressionRatio@^{__CFString=}$kSecDecodeTypeAttribute@^{__CFString=}$kSecDigestHMACKeyAttribute@^{__CFString=}$kSecDigestHMACMD5@^{__CFString=}$kSecDigestHMACSHA1@^{__CFString=}$kSecDigestHMACSHA2@^{__CFString=}$kSecDigestLengthAttribute@^{__CFString=}$kSecDigestMD2@^{__CFString=}$kSecDigestMD4@^{__CFString=}$kSecDigestMD5@^{__CFString=}$kSecDigestSHA1@^{__CFString=}$kSecDigestSHA2@^{__CFString=}$kSecDigestTypeAttribute@^{__CFString=}$kSecEncodeLineLengthAttribute@^{__CFString=}$kSecEncodeTypeAttribute@^{__CFString=}$kSecEncryptKey@^{__CFString=}$kSecEncryptionMode@^{__CFString=}$kSecGuestAttributeArchitecture@^{__CFString=}$kSecGuestAttributeAudit@^{__CFString=}$kSecGuestAttributeCanonical@^{__CFString=}$kSecGuestAttributeDynamicCode@^{__CFString=}$kSecGuestAttributeDynamicCodeInfoPlist@^{__CFString=}$kSecGuestAttributeHash@^{__CFString=}$kSecGuestAttributeMachPort@^{__CFString=}$kSecGuestAttributePid@^{__CFString=}$kSecGuestAttributeSubarchitecture@^{__CFString=}$kSecIVKey@^{__CFString=}$kSecIdentityDomainDefault@^{__CFString=}$kSecIdentityDomainKerberosKDC@^{__CFString=}$kSecImportExportAccess@^{__CFString=}$kSecImportExportKeychain@^{__CFString=}$kSecImportExportPassphrase@^{__CFString=}$kSecImportItemCertChain@^{__CFString=}$kSecImportItemIdentity@^{__CFString=}$kSecImportItemKeyID@^{__CFString=}$kSecImportItemLabel@^{__CFString=}$kSecImportItemTrust@^{__CFString=}$kSecInputIsAttributeName@^{__CFString=}$kSecInputIsDigest@^{__CFString=}$kSecInputIsPlainText@^{__CFString=}$kSecInputIsRaw@^{__CFString=}$kSecKeyAlgorithmECDHKeyExchangeCofactor@^{__CFString=}$kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA1@^{__CFString=}$kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA224@^{__CFString=}$kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA256@^{__CFString=}$kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA384@^{__CFString=}$kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA512@^{__CFString=}$kSecKeyAlgorithmECDHKeyExchangeStandard@^{__CFString=}$kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA1@^{__CFString=}$kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA224@^{__CFString=}$kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA256@^{__CFString=}$kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA384@^{__CFString=}$kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA512@^{__CFString=}$kSecKeyAlgorithmECDSASignatureDigestX962@^{__CFString=}$kSecKeyAlgorithmECDSASignatureDigestX962SHA1@^{__CFString=}$kSecKeyAlgorithmECDSASignatureDigestX962SHA224@^{__CFString=}$kSecKeyAlgorithmECDSASignatureDigestX962SHA256@^{__CFString=}$kSecKeyAlgorithmECDSASignatureDigestX962SHA384@^{__CFString=}$kSecKeyAlgorithmECDSASignatureDigestX962SHA512@^{__CFString=}$kSecKeyAlgorithmECDSASignatureMessageX962SHA1@^{__CFString=}$kSecKeyAlgorithmECDSASignatureMessageX962SHA224@^{__CFString=}$kSecKeyAlgorithmECDSASignatureMessageX962SHA256@^{__CFString=}$kSecKeyAlgorithmECDSASignatureMessageX962SHA384@^{__CFString=}$kSecKeyAlgorithmECDSASignatureMessageX962SHA512@^{__CFString=}$kSecKeyAlgorithmECDSASignatureRFC4754@^{__CFString=}$kSecKeyAlgorithmECIESEncryptionCofactorX963SHA1AESGCM@^{__CFString=}$kSecKeyAlgorithmECIESEncryptionCofactorX963SHA224AESGCM@^{__CFString=}$kSecKeyAlgorithmECIESEncryptionCofactorX963SHA256AESGCM@^{__CFString=}$kSecKeyAlgorithmECIESEncryptionCofactorX963SHA384AESGCM@^{__CFString=}$kSecKeyAlgorithmECIESEncryptionCofactorX963SHA512AESGCM@^{__CFString=}$kSecKeyAlgorithmECIESEncryptionStandardX963SHA1AESGCM@^{__CFString=}$kSecKeyAlgorithmECIESEncryptionStandardX963SHA224AESGCM@^{__CFString=}$kSecKeyAlgorithmECIESEncryptionStandardX963SHA256AESGCM@^{__CFString=}$kSecKeyAlgorithmECIESEncryptionStandardX963SHA384AESGCM@^{__CFString=}$kSecKeyAlgorithmECIESEncryptionStandardX963SHA512AESGCM@^{__CFString=}$kSecKeyAlgorithmRSAEncryptionOAEPSHA1@^{__CFString=}$kSecKeyAlgorithmRSAEncryptionOAEPSHA1AESGCM@^{__CFString=}$kSecKeyAlgorithmRSAEncryptionOAEPSHA224@^{__CFString=}$kSecKeyAlgorithmRSAEncryptionOAEPSHA224AESGCM@^{__CFString=}$kSecKeyAlgorithmRSAEncryptionOAEPSHA256@^{__CFString=}$kSecKeyAlgorithmRSAEncryptionOAEPSHA256AESGCM@^{__CFString=}$kSecKeyAlgorithmRSAEncryptionOAEPSHA384@^{__CFString=}$kSecKeyAlgorithmRSAEncryptionOAEPSHA384AESGCM@^{__CFString=}$kSecKeyAlgorithmRSAEncryptionOAEPSHA512@^{__CFString=}$kSecKeyAlgorithmRSAEncryptionOAEPSHA512AESGCM@^{__CFString=}$kSecKeyAlgorithmRSAEncryptionPKCS1@^{__CFString=}$kSecKeyAlgorithmRSAEncryptionRaw@^{__CFString=}$kSecKeyAlgorithmRSASignatureDigestPKCS1v15Raw@^{__CFString=}$kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA1@^{__CFString=}$kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA224@^{__CFString=}$kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA256@^{__CFString=}$kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA384@^{__CFString=}$kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA512@^{__CFString=}$kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA1@^{__CFString=}$kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA224@^{__CFString=}$kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA256@^{__CFString=}$kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA384@^{__CFString=}$kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA512@^{__CFString=}$kSecKeyAlgorithmRSASignatureRaw@^{__CFString=}$kSecKeyAttributeName@^{__CFString=}$kSecKeyKeyExchangeParameterRequestedSize@^{__CFString=}$kSecKeyKeyExchangeParameterSharedInfo@^{__CFString=}$kSecLineLength64@^{__CFString=}$kSecLineLength76@^{__CFString=}$kSecMatchCaseInsensitive@^{__CFString=}$kSecMatchDiacriticInsensitive@^{__CFString=}$kSecMatchEmailAddressIfPresent@^{__CFString=}$kSecMatchIssuers@^{__CFString=}$kSecMatchItemList@^{__CFString=}$kSecMatchLimit@^{__CFString=}$kSecMatchLimitAll@^{__CFString=}$kSecMatchLimitOne@^{__CFString=}$kSecMatchPolicy@^{__CFString=}$kSecMatchSearchList@^{__CFString=}$kSecMatchSubjectContains@^{__CFString=}$kSecMatchSubjectEndsWith@^{__CFString=}$kSecMatchSubjectStartsWith@^{__CFString=}$kSecMatchSubjectWholeString@^{__CFString=}$kSecMatchTrustedOnly@^{__CFString=}$kSecMatchValidOnDate@^{__CFString=}$kSecMatchWidthInsensitive@^{__CFString=}$kSecModeCBCKey@^{__CFString=}$kSecModeCFBKey@^{__CFString=}$kSecModeECBKey@^{__CFString=}$kSecModeNoneKey@^{__CFString=}$kSecModeOFBKey@^{__CFString=}$kSecOAEPEncodingParametersAttributeName@^{__CFString=}$kSecOAEPMGF1DigestAlgorithmAttributeName@^{__CFString=}$kSecOAEPMessageLengthAttributeName@^{__CFString=}$kSecOIDADC_CERT_POLICY@^{__CFString=}$kSecOIDAPPLE_CERT_POLICY@^{__CFString=}$kSecOIDAPPLE_EKU_CODE_SIGNING@^{__CFString=}$kSecOIDAPPLE_EKU_CODE_SIGNING_DEV@^{__CFString=}$kSecOIDAPPLE_EKU_ICHAT_ENCRYPTION@^{__CFString=}$kSecOIDAPPLE_EKU_ICHAT_SIGNING@^{__CFString=}$kSecOIDAPPLE_EKU_RESOURCE_SIGNING@^{__CFString=}$kSecOIDAPPLE_EKU_SYSTEM_IDENTITY@^{__CFString=}$kSecOIDAPPLE_EXTENSION@^{__CFString=}$kSecOIDAPPLE_EXTENSION_AAI_INTERMEDIATE@^{__CFString=}$kSecOIDAPPLE_EXTENSION_ADC_APPLE_SIGNING@^{__CFString=}$kSecOIDAPPLE_EXTENSION_ADC_DEV_SIGNING@^{__CFString=}$kSecOIDAPPLE_EXTENSION_APPLEID_INTERMEDIATE@^{__CFString=}$kSecOIDAPPLE_EXTENSION_APPLE_SIGNING@^{__CFString=}$kSecOIDAPPLE_EXTENSION_CODE_SIGNING@^{__CFString=}$kSecOIDAPPLE_EXTENSION_INTERMEDIATE_MARKER@^{__CFString=}$kSecOIDAPPLE_EXTENSION_ITMS_INTERMEDIATE@^{__CFString=}$kSecOIDAPPLE_EXTENSION_WWDR_INTERMEDIATE@^{__CFString=}$kSecOIDAuthorityInfoAccess@^{__CFString=}$kSecOIDAuthorityKeyIdentifier@^{__CFString=}$kSecOIDBasicConstraints@^{__CFString=}$kSecOIDBiometricInfo@^{__CFString=}$kSecOIDCSSMKeyStruct@^{__CFString=}$kSecOIDCertIssuer@^{__CFString=}$kSecOIDCertificatePolicies@^{__CFString=}$kSecOIDClientAuth@^{__CFString=}$kSecOIDCollectiveStateProvinceName@^{__CFString=}$kSecOIDCollectiveStreetAddress@^{__CFString=}$kSecOIDCommonName@^{__CFString=}$kSecOIDCountryName@^{__CFString=}$kSecOIDCrlDistributionPoints@^{__CFString=}$kSecOIDCrlNumber@^{__CFString=}$kSecOIDCrlReason@^{__CFString=}$kSecOIDDOTMAC_CERT_EMAIL_ENCRYPT@^{__CFString=}$kSecOIDDOTMAC_CERT_EMAIL_SIGN@^{__CFString=}$kSecOIDDOTMAC_CERT_EXTENSION@^{__CFString=}$kSecOIDDOTMAC_CERT_IDENTITY@^{__CFString=}$kSecOIDDOTMAC_CERT_POLICY@^{__CFString=}$kSecOIDDeltaCrlIndicator@^{__CFString=}$kSecOIDDescription@^{__CFString=}$kSecOIDEKU_IPSec@^{__CFString=}$kSecOIDEmailAddress@^{__CFString=}$kSecOIDEmailProtection@^{__CFString=}$kSecOIDExtendedKeyUsage@^{__CFString=}$kSecOIDExtendedKeyUsageAny@^{__CFString=}$kSecOIDExtendedUseCodeSigning@^{__CFString=}$kSecOIDGivenName@^{__CFString=}$kSecOIDHoldInstructionCode@^{__CFString=}$kSecOIDInvalidityDate@^{__CFString=}$kSecOIDIssuerAltName@^{__CFString=}$kSecOIDIssuingDistributionPoint@^{__CFString=}$kSecOIDIssuingDistributionPoints@^{__CFString=}$kSecOIDKERBv5_PKINIT_KP_CLIENT_AUTH@^{__CFString=}$kSecOIDKERBv5_PKINIT_KP_KDC@^{__CFString=}$kSecOIDKeyUsage@^{__CFString=}$kSecOIDLocalityName@^{__CFString=}$kSecOIDMS_NTPrincipalName@^{__CFString=}$kSecOIDMicrosoftSGC@^{__CFString=}$kSecOIDNameConstraints@^{__CFString=}$kSecOIDNetscapeCertSequence@^{__CFString=}$kSecOIDNetscapeCertType@^{__CFString=}$kSecOIDNetscapeSGC@^{__CFString=}$kSecOIDOCSPSigning@^{__CFString=}$kSecOIDOrganizationName@^{__CFString=}$kSecOIDOrganizationalUnitName@^{__CFString=}$kSecOIDPolicyConstraints@^{__CFString=}$kSecOIDPolicyMappings@^{__CFString=}$kSecOIDPrivateKeyUsagePeriod@^{__CFString=}$kSecOIDQC_Statements@^{__CFString=}$kSecOIDSRVName@^{__CFString=}$kSecOIDSerialNumber@^{__CFString=}$kSecOIDServerAuth@^{__CFString=}$kSecOIDStateProvinceName@^{__CFString=}$kSecOIDStreetAddress@^{__CFString=}$kSecOIDSubjectAltName@^{__CFString=}$kSecOIDSubjectDirectoryAttributes@^{__CFString=}$kSecOIDSubjectEmailAddress@^{__CFString=}$kSecOIDSubjectInfoAccess@^{__CFString=}$kSecOIDSubjectKeyIdentifier@^{__CFString=}$kSecOIDSubjectPicture@^{__CFString=}$kSecOIDSubjectSignatureBitmap@^{__CFString=}$kSecOIDSurname@^{__CFString=}$kSecOIDTimeStamping@^{__CFString=}$kSecOIDTitle@^{__CFString=}$kSecOIDUseExemptions@^{__CFString=}$kSecOIDX509V1CertificateIssuerUniqueId@^{__CFString=}$kSecOIDX509V1CertificateSubjectUniqueId@^{__CFString=}$kSecOIDX509V1IssuerName@^{__CFString=}$kSecOIDX509V1IssuerNameCStruct@^{__CFString=}$kSecOIDX509V1IssuerNameLDAP@^{__CFString=}$kSecOIDX509V1IssuerNameStd@^{__CFString=}$kSecOIDX509V1SerialNumber@^{__CFString=}$kSecOIDX509V1Signature@^{__CFString=}$kSecOIDX509V1SignatureAlgorithm@^{__CFString=}$kSecOIDX509V1SignatureAlgorithmParameters@^{__CFString=}$kSecOIDX509V1SignatureAlgorithmTBS@^{__CFString=}$kSecOIDX509V1SignatureCStruct@^{__CFString=}$kSecOIDX509V1SignatureStruct@^{__CFString=}$kSecOIDX509V1SubjectName@^{__CFString=}$kSecOIDX509V1SubjectNameCStruct@^{__CFString=}$kSecOIDX509V1SubjectNameLDAP@^{__CFString=}$kSecOIDX509V1SubjectNameStd@^{__CFString=}$kSecOIDX509V1SubjectPublicKey@^{__CFString=}$kSecOIDX509V1SubjectPublicKeyAlgorithm@^{__CFString=}$kSecOIDX509V1SubjectPublicKeyAlgorithmParameters@^{__CFString=}$kSecOIDX509V1SubjectPublicKeyCStruct@^{__CFString=}$kSecOIDX509V1ValidityNotAfter@^{__CFString=}$kSecOIDX509V1ValidityNotBefore@^{__CFString=}$kSecOIDX509V1Version@^{__CFString=}$kSecOIDX509V3Certificate@^{__CFString=}$kSecOIDX509V3CertificateCStruct@^{__CFString=}$kSecOIDX509V3CertificateExtensionCStruct@^{__CFString=}$kSecOIDX509V3CertificateExtensionCritical@^{__CFString=}$kSecOIDX509V3CertificateExtensionId@^{__CFString=}$kSecOIDX509V3CertificateExtensionStruct@^{__CFString=}$kSecOIDX509V3CertificateExtensionType@^{__CFString=}$kSecOIDX509V3CertificateExtensionValue@^{__CFString=}$kSecOIDX509V3CertificateExtensionsCStruct@^{__CFString=}$kSecOIDX509V3CertificateExtensionsStruct@^{__CFString=}$kSecOIDX509V3CertificateNumberOfExtensions@^{__CFString=}$kSecOIDX509V3SignedCertificate@^{__CFString=}$kSecOIDX509V3SignedCertificateCStruct@^{__CFString=}$kSecPaddingKey@^{__CFString=}$kSecPaddingNoneKey@^{__CFString=}$kSecPaddingOAEPKey@^{__CFString=}$kSecPaddingPKCS1Key@^{__CFString=}$kSecPaddingPKCS5Key@^{__CFString=}$kSecPaddingPKCS7Key@^{__CFString=}$kSecPolicyAppleCodeSigning@^{__CFString=}$kSecPolicyAppleEAP@^{__CFString=}$kSecPolicyAppleIDValidation@^{__CFString=}$kSecPolicyAppleIPsec@^{__CFString=}$kSecPolicyApplePKINITClient@^{__CFString=}$kSecPolicyApplePKINITServer@^{__CFString=}$kSecPolicyApplePassbookSigning@^{__CFString=}$kSecPolicyApplePayIssuerEncryption@^{__CFString=}$kSecPolicyAppleRevocation@^{__CFString=}$kSecPolicyAppleSMIME@^{__CFString=}$kSecPolicyAppleSSL@^{__CFString=}$kSecPolicyAppleTimeStamping@^{__CFString=}$kSecPolicyAppleX509Basic@^{__CFString=}$kSecPolicyAppleiChat@^{__CFString=}$kSecPolicyClient@^{__CFString=}$kSecPolicyKU_CRLSign@^{__CFString=}$kSecPolicyKU_DataEncipherment@^{__CFString=}$kSecPolicyKU_DecipherOnly@^{__CFString=}$kSecPolicyKU_DigitalSignature@^{__CFString=}$kSecPolicyKU_EncipherOnly@^{__CFString=}$kSecPolicyKU_KeyAgreement@^{__CFString=}$kSecPolicyKU_KeyCertSign@^{__CFString=}$kSecPolicyKU_KeyEncipherment@^{__CFString=}$kSecPolicyKU_NonRepudiation@^{__CFString=}$kSecPolicyMacAppStoreReceipt@^{__CFString=}$kSecPolicyName@^{__CFString=}$kSecPolicyOid@^{__CFString=}$kSecPolicyRevocationFlags@^{__CFString=}$kSecPolicyTeamIdentifier@^{__CFString=}$kSecPrivateKeyAttrs@^{__CFString=}$kSecPropertyKeyLabel@^{__CFString=}$kSecPropertyKeyLocalizedLabel@^{__CFString=}$kSecPropertyKeyType@^{__CFString=}$kSecPropertyKeyValue@^{__CFString=}$kSecPropertyTypeData@^{__CFString=}$kSecPropertyTypeDate@^{__CFString=}$kSecPropertyTypeError@^{__CFString=}$kSecPropertyTypeSection@^{__CFString=}$kSecPropertyTypeString@^{__CFString=}$kSecPropertyTypeSuccess@^{__CFString=}$kSecPropertyTypeTitle@^{__CFString=}$kSecPropertyTypeURL@^{__CFString=}$kSecPropertyTypeWarning@^{__CFString=}$kSecPublicKeyAttrs@^{__CFString=}$kSecReturnAttributes@^{__CFString=}$kSecReturnData@^{__CFString=}$kSecReturnPersistentRef@^{__CFString=}$kSecReturnRef@^{__CFString=}$kSecSignatureAttributeName@^{__CFString=}$kSecTransformAbortAttributeName@^{__CFString=}$kSecTransformAbortOriginatorKey@^{__CFString=}$kSecTransformActionAttributeNotification@^{__CFString=}$kSecTransformActionAttributeValidation@^{__CFString=}$kSecTransformActionCanExecute@^{__CFString=}$kSecTransformActionExternalizeExtraData@^{__CFString=}$kSecTransformActionFinalize@^{__CFString=}$kSecTransformActionInternalizeExtraData@^{__CFString=}$kSecTransformActionProcessData@^{__CFString=}$kSecTransformActionStartingExecution@^{__CFString=}$kSecTransformDebugAttributeName@^{__CFString=}$kSecTransformErrorDomain@^{__CFString=}$kSecTransformInputAttributeName@^{__CFString=}$kSecTransformOutputAttributeName@^{__CFString=}$kSecTransformPreviousErrorKey@^{__CFString=}$kSecTransformTransformName@^{__CFString=}$kSecTrustCertificateTransparency@^{__CFString=}$kSecTrustCertificateTransparencyWhiteList@^{__CFString=}$kSecTrustEvaluationDate@^{__CFString=}$kSecTrustExtendedValidation@^{__CFString=}$kSecTrustOrganizationName@^{__CFString=}$kSecTrustResultValue@^{__CFString=}$kSecTrustRevocationChecked@^{__CFString=}$kSecTrustRevocationValidUntilDate@^{__CFString=}$kSecUseAuthenticationContext@^{__CFString=}$kSecUseAuthenticationUI@^{__CFString=}$kSecUseAuthenticationUIAllow@^{__CFString=}$kSecUseAuthenticationUIFail@^{__CFString=}$kSecUseAuthenticationUISkip@^{__CFString=}$kSecUseItemList@^{__CFString=}$kSecUseKeychain@^{__CFString=}$kSecUseOperationPrompt@^{__CFString=}$kSecValueData@^{__CFString=}$kSecValuePersistentRef@^{__CFString=}$kSecValueRef@^{__CFString=}$kSecZLibEncoding@^{__CFString=}$oidAdCAIssuer@{_DERItem=^CQ}$oidAdOCSP@{_DERItem=^CQ}$oidAnsip384r1@{_DERItem=^CQ}$oidAnsip521r1@{_DERItem=^CQ}$oidAnyExtendedKeyUsage@{_DERItem=^CQ}$oidAnyPolicy@{_DERItem=^CQ}$oidAuthorityInfoAccess@{_DERItem=^CQ}$oidAuthorityKeyIdentifier@{_DERItem=^CQ}$oidBasicConstraints@{_DERItem=^CQ}$oidCertificatePolicies@{_DERItem=^CQ}$oidCommonName@{_DERItem=^CQ}$oidCountryName@{_DERItem=^CQ}$oidCrlDistributionPoints@{_DERItem=^CQ}$oidDescription@{_DERItem=^CQ}$oidEcPrime192v1@{_DERItem=^CQ}$oidEcPrime256v1@{_DERItem=^CQ}$oidEcPubKey@{_DERItem=^CQ}$oidEmailAddress@{_DERItem=^CQ}$oidEntrustVersInfo@{_DERItem=^CQ}$oidExtendedKeyUsage@{_DERItem=^CQ}$oidExtendedKeyUsageClientAuth@{_DERItem=^CQ}$oidExtendedKeyUsageCodeSigning@{_DERItem=^CQ}$oidExtendedKeyUsageEmailProtection@{_DERItem=^CQ}$oidExtendedKeyUsageIPSec@{_DERItem=^CQ}$oidExtendedKeyUsageMicrosoftSGC@{_DERItem=^CQ}$oidExtendedKeyUsageNetscapeSGC@{_DERItem=^CQ}$oidExtendedKeyUsageOCSPSigning@{_DERItem=^CQ}$oidExtendedKeyUsageServerAuth@{_DERItem=^CQ}$oidExtendedKeyUsageTimeStamping@{_DERItem=^CQ}$oidFee@{_DERItem=^CQ}$oidFriendlyName@{_DERItem=^CQ}$oidGoogleEmbeddedSignedCertificateTimestamp@{_DERItem=^CQ}$oidGoogleOCSPSignedCertificateTimestamp@{_DERItem=^CQ}$oidInhibitAnyPolicy@{_DERItem=^CQ}$oidIssuerAltName@{_DERItem=^CQ}$oidKeyUsage@{_DERItem=^CQ}$oidLocalKeyId@{_DERItem=^CQ}$oidLocalityName@{_DERItem=^CQ}$oidMSNTPrincipalName@{_DERItem=^CQ}$oidMd2@{_DERItem=^CQ}$oidMd2Rsa@{_DERItem=^CQ}$oidMd4@{_DERItem=^CQ}$oidMd4Rsa@{_DERItem=^CQ}$oidMd5@{_DERItem=^CQ}$oidMd5Fee@{_DERItem=^CQ}$oidMd5Rsa@{_DERItem=^CQ}$oidNameConstraints@{_DERItem=^CQ}$oidNetscapeCertType@{_DERItem=^CQ}$oidOrganizationName@{_DERItem=^CQ}$oidOrganizationalUnitName@{_DERItem=^CQ}$oidPolicyConstraints@{_DERItem=^CQ}$oidPolicyMappings@{_DERItem=^CQ}$oidPrivateKeyUsagePeriod@{_DERItem=^CQ}$oidQtCps@{_DERItem=^CQ}$oidQtUNotice@{_DERItem=^CQ}$oidRsa@{_DERItem=^CQ}$oidSha1@{_DERItem=^CQ}$oidSha1Dsa@{_DERItem=^CQ}$oidSha1DsaCommonOIW@{_DERItem=^CQ}$oidSha1DsaOIW@{_DERItem=^CQ}$oidSha1Ecdsa@{_DERItem=^CQ}$oidSha1Fee@{_DERItem=^CQ}$oidSha1Rsa@{_DERItem=^CQ}$oidSha1RsaOIW@{_DERItem=^CQ}$oidSha224@{_DERItem=^CQ}$oidSha224Ecdsa@{_DERItem=^CQ}$oidSha224Rsa@{_DERItem=^CQ}$oidSha256@{_DERItem=^CQ}$oidSha256Ecdsa@{_DERItem=^CQ}$oidSha256Rsa@{_DERItem=^CQ}$oidSha384@{_DERItem=^CQ}$oidSha384Ecdsa@{_DERItem=^CQ}$oidSha384Rsa@{_DERItem=^CQ}$oidSha512@{_DERItem=^CQ}$oidSha512Ecdsa@{_DERItem=^CQ}$oidSha512Rsa@{_DERItem=^CQ}$oidStateOrProvinceName@{_DERItem=^CQ}$oidSubjectAltName@{_DERItem=^CQ}$oidSubjectInfoAccess@{_DERItem=^CQ}$oidSubjectKeyIdentifier@{_DERItem=^CQ}$'''
enums = '''$BER_TAG_BIT_STRING@3$BER_TAG_BOOLEAN@1$BER_TAG_ENUMERATED@10$BER_TAG_EXTERNAL@8$BER_TAG_GENERALIZED_TIME@24$BER_TAG_GENERAL_STRING@27$BER_TAG_GRAPHIC_STRING@25$BER_TAG_IA5_STRING@22$BER_TAG_INTEGER@2$BER_TAG_ISO646_STRING@26$BER_TAG_NULL@5$BER_TAG_NUMERIC_STRING@18$BER_TAG_OBJECT_DESCRIPTOR@7$BER_TAG_OCTET_STRING@4$BER_TAG_OID@6$BER_TAG_PKIX_BMP_STRING@30$BER_TAG_PKIX_UNIVERSAL_STRING@28$BER_TAG_PKIX_UTF8_STRING@12$BER_TAG_PRINTABLE_STRING@19$BER_TAG_REAL@9$BER_TAG_SEQUENCE@16$BER_TAG_SET@17$BER_TAG_T61_STRING@20$BER_TAG_UNKNOWN@0$BER_TAG_UTC_TIME@23$BER_TAG_VIDEOTEX_STRING@21$CE_CDNT_FullName@0$CE_CDNT_NameRelativeToCrlIssuer@1$CE_CD_AffiliationChanged@16$CE_CD_CACompromise@32$CE_CD_CertificateHold@2$CE_CD_CessationOfOperation@4$CE_CD_KeyCompromise@64$CE_CD_Superseded@8$CE_CD_Unspecified@128$CE_CR_AffiliationChanged@3$CE_CR_CACompromise@2$CE_CR_CertificateHold@6$CE_CR_CessationOfOperation@5$CE_CR_KeyCompromise@1$CE_CR_RemoveFromCRL@8$CE_CR_Superseded@4$CE_CR_Unspecified@0$CE_KU_CRLSign@512$CE_KU_DataEncipherment@4096$CE_KU_DecipherOnly@128$CE_KU_DigitalSignature@32768$CE_KU_EncipherOnly@256$CE_KU_KeyAgreement@2048$CE_KU_KeyCertSign@1024$CE_KU_KeyEncipherment@8192$CE_KU_NonRepudiation@16384$CE_NCT_ObjSign@4096$CE_NCT_ObjSignCA@256$CE_NCT_Reserved@2048$CE_NCT_SMIME@8192$CE_NCT_SMIME_CA@512$CE_NCT_SSL_CA@1024$CE_NCT_SSL_Client@32768$CE_NCT_SSL_Server@16384$CSSMERR_AC_DEVICE_FAILED@-2147405595$CSSMERR_AC_DEVICE_RESET@-2147405596$CSSMERR_AC_FUNCTION_FAILED@-2147405814$CSSMERR_AC_FUNCTION_NOT_IMPLEMENTED@-2147405817$CSSMERR_AC_INSUFFICIENT_CLIENT_IDENTIFICATION@-2147405597$CSSMERR_AC_INTERNAL_ERROR@-2147405823$CSSMERR_AC_INVALID_BASE_ACLS@-2147405567$CSSMERR_AC_INVALID_CL_HANDLE@-2147405742$CSSMERR_AC_INVALID_CONTEXT_HANDLE@-2147405760$CSSMERR_AC_INVALID_DATA@-2147405754$CSSMERR_AC_INVALID_DB_HANDLE@-2147405750$CSSMERR_AC_INVALID_DB_LIST@-2147405748$CSSMERR_AC_INVALID_DB_LIST_POINTER@-2147405747$CSSMERR_AC_INVALID_DL_HANDLE@-2147405743$CSSMERR_AC_INVALID_ENCODING@-2147405565$CSSMERR_AC_INVALID_INPUT_POINTER@-2147405819$CSSMERR_AC_INVALID_OUTPUT_POINTER@-2147405818$CSSMERR_AC_INVALID_PASSTHROUGH_ID@-2147405738$CSSMERR_AC_INVALID_POINTER@-2147405820$CSSMERR_AC_INVALID_REQUESTOR@-2147405563$CSSMERR_AC_INVALID_REQUEST_DESCRIPTOR@-2147405562$CSSMERR_AC_INVALID_TP_HANDLE@-2147405741$CSSMERR_AC_INVALID_TUPLE_CREDENTIALS@-2147405566$CSSMERR_AC_INVALID_VALIDITY_PERIOD@-2147405564$CSSMERR_AC_IN_DARK_WAKE@-2147405594$CSSMERR_AC_MDS_ERROR@-2147405821$CSSMERR_AC_MEMORY_ERROR@-2147405822$CSSMERR_AC_NO_USER_INTERACTION@-2147405600$CSSMERR_AC_OS_ACCESS_DENIED@-2147405815$CSSMERR_AC_SELF_CHECK_FAILED@-2147405816$CSSMERR_AC_SERVICE_NOT_AVAILABLE@-2147405598$CSSMERR_AC_USER_CANCELED@-2147405599$CSSMERR_APPLEDL_DISK_FULL@-2147412991$CSSMERR_APPLEDL_FILE_TOO_BIG@-2147412989$CSSMERR_APPLEDL_INCOMPATIBLE_DATABASE_BLOB@-2147412986$CSSMERR_APPLEDL_INCOMPATIBLE_KEY_BLOB@-2147412985$CSSMERR_APPLEDL_INVALID_DATABASE_BLOB@-2147412988$CSSMERR_APPLEDL_INVALID_KEY_BLOB@-2147412987$CSSMERR_APPLEDL_INVALID_OPEN_PARAMETERS@-2147412992$CSSMERR_APPLEDL_QUOTA_EXCEEDED@-2147412990$CSSMERR_APPLETP_BAD_CERT_FROM_ISSUER@-2147408873$CSSMERR_APPLETP_CA_PIN_MISMATCH@-2147408836$CSSMERR_APPLETP_CERT_NOT_FOUND_FROM_ISSUER@-2147408874$CSSMERR_APPLETP_CODE_SIGN_DEVELOPMENT@-2147408845$CSSMERR_APPLETP_CRL_BAD_URI@-2147408881$CSSMERR_APPLETP_CRL_EXPIRED@-2147408885$CSSMERR_APPLETP_CRL_INVALID_ANCHOR_CERT@-2147408877$CSSMERR_APPLETP_CRL_NOT_FOUND@-2147408883$CSSMERR_APPLETP_CRL_NOT_TRUSTED@-2147408878$CSSMERR_APPLETP_CRL_NOT_VALID_YET@-2147408884$CSSMERR_APPLETP_CRL_POLICY_FAIL@-2147408876$CSSMERR_APPLETP_CRL_SERVER_DOWN@-2147408882$CSSMERR_APPLETP_CS_BAD_CERT_CHAIN_LENGTH@-2147408849$CSSMERR_APPLETP_CS_BAD_PATH_LENGTH@-2147408847$CSSMERR_APPLETP_CS_NO_BASIC_CONSTRAINTS@-2147408848$CSSMERR_APPLETP_CS_NO_EXTENDED_KEY_USAGE@-2147408846$CSSMERR_APPLETP_EXT_KEYUSAGE_NOT_CRITICAL@-2147408838$CSSMERR_APPLETP_HOSTNAME_MISMATCH@-2147408896$CSSMERR_APPLETP_IDENTIFIER_MISSING@-2147408837$CSSMERR_APPLETP_IDP_FAIL@-2147408875$CSSMERR_APPLETP_INCOMPLETE_REVOCATION_CHECK@-2147408861$CSSMERR_APPLETP_INVALID_AUTHORITY_ID@-2147408892$CSSMERR_APPLETP_INVALID_CA@-2147408893$CSSMERR_APPLETP_INVALID_EMPTY_SUBJECT@-2147408841$CSSMERR_APPLETP_INVALID_EXTENDED_KEY_USAGE@-2147408889$CSSMERR_APPLETP_INVALID_ID_LINKAGE@-2147408888$CSSMERR_APPLETP_INVALID_KEY_USAGE@-2147408890$CSSMERR_APPLETP_INVALID_ROOT@-2147408886$CSSMERR_APPLETP_INVALID_SUBJECT_ID@-2147408891$CSSMERR_APPLETP_MISSING_REQUIRED_EXTENSION@-2147408839$CSSMERR_APPLETP_NETWORK_FAILURE@-2147408860$CSSMERR_APPLETP_NO_BASIC_CONSTRAINTS@-2147408894$CSSMERR_APPLETP_OCSP_BAD_REQUEST@-2147408864$CSSMERR_APPLETP_OCSP_BAD_RESPONSE@-2147408865$CSSMERR_APPLETP_OCSP_INVALID_ANCHOR_CERT@-2147408858$CSSMERR_APPLETP_OCSP_NONCE_MISMATCH@-2147408850$CSSMERR_APPLETP_OCSP_NOT_TRUSTED@-2147408859$CSSMERR_APPLETP_OCSP_NO_SIGNER@-2147408856$CSSMERR_APPLETP_OCSP_RESP_INTERNAL_ERR@-2147408854$CSSMERR_APPLETP_OCSP_RESP_MALFORMED_REQ@-2147408855$CSSMERR_APPLETP_OCSP_RESP_SIG_REQUIRED@-2147408852$CSSMERR_APPLETP_OCSP_RESP_TRY_LATER@-2147408853$CSSMERR_APPLETP_OCSP_RESP_UNAUTHORIZED@-2147408851$CSSMERR_APPLETP_OCSP_SIG_ERROR@-2147408857$CSSMERR_APPLETP_OCSP_STATUS_UNRECOGNIZED@-2147408862$CSSMERR_APPLETP_OCSP_UNAVAILABLE@-2147408863$CSSMERR_APPLETP_PATH_LEN_CONSTRAINT@-2147408887$CSSMERR_APPLETP_RS_BAD_CERT_CHAIN_LENGTH@-2147408844$CSSMERR_APPLETP_RS_BAD_EXTENDED_KEY_USAGE@-2147408843$CSSMERR_APPLETP_SMIME_BAD_EXT_KEY_USE@-2147408871$CSSMERR_APPLETP_SMIME_BAD_KEY_USE@-2147408870$CSSMERR_APPLETP_SMIME_EMAIL_ADDRS_NOT_FOUND@-2147408872$CSSMERR_APPLETP_SMIME_KEYUSAGE_NOT_CRITICAL@-2147408869$CSSMERR_APPLETP_SMIME_NO_EMAIL_ADDRS@-2147408868$CSSMERR_APPLETP_SMIME_SUBJ_ALT_NAME_NOT_CRIT@-2147408867$CSSMERR_APPLETP_SSL_BAD_EXT_KEY_USE@-2147408866$CSSMERR_APPLETP_TRUST_SETTING_DENY@-2147408842$CSSMERR_APPLETP_UNKNOWN_CERT_EXTEN@-2147408880$CSSMERR_APPLETP_UNKNOWN_CRITICAL_EXTEN@-2147408895$CSSMERR_APPLETP_UNKNOWN_CRL_EXTEN@-2147408879$CSSMERR_APPLETP_UNKNOWN_QUAL_CERT_STATEMENT@-2147408840$CSSMERR_APPLE_DOTMAC_CSR_VERIFY_FAIL@-2147408785$CSSMERR_APPLE_DOTMAC_FAILED_CONSISTENCY_CHECK@-2147408784$CSSMERR_APPLE_DOTMAC_NO_REQ_PENDING@-2147408786$CSSMERR_APPLE_DOTMAC_REQ_IS_PENDING@-2147408787$CSSMERR_APPLE_DOTMAC_REQ_QUEUED@-2147408796$CSSMERR_APPLE_DOTMAC_REQ_REDIRECT@-2147408795$CSSMERR_APPLE_DOTMAC_REQ_SERVER_ALREADY_EXIST@-2147408789$CSSMERR_APPLE_DOTMAC_REQ_SERVER_AUTH@-2147408792$CSSMERR_APPLE_DOTMAC_REQ_SERVER_ERR@-2147408794$CSSMERR_APPLE_DOTMAC_REQ_SERVER_NOT_AVAIL@-2147408790$CSSMERR_APPLE_DOTMAC_REQ_SERVER_PARAM@-2147408793$CSSMERR_APPLE_DOTMAC_REQ_SERVER_SERVICE_ERROR@-2147408788$CSSMERR_APPLE_DOTMAC_REQ_SERVER_UNIMPL@-2147408791$CSSMERR_CL_CRL_ALREADY_SIGNED@-2147411897$CSSMERR_CL_DEVICE_FAILED@-2147411739$CSSMERR_CL_DEVICE_RESET@-2147411740$CSSMERR_CL_FUNCTION_FAILED@-2147411958$CSSMERR_CL_FUNCTION_NOT_IMPLEMENTED@-2147411961$CSSMERR_CL_INSUFFICIENT_CLIENT_IDENTIFICATION@-2147411741$CSSMERR_CL_INTERNAL_ERROR@-2147411967$CSSMERR_CL_INVALID_BUNDLE_INFO@-2147411708$CSSMERR_CL_INVALID_BUNDLE_POINTER@-2147411711$CSSMERR_CL_INVALID_CACHE_HANDLE@-2147411710$CSSMERR_CL_INVALID_CERTGROUP_POINTER@-2147411902$CSSMERR_CL_INVALID_CERT_POINTER@-2147411901$CSSMERR_CL_INVALID_CONTEXT_HANDLE@-2147411904$CSSMERR_CL_INVALID_CRL_INDEX@-2147411707$CSSMERR_CL_INVALID_CRL_POINTER@-2147411900$CSSMERR_CL_INVALID_DATA@-2147411898$CSSMERR_CL_INVALID_FIELD_POINTER@-2147411899$CSSMERR_CL_INVALID_INPUT_POINTER@-2147411963$CSSMERR_CL_INVALID_NUMBER_OF_FIELDS@-2147411896$CSSMERR_CL_INVALID_OUTPUT_POINTER@-2147411962$CSSMERR_CL_INVALID_PASSTHROUGH_ID@-2147411882$CSSMERR_CL_INVALID_POINTER@-2147411964$CSSMERR_CL_INVALID_RESULTS_HANDLE@-2147411709$CSSMERR_CL_INVALID_SCOPE@-2147411706$CSSMERR_CL_IN_DARK_WAKE@-2147411738$CSSMERR_CL_MDS_ERROR@-2147411965$CSSMERR_CL_MEMORY_ERROR@-2147411966$CSSMERR_CL_NO_FIELD_VALUES@-2147411705$CSSMERR_CL_NO_USER_INTERACTION@-2147411744$CSSMERR_CL_OS_ACCESS_DENIED@-2147411959$CSSMERR_CL_SCOPE_NOT_SUPPORTED@-2147411704$CSSMERR_CL_SELF_CHECK_FAILED@-2147411960$CSSMERR_CL_SERVICE_NOT_AVAILABLE@-2147411742$CSSMERR_CL_UNKNOWN_FORMAT@-2147411890$CSSMERR_CL_UNKNOWN_TAG@-2147411889$CSSMERR_CL_USER_CANCELED@-2147411743$CSSMERR_CL_VERIFICATION_FAILURE@-2147411895$CSSMERR_CSPDL_APPLE_DL_CONVERSION_ERROR@-2147415035$CSSMERR_CSP_ACL_ADD_FAILED@-2147416010$CSSMERR_CSP_ACL_BASE_CERTS_NOT_SUPPORTED@-2147416025$CSSMERR_CSP_ACL_CHALLENGE_CALLBACK_FAILED@-2147416019$CSSMERR_CSP_ACL_CHANGE_FAILED@-2147416015$CSSMERR_CSP_ACL_DELETE_FAILED@-2147416012$CSSMERR_CSP_ACL_ENTRY_TAG_NOT_FOUND@-2147416017$CSSMERR_CSP_ACL_REPLACE_FAILED@-2147416011$CSSMERR_CSP_ACL_SUBJECT_TYPE_NOT_SUPPORTED@-2147416021$CSSMERR_CSP_ALGID_MISMATCH@-2147415789$CSSMERR_CSP_ALREADY_LOGGED_IN@-2147415726$CSSMERR_CSP_APPLE_ADD_APPLICATION_ACL_SUBJECT@-2147415040$CSSMERR_CSP_APPLE_INVALID_KEY_END_DATE@-2147415036$CSSMERR_CSP_APPLE_INVALID_KEY_START_DATE@-2147415037$CSSMERR_CSP_APPLE_PUBLIC_KEY_INCOMPLETE@-2147415039$CSSMERR_CSP_APPLE_SIGNATURE_MISMATCH@-2147415038$CSSMERR_CSP_APPLE_SSLv2_ROLLBACK@-2147415034$CSSMERR_CSP_ATTACH_HANDLE_BUSY@-2147415802$CSSMERR_CSP_BLOCK_SIZE_MISMATCH@-2147415731$CSSMERR_CSP_CRYPTO_DATA_CALLBACK_FAILED@-2147415722$CSSMERR_CSP_DEVICE_ERROR@-2147415804$CSSMERR_CSP_DEVICE_FAILED@-2147415835$CSSMERR_CSP_DEVICE_MEMORY_ERROR@-2147415803$CSSMERR_CSP_DEVICE_RESET@-2147415836$CSSMERR_CSP_DEVICE_VERIFY_FAILED@-2147415728$CSSMERR_CSP_FUNCTION_FAILED@-2147416054$CSSMERR_CSP_FUNCTION_NOT_IMPLEMENTED@-2147416057$CSSMERR_CSP_INPUT_LENGTH_ERROR@-2147415807$CSSMERR_CSP_INSUFFICIENT_CLIENT_IDENTIFICATION@-2147415837$CSSMERR_CSP_INTERNAL_ERROR@-2147416063$CSSMERR_CSP_INVALID_ACCESS_CREDENTIALS@-2147416027$CSSMERR_CSP_INVALID_ACL_BASE_CERTS@-2147416026$CSSMERR_CSP_INVALID_ACL_CHALLENGE_CALLBACK@-2147416020$CSSMERR_CSP_INVALID_ACL_EDIT_MODE@-2147416016$CSSMERR_CSP_INVALID_ACL_ENTRY_TAG@-2147416018$CSSMERR_CSP_INVALID_ACL_SUBJECT_VALUE@-2147416022$CSSMERR_CSP_INVALID_ALGORITHM@-2147415759$CSSMERR_CSP_INVALID_ATTR_ACCESS_CREDENTIALS@-2147415678$CSSMERR_CSP_INVALID_ATTR_ALG_PARAMS@-2147415704$CSSMERR_CSP_INVALID_ATTR_BASE@-2147415686$CSSMERR_CSP_INVALID_ATTR_BLOCK_SIZE@-2147415738$CSSMERR_CSP_INVALID_ATTR_DL_DB_HANDLE@-2147415680$CSSMERR_CSP_INVALID_ATTR_EFFECTIVE_BITS@-2147415696$CSSMERR_CSP_INVALID_ATTR_END_DATE@-2147415692$CSSMERR_CSP_INVALID_ATTR_INIT_VECTOR@-2147415752$CSSMERR_CSP_INVALID_ATTR_ITERATION_COUNT@-2147415682$CSSMERR_CSP_INVALID_ATTR_KEY@-2147415754$CSSMERR_CSP_INVALID_ATTR_KEY_LENGTH@-2147415740$CSSMERR_CSP_INVALID_ATTR_KEY_TYPE@-2147415700$CSSMERR_CSP_INVALID_ATTR_LABEL@-2147415702$CSSMERR_CSP_INVALID_ATTR_MODE@-2147415698$CSSMERR_CSP_INVALID_ATTR_OUTPUT_SIZE@-2147415708$CSSMERR_CSP_INVALID_ATTR_PADDING@-2147415748$CSSMERR_CSP_INVALID_ATTR_PASSPHRASE@-2147415742$CSSMERR_CSP_INVALID_ATTR_PRIME@-2147415688$CSSMERR_CSP_INVALID_ATTR_PRIVATE_KEY_FORMAT@-2147415674$CSSMERR_CSP_INVALID_ATTR_PUBLIC_KEY_FORMAT@-2147415676$CSSMERR_CSP_INVALID_ATTR_RANDOM@-2147415746$CSSMERR_CSP_INVALID_ATTR_ROUNDS@-2147415706$CSSMERR_CSP_INVALID_ATTR_SALT@-2147415750$CSSMERR_CSP_INVALID_ATTR_SEED@-2147415744$CSSMERR_CSP_INVALID_ATTR_START_DATE@-2147415694$CSSMERR_CSP_INVALID_ATTR_SUBPRIME@-2147415684$CSSMERR_CSP_INVALID_ATTR_SYMMETRIC_KEY_FORMAT@-2147415672$CSSMERR_CSP_INVALID_ATTR_VERSION@-2147415690$CSSMERR_CSP_INVALID_ATTR_WRAPPED_KEY_FORMAT@-2147415670$CSSMERR_CSP_INVALID_CONTEXT@-2147415760$CSSMERR_CSP_INVALID_CONTEXT_HANDLE@-2147416000$CSSMERR_CSP_INVALID_CRYPTO_DATA@-2147415976$CSSMERR_CSP_INVALID_DATA@-2147415994$CSSMERR_CSP_INVALID_DATA_COUNT@-2147415768$CSSMERR_CSP_INVALID_DIGEST_ALGORITHM@-2147415723$CSSMERR_CSP_INVALID_INPUT_POINTER@-2147416059$CSSMERR_CSP_INVALID_INPUT_VECTOR@-2147415766$CSSMERR_CSP_INVALID_KEY@-2147415792$CSSMERR_CSP_INVALID_KEYATTR_MASK@-2147415780$CSSMERR_CSP_INVALID_KEYUSAGE_MASK@-2147415782$CSSMERR_CSP_INVALID_KEY_CLASS@-2147415790$CSSMERR_CSP_INVALID_KEY_FORMAT@-2147415776$CSSMERR_CSP_INVALID_KEY_LABEL@-2147415778$CSSMERR_CSP_INVALID_KEY_POINTER@-2147415783$CSSMERR_CSP_INVALID_KEY_REFERENCE@-2147415791$CSSMERR_CSP_INVALID_LOGIN_NAME@-2147415727$CSSMERR_CSP_INVALID_NEW_ACL_ENTRY@-2147416014$CSSMERR_CSP_INVALID_NEW_ACL_OWNER@-2147416013$CSSMERR_CSP_INVALID_OUTPUT_POINTER@-2147416058$CSSMERR_CSP_INVALID_OUTPUT_VECTOR@-2147415765$CSSMERR_CSP_INVALID_PASSTHROUGH_ID@-2147415978$CSSMERR_CSP_INVALID_POINTER@-2147416060$CSSMERR_CSP_INVALID_SAMPLE_VALUE@-2147416024$CSSMERR_CSP_INVALID_SIGNATURE@-2147415733$CSSMERR_CSP_IN_DARK_WAKE@-2147415834$CSSMERR_CSP_KEY_BLOB_TYPE_INCORRECT@-2147415787$CSSMERR_CSP_KEY_HEADER_INCONSISTENT@-2147415786$CSSMERR_CSP_KEY_LABEL_ALREADY_EXISTS@-2147415724$CSSMERR_CSP_KEY_USAGE_INCORRECT@-2147415788$CSSMERR_CSP_MDS_ERROR@-2147416061$CSSMERR_CSP_MEMORY_ERROR@-2147416062$CSSMERR_CSP_MISSING_ATTR_ACCESS_CREDENTIALS@-2147415677$CSSMERR_CSP_MISSING_ATTR_ALG_PARAMS@-2147415703$CSSMERR_CSP_MISSING_ATTR_BASE@-2147415685$CSSMERR_CSP_MISSING_ATTR_BLOCK_SIZE@-2147415737$CSSMERR_CSP_MISSING_ATTR_DL_DB_HANDLE@-2147415679$CSSMERR_CSP_MISSING_ATTR_EFFECTIVE_BITS@-2147415695$CSSMERR_CSP_MISSING_ATTR_END_DATE@-2147415691$CSSMERR_CSP_MISSING_ATTR_INIT_VECTOR@-2147415751$CSSMERR_CSP_MISSING_ATTR_ITERATION_COUNT@-2147415681$CSSMERR_CSP_MISSING_ATTR_KEY@-2147415753$CSSMERR_CSP_MISSING_ATTR_KEY_LENGTH@-2147415739$CSSMERR_CSP_MISSING_ATTR_KEY_TYPE@-2147415699$CSSMERR_CSP_MISSING_ATTR_LABEL@-2147415701$CSSMERR_CSP_MISSING_ATTR_MODE@-2147415697$CSSMERR_CSP_MISSING_ATTR_OUTPUT_SIZE@-2147415707$CSSMERR_CSP_MISSING_ATTR_PADDING@-2147415747$CSSMERR_CSP_MISSING_ATTR_PASSPHRASE@-2147415741$CSSMERR_CSP_MISSING_ATTR_PRIME@-2147415687$CSSMERR_CSP_MISSING_ATTR_PRIVATE_KEY_FORMAT@-2147415673$CSSMERR_CSP_MISSING_ATTR_PUBLIC_KEY_FORMAT@-2147415675$CSSMERR_CSP_MISSING_ATTR_RANDOM@-2147415745$CSSMERR_CSP_MISSING_ATTR_ROUNDS@-2147415705$CSSMERR_CSP_MISSING_ATTR_SALT@-2147415749$CSSMERR_CSP_MISSING_ATTR_SEED@-2147415743$CSSMERR_CSP_MISSING_ATTR_START_DATE@-2147415693$CSSMERR_CSP_MISSING_ATTR_SUBPRIME@-2147415683$CSSMERR_CSP_MISSING_ATTR_SYMMETRIC_KEY_FORMAT@-2147415671$CSSMERR_CSP_MISSING_ATTR_VERSION@-2147415689$CSSMERR_CSP_MISSING_ATTR_WRAPPED_KEY_FORMAT@-2147415669$CSSMERR_CSP_NOT_LOGGED_IN@-2147415801$CSSMERR_CSP_NO_USER_INTERACTION@-2147415840$CSSMERR_CSP_OBJECT_ACL_NOT_SUPPORTED@-2147416029$CSSMERR_CSP_OBJECT_ACL_REQUIRED@-2147416028$CSSMERR_CSP_OBJECT_MANIP_AUTH_DENIED@-2147416030$CSSMERR_CSP_OBJECT_USE_AUTH_DENIED@-2147416031$CSSMERR_CSP_OPERATION_AUTH_DENIED@-2147416032$CSSMERR_CSP_OS_ACCESS_DENIED@-2147416055$CSSMERR_CSP_OUTPUT_LENGTH_ERROR@-2147415806$CSSMERR_CSP_PRIVATE_KEY_ALREADY_EXISTS@-2147415725$CSSMERR_CSP_PRIVATE_KEY_NOT_FOUND@-2147415730$CSSMERR_CSP_PRIVILEGE_NOT_GRANTED@-2147415989$CSSMERR_CSP_PRIVILEGE_NOT_SUPPORTED@-2147415805$CSSMERR_CSP_PUBLIC_KEY_INCONSISTENT@-2147415729$CSSMERR_CSP_QUERY_SIZE_UNKNOWN@-2147415732$CSSMERR_CSP_SAMPLE_VALUE_NOT_SUPPORTED@-2147416023$CSSMERR_CSP_SELF_CHECK_FAILED@-2147416056$CSSMERR_CSP_SERVICE_NOT_AVAILABLE@-2147415838$CSSMERR_CSP_STAGED_OPERATION_IN_PROGRESS@-2147415736$CSSMERR_CSP_STAGED_OPERATION_NOT_STARTED@-2147415735$CSSMERR_CSP_UNSUPPORTED_KEYATTR_MASK@-2147415779$CSSMERR_CSP_UNSUPPORTED_KEYUSAGE_MASK@-2147415781$CSSMERR_CSP_UNSUPPORTED_KEY_FORMAT@-2147415785$CSSMERR_CSP_UNSUPPORTED_KEY_LABEL@-2147415777$CSSMERR_CSP_UNSUPPORTED_KEY_SIZE@-2147415784$CSSMERR_CSP_USER_CANCELED@-2147415839$CSSMERR_CSP_VECTOR_OF_BUFS_UNSUPPORTED@-2147415767$CSSMERR_CSP_VERIFY_FAILED@-2147415734$CSSMERR_CSSM_ADDIN_AUTHENTICATE_FAILED@-2147417828$CSSMERR_CSSM_ADDIN_LOAD_FAILED@-2147417834$CSSMERR_CSSM_ADDIN_UNLOAD_FAILED@-2147417832$CSSMERR_CSSM_ATTRIBUTE_NOT_IN_CONTEXT@-2147417822$CSSMERR_CSSM_BUFFER_TOO_SMALL@-2147417824$CSSMERR_CSSM_DEVICE_FAILED@-2147417883$CSSMERR_CSSM_DEVICE_RESET@-2147417884$CSSMERR_CSSM_EMM_AUTHENTICATE_FAILED@-2147417829$CSSMERR_CSSM_EMM_LOAD_FAILED@-2147417836$CSSMERR_CSSM_EMM_UNLOAD_FAILED@-2147417835$CSSMERR_CSSM_EVENT_NOTIFICATION_CALLBACK_NOT_FOUND@-2147417819$CSSMERR_CSSM_FUNCTION_FAILED@-2147418102$CSSMERR_CSSM_FUNCTION_INTEGRITY_FAIL@-2147417851$CSSMERR_CSSM_FUNCTION_NOT_IMPLEMENTED@-2147418105$CSSMERR_CSSM_INCOMPATIBLE_VERSION@-2147418047$CSSMERR_CSSM_INSUFFICIENT_CLIENT_IDENTIFICATION@-2147417885$CSSMERR_CSSM_INTERNAL_ERROR@-2147418111$CSSMERR_CSSM_INVALID_ADDIN_FUNCTION_TABLE@-2147417830$CSSMERR_CSSM_INVALID_ADDIN_HANDLE@-2147417855$CSSMERR_CSSM_INVALID_ATTRIBUTE@-2147417823$CSSMERR_CSSM_INVALID_CONTEXT_HANDLE@-2147418048$CSSMERR_CSSM_INVALID_GUID@-2147418100$CSSMERR_CSSM_INVALID_HANDLE_USAGE@-2147417853$CSSMERR_CSSM_INVALID_INPUT_POINTER@-2147418107$CSSMERR_CSSM_INVALID_KEY_HIERARCHY@-2147417833$CSSMERR_CSSM_INVALID_OUTPUT_POINTER@-2147418106$CSSMERR_CSSM_INVALID_POINTER@-2147418108$CSSMERR_CSSM_INVALID_PVC@-2147417837$CSSMERR_CSSM_INVALID_SERVICE_MASK@-2147417827$CSSMERR_CSSM_INVALID_SUBSERVICEID@-2147417825$CSSMERR_CSSM_IN_DARK_WAKE@-2147417882$CSSMERR_CSSM_LIB_REF_NOT_FOUND@-2147417831$CSSMERR_CSSM_MDS_ERROR@-2147418109$CSSMERR_CSSM_MEMORY_ERROR@-2147418110$CSSMERR_CSSM_MODULE_MANAGER_INITIALIZE_FAIL@-2147417821$CSSMERR_CSSM_MODULE_MANAGER_NOT_FOUND@-2147417820$CSSMERR_CSSM_MODULE_MANIFEST_VERIFY_FAILED@-2147418101$CSSMERR_CSSM_MODULE_NOT_LOADED@-2147417826$CSSMERR_CSSM_NOT_INITIALIZED@-2147417854$CSSMERR_CSSM_NO_USER_INTERACTION@-2147417888$CSSMERR_CSSM_OS_ACCESS_DENIED@-2147418103$CSSMERR_CSSM_PRIVILEGE_NOT_GRANTED@-2147418037$CSSMERR_CSSM_PVC_ALREADY_CONFIGURED@-2147417838$CSSMERR_CSSM_PVC_REFERENT_NOT_FOUND@-2147417852$CSSMERR_CSSM_SCOPE_NOT_SUPPORTED@-2147417839$CSSMERR_CSSM_SELF_CHECK_FAILED@-2147418104$CSSMERR_CSSM_SERVICE_NOT_AVAILABLE@-2147417886$CSSMERR_CSSM_USER_CANCELED@-2147417887$CSSMERR_DL_ACL_ADD_FAILED@-2147413962$CSSMERR_DL_ACL_BASE_CERTS_NOT_SUPPORTED@-2147413977$CSSMERR_DL_ACL_CHALLENGE_CALLBACK_FAILED@-2147413971$CSSMERR_DL_ACL_CHANGE_FAILED@-2147413967$CSSMERR_DL_ACL_DELETE_FAILED@-2147413964$CSSMERR_DL_ACL_ENTRY_TAG_NOT_FOUND@-2147413969$CSSMERR_DL_ACL_REPLACE_FAILED@-2147413963$CSSMERR_DL_ACL_SUBJECT_TYPE_NOT_SUPPORTED@-2147413973$CSSMERR_DL_DATABASE_CORRUPT@-2147413759$CSSMERR_DL_DATASTORE_ALREADY_EXISTS@-2147413736$CSSMERR_DL_DATASTORE_DOESNOT_EXIST@-2147413737$CSSMERR_DL_DATASTORE_IS_OPEN@-2147413734$CSSMERR_DL_DB_LOCKED@-2147413735$CSSMERR_DL_DEVICE_FAILED@-2147413787$CSSMERR_DL_DEVICE_RESET@-2147413788$CSSMERR_DL_ENDOFDATA@-2147413715$CSSMERR_DL_FIELD_SPECIFIED_MULTIPLE@-2147413742$CSSMERR_DL_FUNCTION_FAILED@-2147414006$CSSMERR_DL_FUNCTION_NOT_IMPLEMENTED@-2147414009$CSSMERR_DL_INCOMPATIBLE_FIELD_FORMAT@-2147413741$CSSMERR_DL_INSUFFICIENT_CLIENT_IDENTIFICATION@-2147413789$CSSMERR_DL_INTERNAL_ERROR@-2147414015$CSSMERR_DL_INVALID_ACCESS_CREDENTIALS@-2147413979$CSSMERR_DL_INVALID_ACCESS_REQUEST@-2147413724$CSSMERR_DL_INVALID_ACL_BASE_CERTS@-2147413978$CSSMERR_DL_INVALID_ACL_CHALLENGE_CALLBACK@-2147413972$CSSMERR_DL_INVALID_ACL_EDIT_MODE@-2147413968$CSSMERR_DL_INVALID_ACL_ENTRY_TAG@-2147413970$CSSMERR_DL_INVALID_ACL_SUBJECT_VALUE@-2147413974$CSSMERR_DL_INVALID_CL_HANDLE@-2147413934$CSSMERR_DL_INVALID_CSP_HANDLE@-2147413936$CSSMERR_DL_INVALID_DB_HANDLE@-2147413942$CSSMERR_DL_INVALID_DB_LIST_POINTER@-2147413939$CSSMERR_DL_INVALID_DB_LOCATION@-2147413725$CSSMERR_DL_INVALID_DB_NAME@-2147413738$CSSMERR_DL_INVALID_DL_HANDLE@-2147413935$CSSMERR_DL_INVALID_FIELD_NAME@-2147413750$CSSMERR_DL_INVALID_INDEX_INFO@-2147413723$CSSMERR_DL_INVALID_INPUT_POINTER@-2147414011$CSSMERR_DL_INVALID_MODIFY_MODE@-2147413718$CSSMERR_DL_INVALID_NETWORK_ADDR@-2147413929$CSSMERR_DL_INVALID_NEW_ACL_ENTRY@-2147413966$CSSMERR_DL_INVALID_NEW_ACL_OWNER@-2147413965$CSSMERR_DL_INVALID_NEW_OWNER@-2147413721$CSSMERR_DL_INVALID_OPEN_PARAMETERS@-2147413717$CSSMERR_DL_INVALID_OUTPUT_POINTER@-2147414010$CSSMERR_DL_INVALID_PARSING_MODULE@-2147413740$CSSMERR_DL_INVALID_PASSTHROUGH_ID@-2147413930$CSSMERR_DL_INVALID_POINTER@-2147414012$CSSMERR_DL_INVALID_QUERY@-2147413714$CSSMERR_DL_INVALID_RECORDTYPE@-2147413751$CSSMERR_DL_INVALID_RECORD_INDEX@-2147413752$CSSMERR_DL_INVALID_RECORD_UID@-2147413720$CSSMERR_DL_INVALID_RESULTS_HANDLE@-2147413726$CSSMERR_DL_INVALID_SAMPLE_VALUE@-2147413976$CSSMERR_DL_INVALID_SELECTION_TAG@-2147413722$CSSMERR_DL_INVALID_UNIQUE_INDEX_DATA@-2147413719$CSSMERR_DL_INVALID_VALUE@-2147413713$CSSMERR_DL_IN_DARK_WAKE@-2147413786$CSSMERR_DL_MDS_ERROR@-2147414013$CSSMERR_DL_MEMORY_ERROR@-2147414014$CSSMERR_DL_MISSING_VALUE@-2147413732$CSSMERR_DL_MULTIPLE_VALUES_UNSUPPORTED@-2147413712$CSSMERR_DL_NO_USER_INTERACTION@-2147413792$CSSMERR_DL_OBJECT_ACL_NOT_SUPPORTED@-2147413981$CSSMERR_DL_OBJECT_ACL_REQUIRED@-2147413980$CSSMERR_DL_OBJECT_MANIP_AUTH_DENIED@-2147413982$CSSMERR_DL_OBJECT_USE_AUTH_DENIED@-2147413983$CSSMERR_DL_OPERATION_AUTH_DENIED@-2147413984$CSSMERR_DL_OS_ACCESS_DENIED@-2147414007$CSSMERR_DL_RECORD_MODIFIED@-2147413716$CSSMERR_DL_RECORD_NOT_FOUND@-2147413733$CSSMERR_DL_SAMPLE_VALUE_NOT_SUPPORTED@-2147413975$CSSMERR_DL_SELF_CHECK_FAILED@-2147414008$CSSMERR_DL_SERVICE_NOT_AVAILABLE@-2147413790$CSSMERR_DL_STALE_UNIQUE_RECORD@-2147413711$CSSMERR_DL_UNSUPPORTED_FIELD_FORMAT@-2147413749$CSSMERR_DL_UNSUPPORTED_INDEX_INFO@-2147413748$CSSMERR_DL_UNSUPPORTED_LOCALITY@-2147413747$CSSMERR_DL_UNSUPPORTED_NUM_ATTRIBUTES@-2147413746$CSSMERR_DL_UNSUPPORTED_NUM_INDEXES@-2147413745$CSSMERR_DL_UNSUPPORTED_NUM_RECORDTYPES@-2147413744$CSSMERR_DL_UNSUPPORTED_NUM_SELECTION_PREDS@-2147413729$CSSMERR_DL_UNSUPPORTED_OPERATOR@-2147413727$CSSMERR_DL_UNSUPPORTED_QUERY@-2147413731$CSSMERR_DL_UNSUPPORTED_QUERY_LIMITS@-2147413730$CSSMERR_DL_UNSUPPORTED_RECORDTYPE@-2147413743$CSSMERR_DL_USER_CANCELED@-2147413791$CSSMERR_TP_AUTHENTICATION_FAILED@-2147409657$CSSMERR_TP_CERTGROUP_INCOMPLETE@-2147409656$CSSMERR_TP_CERTIFICATE_CANT_OPERATE@-2147409655$CSSMERR_TP_CERT_EXPIRED@-2147409654$CSSMERR_TP_CERT_NOT_VALID_YET@-2147409653$CSSMERR_TP_CERT_REVOKED@-2147409652$CSSMERR_TP_CERT_SUSPENDED@-2147409651$CSSMERR_TP_CRL_ALREADY_SIGNED@-2147409849$CSSMERR_TP_DEVICE_FAILED@-2147409691$CSSMERR_TP_DEVICE_RESET@-2147409692$CSSMERR_TP_FUNCTION_FAILED@-2147409910$CSSMERR_TP_FUNCTION_NOT_IMPLEMENTED@-2147409913$CSSMERR_TP_INSUFFICIENT_CLIENT_IDENTIFICATION@-2147409693$CSSMERR_TP_INSUFFICIENT_CREDENTIALS@-2147409650$CSSMERR_TP_INTERNAL_ERROR@-2147409919$CSSMERR_TP_INVALID_ACTION@-2147409649$CSSMERR_TP_INVALID_ACTION_DATA@-2147409648$CSSMERR_TP_INVALID_ANCHOR_CERT@-2147409646$CSSMERR_TP_INVALID_AUTHORITY@-2147409645$CSSMERR_TP_INVALID_CALLBACK@-2147409625$CSSMERR_TP_INVALID_CALLERAUTH_CONTEXT_POINTER@-2147409663$CSSMERR_TP_INVALID_CERTGROUP@-2147409660$CSSMERR_TP_INVALID_CERTGROUP_POINTER@-2147409854$CSSMERR_TP_INVALID_CERTIFICATE@-2147409643$CSSMERR_TP_INVALID_CERT_AUTHORITY@-2147409642$CSSMERR_TP_INVALID_CERT_POINTER@-2147409853$CSSMERR_TP_INVALID_CL_HANDLE@-2147409838$CSSMERR_TP_INVALID_CONTEXT_HANDLE@-2147409856$CSSMERR_TP_INVALID_CRL@-2147409638$CSSMERR_TP_INVALID_CRLGROUP@-2147409659$CSSMERR_TP_INVALID_CRLGROUP_POINTER@-2147409658$CSSMERR_TP_INVALID_CRL_AUTHORITY@-2147409641$CSSMERR_TP_INVALID_CRL_ENCODING@-2147409640$CSSMERR_TP_INVALID_CRL_POINTER@-2147409852$CSSMERR_TP_INVALID_CRL_TYPE@-2147409639$CSSMERR_TP_INVALID_CSP_HANDLE@-2147409840$CSSMERR_TP_INVALID_DATA@-2147409850$CSSMERR_TP_INVALID_DB_HANDLE@-2147409846$CSSMERR_TP_INVALID_DB_LIST@-2147409844$CSSMERR_TP_INVALID_DB_LIST_POINTER@-2147409843$CSSMERR_TP_INVALID_DL_HANDLE@-2147409839$CSSMERR_TP_INVALID_FIELD_POINTER@-2147409851$CSSMERR_TP_INVALID_FORM_TYPE@-2147409637$CSSMERR_TP_INVALID_ID@-2147409636$CSSMERR_TP_INVALID_IDENTIFIER@-2147409635$CSSMERR_TP_INVALID_IDENTIFIER_POINTER@-2147409662$CSSMERR_TP_INVALID_INDEX@-2147409634$CSSMERR_TP_INVALID_INPUT_POINTER@-2147409915$CSSMERR_TP_INVALID_KEYCACHE_HANDLE@-2147409661$CSSMERR_TP_INVALID_NAME@-2147409633$CSSMERR_TP_INVALID_NETWORK_ADDR@-2147409833$CSSMERR_TP_INVALID_NUMBER_OF_FIELDS@-2147409848$CSSMERR_TP_INVALID_OUTPUT_POINTER@-2147409914$CSSMERR_TP_INVALID_PASSTHROUGH_ID@-2147409834$CSSMERR_TP_INVALID_POINTER@-2147409916$CSSMERR_TP_INVALID_POLICY_IDENTIFIERS@-2147409632$CSSMERR_TP_INVALID_REASON@-2147409630$CSSMERR_TP_INVALID_REQUEST_INPUTS@-2147409629$CSSMERR_TP_INVALID_RESPONSE_VECTOR@-2147409628$CSSMERR_TP_INVALID_SIGNATURE@-2147409627$CSSMERR_TP_INVALID_STOP_ON_POLICY@-2147409626$CSSMERR_TP_INVALID_TIMESTRING@-2147409631$CSSMERR_TP_INVALID_TUPLE@-2147409624$CSSMERR_TP_INVALID_TUPLEGROUP@-2147409614$CSSMERR_TP_INVALID_TUPLEGROUP_POINTER@-2147409615$CSSMERR_TP_IN_DARK_WAKE@-2147409690$CSSMERR_TP_MDS_ERROR@-2147409917$CSSMERR_TP_MEMORY_ERROR@-2147409918$CSSMERR_TP_NOT_SIGNER@-2147409623$CSSMERR_TP_NOT_TRUSTED@-2147409622$CSSMERR_TP_NO_DEFAULT_AUTHORITY@-2147409621$CSSMERR_TP_NO_USER_INTERACTION@-2147409696$CSSMERR_TP_OS_ACCESS_DENIED@-2147409911$CSSMERR_TP_REJECTED_FORM@-2147409620$CSSMERR_TP_REQUEST_LOST@-2147409619$CSSMERR_TP_REQUEST_REJECTED@-2147409618$CSSMERR_TP_SELF_CHECK_FAILED@-2147409912$CSSMERR_TP_SERVICE_NOT_AVAILABLE@-2147409694$CSSMERR_TP_UNKNOWN_FORMAT@-2147409842$CSSMERR_TP_UNKNOWN_TAG@-2147409841$CSSMERR_TP_UNSUPPORTED_ADDR_TYPE@-2147409617$CSSMERR_TP_UNSUPPORTED_SERVICE@-2147409616$CSSMERR_TP_USER_CANCELED@-2147409695$CSSMERR_TP_VERIFICATION_FAILURE@-2147409847$CSSMERR_TP_VERIFY_ACTION_FAILED@-2147409644$CSSM_ACL_AUTHORIZATION_ANY@1$CSSM_ACL_AUTHORIZATION_CHANGE_ACL@65536$CSSM_ACL_AUTHORIZATION_CHANGE_OWNER@65537$CSSM_ACL_AUTHORIZATION_DBS_CREATE@22$CSSM_ACL_AUTHORIZATION_DBS_DELETE@23$CSSM_ACL_AUTHORIZATION_DB_DELETE@17$CSSM_ACL_AUTHORIZATION_DB_INSERT@19$CSSM_ACL_AUTHORIZATION_DB_MODIFY@20$CSSM_ACL_AUTHORIZATION_DB_READ@21$CSSM_ACL_AUTHORIZATION_DECRYPT@24$CSSM_ACL_AUTHORIZATION_DELETE@25$CSSM_ACL_AUTHORIZATION_DERIVE@28$CSSM_ACL_AUTHORIZATION_ENCRYPT@35$CSSM_ACL_AUTHORIZATION_EXPORT_CLEAR@37$CSSM_ACL_AUTHORIZATION_EXPORT_WRAPPED@38$CSSM_ACL_AUTHORIZATION_GENKEY@41$CSSM_ACL_AUTHORIZATION_IMPORT_CLEAR@47$CSSM_ACL_AUTHORIZATION_IMPORT_WRAPPED@48$CSSM_ACL_AUTHORIZATION_INTEGRITY@65539$CSSM_ACL_AUTHORIZATION_LOGIN@57$CSSM_ACL_AUTHORIZATION_MAC@59$CSSM_ACL_AUTHORIZATION_PARTITION_ID@65538$CSSM_ACL_AUTHORIZATION_PREAUTH_BASE@16842752$CSSM_ACL_AUTHORIZATION_PREAUTH_END@16908288$CSSM_ACL_AUTHORIZATION_SIGN@115$CSSM_ACL_AUTHORIZATION_TAG_VENDOR_DEFINED_START@65536$CSSM_ACL_CODE_SIGNATURE_INVALID@0$CSSM_ACL_CODE_SIGNATURE_OSX@1$CSSM_ACL_EDIT_MODE_ADD@1$CSSM_ACL_EDIT_MODE_DELETE@2$CSSM_ACL_EDIT_MODE_REPLACE@3$CSSM_ACL_KEYCHAIN_PROMPT_CURRENT_VERSION@257$CSSM_ACL_KEYCHAIN_PROMPT_INVALID@64$CSSM_ACL_KEYCHAIN_PROMPT_INVALID_ACT@128$CSSM_ACL_KEYCHAIN_PROMPT_REQUIRE_PASSPHRASE@1$CSSM_ACL_KEYCHAIN_PROMPT_UNSIGNED@16$CSSM_ACL_KEYCHAIN_PROMPT_UNSIGNED_ACT@32$CSSM_ACL_MATCH_BITS@3$CSSM_ACL_MATCH_GID@2$CSSM_ACL_MATCH_HONOR_ROOT@256$CSSM_ACL_MATCH_UID@1$CSSM_ACL_PREAUTH_TRACKING_AUTHORIZED@2147483648$CSSM_ACL_PREAUTH_TRACKING_BLOCKED@0$CSSM_ACL_PREAUTH_TRACKING_COUNT_MASK@255$CSSM_ACL_PREAUTH_TRACKING_UNKNOWN@1073741824$CSSM_ACL_PROCESS_SELECTOR_CURRENT_VERSION@257$CSSM_ACL_SUBJECT_TYPE_ANY@1$CSSM_ACL_SUBJECT_TYPE_ASYMMETRIC_KEY@65547$CSSM_ACL_SUBJECT_TYPE_BIOMETRIC@8$CSSM_ACL_SUBJECT_TYPE_CODE_SIGNATURE@116$CSSM_ACL_SUBJECT_TYPE_COMMENT@12$CSSM_ACL_SUBJECT_TYPE_EXT_PAM_NAME@78$CSSM_ACL_SUBJECT_TYPE_HASHED_SUBJECT@44$CSSM_ACL_SUBJECT_TYPE_KEYCHAIN_PROMPT@65536$CSSM_ACL_SUBJECT_TYPE_LOGIN_NAME@58$CSSM_ACL_SUBJECT_TYPE_PARTITION@65548$CSSM_ACL_SUBJECT_TYPE_PASSWORD@79$CSSM_ACL_SUBJECT_TYPE_PREAUTH@65545$CSSM_ACL_SUBJECT_TYPE_PREAUTH_SOURCE@65546$CSSM_ACL_SUBJECT_TYPE_PROCESS@65539$CSSM_ACL_SUBJECT_TYPE_PROMPTED_BIOMETRIC@83$CSSM_ACL_SUBJECT_TYPE_PROMPTED_PASSWORD@84$CSSM_ACL_SUBJECT_TYPE_PROTECTED_BIOMETRIC@86$CSSM_ACL_SUBJECT_TYPE_PROTECTED_PASSWORD@87$CSSM_ACL_SUBJECT_TYPE_PUBLIC_KEY@89$CSSM_ACL_SUBJECT_TYPE_SYMMETRIC_KEY@65541$CSSM_ACL_SUBJECT_TYPE_THRESHOLD@123$CSSM_AC_BASE_AC_ERROR@-2147405568$CSSM_AC_BASE_ERROR@-2147405824$CSSM_AC_PRIVATE_ERROR@-2147404800$CSSM_ADDR_CUSTOM@1$CSSM_ADDR_NAME@4$CSSM_ADDR_NONE@0$CSSM_ADDR_SOCKADDR@3$CSSM_ADDR_URL@2$CSSM_ALGCLASS_ASYMMETRIC@8$CSSM_ALGCLASS_CUSTOM@1$CSSM_ALGCLASS_DERIVEKEY@10$CSSM_ALGCLASS_DIGEST@4$CSSM_ALGCLASS_KEYGEN@9$CSSM_ALGCLASS_MAC@7$CSSM_ALGCLASS_NONE@0$CSSM_ALGCLASS_RANDOMGEN@5$CSSM_ALGCLASS_SIGNATURE@2$CSSM_ALGCLASS_SYMMETRIC@3$CSSM_ALGCLASS_UNIQUEGEN@6$CSSM_ALGID_3DES@77$CSSM_ALGID_3DES_1KEY@20$CSSM_ALGID_3DES_1KEY_EEE@19$CSSM_ALGID_3DES_2KEY@18$CSSM_ALGID_3DES_2KEY_EDE@18$CSSM_ALGID_3DES_2KEY_EEE@21$CSSM_ALGID_3DES_3KEY@17$CSSM_ALGID_3DES_3KEY_EDE@17$CSSM_ALGID_3DES_3KEY_EEE@20$CSSM_ALGID_AES@2147483649$CSSM_ALGID_APPLE_YARROW@2147483648$CSSM_ALGID_ASC@2147483655$CSSM_ALGID_BATON@72$CSSM_ALGID_BLOWFISH@28$CSSM_ALGID_CAST@27$CSSM_ALGID_CAST3@53$CSSM_ALGID_CAST5@54$CSSM_ALGID_CDMF@52$CSSM_ALGID_CRAB@41$CSSM_ALGID_CUSTOM@1$CSSM_ALGID_ConcatBaseAndData@58$CSSM_ALGID_ConcatBaseAndKey@56$CSSM_ALGID_ConcatDataAndBase@59$CSSM_ALGID_ConcatKeyAndBase@57$CSSM_ALGID_DES@14$CSSM_ALGID_DESRandom@50$CSSM_ALGID_DESX@15$CSSM_ALGID_DH@2$CSSM_ALGID_DSA@43$CSSM_ALGID_DSA_BSAFE@83$CSSM_ALGID_ECAES@90$CSSM_ALGID_ECC@93$CSSM_ALGID_ECDH@84$CSSM_ALGID_ECDH_X963_KDF@2147483677$CSSM_ALGID_ECDSA@73$CSSM_ALGID_ECDSA_SPECIFIED@2147483676$CSSM_ALGID_ECES@89$CSSM_ALGID_ECMQV@85$CSSM_ALGID_ECNRA@87$CSSM_ALGID_ENTROPY_DEFAULT@2147483665$CSSM_ALGID_ElGamal@46$CSSM_ALGID_ExtractFromKey@61$CSSM_ALGID_FASTHASH@76$CSSM_ALGID_FEAL@32$CSSM_ALGID_FEE@2147483650$CSSM_ALGID_FEED@2147483653$CSSM_ALGID_FEEDEXP@2147483654$CSSM_ALGID_FEE_MD5@2147483651$CSSM_ALGID_FEE_SHA1@2147483652$CSSM_ALGID_FIPS186Random@92$CSSM_ALGID_FortezzaTimestamp@80$CSSM_ALGID_GOST@39$CSSM_ALGID_GenericSecret@55$CSSM_ALGID_HAVAL@10$CSSM_ALGID_HAVAL3@98$CSSM_ALGID_HAVAL4@99$CSSM_ALGID_HAVAL5@100$CSSM_ALGID_IBCHASH@12$CSSM_ALGID_IDEA@22$CSSM_ALGID_IntelPlatformRandom@96$CSSM_ALGID_JUNIPER@75$CSSM_ALGID_KEA@4$CSSM_ALGID_KEYCHAIN_KEY@2147483657$CSSM_ALGID_KHAFRE@37$CSSM_ALGID_KHUFU@36$CSSM_ALGID_LAST@2147483647$CSSM_ALGID_LOKI@35$CSSM_ALGID_LUCIFER@30$CSSM_ALGID_MADRYGA@31$CSSM_ALGID_MAYFLY@74$CSSM_ALGID_MD2@5$CSSM_ALGID_MD2Random@47$CSSM_ALGID_MD2WithRSA@45$CSSM_ALGID_MD4@6$CSSM_ALGID_MD5@7$CSSM_ALGID_MD5HMAC@102$CSSM_ALGID_MD5Random@48$CSSM_ALGID_MD5WithRSA@44$CSSM_ALGID_MMB@38$CSSM_ALGID_MQV@94$CSSM_ALGID_NHASH@9$CSSM_ALGID_NONE@0$CSSM_ALGID_NRA@95$CSSM_ALGID_OPENSSH1@2147483671$CSSM_ALGID_PBE_OPENSSL_MD5@2147483661$CSSM_ALGID_PH@3$CSSM_ALGID_PKCS12_PBE_ENCR@2147483658$CSSM_ALGID_PKCS12_PBE_MAC@2147483659$CSSM_ALGID_PKCS12_SHA1_PBE@86$CSSM_ALGID_PKCS5_PBKDF1_MD2@68$CSSM_ALGID_PKCS5_PBKDF1_MD5@67$CSSM_ALGID_PKCS5_PBKDF1_SHA1@69$CSSM_ALGID_PKCS5_PBKDF2@103$CSSM_ALGID_RC2@23$CSSM_ALGID_RC4@25$CSSM_ALGID_RC5@24$CSSM_ALGID_RDES@16$CSSM_ALGID_REDOC@33$CSSM_ALGID_REDOC3@34$CSSM_ALGID_RIPEMAC@13$CSSM_ALGID_RIPEMD@11$CSSM_ALGID_RSA@42$CSSM_ALGID_RUNNING_COUNTER@104$CSSM_ALGID_SAFER@40$CSSM_ALGID_SEAL@26$CSSM_ALGID_SECURE_PASSPHRASE@2147483660$CSSM_ALGID_SHA1@8$CSSM_ALGID_SHA1HMAC@91$CSSM_ALGID_SHA1HMAC_LEGACY@2147483656$CSSM_ALGID_SHA1WithDSA@81$CSSM_ALGID_SHA1WithECDSA@82$CSSM_ALGID_SHA1WithECNRA@88$CSSM_ALGID_SHA1WithRSA@51$CSSM_ALGID_SHA224@2147483666$CSSM_ALGID_SHA224WithECDSA@2147483672$CSSM_ALGID_SHA224WithRSA@2147483667$CSSM_ALGID_SHA256@2147483662$CSSM_ALGID_SHA256WithECDSA@2147483673$CSSM_ALGID_SHA256WithRSA@2147483668$CSSM_ALGID_SHA384@2147483663$CSSM_ALGID_SHA384WithECDSA@2147483674$CSSM_ALGID_SHA384WithRSA@2147483669$CSSM_ALGID_SHA512@2147483664$CSSM_ALGID_SHA512WithECDSA@2147483675$CSSM_ALGID_SHA512WithRSA@2147483670$CSSM_ALGID_SHARandom@49$CSSM_ALGID_SKIPJACK@29$CSSM_ALGID_SSL3KeyAndMacDerive@64$CSSM_ALGID_SSL3MD5@78$CSSM_ALGID_SSL3MD5_MAC@65$CSSM_ALGID_SSL3MasterDerive@63$CSSM_ALGID_SSL3PreMasterGen@62$CSSM_ALGID_SSL3SHA1@79$CSSM_ALGID_SSL3SHA1_MAC@66$CSSM_ALGID_TIGER@101$CSSM_ALGID_UTC@97$CSSM_ALGID_VENDOR_DEFINED@2147483648$CSSM_ALGID_WrapLynks@70$CSSM_ALGID_WrapSET_OAEP@71$CSSM_ALGID_XORBaseAndData@60$CSSM_ALGID__FIRST_UNUSED@2147483678$CSSM_ALGMODE_BC@14$CSSM_ALGMODE_CBC@4$CSSM_ALGMODE_CBC128@36$CSSM_ALGMODE_CBC64@25$CSSM_ALGMODE_CBCC@16$CSSM_ALGMODE_CBCPD@20$CSSM_ALGMODE_CBCPadIV8@6$CSSM_ALGMODE_CBC_IV8@5$CSSM_ALGMODE_CFB@7$CSSM_ALGMODE_CFB16@29$CSSM_ALGMODE_CFB32@28$CSSM_ALGMODE_CFB8@30$CSSM_ALGMODE_CFBPadIV8@9$CSSM_ALGMODE_CFB_IV8@8$CSSM_ALGMODE_COUNTER@13$CSSM_ALGMODE_CUSTOM@1$CSSM_ALGMODE_ECB@2$CSSM_ALGMODE_ECB128@34$CSSM_ALGMODE_ECB64@24$CSSM_ALGMODE_ECB96@35$CSSM_ALGMODE_ECBPad@3$CSSM_ALGMODE_ISO_9796@41$CSSM_ALGMODE_LAST@2147483647$CSSM_ALGMODE_NONE@0$CSSM_ALGMODE_OAEP_HASH@37$CSSM_ALGMODE_OFB@10$CSSM_ALGMODE_OFB64@26$CSSM_ALGMODE_OFBNLF@17$CSSM_ALGMODE_OFBPadIV8@12$CSSM_ALGMODE_OFB_IV8@11$CSSM_ALGMODE_PBC@18$CSSM_ALGMODE_PCBC@15$CSSM_ALGMODE_PFB@19$CSSM_ALGMODE_PKCS1_EME_OAEP@39$CSSM_ALGMODE_PKCS1_EME_V15@38$CSSM_ALGMODE_PKCS1_EMSA_V15@40$CSSM_ALGMODE_PRIVATE_KEY@22$CSSM_ALGMODE_PRIVATE_WRAP@32$CSSM_ALGMODE_PUBLIC_KEY@21$CSSM_ALGMODE_RELAYX@33$CSSM_ALGMODE_SHUFFLE@23$CSSM_ALGMODE_VENDOR_DEFINED@2147483648$CSSM_ALGMODE_WRAP@31$CSSM_ALGMODE_X9_31@42$CSSM_APPLECSPDL_DB_CHANGE_PASSWORD@5$CSSM_APPLECSPDL_DB_GET_HANDLE@6$CSSM_APPLECSPDL_DB_GET_SETTINGS@2$CSSM_APPLECSPDL_DB_IS_LOCKED@4$CSSM_APPLECSPDL_DB_LOCK@0$CSSM_APPLECSPDL_DB_SET_SETTINGS@3$CSSM_APPLECSPDL_DB_UNLOCK@1$CSSM_APPLECSP_KEYDIGEST@256$CSSM_APPLEDL_OPEN_PARAMETERS_VERSION@1$CSSM_APPLEFILEDL_COMMIT@1$CSSM_APPLEFILEDL_DELETE_FILE@6$CSSM_APPLEFILEDL_MAKE_BACKUP@4$CSSM_APPLEFILEDL_MAKE_COPY@5$CSSM_APPLEFILEDL_ROLLBACK@2$CSSM_APPLEFILEDL_TAKE_FILE_LOCK@3$CSSM_APPLEFILEDL_TOGGLE_AUTOCOMMIT@0$CSSM_APPLESCPDL_CSP_GET_KEYHANDLE@7$CSSM_APPLEX509CL_OBTAIN_CSR@0$CSSM_APPLEX509CL_VERIFY_CSR@1$CSSM_APPLE_PRIVATE_CSPDL_CODE_10@10$CSSM_APPLE_PRIVATE_CSPDL_CODE_11@11$CSSM_APPLE_PRIVATE_CSPDL_CODE_12@12$CSSM_APPLE_PRIVATE_CSPDL_CODE_13@13$CSSM_APPLE_PRIVATE_CSPDL_CODE_14@14$CSSM_APPLE_PRIVATE_CSPDL_CODE_15@15$CSSM_APPLE_PRIVATE_CSPDL_CODE_16@16$CSSM_APPLE_PRIVATE_CSPDL_CODE_17@17$CSSM_APPLE_PRIVATE_CSPDL_CODE_18@18$CSSM_APPLE_PRIVATE_CSPDL_CODE_19@19$CSSM_APPLE_PRIVATE_CSPDL_CODE_20@20$CSSM_APPLE_PRIVATE_CSPDL_CODE_21@21$CSSM_APPLE_PRIVATE_CSPDL_CODE_22@22$CSSM_APPLE_PRIVATE_CSPDL_CODE_23@23$CSSM_APPLE_PRIVATE_CSPDL_CODE_24@24$CSSM_APPLE_PRIVATE_CSPDL_CODE_25@25$CSSM_APPLE_PRIVATE_CSPDL_CODE_26@26$CSSM_APPLE_PRIVATE_CSPDL_CODE_27@27$CSSM_APPLE_PRIVATE_CSPDL_CODE_8@8$CSSM_APPLE_PRIVATE_CSPDL_CODE_9@9$CSSM_APPLE_TP_ACTION_VERSION@0$CSSM_APPLE_TP_CRL_OPTS_VERSION@0$CSSM_APPLE_TP_SMIME_OPTS_VERSION@0$CSSM_APPLE_TP_SSL_CLIENT@1$CSSM_APPLE_TP_SSL_OPTS_VERSION@1$CSSM_APPLE_UNLOCK_TYPE_KEY_DIRECT@1$CSSM_APPLE_UNLOCK_TYPE_WRAPPED_PRIVATE@2$CSSM_ASC_OPTIMIZE_ASCII@5$CSSM_ASC_OPTIMIZE_DEFAULT@0$CSSM_ASC_OPTIMIZE_SECURITY@2$CSSM_ASC_OPTIMIZE_SIZE@1$CSSM_ASC_OPTIMIZE_TIME@3$CSSM_ASC_OPTIMIZE_TIME_SIZE@4$CSSM_ATTACH_READ_ONLY@1$CSSM_ATTRIBUTE_ACCESS_CREDENTIALS@2147483684$CSSM_ATTRIBUTE_ALERT_TITLE@545259527$CSSM_ATTRIBUTE_ALG_ID@268435485$CSSM_ATTRIBUTE_ALG_PARAMS@536870928$CSSM_ATTRIBUTE_ASC_OPTIMIZATION@276824067$CSSM_ATTRIBUTE_BASE@536870939$CSSM_ATTRIBUTE_BLOCK_SIZE@268435468$CSSM_ATTRIBUTE_CSP_HANDLE@268435490$CSSM_ATTRIBUTE_CUSTOM@536870913$CSSM_ATTRIBUTE_DATA_ACCESS_CREDENTIALS@2147483648$CSSM_ATTRIBUTE_DATA_CRYPTO_DATA@805306368$CSSM_ATTRIBUTE_DATA_CSSM_DATA@536870912$CSSM_ATTRIBUTE_DATA_DATE@1610612736$CSSM_ATTRIBUTE_DATA_DL_DB_HANDLE@33554432$CSSM_ATTRIBUTE_DATA_KEY@1073741824$CSSM_ATTRIBUTE_DATA_KR_PROFILE@50331648$CSSM_ATTRIBUTE_DATA_NONE@0$CSSM_ATTRIBUTE_DATA_RANGE@1879048192$CSSM_ATTRIBUTE_DATA_STRING@1342177280$CSSM_ATTRIBUTE_DATA_UINT32@268435456$CSSM_ATTRIBUTE_DATA_VERSION@16777216$CSSM_ATTRIBUTE_DESCRIPTION@1342177282$CSSM_ATTRIBUTE_DL_DB_HANDLE@33554467$CSSM_ATTRIBUTE_EFFECTIVE_BITS@268435476$CSSM_ATTRIBUTE_END_DATE@1610612758$CSSM_ATTRIBUTE_FEE_CURVE_TYPE@276824066$CSSM_ATTRIBUTE_FEE_PRIME_TYPE@276824065$CSSM_ATTRIBUTE_INIT_VECTOR@536870916$CSSM_ATTRIBUTE_ITERATION_COUNT@268435486$CSSM_ATTRIBUTE_IV_SIZE@268435471$CSSM_ATTRIBUTE_KEY@1073741827$CSSM_ATTRIBUTE_KEYATTR@268435480$CSSM_ATTRIBUTE_KEYUSAGE@268435479$CSSM_ATTRIBUTE_KEY_LENGTH@268435466$CSSM_ATTRIBUTE_KEY_LENGTH_RANGE@1879048203$CSSM_ATTRIBUTE_KEY_TYPE@268435474$CSSM_ATTRIBUTE_KRPROFILE_LOCAL@50331680$CSSM_ATTRIBUTE_KRPROFILE_REMOTE@50331681$CSSM_ATTRIBUTE_LABEL@536870929$CSSM_ATTRIBUTE_MODE@268435475$CSSM_ATTRIBUTE_NONE@0$CSSM_ATTRIBUTE_OUTPUT_SIZE@268435469$CSSM_ATTRIBUTE_PADDING@268435462$CSSM_ATTRIBUTE_PARAM_KEY@1082130437$CSSM_ATTRIBUTE_PASSPHRASE@805306377$CSSM_ATTRIBUTE_PRIME@536870938$CSSM_ATTRIBUTE_PRIVATE_KEY_FORMAT@268435494$CSSM_ATTRIBUTE_PROMPT@545259526$CSSM_ATTRIBUTE_PUBLIC_KEY@1082130432$CSSM_ATTRIBUTE_PUBLIC_KEY_FORMAT@268435493$CSSM_ATTRIBUTE_RANDOM@536870919$CSSM_ATTRIBUTE_ROUNDS@268435470$CSSM_ATTRIBUTE_ROUNDS_RANGE@1879048223$CSSM_ATTRIBUTE_RSA_BLINDING@276824068$CSSM_ATTRIBUTE_SALT@536870917$CSSM_ATTRIBUTE_SEED@805306376$CSSM_ATTRIBUTE_START_DATE@1610612757$CSSM_ATTRIBUTE_SUBPRIME@536870940$CSSM_ATTRIBUTE_SYMMETRIC_KEY_FORMAT@268435495$CSSM_ATTRIBUTE_TYPE_MASK@4278190080$CSSM_ATTRIBUTE_VENDOR_DEFINED@8388608$CSSM_ATTRIBUTE_VERIFY_PASSPHRASE@276824072$CSSM_ATTRIBUTE_VERSION@16777241$CSSM_ATTRIBUTE_WRAPPED_KEY_FORMAT@268435496$CSSM_BASE_ERROR@-2147418112$CSSM_CERTGROUP_CERT_PAIR@3$CSSM_CERTGROUP_DATA@0$CSSM_CERTGROUP_ENCODED_CERT@1$CSSM_CERTGROUP_PARSED_CERT@2$CSSM_CERT_ACL_ENTRY@12$CSSM_CERT_BUNDLE_CUSTOM@1$CSSM_CERT_BUNDLE_ENCODING_BER@2$CSSM_CERT_BUNDLE_ENCODING_CUSTOM@1$CSSM_CERT_BUNDLE_ENCODING_DER@3$CSSM_CERT_BUNDLE_ENCODING_PGP@5$CSSM_CERT_BUNDLE_ENCODING_SEXPR@4$CSSM_CERT_BUNDLE_ENCODING_UNKNOWN@0$CSSM_CERT_BUNDLE_LAST@32767$CSSM_CERT_BUNDLE_PFX@5$CSSM_CERT_BUNDLE_PGP_KEYRING@7$CSSM_CERT_BUNDLE_PKCS12@4$CSSM_CERT_BUNDLE_PKCS7_SIGNED_DATA@2$CSSM_CERT_BUNDLE_PKCS7_SIGNED_ENVELOPED_DATA@3$CSSM_CERT_BUNDLE_SPKI_SEQUENCE@6$CSSM_CERT_BUNDLE_UNKNOWN@0$CSSM_CERT_ENCODING_BER@2$CSSM_CERT_ENCODING_CUSTOM@1$CSSM_CERT_ENCODING_DER@3$CSSM_CERT_ENCODING_LAST@32767$CSSM_CERT_ENCODING_MULTIPLE@32766$CSSM_CERT_ENCODING_NDR@4$CSSM_CERT_ENCODING_PGP@6$CSSM_CERT_ENCODING_SEXPR@5$CSSM_CERT_ENCODING_UNKNOWN@0$CSSM_CERT_Intel@8$CSSM_CERT_LAST@32767$CSSM_CERT_MULTIPLE@32766$CSSM_CERT_PARSE_FORMAT_COMPLEX@3$CSSM_CERT_PARSE_FORMAT_CUSTOM@1$CSSM_CERT_PARSE_FORMAT_LAST@32767$CSSM_CERT_PARSE_FORMAT_MULTIPLE@32766$CSSM_CERT_PARSE_FORMAT_NONE@0$CSSM_CERT_PARSE_FORMAT_OID_NAMED@4$CSSM_CERT_PARSE_FORMAT_SEXPR@2$CSSM_CERT_PARSE_FORMAT_TUPLE@5$CSSM_CERT_PGP@4$CSSM_CERT_SDSIv1@6$CSSM_CERT_SPKI@5$CSSM_CERT_STATUS_EXPIRED@1$CSSM_CERT_STATUS_IS_FROM_NET@32$CSSM_CERT_STATUS_IS_IN_ANCHORS@8$CSSM_CERT_STATUS_IS_IN_INPUT_CERTS@4$CSSM_CERT_STATUS_IS_ROOT@16$CSSM_CERT_STATUS_NOT_VALID_YET@2$CSSM_CERT_STATUS_TRUST_SETTINGS_DENY@1024$CSSM_CERT_STATUS_TRUST_SETTINGS_FOUND_ADMIN@128$CSSM_CERT_STATUS_TRUST_SETTINGS_FOUND_SYSTEM@256$CSSM_CERT_STATUS_TRUST_SETTINGS_FOUND_USER@64$CSSM_CERT_STATUS_TRUST_SETTINGS_IGNORED_ERROR@2048$CSSM_CERT_STATUS_TRUST_SETTINGS_TRUST@512$CSSM_CERT_TUPLE@11$CSSM_CERT_UNKNOWN@0$CSSM_CERT_X9_ATTRIBUTE@10$CSSM_CERT_X_509_ATTRIBUTE@9$CSSM_CERT_X_509v1@1$CSSM_CERT_X_509v2@2$CSSM_CERT_X_509v3@3$CSSM_CL_BASE_CL_ERROR@-2147411712$CSSM_CL_BASE_ERROR@-2147411968$CSSM_CL_CUSTOM_CERT_BUNDLE_TYPE@32768$CSSM_CL_CUSTOM_CERT_ENCODING@32768$CSSM_CL_CUSTOM_CERT_PARSE_FORMAT@32768$CSSM_CL_CUSTOM_CERT_TYPE@32768$CSSM_CL_CUSTOM_CRL_PARSE_FORMAT@32768$CSSM_CL_PRIVATE_ERROR@-2147410944$CSSM_CL_TEMPLATE_INTERMEDIATE_CERT@1$CSSM_CL_TEMPLATE_PKIX_CERTTEMPLATE@2$CSSM_CONTEXT_EVENT_CREATE@1$CSSM_CONTEXT_EVENT_DELETE@2$CSSM_CONTEXT_EVENT_UPDATE@3$CSSM_CRLGROUP_CRL_PAIR@3$CSSM_CRLGROUP_DATA@0$CSSM_CRLGROUP_ENCODED_CRL@1$CSSM_CRLGROUP_PARSED_CRL@2$CSSM_CRL_ENCODING_BER@2$CSSM_CRL_ENCODING_BLOOM@4$CSSM_CRL_ENCODING_CUSTOM@1$CSSM_CRL_ENCODING_DER@3$CSSM_CRL_ENCODING_MULTIPLE@32766$CSSM_CRL_ENCODING_SEXPR@5$CSSM_CRL_ENCODING_UNKNOWN@0$CSSM_CRL_PARSE_FORMAT_COMPLEX@3$CSSM_CRL_PARSE_FORMAT_CUSTOM@1$CSSM_CRL_PARSE_FORMAT_LAST@32767$CSSM_CRL_PARSE_FORMAT_MULTIPLE@32766$CSSM_CRL_PARSE_FORMAT_NONE@0$CSSM_CRL_PARSE_FORMAT_OID_NAMED@4$CSSM_CRL_PARSE_FORMAT_SEXPR@2$CSSM_CRL_PARSE_FORMAT_TUPLE@5$CSSM_CRL_TYPE_MULTIPLE@32766$CSSM_CRL_TYPE_SPKI@3$CSSM_CRL_TYPE_UNKNOWN@0$CSSM_CRL_TYPE_X_509v1@1$CSSM_CRL_TYPE_X_509v2@2$CSSM_CSP_BASE_CSP_ERROR@-2147415808$CSSM_CSP_BASE_ERROR@-2147416064$CSSM_CSP_HARDWARE@2$CSSM_CSP_HYBRID@3$CSSM_CSP_PRIVATE_ERROR@-2147415040$CSSM_CSP_RDR_EXISTS@2$CSSM_CSP_RDR_HW@4$CSSM_CSP_RDR_TOKENPRESENT@1$CSSM_CSP_SOFTWARE@1$CSSM_CSP_STORES_CERTIFICATES@134217728$CSSM_CSP_STORES_GENERIC@268435456$CSSM_CSP_STORES_PRIVATE_KEYS@16777216$CSSM_CSP_STORES_PUBLIC_KEYS@33554432$CSSM_CSP_STORES_SESSION_KEYS@67108864$CSSM_CSP_TOK_CLOCK_EXISTS@64$CSSM_CSP_TOK_LOGIN_REQUIRED@4$CSSM_CSP_TOK_PRIVATE_KEY_PASSWORD@4194304$CSSM_CSP_TOK_PROT_AUTHENTICATION@256$CSSM_CSP_TOK_RNG@1$CSSM_CSP_TOK_SESSION_KEY_PASSWORD@2097152$CSSM_CSP_TOK_USER_PIN_EXPIRED@1048576$CSSM_CSP_TOK_USER_PIN_INITIALIZED@8$CSSM_CSP_TOK_WRITE_PROTECTED@2$CSSM_CSSM_BASE_CSSM_ERROR@-2147417840$CSSM_CSSM_BASE_ERROR@-2147418112$CSSM_CSSM_PRIVATE_ERROR@-2147417088$CSSM_CUSTOM_COMMON_ERROR_EXTENT@224$CSSM_DB_ACCESS_PRIVILEGED@4$CSSM_DB_ACCESS_READ@1$CSSM_DB_ACCESS_RESET@65536$CSSM_DB_ACCESS_WRITE@2$CSSM_DB_AND@1$CSSM_DB_ATTRIBUTE_FORMAT_BIG_NUM@3$CSSM_DB_ATTRIBUTE_FORMAT_BLOB@6$CSSM_DB_ATTRIBUTE_FORMAT_COMPLEX@8$CSSM_DB_ATTRIBUTE_FORMAT_MULTI_UINT32@7$CSSM_DB_ATTRIBUTE_FORMAT_REAL@4$CSSM_DB_ATTRIBUTE_FORMAT_SINT32@1$CSSM_DB_ATTRIBUTE_FORMAT_STRING@0$CSSM_DB_ATTRIBUTE_FORMAT_TIME_DATE@5$CSSM_DB_ATTRIBUTE_FORMAT_UINT32@2$CSSM_DB_ATTRIBUTE_MDS_END@1073758208$CSSM_DB_ATTRIBUTE_MDS_START@1073741824$CSSM_DB_ATTRIBUTE_NAME_AS_INTEGER@2$CSSM_DB_ATTRIBUTE_NAME_AS_OID@1$CSSM_DB_ATTRIBUTE_NAME_AS_STRING@0$CSSM_DB_CERT_USE_OWNER@4$CSSM_DB_CERT_USE_PRIVACY@32$CSSM_DB_CERT_USE_REVOKED@8$CSSM_DB_CERT_USE_SIGNING@16$CSSM_DB_CERT_USE_SYSTEM@2$CSSM_DB_CERT_USE_TRUSTED@1$CSSM_DB_CONTAINS@4$CSSM_DB_CONTAINS_FINAL_SUBSTRING@6$CSSM_DB_CONTAINS_INITIAL_SUBSTRING@5$CSSM_DB_DATASTORES_UNKNOWN@4294967295$CSSM_DB_EQUAL@0$CSSM_DB_FILESYSTEMSCAN_MODE@1$CSSM_DB_GREATER_THAN@3$CSSM_DB_INDEX_NONUNIQUE@1$CSSM_DB_INDEX_ON_ATTRIBUTE@1$CSSM_DB_INDEX_ON_RECORD@2$CSSM_DB_INDEX_ON_UNKNOWN@0$CSSM_DB_INDEX_UNIQUE@0$CSSM_DB_LESS_THAN@2$CSSM_DB_MODIFY_ATTRIBUTE_ADD@1$CSSM_DB_MODIFY_ATTRIBUTE_DELETE@2$CSSM_DB_MODIFY_ATTRIBUTE_NONE@0$CSSM_DB_MODIFY_ATTRIBUTE_REPLACE@3$CSSM_DB_NONE@0$CSSM_DB_NOT_EQUAL@1$CSSM_DB_OR@2$CSSM_DB_RECORDTYPE_APP_DEFINED_END@4294967295$CSSM_DB_RECORDTYPE_APP_DEFINED_START@2147483648$CSSM_DB_RECORDTYPE_OPEN_GROUP_END@18$CSSM_DB_RECORDTYPE_OPEN_GROUP_START@10$CSSM_DB_RECORDTYPE_SCHEMA_END@4$CSSM_DB_RECORDTYPE_SCHEMA_START@0$CSSM_DB_RELATIONID_MDS_END@1073758208$CSSM_DB_RELATIONID_MDS_START@1073741824$CSSM_DB_TRANSACTIONAL_MODE@0$CSSM_DL_BASE_DL_ERROR@-2147413760$CSSM_DL_BASE_ERROR@-2147414016$CSSM_DL_CUSTOM@1$CSSM_DL_DB_RECORD_ALL_KEYS@18$CSSM_DL_DB_RECORD_ANY@10$CSSM_DL_DB_RECORD_APPLESHARE_PASSWORD@2147483650$CSSM_DL_DB_RECORD_CERT@11$CSSM_DL_DB_RECORD_CRL@12$CSSM_DL_DB_RECORD_EXTENDED_ATTRIBUTE@2147487748$CSSM_DL_DB_RECORD_GENERIC@14$CSSM_DL_DB_RECORD_GENERIC_PASSWORD@2147483648$CSSM_DL_DB_RECORD_INTERNET_PASSWORD@2147483649$CSSM_DL_DB_RECORD_METADATA@2147516416$CSSM_DL_DB_RECORD_POLICY@13$CSSM_DL_DB_RECORD_PRIVATE_KEY@16$CSSM_DL_DB_RECORD_PUBLIC_KEY@15$CSSM_DL_DB_RECORD_SYMMETRIC_KEY@17$CSSM_DL_DB_RECORD_UNLOCK_REFERRAL@2147487747$CSSM_DL_DB_RECORD_USER_TRUST@2147487745$CSSM_DL_DB_RECORD_X509_CERTIFICATE@2147487744$CSSM_DL_DB_RECORD_X509_CRL@2147487746$CSSM_DL_DB_SCHEMA_ATTRIBUTES@2$CSSM_DL_DB_SCHEMA_INDEXES@1$CSSM_DL_DB_SCHEMA_INFO@0$CSSM_DL_DB_SCHEMA_PARSING_MODULE@3$CSSM_DL_FFS@5$CSSM_DL_LDAP@2$CSSM_DL_MEMORY@6$CSSM_DL_ODBC@3$CSSM_DL_PKCS11@4$CSSM_DL_PRIVATE_ERROR@-2147412992$CSSM_DL_REMOTEDIR@7$CSSM_DL_UNKNOWN@0$CSSM_ELAPSED_TIME_COMPLETE@-2$CSSM_ELAPSED_TIME_UNKNOWN@-1$CSSM_ERRCODE_ACL_ADD_FAILED@54$CSSM_ERRCODE_ACL_BASE_CERTS_NOT_SUPPORTED@39$CSSM_ERRCODE_ACL_CHALLENGE_CALLBACK_FAILED@45$CSSM_ERRCODE_ACL_CHANGE_FAILED@49$CSSM_ERRCODE_ACL_DELETE_FAILED@52$CSSM_ERRCODE_ACL_ENTRY_TAG_NOT_FOUND@47$CSSM_ERRCODE_ACL_REPLACE_FAILED@53$CSSM_ERRCODE_ACL_SUBJECT_TYPE_NOT_SUPPORTED@43$CSSM_ERRCODE_CRL_ALREADY_SIGNED@71$CSSM_ERRCODE_DEVICE_FAILED@229$CSSM_ERRCODE_DEVICE_RESET@228$CSSM_ERRCODE_FUNCTION_FAILED@10$CSSM_ERRCODE_FUNCTION_NOT_IMPLEMENTED@7$CSSM_ERRCODE_INCOMPATIBLE_VERSION@65$CSSM_ERRCODE_INSUFFICIENT_CLIENT_IDENTIFICATION@227$CSSM_ERRCODE_INTERNAL_ERROR@1$CSSM_ERRCODE_INVALID_ACCESS_CREDENTIALS@37$CSSM_ERRCODE_INVALID_ACL_BASE_CERTS@38$CSSM_ERRCODE_INVALID_ACL_CHALLENGE_CALLBACK@44$CSSM_ERRCODE_INVALID_ACL_EDIT_MODE@48$CSSM_ERRCODE_INVALID_ACL_ENTRY_TAG@46$CSSM_ERRCODE_INVALID_ACL_SUBJECT_VALUE@42$CSSM_ERRCODE_INVALID_AC_HANDLE@85$CSSM_ERRCODE_INVALID_CERTGROUP_POINTER@66$CSSM_ERRCODE_INVALID_CERT_POINTER@67$CSSM_ERRCODE_INVALID_CL_HANDLE@82$CSSM_ERRCODE_INVALID_CONTEXT_HANDLE@64$CSSM_ERRCODE_INVALID_CRL_POINTER@68$CSSM_ERRCODE_INVALID_CRYPTO_DATA@88$CSSM_ERRCODE_INVALID_CSP_HANDLE@80$CSSM_ERRCODE_INVALID_DATA@70$CSSM_ERRCODE_INVALID_DB_HANDLE@74$CSSM_ERRCODE_INVALID_DB_LIST@76$CSSM_ERRCODE_INVALID_DB_LIST_POINTER@77$CSSM_ERRCODE_INVALID_DL_HANDLE@81$CSSM_ERRCODE_INVALID_FIELD_POINTER@69$CSSM_ERRCODE_INVALID_GUID@12$CSSM_ERRCODE_INVALID_INPUT_POINTER@5$CSSM_ERRCODE_INVALID_KR_HANDLE@84$CSSM_ERRCODE_INVALID_NETWORK_ADDR@87$CSSM_ERRCODE_INVALID_NEW_ACL_ENTRY@50$CSSM_ERRCODE_INVALID_NEW_ACL_OWNER@51$CSSM_ERRCODE_INVALID_NUMBER_OF_FIELDS@72$CSSM_ERRCODE_INVALID_OUTPUT_POINTER@6$CSSM_ERRCODE_INVALID_PASSTHROUGH_ID@86$CSSM_ERRCODE_INVALID_POINTER@4$CSSM_ERRCODE_INVALID_SAMPLE_VALUE@40$CSSM_ERRCODE_INVALID_TP_HANDLE@83$CSSM_ERRCODE_IN_DARK_WAKE@230$CSSM_ERRCODE_MDS_ERROR@3$CSSM_ERRCODE_MEMORY_ERROR@2$CSSM_ERRCODE_MODULE_MANIFEST_VERIFY_FAILED@11$CSSM_ERRCODE_NO_USER_INTERACTION@224$CSSM_ERRCODE_OBJECT_ACL_NOT_SUPPORTED@35$CSSM_ERRCODE_OBJECT_ACL_REQUIRED@36$CSSM_ERRCODE_OBJECT_MANIP_AUTH_DENIED@34$CSSM_ERRCODE_OBJECT_USE_AUTH_DENIED@33$CSSM_ERRCODE_OPERATION_AUTH_DENIED@32$CSSM_ERRCODE_OS_ACCESS_DENIED@9$CSSM_ERRCODE_PRIVILEGE_NOT_GRANTED@75$CSSM_ERRCODE_SAMPLE_VALUE_NOT_SUPPORTED@41$CSSM_ERRCODE_SELF_CHECK_FAILED@8$CSSM_ERRCODE_SERVICE_NOT_AVAILABLE@226$CSSM_ERRCODE_UNKNOWN_FORMAT@78$CSSM_ERRCODE_UNKNOWN_TAG@79$CSSM_ERRCODE_USER_CANCELED@225$CSSM_ERRCODE_VERIFICATION_FAILURE@73$CSSM_ERRORCODE_COMMON_EXTENT@256$CSSM_ERRORCODE_CUSTOM_OFFSET@1024$CSSM_ERRORCODE_MODULE_EXTENT@2048$CSSM_ESTIMATED_TIME_UNKNOWN@-1$CSSM_EVIDENCE_FORM_APPLE_CERTGROUP@2147483649$CSSM_EVIDENCE_FORM_APPLE_CERT_INFO@2147483650$CSSM_EVIDENCE_FORM_APPLE_CUSTOM@2147483648$CSSM_EVIDENCE_FORM_APPLE_HEADER@2147483648$CSSM_EVIDENCE_FORM_CERT@1$CSSM_EVIDENCE_FORM_CERT_ID@3$CSSM_EVIDENCE_FORM_CRL@2$CSSM_EVIDENCE_FORM_CRL_ID@4$CSSM_EVIDENCE_FORM_CRL_NEXTTIME@7$CSSM_EVIDENCE_FORM_CRL_THISTIME@6$CSSM_EVIDENCE_FORM_POLICYINFO@8$CSSM_EVIDENCE_FORM_TUPLEGROUP@9$CSSM_EVIDENCE_FORM_UNSPECIFIC@0$CSSM_EVIDENCE_FORM_VERIFIER_TIME@5$CSSM_FALSE@0$CSSM_FEE_CURVE_TYPE_ANSI_X9_62@3$CSSM_FEE_CURVE_TYPE_DEFAULT@0$CSSM_FEE_CURVE_TYPE_MONTGOMERY@1$CSSM_FEE_CURVE_TYPE_WEIERSTRASS@2$CSSM_FEE_PRIME_TYPE_DEFAULT@0$CSSM_FEE_PRIME_TYPE_FEE@2$CSSM_FEE_PRIME_TYPE_GENERAL@3$CSSM_FEE_PRIME_TYPE_MERSENNE@1$CSSM_FIELDVALUE_COMPLEX_DATA_TYPE@4294967295$CSSM_HINT_ADDRESS_APP@1$CSSM_HINT_ADDRESS_SP@2$CSSM_HINT_CALLBACK@1$CSSM_HINT_NONE@0$CSSM_INVALID_HANDLE@0$CSSM_KEYATTR_ALWAYS_SENSITIVE@16$CSSM_KEYATTR_EXTRACTABLE@32$CSSM_KEYATTR_MODIFIABLE@4$CSSM_KEYATTR_NEVER_EXTRACTABLE@64$CSSM_KEYATTR_PARTIAL@65536$CSSM_KEYATTR_PERMANENT@1$CSSM_KEYATTR_PRIVATE@2$CSSM_KEYATTR_PUBLIC_KEY_ENCRYPT@131072$CSSM_KEYATTR_RETURN_DATA@268435456$CSSM_KEYATTR_RETURN_DEFAULT@0$CSSM_KEYATTR_RETURN_NONE@1073741824$CSSM_KEYATTR_RETURN_REF@536870912$CSSM_KEYATTR_SENSITIVE@8$CSSM_KEYBLOB_OTHER@4294967295$CSSM_KEYBLOB_RAW@0$CSSM_KEYBLOB_RAW_FORMAT_BSAFE@6$CSSM_KEYBLOB_RAW_FORMAT_CCA@9$CSSM_KEYBLOB_RAW_FORMAT_FIPS186@5$CSSM_KEYBLOB_RAW_FORMAT_MSCAPI@3$CSSM_KEYBLOB_RAW_FORMAT_NONE@0$CSSM_KEYBLOB_RAW_FORMAT_OCTET_STRING@12$CSSM_KEYBLOB_RAW_FORMAT_OPENSSH@2147483649$CSSM_KEYBLOB_RAW_FORMAT_OPENSSH2@2147483651$CSSM_KEYBLOB_RAW_FORMAT_OPENSSL@2147483650$CSSM_KEYBLOB_RAW_FORMAT_OTHER@4294967295$CSSM_KEYBLOB_RAW_FORMAT_PGP@4$CSSM_KEYBLOB_RAW_FORMAT_PKCS1@1$CSSM_KEYBLOB_RAW_FORMAT_PKCS3@2$CSSM_KEYBLOB_RAW_FORMAT_PKCS8@10$CSSM_KEYBLOB_RAW_FORMAT_SPKI@11$CSSM_KEYBLOB_RAW_FORMAT_VENDOR_DEFINED@2147483648$CSSM_KEYBLOB_RAW_FORMAT_X509@2147483648$CSSM_KEYBLOB_REFERENCE@2$CSSM_KEYBLOB_REF_FORMAT_INTEGER@0$CSSM_KEYBLOB_REF_FORMAT_OTHER@4294967295$CSSM_KEYBLOB_REF_FORMAT_SPKI@2$CSSM_KEYBLOB_REF_FORMAT_STRING@1$CSSM_KEYBLOB_WRAPPED@3$CSSM_KEYBLOB_WRAPPED_FORMAT_APPLE_CUSTOM@100$CSSM_KEYBLOB_WRAPPED_FORMAT_MSCAPI@3$CSSM_KEYBLOB_WRAPPED_FORMAT_NONE@0$CSSM_KEYBLOB_WRAPPED_FORMAT_OPENSSH1@102$CSSM_KEYBLOB_WRAPPED_FORMAT_OPENSSL@101$CSSM_KEYBLOB_WRAPPED_FORMAT_OTHER@4294967295$CSSM_KEYBLOB_WRAPPED_FORMAT_PKCS7@2$CSSM_KEYBLOB_WRAPPED_FORMAT_PKCS8@1$CSSM_KEYCLASS_OTHER@4294967295$CSSM_KEYCLASS_PRIVATE_KEY@1$CSSM_KEYCLASS_PUBLIC_KEY@0$CSSM_KEYCLASS_SECRET_PART@3$CSSM_KEYCLASS_SESSION_KEY@2$CSSM_KEYHEADER_VERSION@2$CSSM_KEYUSE_ANY@2147483648$CSSM_KEYUSE_DECRYPT@2$CSSM_KEYUSE_DERIVE@256$CSSM_KEYUSE_ENCRYPT@1$CSSM_KEYUSE_SIGN@4$CSSM_KEYUSE_SIGN_RECOVER@16$CSSM_KEYUSE_UNWRAP@128$CSSM_KEYUSE_VERIFY@8$CSSM_KEYUSE_VERIFY_RECOVER@32$CSSM_KEYUSE_WRAP@64$CSSM_KEY_HIERARCHY_EXPORT@2$CSSM_KEY_HIERARCHY_INTEG@1$CSSM_KEY_HIERARCHY_NONE@0$CSSM_KR_BASE_ERROR@-2147407872$CSSM_KR_DROP_WORKFACTOR@32$CSSM_KR_ENT@2$CSSM_KR_ENT_POLICY@2$CSSM_KR_INDIV@1$CSSM_KR_INDIV_POLICY@1$CSSM_KR_LE_MAN@4$CSSM_KR_LE_MAN_POLICY@3$CSSM_KR_LE_USE@8$CSSM_KR_LE_USE_POLICY@4$CSSM_KR_OPTIMIZE@16$CSSM_KR_PRIVATE_ERROR@-2147406848$CSSM_LIST_ELEMENT_DATUM@0$CSSM_LIST_ELEMENT_SUBLIST@1$CSSM_LIST_ELEMENT_WORDID@2$CSSM_LIST_TYPE_CUSTOM@1$CSSM_LIST_TYPE_SEXPR@2$CSSM_LIST_TYPE_UNKNOWN@0$CSSM_MANAGER_REPLY@2$CSSM_MANAGER_SERVICE_REQUEST@1$CSSM_MDS_BASE_ERROR@-2147414016$CSSM_MDS_PRIVATE_ERROR@-2147412992$CSSM_MODULE_STRING_SIZE@64$CSSM_NET_PROTO_CMP@10$CSSM_NET_PROTO_CMPS@11$CSSM_NET_PROTO_CUSTOM@1$CSSM_NET_PROTO_FTP@7$CSSM_NET_PROTO_FTPS@8$CSSM_NET_PROTO_LDAP@3$CSSM_NET_PROTO_LDAPNS@5$CSSM_NET_PROTO_LDAPS@4$CSSM_NET_PROTO_NONE@0$CSSM_NET_PROTO_OCSP@9$CSSM_NET_PROTO_UNSPECIFIED@2$CSSM_NET_PROTO_X500DAP@6$CSSM_NOTIFY_FAULT@3$CSSM_NOTIFY_INSERT@1$CSSM_NOTIFY_REMOVE@2$CSSM_OK@0$CSSM_PADDING_ALTERNATE@4$CSSM_PADDING_APPLE_SSLv2@2147483648$CSSM_PADDING_CIPHERSTEALING@8$CSSM_PADDING_CUSTOM@1$CSSM_PADDING_FF@5$CSSM_PADDING_NONE@0$CSSM_PADDING_ONE@3$CSSM_PADDING_PKCS1@10$CSSM_PADDING_PKCS5@6$CSSM_PADDING_PKCS7@7$CSSM_PADDING_RANDOM@9$CSSM_PADDING_SIGRAW@11$CSSM_PADDING_VENDOR_DEFINED@2147483648$CSSM_PADDING_ZERO@2$CSSM_PKCS5_PBKDF2_PRF_HMAC_SHA1@0$CSSM_PKCS_OAEP_MGF1_MD5@2$CSSM_PKCS_OAEP_MGF1_SHA1@1$CSSM_PKCS_OAEP_MGF_NONE@0$CSSM_PKCS_OAEP_PSOURCE_NONE@0$CSSM_PKCS_OAEP_PSOURCE_Pspecified@1$CSSM_PRIVILEGE_SCOPE_NONE@0$CSSM_PRIVILEGE_SCOPE_PROCESS@1$CSSM_PRIVILEGE_SCOPE_THREAD@2$CSSM_PVC_APP@1$CSSM_PVC_NONE@0$CSSM_PVC_SP@2$CSSM_QUERY_RETURN_DATA@1$CSSM_QUERY_SIZELIMIT_NONE@0$CSSM_QUERY_TIMELIMIT_NONE@0$CSSM_SAMPLE_TYPE_ASYMMETRIC_KEY@65547$CSSM_SAMPLE_TYPE_BIOMETRIC@8$CSSM_SAMPLE_TYPE_COMMENT@12$CSSM_SAMPLE_TYPE_HASHED_PASSWORD@43$CSSM_SAMPLE_TYPE_KEYCHAIN_CHANGE_LOCK@65538$CSSM_SAMPLE_TYPE_KEYCHAIN_LOCK@65537$CSSM_SAMPLE_TYPE_KEYCHAIN_PROMPT@65536$CSSM_SAMPLE_TYPE_PASSWORD@79$CSSM_SAMPLE_TYPE_PREAUTH@65545$CSSM_SAMPLE_TYPE_PROCESS@65539$CSSM_SAMPLE_TYPE_PROMPTED_BIOMETRIC@83$CSSM_SAMPLE_TYPE_PROMPTED_PASSWORD@84$CSSM_SAMPLE_TYPE_PROTECTED_BIOMETRIC@86$CSSM_SAMPLE_TYPE_PROTECTED_PASSWORD@87$CSSM_SAMPLE_TYPE_RETRY_ID@85$CSSM_SAMPLE_TYPE_SIGNED_NONCE@117$CSSM_SAMPLE_TYPE_SIGNED_SECRET@118$CSSM_SAMPLE_TYPE_SYMMETRIC_KEY@65541$CSSM_SAMPLE_TYPE_THRESHOLD@123$CSSM_SERVICE_AC@32$CSSM_SERVICE_CL@8$CSSM_SERVICE_CSP@2$CSSM_SERVICE_CSSM@1$CSSM_SERVICE_DL@4$CSSM_SERVICE_KR@64$CSSM_SERVICE_TP@16$CSSM_TP_ACTION_ALLOW_EXPIRED@1$CSSM_TP_ACTION_ALLOW_EXPIRED_ROOT@8$CSSM_TP_ACTION_CRL_SUFFICIENT@4$CSSM_TP_ACTION_DEFAULT@0$CSSM_TP_ACTION_FETCH_CERT_FROM_NET@4$CSSM_TP_ACTION_FETCH_CRL_FROM_NET@2$CSSM_TP_ACTION_IMPLICIT_ANCHORS@64$CSSM_TP_ACTION_LEAF_IS_CA@2$CSSM_TP_ACTION_REQUIRE_CRL_IF_PRESENT@8$CSSM_TP_ACTION_REQUIRE_CRL_PER_CERT@1$CSSM_TP_ACTION_REQUIRE_REV_PER_CERT@16$CSSM_TP_ACTION_TRUST_SETTINGS@32$CSSM_TP_APPLE_EVIDENCE_VERSION@0$CSSM_TP_AUTHORITY_REQUEST_CERTISSUE@1$CSSM_TP_AUTHORITY_REQUEST_CERTNOTARIZE@6$CSSM_TP_AUTHORITY_REQUEST_CERTRESUME@4$CSSM_TP_AUTHORITY_REQUEST_CERTREVOKE@2$CSSM_TP_AUTHORITY_REQUEST_CERTSUSPEND@3$CSSM_TP_AUTHORITY_REQUEST_CERTUSERECOVER@7$CSSM_TP_AUTHORITY_REQUEST_CERTVERIFY@5$CSSM_TP_AUTHORITY_REQUEST_CRLISSUE@256$CSSM_TP_BASE_ERROR@-2147409920$CSSM_TP_BASE_TP_ERROR@-2147409664$CSSM_TP_CERTCHANGE_HOLD@2$CSSM_TP_CERTCHANGE_NONE@0$CSSM_TP_CERTCHANGE_NOT_AUTHORIZED@5$CSSM_TP_CERTCHANGE_OK@1$CSSM_TP_CERTCHANGE_OKWITHNEWTIME@2$CSSM_TP_CERTCHANGE_REASON_AFFILIATIONCHANGE@4$CSSM_TP_CERTCHANGE_REASON_CACOMPROMISE@2$CSSM_TP_CERTCHANGE_REASON_CEASEOPERATION@3$CSSM_TP_CERTCHANGE_REASON_HOLDRELEASE@7$CSSM_TP_CERTCHANGE_REASON_KEYCOMPROMISE@1$CSSM_TP_CERTCHANGE_REASON_SUPERCEDED@5$CSSM_TP_CERTCHANGE_REASON_SUSPECTEDCOMPROMISE@6$CSSM_TP_CERTCHANGE_REASON_UNKNOWN@0$CSSM_TP_CERTCHANGE_REJECTED@4$CSSM_TP_CERTCHANGE_RELEASE@3$CSSM_TP_CERTCHANGE_REVOKE@1$CSSM_TP_CERTCHANGE_STATUS_UNKNOWN@0$CSSM_TP_CERTCHANGE_WRONGCA@3$CSSM_TP_CERTISSUE_NOT_AUTHORIZED@5$CSSM_TP_CERTISSUE_OK@1$CSSM_TP_CERTISSUE_OKWITHCERTMODS@2$CSSM_TP_CERTISSUE_OKWITHSERVICEMODS@3$CSSM_TP_CERTISSUE_REJECTED@4$CSSM_TP_CERTISSUE_STATUS_UNKNOWN@0$CSSM_TP_CERTISSUE_WILL_BE_REVOKED@6$CSSM_TP_CERTNOTARIZE_NOT_AUTHORIZED@5$CSSM_TP_CERTNOTARIZE_OK@1$CSSM_TP_CERTNOTARIZE_OKWITHOUTFIELDS@2$CSSM_TP_CERTNOTARIZE_OKWITHSERVICEMODS@3$CSSM_TP_CERTNOTARIZE_REJECTED@4$CSSM_TP_CERTNOTARIZE_STATUS_UNKNOWN@0$CSSM_TP_CERTRECLAIM_NOMATCH@2$CSSM_TP_CERTRECLAIM_NOT_AUTHORIZED@4$CSSM_TP_CERTRECLAIM_OK@1$CSSM_TP_CERTRECLAIM_REJECTED@3$CSSM_TP_CERTRECLAIM_STATUS_UNKNOWN@0$CSSM_TP_CERTVERIFY_EXPIRED@5$CSSM_TP_CERTVERIFY_INVALID@2$CSSM_TP_CERTVERIFY_INVALID_AUTHORITY@7$CSSM_TP_CERTVERIFY_INVALID_BASIC_CONSTRAINTS@13$CSSM_TP_CERTVERIFY_INVALID_CERTGROUP@10$CSSM_TP_CERTVERIFY_INVALID_CERT_VALUE@9$CSSM_TP_CERTVERIFY_INVALID_CRL_DIST_PT@14$CSSM_TP_CERTVERIFY_INVALID_NAME_TREE@15$CSSM_TP_CERTVERIFY_INVALID_POLICY@11$CSSM_TP_CERTVERIFY_INVALID_POLICY_IDS@12$CSSM_TP_CERTVERIFY_INVALID_SIGNATURE@8$CSSM_TP_CERTVERIFY_NOT_VALID_YET@6$CSSM_TP_CERTVERIFY_REVOKED@3$CSSM_TP_CERTVERIFY_SUSPENDED@4$CSSM_TP_CERTVERIFY_UNKNOWN@0$CSSM_TP_CERTVERIFY_UNKNOWN_CRITICAL_EXT@16$CSSM_TP_CERTVERIFY_VALID@1$CSSM_TP_CERT_DIR_UPDATE@8$CSSM_TP_CERT_NOTIFY_RENEW@4$CSSM_TP_CERT_PUBLISH@2$CSSM_TP_CONFIRM_ACCEPT@1$CSSM_TP_CONFIRM_REJECT@2$CSSM_TP_CONFIRM_STATUS_UNKNOWN@0$CSSM_TP_CRLISSUE_INVALID_DOMAIN@3$CSSM_TP_CRLISSUE_NOT_AUTHORIZED@6$CSSM_TP_CRLISSUE_NOT_CURRENT@2$CSSM_TP_CRLISSUE_OK@1$CSSM_TP_CRLISSUE_REJECTED@5$CSSM_TP_CRLISSUE_STATUS_UNKNOWN@0$CSSM_TP_CRLISSUE_UNKNOWN_IDENTIFIER@4$CSSM_TP_CRL_DISTRIBUTE@16$CSSM_TP_FORM_TYPE_GENERIC@0$CSSM_TP_FORM_TYPE_REGISTRATION@1$CSSM_TP_KEY_ARCHIVE@1$CSSM_TP_PRIVATE_ERROR@-2147408896$CSSM_TP_STOP_ON_FIRST_FAIL@3$CSSM_TP_STOP_ON_FIRST_PASS@2$CSSM_TP_STOP_ON_NONE@1$CSSM_TP_STOP_ON_POLICY@0$CSSM_TRUE@1$CSSM_USEE_AUTHENTICATION@6$CSSM_USEE_DOMESTIC@1$CSSM_USEE_FINANCIAL@2$CSSM_USEE_INSURANCE@9$CSSM_USEE_KEYEXCH@7$CSSM_USEE_KRENT@4$CSSM_USEE_KRLE@3$CSSM_USEE_LAST@255$CSSM_USEE_MEDICAL@8$CSSM_USEE_NONE@0$CSSM_USEE_SSL@5$CSSM_USEE_WEAK@10$CSSM_VALUE_NOT_AVAILABLE@-1$CSSM_WORDID_A@2$CSSM_WORDID_ACL@3$CSSM_WORDID_ALPHA@4$CSSM_WORDID_ASYMMETRIC_KEY@65547$CSSM_WORDID_B@5$CSSM_WORDID_BER@6$CSSM_WORDID_BINARY@7$CSSM_WORDID_BIOMETRIC@8$CSSM_WORDID_C@9$CSSM_WORDID_CANCELED@10$CSSM_WORDID_CERT@11$CSSM_WORDID_COMMENT@12$CSSM_WORDID_CRL@13$CSSM_WORDID_CUSTOM@14$CSSM_WORDID_D@15$CSSM_WORDID_DATE@16$CSSM_WORDID_DBS_CREATE@22$CSSM_WORDID_DBS_DELETE@23$CSSM_WORDID_DB_DELETE@17$CSSM_WORDID_DB_EXEC_STORED_QUERY@18$CSSM_WORDID_DB_INSERT@19$CSSM_WORDID_DB_MODIFY@20$CSSM_WORDID_DB_READ@21$CSSM_WORDID_DECRYPT@24$CSSM_WORDID_DELETE@25$CSSM_WORDID_DELTA_CRL@26$CSSM_WORDID_DER@27$CSSM_WORDID_DERIVE@28$CSSM_WORDID_DISPLAY@29$CSSM_WORDID_DO@30$CSSM_WORDID_DSA@31$CSSM_WORDID_DSA_SHA1@32$CSSM_WORDID_E@33$CSSM_WORDID_ELGAMAL@34$CSSM_WORDID_ENCRYPT@35$CSSM_WORDID_ENTRY@36$CSSM_WORDID_EXPORT_CLEAR@37$CSSM_WORDID_EXPORT_WRAPPED@38$CSSM_WORDID_G@39$CSSM_WORDID_GE@40$CSSM_WORDID_GENKEY@41$CSSM_WORDID_HASH@42$CSSM_WORDID_HASHED_PASSWORD@43$CSSM_WORDID_HASHED_SUBJECT@44$CSSM_WORDID_HAVAL@45$CSSM_WORDID_IBCHASH@46$CSSM_WORDID_IMPORT_CLEAR@47$CSSM_WORDID_IMPORT_WRAPPED@48$CSSM_WORDID_INTEL@49$CSSM_WORDID_ISSUER@50$CSSM_WORDID_ISSUER_INFO@51$CSSM_WORDID_KEA@53$CSSM_WORDID_KEY@65543$CSSM_WORDID_KEYCHAIN_CHANGE_LOCK@65538$CSSM_WORDID_KEYCHAIN_LOCK@65537$CSSM_WORDID_KEYCHAIN_PROMPT@65536$CSSM_WORDID_KEYHOLDER@54$CSSM_WORDID_K_OF_N@52$CSSM_WORDID_L@55$CSSM_WORDID_LE@56$CSSM_WORDID_LOGIN@57$CSSM_WORDID_LOGIN_NAME@58$CSSM_WORDID_MAC@59$CSSM_WORDID_MD2@60$CSSM_WORDID_MD2WITHRSA@61$CSSM_WORDID_MD4@62$CSSM_WORDID_MD5@63$CSSM_WORDID_MD5WITHRSA@64$CSSM_WORDID_N@65$CSSM_WORDID_NAME@66$CSSM_WORDID_NDR@67$CSSM_WORDID_NHASH@68$CSSM_WORDID_NOT_AFTER@69$CSSM_WORDID_NOT_BEFORE@70$CSSM_WORDID_NULL@71$CSSM_WORDID_NUMERIC@72$CSSM_WORDID_OBJECT_HASH@73$CSSM_WORDID_ONE_TIME@74$CSSM_WORDID_ONLINE@75$CSSM_WORDID_OWNER@76$CSSM_WORDID_P@77$CSSM_WORDID_PAM_NAME@78$CSSM_WORDID_PARTITION@65548$CSSM_WORDID_PASSWORD@79$CSSM_WORDID_PGP@80$CSSM_WORDID_PIN@65544$CSSM_WORDID_PREAUTH@65545$CSSM_WORDID_PREAUTH_SOURCE@65546$CSSM_WORDID_PREFIX@81$CSSM_WORDID_PRIVATE_KEY@82$CSSM_WORDID_PROCESS@65539$CSSM_WORDID_PROMPTED_BIOMETRIC@83$CSSM_WORDID_PROMPTED_PASSWORD@84$CSSM_WORDID_PROPAGATE@85$CSSM_WORDID_PROTECTED_BIOMETRIC@86$CSSM_WORDID_PROTECTED_PASSWORD@87$CSSM_WORDID_PROTECTED_PIN@88$CSSM_WORDID_PUBLIC_KEY@89$CSSM_WORDID_PUBLIC_KEY_FROM_CERT@90$CSSM_WORDID_Q@91$CSSM_WORDID_RANGE@92$CSSM_WORDID_REVAL@93$CSSM_WORDID_RIPEMAC@94$CSSM_WORDID_RIPEMD@95$CSSM_WORDID_RIPEMD160@96$CSSM_WORDID_RSA@97$CSSM_WORDID_RSA_ISO9796@98$CSSM_WORDID_RSA_PKCS@99$CSSM_WORDID_RSA_PKCS1@102$CSSM_WORDID_RSA_PKCS1_MD5@103$CSSM_WORDID_RSA_PKCS1_SHA1@104$CSSM_WORDID_RSA_PKCS1_SIG@105$CSSM_WORDID_RSA_PKCS_MD5@100$CSSM_WORDID_RSA_PKCS_SHA1@101$CSSM_WORDID_RSA_RAW@106$CSSM_WORDID_SDSIV1@107$CSSM_WORDID_SEQUENCE@108$CSSM_WORDID_SET@109$CSSM_WORDID_SEXPR@110$CSSM_WORDID_SHA1@111$CSSM_WORDID_SHA1WITHDSA@112$CSSM_WORDID_SHA1WITHECDSA@113$CSSM_WORDID_SHA1WITHRSA@114$CSSM_WORDID_SIGN@115$CSSM_WORDID_SIGNATURE@116$CSSM_WORDID_SIGNED_NONCE@117$CSSM_WORDID_SIGNED_SECRET@118$CSSM_WORDID_SPKI@119$CSSM_WORDID_SUBJECT@120$CSSM_WORDID_SUBJECT_INFO@121$CSSM_WORDID_SYMMETRIC_KEY@65541$CSSM_WORDID_SYSTEM@65542$CSSM_WORDID_TAG@122$CSSM_WORDID_THRESHOLD@123$CSSM_WORDID_TIME@124$CSSM_WORDID_URI@125$CSSM_WORDID_VENDOR_END@2147418112$CSSM_WORDID_VENDOR_START@65536$CSSM_WORDID_VERSION@126$CSSM_WORDID_X509V1@128$CSSM_WORDID_X509V2@129$CSSM_WORDID_X509V3@130$CSSM_WORDID_X509_ATTRIBUTE@127$CSSM_WORDID_X9_ATTRIBUTE@131$CSSM_WORDID__FIRST_UNUSED@65549$CSSM_WORDID__NLU_@0$CSSM_WORDID__RESERVED_1@65540$CSSM_WORDID__STAR_@1$CSSM_WORDID__UNK_@-1$CSSM_X509_DATAFORMAT_ENCODED@0$CSSM_X509_DATAFORMAT_PAIR@2$CSSM_X509_DATAFORMAT_PARSED@1$DT_AuthorityInfoAccess@14$DT_AuthorityKeyID@0$DT_BasicConstraints@6$DT_CertPolicies@7$DT_CrlDistributionPoints@12$DT_CrlNumber@9$DT_CrlReason@11$DT_DeltaCrl@10$DT_ExtendedKeyUsage@5$DT_InhibitAnyPolicy@20$DT_IssuerAltName@4$DT_IssuingDistributionPoint@13$DT_KeyUsage@2$DT_NameConstraints@17$DT_NetscapeCertType@8$DT_Other@15$DT_PolicyConstraints@19$DT_PolicyMappings@18$DT_QC_Statements@16$DT_SubjectAltName@3$DT_SubjectKeyID@1$GNT_DNSName@2$GNT_DirectoryName@4$GNT_EdiPartyName@5$GNT_IPAddress@7$GNT_OtherName@0$GNT_RFC822Name@1$GNT_RegisteredID@8$GNT_URI@6$GNT_X400Address@3$INTEL_LENGTH@7$INTEL_X509_C_DATATYPE@1$INTEL_X509_LDAPSTRING_DATATYPE@2$MDS_CDSADIR_AC_PRIMARY_NUM_ATTRIBUTES@6$MDS_CDSADIR_CL_ENCAPSULATED_PRODUCT_NUM_ATTRIBUTES@8$MDS_CDSADIR_CL_PRIMARY_NUM_ATTRIBUTES@13$MDS_CDSADIR_COMMON_NUM_ATTRIBUTES@9$MDS_CDSADIR_CSP_CAPABILITY_NUM_ATTRIBUTES@9$MDS_CDSADIR_CSP_ENCAPSULATED_PRODUCT_NUM_ATTRIBUTES@16$MDS_CDSADIR_CSP_PRIMARY_NUM_ATTRIBUTES@13$MDS_CDSADIR_CSP_SC_INFO_NUM_ATTRIBUTES@9$MDS_CDSADIR_CSSM_NUM_ATTRIBUTES@4$MDS_CDSADIR_DL_ENCAPSULATED_PRODUCT_NUM_ATTRIBUTES@10$MDS_CDSADIR_DL_PRIMARY_NUM_ATTRIBUTES@13$MDS_CDSADIR_EMM_NUM_ATTRIBUTES@11$MDS_CDSADIR_EMM_PRIMARY_NUM_ATTRIBUTES@9$MDS_CDSADIR_NUM_RELATIONS@19$MDS_CDSADIR_SCHEMA_ATTRIBUTES_NUM_ATTRIBUTES@6$MDS_CDSADIR_SCHEMA_INDEXES_NUM_ATTRIBUTES@5$MDS_CDSADIR_SCHEMA_RELATONS_NUM_ATTRIBUTES@2$MDS_CDSADIR_TP_ENCAPSULATED_PRODUCT_NUM_ATTRIBUTES@14$MDS_CDSADIR_TP_OIDS_NUM_ATTRIBUTES@4$MDS_CDSADIR_TP_PRIMARY_NUM_ATTRIBUTES@10$MDS_OBJECT_NUM_ATTRIBUTES@4$MDS_OBJECT_NUM_RELATIONS@1$NETSCAPE_BASE_OID_LEN@7$OID_ANSI_X9_62_LEN@5$OID_CERTICOM_LEN@3$OID_DS_LENGTH@1$OID_ETSI_LENGTH@2$OID_ETSI_QCS_LENGTH@5$OID_ISO_CCITT_DIR_SERVICE@85$OID_ISO_IDENTIFIED_ORG@43$OID_ISO_MEMBER@42$OID_ISO_MEMBER_LENGTH@1$OID_ISO_STANDARD@40$OID_ITU_RFCDATA@9$OID_ITU_RFCDATA_MEMBER_LENGTH@1$OID_KERBv5_LEN@5$OID_NIST_HASHALG_LENGTH@8$OID_OIW_LENGTH@2$OID_PKIX_LENGTH@6$SEC_ASN1_ANY@1024$SEC_ASN1_APPLICATION@64$SEC_ASN1_BIT_STRING@3$SEC_ASN1_BMP_STRING@30$SEC_ASN1_BOOLEAN@1$SEC_ASN1_CHOICE@1048576$SEC_ASN1_CLASS_MASK@192$SEC_ASN1_CONSTRUCTED@32$SEC_ASN1_CONTEXT_SPECIFIC@128$SEC_ASN1_DYNAMIC@16384$SEC_ASN1_EMBEDDED_PDV@11$SEC_ASN1_ENUMERATED@10$SEC_ASN1_EXPLICIT@512$SEC_ASN1_GENERALIZED_TIME@24$SEC_ASN1_GENERAL_STRING@27$SEC_ASN1_GRAPHIC_STRING@25$SEC_ASN1_GROUP@8192$SEC_ASN1_HIGH_TAG_NUMBER@31$SEC_ASN1_IA5_STRING@22$SEC_ASN1_INLINE@2048$SEC_ASN1_INNER@65536$SEC_ASN1_INTEGER@2$SEC_ASN1_METHOD_MASK@32$SEC_ASN1_NULL@5$SEC_ASN1_NUMERIC_STRING@18$SEC_ASN1_OBJECT_DESCRIPTOR@7$SEC_ASN1_OBJECT_ID@6$SEC_ASN1_OCTET_STRING@4$SEC_ASN1_OPTIONAL@256$SEC_ASN1_POINTER@4096$SEC_ASN1_PRIMITIVE@0$SEC_ASN1_PRINTABLE_STRING@19$SEC_ASN1_PRIVATE@192$SEC_ASN1_REAL@9$SEC_ASN1_SAVE@131072$SEC_ASN1_SEQUENCE@16$SEC_ASN1_SET@17$SEC_ASN1_SIGNED_INT@8388608$SEC_ASN1_SKIP@32768$SEC_ASN1_SKIP_REST@524288$SEC_ASN1_T61_STRING@20$SEC_ASN1_TAGNUM_MASK@31$SEC_ASN1_TAG_MASK@255$SEC_ASN1_UNIVERSAL@0$SEC_ASN1_UNIVERSAL_STRING@28$SEC_ASN1_UTC_TIME@23$SEC_ASN1_UTF8_STRING@12$SEC_ASN1_VIDEOTEX_STRING@21$SEC_ASN1_VISIBLE_STRING@26$SEC_KEYCHAIN_SETTINGS_VERS1@1$SEC_KEY_IMPORT_EXPORT_PARAMS_VERSION@0$SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA@17$SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA@19$SSL_DHE_DSS_WITH_DES_CBC_SHA@18$SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA@20$SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA@22$SSL_DHE_RSA_WITH_DES_CBC_SHA@21$SSL_DH_DSS_EXPORT_WITH_DES40_CBC_SHA@11$SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA@13$SSL_DH_DSS_WITH_DES_CBC_SHA@12$SSL_DH_RSA_EXPORT_WITH_DES40_CBC_SHA@14$SSL_DH_RSA_WITH_3DES_EDE_CBC_SHA@16$SSL_DH_RSA_WITH_DES_CBC_SHA@15$SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA@25$SSL_DH_anon_EXPORT_WITH_RC4_40_MD5@23$SSL_DH_anon_WITH_3DES_EDE_CBC_SHA@27$SSL_DH_anon_WITH_DES_CBC_SHA@26$SSL_DH_anon_WITH_RC4_128_MD5@24$SSL_FORTEZZA_DMS_WITH_FORTEZZA_CBC_SHA@29$SSL_FORTEZZA_DMS_WITH_NULL_SHA@28$SSL_NO_SUCH_CIPHERSUITE@65535$SSL_NULL_WITH_NULL_NULL@0$SSL_RSA_EXPORT_WITH_DES40_CBC_SHA@8$SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5@6$SSL_RSA_EXPORT_WITH_RC4_40_MD5@3$SSL_RSA_WITH_3DES_EDE_CBC_MD5@65411$SSL_RSA_WITH_3DES_EDE_CBC_SHA@10$SSL_RSA_WITH_DES_CBC_MD5@65410$SSL_RSA_WITH_DES_CBC_SHA@9$SSL_RSA_WITH_IDEA_CBC_MD5@65409$SSL_RSA_WITH_IDEA_CBC_SHA@7$SSL_RSA_WITH_NULL_MD5@1$SSL_RSA_WITH_NULL_SHA@2$SSL_RSA_WITH_RC2_CBC_MD5@65408$SSL_RSA_WITH_RC4_128_MD5@4$SSL_RSA_WITH_RC4_128_SHA@5$TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA@19$TLS_DHE_DSS_WITH_AES_128_CBC_SHA@50$TLS_DHE_DSS_WITH_AES_128_CBC_SHA256@64$TLS_DHE_DSS_WITH_AES_128_GCM_SHA256@162$TLS_DHE_DSS_WITH_AES_256_CBC_SHA@56$TLS_DHE_DSS_WITH_AES_256_CBC_SHA256@106$TLS_DHE_DSS_WITH_AES_256_GCM_SHA384@163$TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA@143$TLS_DHE_PSK_WITH_AES_128_CBC_SHA@144$TLS_DHE_PSK_WITH_AES_128_CBC_SHA256@178$TLS_DHE_PSK_WITH_AES_128_GCM_SHA256@170$TLS_DHE_PSK_WITH_AES_256_CBC_SHA@145$TLS_DHE_PSK_WITH_AES_256_CBC_SHA384@179$TLS_DHE_PSK_WITH_AES_256_GCM_SHA384@171$TLS_DHE_PSK_WITH_NULL_SHA@45$TLS_DHE_PSK_WITH_NULL_SHA256@180$TLS_DHE_PSK_WITH_NULL_SHA384@181$TLS_DHE_PSK_WITH_RC4_128_SHA@142$TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA@22$TLS_DHE_RSA_WITH_AES_128_CBC_SHA@51$TLS_DHE_RSA_WITH_AES_128_CBC_SHA256@103$TLS_DHE_RSA_WITH_AES_128_GCM_SHA256@158$TLS_DHE_RSA_WITH_AES_256_CBC_SHA@57$TLS_DHE_RSA_WITH_AES_256_CBC_SHA256@107$TLS_DHE_RSA_WITH_AES_256_GCM_SHA384@159$TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA@13$TLS_DH_DSS_WITH_AES_128_CBC_SHA@48$TLS_DH_DSS_WITH_AES_128_CBC_SHA256@62$TLS_DH_DSS_WITH_AES_128_GCM_SHA256@164$TLS_DH_DSS_WITH_AES_256_CBC_SHA@54$TLS_DH_DSS_WITH_AES_256_CBC_SHA256@104$TLS_DH_DSS_WITH_AES_256_GCM_SHA384@165$TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA@16$TLS_DH_RSA_WITH_AES_128_CBC_SHA@49$TLS_DH_RSA_WITH_AES_128_CBC_SHA256@63$TLS_DH_RSA_WITH_AES_128_GCM_SHA256@160$TLS_DH_RSA_WITH_AES_256_CBC_SHA@55$TLS_DH_RSA_WITH_AES_256_CBC_SHA256@105$TLS_DH_RSA_WITH_AES_256_GCM_SHA384@161$TLS_DH_anon_WITH_3DES_EDE_CBC_SHA@27$TLS_DH_anon_WITH_AES_128_CBC_SHA@52$TLS_DH_anon_WITH_AES_128_CBC_SHA256@108$TLS_DH_anon_WITH_AES_128_GCM_SHA256@166$TLS_DH_anon_WITH_AES_256_CBC_SHA@58$TLS_DH_anon_WITH_AES_256_CBC_SHA256@109$TLS_DH_anon_WITH_AES_256_GCM_SHA384@167$TLS_DH_anon_WITH_RC4_128_MD5@24$TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA@49160$TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA@49161$TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256@49187$TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256@49195$TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA@49162$TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384@49188$TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384@49196$TLS_ECDHE_ECDSA_WITH_NULL_SHA@49158$TLS_ECDHE_ECDSA_WITH_RC4_128_SHA@49159$TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA@49170$TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA@49171$TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256@49191$TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256@49199$TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA@49172$TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384@49192$TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384@49200$TLS_ECDHE_RSA_WITH_NULL_SHA@49168$TLS_ECDHE_RSA_WITH_RC4_128_SHA@49169$TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA@49155$TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA@49156$TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256@49189$TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256@49197$TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA@49157$TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384@49190$TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384@49198$TLS_ECDH_ECDSA_WITH_NULL_SHA@49153$TLS_ECDH_ECDSA_WITH_RC4_128_SHA@49154$TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA@49165$TLS_ECDH_RSA_WITH_AES_128_CBC_SHA@49166$TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256@49193$TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256@49201$TLS_ECDH_RSA_WITH_AES_256_CBC_SHA@49167$TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384@49194$TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384@49202$TLS_ECDH_RSA_WITH_NULL_SHA@49163$TLS_ECDH_RSA_WITH_RC4_128_SHA@49164$TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA@49175$TLS_ECDH_anon_WITH_AES_128_CBC_SHA@49176$TLS_ECDH_anon_WITH_AES_256_CBC_SHA@49177$TLS_ECDH_anon_WITH_NULL_SHA@49173$TLS_ECDH_anon_WITH_RC4_128_SHA@49174$TLS_EMPTY_RENEGOTIATION_INFO_SCSV@255$TLS_NULL_WITH_NULL_NULL@0$TLS_PSK_WITH_3DES_EDE_CBC_SHA@139$TLS_PSK_WITH_AES_128_CBC_SHA@140$TLS_PSK_WITH_AES_128_CBC_SHA256@174$TLS_PSK_WITH_AES_128_GCM_SHA256@168$TLS_PSK_WITH_AES_256_CBC_SHA@141$TLS_PSK_WITH_AES_256_CBC_SHA384@175$TLS_PSK_WITH_AES_256_GCM_SHA384@169$TLS_PSK_WITH_NULL_SHA@44$TLS_PSK_WITH_NULL_SHA256@176$TLS_PSK_WITH_NULL_SHA384@177$TLS_PSK_WITH_RC4_128_SHA@138$TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA@147$TLS_RSA_PSK_WITH_AES_128_CBC_SHA@148$TLS_RSA_PSK_WITH_AES_128_CBC_SHA256@182$TLS_RSA_PSK_WITH_AES_128_GCM_SHA256@172$TLS_RSA_PSK_WITH_AES_256_CBC_SHA@149$TLS_RSA_PSK_WITH_AES_256_CBC_SHA384@183$TLS_RSA_PSK_WITH_AES_256_GCM_SHA384@173$TLS_RSA_PSK_WITH_NULL_SHA@46$TLS_RSA_PSK_WITH_NULL_SHA256@184$TLS_RSA_PSK_WITH_NULL_SHA384@185$TLS_RSA_PSK_WITH_RC4_128_SHA@146$TLS_RSA_WITH_3DES_EDE_CBC_SHA@10$TLS_RSA_WITH_AES_128_CBC_SHA@47$TLS_RSA_WITH_AES_128_CBC_SHA256@60$TLS_RSA_WITH_AES_128_GCM_SHA256@156$TLS_RSA_WITH_AES_256_CBC_SHA@53$TLS_RSA_WITH_AES_256_CBC_SHA256@61$TLS_RSA_WITH_AES_256_GCM_SHA384@157$TLS_RSA_WITH_NULL_MD5@1$TLS_RSA_WITH_NULL_SHA@2$TLS_RSA_WITH_NULL_SHA256@59$TLS_RSA_WITH_RC4_128_MD5@4$TLS_RSA_WITH_RC4_128_SHA@5$_CSSMACI_H_@1$_CSSMAPI_H_@1$_CSSMAPPLE_H_@1$_CSSMCLI_H_@1$_CSSMCONFIG_H_@1$_CSSMCSPI_H_@1$_CSSMDLI_H_@1$_CSSMERR_H_@1$_CSSMKRAPI_H_@1$_CSSMKRSPI_H_@1$_CSSMSPI_H_@1$_CSSMTPI_H_@1$_CSSMTYPE_H_@1$_CSSM_H_@1$_EMMSPI_H_@1$_EMMTYPE_H_@1$_MDS_H_@1$_MDS_SCHEMA_H_@1$_OIDSBASE_H_@1$_OIDSCERT_H_@1$_OIDSCRL_H_@1$_X509DEFS_H_@1$errAuthorizationBadAddress@-60033$errAuthorizationCanceled@-60006$errAuthorizationDenied@-60005$errAuthorizationExternalizeNotAllowed@-60009$errAuthorizationInteractionNotAllowed@-60007$errAuthorizationInternal@-60008$errAuthorizationInternalizeNotAllowed@-60010$errAuthorizationInvalidFlags@-60011$errAuthorizationInvalidPointer@-60004$errAuthorizationInvalidRef@-60002$errAuthorizationInvalidSet@-60001$errAuthorizationInvalidTag@-60003$errAuthorizationSuccess@0$errAuthorizationToolEnvironmentError@-60032$errAuthorizationToolExecuteFailure@-60031$errSSLBadCert@-9808$errSSLBadCipherSuite@-9818$errSSLBadConfiguration@-9848$errSSLBadRecordMac@-9846$errSSLBufferOverflow@-9817$errSSLCertExpired@-9814$errSSLCertNotYetValid@-9815$errSSLClientCertRequested@-9842$errSSLClientHelloReceived@-9851$errSSLClosedAbort@-9806$errSSLClosedGraceful@-9805$errSSLClosedNoNotify@-9816$errSSLConnectionRefused@-9844$errSSLCrypto@-9809$errSSLDecryptionFail@-9845$errSSLFatalAlert@-9802$errSSLHostNameMismatch@-9843$errSSLIllegalParam@-9830$errSSLInternal@-9810$errSSLModuleAttach@-9811$errSSLNegotiation@-9801$errSSLNoRootCert@-9813$errSSLPeerAccessDenied@-9832$errSSLPeerAuthCompleted@-9841$errSSLPeerBadCert@-9825$errSSLPeerBadRecordMac@-9820$errSSLPeerCertExpired@-9828$errSSLPeerCertRevoked@-9827$errSSLPeerCertUnknown@-9829$errSSLPeerDecodeError@-9833$errSSLPeerDecompressFail@-9823$errSSLPeerDecryptError@-9834$errSSLPeerDecryptionFail@-9821$errSSLPeerExportRestriction@-9835$errSSLPeerHandshakeFail@-9824$errSSLPeerInsufficientSecurity@-9837$errSSLPeerInternalError@-9838$errSSLPeerNoRenegotiation@-9840$errSSLPeerProtocolVersion@-9836$errSSLPeerRecordOverflow@-9822$errSSLPeerUnexpectedMsg@-9819$errSSLPeerUnknownCA@-9831$errSSLPeerUnsupportedCert@-9826$errSSLPeerUserCancelled@-9839$errSSLProtocol@-9800$errSSLRecordOverflow@-9847$errSSLSessionNotFound@-9804$errSSLUnexpectedRecord@-9849$errSSLUnknownRootCert@-9812$errSSLWeakPeerEphemeralDHKey@-9850$errSSLWouldBlock@-9803$errSSLXCertChainInvalid@-9807$errSecACLAddFailed@-67698$errSecACLChangeFailed@-67699$errSecACLDeleteFailed@-67696$errSecACLNotSimple@-25240$errSecACLReplaceFailed@-67697$errSecAddinLoadFailed@-67711$errSecAddinUnloadFailed@-67714$errSecAlgorithmMismatch@-67730$errSecAllocate@-108$errSecAlreadyLoggedIn@-67814$errSecAppleAddAppACLSubject@-67589$errSecAppleInvalidKeyEndDate@-67593$errSecAppleInvalidKeyStartDate@-67592$errSecApplePublicKeyIncomplete@-67590$errSecAppleSSLv2Rollback@-67595$errSecAppleSignatureMismatch@-67591$errSecAttachHandleBusy@-67728$errSecAttributeNotInContext@-67720$errSecAuthFailed@-25293$errSecBadReq@-909$errSecBlockSizeMismatch@-67810$errSecBufferTooSmall@-25301$errSecCRLAlreadySigned@-67684$errSecCRLBadURI@-67617$errSecCRLExpired@-67613$errSecCRLNotFound@-67615$errSecCRLNotTrusted@-67620$errSecCRLNotValidYet@-67614$errSecCRLPolicyFailed@-67621$errSecCRLServerDown@-67616$errSecCSAmbiguousBundleFormat@-67011$errSecCSBadBundleFormat@-67028$errSecCSBadCallbackValue@-67020$errSecCSBadDictionaryFormat@-67058$errSecCSBadDiskImageFormat@-67001$errSecCSBadFrameworkVersion@-67009$errSecCSBadLVArch@-67017$errSecCSBadMainExecutable@-67010$errSecCSBadNestedCode@-67021$errSecCSBadObjectFormat@-67049$errSecCSBadResource@-67054$errSecCSBadTeamIdentifier@-66997$errSecCSCMSTooLarge@-67036$errSecCSCancelled@-67006$errSecCSDBAccess@-67032$errSecCSDBDenied@-67033$errSecCSDSStoreSymlink@-67012$errSecCSDbCorrupt@-67024$errSecCSFileHardQuarantined@-67026$errSecCSGuestInvalid@-67063$errSecCSHelperFailed@-67019$errSecCSHostProtocolContradiction@-67043$errSecCSHostProtocolDedicationError@-67042$errSecCSHostProtocolInvalidAttribute@-67031$errSecCSHostProtocolInvalidHash@-67035$errSecCSHostProtocolNotProxy@-67041$errSecCSHostProtocolRelativePath@-67044$errSecCSHostProtocolStateError@-67040$errSecCSHostProtocolUnrelated@-67039$errSecCSHostReject@-67047$errSecCSInfoPlistFailed@-67030$errSecCSInternalError@-67048$errSecCSInvalidAssociatedFileData@-66999$errSecCSInvalidAttributeValues@-67066$errSecCSInvalidFlags@-67070$errSecCSInvalidObjectRef@-67071$errSecCSInvalidPlatform@-67005$errSecCSInvalidSymlink@-67003$errSecCSInvalidTeamIdentifier@-66998$errSecCSMultipleGuests@-67064$errSecCSNoMainExecutable@-67029$errSecCSNoMatches@-67027$errSecCSNoSuchCode@-67065$errSecCSNotAHost@-67046$errSecCSNotAppLike@-67002$errSecCSNotSupported@-67037$errSecCSObjectRequired@-67069$errSecCSOutdated@-67025$errSecCSRegularFile@-67015$errSecCSReqFailed@-67050$errSecCSReqInvalid@-67052$errSecCSReqUnsupported@-67051$errSecCSResourceDirectoryFailed@-67023$errSecCSResourceNotSupported@-67016$errSecCSResourceRulesInvalid@-67053$errSecCSResourcesInvalid@-67055$errSecCSResourcesNotFound@-67056$errSecCSResourcesNotSealed@-67057$errSecCSSigDBAccess@-67032$errSecCSSigDBDenied@-67033$errSecCSSignatureFailed@-67061$errSecCSSignatureInvalid@-67045$errSecCSSignatureNotVerifiable@-67060$errSecCSSignatureUnsupported@-67059$errSecCSStaticCodeChanged@-67034$errSecCSStaticCodeNotFound@-67068$errSecCSTooBig@-67004$errSecCSUnimplemented@-67072$errSecCSUnsealedAppRoot@-67014$errSecCSUnsealedFrameworkRoot@-67008$errSecCSUnsigned@-67062$errSecCSUnsignedNestedCode@-67022$errSecCSUnsupportedDigestAlgorithm@-67000$errSecCSUnsupportedGuestAttributes@-67067$errSecCSVetoed@-67018$errSecCSWeakResourceEnvelope@-67007$errSecCSWeakResourceRules@-67013$errSecCallbackFailed@-67695$errSecCertificateCannotOperate@-67817$errSecCertificateExpired@-67818$errSecCertificateNotValidYet@-67819$errSecCertificateRevoked@-67820$errSecCertificateSuspended@-67821$errSecCodeSigningBadCertChainLength@-67647$errSecCodeSigningBadPathLengthConstraint@-67649$errSecCodeSigningDevelopment@-67651$errSecCodeSigningNoBasicConstraints@-67648$errSecCodeSigningNoExtendedKeyUsage@-67650$errSecConversionError@-67594$errSecCoreFoundationUnknown@-4960$errSecCreateChainFailed@-25318$errSecDataNotAvailable@-25316$errSecDataNotModifiable@-25317$errSecDataTooLarge@-25302$errSecDatabaseLocked@-67869$errSecDatastoreIsOpen@-67870$errSecDecode@-26275$errSecDeviceError@-67727$errSecDeviceFailed@-67588$errSecDeviceReset@-67587$errSecDeviceVerifyFailed@-67812$errSecDiskFull@-34$errSecDskFull@-34$errSecDuplicateCallback@-25297$errSecDuplicateItem@-25299$errSecDuplicateKeychain@-25296$errSecEMMLoadFailed@-67709$errSecEMMUnloadFailed@-67710$errSecEndOfData@-67634$errSecErrnoBase@100000$errSecErrnoLimit@100255$errSecEventNotificationCallbackNotFound@-67723$errSecExtendedKeyUsageNotCritical@-67881$errSecFieldSpecifiedMultiple@-67866$errSecFileTooBig@-67597$errSecFunctionFailed@-67677$errSecFunctionIntegrityFail@-67670$errSecHostNameMismatch@-67602$errSecIDPFailure@-67622$errSecIO@-36$errSecInDarkWake@-25320$errSecIncompatibleDatabaseBlob@-67600$errSecIncompatibleFieldFormat@-67867$errSecIncompatibleKeyBlob@-67601$errSecIncompatibleVersion@-67704$errSecIncompleteCertRevocationCheck@-67635$errSecInputLengthError@-67724$errSecInsufficientClientID@-67586$errSecInsufficientCredentials@-67822$errSecInteractionNotAllowed@-25308$errSecInteractionRequired@-25315$errSecInternalComponent@-2070$errSecInternalError@-67671$errSecInvaldCRLAuthority@-67827$errSecInvalidACL@-67702$errSecInvalidAccessCredentials@-67700$errSecInvalidAccessRequest@-67876$errSecInvalidAction@-67823$errSecInvalidAddinFunctionTable@-67716$errSecInvalidAlgorithm@-67747$errSecInvalidAlgorithmParms@-67770$errSecInvalidAttributeAccessCredentials@-67796$errSecInvalidAttributeBase@-67788$errSecInvalidAttributeBlockSize@-67764$errSecInvalidAttributeDLDBHandle@-67794$errSecInvalidAttributeEffectiveBits@-67778$errSecInvalidAttributeEndDate@-67782$errSecInvalidAttributeInitVector@-67750$errSecInvalidAttributeIterationCount@-67792$errSecInvalidAttributeKey@-67748$errSecInvalidAttributeKeyLength@-67762$errSecInvalidAttributeKeyType@-67774$errSecInvalidAttributeLabel@-67772$errSecInvalidAttributeMode@-67776$errSecInvalidAttributeOutputSize@-67766$errSecInvalidAttributePadding@-67754$errSecInvalidAttributePassphrase@-67760$errSecInvalidAttributePrime@-67786$errSecInvalidAttributePrivateKeyFormat@-67800$errSecInvalidAttributePublicKeyFormat@-67798$errSecInvalidAttributeRandom@-67756$errSecInvalidAttributeRounds@-67768$errSecInvalidAttributeSalt@-67752$errSecInvalidAttributeSeed@-67758$errSecInvalidAttributeStartDate@-67780$errSecInvalidAttributeSubprime@-67790$errSecInvalidAttributeSymmetricKeyFormat@-67802$errSecInvalidAttributeVersion@-67784$errSecInvalidAttributeWrappedKeyFormat@-67804$errSecInvalidAuthority@-67824$errSecInvalidAuthorityKeyID@-67606$errSecInvalidBaseACLs@-67851$errSecInvalidBundleInfo@-67857$errSecInvalidCRL@-67830$errSecInvalidCRLEncoding@-67828$errSecInvalidCRLGroup@-67816$errSecInvalidCRLIndex@-67858$errSecInvalidCRLType@-67829$errSecInvalidCallback@-25298$errSecInvalidCertAuthority@-67826$errSecInvalidCertificateGroup@-67691$errSecInvalidCertificateRef@-67690$errSecInvalidContext@-67746$errSecInvalidDBList@-67681$errSecInvalidDBLocation@-67875$errSecInvalidData@-67673$errSecInvalidDatabaseBlob@-67598$errSecInvalidDigestAlgorithm@-67815$errSecInvalidEncoding@-67853$errSecInvalidExtendedKeyUsage@-67609$errSecInvalidFormType@-67831$errSecInvalidGUID@-67679$errSecInvalidHandle@-67680$errSecInvalidHandleUsage@-67668$errSecInvalidID@-67832$errSecInvalidIDLinkage@-67610$errSecInvalidIdentifier@-67833$errSecInvalidIndex@-67834$errSecInvalidIndexInfo@-67877$errSecInvalidInputVector@-67744$errSecInvalidItemRef@-25304$errSecInvalidKeyAttributeMask@-67738$errSecInvalidKeyBlob@-67599$errSecInvalidKeyFormat@-67742$errSecInvalidKeyHierarchy@-67713$errSecInvalidKeyLabel@-67740$errSecInvalidKeyRef@-67712$errSecInvalidKeyUsageForPolicy@-67608$errSecInvalidKeyUsageMask@-67736$errSecInvalidKeychain@-25295$errSecInvalidLoginName@-67813$errSecInvalidModifyMode@-67879$errSecInvalidName@-67689$errSecInvalidNetworkAddress@-67683$errSecInvalidNewOwner@-67878$errSecInvalidNumberOfFields@-67685$errSecInvalidOutputVector@-67745$errSecInvalidOwnerEdit@-25244$errSecInvalidPVC@-67708$errSecInvalidParsingModule@-67868$errSecInvalidPassthroughID@-67682$errSecInvalidPasswordRef@-25261$errSecInvalidPointer@-67675$errSecInvalidPolicyIdentifiers@-67835$errSecInvalidPrefsDomain@-25319$errSecInvalidQuery@-67693$errSecInvalidReason@-67837$errSecInvalidRecord@-67701$errSecInvalidRequestInputs@-67838$errSecInvalidRequestor@-67855$errSecInvalidResponseVector@-67839$errSecInvalidRoot@-67612$errSecInvalidSampleValue@-67703$errSecInvalidScope@-67706$errSecInvalidSearchRef@-25305$errSecInvalidServiceMask@-67717$errSecInvalidSignature@-67688$errSecInvalidStopOnPolicy@-67840$errSecInvalidSubServiceID@-67719$errSecInvalidSubjectKeyID@-67607$errSecInvalidSubjectName@-67655$errSecInvalidTimeString@-67836$errSecInvalidTrustSetting@-25242$errSecInvalidTrustSettings@-25262$errSecInvalidTuple@-67841$errSecInvalidTupleCredendtials@-67852$errSecInvalidTupleGroup@-67850$errSecInvalidValidityPeriod@-67854$errSecInvalidValue@-67694$errSecItemNotFound@-25300$errSecKeyBlobTypeIncorrect@-67732$errSecKeyHeaderInconsistent@-67733$errSecKeyIsSensitive@-25258$errSecKeySizeNotAllowed@-25311$errSecKeyUsageIncorrect@-67731$errSecLibraryReferenceNotFound@-67715$errSecMDSError@-67674$errSecMemoryError@-67672$errSecMissingAlgorithmParms@-67771$errSecMissingAttributeAccessCredentials@-67797$errSecMissingAttributeBase@-67789$errSecMissingAttributeBlockSize@-67765$errSecMissingAttributeDLDBHandle@-67795$errSecMissingAttributeEffectiveBits@-67779$errSecMissingAttributeEndDate@-67783$errSecMissingAttributeInitVector@-67751$errSecMissingAttributeIterationCount@-67793$errSecMissingAttributeKey@-67749$errSecMissingAttributeKeyLength@-67763$errSecMissingAttributeKeyType@-67775$errSecMissingAttributeLabel@-67773$errSecMissingAttributeMode@-67777$errSecMissingAttributeOutputSize@-67767$errSecMissingAttributePadding@-67755$errSecMissingAttributePassphrase@-67761$errSecMissingAttributePrime@-67787$errSecMissingAttributePrivateKeyFormat@-67801$errSecMissingAttributePublicKeyFormat@-67799$errSecMissingAttributeRandom@-67757$errSecMissingAttributeRounds@-67769$errSecMissingAttributeSalt@-67753$errSecMissingAttributeSeed@-67759$errSecMissingAttributeStartDate@-67781$errSecMissingAttributeSubprime@-67791$errSecMissingAttributeSymmetricKeyFormat@-67803$errSecMissingAttributeVersion@-67785$errSecMissingAttributeWrappedKeyFormat@-67805$errSecMissingRequiredExtension@-67880$errSecMissingValue@-67871$errSecMobileMeCSRVerifyFailure@-67665$errSecMobileMeFailedConsistencyCheck@-67666$errSecMobileMeNoRequestPending@-67664$errSecMobileMeRequestAlreadyPending@-67663$errSecMobileMeRequestQueued@-67657$errSecMobileMeRequestRedirected@-67658$errSecMobileMeServerAlreadyExists@-67661$errSecMobileMeServerError@-67659$errSecMobileMeServerNotAvailable@-67660$errSecMobileMeServerServiceErr@-67662$errSecModuleManagerInitializeFailed@-67721$errSecModuleManagerNotFound@-67722$errSecModuleManifestVerifyFailed@-67678$errSecModuleNotLoaded@-67718$errSecMultiplePrivKeys@-25259$errSecMultipleValuesUnsupported@-67842$errSecNetworkFailure@-67636$errSecNoAccessForItem@-25243$errSecNoBasicConstraints@-67604$errSecNoBasicConstraintsCA@-67605$errSecNoCertificateModule@-25313$errSecNoDefaultAuthority@-67844$errSecNoDefaultKeychain@-25307$errSecNoFieldValues@-67859$errSecNoPolicyModule@-25314$errSecNoStorageModule@-25312$errSecNoSuchAttr@-25303$errSecNoSuchClass@-25306$errSecNoSuchKeychain@-25294$errSecNoTrustSettings@-25263$errSecNotAvailable@-25291$errSecNotInitialized@-67667$errSecNotLoggedIn@-67729$errSecNotSigner@-26267$errSecNotTrusted@-67843$errSecOCSPBadRequest@-67631$errSecOCSPBadResponse@-67630$errSecOCSPNoSigner@-67640$errSecOCSPNotTrustedToAnchor@-67637$errSecOCSPResponderInternalError@-67642$errSecOCSPResponderMalformedReq@-67641$errSecOCSPResponderSignatureRequired@-67644$errSecOCSPResponderTryLater@-67643$errSecOCSPResponderUnauthorized@-67645$errSecOCSPResponseNonceMismatch@-67646$errSecOCSPSignatureError@-67639$errSecOCSPStatusUnrecognized@-67633$errSecOCSPUnavailable@-67632$errSecOutputLengthError@-67725$errSecPVCAlreadyConfigured@-67707$errSecPVCReferentNotFound@-67669$errSecParam@-50$errSecPassphraseRequired@-25260$errSecPathLengthConstraintExceeded@-67611$errSecPkcs12VerifyFailure@-25264$errSecPolicyNotFound@-25241$errSecPrivilegeNotGranted@-67705$errSecPrivilegeNotSupported@-67726$errSecPublicKeyInconsistent@-67811$errSecQuerySizeUnknown@-67809$errSecQuotaExceeded@-67596$errSecReadOnly@-25292$errSecReadOnlyAttr@-25309$errSecRecordModified@-67638$errSecRejectedForm@-67845$errSecRequestDescriptor@-67856$errSecRequestLost@-67846$errSecRequestRejected@-67847$errSecResourceSignBadCertChainLength@-67652$errSecResourceSignBadExtKeyUsage@-67653$errSecSMIMEBadExtendedKeyUsage@-67624$errSecSMIMEBadKeyUsage@-67625$errSecSMIMEEmailAddressesNotFound@-67623$errSecSMIMEKeyUsageNotCritical@-67626$errSecSMIMENoEmailAddress@-67627$errSecSMIMESubjAltNameNotCritical@-67628$errSecSSLBadExtendedKeyUsage@-67629$errSecSelfCheckFailed@-67676$errSecServiceNotAvailable@-67585$errSecSigningTimeMissing@-67894$errSecStagedOperationInProgress@-67806$errSecStagedOperationNotStarted@-67807$errSecSuccess@0$errSecTagNotFound@-67692$errSecTimestampAddInfoNotAvailable@-67892$errSecTimestampBadAlg@-67886$errSecTimestampBadDataFormat@-67888$errSecTimestampBadRequest@-67887$errSecTimestampInvalid@-67883$errSecTimestampMissing@-67882$errSecTimestampNotTrusted@-67884$errSecTimestampRejection@-67895$errSecTimestampRevocationNotification@-67898$errSecTimestampRevocationWarning@-67897$errSecTimestampServiceNotAvailable@-67885$errSecTimestampSystemFailure@-67893$errSecTimestampTimeNotAvailable@-67889$errSecTimestampUnacceptedExtension@-67891$errSecTimestampUnacceptedPolicy@-67890$errSecTimestampWaiting@-67896$errSecTrustNotAvailable@-25245$errSecTrustSettingDeny@-67654$errSecUnimplemented@-4$errSecUnknownCRLExtension@-67619$errSecUnknownCertExtension@-67618$errSecUnknownCriticalExtensionFlag@-67603$errSecUnknownFormat@-25257$errSecUnknownQualifiedCertStatement@-67656$errSecUnknownTag@-67687$errSecUnsupportedAddressType@-67848$errSecUnsupportedFieldFormat@-67860$errSecUnsupportedFormat@-25256$errSecUnsupportedIndexInfo@-67861$errSecUnsupportedKeyAttributeMask@-67739$errSecUnsupportedKeyFormat@-67734$errSecUnsupportedKeyLabel@-67741$errSecUnsupportedKeySize@-67735$errSecUnsupportedKeyUsageMask@-67737$errSecUnsupportedLocality@-67862$errSecUnsupportedNumAttributes@-67863$errSecUnsupportedNumIndexes@-67864$errSecUnsupportedNumRecordTypes@-67865$errSecUnsupportedNumSelectionPreds@-67873$errSecUnsupportedOperator@-67874$errSecUnsupportedQueryLimits@-67872$errSecUnsupportedService@-67849$errSecUnsupportedVectorOfBuffers@-67743$errSecUserCanceled@-128$errSecVerificationFailure@-67686$errSecVerifyActionFailed@-67825$errSecVerifyFailed@-67808$errSecWrPerm@-61$errSecWrongSecVersion@-25310$kAlwaysAuthenticate@1$kAuthorizationFlagCanNotPreAuthorize@1$kAuthorizationFlagDefaults@0$kAuthorizationFlagDestroyRights@8$kAuthorizationFlagExtendRights@2$kAuthorizationFlagInteractionAllowed@1$kAuthorizationFlagNoData@1048576$kAuthorizationFlagPartialRights@4$kAuthorizationFlagPreAuthorize@16$kCMSAttrAppleCodesigningHashAgility@16$kCMSAttrNone@0$kCMSAttrSigningTime@8$kCMSAttrSmimeCapabilities@1$kCMSAttrSmimeEncryptionKeyPrefs@2$kCMSAttrSmimeMSEncryptionKeyPrefs@4$kCMSCertificateChain@2$kCMSCertificateChainWithRoot@3$kCMSCertificateNone@0$kCMSCertificateSignerOnly@1$kCMSSignerInvalidCert@4$kCMSSignerInvalidIndex@5$kCMSSignerInvalidSignature@3$kCMSSignerNeedsDetachedContent@2$kCMSSignerUnsigned@0$kCMSSignerValid@1$kCSSM_APPLEDL_MASK_MODE@1$kDTLSProtocol1@9$kNeverAuthenticate@0$kSSLAborted@4$kSSLClientCertNone@0$kSSLClientCertRejected@3$kSSLClientCertRequested@1$kSSLClientCertSent@2$kSSLClientSide@1$kSSLClosed@3$kSSLConnected@2$kSSLDatagramType@1$kSSLHandshake@1$kSSLIdle@0$kSSLProtocol2@1$kSSLProtocol3@2$kSSLProtocol3Only@3$kSSLProtocolAll@6$kSSLProtocolUnknown@0$kSSLServerSide@0$kSSLSessionOptionAllowRenegotiation@8$kSSLSessionOptionAllowServerIdentityChange@5$kSSLSessionOptionBreakOnCertRequested@1$kSSLSessionOptionBreakOnClientAuth@2$kSSLSessionOptionBreakOnClientHello@7$kSSLSessionOptionBreakOnServerAuth@0$kSSLSessionOptionFallback@6$kSSLSessionOptionFalseStart@3$kSSLSessionOptionSendOneByteRecord@4$kSSLStreamType@0$kSec3DES192@192$kSecAES128@128$kSecAES192@192$kSecAES256@256$kSecAccessControlAnd@32768$kSecAccessControlApplicationPassword@2147483648$kSecAccessControlDevicePasscode@16$kSecAccessControlOr@16384$kSecAccessControlPrivateKeyUsage@1073741824$kSecAccessControlTouchIDAny@2$kSecAccessControlTouchIDCurrentSet@8$kSecAccessControlUserPresence@1$kSecAccountItemAttr@1633903476$kSecAddEvent@3$kSecAddEventMask@8$kSecAddressItemAttr@1633969266$kSecAlias@1634494835$kSecAppleSharePasswordItemClass@1634953328$kSecAuthenticationTypeAny@0$kSecAuthenticationTypeDPA@1633775716$kSecAuthenticationTypeDefault@1953261156$kSecAuthenticationTypeHTMLForm@1836216166$kSecAuthenticationTypeHTTPBasic@1886680168$kSecAuthenticationTypeHTTPDigest@1685353576$kSecAuthenticationTypeItemAttr@1635023216$kSecAuthenticationTypeMSN@1634628461$kSecAuthenticationTypeNTLM@1835824238$kSecAuthenticationTypeRPA@1633775730$kSecCSBasicValidateOnly@6$kSecCSCheckAllArchitectures@1$kSecCSCheckGatekeeperArchitectures@65$kSecCSCheckNestedCode@8$kSecCSCheckTrustedAnchors@134217728$kSecCSConsiderExpiration@2147483648$kSecCSContentInformation@16$kSecCSDedicatedHost@1$kSecCSDefaultFlags@0$kSecCSDoNotValidateExecutable@2$kSecCSDoNotValidateResources@4$kSecCSDynamicInformation@8$kSecCSEnforceRevocationChecks@1073741824$kSecCSFullReport@32$kSecCSGenerateGuestHash@2$kSecCSInternalInformation@1$kSecCSNoNetworkAccess@536870912$kSecCSQuickCheck@67108864$kSecCSReportProgress@268435456$kSecCSRequirementInformation@4$kSecCSRestrictSidebandData@512$kSecCSRestrictSymlinks@128$kSecCSRestrictToAppLike@256$kSecCSSigningInformation@2$kSecCSStrictValidate@16$kSecCSUseAllArchitectures@1$kSecCertEncodingItemAttr@1667591779$kSecCertTypeItemAttr@1668577648$kSecCertificateEncoding@1667591779$kSecCertificateItemClass@2147487744$kSecCertificateType@1668577648$kSecCodeSignatureAdhoc@2$kSecCodeSignatureEnforcement@4096$kSecCodeSignatureForceExpiration@1024$kSecCodeSignatureForceHard@256$kSecCodeSignatureForceKill@512$kSecCodeSignatureHashSHA1@1$kSecCodeSignatureHashSHA256@2$kSecCodeSignatureHashSHA256Truncated@3$kSecCodeSignatureHashSHA384@4$kSecCodeSignatureHost@1$kSecCodeSignatureLibraryValidation@8192$kSecCodeSignatureNoHash@0$kSecCodeSignatureRestrict@2048$kSecCodeStatusHard@256$kSecCodeStatusKill@512$kSecCodeStatusValid@1$kSecCommentItemAttr@1768123764$kSecCreationDateItemAttr@1667522932$kSecCreatorItemAttr@1668445298$kSecCredentialTypeDefault@0$kSecCredentialTypeNoUI@2$kSecCredentialTypeWithUI@1$kSecCrlEncoding@1668443747$kSecCrlType@1668445296$kSecCustomIconItemAttr@1668641641$kSecDataAccessEvent@10$kSecDataAccessEventMask@1024$kSecDefaultChangedEvent@9$kSecDefaultChangedEventMask@512$kSecDefaultKeySize@0$kSecDeleteEvent@4$kSecDeleteEventMask@16$kSecDescriptionItemAttr@1684370275$kSecDesignatedRequirementType@3$kSecEveryEventMask@4294967295$kSecFormatBSAFE@3$kSecFormatNetscapeCertSequence@13$kSecFormatOpenSSL@1$kSecFormatPEMSequence@10$kSecFormatPKCS12@12$kSecFormatPKCS7@11$kSecFormatRawKey@4$kSecFormatSSH@2$kSecFormatSSHv2@14$kSecFormatUnknown@0$kSecFormatWrappedLSH@8$kSecFormatWrappedOpenSSL@6$kSecFormatWrappedPKCS8@5$kSecFormatWrappedSSH@7$kSecFormatX509Cert@9$kSecGenericItemAttr@1734700641$kSecGenericPasswordItemClass@1734700656$kSecGuestRequirementType@2$kSecHonorRoot@256$kSecHostRequirementType@1$kSecInternetPasswordItemClass@1768842612$kSecInvalidRequirementType@6$kSecInvisibleItemAttr@1768846953$kSecIssuerItemAttr@1769173877$kSecItemPemArmour@1$kSecItemTypeAggregate@5$kSecItemTypeCertificate@4$kSecItemTypePrivateKey@1$kSecItemTypePublicKey@2$kSecItemTypeSessionKey@3$kSecItemTypeUnknown@0$kSecKeyAlias@2$kSecKeyAlwaysSensitive@15$kSecKeyApplicationTag@7$kSecKeyDecrypt@19$kSecKeyDerive@20$kSecKeyEffectiveKeySize@11$kSecKeyEncrypt@18$kSecKeyEndDate@13$kSecKeyExtractable@16$kSecKeyImportOnlyOne@1$kSecKeyKeyClass@0$kSecKeyKeyCreator@8$kSecKeyKeySizeInBits@10$kSecKeyKeyType@9$kSecKeyLabel@6$kSecKeyModifiable@5$kSecKeyNeverExtractable@17$kSecKeyNoAccessControl@4$kSecKeyOperationTypeDecrypt@3$kSecKeyOperationTypeEncrypt@2$kSecKeyOperationTypeKeyExchange@4$kSecKeyOperationTypeSign@0$kSecKeyOperationTypeVerify@1$kSecKeyPermanent@3$kSecKeyPrintName@1$kSecKeyPrivate@4$kSecKeySecurePassphrase@2$kSecKeySensitive@14$kSecKeySign@21$kSecKeySignRecover@23$kSecKeyStartDate@12$kSecKeyUnwrap@26$kSecKeyUsageAll@2147483647$kSecKeyUsageCRLSign@64$kSecKeyUsageContentCommitment@2$kSecKeyUsageCritical@2147483648$kSecKeyUsageDataEncipherment@8$kSecKeyUsageDecipherOnly@256$kSecKeyUsageDigitalSignature@1$kSecKeyUsageEncipherOnly@128$kSecKeyUsageKeyAgreement@16$kSecKeyUsageKeyCertSign@32$kSecKeyUsageKeyEncipherment@4$kSecKeyUsageNonRepudiation@2$kSecKeyUsageUnspecified@0$kSecKeyVerify@22$kSecKeyVerifyRecover@24$kSecKeyWrap@25$kSecKeychainListChangedEvent@11$kSecKeychainListChangedMask@2048$kSecKeychainPromptInvalid@64$kSecKeychainPromptInvalidAct@128$kSecKeychainPromptRequirePassphase@1$kSecKeychainPromptUnsigned@16$kSecKeychainPromptUnsignedAct@32$kSecLabelItemAttr@1818321516$kSecLibraryRequirementType@4$kSecLockEvent@1$kSecLockEventMask@2$kSecMatchBits@3$kSecModDateItemAttr@1835295092$kSecNegativeItemAttr@1852139361$kSecNoGuest@0$kSecPaddingNone@0$kSecPaddingPKCS1@1$kSecPaddingPKCS1MD2@32768$kSecPaddingPKCS1MD5@32769$kSecPaddingPKCS1SHA1@32770$kSecPaddingSigRaw@16384$kSecPasswordChangedEvent@6$kSecPasswordChangedEventMask@64$kSecPathItemAttr@1885434984$kSecPluginRequirementType@5$kSecPortItemAttr@1886351988$kSecPreferencesDomainCommon@2$kSecPreferencesDomainDynamic@3$kSecPreferencesDomainSystem@1$kSecPreferencesDomainUser@0$kSecPrivateKeyItemClass@16$kSecProtocolItemAttr@1886675820$kSecProtocolTypeAFP@1634103328$kSecProtocolTypeAny@0$kSecProtocolTypeAppleTalk@1635019883$kSecProtocolTypeCIFS@1667851891$kSecProtocolTypeCVSpserver@1668707184$kSecProtocolTypeDAAP@1684103536$kSecProtocolTypeEPPC@1701867619$kSecProtocolTypeFTP@1718906912$kSecProtocolTypeFTPAccount@1718906977$kSecProtocolTypeFTPProxy@1718907000$kSecProtocolTypeFTPS@1718906995$kSecProtocolTypeHTTP@1752462448$kSecProtocolTypeHTTPProxy@1752461432$kSecProtocolTypeHTTPS@1752461427$kSecProtocolTypeHTTPSProxy@1752462200$kSecProtocolTypeIMAP@1768776048$kSecProtocolTypeIMAPS@1768779891$kSecProtocolTypeIPP@1768976416$kSecProtocolTypeIRC@1769104160$kSecProtocolTypeIRCS@1769104243$kSecProtocolTypeLDAP@1818517872$kSecProtocolTypeLDAPS@1818521715$kSecProtocolTypeNNTP@1852732528$kSecProtocolTypeNNTPS@1853124723$kSecProtocolTypePOP3@1886351411$kSecProtocolTypePOP3S@1886351475$kSecProtocolTypeRTSP@1920234352$kSecProtocolTypeRTSPProxy@1920234360$kSecProtocolTypeSMB@1936548384$kSecProtocolTypeSMTP@1936553072$kSecProtocolTypeSOCKS@1936685088$kSecProtocolTypeSSH@1936943136$kSecProtocolTypeSVN@1937141280$kSecProtocolTypeTelnet@1952803950$kSecProtocolTypeTelnetS@1952803955$kSecPublicKeyHashItemAttr@1752198009$kSecPublicKeyItemClass@15$kSecRSAMax@4096$kSecRSAMin@1024$kSecReadPermStatus@2$kSecRequirementTypeCount@6$kSecRevocationCRLMethod@2$kSecRevocationNetworkAccessDisabled@16$kSecRevocationOCSPMethod@1$kSecRevocationPreferCRL@4$kSecRevocationRequirePositiveResponse@8$kSecRevocationUseAnyAvailableMethod@3$kSecScriptCodeItemAttr@1935897200$kSecSecurityDomainItemAttr@1935961454$kSecSerialNumberItemAttr@1936614002$kSecServerItemAttr@1936881266$kSecServiceItemAttr@1937138533$kSecSignatureItemAttr@1936943463$kSecSubjectItemAttr@1937072746$kSecSubjectKeyIdentifierItemAttr@1936419172$kSecSymmetricKeyItemClass@17$kSecTransformErrorAbortInProgress@19$kSecTransformErrorAborted@20$kSecTransformErrorAttributeNotFound@1$kSecTransformErrorInvalidAlgorithm@6$kSecTransformErrorInvalidConnection@15$kSecTransformErrorInvalidInput@10$kSecTransformErrorInvalidInputDictionary@5$kSecTransformErrorInvalidLength@7$kSecTransformErrorInvalidOperation@2$kSecTransformErrorInvalidType@8$kSecTransformErrorMissingParameter@14$kSecTransformErrorMoreThanOneOutput@4$kSecTransformErrorNameAlreadyRegistered@11$kSecTransformErrorNotInitializedCorrectly@3$kSecTransformErrorUnsupportedAttribute@12$kSecTransformInvalidArgument@21$kSecTransformInvalidOverride@17$kSecTransformMetaAttributeCanCycle@7$kSecTransformMetaAttributeDeferred@5$kSecTransformMetaAttributeExternalize@8$kSecTransformMetaAttributeHasInboundConnection@10$kSecTransformMetaAttributeHasOutboundConnections@9$kSecTransformMetaAttributeName@1$kSecTransformMetaAttributeRef@2$kSecTransformMetaAttributeRequired@3$kSecTransformMetaAttributeRequiresOutboundConnection@4$kSecTransformMetaAttributeStream@6$kSecTransformMetaAttributeValue@0$kSecTransformOperationNotSupportedOnGroup@13$kSecTransformTransformIsExecuting@16$kSecTransformTransformIsNotRegistered@18$kSecTrustOptionAllowExpired@1$kSecTrustOptionAllowExpiredRoot@8$kSecTrustOptionFetchIssuerFromNet@4$kSecTrustOptionImplicitAnchors@64$kSecTrustOptionLeafIsCA@2$kSecTrustOptionRequireRevPerCert@16$kSecTrustOptionUseTrustSettings@32$kSecTrustResultConfirm@2$kSecTrustResultDeny@3$kSecTrustResultFatalTrustFailure@6$kSecTrustResultInvalid@0$kSecTrustResultOtherError@7$kSecTrustResultProceed@1$kSecTrustResultRecoverableTrustFailure@5$kSecTrustResultUnspecified@4$kSecTrustSettingsChangedEvent@12$kSecTrustSettingsChangedEventMask@4096$kSecTrustSettingsDefaultRootCertSetting@-1$kSecTrustSettingsDomainAdmin@1$kSecTrustSettingsDomainSystem@2$kSecTrustSettingsDomainUser@0$kSecTrustSettingsKeyUseAny@4294967295$kSecTrustSettingsKeyUseEnDecryptData@2$kSecTrustSettingsKeyUseEnDecryptKey@4$kSecTrustSettingsKeyUseKeyExchange@32$kSecTrustSettingsKeyUseSignCert@8$kSecTrustSettingsKeyUseSignRevocation@16$kSecTrustSettingsKeyUseSignature@1$kSecTrustSettingsResultDeny@3$kSecTrustSettingsResultInvalid@0$kSecTrustSettingsResultTrustAsRoot@2$kSecTrustSettingsResultTrustRoot@1$kSecTrustSettingsResultUnspecified@4$kSecTypeItemAttr@1954115685$kSecUnlockEvent@2$kSecUnlockEventMask@4$kSecUnlockStateStatus@1$kSecUpdateEvent@5$kSecUpdateEventMask@32$kSecUseOnlyGID@2$kSecUseOnlyUID@1$kSecVolumeItemAttr@1986817381$kSecWritePermStatus@4$kSecp192r1@192$kSecp256r1@256$kSecp384r1@384$kSecp521r1@521$kTLSProtocol1@4$kTLSProtocol11@7$kTLSProtocol12@8$kTLSProtocol1Only@5$kTryAuthenticate@2$'''
misc.update({'kAuthorizationEnvironmentIcon': b'icon', 'kKeychainSuffix': b'.keychain', 'kSecTrustSettingsResult': b'kSecTrustSettingsResult', 'kAuthorizationRuleIsAdmin': b'is-admin', 'kAuthorizationEmptyEnvironment': None, 'kSystemUnlockFile': b'/var/db/SystemKey', 'kSecTrustSettingsAllowedError': b'kSecTrustSettingsAllowedError', 'CSSM_APPLE_ACL_TAG_INTEGRITY': b'___INTEGRITY___', 'kKeychainDbSuffix': b'.keychain-db', 'kAuthorizationRuleClassAllow': b'allow', 'kAuthorizationRuleAuthenticateAsAdmin': b'authenticate-admin', 'kAuthorizationRuleAuthenticateAsSessionUser': b'authenticate-session-owner', 'kSecTrustSettingsKeyUsage': b'kSecTrustSettingsKeyUsage', 'kAuthorizationEnvironmentShared': b'shared', 'kSystemKeychainName': b'System.keychain', 'kAuthorizationEnvironmentPrompt': b'prompt', 'kSystemKeychainDir': b'/Library/Keychains/', 'CSSM_APPLE_CRL_END_OF_TIME': b'99991231235959', 'kAuthorizationComment': b'comment', 'kSecTrustSettingsApplication': b'kSecTrustSettingsApplication', 'kAuthorizationRuleClassDeny': b'deny', 'MDS_OBJECT_DIRECTORY_NAME': b'MDS Object Directory', 'kAuthorizationEnvironmentUsername': b'username', 'MDS_CDSA_DIRECTORY_NAME': b'MDS CDSA Directory', 'kAuthorizationEnvironmentPassword': b'password', 'kSecTrustSettingsPolicyString': b'kSecTrustSettingsPolicyString', 'CSSM_APPLE_ACL_TAG_PARTITION_ID': b'___PARTITION___', 'kAuthorizationRightRule': b'rule', 'kSecTrustSettingsPolicy': b'kSecTrustSettingsPolicy', 'kAuthorizationRightExecute': b'system.privilege.admin'})
functions={'CSSM_CL_CertGetKeyInfo': (b'iq^{cssm_data=Q^C}^^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}',), 'CSSM_DL_DestroyRelation': (b'i{cssm_dl_db_handle=qq}I',), 'CMSEncoderGetCertificateChainMode': (b'i^{_CMSEncoder=}^I',), 'SecKeyGeneratePair': (b'i^{__CFDictionary=}^^{OpaqueSecKeyRef=}^^{OpaqueSecKeyRef=}',), 'SecKeychainItemExport': (b'i@II^{_SecKeyImportExportParameters=II@^{__CFString=}^{__CFString=}^{OpaqueSecAccessRef=}II}^^{__CFData=}',), 'CSSM_CL_CertGetNextCachedFieldValue': (b'iqq^^{cssm_data=Q^C}',), 'CSSM_ChangeKeyAcl': (b'iq^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}^{cssm_acl_edit=Iq^{cssm_acl_entry_input={cssm_acl_entry_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_authorizationgroup=I^i}{cssm_acl_validity_period={cssm_data=Q^C}{cssm_data=Q^C}}[68c]}^?^v}}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}',), 'CSSM_FreeKey': (b'iq^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}i',), 'CSSM_DeleteContext': (b'iQ',), 'SecKeychainItemFreeAttributesAndData': (b'i^{SecKeychainAttributeList=I^{SecKeychainAttribute=II^v}}^v',), 'SecCodeCopyPath': (b'i^{__SecCode=}I^^{__CFURL=}', '', {'retval': {'already_cfretained': True}}), 'SecCertificateCopySerialNumber': (b'^{__CFData=}^{OpaqueSecCertificateRef=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SSLSetProtocolVersion': (b'i^{SSLContext=}i',), 'SecTrustGetCssmResultCode': (b'i^{__SecTrust=}^i',), 'SecTrustSettingsSetTrustSettings': (b'i^{OpaqueSecCertificateRef=}I@',), 'SecTrustSetPolicies': (b'i^{__SecTrust=}@',), 'CSSM_QueryKeySizeInBits': (b'iqQ^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}^{cssm_key_size=II}',), 'SecPolicyGetOID': (b'i^{OpaqueSecPolicyRef=}^{cssm_data=Q^C}',), 'CSSM_SignData': (b'iQ^{cssm_data=Q^C}II^{cssm_data=Q^C}',), 'SecCertificateGetSubject': (b'i^{OpaqueSecCertificateRef=}^^{cssm_x509_name=I^{cssm_x509_rdn=I^{cssm_x509_type_value_pair={cssm_data=Q^C}C{cssm_data=Q^C}}}}',), 'SSLGetAllowsExpiredRoots': (b'i^{SSLContext=}^Z',), 'CSSM_ModuleAttach': (b'i^{cssm_guid=ISS[8C]}^{cssm_version=II}^{cssm_memory_funcs=^?^?^?^?^v}IIII^{cssm_func_name_addr=[68c]^?}I^v^q',), 'CSSM_CL_CrlGetFirstFieldValue': (b'iq^{cssm_data=Q^C}^{cssm_data=Q^C}^q^I^^{cssm_data=Q^C}',), 'CSSM_CSP_ChangeLoginAcl': (b'iq^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}^{cssm_acl_edit=Iq^{cssm_acl_entry_input={cssm_acl_entry_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_authorizationgroup=I^i}{cssm_acl_validity_period={cssm_data=Q^C}{cssm_data=Q^C}}[68c]}^?^v}}',), 'SSLGetSessionOption': (b'i^{SSLContext=}i^Z',), 'SecStaticCodeCreateWithPath': (b'i^{__CFURL=}I^^{__SecCode=}', '', {'retval': {'already_cfretained': True}}), 'SecKeychainItemGetUniqueRecordID': (b'i^{OpaqueSecKeychainItemRef=}^^{cssm_db_unique_record={cssm_db_index_info=II{cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}}{cssm_data=Q^C}}',), 'SecTrustGetCertificateAtIndex': (b'^{OpaqueSecCertificateRef=}^{__SecTrust=}q',), 'CSSM_DL_GetDbAcl': (b'i{cssm_dl_db_handle=qq}^[68c]^I^^{cssm_acl_entry_info={cssm_acl_entry_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_authorizationgroup=I^i}{cssm_acl_validity_period={cssm_data=Q^C}{cssm_data=Q^C}}[68c]}q}',), 'CSSM_TP_CertGroupPrune': (b'iqq^{cssm_dl_db_list=I^{cssm_dl_db_handle=qq}}^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}^^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}',), 'CMSEncoderSetEncapsulatedContentTypeOID': (b'i^{_CMSEncoder=}@',), 'SecItemImport': (b'i^{__CFData=}^{__CFString=}^I^II^{_SecItemImportExportKeyParameters=II@^{__CFString=}^{__CFString=}^{OpaqueSecAccessRef=}^{__CFArray=}^{__CFArray=}}^{OpaqueSecKeychainRef=}^^{__CFArray=}',), 'AuthorizationExecuteWithPrivileges': (b'i^{AuthorizationOpaqueRef=}^cI^^c^^{__sFILE=^Ciiss{__sbuf=^Ci}i^v^?^?^?^?{__sbuf=^Ci}^{__sFILEX=}i[3C][1C]{__sbuf=^Ci}iq}',), 'SSLGetMaxDatagramRecordSize': (b'i^{SSLContext=}^Q',), 'CSSM_EncryptDataFinal': (b'iQ^{cssm_data=Q^C}',), 'SecKeychainItemCopyContent': (b'i^{OpaqueSecKeychainItemRef=}^I^{SecKeychainAttributeList=I^{SecKeychainAttribute=II^v}}^I^^v', '', {'retval': {'already_cfretained': True}}), 'CMSDecoderIsContentEncrypted': (b'i^{_CMSDecoder=}^Z',), 'CSSM_ModuleDetach': (b'iq',), 'SecTaskCreateFromSelf': (b'^{__SecTask=}^{__CFAllocator=}', '', {'retval': {'already_cfretained': True}}), 'CMSEncoderCopyRecipients': (b'i^{_CMSEncoder=}^^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'SecIdentitySearchCreate': (b'i@I^^{OpaqueSecIdentitySearchRef=}', '', {'retval': {'already_cfretained': True}}), 'SSLCopyDistinguishedNames': (b'i^{SSLContext=}^^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'SecTrustSetExceptions': (b'B^{__SecTrust=}^{__CFData=}',), 'SecItemAdd': (b'i^{__CFDictionary=}^@',), 'CSSM_GenerateMacFinal': (b'iQ^{cssm_data=Q^C}',), 'CSSM_CL_CrlAbortCache': (b'iqq',), 'CSSM_KR_RegistrationRetrieve': (b'iIq^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}^i^{cssm_kr_profile={cssm_kr_name=CC^c}^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}C^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}C^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}C^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}^{cssm_data=Q^C}I^{cssm_data=Q^C}}',), 'SecPolicyCreateRevocation': (b'^{OpaqueSecPolicyRef=}Q', '', {'retval': {'already_cfretained': True}}), 'SecKeyCreateEncryptedData': (b'^{__CFData=}^{OpaqueSecKeyRef=}^{__CFString=}^{__CFData=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {3: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SecTrustSetParameters': (b'i^{__SecTrust=}I^{__CFData=}',), 'CSSM_EncryptDataUpdate': (b'iQ^{cssm_data=Q^C}I^{cssm_data=Q^C}I^Q',), 'SecCertificateCopyNormalizedSubjectContent': (b'^{__CFData=}^{OpaqueSecCertificateRef=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SecCertificateGetType': (b'i^{OpaqueSecCertificateRef=}^I',), 'CSSM_CL_CertCreateTemplate': (b'iqI^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}^{cssm_data=Q^C}', '', {'retval': {'already_cfretained': True}}), 'CSSM_DL_DataGetFirst': (b'i{cssm_dl_db_handle=qq}^{cssm_query=III^{cssm_selection_predicate=I{cssm_db_attribute_data={cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}I^{cssm_data=Q^C}}}{cssm_query_limits=II}I}^q^{cssm_db_record_attribute_data=III^{cssm_db_attribute_data={cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}I^{cssm_data=Q^C}}}^{cssm_data=Q^C}^^{cssm_db_unique_record={cssm_db_index_info=II{cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}}{cssm_data=Q^C}}',), 'CSSM_EncryptData': (b'iQ^{cssm_data=Q^C}I^{cssm_data=Q^C}I^Q^{cssm_data=Q^C}',), 'SecKeyCreateSignature': (b'^{__CFData=}^{OpaqueSecKeyRef=}^{__CFString=}^{__CFData=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {3: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'CSSM_DL_GetDbNames': (b'iq^^{cssm_name_list=I^^c}',), 'CSSM_GetAPIMemoryFunctions': (b'iq^{cssm_memory_funcs=^?^?^?^?^v}',), 'CSSM_Unintroduce': (b'i^{cssm_guid=ISS[8C]}',), 'CMSDecoderCreate': (b'i^^{_CMSDecoder=}', '', {'retval': {'already_cfretained': True}}), 'CMSDecoderCopyAllCerts': (b'i^{_CMSDecoder=}^^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'SecKeychainItemGetDLDBHandle': (b'i^{OpaqueSecKeychainItemRef=}^{cssm_dl_db_handle=qq}',), 'CSSM_CL_CrlGetFirstCachedFieldValue': (b'iqq^{cssm_data=Q^C}^{cssm_data=Q^C}^q^I^^{cssm_data=Q^C}',), 'SecAccessCreateWithOwnerAndACL': (b'^{OpaqueSecAccessRef=}III^{__CFArray=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {4: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SSLSetEncryptionCertificate': (b'i^{SSLContext=}^{__CFArray=}',), 'CSSM_FreeContext': (b'i^{cssm_context=III^{cssm_context_attribute=II(cssm_context_attribute_value=*I^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(?=^{cssm_data}^{cssm_encoded_cert}^{cssm_parsed_cert}^{cssm_cert_pair})I^v}}{cssm_samplegroup=I^{cssm_sample}}^?^v}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q*}}^{cssm_data=Q*}I^{cssm_date=[4C][2C][2C]}^{cssm_range=II}^{cssm_crypto_data={cssm_data=Q*}^?^v}^{cssm_version=II}^{cssm_dl_db_handle=qq}{cssm_kr_profile=}^{cssm_kr_profile={cssm_kr_name=CC*}^{cssm_certgroup}^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}^{cssm_data}I^{cssm_data}})(cssm_context_attribute_value=*I^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(?=^{cssm_data}^{cssm_encoded_cert}^{cssm_parsed_cert}^{cssm_cert_pair})I^v}}{cssm_samplegroup=I^{cssm_sample}}^?^v}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q*}}^{cssm_data=Q*}I^{cssm_date=[4C][2C][2C]}^{cssm_range=II}^{cssm_crypto_data={cssm_data=Q*}^?^v}^{cssm_version=II}^{cssm_dl_db_handle=qq}{cssm_kr_profile=}^{cssm_kr_profile={cssm_kr_name=CC*}^{cssm_certgroup}^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}^{cssm_data}I^{cssm_data}})}qiIII}',), 'CMSDecoderSetSearchKeychain': (b'i^{_CMSDecoder=}@',), 'SecTrustSettingsCopyCertificates': (b'iI^^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'SecKeyCreatePair': (b'i^{OpaqueSecKeychainRef=}IIQIIII^{OpaqueSecAccessRef=}^^{OpaqueSecKeyRef=}^^{OpaqueSecKeyRef=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_ModuleUnload': (b'i^{cssm_guid=ISS[8C]}^?^v', '', {'arguments': {1: {'callable': {'retval': {'type': b'i'}, 'arguments': {0: {'type': b'^{cssm_guid=ISS[8C]}'}, 1: {'type': b'^v'}, 2: {'type': b'I'}, 3: {'type': b'I'}, 4: {'type': b'I'}}}}}}), 'SecKeychainUnlock': (b'i^{OpaqueSecKeychainRef=}I^vZ',), 'SecKeyGenerate': (b'i^{OpaqueSecKeychainRef=}IIQII^{OpaqueSecAccessRef=}^^{OpaqueSecKeyRef=}',), 'SecHostSelectGuest': (b'iII',), 'CSSM_CL_CertGetAllTemplateFields': (b'iq^{cssm_data=Q^C}^I^^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}',), 'CMSDecoderSetDetachedContent': (b'i^{_CMSDecoder=}^{__CFData=}',), 'SSLAddDistinguishedName': (b'i^{SSLContext=}^vQ',), 'SecKeychainItemCopyFromPersistentReference': (b'i^{__CFData=}^^{OpaqueSecKeychainItemRef=}', '', {'retval': {'already_cfretained': True}}), 'SecKeychainSearchCopyNext': (b'i^{OpaqueSecKeychainSearchRef=}^^{OpaqueSecKeychainItemRef=}', '', {'retval': {'already_cfretained': True}}), 'SecTrustEvaluate': (b'i^{__SecTrust=}^I',), 'SecTransformCopyExternalRepresentation': (b'^{__CFDictionary=}@', '', {'retval': {'already_cfretained': True}}), 'SecTrustGetCertificateCount': (b'q^{__SecTrust=}',), 'SecKeychainItemFreeContent': (b'i^{SecKeychainAttributeList=I^{SecKeychainAttribute=II^v}}^v',), 'CSSM_CL_CrlCreateTemplate': (b'iqI^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}^{cssm_data=Q^C}', '', {'retval': {'already_cfretained': True}}), 'CSSM_CL_CrlGetNextFieldValue': (b'iqq^^{cssm_data=Q^C}',), 'SecStaticCodeCheckValidityWithErrors': (b'i^{__SecCode=}I^{__SecRequirement=}^^{__CFError=}', '', {'arguments': {3: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'MDS_Uninstall': (b'iq',), 'CSSM_CL_CrlSign': (b'iqQ^{cssm_data=Q^C}^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}I^{cssm_data=Q^C}',), 'SecCertificateGetIssuer': (b'i^{OpaqueSecCertificateRef=}^^{cssm_x509_name=I^{cssm_x509_rdn=I^{cssm_x509_type_value_pair={cssm_data=Q^C}C{cssm_data=Q^C}}}}',), 'SecTrustCopyResult': (b'^{__CFDictionary=}^{__SecTrust=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_TP_CertReclaimKey': (b'iq^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}IQq^{cssm_resource_control_context=^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}{cssm_acl_entry_input={cssm_acl_entry_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_authorizationgroup=I^i}{cssm_acl_validity_period={cssm_data=Q^C}{cssm_data=Q^C}}[68c]}^?^v}}',), 'CSSM_TP_CertCreateTemplate': (b'iqqI^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}^{cssm_data=Q^C}', '', {'retval': {'already_cfretained': True}}), 'SecPolicyGetValue': (b'i^{OpaqueSecPolicyRef=}^{cssm_data=Q^C}',), 'CSSM_GenerateKeyP': (b'iQII^{cssm_data=Q^C}^{cssm_resource_control_context=^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}{cssm_acl_entry_input={cssm_acl_entry_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_authorizationgroup=I^i}{cssm_acl_validity_period={cssm_data=Q^C}{cssm_data=Q^C}}[68c]}^?^v}}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}Q',), 'CMSDecoderCopySignerSigningTime': (b'i^{_CMSDecoder=}Q^d', '', {'retval': {'already_cfretained': True}}), 'SecTrustSetNetworkFetchAllowed': (b'i^{__SecTrust=}Z',), 'CSSM_CL_CertCache': (b'iq^{cssm_data=Q^C}^q',), 'SSLSetCertificate': (b'i^{SSLContext=}^{__CFArray=}',), 'SecACLSetContents': (b'i^{OpaqueSecTrustRef=}^{__CFArray=}^{__CFString=}S',), 'CSSM_WrapKeyP': (b'iQ^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}^{cssm_data=Q^C}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}Q',), 'AuthorizationFreeItemSet': (b'i^{_AuthorizationItemSet=I^{_AuthorizationItem=^cQ^vI}}',), 'CMSEncode': (b'i@@^{cssm_data=Q^C}ZI^vQ^^{__CFData=}',), 'SecPKCS12Import': (b'i^{__CFData=}^{__CFDictionary=}^^{__CFArray=}',), 'CSSM_KR_GetPolicyInfo': (b'iQ^I^I',), 'SSLSetSessionConfig': (b'i^{SSLContext=}^{__CFString=}',), 'CSSM_DL_Authenticate': (b'i{cssm_dl_db_handle=qq}I^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}',), 'SecTrustGetTPHandle': (b'i^{__SecTrust=}^q',), 'SecKeyIsAlgorithmSupported': (b'Z^{OpaqueSecKeyRef=}q^{__CFString=}',), 'SecKeyCopyExternalRepresentation': (b'^{__CFData=}^{OpaqueSecKeyRef=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'CSSM_SPI_ModuleAttach': (b'i^{cssm_guid=ISS[8C]}^{cssm_version=II}IIIqI^{cssm_guid=ISS[8C]}^{cssm_guid=ISS[8C]}^{cssm_guid=ISS[8C]}^{cssm_upcalls=^?^?^?^?^?^?}^^{cssm_module_funcs=II^^?}',), 'SSLCopyTrustedRoots': (b'i^{SSLContext=}^^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_TP_CertGroupConstruct': (b'iqqq^{cssm_dl_db_list=I^{cssm_dl_db_handle=qq}}^v^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}^^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}',), 'SecKeychainItemCopyKeychain': (b'i^{OpaqueSecKeychainItemRef=}^^{OpaqueSecKeychainRef=}', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'type_modifier': 'o'}}}), 'CSSM_UpdateContextAttributes': (b'iQI^{cssm_context_attribute=II(cssm_context_attribute_value=*I^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(?=^{cssm_data}^{cssm_encoded_cert}^{cssm_parsed_cert}^{cssm_cert_pair})I^v}}{cssm_samplegroup=I^{cssm_sample}}^?^v}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q*}}^{cssm_data=Q*}I^{cssm_date=[4C][2C][2C]}^{cssm_range=II}^{cssm_crypto_data={cssm_data=Q*}^?^v}^{cssm_version=II}^{cssm_dl_db_handle=qq}{cssm_kr_profile=}^{cssm_kr_profile={cssm_kr_name=CC*}^{cssm_certgroup}^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}^{cssm_data}I^{cssm_data}})(cssm_context_attribute_value=*I^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(?=^{cssm_data}^{cssm_encoded_cert}^{cssm_parsed_cert}^{cssm_cert_pair})I^v}}{cssm_samplegroup=I^{cssm_sample}}^?^v}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q*}}^{cssm_data=Q*}I^{cssm_date=[4C][2C][2C]}^{cssm_range=II}^{cssm_crypto_data={cssm_data=Q*}^?^v}^{cssm_version=II}^{cssm_dl_db_handle=qq}{cssm_kr_profile=}^{cssm_kr_profile={cssm_kr_name=CC*}^{cssm_certgroup}^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}^{cssm_data}I^{cssm_data}})}',), 'AuthorizationCopyPrivilegedReference': (b'i^^{AuthorizationOpaqueRef=}I', '', {'retval': {'already_cfretained': True}}), 'SSLSetSessionOption': (b'i^{SSLContext=}iZ',), 'SecKeychainGetUserInteractionAllowed': (b'i^Z',), 'CSSM_SPI_ModuleDetach': (b'iq',), 'CSSM_DigestData': (b'iQ^{cssm_data=Q^C}I^{cssm_data=Q^C}',), 'SecTransformCreateFromExternalRepresentation': (b'@^{__CFDictionary=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SSLGetBufferedReadSize': (b'i^{SSLContext=}^Q',), 'SecTrustSetVerifyDate': (b'i^{__SecTrust=}^{__CFDate=}',), 'SSLNewContext': (b'iZ^^{SSLContext=}',), 'CSSM_GetPrivilege': (b'i^Q',), 'SecACLGetTypeID': (b'Q',), 'SSLContextGetTypeID': (b'Q',), 'CSSM_TP_ConfirmCredResult': (b'iq^{cssm_data=Q^C}^{cssm_tp_callerauth_context={cssm_tp_policyinfo=I^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}^v}^cI^?I^{cssm_data=Q^C}^{cssm_dl_db_list=I^{cssm_dl_db_handle=qq}}^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}}^{cssm_tp_confirm_response=I^I}^{cssm_tp_authority_id=^{cssm_data=Q^C}^{cssm_net_address=I{cssm_data=Q^C}}}',), 'CSSM_KR_RecoveryRetrieve': (b'iIq^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}^i^q^I',), 'SecAccessCopyOwnerAndACL': (b'i^{OpaqueSecAccessRef=}^I^I^I^^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_CSP_CreateMacContext': (b'iqI^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}^Q', '', {'retval': {'already_cfretained': True}}), 'CSSM_EncryptDataP': (b'iQ^{cssm_data=Q^C}I^{cssm_data=Q^C}I^Q^{cssm_data=Q^C}Q',), 'CSSM_TP_TupleGroupToCertGroup': (b'iqq^{cssm_tuplegroup=I^{_CSSM_TUPLE_PTR={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}}}^^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}',), 'SecIdentitySearchGetTypeID': (b'Q',), 'CSSM_GetModuleGUIDFromHandle': (b'iq^{cssm_guid=ISS[8C]}',), 'SecKeychainLockAll': (b'i',), 'CSSM_ModuleLoad': (b'i^{cssm_guid=ISS[8C]}I^?^v', '', {'arguments': {2: {'callable': {'retval': {'type': b'i'}, 'arguments': {0: {'type': b'^{cssm_guid=ISS[8C]}'}, 1: {'type': b'^v'}, 2: {'type': b'I'}, 3: {'type': b'I'}, 4: {'type': b'I'}}}}}}), 'SSLGetPeerDomainName': (b'i^{SSLContext=}^c^Q',), 'CSSM_CSP_ObtainPrivateKeyFromPublicKey': (b'iq^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}',), 'SecTrustGetCssmResult': (b'i^{__SecTrust=}^^{cssm_tp_verify_context_result=I^{cssm_evidence=I^v}}',), 'SecPolicyCreateWithProperties': (b'^{OpaqueSecPolicyRef=}@^{__CFDictionary=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_CSP_GetLoginOwner': (b'iq^{cssm_acl_owner_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i}',), 'SecACLCopyContents': (b'i^{OpaqueSecTrustRef=}^^{__CFArray=}^^{__CFString=}^S', '', {'retval': {'already_cfretained': True}}), 'SecKeychainGetDLDBHandle': (b'i^{OpaqueSecKeychainRef=}^{cssm_dl_db_handle=qq}',), 'SecCodeMapMemory': (b'i^{__SecCode=}I',), 'CSSM_KR_QueryPolicyInfo': (b'iIIII^^{cssm_kr_policy_info=iI^{cssm_kr_policy_list_item={kr_policy_list_item=}^{kr_policy_list_item=}IIIICII}}',), 'CMSDecoderCopyContent': (b'i^{_CMSDecoder=}^^{__CFData=}', '', {'retval': {'already_cfretained': True}}), 'SecAccessCreate': (b'i^{__CFString=}^{__CFArray=}^^{OpaqueSecAccessRef=}', '', {'retval': {'already_cfretained': True}}), 'SecTransformExecute': (b'@@^^{__CFError=}', '', {'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SecCertificateCopyEmailAddresses': (b'i^{OpaqueSecCertificateRef=}^^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'AuthorizationMakeExternalForm': (b'i^{AuthorizationOpaqueRef=}^{_AuthorizationExternalForm=[32c]}',), 'CSSM_KR_GenerateRecoveryFields': (b'iQQ^{cssm_data=Q^C}I^{cssm_data=Q^C}^Q',), 'CMSEncoderCopySignerTimestampWithPolicy': (b'i^{_CMSEncoder=}@Q^d', '', {'retval': {'already_cfretained': True}}), 'SecCodeCopyDesignatedRequirement': (b'i^{__SecCode=}I^^{__SecRequirement=}', '', {'retval': {'already_cfretained': True}}), 'CMSEncoderUpdateContent': (b'i^{_CMSEncoder=}^vQ',), 'CSSM_DL_FreeUniqueRecord': (b'i{cssm_dl_db_handle=qq}^{cssm_db_unique_record={cssm_db_index_info=II{cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}}{cssm_data=Q^C}}',), 'SecCodeCopyStaticCode': (b'i^{__SecCode=}I^^{__SecCode=}', '', {'retval': {'already_cfretained': True}}), 'CMSEncoderAddSignedAttributes': (b'i^{_CMSEncoder=}I',), 'CSSM_GenerateKey': (b'iQII^{cssm_data=Q^C}^{cssm_resource_control_context=^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}{cssm_acl_entry_input={cssm_acl_entry_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_authorizationgroup=I^i}{cssm_acl_validity_period={cssm_data=Q^C}{cssm_data=Q^C}}[68c]}^?^v}}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}',), 'SecIdentityCopySystemIdentity': (b'i^{__CFString=}^^{OpaqueSecIdentityRef=}^^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'SecKeychainItemImport': (b'i^{__CFData=}^{__CFString=}^I^II^{_SecKeyImportExportParameters=II@^{__CFString=}^{__CFString=}^{OpaqueSecAccessRef=}II}^{OpaqueSecKeychainRef=}^^{__CFArray=}',), 'CSSM_QuerySize': (b'iQiI^{cssm_query_size_data=II}',), 'CSSM_TP_CertRemoveFromCrlTemplate': (b'iqqq^{cssm_data=Q^C}^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}^{cssm_tp_verify_context=I{cssm_data=Q^C}{cssm_crlgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_crl=II{cssm_data=Q*}}^{cssm_parsed_crl=II^v}^{cssm_crl_pair={cssm_encoded_crl=II{cssm_data=Q*}}{cssm_parsed_crl=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_crl=II{cssm_data=Q*}}^{cssm_parsed_crl=II^v}^{cssm_crl_pair={cssm_encoded_crl=II{cssm_data=Q*}}{cssm_parsed_crl=II^v}})I}^{cssm_tp_callerauth_context={cssm_tp_policyinfo=I^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}^v}^cI^?I^{cssm_data=Q^C}^{cssm_dl_db_list=I^{cssm_dl_db_handle=qq}}^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}}}^{cssm_tp_verify_context_result=I^{cssm_evidence=I^v}}^{cssm_data=Q^C}',), 'SecKeychainItemDelete': (b'i^{OpaqueSecKeychainItemRef=}',), 'SecKeychainItemCreateFromContent': (b'iI^{SecKeychainAttributeList=I^{SecKeychainAttribute=II^v}}I^v^{OpaqueSecKeychainRef=}^{OpaqueSecAccessRef=}^^{OpaqueSecKeychainItemRef=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_DigestDataInit': (b'iQ',), 'SSLGetAllowsAnyRoot': (b'i^{SSLContext=}^Z',), 'SSLCopyPeerTrust': (b'i^{SSLContext=}^^{__SecTrust=}', '', {'retval': {'already_cfretained': True}}), 'SecKeyVerifySignature': (b'Z^{OpaqueSecKeyRef=}^{__CFString=}^{__CFData=}^{__CFData=}^^{__CFError=}', '', {'arguments': {4: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SecKeychainItemCreatePersistentReference': (b'i^{OpaqueSecKeychainItemRef=}^^{__CFData=}', '', {'retval': {'already_cfretained': True}}), 'SecDigestTransformCreate': (b'@@q^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SecDecryptTransformCreate': (b'@^{OpaqueSecKeyRef=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SecCertificateCopyNormalizedIssuerContent': (b'^{__CFData=}^{OpaqueSecCertificateRef=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'CSSM_KR_RecoveryRequestAbort': (b'iIq',), 'SecPolicyCreateBasicX509': (b'^{OpaqueSecPolicyRef=}', '', {'retval': {'already_cfretained': True}}), 'SecKeyGetCredentials': (b'i^{OpaqueSecKeyRef=}iI^^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}',), 'SecKeychainLock': (b'i^{OpaqueSecKeychainRef=}',), 'SecTrustGetNetworkFetchAllowed': (b'i^{__SecTrust=}^Z',), 'CMSEncoderCopySupportingCerts': (b'i^{_CMSEncoder=}^^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'SecKeychainItemSetAccess': (b'i^{OpaqueSecKeychainItemRef=}^{OpaqueSecAccessRef=}',), 'SecTransformExecuteAsync': (b'v@@@?',), 'CSSM_Init': (b'i^{cssm_version=II}I^{cssm_guid=ISS[8C]}I^I^v',), 'SSLHandshake': (b'i^{SSLContext=}',), 'SecKeychainAddCallback': (b'i^?I^v', '', {'arguments': {0: {'callable': {'retval': {'type': b'i'}, 'arguments': {0: {'type': b'I'}, 1: {'type': b'^{SecKeychainCallbackInfo=I^{OpaqueSecKeychainItemRef=}^{OpaqueSecKeychainRef=}i}'}, 2: {'type': b'^v'}}}}}}), 'CSSM_GetContextAttribute': (b'i^{cssm_context=III^{cssm_context_attribute=II(cssm_context_attribute_value=*I^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(?=^{cssm_data}^{cssm_encoded_cert}^{cssm_parsed_cert}^{cssm_cert_pair})I^v}}{cssm_samplegroup=I^{cssm_sample}}^?^v}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q*}}^{cssm_data=Q*}I^{cssm_date=[4C][2C][2C]}^{cssm_range=II}^{cssm_crypto_data={cssm_data=Q*}^?^v}^{cssm_version=II}^{cssm_dl_db_handle=qq}{cssm_kr_profile=}^{cssm_kr_profile={cssm_kr_name=CC*}^{cssm_certgroup}^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}^{cssm_data}I^{cssm_data}})(cssm_context_attribute_value=*I^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(?=^{cssm_data}^{cssm_encoded_cert}^{cssm_parsed_cert}^{cssm_cert_pair})I^v}}{cssm_samplegroup=I^{cssm_sample}}^?^v}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q*}}^{cssm_data=Q*}I^{cssm_date=[4C][2C][2C]}^{cssm_range=II}^{cssm_crypto_data={cssm_data=Q*}^?^v}^{cssm_version=II}^{cssm_dl_db_handle=qq}{cssm_kr_profile=}^{cssm_kr_profile={cssm_kr_name=CC*}^{cssm_certgroup}^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}^{cssm_data}I^{cssm_data}})}qiIII}I^^{cssm_context_attribute=II(cssm_context_attribute_value=*I^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(?=^{cssm_data}^{cssm_encoded_cert}^{cssm_parsed_cert}^{cssm_cert_pair})I^v}}{cssm_samplegroup=I^{cssm_sample}}^?^v}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q*}}^{cssm_data=Q*}I^{cssm_date=[4C][2C][2C]}^{cssm_range=II}^{cssm_crypto_data={cssm_data=Q*}^?^v}^{cssm_version=II}^{cssm_dl_db_handle=qq}{cssm_kr_profile=}^{cssm_kr_profile={cssm_kr_name=CC*}^{cssm_certgroup}^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}^{cssm_data}I^{cssm_data}})(cssm_context_attribute_value=*I^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(?=^{cssm_data}^{cssm_encoded_cert}^{cssm_parsed_cert}^{cssm_cert_pair})I^v}}{cssm_samplegroup=I^{cssm_sample}}^?^v}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q*}}^{cssm_data=Q*}I^{cssm_date=[4C][2C][2C]}^{cssm_range=II}^{cssm_crypto_data={cssm_data=Q*}^?^v}^{cssm_version=II}^{cssm_dl_db_handle=qq}{cssm_kr_profile=}^{cssm_kr_profile={cssm_kr_name=CC*}^{cssm_certgroup}^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}^{cssm_data}I^{cssm_data}})}',), 'CSSM_DL_ChangeDbAcl': (b'i{cssm_dl_db_handle=qq}^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}^{cssm_acl_edit=Iq^{cssm_acl_entry_input={cssm_acl_entry_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_authorizationgroup=I^i}{cssm_acl_validity_period={cssm_data=Q^C}{cssm_data=Q^C}}[68c]}^?^v}}',), 'CMSEncoderAddRecipients': (b'i^{_CMSEncoder=}@',), 'SecKeychainGetCSPHandle': (b'i^{OpaqueSecKeychainRef=}^q',), 'SecTrustCopyPublicKey': (b'^{OpaqueSecKeyRef=}^{__SecTrust=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_CL_CrlGetAllCachedRecordFields': (b'iqq^{cssm_data=Q^C}^I^^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}',), 'SecCertificateGetData': (b'i^{OpaqueSecCertificateRef=}^{cssm_data=Q^C}',), 'SecKeyCreateWithData': (b'^{OpaqueSecKeyRef=}^{__CFData=}^{__CFDictionary=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SSLSetProtocolVersionEnabled': (b'i^{SSLContext=}iZ',), 'CSSM_GenerateRandom': (b'iQ^{cssm_data=Q^C}',), 'CSSM_TP_CrlCreateTemplate': (b'iqqI^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}^{cssm_data=Q^C}', '', {'retval': {'already_cfretained': True}}), 'AuthorizationCopyRightsAsync': (b'v^{AuthorizationOpaqueRef=}^{_AuthorizationRights=I^{_AuthorizationItem=^cQ^vI}}^{_AuthorizationEnvironment=I^{_AuthorizationItem=^cQ^vI}}I@?', '', {'retval': {'already_cfretained': True}}), 'CSSM_CL_FreeFieldValue': (b'iq^{cssm_data=Q^C}^{cssm_data=Q^C}',), 'SecKeychainDelete': (b'i^{OpaqueSecKeychainRef=}',), 'SSLSetRsaBlinding': (b'i^{SSLContext=}Z',), 'AuthorizationRightSet': (b'i^{AuthorizationOpaqueRef=}^c@^{__CFString=}^{__CFBundle=}^{__CFString=}',), 'SecACLRemove': (b'i^{OpaqueSecTrustRef=}',), 'SecStaticCodeCheckValidity': (b'i^{__SecCode=}I^{__SecRequirement=}',), 'CSSM_DL_DataAbortQuery': (b'i{cssm_dl_db_handle=qq}q',), 'CSSM_TP_FormSubmit': (b'iqI^{cssm_data=Q^C}^{cssm_tp_authority_id=^{cssm_data=Q^C}^{cssm_net_address=I{cssm_data=Q^C}}}^{cssm_tp_authority_id=^{cssm_data=Q^C}^{cssm_net_address=I{cssm_data=Q^C}}}^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}',), 'SecKeychainCreate': (b'i*I^vZ^{OpaqueSecAccessRef=}^^{OpaqueSecKeychainRef=}', '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'c_array_length_in_arg': 1}, 5: {'type_modifier': 'o'}}}), 'CSSM_DigestDataFinal': (b'iQ^{cssm_data=Q^C}',), 'SSLGetSessionState': (b'i^{SSLContext=}^i',), 'SecEncryptTransformGetTypeID': (b'Q', '', {'variadic': True}), 'SSLGetDiffieHellmanParams': (b'i^{SSLContext=}^^v^Q',), 'SecIdentityCopyPreference': (b'i^{__CFString=}I^{__CFArray=}^^{OpaqueSecIdentityRef=}', '', {'retval': {'already_cfretained': True}}), 'SecTrustCopyAnchorCertificates': (b'i^^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'SecCertificateCreateWithData': (b'^{OpaqueSecCertificateRef=}^{__CFAllocator=}^{__CFData=}', '', {'retval': {'already_cfretained': True}}), 'SecRequirementCopyData': (b'i^{__SecRequirement=}I^^{__CFData=}', '', {'retval': {'already_cfretained': True}}), 'CMSDecoderCopyEncapsulatedContentType': (b'i^{_CMSDecoder=}^^{__CFData=}', '', {'retval': {'already_cfretained': True}}), 'SecRequirementCreateWithStringAndErrors': (b'i^{__CFString=}I^^{__CFError=}^^{__SecRequirement=}', '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SSLReHandshake': (b'i^{SSLContext=}',), 'SecHostSetGuestStatus': (b'iII^{__CFDictionary=}I',), 'CSSM_TP_RetrieveCredResult': (b'iq^{cssm_data=Q^C}^{cssm_tp_callerauth_context={cssm_tp_policyinfo=I^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}^v}^cI^?I^{cssm_data=Q^C}^{cssm_dl_db_list=I^{cssm_dl_db_handle=qq}}^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}}^i^i^^{cssm_tp_result_set=I^v}',), 'CSSM_UnwrapKeyP': (b'iQ^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}II^{cssm_data=Q^C}^{cssm_resource_control_context=^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}{cssm_acl_entry_input={cssm_acl_entry_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_authorizationgroup=I^i}{cssm_acl_validity_period={cssm_data=Q^C}{cssm_data=Q^C}}[68c]}^?^v}}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}^{cssm_data=Q^C}Q',), 'CSSM_GetContext': (b'iQ^^{cssm_context=III^{cssm_context_attribute=II(cssm_context_attribute_value=*I^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(?=^{cssm_data}^{cssm_encoded_cert}^{cssm_parsed_cert}^{cssm_cert_pair})I^v}}{cssm_samplegroup=I^{cssm_sample}}^?^v}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q*}}^{cssm_data=Q*}I^{cssm_date=[4C][2C][2C]}^{cssm_range=II}^{cssm_crypto_data={cssm_data=Q*}^?^v}^{cssm_version=II}^{cssm_dl_db_handle=qq}{cssm_kr_profile=}^{cssm_kr_profile={cssm_kr_name=CC*}^{cssm_certgroup}^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}^{cssm_data}I^{cssm_data}})(cssm_context_attribute_value=*I^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(?=^{cssm_data}^{cssm_encoded_cert}^{cssm_parsed_cert}^{cssm_cert_pair})I^v}}{cssm_samplegroup=I^{cssm_sample}}^?^v}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q*}}^{cssm_data=Q*}I^{cssm_date=[4C][2C][2C]}^{cssm_range=II}^{cssm_crypto_data={cssm_data=Q*}^?^v}^{cssm_version=II}^{cssm_dl_db_handle=qq}{cssm_kr_profile=}^{cssm_kr_profile={cssm_kr_name=CC*}^{cssm_certgroup}^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}^{cssm_data}I^{cssm_data}})}qiIII}',), 'SSLCopyRequestedPeerName': (b'i^{SSLContext=}^c^Q', '', {'retval': {'already_cfretained': True}}), 'ModuleManagerAuthenticate': (b'iI^{cssm_guid=ISS[8C]}^{cssm_guid=ISS[8C]}^{cssm_manager_registration_info=^?^?^?^?^?^?}',), 'CSSM_KR_CreateRecoveryRequestContext': (b'iI^{cssm_kr_profile={cssm_kr_name=CC^c}^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}C^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}C^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}C^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}^{cssm_data=Q^C}I^{cssm_data=Q^C}}^Q', '', {'retval': {'already_cfretained': True}}), 'SecTransformCreateGroupTransform': (b'@', '', {'retval': {'already_cfretained': True}}), 'CMSDecoderCopySignerCert': (b'i^{_CMSDecoder=}Q^^{OpaqueSecCertificateRef=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_ChangeKeyOwner': (b'iq^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}^{cssm_acl_owner_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i}',), 'CSSM_Terminate': (b'i',), 'SecTrustCopyExceptions': (b'^{__CFData=}^{__SecTrust=}', '', {'retval': {'already_cfretained': True}}), 'SecPolicyCreateSSL': (b'^{OpaqueSecPolicyRef=}Z^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'AuthorizationRightGet': (b'i^c^^{__CFDictionary=}',), 'CSSM_CL_CertGetAllFields': (b'iq^{cssm_data=Q^C}^I^^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}',), 'SecKeychainItemCreateCopy': (b'i^{OpaqueSecKeychainItemRef=}^{OpaqueSecKeychainRef=}^{OpaqueSecAccessRef=}^^{OpaqueSecKeychainItemRef=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_CL_CrlGetAllFields': (b'iq^{cssm_data=Q^C}^I^^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}',), 'SecTransformConnectTransforms': (b'@@^{__CFString=}@^{__CFString=}@^^{__CFError=}', '', {'arguments': {5: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SecAccessCopyACLList': (b'i^{OpaqueSecAccessRef=}^^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_KR_CreateRecoveryRegistrationContext': (b'iI^Q', '', {'retval': {'already_cfretained': True}}), 'SecHostSelectedGuest': (b'iI^I',), 'CSSM_DecryptDataInitP': (b'iQQ',), 'SecAccessCopyMatchingACLList': (b'^{__CFArray=}^{OpaqueSecAccessRef=}@', '', {'retval': {'already_cfretained': True}}), 'CSSM_TP_CertGroupVerify': (b'iqqq^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}^{cssm_tp_verify_context=I{cssm_data=Q^C}{cssm_crlgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_crl=II{cssm_data=Q*}}^{cssm_parsed_crl=II^v}^{cssm_crl_pair={cssm_encoded_crl=II{cssm_data=Q*}}{cssm_parsed_crl=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_crl=II{cssm_data=Q*}}^{cssm_parsed_crl=II^v}^{cssm_crl_pair={cssm_encoded_crl=II{cssm_data=Q*}}{cssm_parsed_crl=II^v}})I}^{cssm_tp_callerauth_context={cssm_tp_policyinfo=I^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}^v}^cI^?I^{cssm_data=Q^C}^{cssm_dl_db_list=I^{cssm_dl_db_handle=qq}}^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}}}^{cssm_tp_verify_context_result=I^{cssm_evidence=I^v}}',), 'SSLCopyCertificateAuthorities': (b'i^{SSLContext=}^^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'SecIdentitySetSystemIdentity': (b'i^{__CFString=}^{OpaqueSecIdentityRef=}',), 'CSSM_ListAttachedModuleManagers': (b'i^I^{cssm_guid=ISS[8C]}',), 'SecKeyGeneratePairAsync': (b'v^{__CFDictionary=}@@?',), 'cssmOidToAlg': (b'B^{cssm_data=Q^C}^I',), 'SecCertificateCopyData': (b'^{__CFData=}^{OpaqueSecCertificateRef=}', '', {'retval': {'already_cfretained': True}}), 'SecKeyGenerateSymmetric': (b'^{OpaqueSecKeyRef=}^{__CFDictionary=}^^{__CFError=}', '', {'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'CSSM_WrapKey': (b'iQ^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}^{cssm_data=Q^C}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}',), 'CMSDecoderCopySignerStatus': (b'i^{_CMSDecoder=}Q@Z^I^^{__SecTrust=}^i', '', {'retval': {'already_cfretained': True}}), 'SecTrustCopyCustomAnchorCertificates': (b'i^{__SecTrust=}^^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'SecCodeCheckValidityWithErrors': (b'i^{__SecCode=}I^{__SecRequirement=}^^{__CFError=}', '', {'arguments': {3: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SecTrustSettingsImportExternalRepresentation': (b'iI^{__CFData=}',), 'CSSM_DigestDataUpdate': (b'iQ^{cssm_data=Q^C}I',), 'SecPolicySetProperties': (b'i^{OpaqueSecPolicyRef=}^{__CFDictionary=}',), 'SecPolicySearchCopyNext': (b'i^{OpaquePolicySearchRef=}^^{OpaqueSecPolicyRef=}', '', {'retval': {'already_cfretained': True}}), 'CMSEncoderSetHasDetachedContent': (b'i^{_CMSEncoder=}Z',), 'CSSM_CL_CertGroupToSignedBundle': (b'iqQ^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}^{cssm_cert_bundle_header=II}^{cssm_data=Q^C}',), 'CSSM_SignDataFinal': (b'iQ^{cssm_data=Q^C}',), 'SecAccessCreateFromOwnerAndACL': (b'i^{cssm_acl_owner_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i}I^{cssm_acl_entry_info={cssm_acl_entry_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_authorizationgroup=I^i}{cssm_acl_validity_period={cssm_data=Q^C}{cssm_data=Q^C}}[68c]}q}^^{OpaqueSecAccessRef=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_DL_GetDbNameFromHandle': (b'i{cssm_dl_db_handle=qq}^^c',), 'SecTrustCreateWithCertificates': (b'i@@^^{__SecTrust=}', '', {'retval': {'already_cfretained': True}}), 'SecHostSetHostingPort': (b'iII',), 'CSSM_CL_IsCertInCachedCrl': (b'iq^{cssm_data=Q^C}q^i^{cssm_data=Q^C}',), 'CSSM_CL_CrlSetFields': (b'iqI^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}^{cssm_data=Q^C}^{cssm_data=Q^C}',), 'SecDecryptTransformGetTypeID': (b'Q', '', {'variadic': True}), 'SecKeychainItemModifyContent': (b'i^{OpaqueSecKeychainItemRef=}^{SecKeychainAttributeList=I^{SecKeychainAttribute=II^v}}I^v',), 'SecACLSetAuthorizations': (b'i^{OpaqueSecTrustRef=}^iI',), 'SecTransformNoData': (b'@',), 'SSLGetNegotiatedCipher': (b'i^{SSLContext=}^I',), 'SecTrustCopyProperties': (b'^{__CFArray=}^{__SecTrust=}', '', {'retval': {'already_cfretained': True}}), 'CMSEncoderGetTypeID': (b'Q',), 'CSSM_SignDataInit': (b'iQ',), 'SecCodeCheckValidity': (b'i^{__SecCode=}I^{__SecRequirement=}',), 'CSSM_CL_CertDescribeFormat': (b'iq^I^^{cssm_data=Q^C}',), 'CSSM_DL_DbDelete': (b'iq^c^{cssm_net_address=I{cssm_data=Q^C}}^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}',), 'SecCertificateSetPreference': (b'i^{OpaqueSecCertificateRef=}^{__CFString=}I^{__CFDate=}',), 'CSSM_CSP_GetLoginAcl': (b'iq^[68c]^I^^{cssm_acl_entry_info={cssm_acl_entry_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_authorizationgroup=I^i}{cssm_acl_validity_period={cssm_data=Q^C}{cssm_data=Q^C}}[68c]}q}',), 'SecIdentityCreateWithCertificate': (b'i@^{OpaqueSecCertificateRef=}^^{OpaqueSecIdentityRef=}', '', {'retval': {'already_cfretained': True}}), 'SecTaskCreateWithAuditToken': (b'^{__SecTask=}^{__CFAllocator=}{_audit_token_t=[8I]}', '', {'retval': {'already_cfretained': True}}), 'SecCertificateCopyValues': (b'^{__CFDictionary=}^{OpaqueSecCertificateRef=}^{__CFArray=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'MDS_Terminate': (b'iq',), 'CSSM_CSP_CreateSymmetricContext': (b'iqII^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}^{cssm_data=Q^C}I^v^Q', '', {'retval': {'already_cfretained': True}}), 'SecKeychainGetPath': (b'i^{OpaqueSecKeychainRef=}^IN^t', '', {'arguments': {1: {'type_modifier': 'N'}, 2: {'c_array_of_variable_length': True}}}), 'AuthorizationCreateFromExternalForm': (b'i^{_AuthorizationExternalForm=[32c]}^^{AuthorizationOpaqueRef=}', '', {'retval': {'already_cfretained': True}}), 'SecKeychainSetDefault': (b'i^{OpaqueSecKeychainRef=}',), 'CMSDecoderUpdateMessage': (b'i^{_CMSDecoder=}^vQ',), 'CMSEncoderCopyEncapsulatedContentType': (b'i^{_CMSEncoder=}^^{__CFData=}', '', {'retval': {'already_cfretained': True}}), 'SSLGetConnection': (b'i^{SSLContext=}^^v',), 'CSSM_RetrieveCounter': (b'iq^{cssm_data=Q^C}',), 'CSSM_CL_PassThrough': (b'iqQI^v^^v',), 'SecKeychainSetUserInteractionAllowed': (b'iZ',), 'CSSM_DL_GetDbOwner': (b'i{cssm_dl_db_handle=qq}^{cssm_acl_owner_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i}',), 'CSSM_CSP_CreatePassThroughContext': (b'iq^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}^Q', '', {'retval': {'already_cfretained': True}}), 'SSLGetPeerID': (b'i^{SSLContext=}^^v^Q',), 'SecTransformCreateReadTransformWithReadStream': (b'@^{__CFReadStream=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_UnwrapKey': (b'iQ^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}II^{cssm_data=Q^C}^{cssm_resource_control_context=^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}{cssm_acl_entry_input={cssm_acl_entry_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_authorizationgroup=I^i}{cssm_acl_validity_period={cssm_data=Q^C}{cssm_data=Q^C}}[68c]}^?^v}}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}^{cssm_data=Q^C}',), 'MDS_Install': (b'iq',), 'SecKeychainSearchGetTypeID': (b'Q',), 'CSSM_TP_CertRevoke': (b'iqqq^{cssm_data=Q^C}^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}^{cssm_tp_verify_context=I{cssm_data=Q^C}{cssm_crlgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_crl=II{cssm_data=Q*}}^{cssm_parsed_crl=II^v}^{cssm_crl_pair={cssm_encoded_crl=II{cssm_data=Q*}}{cssm_parsed_crl=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_crl=II{cssm_data=Q*}}^{cssm_parsed_crl=II^v}^{cssm_crl_pair={cssm_encoded_crl=II{cssm_data=Q*}}{cssm_parsed_crl=II^v}})I}^{cssm_tp_callerauth_context={cssm_tp_policyinfo=I^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}^v}^cI^?I^{cssm_data=Q^C}^{cssm_dl_db_list=I^{cssm_dl_db_handle=qq}}^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}}}^{cssm_tp_verify_context_result=I^{cssm_evidence=I^v}}I^{cssm_data=Q^C}',), 'SecACLCopySimpleContents': (b'i^{OpaqueSecTrustRef=}^^{__CFArray=}^^{__CFString=}^{cssm_acl_keychain_prompt_selector=SS}', '', {'retval': {'already_cfretained': True}}), 'CSSM_VerifyDataUpdate': (b'iQ^{cssm_data=Q^C}I',), 'SecRequirementGetTypeID': (b'Q',), 'SSLCreateContext': (b'^{SSLContext=}^{__CFAllocator=}ii', '', {'retval': {'already_cfretained': True}}), 'CMSEncoderGetHasDetachedContent': (b'i^{_CMSEncoder=}^Z',), 'CSSM_DL_DataGetNext': (b'i{cssm_dl_db_handle=qq}q^{cssm_db_record_attribute_data=III^{cssm_db_attribute_data={cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}I^{cssm_data=Q^C}}}^{cssm_data=Q^C}^^{cssm_db_unique_record={cssm_db_index_info=II{cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}}{cssm_data=Q^C}}',), 'CSSM_DL_DataInsert': (b'i{cssm_dl_db_handle=qq}I^{cssm_db_record_attribute_data=III^{cssm_db_attribute_data={cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}I^{cssm_data=Q^C}}}^{cssm_data=Q^C}^^{cssm_db_unique_record={cssm_db_index_info=II{cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}}{cssm_data=Q^C}}',), 'SSLSetConnection': (b'i^{SSLContext=}^v',), 'CSSM_CSP_CreateSignatureContext': (b'iqI^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}^Q', '', {'retval': {'already_cfretained': True}}), 'SecKeychainRemoveCallback': (b'i^?', '', {'arguments': {0: {'callable': {'retval': {'type': b'i'}, 'arguments': {0: {'type': b'I'}, 1: {'type': b'^{SecKeychainCallbackInfo=I^{OpaqueSecKeychainItemRef=}^{OpaqueSecKeychainRef=}i}'}, 2: {'type': b'^v'}}}}}}), 'SecCertificateCopyPublicKey': (b'i^{OpaqueSecCertificateRef=}^^{OpaqueSecKeyRef=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_DL_DataDelete': (b'i{cssm_dl_db_handle=qq}^{cssm_db_unique_record={cssm_db_index_info=II{cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}}{cssm_data=Q^C}}',), 'SecPolicyCopyProperties': (b'^{__CFDictionary=}^{OpaqueSecPolicyRef=}', '', {'retval': {'already_cfretained': True}}), 'SecKeychainSearchCreateFromAttributes': (b'i@I^{SecKeychainAttributeList=I^{SecKeychainAttribute=II^v}}^^{OpaqueSecKeychainSearchRef=}', '', {'retval': {'already_cfretained': True}}), 'AuthorizationCreate': (b'i^{_AuthorizationRights=I^{_AuthorizationItem=^cQ^vI}}^{_AuthorizationEnvironment=I^{_AuthorizationItem=^cQ^vI}}I^^{AuthorizationOpaqueRef=}', '', {'retval': {'already_cfretained': True}}), 'SecDecodeTransformCreate': (b'@@^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SSLGetProtocolVersionMin': (b'i^{SSLContext=}^i',), 'SSLSetPeerDomainName': (b'i^{SSLContext=}^cQ',), 'SecSignTransformCreate': (b'@^{OpaqueSecKeyRef=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'CSSM_SPI_ModuleLoad': (b'i^{cssm_guid=ISS[8C]}^{cssm_guid=ISS[8C]}^?^v', '', {'arguments': {2: {'callable': {'retval': {'type': b'i'}, 'arguments': {0: {'type': b'^{cssm_guid=ISS[8C]}'}, 1: {'type': b'^v'}, 2: {'type': b'I'}, 3: {'type': b'I'}, 4: {'type': b'I'}}}}}}), 'SecTransformGetTypeID': (b'Q',), 'SecACLGetAuthorizations': (b'i^{OpaqueSecTrustRef=}^i^I',), 'CSSM_DecryptDataP': (b'iQ^{cssm_data=Q^C}I^{cssm_data=Q^C}I^Q^{cssm_data=Q^C}Q',), 'cssmPerror': (b'v^ci',), 'SecCertificateCopyCommonName': (b'i^{OpaqueSecCertificateRef=}^^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'SSLGetSupportedCiphers': (b'i^{SSLContext=}^I^Q',), 'CMSEncoderSetSignerAlgorithm': (b'i^{_CMSEncoder=}^{__CFString=}',), 'SecCertificateAddToKeychain': (b'i^{OpaqueSecCertificateRef=}^{OpaqueSecKeychainRef=}',), 'SecKeyGetBlockSize': (b'Q^{OpaqueSecKeyRef=}',), 'SecIdentityCopyPrivateKey': (b'i^{OpaqueSecIdentityRef=}^^{OpaqueSecKeyRef=}', '', {'retval': {'already_cfretained': True}}), 'CMSEncoderSetEncapsulatedContentType': (b'i^{_CMSEncoder=}^{cssm_data=Q^C}',), 'CMSEncoderAddSupportingCerts': (b'i^{_CMSEncoder=}@',), 'CSSM_KR_PassThrough': (b'iIQQI^v^^v',), 'SecStaticCodeCreateWithPathAndAttributes': (b'i^{__CFURL=}I^{__CFDictionary=}^^{__SecCode=}', '', {'retval': {'already_cfretained': True}}), 'SSLSetMaxDatagramRecordSize': (b'i^{SSLContext=}Q',), 'CSSM_TP_FormRequest': (b'iq^{cssm_tp_authority_id=^{cssm_data=Q^C}^{cssm_net_address=I{cssm_data=Q^C}}}I^{cssm_data=Q^C}',), 'CSSM_DecryptDataInit': (b'iQ',), 'CSSM_CL_CertAbortCache': (b'iqq',), 'CMSDecoderCopySignerTimestamp': (b'i^{_CMSDecoder=}Q^d', '', {'retval': {'already_cfretained': True}}), 'SSLSetDatagramHelloCookie': (b'i^{SSLContext=}^vQ',), 'CSSM_CL_CertVerifyWithKey': (b'iqQ^{cssm_data=Q^C}',), 'SecTaskGetTypeID': (b'Q',), 'SecCertificateCopyPreference': (b'i^{__CFString=}I^^{OpaqueSecCertificateRef=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_VerifyDevice': (b'iq^{cssm_data=Q^C}',), 'CSSM_Introduce': (b'i^{cssm_guid=ISS[8C]}I',), 'SSLGetAllowsExpiredCerts': (b'i^{SSLContext=}^Z',), 'SSLCopyPeerCertificates': (b'i^{SSLContext=}^^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'SSLSetAllowsExpiredCerts': (b'i^{SSLContext=}Z',), 'SSLSetIOFuncs': (b'i^{SSLContext=}^?^?', '', {'arguments': {1: {'callable': {'retval': {'type': b'i'}, 'arguments': {0: {'type': b'^v'}, 1: {'type': b'^v'}, 2: {'type': b'^Q'}}}}, 2: {'callable': {'retval': {'type': b'i'}, 'arguments': {0: {'type': b'^v'}, 1: {'type': b'^v'}, 2: {'type': b'^Q'}}}}}}), 'SecKeychainOpen': (b'i*^^{OpaqueSecKeychainRef=}', '', {'arguments': {1: {'type_modifier': 'o'}}}), 'SecTransformSetAttribute': (b'Z@^{__CFString=}@^^{__CFError=}', '', {'arguments': {3: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SecCodeGetTypeID': (b'Q',), 'SecRequirementCreateWithData': (b'i^{__CFData=}I^^{__SecRequirement=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_CSP_CreateRandomGenContext': (b'iqI^{cssm_crypto_data={cssm_data=Q^C}^?^v}Q^Q', '', {'retval': {'already_cfretained': True}}), 'CSSM_SPI_ModuleUnload': (b'i^{cssm_guid=ISS[8C]}^{cssm_guid=ISS[8C]}^?^v', '', {'arguments': {2: {'callable': {'retval': {'type': b'i'}, 'arguments': {0: {'type': b'^{cssm_guid=ISS[8C]}'}, 1: {'type': b'^v'}, 2: {'type': b'I'}, 3: {'type': b'I'}, 4: {'type': b'I'}}}}}}), 'CSSM_TP_SubmitCredRequest': (b'iq^{cssm_tp_authority_id=^{cssm_data=Q^C}^{cssm_net_address=I{cssm_data=Q^C}}}I^{cssm_tp_request_set=I^v}^{cssm_tp_callerauth_context={cssm_tp_policyinfo=I^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}^v}^cI^?I^{cssm_data=Q^C}^{cssm_dl_db_list=I^{cssm_dl_db_handle=qq}}^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}}^i^{cssm_data=Q^C}',), 'SSLSetProtocolVersionMax': (b'i^{SSLContext=}i',), 'SecKeychainGetStatus': (b'i^{OpaqueSecKeychainRef=}^I', '', {'arguments': {1: {'type_modifier': 'o'}}}), 'CSSM_CL_CrlAddCert': (b'iqQ^{cssm_data=Q^C}I^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}^{cssm_data=Q^C}^{cssm_data=Q^C}',), 'SSLGetClientCertificateState': (b'i^{SSLContext=}^i',), 'CSSM_CL_IsCertInCrl': (b'iq^{cssm_data=Q^C}^{cssm_data=Q^C}^i',), 'CSSM_CL_CertVerify': (b'iqQ^{cssm_data=Q^C}^{cssm_data=Q^C}^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}I',), 'CMSDecoderCopySignerTimestampCertificates': (b'i^{_CMSDecoder=}Q^^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_GetTimeValue': (b'iqI^{cssm_data=Q^C}',), 'SecCodeCopySigningInformation': (b'i^{__SecCode=}I^^{__CFDictionary=}', '', {'retval': {'already_cfretained': True}}), 'SecIdentitySetPreference': (b'i^{OpaqueSecIdentityRef=}^{__CFString=}I',), 'CMSEncoderSetCertificateChainMode': (b'i^{_CMSEncoder=}I',), 'SecAccessControlCreateWithFlags': (b'^{OpaqueSecAccessControl=}^{__CFAllocator=}@Q^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {3: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SecTrustEvaluateAsync': (b'i^{__SecTrust=}@@?',), 'CSSM_CSP_Login': (b'iq^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}^{cssm_data=Q^C}^v',), 'SecTrustGetResult': (b'i^{__SecTrust=}^I^^{__CFArray=}^^{_CSSM_TP_APPLE_EVIDENCE_INFO=II^iI{cssm_dl_db_handle=qq}^{cssm_db_unique_record={cssm_db_index_info=II{cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}}{cssm_data=Q^C}}}',), 'SecHostCreateGuest': (b'iII^{__CFURL=}^{__CFDictionary=}I^I', '', {'retval': {'already_cfretained': True}}), 'CSSM_KR_RecoveryRequest': (b'iQ^{cssm_data=Q^C}^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}^i^q',), 'SecKeychainCopySearchList': (b'i^^{__CFArray=}', '', {'retval': {'already_cfretained': True}, 'arguments': {0: {'type_modifier': 'o'}}}), 'CSSM_TP_ReceiveConfirmation': (b'iq^{cssm_data=Q^C}^^{cssm_tp_confirm_response=I^I}^i',), 'SecTrustSetOptions': (b'i^{__SecTrust=}I',), 'SecCertificateCreateFromData': (b'i^{cssm_data=Q^C}II^^{OpaqueSecCertificateRef=}', '', {'retval': {'already_cfretained': True}}), 'SSLGetNumberEnabledCiphers': (b'i^{SSLContext=}^Q',), 'CSSM_CL_CertGetFirstCachedFieldValue': (b'iqq^{cssm_data=Q^C}^q^I^^{cssm_data=Q^C}',), 'SecIdentityGetTypeID': (b'Q',), 'SecKeychainCopyAccess': (b'i^{OpaqueSecKeychainRef=}^^{OpaqueSecAccessRef=}', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'type_modifier': 'o'}}}), 'SecKeychainFindGenericPassword': (b'i@I^cI^c^I^^v^^{OpaqueSecKeychainItemRef=}',), 'CSSM_VerifyDataFinal': (b'iQ^{cssm_data=Q^C}',), 'cssmAlgToOid': (b'^{cssm_data=Q^C}I',), 'SSLGetProtocolVersionEnabled': (b'i^{SSLContext=}i^Z',), 'CSSM_EncryptDataInitP': (b'iQQ',), 'SecKeyCopyKeyExchangeResult': (b'^{__CFData=}^{OpaqueSecKeyRef=}^{__CFString=}^{OpaqueSecKeyRef=}^{__CFDictionary=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {4: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'CSSM_GenerateKeyPair': (b'iQII^{cssm_data=Q^C}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}II^{cssm_data=Q^C}^{cssm_resource_control_context=^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}{cssm_acl_entry_input={cssm_acl_entry_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_authorizationgroup=I^i}{cssm_acl_validity_period={cssm_data=Q^C}{cssm_data=Q^C}}[68c]}^?^v}}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}',), 'CMSDecoderGetNumSigners': (b'i^{_CMSDecoder=}^Q',), 'SecCertificateCopyPreferred': (b'^{OpaqueSecCertificateRef=}^{__CFString=}^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_DL_ChangeDbOwner': (b'i{cssm_dl_db_handle=qq}^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}^{cssm_acl_owner_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i}',), 'SecACLCreateFromSimpleContents': (b'i^{OpaqueSecAccessRef=}^{__CFArray=}^{__CFString=}^{cssm_acl_keychain_prompt_selector=SS}^^{OpaqueSecTrustRef=}', '', {'retval': {'already_cfretained': True}}), 'SecTrustedApplicationSetData': (b'i^{OpaqueSecTrustedApplicationRef=}^{__CFData=}',), 'SecAccessGetOwnerAndACL': (b'i^{OpaqueSecAccessRef=}^^{cssm_acl_owner_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i}^I^^{cssm_acl_entry_info={cssm_acl_entry_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_authorizationgroup=I^i}{cssm_acl_validity_period={cssm_data=Q^C}{cssm_data=Q^C}}[68c]}q}',), 'CSSM_KR_SetEnterpriseRecoveryPolicy': (b'i^{cssm_data=Q^C}^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}',), 'CMSDecoderFinalizeMessage': (b'i^{_CMSDecoder=}',), 'CSSM_VerifyDataInit': (b'iQ',), 'CSSM_CSP_CreateKeyGenContext': (b'iqII^{cssm_crypto_data={cssm_data=Q^C}^?^v}^{cssm_data=Q^C}^{cssm_date=[4C][2C][2C]}^{cssm_date=[4C][2C][2C]}^{cssm_data=Q^C}^Q', '', {'retval': {'already_cfretained': True}}), 'SecVerifyTransformCreate': (b'@^{OpaqueSecKeyRef=}^{__CFData=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SecPolicyGetTypeID': (b'Q',), 'CSSM_DecryptDataUpdate': (b'iQ^{cssm_data=Q^C}I^{cssm_data=Q^C}I^Q',), 'CMSEncoderCopyEncodedContent': (b'i^{_CMSEncoder=}^^{__CFData=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_DL_DbClose': (b'i{cssm_dl_db_handle=qq}',), 'CMSEncoderAddSigners': (b'i^{_CMSEncoder=}@',), 'SSLSetAllowsAnyRoot': (b'i^{SSLContext=}Z',), 'AuthorizationFree': (b'i^{AuthorizationOpaqueRef=}I',), 'SecAccessCopySelectedACLList': (b'i^{OpaqueSecAccessRef=}i^^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_CL_CrlGetNextCachedFieldValue': (b'iqq^^{cssm_data=Q^C}',), 'SecCopyErrorMessageString': (b'^{__CFString=}i^v', '', {'retval': {'already_cfretained': True}}), 'CMSEncoderCopySigners': (b'i^{_CMSEncoder=}^^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'SecTransformFindByName': (b'@@^{__CFString=}',), 'CSSM_KR_ProcessRecoveryFields': (b'iQQ^{cssm_data=Q^C}I^{cssm_data=Q^C}^Q',), 'CSSM_CL_CertAbortQuery': (b'iqq',), 'SecTrustSettingsCopyModificationDate': (b'i^{OpaqueSecCertificateRef=}I^^{__CFDate=}', '', {'retval': {'already_cfretained': True}}), 'SecKeychainCopyDomainDefault': (b'ii^^{OpaqueSecKeychainRef=}', '', {'retval': {'already_cfretained': True}}), 'SecItemDelete': (b'i^{__CFDictionary=}',), 'SecCodeCopyHost': (b'i^{__SecCode=}I^^{__SecCode=}', '', {'retval': {'already_cfretained': True}}), 'SecTrustedApplicationGetTypeID': (b'Q',), 'SecKeychainAddGenericPassword': (b'i^{OpaqueSecKeychainRef=}I^cI^cI^v^^{OpaqueSecKeychainItemRef=}',), 'CMSDecoderCopySignerTimestampWithPolicy': (b'i^{_CMSDecoder=}@Q^d', '', {'retval': {'already_cfretained': True}}), 'SSLRead': (b'i^{SSLContext=}^vQ^Q',), 'SecTaskCopyValueForEntitlement': (b'@^{__SecTask=}^{__CFString=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'CSSM_VerifyMacInit': (b'iQ',), 'SSLGetDatagramWriteSize': (b'i^{SSLContext=}^Q',), 'SSLSetTrustedRoots': (b'i^{SSLContext=}^{__CFArray=}Z',), 'CSSM_TP_ApplyCrlToDb': (b'iqqq^{cssm_encoded_crl=II{cssm_data=Q^C}}^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}^{cssm_tp_verify_context=I{cssm_data=Q^C}{cssm_crlgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_crl=II{cssm_data=Q*}}^{cssm_parsed_crl=II^v}^{cssm_crl_pair={cssm_encoded_crl=II{cssm_data=Q*}}{cssm_parsed_crl=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_crl=II{cssm_data=Q*}}^{cssm_parsed_crl=II^v}^{cssm_crl_pair={cssm_encoded_crl=II{cssm_data=Q*}}{cssm_parsed_crl=II^v}})I}^{cssm_tp_callerauth_context={cssm_tp_policyinfo=I^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}^v}^cI^?I^{cssm_data=Q^C}^{cssm_dl_db_list=I^{cssm_dl_db_handle=qq}}^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}}}^{cssm_tp_verify_context_result=I^{cssm_evidence=I^v}}',), 'SecIdentitySetPreferred': (b'i^{OpaqueSecIdentityRef=}^{__CFString=}^{__CFArray=}',), 'SecKeychainSetDomainSearchList': (b'ii^{__CFArray=}',), 'SSLSetEnableCertVerify': (b'i^{SSLContext=}Z',), 'SecKeychainItemCopyAccess': (b'i^{OpaqueSecKeychainItemRef=}^^{OpaqueSecAccessRef=}', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'type_modifier': 'o'}}}), 'CSSM_CL_CrlAbortQuery': (b'iqq',), 'CSSM_TP_CertReclaimAbort': (b'iqQ',), 'SSLGetRsaBlinding': (b'i^{SSLContext=}^Z',), 'SecKeychainSetDomainDefault': (b'ii^{OpaqueSecKeychainRef=}',), 'SecDigestTransformGetTypeID': (b'Q', '', {'variadic': True}), 'SecCertificateGetTypeID': (b'Q',), 'SecCertificateCopyShortDescription': (b'^{__CFString=}^{__CFAllocator=}^{OpaqueSecCertificateRef=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SSLCopyRequestedPeerNameLength': (b'i^{SSLContext=}^Q', '', {'retval': {'already_cfretained': True}}), 'CMSEncoderCopySignerTimestamp': (b'i^{_CMSEncoder=}Q^d', '', {'retval': {'already_cfretained': True}}), 'CSSM_KR_CreateRecoveryEnablementContext': (b'iI^{cssm_kr_profile={cssm_kr_name=CC^c}^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}C^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}C^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}C^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}^{cssm_data=Q^C}I^{cssm_data=Q^C}}^{cssm_kr_profile={cssm_kr_name=CC^c}^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}C^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}C^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}C^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}^{cssm_data=Q^C}I^{cssm_data=Q^C}}^Q', '', {'retval': {'already_cfretained': True}}), 'SSLSetClientSideAuthenticate': (b'i^{SSLContext=}i',), 'CSSM_GenerateAlgorithmParams': (b'iQI^{cssm_data=Q^C}',), 'SecCodeCopySelf': (b'iI^^{__SecCode=}', '', {'retval': {'already_cfretained': True}}), 'SSLGetNumberSupportedCiphers': (b'i^{SSLContext=}^Q',), 'CSSM_CL_CrlVerifyWithKey': (b'iqQ^{cssm_data=Q^C}',), 'SecIdentityCopyPreferred': (b'^{OpaqueSecIdentityRef=}^{__CFString=}^{__CFArray=}^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'SecACLUpdateAuthorizations': (b'i^{OpaqueSecTrustRef=}^{__CFArray=}',), 'SecPolicySearchGetTypeID': (b'Q',), 'SecAccessGetTypeID': (b'Q',), 'SecKeychainItemGetTypeID': (b'Q',), 'SSLGetProtocolVersion': (b'i^{SSLContext=}^i',), 'SecTrustSetKeychains': (b'i^{__SecTrust=}@',), 'CSSM_DL_DbOpen': (b'iq^c^{cssm_net_address=I{cssm_data=Q^C}}I^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}^v^q',), 'CSSM_CL_CrlCache': (b'iq^{cssm_data=Q^C}^q',), 'SSLGetProtocolVersionMax': (b'i^{SSLContext=}^i',), 'CSSM_DL_DataGetFromUniqueRecordId': (b'i{cssm_dl_db_handle=qq}^{cssm_db_unique_record={cssm_db_index_info=II{cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}}{cssm_data=Q^C}}^{cssm_db_record_attribute_data=III^{cssm_db_attribute_data={cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}I^{cssm_data=Q^C}}}^{cssm_data=Q^C}',), 'SecKeyCreateDecryptedData': (b'^{__CFData=}^{OpaqueSecKeyRef=}^{__CFString=}^{__CFData=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {3: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'CSSM_GenerateMac': (b'iQ^{cssm_data=Q^C}I^{cssm_data=Q^C}',), 'SecKeyCopyPublicKey': (b'^{OpaqueSecKeyRef=}^{OpaqueSecKeyRef=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_SignDataUpdate': (b'iQ^{cssm_data=Q^C}I',), 'SecGroupTransformGetTypeID': (b'Q',), 'SecKeychainCopySettings': (b'i^{OpaqueSecKeychainRef=}^{SecKeychainSettings=IZZI}', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'type_modifier': 'o'}}}), 'SecTrustSettingsCreateExternalRepresentation': (b'iI^^{__CFData=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_CSP_PassThrough': (b'iQI^v^^v',), 'SecTrustGetTrustResult': (b'i^{__SecTrust=}^I',), 'SSLSetDiffieHellmanParams': (b'i^{SSLContext=}^vQ',), 'SecTrustSettingsRemoveTrustSettings': (b'i^{OpaqueSecCertificateRef=}I',), 'SecPolicySearchCreate': (b'iI^{cssm_data=Q^C}^{cssm_data=Q^C}^^{OpaquePolicySearchRef=}', '', {'retval': {'already_cfretained': True}}), 'SecRequirementCreateWithString': (b'i^{__CFString=}I^^{__SecRequirement=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_GetSubserviceUIDFromHandle': (b'iq^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}',), 'CSSM_DL_PassThrough': (b'i{cssm_dl_db_handle=qq}I^v^^v',), 'SecACLSetSimpleContents': (b'i^{OpaqueSecTrustRef=}^{__CFArray=}^{__CFString=}^{cssm_acl_keychain_prompt_selector=SS}',), 'CSSM_CSP_CreateAsymmetricContext': (b'iqI^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}I^Q', '', {'retval': {'already_cfretained': True}}), 'SecPolicyGetTPHandle': (b'i^{OpaqueSecPolicyRef=}^q',), 'SecKeychainAttributeInfoForItemID': (b'i^{OpaqueSecKeychainRef=}I^^{SecKeychainAttributeInfo=I^I^I}',), 'SecKeyGetCSSMKey': (b'i^{OpaqueSecKeyRef=}^^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}',), 'SecRequirementCopyString': (b'i^{__SecRequirement=}I^^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'SecKeychainFindInternetPassword': (b'i@I^cI^cI^cI^cSII^I^^v^^{OpaqueSecKeychainItemRef=}',), 'SSLWrite': (b'i^{SSLContext=}^vQ^Q',), 'SSLGetNegotiatedProtocolVersion': (b'i^{SSLContext=}^i',), 'CSSM_RetrieveUniqueId': (b'iq^{cssm_data=Q^C}',), 'CSSM_CSP_GetOperationalStatistics': (b'iq^{cssm_csp_operational_statistics=iIIIIIIIII}',), 'SSLSetPeerID': (b'i^{SSLContext=}^vQ',), 'AuthorizationCopyInfo': (b'i^{AuthorizationOpaqueRef=}^c^^{_AuthorizationItemSet=I^{_AuthorizationItem=^cQ^vI}}', '', {'retval': {'already_cfretained': True}}), 'SecTransformCreate': (b'@^{__CFString=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SSLGetEnableCertVerify': (b'i^{SSLContext=}^Z',), 'SecKeychainCopyDomainSearchList': (b'ii^^{__CFArray=}', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'type_modifier': 'o'}}}), 'SecKeyCreateFromData': (b'^{OpaqueSecKeyRef=}^{__CFDictionary=}^{__CFData=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SecTaskCopyValuesForEntitlements': (b'^{__CFDictionary=}^{__SecTask=}^{__CFArray=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SecStaticCodeGetTypeID': (b'Q',), 'SecItemExport': (b'i@II^{_SecItemImportExportKeyParameters=II@^{__CFString=}^{__CFString=}^{OpaqueSecAccessRef=}^{__CFArray=}^{__CFArray=}}^^{__CFData=}',), 'CSSM_CL_CrlDescribeFormat': (b'iq^I^^{cssm_data=Q^C}',), 'MDS_Initialize': (b'i^{cssm_guid=ISS[8C]}^{cssm_memory_funcs=^?^?^?^?^v}^{mds_funcs=^?^?^?^?^?^?^?^?^?^?^?^?^?^?^?}^q',), 'CSSM_TP_CertGetAllTemplateFields': (b'iqq^{cssm_data=Q^C}^I^^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}',), 'SSLSetProtocolVersionMin': (b'i^{SSLContext=}i',), 'SecCertificateCopyLongDescription': (b'^{__CFString=}^{__CFAllocator=}^{OpaqueSecCertificateRef=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'CSSM_CL_CertGroupFromVerifiedBundle': (b'iqQ^{cssm_cert_bundle={cssm_cert_bundle_header=II}{cssm_data=Q^C}}^{cssm_data=Q^C}^^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}',), 'SecKeychainSetAccess': (b'i^{OpaqueSecKeychainRef=}^{OpaqueSecAccessRef=}',), 'CSSM_VerifyMacFinal': (b'iQ^{cssm_data=Q^C}',), 'CSSM_DeriveKey': (b'iQ^{cssm_data=Q^C}II^{cssm_data=Q^C}^{cssm_resource_control_context=^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}{cssm_acl_entry_input={cssm_acl_entry_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_authorizationgroup=I^i}{cssm_acl_validity_period={cssm_data=Q^C}{cssm_data=Q^C}}[68c]}^?^v}}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}',), 'CSSM_DL_DataModify': (b'i{cssm_dl_db_handle=qq}I^{cssm_db_unique_record={cssm_db_index_info=II{cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}}{cssm_data=Q^C}}^{cssm_db_record_attribute_data=III^{cssm_db_attribute_data={cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}I^{cssm_data=Q^C}}}^{cssm_data=Q^C}I',), 'SecKeychainSetSearchList': (b'i^{__CFArray=}',), 'CSSM_CL_CertGetNextFieldValue': (b'iqq^^{cssm_data=Q^C}',), 'CSSM_TP_PassThrough': (b'iqqQ^{cssm_dl_db_list=I^{cssm_dl_db_handle=qq}}I^v^^v',), 'SSLDisposeContext': (b'i^{SSLContext=}',), 'CSSM_TP_CrlSign': (b'iqqQ^{cssm_encoded_crl=II{cssm_data=Q^C}}^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}^{cssm_tp_verify_context=I{cssm_data=Q^C}{cssm_crlgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_crl=II{cssm_data=Q*}}^{cssm_parsed_crl=II^v}^{cssm_crl_pair={cssm_encoded_crl=II{cssm_data=Q*}}{cssm_parsed_crl=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_crl=II{cssm_data=Q*}}^{cssm_parsed_crl=II^v}^{cssm_crl_pair={cssm_encoded_crl=II{cssm_data=Q*}}{cssm_parsed_crl=II^v}})I}^{cssm_tp_callerauth_context={cssm_tp_policyinfo=I^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}^v}^cI^?I^{cssm_data=Q^C}^{cssm_dl_db_list=I^{cssm_dl_db_handle=qq}}^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}}}^{cssm_tp_verify_context_result=I^{cssm_evidence=I^v}}^{cssm_data=Q^C}',), 'SecPolicyCreateWithOID': (b'^{OpaqueSecPolicyRef=}@', '', {'retval': {'already_cfretained': True}}), 'SecTrustSetAnchorCertificatesOnly': (b'i^{__SecTrust=}Z',), 'CSSM_DL_FreeNameList': (b'iq^{cssm_name_list=I^^c}',), 'SecACLCopyAuthorizations': (b'^{__CFArray=}^{OpaqueSecTrustRef=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_DecryptDataFinal': (b'iQ^{cssm_data=Q^C}',), 'SSLGetEnabledCiphers': (b'i^{SSLContext=}^I^Q',), 'SecKeychainGetPreferenceDomain': (b'i^i',), 'SecKeychainGetVersion': (b'i^I', '', {'arguments': {0: {'type_modifier': 'o'}}}), 'SecKeyCreateRandomKey': (b'^{OpaqueSecKeyRef=}^{__CFDictionary=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SSLGetPeerDomainNameLength': (b'i^{SSLContext=}^Q',), 'CSSM_CSP_ChangeLoginOwner': (b'iq^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}^{cssm_acl_owner_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i}',), 'CSSM_DL_CreateRelation': (b'i{cssm_dl_db_handle=qq}I^cI^{cssm_db_schema_attribute_info=I^c{cssm_data=Q^C}I}I^{cssm_db_schema_index_info=IIII}', '', {'retval': {'already_cfretained': True}}), 'CSSM_TP_CertSign': (b'iqqQ^{cssm_data=Q^C}^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}^{cssm_tp_verify_context=I{cssm_data=Q^C}{cssm_crlgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_crl=II{cssm_data=Q*}}^{cssm_parsed_crl=II^v}^{cssm_crl_pair={cssm_encoded_crl=II{cssm_data=Q*}}{cssm_parsed_crl=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_crl=II{cssm_data=Q*}}^{cssm_parsed_crl=II^v}^{cssm_crl_pair={cssm_encoded_crl=II{cssm_data=Q*}}{cssm_parsed_crl=II^v}})I}^{cssm_tp_callerauth_context={cssm_tp_policyinfo=I^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}^v}^cI^?I^{cssm_data=Q^C}^{cssm_dl_db_list=I^{cssm_dl_db_handle=qq}}^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}}}^{cssm_tp_verify_context_result=I^{cssm_evidence=I^v}}^{cssm_data=Q^C}',), 'SecCertificateCopySubjectSummary': (b'^{__CFString=}^{OpaqueSecCertificateRef=}', '', {'retval': {'already_cfretained': True}}), 'CMSDecoderCopySignerEmailAddress': (b'i^{_CMSDecoder=}Q^^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'SecTrustSetOCSPResponse': (b'i^{__SecTrust=}@',), 'SSLSetCertificateAuthorities': (b'i^{SSLContext=}@Z',), 'CSSM_CL_CertSign': (b'iqQ^{cssm_data=Q^C}^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}I^{cssm_data=Q^C}',), 'SecTransformGetAttribute': (b'@@^{__CFString=}',), 'SecACLCreateWithSimpleContents': (b'i^{OpaqueSecAccessRef=}^{__CFArray=}^{__CFString=}S^^{OpaqueSecTrustRef=}', '', {'retval': {'already_cfretained': True}}), 'SecTrustGetTypeID': (b'Q',), 'SecTrustedApplicationCreateFromPath': (b'i^c^^{OpaqueSecTrustedApplicationRef=}', '', {'retval': {'already_cfretained': True}}), 'CMSDecoderCopyDetachedContent': (b'i^{_CMSDecoder=}^^{__CFData=}', '', {'retval': {'already_cfretained': True}}), 'SecTrustGetVerifyTime': (b'd^{__SecTrust=}',), 'SecCertificateGetCLHandle': (b'i^{OpaqueSecCertificateRef=}^q',), 'CSSM_GetKeyOwner': (b'iq^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}^{cssm_acl_owner_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i}',), 'SecIdentityCopyCertificate': (b'i^{OpaqueSecIdentityRef=}^^{OpaqueSecCertificateRef=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_DeleteContextAttributes': (b'iQI^{cssm_context_attribute=II(cssm_context_attribute_value=*I^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(?=^{cssm_data}^{cssm_encoded_cert}^{cssm_parsed_cert}^{cssm_cert_pair})I^v}}{cssm_samplegroup=I^{cssm_sample}}^?^v}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q*}}^{cssm_data=Q*}I^{cssm_date=[4C][2C][2C]}^{cssm_range=II}^{cssm_crypto_data={cssm_data=Q*}^?^v}^{cssm_version=II}^{cssm_dl_db_handle=qq}{cssm_kr_profile=}^{cssm_kr_profile={cssm_kr_name=CC*}^{cssm_certgroup}^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}^{cssm_data}I^{cssm_data}})(cssm_context_attribute_value=*I^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(?=^{cssm_data}^{cssm_encoded_cert}^{cssm_parsed_cert}^{cssm_cert_pair})I^v}}{cssm_samplegroup=I^{cssm_sample}}^?^v}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q*}}^{cssm_data=Q*}I^{cssm_date=[4C][2C][2C]}^{cssm_range=II}^{cssm_crypto_data={cssm_data=Q*}^?^v}^{cssm_version=II}^{cssm_dl_db_handle=qq}{cssm_kr_profile=}^{cssm_kr_profile={cssm_kr_name=CC*}^{cssm_certgroup}^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}^{cssm_data}I^{cssm_data}})}',), 'SecKeychainAddInternetPassword': (b'i^{OpaqueSecKeychainRef=}I^cI^cI^cI^cSIII^v^^{OpaqueSecKeychainItemRef=}',), 'SecKeychainSetSettings': (b'i^{OpaqueSecKeychainRef=}^{SecKeychainSettings=IZZI}',), 'SSLSetAllowsExpiredRoots': (b'i^{SSLContext=}Z',), 'CSSM_CL_CrlVerify': (b'iqQ^{cssm_data=Q^C}^{cssm_data=Q^C}^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}I',), 'CSSM_TP_CrlVerify': (b'iqqq^{cssm_encoded_crl=II{cssm_data=Q^C}}^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}^{cssm_tp_verify_context=I{cssm_data=Q^C}{cssm_crlgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_crl=II{cssm_data=Q*}}^{cssm_parsed_crl=II^v}^{cssm_crl_pair={cssm_encoded_crl=II{cssm_data=Q*}}{cssm_parsed_crl=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_crl=II{cssm_data=Q*}}^{cssm_parsed_crl=II^v}^{cssm_crl_pair={cssm_encoded_crl=II{cssm_data=Q*}}{cssm_parsed_crl=II^v}})I}^{cssm_tp_callerauth_context={cssm_tp_policyinfo=I^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}^v}^cI^?I^{cssm_data=Q^C}^{cssm_dl_db_list=I^{cssm_dl_db_handle=qq}}^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}}}^{cssm_tp_verify_context_result=I^{cssm_evidence=I^v}}',), 'CSSM_AC_PassThrough': (b'iqqqQ^{cssm_dl_db_list=I^{cssm_dl_db_handle=qq}}I^v^^v',), 'CSSM_AC_AuthCompute': (b'iq^{cssm_tuplegroup=I^{_CSSM_TUPLE_PTR={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}}}^{cssm_tuplegroup=I^{_CSSM_TUPLE_PTR={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}}}I^{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_tuplegroup=I^{_CSSM_TUPLE_PTR={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}}}',), 'CSSM_KR_RegistrationRequest': (b'iQ^{cssm_data=Q^C}^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}I^i^q',), 'CSSM_DecryptData': (b'iQ^{cssm_data=Q^C}I^{cssm_data=Q^C}I^Q^{cssm_data=Q^C}',), 'SecEncodeTransformCreate': (b'@@^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SecKeychainFreeAttributeInfo': (b'i^{SecKeychainAttributeInfo=I^I^I}',), 'CSSM_CL_FreeFields': (b'iqI^^{cssm_field={cssm_data=Q^C}{cssm_data=Q^C}}',), 'CSSM_DigestDataClone': (b'iQ^Q',), 'SecTrustCopyPolicies': (b'i^{__SecTrust=}^^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_CSP_CreateDeriveKeyContext': (b'iqIII^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}I^{cssm_data=Q^C}^{cssm_crypto_data={cssm_data=Q^C}^?^v}^Q', '', {'retval': {'already_cfretained': True}}), 'SecKeychainItemModifyAttributesAndData': (b'i^{OpaqueSecKeychainItemRef=}^{SecKeychainAttributeList=I^{SecKeychainAttribute=II^v}}I^v',), 'CSSM_EncryptDataInit': (b'iQ',), 'SecCodeCopyGuestWithAttributes': (b'i^{__SecCode=}^{__CFDictionary=}I^^{__SecCode=}', '', {'retval': {'already_cfretained': True}}), 'SecTrustSetAnchorCertificates': (b'i^{__SecTrust=}^{__CFArray=}',), 'CSSM_DL_DbCreate': (b'iq^c^{cssm_net_address=I{cssm_data=Q^C}}^{cssm_dbinfo=I^{cssm_db_parsing_module_info=I{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}^{cssm_db_record_attribute_info=II^{cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}}^{cssm_db_record_index_info=II^{cssm_db_index_info=II{cssm_db_attribute_info=I(cssm_db_attribute_label=*{cssm_data=Q*}I)(cssm_db_attribute_label=*{cssm_data=Q*}I)I}}}i^c^v}I^{cssm_resource_control_context=^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}{cssm_acl_entry_input={cssm_acl_entry_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_authorizationgroup=I^i}{cssm_acl_validity_period={cssm_data=Q^C}{cssm_data=Q^C}}[68c]}^?^v}}^v^q', '', {'retval': {'already_cfretained': True}}), 'SecKeychainGetTypeID': (b'Q',), 'CSSM_GenerateMacInit': (b'iQ',), 'SecCertificateGetAlgorithmID': (b'i^{OpaqueSecCertificateRef=}^^{cssm_x509_algorithm_identifier={cssm_data=Q^C}{cssm_data=Q^C}}',), 'CSSM_SetPrivilege': (b'iQ',), 'CSSM_GenerateMacUpdate': (b'iQ^{cssm_data=Q^C}I',), 'SecCertificateSetPreferred': (b'i^{OpaqueSecCertificateRef=}^{__CFString=}^{__CFArray=}',), 'SecIdentitySearchCopyNext': (b'i^{OpaqueSecIdentitySearchRef=}^^{OpaqueSecIdentityRef=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_SetContext': (b'iQ^{cssm_context=III^{cssm_context_attribute=II(cssm_context_attribute_value=*I^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(?=^{cssm_data}^{cssm_encoded_cert}^{cssm_parsed_cert}^{cssm_cert_pair})I^v}}{cssm_samplegroup=I^{cssm_sample}}^?^v}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q*}}^{cssm_data=Q*}I^{cssm_date=[4C][2C][2C]}^{cssm_range=II}^{cssm_crypto_data={cssm_data=Q*}^?^v}^{cssm_version=II}^{cssm_dl_db_handle=qq}{cssm_kr_profile=}^{cssm_kr_profile={cssm_kr_name=CC*}^{cssm_certgroup}^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}^{cssm_data}I^{cssm_data}})(cssm_context_attribute_value=*I^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(?=^{cssm_data}^{cssm_encoded_cert}^{cssm_parsed_cert}^{cssm_cert_pair})I^v}}{cssm_samplegroup=I^{cssm_sample}}^?^v}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q*}}^{cssm_data=Q*}I^{cssm_date=[4C][2C][2C]}^{cssm_range=II}^{cssm_crypto_data={cssm_data=Q*}^?^v}^{cssm_version=II}^{cssm_dl_db_handle=qq}{cssm_kr_profile=}^{cssm_kr_profile={cssm_kr_name=CC*}^{cssm_certgroup}^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}C^{cssm_certgroup}^{cssm_data}I^{cssm_data}})}qiIII}',), 'SecKeychainItemCopyAttributesAndData': (b'i^{OpaqueSecKeychainItemRef=}^{SecKeychainAttributeInfo=I^I^I}^I^^{SecKeychainAttributeList=I^{SecKeychainAttribute=II^v}}^I^^v', '', {'retval': {'already_cfretained': True}}), 'CSSM_VerifyMac': (b'iQ^{cssm_data=Q^C}I^{cssm_data=Q^C}',), 'SecKeyGetTypeID': (b'Q',), 'CSSM_GetKeyAcl': (b'iq^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}^[68c]^I^^{cssm_acl_entry_info={cssm_acl_entry_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_authorizationgroup=I^i}{cssm_acl_validity_period={cssm_data=Q^C}{cssm_data=Q^C}}[68c]}q}',), 'CSSM_TP_CertGroupToTupleGroup': (b'iqq^{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}^^{cssm_tuplegroup=I^{_CSSM_TUPLE_PTR={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}{cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}}}',), 'SecItemCopyMatching': (b'i^{__CFDictionary=}^@', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'type_modifier': 'o'}}}), 'SecItemUpdate': (b'i^{__CFDictionary=}^{__CFDictionary=}',), 'CMSDecoderGetTypeID': (b'Q',), 'SecTrustedApplicationCopyData': (b'i^{OpaqueSecTrustedApplicationRef=}^^{__CFData=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_CL_CertGetFirstFieldValue': (b'iq^{cssm_data=Q^C}^{cssm_data=Q^C}^q^I^^{cssm_data=Q^C}',), 'SecKeyUnwrapSymmetric': (b'^{OpaqueSecKeyRef=}^^{__CFData=}^{OpaqueSecKeyRef=}^{__CFDictionary=}^^{__CFError=}', '', {'arguments': {3: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'CSSM_VerifyMacUpdate': (b'iQ^{cssm_data=Q^C}I',), 'SecTaskCopySigningIdentifier': (b'^{__CFString=}^{__SecTask=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SecKeyGetCSPHandle': (b'i^{OpaqueSecKeyRef=}^q',), 'CSSM_GenerateKeyPairP': (b'iQII^{cssm_data=Q^C}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}II^{cssm_data=Q^C}^{cssm_resource_control_context=^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}{cssm_acl_entry_input={cssm_acl_entry_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_authorizationgroup=I^i}{cssm_acl_validity_period={cssm_data=Q^C}{cssm_data=Q^C}}[68c]}^?^v}}^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}Q',), 'SecPolicySetValue': (b'i^{OpaqueSecPolicyRef=}^{cssm_data=Q^C}',), 'SecKeychainCopyDefault': (b'i^^{OpaqueSecKeychainRef=}', '', {'retval': {'already_cfretained': True}, 'arguments': {0: {'type_modifier': 'o'}}}), 'SSLSetEnabledCiphers': (b'i^{SSLContext=}^IQ',), 'SecHostRemoveGuest': (b'iIII',), 'SSLClose': (b'i^{SSLContext=}',), 'CMSEncoderCreate': (b'i^^{_CMSEncoder=}', '', {'retval': {'already_cfretained': True}}), 'SecKeyDeriveFromPassword': (b'^{OpaqueSecKeyRef=}^{__CFString=}^{__CFDictionary=}^^{__CFError=}', '', {'arguments': {2: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SecAccessControlGetTypeID': (b'Q',), 'CSSM_KR_GetRecoveredObject': (b'iIqIq^{cssm_resource_control_context=^{cssm_access_credentials=[68c]{cssm_base_certs=qq{cssm_certgroup=III(_anonymousunion=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})(=^{cssm_data=Q*}^{cssm_encoded_cert=II{cssm_data=Q*}}^{cssm_parsed_cert=II^v}^{cssm_cert_pair={cssm_encoded_cert=II{cssm_data=Q*}}{cssm_parsed_cert=II^v}})I^v}}{cssm_samplegroup=I^{cssm_sample={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}^{cssm_subservice_uid={cssm_guid=ISS[8C]}{cssm_version=II}II}}}^?^v}{cssm_acl_entry_input={cssm_acl_entry_prototype={cssm_list=I^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}^{cssm_list_element=viI(_anonymousunion={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})(={cssm_list=I^{cssm_list_element}^{cssm_list_element}}{cssm_data=Q*})}}i{cssm_authorizationgroup=I^i}{cssm_acl_validity_period={cssm_data=Q^C}{cssm_data=Q^C}}[68c]}^?^v}}I^{cssm_key={cssm_keyheader=I{cssm_guid=ISS[8C]}IIIIIII{cssm_date=[4C][2C][2C]}{cssm_date=[4C][2C][2C]}III}{cssm_data=Q^C}}^{cssm_data=Q^C}',), 'SecKeyCopyAttributes': (b'^{__CFDictionary=}^{OpaqueSecKeyRef=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_CSP_CreateDigestContext': (b'iqI^Q', '', {'retval': {'already_cfretained': True}}), 'SecKeychainSetPreferenceDomain': (b'ii',), 'AuthorizationRightRemove': (b'i^{AuthorizationOpaqueRef=}^c',), 'SecTrustSettingsCopyTrustSettings': (b'i^{OpaqueSecCertificateRef=}I^^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'CSSM_CL_CrlRemoveCert': (b'iq^{cssm_data=Q^C}^{cssm_data=Q^C}^{cssm_data=Q^C}',), 'SecKeyWrapSymmetric': (b'^{__CFData=}^{OpaqueSecKeyRef=}^{OpaqueSecKeyRef=}^{__CFDictionary=}^^{__CFError=}', '', {'arguments': {3: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'SecEncryptTransformCreate': (b'@^{OpaqueSecKeyRef=}^^{__CFError=}', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'CSSM_VerifyData': (b'iQ^{cssm_data=Q^C}II^{cssm_data=Q^C}',), 'AuthorizationCopyRights': (b'i^{AuthorizationOpaqueRef=}^{_AuthorizationRights=I^{_AuthorizationItem=^cQ^vI}}^{_AuthorizationEnvironment=I^{_AuthorizationItem=^cQ^vI}}I^^{_AuthorizationRights=I^{_AuthorizationItem=^cQ^vI}}', '', {'retval': {'already_cfretained': True}}), 'CMSEncodeContent': (b'i@@@ZI^vQ^^{__CFData=}',), 'CSSM_CSP_Logout': (b'iq',)}
aliases = {'CSSM_ACL_AUTHORIZATION_DELETE': 'CSSM_WORDID_DELETE', 'CSSM_ACL_SUBJECT_TYPE_PREAUTH': 'CSSM_WORDID_PREAUTH', 'BER_TAG_TELETEX_STRING': 'BER_TAG_T61_STRING', 'CSSM_ACL_SUBJECT_TYPE_LOGIN_NAME': 'CSSM_WORDID_LOGIN_NAME', 'CSSM_ACL_AUTHORIZATION_SIGN': 'CSSM_WORDID_SIGN', 'CSSM_CSSM_BASE_ERROR': 'CSSM_BASE_ERROR', 'SEC_DEPRECATED_ATTRIBUTE': 'DEPRECATED_ATTRIBUTE', 'CSSM_ALGID_3DES_2KEY': 'CSSM_ALGID_3DES_2KEY_EDE', 'CSSM_ACL_SUBJECT_TYPE_KEYCHAIN_PROMPT': 'CSSM_WORDID_KEYCHAIN_PROMPT', 'CSSM_SAMPLE_TYPE_KEYCHAIN_CHANGE_LOCK': 'CSSM_WORDID_KEYCHAIN_CHANGE_LOCK', 'CSSM_ACL_SUBJECT_TYPE_HASHED_SUBJECT': 'CSSM_WORDID_HASHED_SUBJECT', 'CSSM_SAMPLE_TYPE_PROCESS': 'CSSM_WORDID_PROCESS', 'CSSM_ACL_AUTHORIZATION_DECRYPT': 'CSSM_WORDID_DECRYPT', 'CSSM_X509_OPTION_PRESENT': 'CSSM_TRUE', 'errSSLLast': 'errSSLUnexpectedRecord', 'CSSM_SAMPLE_TYPE_SIGNED_NONCE': 'CSSM_WORDID_SIGNED_NONCE', 'CSSM_ACL_SUBJECT_TYPE_COMMENT': 'CSSM_WORDID_COMMENT', 'CSSM_ACL_AUTHORIZATION_LOGIN': 'CSSM_WORDID_LOGIN', 'CSSM_ACL_AUTHORIZATION_ANY': 'CSSM_WORDID__STAR_', 'CSSM_ACL_AUTHORIZATION_ENCRYPT': 'CSSM_WORDID_ENCRYPT', 'CSSM_SAMPLE_TYPE_ASYMMETRIC_KEY': 'CSSM_WORDID_ASYMMETRIC_KEY', 'errSSLClientAuthCompleted': 'errSSLPeerAuthCompleted', 'CSSM_SAMPLE_TYPE_PROTECTED_BIOMETRIC': 'CSSM_WORDID_PROTECTED_BIOMETRIC', 'CSSM_SAMPLE_TYPE_HASHED_PASSWORD': 'CSSM_WORDID_HASHED_PASSWORD', 'CSSM_ALGID_3DES_3KEY': 'CSSM_ALGID_3DES_3KEY_EDE', 'CSSM_ACL_SUBJECT_TYPE_PARTITION': 'CSSM_WORDID_PARTITION', 'CSSM_ACL_AUTHORIZATION_EXPORT_WRAPPED': 'CSSM_WORDID_EXPORT_WRAPPED', 'CSSM_ACL_AUTHORIZATION_IMPORT_CLEAR': 'CSSM_WORDID_IMPORT_CLEAR', 'CSSM_ACL_AUTHORIZATION_DB_READ': 'CSSM_WORDID_DB_READ', 'CSSM_SAMPLE_TYPE_SIGNED_SECRET': 'CSSM_WORDID_SIGNED_SECRET', 'CSSM_ACL_SUBJECT_TYPE_THRESHOLD': 'CSSM_WORDID_THRESHOLD', 'CSSM_ACL_SUBJECT_TYPE_PUBLIC_KEY': 'CSSM_WORDID_PUBLIC_KEY', 'CSSM_ACL_SUBJECT_TYPE_PREAUTH_SOURCE': 'CSSM_WORDID_PREAUTH_SOURCE', 'CSSM_ACL_AUTHORIZATION_IMPORT_WRAPPED': 'CSSM_WORDID_IMPORT_WRAPPED', 'CSSM_SAMPLE_TYPE_KEYCHAIN_PROMPT': 'CSSM_WORDID_KEYCHAIN_PROMPT', 'errSSLServerAuthCompleted': 'errSSLPeerAuthCompleted', 'OID_DS': 'OID_ISO_CCITT_DIR_SERVICE', 'CSSM_SAMPLE_TYPE_PREAUTH': 'CSSM_WORDID_PREAUTH', 'CSSM_SAMPLE_TYPE_BIOMETRIC': 'CSSM_WORDID_BIOMETRIC', 'CSSM_ACL_AUTHORIZATION_DBS_CREATE': 'CSSM_WORDID_DBS_CREATE', 'CSSM_ALGID_APPLE_YARROW': 'CSSM_ALGID_VENDOR_DEFINED', 'CSSM_SAMPLE_TYPE_COMMENT': 'CSSM_WORDID_COMMENT', 'CSSM_ACL_SUBJECT_TYPE_PASSWORD': 'CSSM_WORDID_PASSWORD', 'CSSM_SAMPLE_TYPE_KEYCHAIN_LOCK': 'CSSM_WORDID_KEYCHAIN_LOCK', 'errSecCSSigDBDenied': 'errSecCSDBDenied', 'CSSM_ACL_SUBJECT_TYPE_BIOMETRIC': 'CSSM_WORDID_BIOMETRIC', 'CSSM_ACL_AUTHORIZATION_DB_DELETE': 'CSSM_WORDID_DB_DELETE', 'CSSM_ACL_SUBJECT_TYPE_PROMPTED_BIOMETRIC': 'CSSM_WORDID_PROMPTED_BIOMETRIC', 'CSSM_ACL_AUTHORIZATION_DB_INSERT': 'CSSM_WORDID_DB_INSERT', 'BER_TAG_VISIBLE_STRING': 'BER_TAG_ISO646_STRING', 'CSSM_ACL_AUTHORIZATION_GENKEY': 'CSSM_WORDID_GENKEY', 'CSSM_ACL_SUBJECT_TYPE_SYMMETRIC_KEY': 'CSSM_WORDID_SYMMETRIC_KEY', 'CSSM_X509_OPTION_NOT_PRESENT': 'CSSM_FALSE', 'CSSM_SAMPLE_TYPE_PROTECTED_PASSWORD': 'CSSM_WORDID_PROTECTED_PASSWORD', 'CSSM_ACL_SUBJECT_TYPE_ANY': 'CSSM_WORDID__STAR_', 'CSSM_ACL_SUBJECT_TYPE_CODE_SIGNATURE': 'CSSM_WORDID_SIGNATURE', 'CSSM_WORDID_KEYCHAIN_PROMPT': 'CSSM_WORDID_VENDOR_START', 'kSecRequirementTypeCount': 'kSecInvalidRequirementType', 'errSecCSSigDBAccess': 'errSecCSDBAccess', 'CSSM_ACL_SUBJECT_TYPE_PROTECTED_PASSWORD': 'CSSM_WORDID_PROTECTED_PASSWORD', 'CSSM_SAMPLE_TYPE_THRESHOLD': 'CSSM_WORDID_THRESHOLD', 'CSSM_ACL_AUTHORIZATION_EXPORT_CLEAR': 'CSSM_WORDID_EXPORT_CLEAR', 'CSSM_SAMPLE_TYPE_PROMPTED_BIOMETRIC': 'CSSM_WORDID_PROMPTED_BIOMETRIC', 'CSSM_SAMPLE_TYPE_PROMPTED_PASSWORD': 'CSSM_WORDID_PROMPTED_PASSWORD', 'CSSM_ACL_SUBJECT_TYPE_ASYMMETRIC_KEY': 'CSSM_WORDID_ASYMMETRIC_KEY', 'CSSM_SAMPLE_TYPE_RETRY_ID': 'CSSM_WORDID_PROPAGATE', 'CSSM_PADDING_APPLE_SSLv2': 'CSSM_PADDING_VENDOR_DEFINED', 'SEC_ASN1_TELETEX_STRING': 'SEC_ASN1_T61_STRING', 'CSSM_ACL_AUTHORIZATION_CHANGE_ACL': 'CSSM_ACL_AUTHORIZATION_TAG_VENDOR_DEFINED_START', 'CSSM_ACL_AUTHORIZATION_DBS_DELETE': 'CSSM_WORDID_DBS_DELETE', 'CSSM_KEYBLOB_RAW_FORMAT_X509': 'CSSM_KEYBLOB_RAW_FORMAT_VENDOR_DEFINED', 'CSSM_SAMPLE_TYPE_PASSWORD': 'CSSM_WORDID_PASSWORD', 'CSSM_ACL_AUTHORIZATION_DB_MODIFY': 'CSSM_WORDID_DB_MODIFY', 'CSSM_ACL_AUTHORIZATION_DERIVE': 'CSSM_WORDID_DERIVE', 'CSSM_ALGID_3DES_1KEY': 'CSSM_ALGID_3DES_3KEY_EEE', 'CSSM_ACL_SUBJECT_TYPE_EXT_PAM_NAME': 'CSSM_WORDID_PAM_NAME', 'CSSM_ACL_SUBJECT_TYPE_PROTECTED_BIOMETRIC': 'CSSM_WORDID_PROTECTED_BIOMETRIC', 'CSSM_SAMPLE_TYPE_SYMMETRIC_KEY': 'CSSM_WORDID_SYMMETRIC_KEY', 'CSSM_ACL_SUBJECT_TYPE_PROMPTED_PASSWORD': 'CSSM_WORDID_PROMPTED_PASSWORD', 'CSSM_ACL_SUBJECT_TYPE_PROCESS': 'CSSM_WORDID_PROCESS', 'CSSM_ACL_AUTHORIZATION_MAC': 'CSSM_WORDID_MAC'}
cftypes=[('SecACLRef', b'^{OpaqueSecTrustRef=}', 'SecACLGetTypeID', None), ('SecAccessControlRef', b'^{OpaqueSecAccessControl=}', 'SecAccessControlGetTypeID', None), ('SecAccessRef', b'^{OpaqueSecAccessRef=}', 'SecAccessGetTypeID', None), ('SecCertificateRef', b'^{OpaqueSecCertificateRef=}', 'SecCertificateGetTypeID', None), ('SecCodeRef', b'^{__SecCode=}', 'SecCodeGetTypeID', None), ('SecIdentityRef', b'^{OpaqueSecIdentityRef=}', 'SecIdentityGetTypeID', None), ('SecIdentitySearchRef', b'^{OpaqueSecIdentitySearchRef=}', 'SecIdentitySearchGetTypeID', None), ('SecKeyRef', b'^{OpaqueSecKeyRef=}', 'SecKeyGetTypeID', None), ('SecKeychainItemRef', b'^{OpaqueSecKeychainItemRef=}', 'SecKeychainItemGetTypeID', None), ('SecKeychainRef', b'^{OpaqueSecKeychainRef=}', 'SecKeychainGetTypeID', None), ('SecKeychainSearchRef', b'^{OpaqueSecKeychainSearchRef=}', 'SecKeychainSearchGetTypeID', None), ('SecPolicyRef', b'^{OpaqueSecPolicyRef=}', 'SecPolicyGetTypeID', None), ('SecPolicySearchRef', b'^{OpaquePolicySearchRef=}', 'SecPolicySearchGetTypeID', None), ('SecRequirementRef', b'^{__SecRequirement=}', 'SecRequirementGetTypeID', None), ('SecStaticCodeRef', b'^{__SecCode=}', 'SecStaticCodeGetTypeID', None), ('SecTaskRef', b'^{__SecTask=}', 'SecTaskGetTypeID', None), ('SecTrustRef', b'^{__SecTrust=}', 'SecTrustGetTypeID', None), ('SecTrustedApplicationRef', b'^{OpaqueSecTrustedApplicationRef=}', 'SecTrustedApplicationGetTypeID', None)]
expressions = {}
# END OF FILE
| 12,514.571429 | 150,497 | 0.823023 | 48,876 | 350,408 | 5.427142 | 0.112612 | 0.067798 | 0.074645 | 0.049793 | 0.495082 | 0.43551 | 0.405592 | 0.390199 | 0.372789 | 0.363987 | 0 | 0.049624 | 0.010913 | 350,408 | 27 | 150,498 | 12,978.074074 | 0.715723 | 0.000268 | 0 | 0.105263 | 1 | 9.789474 | 0.933402 | 0.868936 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0.315789 | 0.315789 | 0.210526 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 11 |
3ee31480cf406e7cca118ff0abd5ee574db3977d | 300,529 | py | Python | tutorial-contents/my_load.py | LishudaNoBug/learning_PyTorch | 1026035a9cb3d70e2fe97363b532e63db3ca136d | [
"MIT"
] | 1 | 2021-05-20T09:30:16.000Z | 2021-05-20T09:30:16.000Z | tutorial-contents/my_load.py | LishudaNoBug/learning_PyTorch | 1026035a9cb3d70e2fe97363b532e63db3ca136d | [
"MIT"
] | null | null | null | tutorial-contents/my_load.py | LishudaNoBug/learning_PyTorch | 1026035a9cb3d70e2fe97363b532e63db3ca136d | [
"MIT"
] | null | null | null | import torch
import matplotlib.pyplot as plt
from numpy import *
"""
我的测试load我自己保存的模型
测试可以
"""
# 留一份原始训练数据
line02 = "LINESTRING(35.82825833333333 34.504146666666664,35.82825833333333 34.504146666666664,35.82499 34.506618333333336,35.82499 34.506618333333336,35.81779 34.51170333333334,35.81044 34.51542333333333,35.80562166666667 34.51744166666667,35.80381 34.518098333333334,35.798633333333335 34.51966,35.79349666666667 34.52065833333333,35.786793333333335 34.521825,35.77884 34.523215,35.77884 34.523215,35.772081666666665 34.523898333333335,35.76739666666667 34.52404833333333,35.76269166666667 34.52390166666667,35.758065 34.523223333333334,35.75339833333334 34.521996666666666,35.729346666666665 34.51399166666667,35.723 34.51198,35.71969333333333 34.510935,35.71841666666667 34.510533333333335,35.7146 34.50933333333333,35.7146 34.50933333333333,35.711435 34.50827666666667,35.710785 34.5081,35.70474166666666 34.50707333333333,35.699236666666664 34.5069,35.69645833333333 34.506865,35.694993333333336 34.506835,35.694293333333334 34.506815,35.68888666666667 34.506638333333335,35.68674166666667 34.50656,35.684673333333336 34.506481666666666,35.67975333333333 34.50633333333333,35.674975 34.50620333333333,35.67283333333334 34.506145,35.66952333333333 34.506038333333336,35.664645 34.50586333333333,35.663893333333334 34.50583833333334,35.659776666666666 34.50570333333334,35.65569333333333 34.50557,35.65293833333333 34.50547666666667,35.651565 34.505425,35.651565 34.505425,35.647423333333336 34.50526833333333,35.64595666666666 34.50519166666667,35.643235 34.505065,35.64115666666667 34.505015,35.639003333333335 34.504965,35.636915 34.5049,35.63351333333333 34.504796666666664,35.63281666666666 34.504775,35.62941 34.504693333333336,35.628645 34.50467666666667,35.62515166666667 34.504585,35.624386666666666 34.50456333333333,35.622366666666665 34.504508333333334,35.620266666666666 34.50445166666667,35.61956333333333 34.50443666666666,35.615365 34.504345,35.614018333333334 34.50431833333333,35.611086666666665 34.50425333333333,35.60975 34.50422833333333,35.604843333333335 34.504125,35.604843333333335 34.504125,35.60064833333333 34.504025,35.60002166666666 34.50401333333333,35.59638666666667 34.503965,35.59583333333333 34.50396333333333,35.59157833333333 34.50393,35.58933833333333 34.503881666666665,35.58933833333333 34.503881666666665,35.585945 34.50384833333333,35.58524666666667 34.503841666666666,35.580976666666665 34.50380833333333,35.576861666666666 34.50379,35.576861666666666 34.50379,35.572716666666665 34.50375,35.572025 34.50374333333333,35.56925833333333 34.50373,35.567881666666665 34.503703333333334,35.563745 34.50362666666667,35.563046666666665 34.50363333333333,35.55898 34.50356333333333,35.55898 34.50356333333333,35.55482666666666 34.503463333333336,35.552845 34.503435,35.549481666666665 34.503391666666666,35.548006666666666 34.503355,35.545363333333334 34.50329333333333,35.542655 34.50322333333333,35.541293333333336 34.503188333333334,35.528558333333336 34.502858333333336,35.527748333333335 34.50282166666667,35.525126666666665 34.502705,35.522423333333336 34.50259833333333,35.52115833333333 34.50257666666667,35.51844166666667 34.50250833333333,35.51717 34.502465,35.514335 34.50231333333333,35.513063333333335 34.50226,35.510405 34.502185,35.509135 34.50212666666667,35.50777333333333 34.50205666666667,35.50644833333333 34.501976666666664,35.50508333333333 34.50188333333333,35.503706666666666 34.50178666666667,35.50181333333333 34.50165833333333,35.50114666666666 34.501603333333335,35.49711166666667 34.501221666666666,35.49637333333333 34.501158333333336,35.494346666666665 34.50096,35.493021666666664 34.50087333333333,35.492288333333335 34.500815,35.48844166666667 34.500515,35.48782166666667 34.50049166666667,35.48433333333333 34.50022333333333,35.48364 34.50015833333333,35.47951 34.49981833333333,35.478903333333335 34.49977333333333,35.474866666666664 34.499446666666664,35.470841666666665 34.49914166666667,35.46610666666667 34.49869833333333,35.46537333333333 34.498646666666666,35.46212333333333 34.49839166666667,35.46076166666667 34.49827833333333,35.45735666666667 34.49799333333333,35.456606666666666 34.497931666666666,35.45321 34.497645,35.45253 34.49758666666666,35.449191666666664 34.497301666666665,35.44781666666667 34.497231666666664,35.44781666666667 34.497231666666664,35.44436833333334 34.49702333333333,35.44376166666667 34.49699666666667,35.439535 34.49668666666667,35.43821666666667 34.496631666666666,35.43472833333333 34.496445,35.43404666666667 34.496395,35.42984666666667 34.49607666666667,35.429296666666666 34.49603666666667,35.42652833333333 34.495871666666666,35.42586 34.49584,35.42525333333333 34.49580666666667,35.42178333333333 34.495596666666664,35.42043 34.495525,35.417645 34.49536833333333,35.41636166666667 34.49529166666667,35.41366 34.49512333333333,35.41231666666667 34.495045,35.40955 34.49489166666667,35.40831333333333 34.494816666666665,35.406666666666666 34.49471666666667,35.40437166666667 34.49458,35.40233166666667 34.49446,35.400305 34.49433666666667,35.39828 34.49420666666666,35.39624666666667 34.494078333333334,35.394146666666664 34.493948333333336,35.39225666666667 34.493838333333336,35.390103333333336 34.49372,35.388155 34.493611666666666,35.386065 34.49349,35.3841 34.49337833333333,35.383356666666664 34.493336666666664,35.38200166666667 34.49326166666667,35.37936833333333 34.49311,35.37735166666667 34.49298666666667,35.37544333333334 34.49286166666667,35.373145 34.49272833333333,35.37186 34.49265666666667,35.36900333333333 34.4925,35.367778333333334 34.492428333333336,35.36642833333333 34.49236166666667,35.364331666666665 34.49221,35.362385 34.49207333333333,35.360285 34.49193666666667,35.35764 34.49178166666667,35.356226666666664 34.491695,35.35359 34.491535,35.352241666666664 34.491438333333335,35.348795 34.491205,35.347515 34.491121666666665,35.34556333333333 34.49099666666667,35.344143333333335 34.49091333333333,35.34339833333333 34.49087333333333,35.34001666666666 34.49069,35.33941166666666 34.490653333333334,35.335993333333334 34.490428333333334,35.335388333333334 34.490385,35.33127666666667 34.490115,35.33127666666667 34.490115,35.327131666666666 34.48986166666667,35.327131666666666 34.48986166666667,35.32308666666667 34.489595,35.32241333333333 34.489551666666664,35.319775 34.489358333333335,35.319028333333335 34.48930333333333,35.31783166666666 34.48917,35.31497666666667 34.48898833333333,35.313741666666665 34.488906666666665,35.312293333333336 34.4888,35.3096 34.48861333333333,35.3096 34.48862,35.30563333333333 34.488335,35.30151 34.48809166666667,35.300155 34.48799666666667,35.29602833333333 34.48770833333333,35.295485 34.48767,35.29143 34.487386666666666,35.29004 34.48730833333333,35.28665 34.487066666666664,35.2874 34.48712333333334,35.28334 34.486825,35.277166666666666 34.486385,35.277166666666666 34.486385,35.27301166666667 34.48607833333333,35.27301166666667 34.48607833333333,35.264583333333334 34.485481666666665,35.263751666666664 34.48542166666667,35.26082666666667 34.485216666666666,35.25886333333333 34.485076666666664,35.256503333333335 34.484878333333334,35.25466 34.48476333333333,35.252665 34.48470666666667,35.250618333333335 34.484675,35.24864 34.48464666666667,35.245185 34.484566666666666,35.244508333333336 34.484548333333336,35.24308333333333 34.48451166666667,35.23981833333333 34.48444333333333,35.23900666666667 34.484431666666666,35.23574833333333 34.48437666666667,35.23499666666667 34.484363333333334,35.23082333333333 34.484298333333335,35.23082333333333 34.484298333333335,35.226735 34.48422166666667,35.22143166666667 34.48414833333333,35.220615 34.484136666666664,35.21733833333333 34.48408166666667,35.21597666666667 34.48405833333333,35.21223833333333 34.48397166666667,35.207771666666666 34.48388833333333,35.204953333333336 34.48383,35.203575 34.483803333333334,35.200915 34.48373333333333,35.20004 34.483715,35.19119666666667 34.483581666666666,35.187105 34.483488333333334,35.18574 34.48345,35.1817 34.48335333333333,35.17742 34.483315,35.176721666666666 34.48330333333333,35.17347 34.48321166666667,35.171976666666666 34.48316833333333,35.16936833333333 34.483095,35.1675 34.48305,35.16434666666667 34.483003333333336,35.16434666666667 34.483003333333336,35.163655 34.48299,35.16238166666667 34.48296666666667,35.15964833333334 34.48290166666666,35.15822 34.482875,35.15555833333333 34.48281333333333,35.15419 34.482776666666666,35.15009833333333 34.48267333333333,35.15009833333333 34.48267333333333,35.145376666666664 34.482548333333334,35.14462666666667 34.48253166666667,35.140605 34.482443333333336,35.139936666666664 34.482418333333335,35.135815 34.48228,35.13380333333333 34.48217833333333,35.129675 34.4821,35.12631833333333 34.48201666666667,35.124985 34.48195166666667,35.12084333333333 34.48175833333333,35.12084333333333 34.48175833333333,35.11672333333333 34.481545,35.110551666666666 34.481233333333336,35.10570666666667 34.480963333333335,35.10012 34.480698333333336,35.099493333333335 34.48064,35.09609666666667 34.48043833333333,35.09207 34.48020833333333,35.089193333333334 34.480061666666664,35.087605 34.47998166666667,35.085071666666664 34.47984,35.080936666666666 34.479641666666666,35.07542 34.47933333333334,35.069905 34.47909666666666,35.073346666666666 34.479243333333336,35.051656666666666 34.478163333333335,35.04673666666667 34.477975,35.040775 34.477601666666665,35.035963333333335 34.47743,35.03138333333333 34.477228333333336,35.02361833333333 34.476695,35.0181 34.476391666666665,35.01879 34.47642333333334,35.01183 34.476085,35.00768333333333 34.475941666666664,35.003425 34.475625,35.000098333333334 34.47544666666667,34.99926333333333 34.475375,34.997386666666664 34.47521666666667,34.995203333333336 34.475116666666665,34.992441666666664 34.475025,34.991075 34.474986666666666,34.98678666666667 34.47485,34.98678666666667 34.47485,34.982643333333336 34.474665,34.982643333333336 34.474665,34.978008333333335 34.474505,34.97376833333333 34.47429666666667,34.97431666666667 34.474325,34.96828333333333 34.474093333333336,34.96828333333333 34.474093333333336,34.963935 34.473888333333335,34.963215 34.47385,34.95914333333333 34.473686666666666,34.95914333333333 34.473686666666666,34.95500166666667 34.47352333333333,34.95500166666667 34.47352333333333,34.950825 34.47343,34.945971666666665 34.473283333333335,34.94110833333333 34.473101666666665,34.94033833333334 34.473083333333335,34.937005 34.472971666666666,34.935476666666666 34.472923333333334,34.93199833333333 34.47281,34.93130333333333 34.47279,34.92652833333333 34.472586666666665,34.92234666666667 34.47228333333333,34.92152 34.47222333333333,34.91771 34.47199166666667,34.91592333333333 34.471851666666666,34.91254 34.471671666666666,34.910196666666664 34.47154166666667,34.9043 34.471175,34.906978333333335 34.47135166666666,34.89098833333333 34.470495,34.88657666666667 34.47011333333333,34.883315 34.469903333333335,34.88262 34.46986166666667,34.877745 34.46957333333334,34.87354666666667 34.469335,34.869193333333335 34.46908666666667,34.86817666666666 34.46904333333333,34.86375 34.468806666666666,34.86375 34.468806666666666,34.859605 34.468575,34.85819 34.4685,34.854035 34.46829,34.85466666666667 34.46832333333333,34.849718333333335 34.468046666666666,34.849718333333335 34.468046666666666,34.844728333333336 34.467815,34.8455 34.467875,34.840475 34.46758,34.840475 34.46758,34.83624666666667 34.467375,34.83201666666667 34.46718166666667,34.83137833333333 34.467151666666666,34.827105 34.467013333333334,34.820751666666666 34.46674333333333,34.818628333333336 34.46665,34.81301166666667 34.4664,34.80451333333333 34.466046666666664,34.800105 34.465925,34.79591666666666 34.465805,34.79591666666666 34.465805,34.791068333333335 34.465608333333336,34.78254 34.465385,34.78254 34.465385,34.778193333333334 34.46528833333333,34.766885 34.46507166666667,34.761851666666665 34.46496666666667,34.757508333333334 34.464843333333334,34.75407833333333 34.464758333333336,34.74903333333334 34.464695,34.74399833333333 34.4647,34.74903333333334 34.464695,34.711173333333335 34.464185,34.711173333333335 34.464185,34.70176166666667 34.46368,34.69612166666667 34.46343,34.691265 34.46319833333333,34.689075 34.46308666666667,34.68492833333333 34.46295666666666,34.68492833333333 34.46295666666666,34.680793333333334 34.46271333333333,34.680793333333334 34.46271333333333,34.67671 34.462473333333335,34.67671 34.462473333333335,34.672466666666665 34.462225,34.672466666666665 34.462225,34.666535 34.46177333333333,34.665935 34.46174,34.665661666666665 34.46171833333333,34.66245333333333 34.461495,34.66245333333333 34.461495,34.658923333333334 34.46107,34.65676333333333 34.46082166666667,34.65676333333333 34.46082166666667,34.65286833333333 34.46060166666667,34.64877666666667 34.46037166666667,34.642245 34.459635,34.644125 34.459788333333336,34.63480333333333 34.45901,34.632826666666666 34.458848333333336,34.630865 34.45867666666667,34.625535 34.45821333333333,34.6216 34.45786666666667,34.617045 34.457501666666666,34.617045 34.457501666666666,34.61828666666667 34.45760166666667,34.608575 34.45679,34.60521166666667 34.45655333333333,34.60129666666667 34.45621833333333,34.60072666666667 34.45614833333333,34.60072666666667 34.45614833333333,34.596001666666666 34.45568333333333,34.58756833333333 34.45480333333333,34.58179 34.45422666666666,34.580443333333335 34.45408666666667,34.577918333333336 34.453853333333335,34.57392 34.453453333333336,34.572113333333334 34.453275,34.567525 34.45279,34.56295 34.45232333333333,34.561658333333334 34.45224833333333,34.558425 34.4519,34.55383333333333 34.451523333333334,34.54815833333333 34.450988333333335,34.54472 34.45066666666666,34.542793333333336 34.450478333333336,34.542793333333336 34.450478333333336,34.53832 34.45009833333334,34.532511666666664 34.449553333333334,34.52741 34.449131666666666,34.52303666666667 34.448765,34.52303666666667 34.448765,34.51894333333333 34.44835666666667,34.51439 34.447968333333336,34.509265 34.447556666666664,34.50457 34.447205,34.503656666666664 34.44713,34.497503333333334 34.44660666666667,34.497503333333334 34.44660666666667,34.48236833333333 34.44549166666667,34.48110833333333 34.445415,34.48236833333333 34.44549166666667,34.477845 34.445191666666666,34.473281666666665 34.444941666666665,34.47069666666667 34.44475166666667,34.469405 34.44468833333333,34.46610833333333 34.444448333333334,34.46546 34.4444,34.46480833333333 34.444355,34.46088833333334 34.44408833333333,34.45699166666667 34.44385166666667,34.455745 34.443776666666665,34.452466666666666 34.443615,34.45112666666667 34.44352833333333,34.44860833333333 34.443371666666664,34.446595 34.44323,34.44469333333333 34.44310333333333,34.44399166666667 34.443068333333336,34.44204 34.44298833333333,34.440075 34.442855,34.43621666666667 34.44267166666667,34.43231 34.44245333333333,34.431628333333336 34.442393333333335,34.427825 34.44218,34.42395333333333 34.441941666666665,34.422621666666664 34.44183666666667,34.41806833333333 34.44161166666667,34.412953333333334 34.441426666666665,34.40843666666667 34.441305,34.40775 34.4413,34.405788333333334 34.44121166666667,34.403865 34.441161666666666,34.40256333333333 34.441201666666664,34.39974333333333 34.440995,34.394825 34.440796666666664,34.39024666666667 34.440675,34.38957833333333 34.440668333333335,34.38688166666667 34.44061166666667,34.385601666666666 34.440555,34.38436166666666 34.44052333333333,34.38169333333333 34.44047333333334,34.380446666666664 34.440425,34.377743333333335 34.440315,34.376595 34.440263333333334,34.37378666666667 34.44016666666667,34.371323333333336 34.44006666666667,34.369933333333336 34.440043333333335,34.36662833333333 34.43999,34.36598 34.43995666666667,34.36598 34.43995666666667,34.36079 34.439843333333336,34.36017666666667 34.439843333333336,34.35631333333333 34.439705,34.35631333333333 34.439705,34.35187166666667 34.43957,34.35036 34.439386666666664,34.34602666666667 34.439305,34.34477166666667 34.43931833333333,34.34361833333333 34.43929,34.33970333333333 34.439085,34.335703333333335 34.438993333333336,34.331286666666664 34.438491666666664,34.328543333333336 34.438516666666665,34.327378333333336 34.43845833333334,34.32273 34.438215,34.31966833333333 34.438045,34.318385 34.43797166666667,34.31453666666667 34.437715,34.31195833333334 34.437565,34.30939333333333 34.43749,34.30818 34.437445,34.30818 34.437445,34.30558666666666 34.437195,34.30172666666667 34.436931666666666,34.29717333333333 34.436675,34.28946 34.436075,34.283678333333334 34.435678333333335,34.276556666666664 34.43517166666667,34.27521 34.435051666666666,34.27265166666667 34.43483166666667,34.271315 34.434715,34.26826333333333 34.43443,34.26826333333333 34.43443,34.267561666666666 34.43436833333333,34.26372166666667 34.43403833333333,34.26372166666667 34.43403833333333,34.259863333333335 34.43369,34.25915833333333 34.433618333333335,34.256025 34.433295,34.250905 34.43279833333333,34.250905 34.43279833333333,34.23865166666667 34.431448333333336,34.23710166666667 34.43127,34.23481666666667 34.431061666666665,34.232443333333336 34.43083166666667,34.22788833333333 34.430345,34.22375666666667 34.42993166666667,34.21826333333333 34.42935166666667,34.215005 34.428985,34.21366666666667 34.428826666666666,34.21108 34.428545,34.209601666666664 34.42838666666667,34.20722 34.42811833333333,34.20478 34.427753333333335,34.203381666666665 34.427695,34.1978 34.427148333333335,34.1978 34.427148333333335,34.1978 34.427148333333335,34.193815 34.426675,34.19394166666667 34.42669,34.18982833333333 34.42619,34.18951 34.42615333333333,34.18591833333333 34.42574833333333,34.185266666666664 34.42567666666667,34.182145 34.425446666666666,34.179566666666666 34.42518666666667,34.17820666666667 34.42517333333333,34.175061666666664 34.424715,34.17453833333333 34.42472166666667,34.170521666666666 34.424861666666665,34.16988666666666 34.42462333333334,34.16901 34.42416,34.164831666666664 34.42428666666667,34.160756666666664 34.42445166666667,34.156713333333336 34.424551666666666,34.15262333333333 34.42449166666667,34.15088166666666 34.424495,34.148125 34.424425,34.14677833333333 34.424215,34.146966666666664 34.424235,34.14313 34.42404166666667,34.130671666666665 34.423705,34.139195 34.423955,34.10749833333333 34.423255,34.096333333333334 34.423091666666664,34.085676666666664 34.422913333333334,34.08358666666667 34.42281833333333,34.06962333333333 34.42239,34.06059333333334 34.42212,34.06163333333333 34.422156666666666,34.05200166666667 34.42181166666666,34.047396666666664 34.42162,34.04485 34.421526666666665,34.04152833333333 34.42142333333334,34.040283333333335 34.421398333333336,34.035065 34.42129333333333,34.03252333333333 34.421211666666665,34.025335 34.42101,34.02073333333333 34.42093166666667,34.02073333333333 34.42093166666667,34.01688 34.42082666666666,34.01688 34.42082666666666,34.01107833333333 34.42071,34.00583833333334 34.420626666666664,34.000515 34.420516666666664,33.99656 34.42044,33.994591666666665 34.42040166666666,33.98932166666667 34.420321666666666,33.98468 34.42029,33.980803333333334 34.42032,33.977578333333334 34.42026,33.97678 34.42024833333333,33.972883333333336 34.420175,33.968808333333335 34.42014833333333,33.96491833333334 34.42010166666667,33.959775 34.420091666666664,33.95694 34.420045,33.954328333333336 34.420051666666666,33.948541666666664 34.420071666666665,33.943063333333335 34.420048333333334,33.938023333333334 34.420095,33.93597166666667 34.42010666666667,33.931378333333335 34.420115,33.9274 34.42013,33.922221666666665 34.420116666666665,33.917695 34.42014,33.91697333333333 34.42014833333333,33.89865833333333 34.41995166666667,33.894708333333334 34.41989,33.88868 34.41981333333333,33.88543333333333 34.41976,33.880763333333334 34.41967666666667,33.875593333333335 34.419626666666666,33.87168166666667 34.419578333333334,33.86776 34.419518333333336,33.863115 34.419448333333335,33.85926833333333 34.41943166666667,33.857328333333335 34.41940666666667,33.85344833333333 34.41932666666667,33.852805 34.41931833333334,33.849465 34.41933,33.84570333333333 34.41921166666667,33.84061166666667 34.419175,33.83940333333334 34.419138333333336,33.83537166666667 34.419066666666666,33.833441666666666 34.41902,33.83150666666667 34.418978333333335,33.80878333333333 34.41876666666667,33.80439333333333 34.418765,33.796635 34.41856,33.79211 34.418495,33.79211 34.418495,33.78617166666667 34.41853833333333,33.78187 34.418463333333335,33.78176166666667 34.418456666666664,33.77762666666667 34.418371666666665,33.77249166666667 34.41823333333333,33.770181666666666 34.418146666666665,33.765816666666666 34.418058333333335,33.76256333333333 34.41793166666667,33.761921666666666 34.41791666666666,33.761921666666666 34.41791666666666,33.75736166666667 34.417885,33.753503333333335 34.41769166666667,33.74963833333333 34.41738,33.747121666666665 34.417185,33.74577333333333 34.417095,33.74255 34.41685833333333,33.74054 34.416718333333336,33.73610166666667 34.416466666666665,33.73085666666667 34.41426666666667,33.728728333333336 34.41408166666667,33.725116666666665 34.41389,33.724783333333335 34.41387,33.720326666666665 34.41542666666667,33.72006833333333 34.41540833333333,33.71640166666667 34.415205,33.712358333333334 34.41495166666667,33.712035 34.41493,33.70854666666666 34.41466666666667,33.705931666666665 34.414498333333334,33.704585 34.414385,33.704585 34.414385,33.700665 34.414141666666666,33.70007 34.41410333333334,33.69550666666667 34.413835,33.69550666666667 34.413835,33.69165 34.413625,33.69034333333333 34.41354833333333,33.68379 34.41314666666667,33.67800833333333 34.412776666666666,33.67601 34.412643333333335,33.67335666666666 34.412443333333336,33.671461666666666 34.41233666666667,33.665686666666666 34.41199833333334,33.66693333333333 34.412058333333334,33.661768333333335 34.41178333333333,33.657875 34.41153166666667,33.65323333333333 34.41126166666667,33.65258166666667 34.411226666666664,33.64865 34.41104333333333,33.64478166666667 34.410803333333334,33.64145166666667 34.41057833333333,33.644135 34.41075333333333,33.62636833333333 34.409616666666665,33.62446666666666 34.409501666666664,33.61259833333333 34.408755,33.60982833333333 34.408575,33.606595 34.40831333333333,33.60531833333334 34.408226666666664,33.60531833333334 34.408226666666664,33.602608333333336 34.408028333333334,33.601345 34.40793333333333,33.59735666666667 34.407626666666665,33.596756666666664 34.407583333333335,33.59338 34.40734666666667,33.588726666666666 34.407005,33.58665666666667 34.406843333333335,33.586125 34.406803333333336,33.58339333333333 34.406596666666665,33.57944333333333 34.40629,33.57871333333333 34.40623333333333,33.574655 34.40593166666667,33.570748333333334 34.405625,33.56943666666667 34.405528333333336,33.565465 34.40519666666667,33.565465 34.40519666666667,33.560785 34.404835,33.55618166666667 34.4045,33.55618166666667 34.4045,33.55148333333333 34.40414666666667,33.55081333333333 34.404095,33.54680333333334 34.40379333333333,33.547405 34.40383833333333,33.537398333333336 34.40308666666667,33.525508333333335 34.402175,33.53143 34.40262333333333,33.53216 34.402676666666665,33.51148666666667 34.401111666666665,33.49612833333333 34.39997666666667,33.49286 34.39973833333333,33.49212833333333 34.399685,33.48893 34.39946166666667,33.485463333333335 34.39921,33.48486166666667 34.399166666666666,33.48486166666667 34.399166666666666,33.478885 34.39870333333333,33.478885 34.39870333333333,33.468155 34.397933333333334,33.466883333333335 34.397841666666665,33.46548333333333 34.39773666666667,33.46355333333333 34.39759,33.46089166666667 34.39738166666667,33.459495 34.39727166666667,33.45556833333333 34.396971666666666,33.454771666666666 34.39691166666667,33.45019166666667 34.396568333333335,33.44555166666667 34.396215,33.44555166666667 34.396215,33.441586666666666 34.39591166666667,33.43887333333333 34.39571333333333,33.43761166666667 34.39563,33.43489833333334 34.395446666666665,33.43233166666667 34.395255,33.42710666666667 34.39485666666667,33.40603333333333 34.39326166666667,33.41129 34.39365,33.37719166666667 34.391193333333334,33.375055 34.391085,33.371185 34.390845,33.36981166666666 34.39075666666667,33.367263333333334 34.39058833333333,33.36660666666667 34.390545,33.364675 34.39039,33.36008666666667 34.390096666666665,33.359433333333335 34.390058333333336,33.35550833333333 34.389805,33.35413166666667 34.389716666666665,33.34962 34.389425,33.34766666666667 34.38929666666667,33.34571666666667 34.38917166666667,33.345055 34.389135,33.341053333333335 34.38888333333333,33.340401666666665 34.38884,33.33647333333333 34.388575,33.335166666666666 34.388486666666665,33.332545 34.38830166666666,33.330641666666665 34.38816833333333,33.327891666666666 34.387985,33.32671333333333 34.387903333333334,33.32671333333333 34.387903333333334,33.324038333333334 34.387723333333334,33.31890166666667 34.38738166666667,33.31818333333333 34.38733666666667,33.31417833333333 34.38707333333333,33.30981 34.386775,33.309095 34.386725,33.305121666666665 34.386473333333335,33.30121166666667 34.386206666666666,33.299908333333335 34.38612,33.296706666666665 34.385913333333335,33.29539833333333 34.38582666666667,33.288113333333335 34.38536666666667,33.288113333333335 34.38536666666667,33.284275 34.38512166666667,33.282845 34.38502666666667,33.2803 34.384861666666666,33.278995 34.384771666666666,33.275005 34.38449833333333,33.27117333333333 34.38424166666667,33.26987 34.38415666666667,33.26987 34.38415666666667,33.26596 34.38389,33.264783333333334 34.383806666666665,33.26014 34.38348666666667,33.262035 34.38361333333334,33.25103166666667 34.38287833333333,33.24907 34.38276333333334,33.248351666666665 34.38272,33.24632 34.382598333333334,33.24369333333333 34.38243833333333,33.24172333333333 34.382315,33.23974833333333 34.382198333333335,33.23784166666667 34.382081666666664,33.23580833333333 34.38196166666667,33.23383666666667 34.381836666666665,33.231941666666664 34.38171833333333,33.22932 34.38156166666667,33.22735333333333 34.381445,33.225386666666665 34.38133166666667,33.22143833333333 34.38112,33.21684166666667 34.38086666666667,33.21618333333333 34.380831666666666,33.208945 34.380445,33.204993333333334 34.38024333333333,33.201053333333334 34.380055,33.198483333333336 34.379918333333336,33.19381166666667 34.37968166666667,33.19132 34.379558333333335,33.19132 34.379558333333335,33.189875 34.379486666666665,33.18665333333333 34.37932,33.18600333333333 34.37929,33.18199 34.37912,33.18199 34.37912,33.178115 34.378948333333334,33.174095 34.37876833333333,33.170795 34.378618333333335,33.170138333333334 34.37858666666666,33.16948333333333 34.378555,33.157756666666664 34.37799166666667,33.157756666666664 34.37799166666667,33.153255 34.37777,33.151945 34.377705,33.14933 34.37757666666667,33.14411666666667 34.37736,33.140213333333335 34.37717166666667,33.13628833333333 34.37699166666667,33.13238666666667 34.37680833333334,33.13174 34.376775,33.12777 34.376595,33.12385333333334 34.37641833333333,33.119953333333335 34.376223333333336,33.116056666666665 34.37602666666667,33.11287166666666 34.375863333333335,33.11087666666667 34.37577666666667,33.109588333333335 34.37571166666667,33.10642333333333 34.375521666666664,33.105713333333334 34.37548,33.10245 34.375295,33.101785 34.37524166666667,33.09851833333333 34.37504166666667,33.09654166666667 34.37493833333333,33.092705 34.37473166666667,33.092705 34.37473166666667,33.092055 34.374695,33.08815166666667 34.374465,33.08425833333333 34.37424333333333,33.08425833333333 34.37424333333333,33.082315 34.37413166666666,33.08043333333333 34.37401333333333,33.07834833333333 34.37388,33.07327 34.373553333333334,33.07191 34.373466666666666,33.069361666666666 34.373286666666665,33.064065 34.372931666666666,33.06019166666667 34.372688333333336,33.05947 34.37264166666667,33.05619 34.372416666666666,33.05619 34.372416666666666,33.05367666666667 34.37221666666667,33.05224333333334 34.372115,33.048276666666666 34.371833333333335,33.042411666666666 34.371401666666664,33.04038666666667 34.371246666666664,33.03642833333333 34.370918333333336,33.03246166666667 34.37058,33.02851666666667 34.370265,33.02063 34.369548333333334,33.02129 34.369605,33.01493 34.37046333333333,32.99935833333333 34.37461666666667,32.995043333333335 34.375791666666665,32.99442 34.37596333333333,32.990745 34.37695333333333,32.99012 34.37712,32.987008333333335 34.37795833333333,32.986383333333336 34.37813,32.98327833333333 34.37898666666667,32.97893333333333 34.380181666666665,32.97707333333334 34.380696666666665,32.97521 34.38121,32.97521 34.38121,32.97148 34.38221166666667,32.96516166666667 34.38391333333333,32.960895 34.38507,32.957256666666666 34.38606,32.957256666666666 34.38606,32.957256666666666 34.38606,32.952911666666665 34.38727166666666,32.953585 34.38708333333334,32.94925 34.388288333333335,32.945591666666665 34.38931,32.94625833333333 34.38912333333333,32.940126666666664 34.390856666666664,32.93824166666667 34.39138833333333,32.93405 34.39257833333333,32.930413333333334 34.393645,32.926746666666666 34.39469666666667,32.922446666666666 34.3959,32.920676666666665 34.396405,32.918171666666666 34.39712,32.914431666666665 34.39816666666667,32.91012666666666 34.399406666666664,32.90644833333333 34.4005,32.90285166666666 34.40157833333333,32.899188333333335 34.402685,32.895496666666666 34.403785,32.89181166666667 34.40485,32.887425 34.40616166666667,32.883245 34.40746166666667,32.88263666666667 34.407653333333336,32.87953666666667 34.40861833333334,32.878855 34.408831666666664,32.87373 34.40976833333333,32.87373 34.40976833333333,32.86915 34.411233333333335,32.85915 34.41498,32.858648333333335 34.415135,32.85438166666667 34.416293333333336,32.85414333333333 34.41646,32.85109333333333 34.417471666666664,32.848265 34.41826833333333,32.84648166666667 34.418778333333336,32.84276666666667 34.419825,32.838503333333335 34.42104166666667,32.83362833333333 34.422428333333336,32.829348333333336 34.42362333333333,32.828606666666666 34.42382833333333,32.823746666666665 34.42511,32.82003666666667 34.42601,32.814483333333335 34.42736166666667,32.81207166666667 34.427945,32.810765 34.428275,32.810765 34.428275,32.810206666666666 34.42841,32.80144833333333 34.43052,32.797195 34.43155333333333,32.79595833333333 34.43186166666667,32.79349666666667 34.432471666666665,32.79349666666667 34.432471666666665,32.79165 34.43291333333333,32.78734333333333 34.433915,32.78296 34.43497333333333,32.78234333333333 34.435116666666666,32.779365 34.435765,32.77560833333333 34.43664833333333,32.77444166666667 34.436926666666665,32.77321166666667 34.43722,32.768973333333335 34.438225,32.764588333333336 34.439276666666665,32.76094666666667 34.440155,32.75666 34.4412,32.756013333333335 34.441356666666664,32.75965333333333 34.44047666666667,32.74561666666666 34.44385833333333,32.74196 34.44473166666667,32.738305 34.44562,32.738305 34.44562,32.73458333333333 34.44655,32.730955 34.44744333333333,32.727306666666664 34.448305,32.723675 34.44920833333333,32.72004666666667 34.450125,32.719503333333336 34.45025833333333,32.71634 34.45099666666667,32.71275833333333 34.451818333333335,32.712225 34.451955,32.70912833333333 34.452685,32.705555 34.4535,32.70180333333333 34.4544,32.70180333333333 34.4544,32.69887333333333 34.45507333333333,32.695166666666665 34.45596666666667,32.693345 34.45641166666667,32.6897 34.457278333333335,32.684268333333335 34.45856333333333,32.68306333333334 34.45885833333333,32.680701666666664 34.459446666666665,32.67605833333333 34.46062,32.672693333333335 34.461465,32.66916833333333 34.46239,32.66555 34.46328333333334,32.66555 34.46328333333334,32.66185 34.464196666666666,32.658255 34.465185,32.65459 34.46613333333333,32.651048333333335 34.46712333333333,32.647443333333335 34.468091666666666,32.646845 34.468255,32.646368333333335 34.46838666666667,32.639678333333336 34.47034166666667,32.635515 34.471448333333335,32.63188 34.472455,32.62947833333333 34.47318,32.62821 34.473533333333336,32.62712666666667 34.473836666666664,32.624635 34.474608333333336,32.62287 34.47505666666667,32.620995 34.47557166666667,32.619328333333335 34.47604333333334,32.617403333333336 34.47658833333333,32.615035 34.47723333333333,32.61376833333333 34.47759166666667,32.61138666666667 34.47826333333333,32.610776666666666 34.478435,32.608895 34.478973333333336,32.60774333333333 34.479305,32.604695 34.480183333333336,32.59916833333333 34.48177166666667,32.59556833333333 34.48281333333333,32.593693333333334 34.483351666666664,32.591166666666666 34.48403166666667,32.587666666666664 34.48516333333333,32.58405666666667 34.48613666666667,32.58038166666667 34.48712333333334,32.576715 34.48809166666667,32.57552333333334 34.488425,32.57552333333334 34.488425,32.57606333333333 34.48827333333333,32.57230333333333 34.489268333333335,32.55642 34.493495,32.555863333333335 34.493665,32.554566666666666 34.49402833333333,32.55025833333333 34.495158333333336,32.546625 34.496125,32.54539166666667 34.496453333333335,32.54293166666667 34.497103333333335,32.541705 34.49743,32.539235 34.49807833333333,32.538 34.498401666666666,32.538 34.498401666666666,32.53549666666667 34.499046666666665,32.53423166666666 34.499361666666665,32.531705 34.5,32.528578333333336 34.50074,32.52482333333333 34.501758333333335,32.520405 34.502865,32.519145 34.503193333333336,32.519145 34.503193333333336,32.51653 34.50382833333333,32.50388 34.50693166666667,32.50388 34.50693166666667,32.50008666666667 34.507866666666665,32.49311 34.50951666666667,32.489905 34.51025666666666,32.488625 34.51055,32.484096666666666 34.51156,32.47965666666666 34.512505,32.47787 34.512888333333336,32.475265 34.513463333333334,32.474 34.513758333333335,32.47024833333333 34.514678333333336,32.46776833333333 34.515278333333335,32.463973333333335 34.516103333333334,32.461391666666664 34.51671,32.461391666666664 34.51671,32.46019166666667 34.516985,32.455895 34.517965,32.45656833333334 34.51782,32.45220666666667 34.518805,32.45220666666667 34.518805,32.44853833333333 34.519635,32.44615 34.520175,32.44433333333333 34.52061,32.44373 34.52075333333333,32.442465 34.52106,32.440673333333336 34.521498333333334,32.438285 34.522075,32.43774833333333 34.52220333333333,32.437095 34.52236,32.433596666666666 34.52323666666667,32.433596666666666 34.52323666666667,32.43114833333333 34.52385833333334,32.429405 34.52431833333333,32.428738333333335 34.524525,32.425848333333334 34.525326666666665,32.425266666666666 34.52547833333333,32.425266666666666 34.52547833333333,32.42184 34.52639666666666,32.42184 34.52639666666666,32.41825333333333 34.527375,32.41825333333333 34.527375,32.41467 34.528351666666666,32.41467 34.528351666666666,32.410536666666665 34.529555,32.410536666666665 34.529555,32.407225 34.530485,32.40398 34.531385,32.40157333333333 34.53209,32.399825 34.532576666666664,32.39513 34.533926666666666,32.393901666666665 34.53431666666667,32.38982333333333 34.535495,32.386825 34.53627,32.386825 34.53627,32.382016666666665 34.53778833333333,32.382016666666665 34.53778833333333,32.377248333333334 34.53920333333333,32.372591666666665 34.540525,32.37132666666667 34.540906666666665,32.368248333333334 34.54175333333333,32.36775 34.541866666666664,32.36416666666667 34.542945,32.358785 34.544405,32.359988333333334 34.54407666666667,32.356451666666665 34.545048333333334,32.35106 34.54651166666667,32.34925 34.54700166666667,32.345576666666666 34.548015,32.343783333333334 34.54849333333333,32.33967666666667 34.54956333333333,32.336585 34.55036166666667,32.33598333333333 34.550518333333336,32.33245 34.55140166666666,32.32999 34.55202,32.32642166666667 34.552881666666664,32.32273166666667 34.55370833333333,32.32273166666667 34.55370833333333,32.31917166666667 34.55447,32.31917166666667 34.55447,32.317901666666664 34.554741666666665,32.31554833333333 34.555265,32.314895 34.55541,32.31193666666667 34.556075,32.311345 34.556205,32.308463333333336 34.556826666666666,32.30781666666667 34.556965,32.304296666666666 34.55773,32.30488166666667 34.55760166666666,32.30079 34.55849166666667,32.301435 34.558348333333335,32.297853333333336 34.559153333333335,32.295495 34.55968166666667,32.294375 34.559936666666665,32.29141166666667 34.56060166666666,32.290823333333336 34.56074666666667,32.287835 34.56152,32.28725166666667 34.561675,32.284348333333334 34.56245,32.28324166666667 34.56274333333333,32.280245 34.563543333333335,32.279718333333335 34.56369,32.279718333333335 34.56369,32.27681166666667 34.56453,32.275533333333335 34.56490333333333,32.27274166666667 34.565715,32.27209833333333 34.56590166666667,32.26851666666666 34.56695166666667,32.26745833333333 34.56726333333334,32.26569833333333 34.56778833333333,32.265051666666665 34.567985,32.26387833333333 34.568345,32.261473333333335 34.569085,32.259845 34.56959833333333,32.25740833333333 34.570375,32.25632 34.570708333333336,32.253985 34.571475,32.25158166666667 34.572225,32.250418333333336 34.572588333333336,32.24759 34.573476666666664,32.246896666666665 34.573695,32.24457833333334 34.574436666666664,32.243535 34.57476666666667,32.24109333333333 34.57548166666667,32.239988333333336 34.57579666666667,32.23653 34.576805,32.232905 34.577846666666666,32.232905 34.577846666666666,32.230601666666665 34.57851333333333,32.22935833333333 34.578873333333334,32.225813333333335 34.57989666666667,32.22528 34.58004833333333,32.222206666666665 34.58092833333333,32.221025 34.581271666666666,32.218698333333336 34.58193333333333,32.21577333333333 34.582753333333336,32.215118333333336 34.58293833333333,32.212268333333334 34.58376,32.212268333333334 34.58376,32.211553333333335 34.58396666666667,32.20863 34.58481333333334,32.207971666666666 34.585,32.20432666666667 34.586043333333336,32.200813333333336 34.587055,32.19962 34.587403333333334,32.19717333333333 34.58810166666667,32.19549 34.58857833333333,32.194828333333334 34.588766666666665,32.193625 34.58911,32.19121833333333 34.58978833333333,32.186971666666665 34.590985,32.186373333333336 34.591155,32.18344 34.59199,32.182246666666664 34.592325,32.179786666666665 34.59301,32.17864333333333 34.59333,32.17623833333333 34.59400333333333,32.17623833333333 34.59400333333333,32.17496833333333 34.59435,32.17496833333333 34.59435,32.17138833333333 34.59531333333333,32.17138833333333 34.59531333333333,32.16769166666667 34.59632833333333,32.166545 34.59664166666666,32.16413166666667 34.597303333333336,32.162926666666664 34.597633333333334,32.159305 34.598618333333334,32.158765 34.59876666666667,32.158165 34.59893,32.155705 34.59959,32.15389833333333 34.60007,32.151545 34.60069333333333,32.14793 34.60165166666667,32.14793 34.60165166666667,32.14424833333333 34.60265833333333,32.14364666666667 34.60282333333333,32.140695 34.603633333333335,32.140035 34.60381833333334,32.140035 34.60381833333334,32.13460166666667 34.60529833333333,32.13032333333334 34.606471666666664,32.126751666666664 34.607443333333336,32.121991666666666 34.60876666666667,32.119463333333336 34.60946166666667,32.118381666666664 34.60976333333333,32.114835 34.610753333333335,32.11118333333334 34.611781666666666,32.107508333333335 34.61282,32.10456166666667 34.61365333333333,32.103365 34.61399333333333,32.10396333333333 34.613823333333336,32.09545166666667 34.616235,32.09370333333333 34.616728333333334,32.09189166666667 34.617245,32.089483333333334 34.61792833333333,32.088275 34.618273333333335,32.08593333333334 34.618945,32.08533166666667 34.61911666666666,32.08467 34.619305,32.08231333333333 34.619975,32.08231333333333 34.619975,32.081041666666664 34.62034833333333,32.07877 34.62101333333333,32.07739333333333 34.62141333333334,32.073836666666665 34.622456666666665,32.073836666666665 34.622456666666665,32.070206666666664 34.62352333333333,32.069665 34.62368333333333,32.06666833333333 34.624583333333334,32.062975 34.62564,32.062445 34.625805,32.05947 34.62676333333334,32.055835 34.62785,32.052233333333334 34.628933333333336,32.04869333333333 34.630001666666665,32.04741 34.630375,32.045001666666664 34.63109,32.04141666666667 34.63218833333333,32.037835 34.633293333333334,32.03724166666667 34.633478333333336,32.034255 34.634411666666665,32.033593333333336 34.634616666666666,32.033593333333336 34.634616666666666,32.03239 34.634993333333334,32.030645 34.635533333333335,32.028861666666664 34.6361,32.028861666666664 34.6361,32.027091666666664 34.636671666666665,32.02415 34.63762666666667,32.023565 34.63782,32.02064166666667 34.63877,32.017645 34.639735,32.016585 34.64007333333333,32.01476 34.64066166666667,32.013133333333336 34.64120333333333,32.012458333333335 34.641435,32.009526666666666 34.642285,32.00652 34.643121666666666,32.00586666666667 34.64330833333333,32.002226666666665 34.64431666666667,31.999795 34.64504,31.996295 34.64605,31.996295 34.64605,31.994041666666668 34.646705,31.992748333333335 34.647088333333336,31.990465 34.64778,31.988703333333333 34.64830833333333,31.985693333333334 34.64920166666667,31.98457 34.64953166666667,31.982173333333332 34.65021,31.980876666666667 34.650551666666665,31.979016666666666 34.651085,31.97734833333333 34.65157333333333,31.976736666666667 34.65175,31.973673333333334 34.652645,31.970226666666665 34.65369,31.969578333333335 34.65388333333333,31.966666666666665 34.65474666666667,31.966086666666666 34.654935,31.965493333333335 34.65509333333333,31.963066666666666 34.65584,31.962415 34.65604166666667,31.961936666666666 34.65618666666666,31.96192 34.65618666666666,31.96122 34.65640166666667,31.95888 34.65709,31.956443333333333 34.65781833333333,31.95531 34.65815833333333,31.951093333333333 34.65938666666667,31.948148333333332 34.66032166666667,31.946308333333334 34.66089,31.946308333333334 34.66089,31.944513333333333 34.661458333333336,31.943308333333334 34.661851666666664,31.942181666666666 34.66217666666667,31.940986666666667 34.662506666666665,31.941003333333335 34.66252166666666,31.940453333333334 34.66266666666667,31.938495 34.66323666666667,31.937946666666665 34.66338666666667,31.93728 34.66357333333333,31.937285 34.66359666666666,31.93506 34.66433333333333,31.93506 34.66433333333333,31.933848333333334 34.66470666666667,31.930165 34.66585166666667,31.92961 34.66601,31.92716666666667 34.66678666666667,31.925423333333335 34.667345,31.924825 34.667516666666664,31.92306 34.668035,31.922458333333335 34.668216666666666,31.9206 34.66878666666667,31.91940333333333 34.669153333333334,31.918866666666666 34.66931833333334,31.91702 34.66988666666666,31.91583 34.67025666666667,31.91464 34.670625,31.912258333333334 34.67136166666667,31.911725 34.671528333333335,31.909883333333333 34.67211,31.90816166666667 34.67265833333333,31.907508333333332 34.672868333333334,31.906355 34.673225,31.904716666666666 34.67375833333333,31.904045 34.67397,31.902253333333334 34.674533333333336,31.901063333333333 34.674905,31.89865 34.67568,31.896803333333335 34.676271666666665,31.896803333333335 34.676271666666665,31.89332 34.67742166666667,31.889611666666667 34.67856333333334,31.88742166666667 34.679315,31.88631833333333 34.67968166666667,31.88631833333333 34.67968166666667,31.88363 34.680526666666665,31.88249666666667 34.680888333333336,31.880093333333335 34.681685,31.87896 34.682045,31.876581666666667 34.682825,31.872986666666666 34.68402666666667,31.87181 34.68443,31.86953 34.685215,31.866618333333335 34.6862,31.866036666666666 34.686395,31.862525 34.687556666666666,31.861796666666667 34.68780666666667,31.859016666666665 34.688736666666664,31.855623333333334 34.68987333333333,31.85217 34.69103,31.85152 34.69124166666667,31.848543333333332 34.692195,31.846111666666665 34.692858333333334,31.844853333333333 34.693195,31.841233333333335 34.69412666666667,31.837536666666665 34.695105,31.833908333333333 34.69604666666667,31.83022 34.69696666666667,31.826706666666666 34.697876666666666,31.823046666666666 34.698813333333334,31.81935 34.69974666666667,31.815756666666665 34.70063833333333,31.815086666666666 34.700808333333335,31.812046666666667 34.701585,31.809675 34.702191666666664,31.808943333333332 34.702385,31.80596 34.703155,31.805291666666665 34.70332666666667,31.804681666666667 34.70348166666667,31.804681666666667 34.70348166666667,31.801633333333335 34.704258333333335,31.801025 34.704415,31.799258333333334 34.70487166666667,31.797975 34.70520166666667,31.79736 34.70536,31.7943 34.70615166666666,31.793686666666666 34.706311666666664,31.793136666666665 34.706455,31.79004 34.70724833333333,31.78817 34.707723333333334,31.786273333333334 34.708195,31.78268 34.709105,31.780185 34.70975833333333,31.778975 34.710073333333334,31.77776 34.71038166666666,31.775331666666666 34.71100333333333,31.774108333333334 34.71132333333333,31.772883333333333 34.711643333333335,31.771721666666668 34.71194666666667,31.7705 34.712268333333334,31.767996666666665 34.71292833333333,31.766778333333335 34.713251666666665,31.766778333333335 34.713251666666665,31.763783333333333 34.71404833333333,31.760126666666668 34.715003333333335,31.759455 34.715178333333334,31.75646 34.71595333333333,31.754626666666667 34.71642,31.75279 34.71689,31.750826666666665 34.717391666666664,31.749718333333334 34.71767833333333,31.749101666666668 34.71783833333333,31.745405 34.718805,31.741773333333335 34.71972,31.73809 34.720661666666665,31.737476666666666 34.720823333333335,31.73436166666667 34.721635,31.733185 34.72194,31.730866666666667 34.72257333333334,31.729571666666665 34.722915,31.727158333333332 34.723545,31.726541666666666 34.72370333333333,31.725861666666667 34.72387666666667,31.722878333333334 34.724626666666666,31.721036666666667 34.72510333333334,31.71911 34.725593333333336,31.715975 34.726366666666664,31.715295 34.72654,31.712275 34.727295,31.710375 34.72777,31.70785 34.72841666666667,31.706628333333335 34.72872666666667,31.70362666666667 34.72946666666667,31.703646666666668 34.72946833333334,31.703003333333335 34.729635,31.700015 34.73038666666667,31.699343333333335 34.73055333333333,31.695608333333332 34.731485,31.695056666666666 34.73162666666666,31.691986666666665 34.73242333333334,31.690755 34.73273833333333,31.688226666666665 34.733375,31.687055 34.733666666666664,31.684605 34.73429,31.68220833333333 34.734901666666666,31.68092 34.73523,31.678525 34.735855,31.67785 34.73602833333333,31.67484333333333 34.73681333333333,31.67484333333333 34.73681333333333,31.674165 34.73699166666667,31.671085 34.73779666666667,31.67040666666667 34.73797166666667,31.668021666666668 34.738575,31.667471666666668 34.73871333333334,31.666801666666668 34.738883333333334,31.663206666666667 34.73981,31.662535 34.739985,31.659563333333335 34.74075666666667,31.655913333333334 34.7417,31.655306666666668 34.741855,31.651596666666666 34.742803333333335,31.64734 34.74389,31.64435 34.744658333333334,31.64379 34.74480666666667,31.640023333333332 34.745705,31.63703 34.746451666666665,31.636361666666666 34.74661666666667,31.634545 34.74707,31.632726666666667 34.747526666666666,31.629766666666665 34.748263333333334,31.628506666666667 34.748585,31.626096666666665 34.74919666666667,31.624896666666668 34.749496666666666,31.622551666666666 34.750076666666665,31.621288333333332 34.750391666666665,31.617148333333333 34.751435,31.615291666666668 34.75190166666667,31.614753333333333 34.75203833333333,31.613558333333334 34.752343333333336,31.609893333333332 34.75328,31.60755 34.75385833333333,31.606351666666665 34.75414333333333,31.603955 34.75474,31.602698333333333 34.755073333333335,31.600433333333335 34.7557,31.599191666666666 34.756005,31.59866 34.756141666666664,31.59688 34.75660666666667,31.595093333333335 34.75707166666667,31.59091 34.7581,31.587325 34.75901833333333,31.585416666666667 34.75951666666667,31.58306 34.76013666666667,31.581951666666665 34.760435,31.58095 34.76070166666667,31.57947 34.76105666666667,31.578203333333335 34.76138,31.575925 34.761965,31.57466 34.762285,31.572253333333332 34.762888333333336,31.570506666666667 34.763326666666664,31.568033333333332 34.763955,31.566886666666665 34.76425,31.563253333333332 34.765161666666664,31.561921666666667 34.7655,31.556 34.76703666666667,31.554123333333333 34.76752166666667,31.54988 34.768613333333334,31.548606666666668 34.76893833333333,31.546283333333335 34.769513333333336,31.54376 34.770158333333335,31.542593333333333 34.770455,31.541248333333332 34.770788333333336,31.53764 34.77171833333333,31.53393 34.772645,31.53344166666667 34.772765,31.52977 34.773671666666665,31.526068333333335 34.77457,31.525451666666665 34.77471666666667,31.524155 34.77503,31.521685 34.775623333333336,31.52045 34.77592,31.512583333333332 34.77776333333333,31.508188333333333 34.778795,31.506865 34.77910333333333,31.504358333333332 34.77968333333333,31.500636666666665 34.780561666666664,31.496081666666665 34.781578333333336,31.492165 34.782446666666665,31.488461666666666 34.783205,31.487788333333334 34.783366666666666,31.48713 34.78351833333333,31.483861666666666 34.784215,31.481435 34.784735,31.480008333333334 34.78504,31.477535 34.785558333333334,31.476146666666665 34.78584166666667,31.472985 34.78648666666667,31.471761666666666 34.78674,31.46853 34.787411666666664,31.46457 34.788241666666664,31.459968333333332 34.789168333333336,31.458726666666667 34.78941666666667,31.45677 34.78981,31.454871666666666 34.790191666666665,31.452846666666666 34.7906,31.452191666666668 34.790728333333334,31.44827666666667 34.791533333333334,31.443753333333333 34.792426666666664,31.443033333333332 34.792566666666666,31.440348333333333 34.793095,31.439111666666665 34.793345,31.435211666666667 34.79414333333333,31.433873333333334 34.79438666666667,31.430018333333333 34.795185,31.428026666666668 34.7956,31.426016666666666 34.79605333333333,31.424635 34.796348333333334,31.42339 34.79661,31.422148333333332 34.79687166666667,31.41683 34.79804,31.413995 34.79853833333333,31.412676666666666 34.79882166666667,31.410186666666668 34.79940833333333,31.408073333333334 34.799861666666665,31.403535 34.80085666666667,31.402173333333334 34.801161666666665,31.39910666666667 34.801883333333336,31.398298333333333 34.80201666666667,31.398293333333335 34.802,31.395005 34.802733333333336,31.393693333333335 34.803025,31.390481666666666 34.80374,31.389828333333334 34.80389,31.387745 34.80437666666667,31.385208333333335 34.804968333333335,31.383906666666668 34.80527333333333,31.381245 34.805883333333334,31.377443333333332 34.806783333333335,31.374875 34.80741,31.373518333333333 34.807735,31.369706666666666 34.80864,31.367121666666666 34.80925,31.365773333333333 34.809553333333334,31.363306666666666 34.810105,31.36195 34.810401666666664,31.360133333333334 34.8108,31.358051666666668 34.81129333333333,31.356203333333333 34.81173,31.354078333333334 34.81225,31.352313333333335 34.812711666666665,31.349681666666665 34.813386666666666,31.34839 34.813705,31.343363333333333 34.81500166666667,31.340001666666666 34.81587833333333,31.334806666666665 34.817231666666665,31.33102166666667 34.818221666666666,31.325876666666666 34.81956666666667,31.321938333333332 34.82058333333333,31.319413333333333 34.82122666666667,31.317501666666665 34.821758333333335,31.314228333333332 34.822631666666666,31.309146666666667 34.82398666666667,31.305341666666667 34.82498833333333,31.303343333333334 34.82550666666667,31.301411666666667 34.826011666666666,31.29762 34.826996666666666,31.29762 34.826996666666666,31.293721666666666 34.828025,31.293148333333335 34.828176666666664,31.28931 34.829211666666666,31.288606666666666 34.8294,31.285456666666665 34.83022666666667,31.284873333333334 34.830376666666666,31.2828 34.830913333333335,31.28157 34.83123333333333,31.279635 34.831736666666664,31.275783333333333 34.83275666666667,31.27508 34.83294166666666,31.271173333333333 34.833956666666666,31.269955 34.83427666666667,31.266106666666666 34.83529166666667,31.262266666666665 34.83631,31.258371666666665 34.83734666666667,31.257153333333335 34.837666666666664,31.253995 34.83849333333333,31.253288333333334 34.838678333333334,31.249448333333333 34.83968333333333,31.248805 34.83985333333333,31.244973333333334 34.840871666666665,31.24178 34.841745,31.241141666666667 34.84192,31.237308333333335 34.842945,31.23539 34.843448333333335,31.232811666666667 34.84415,31.23089 34.84468,31.227741666666667 34.845531666666666,31.227163333333333 34.845686666666666,31.222615 34.846918333333335,31.218775 34.847968333333334,31.214378333333332 34.849228333333336,31.210473333333333 34.850335,31.206566666666667 34.85140833333333,31.203788333333332 34.852175,31.2014 34.852815,31.19949 34.853343333333335,31.195703333333334 34.85440333333333,31.192481666666666 34.85527,31.190485 34.855801666666665,31.186541666666667 34.85686166666667,31.182685 34.857925,31.181595 34.858223333333335,31.17884 34.85898,31.173851666666668 34.860348333333334,31.169951666666666 34.861403333333335,31.167388333333335 34.86209,31.165465 34.862611666666666,31.162266666666667 34.863503333333334,31.160925 34.863883333333334,31.157175 34.86492833333333,31.153283333333334 34.865993333333336,31.15213333333333 34.86631333333333,31.148905 34.86722,31.148335 34.86738166666667,31.143813333333334 34.86864833333333,31.141836666666666 34.86920166666667,31.138721666666665 34.870086666666666,31.134265 34.87135,31.131091666666666 34.87225166666666,31.12666 34.873513333333335,31.123485 34.874405,31.121743333333335 34.87492833333334,31.119868333333333 34.875465,31.117335 34.87618,31.114155 34.877071666666666,31.111621666666668 34.87779833333333,31.10277 34.88036833333334,31.095838333333333 34.88234166666667,31.09521 34.882525,31.092141666666667 34.88343,31.091021666666666 34.883765,31.088313333333332 34.88455833333333,31.08207 34.88635166666667,31.078255 34.88748666666667,31.07769 34.88765333333333,31.074491666666667 34.88858666666667,31.07017 34.88986833333333,31.068973333333332 34.89021666666667,31.06514 34.89133833333333,31.060775 34.89263833333333,31.057041666666667 34.893765,31.05648 34.89393333333334,31.05272666666667 34.89503333333333,31.048695 34.8962,31.044943333333332 34.897326666666665,31.041188333333334 34.89846166666667,31.036951666666667 34.899765,31.033001666666667 34.90092666666666,31.031765 34.901271666666666,31.02943 34.90196666666667,31.027498333333334 34.90255166666667,31.025695 34.90309833333333,31.02197 34.904235,31.020603333333334 34.904653333333336,31.018248333333332 34.90538,31.014468333333333 34.906545,31.013846666666666 34.906735,31.010781666666666 34.90764166666666,31.010781666666666 34.90764166666666,31.000048333333332 34.910621666666664,30.999423333333333 34.91079666666667,30.998796666666667 34.91097166666667,30.995043333333335 34.91200833333333,30.991355 34.91303666666666,30.99079 34.91319333333333,30.98564 34.91462166666667,30.980556666666665 34.916035,30.976796666666665 34.917078333333336,30.973133333333333 34.91811666666667,30.967508333333335 34.91963833333333,30.967508333333335 34.91963833333333,30.963666666666665 34.920665,30.95744 34.92236833333333,30.95373 34.923395,30.9499 34.92445,30.946203333333333 34.925468333333335,30.929908333333334 34.92998333333333,30.903248333333334 34.93747833333333,30.147813333333332 35.13128,30.09904 35.14616,30.06632 35.15434666666667,29.964613333333332 35.179226666666665,29.954053333333334 35.181866666666664,29.75674666666667 35.23690666666667,29.723226666666665 35.24672,29.701226666666667 35.25288,29.6804 35.25834666666667,29.66472 35.26232,29.664133333333332 35.26248,29.663493333333335 35.26264,29.591786666666668 35.28066666666667,29.5912 35.2808,29.273733333333332 35.36472,29.0216 35.42858666666667,28.967553333333335 35.442123333333335,28.930426666666666 35.45173333333334,28.886533333333333 35.46333333333333,28.872178333333334 35.467216666666666,28.850675 35.472925,28.84697 35.47393,28.843135 35.47496666666667,28.839408333333335 35.47595333333334,28.835655 35.477005,28.806213333333332 35.48506666666667,28.831831666666666 35.47810166666667,28.70799 35.512278333333335,28.700068333333334 35.514273333333335,28.69509 35.51546833333333,28.690858333333335 35.516445,28.68599 35.51751333333333,28.681638333333332 35.51852,28.677425 35.519466666666666,28.673103333333334 35.520435,28.66936 35.52128,28.668216666666666 35.52156333333333,28.664536666666667 35.52240666666667,28.659523333333333 35.52349666666667,28.6552 35.52438166666666,28.649813333333334 35.52549333333333,28.646053333333334 35.526268333333334,28.64174 35.527123333333336,28.63804 35.52782666666667,28.634335 35.528553333333335,28.630645 35.52930833333333,28.626941666666667 35.53003,28.623308333333334 35.53069,28.61891 35.531525,28.61347 35.53265833333333,28.608565 35.53365333333333,28.604988333333335 35.534325,28.600733333333334 35.535221666666665,28.59719 35.536031666666666,28.59361 35.53672,28.589935 35.53749833333333,28.589328333333334 35.53761166666666,28.58744 35.53799166666667,28.582655 35.53882,28.578431666666667 35.53969333333333,28.575001666666665 35.54051333333334,28.571516666666668 35.54136666666667,28.568023333333333 35.54226666666667,28.564481666666666 35.543146666666665,28.559926666666666 35.544201666666666,28.552461666666666 35.54606666666667,28.549006666666667 35.546905,28.544436666666666 35.54805666666667,28.540366666666667 35.54902666666667,28.53634 35.550021666666666,28.531841666666665 35.55117333333333,28.528431666666666 35.55198,28.525048333333334 35.55282666666667,28.52119666666667 35.55386166666667,28.517853333333335 35.554721666666666,28.514465 35.55568,28.509373333333333 35.55702333333333,28.506011666666666 35.557905,28.502653333333335 35.55878666666667,28.499351666666666 35.559623333333334,28.495406666666668 35.560615,28.49039 35.56194333333333,28.482636666666668 35.56388666666667,28.478696666666668 35.564863333333335,28.474853333333332 35.565848333333335,28.47113166666667 35.566871666666664,28.467806666666668 35.567748333333334,28.463338333333333 35.56892,28.459595 35.569903333333336,28.458988333333334 35.57006333333333,28.455665 35.57096,28.45236166666667 35.57190166666667,28.451865 35.57203666666667,28.446923333333334 35.573373333333336,28.445723333333333 35.57369833333333,28.44364 35.57425833333333,28.442443333333333 35.574565,28.44037 35.575116666666666,28.437045 35.57600333333333,28.43316 35.57700166666667,28.432665 35.577128333333334,28.429315 35.57802,28.42882 35.57815166666666,28.42496166666667 35.579175,28.424413333333334 35.579325,28.42055 35.580313333333336,28.42055 35.580313333333336,28.416118333333333 35.581428333333335,28.415621666666667 35.58155333333333,28.412718333333334 35.582276666666665,28.40938 35.58313166666667,28.401625 35.58504166666667,28.397643333333335 35.58602166666667,28.393236666666667 35.58702,28.389268333333334 35.58782,28.38478 35.588741666666664,28.38080666666667 35.58956,28.376405 35.590561666666666,28.372968333333333 35.591271666666664,28.37246 35.591348333333336,28.369046666666666 35.59201,28.3652 35.592908333333334,28.360658333333333 35.593885,28.359591666666667 35.59408,28.356721666666665 35.59462666666667,28.353416666666668 35.59533166666667,28.349993333333334 35.596065,28.34842 35.59639333333333,28.345551666666665 35.59699833333333,28.343855 35.597325,28.34161 35.59778,28.339366666666667 35.59827,28.337101666666666 35.598708333333335,28.334838333333334 35.59914333333333,28.332576666666668 35.599555,28.33029833333333 35.599898333333336,28.328051666666667 35.600335,28.326935 35.600563333333334,28.312685 35.60400666666666,28.309401666666666 35.60489166666667,28.305596666666666 35.60591,28.301645 35.606883333333336,28.297901666666668 35.60789333333334,28.294483333333332 35.60884166666666,28.293506666666666 35.60914,28.289588333333334 35.610335,28.285753333333332 35.61141,28.285213333333335 35.61156833333333,28.281966666666666 35.61253,28.280403333333332 35.612986666666664,28.278211666666667 35.613661666666665,28.276708333333332 35.61411,28.274968333333334 35.614555,28.271688333333334 35.61541166666667,28.268423333333335 35.61629,28.26466 35.617308333333334,28.262486666666668 35.61788833333333,28.261398333333332 35.61817,28.257501666666666 35.61916,28.25647 35.61944333333334,28.253125 35.62029166666667,28.252078333333333 35.62054666666667,28.248816666666666 35.62136666666667,28.248263333333334 35.62151,28.24491 35.62239666666667,28.244361666666666 35.622546666666665,28.241548333333334 35.623286666666665,28.24051 35.62357333333333,28.237198333333332 35.624455,28.233363333333333 35.625515,28.23281 35.62565333333333,28.230021666666666 35.62640666666667,28.228431666666665 35.62684,28.226301666666668 35.62741166666667,28.22460166666667 35.62784166666667,28.22235166666667 35.628415,28.220166666666668 35.629005,28.21907 35.62929,28.21638 35.63001166666667,28.2148 35.63045666666667,28.211531666666666 35.63137,28.210333333333335 35.631701666666665,28.207666666666668 35.63245,28.206511666666668 35.632751666666664,28.204375 35.633311666666664,28.202683333333333 35.633768333333336,28.198913333333333 35.63480166666667,28.19995 35.63451666666667,28.195036666666667 35.63587833333333,28.195638333333335 35.63571,28.191783333333333 35.636828333333334,28.187446666666666 35.638055,28.183631666666667 35.639138333333335,28.183631666666667 35.639138333333335,28.180381666666666 35.640101666666666,28.179351666666665 35.64040166666667,28.176153333333332 35.64131166666667,28.176153333333332 35.64131166666667,28.17234 35.642385,28.17282833333333 35.64225666666667,28.168438333333334 35.64339,28.169035 35.643235,28.164698333333334 35.64440333333334,28.165241666666667 35.64425833333333,28.16086 35.64546833333333,28.158715 35.64610166666667,28.155515 35.646993333333334,28.151676666666667 35.648048333333335,28.149508333333333 35.648645,28.148413333333334 35.648935,28.145195 35.64980833333333,28.145195 35.64980833333333,28.141886666666668 35.65072333333333,28.141886666666668 35.65072333333333,28.138201666666667 35.651735,28.138201666666667 35.651735,28.13437 35.65280333333333,28.13437 35.65280333333333,28.129996666666667 35.65401,28.129996666666667 35.65401,28.12675 35.65491166666666,28.126208333333334 35.65506333333333,28.123498333333334 35.655805,28.122475 35.65609833333333,28.11860666666667 35.657091666666666,28.11860666666667 35.657091666666666,28.114803333333334 35.65812666666667,28.09152 35.664728333333336,28.08755 35.66587166666667,28.083653333333334 35.666995,28.08314 35.667141666666666,28.079135 35.668326666666665,28.075213333333334 35.66952333333333,28.072401666666668 35.670366666666666,28.071281666666668 35.670701666666666,28.06847 35.671553333333335,28.06729 35.67191833333333,28.063901666666666 35.67295333333333,28.062825 35.67328,28.05874 35.67452333333333,28.055363333333332 35.67555,28.05194 35.67661833333333,28.050858333333334 35.676955,28.05029 35.67713333333333,28.045733333333335 35.678565,28.042281666666668 35.679651666666665,28.03892 35.680745,28.035465 35.68183666666667,28.032613333333334 35.68275666666667,28.030945 35.683278333333334,28.026326666666666 35.68475333333333,28.02512 35.68514833333333,28.020601666666668 35.68666,28.01597 35.688208333333336,28.009605 35.690306666666665,28.005633333333332 35.691631666666666,27.999796666666665 35.69361166666667,27.99356166666667 35.69576,27.990195 35.69690833333333,27.986816666666666 35.698026666666664,27.985745 35.698375,27.983455 35.69913833333333,27.983455 35.69913833333333,27.97963 35.70044333333333,27.975676666666665 35.70178666666666,27.97456 35.70216,27.971245 35.703271666666666,27.967931666666665 35.70442333333333,27.965836666666668 35.705178333333336,27.963786666666667 35.70592,27.963246666666667 35.706111666666665,27.959443333333333 35.70744666666667,27.95557833333333 35.708805,27.95557833333333 35.708805,27.951895 35.71006833333333,27.950281666666665 35.71059833333333,27.948135 35.71131666666667,27.947548333333334 35.71152,27.945416666666667 35.712246666666665,27.94382 35.712788333333336,27.9423 35.71333333333333,27.9396 35.71430333333333,27.939073333333333 35.714495,27.93595 35.715605,27.934831666666668 35.715995,27.933878333333332 35.71633333333333,27.931641666666668 35.71711166666667,27.929526666666668 35.71787,27.927505 35.71855,27.924181666666666 35.719566666666665,27.9209 35.72045,27.919225 35.720823333333335,27.917541666666665 35.72117166666666,27.916976666666667 35.72129,27.915406666666666 35.721615,27.914171666666668 35.721875,27.910245 35.722683333333336,27.905786666666668 35.723668333333336,27.902468333333335 35.724466666666665,27.902468333333335 35.724466666666665,27.899141666666665 35.72531,27.899141666666665 35.72531,27.895273333333332 35.726315,27.894778333333335 35.72644,27.891523333333332 35.727268333333335,27.891523333333332 35.727268333333335,27.887205 35.728381666666664,27.883926666666667 35.72921,27.882885 35.72947166666667,27.879476666666665 35.73036,27.875123333333335 35.731495,27.871833333333335 35.73235666666667,27.871833333333335 35.73235666666667,27.868456666666667 35.733261666666664,27.867316666666667 35.733556666666665,27.86615 35.73386333333333,27.864165 35.73434666666667,27.86304833333333 35.73462833333333,27.860885 35.735213333333334,27.858668333333334 35.735798333333335,27.853136666666668 35.73724166666667,27.849856666666668 35.73809833333333,27.849856666666668 35.73809833333333,27.845436666666668 35.73931833333334,27.838945 35.74106833333333,27.830385 35.743383333333334,27.82616 35.744505,27.822901666666667 35.74538666666667,27.8186 35.74651166666666,27.816535 35.747033333333334,27.815483333333333 35.747303333333335,27.811758333333334 35.748308333333334,27.812283333333333 35.748165,27.808615 35.749113333333334,27.804505 35.750155,27.800391666666666 35.75122,27.797758333333334 35.75190666666666,27.795288333333332 35.752518333333335,27.79421 35.752781666666664,27.790596666666666 35.753658333333334,27.786485 35.754673333333336,27.784438333333334 35.75519833333333,27.78341 35.75545,27.781818333333334 35.755845,27.779283333333332 35.756476666666664,27.77615 35.75724833333334,27.77306 35.758021666666664,27.770528333333335 35.75865833333334,27.769013333333334 35.759058333333336,27.765405 35.76002833333333,27.761338333333335 35.761046666666665,27.756678333333333 35.76225,27.75249833333333 35.76334666666666,27.748478333333335 35.76435166666667,27.747976666666666 35.76448166666667,27.74495 35.76527166666666,27.74495 35.76527166666666,27.741443333333333 35.76616,27.74043 35.76642666666667,27.738395 35.766983333333336,27.73384666666667 35.76810166666667,27.730226666666667 35.769,27.7266 35.76992666666667,27.724533333333333 35.770453333333336,27.722928333333332 35.770853333333335,27.71987 35.77158166666667,27.716818333333332 35.772328333333334,27.713825 35.77307666666667,27.710741666666667 35.77383666666667,27.710741666666667 35.77383666666667,27.706786666666666 35.77487,27.702745 35.775863333333334,27.698061666666668 35.77706833333333,27.69499666666667 35.777838333333335,27.694431666666667 35.777971666666666,27.690126666666668 35.77903833333333,27.68956 35.77916666666667,27.686498333333333 35.779923333333336,27.686498333333333 35.779923333333336,27.683741666666666 35.780651666666664,27.683288333333333 35.78077833333333,27.679688333333335 35.78174,27.676616666666668 35.78249666666667,27.676616666666668 35.78249666666667,27.67359 35.783295,27.673086666666666 35.783425,27.669541666666667 35.784346666666664,27.665536666666668 35.78541666666667,27.67059666666667 35.78407333333333,27.650441666666666 35.78944833333333,27.650441666666666 35.78944833333333,27.646423333333335 35.790456666666664,27.646423333333335 35.790456666666664,27.642673333333335 35.791426666666666,27.643226666666667 35.79125166666667,27.639498333333332 35.79293833333333,27.639498333333332 35.79293833333333,27.636775 35.79494,27.633745 35.797385,27.634076666666665 35.797113333333336,27.6311 35.799483333333335,27.630675 35.79981,27.627623333333332 35.802105,27.628381666666666 35.80154,27.62459 35.804388333333335,27.621555 35.80675166666666,27.61828 35.80934666666667,27.61828 35.80934666666667,27.615648333333333 35.81135833333333,27.613091666666666 35.813338333333334,27.610335 35.815443333333334,27.60763 35.81756,27.604955 35.81959833333333,27.602196666666668 35.82181833333333,27.59905 35.82425666666666,27.596168333333335 35.82644166666667,27.59341 35.828625,27.590235 35.83110666666666,27.587426666666666 35.833215,27.587026666666667 35.83351833333333,27.584625 35.83538166666666,27.584275 35.835658333333335,27.58196166666667 35.837475,27.580345 35.838746666666665,27.579095 35.83969833333333,27.577513333333332 35.840898333333335,27.575915 35.84216166666667,27.574295 35.843453333333336,27.571193333333333 35.845885,27.570381666666666 35.84655333333333,27.570025 35.846835,27.568828333333332 35.847765,27.567543333333333 35.84875,27.564713333333334 35.85096166666667,27.561981666666668 35.853145,27.564311666666665 35.85128,27.557271666666665 35.85687166666666,27.556101666666667 35.85780666666667,27.554868333333335 35.85876833333333,27.55331333333333 35.859985,27.55247333333333 35.860636666666664,27.550531666666668 35.86213,27.548975 35.86335166666667,27.547793333333335 35.864315,27.5463 35.86555333333333,27.543193333333335 35.86805666666667,27.54246 35.86864333333333,27.540145 35.870531666666665,27.540898333333335 35.869908333333335,27.537518333333335 35.872658333333334,27.534503333333333 35.875031666666665,27.535613333333334 35.874165,27.530235 35.87837666666667,27.52917 35.879225,27.526678333333333 35.88126833333333,27.527725 35.880408333333335,27.523998333333335 35.883361666666666,27.524773333333332 35.882776666666665,27.522078333333333 35.884865,27.52126833333333 35.88550333333333,27.518528333333332 35.887548333333335,27.516531666666666 35.88901,27.515688333333333 35.88962333333333,27.513725 35.891128333333334,27.512981666666665 35.89168166666666,27.511448333333334 35.892825,27.507128333333334 35.89602166666667,27.50439 35.89804,27.508618333333335 35.89490166666667,27.496781666666667 35.90349166666667,27.49596 35.904073333333336,27.493106666666666 35.90608,27.49031 35.9081,27.487405 35.910158333333335,27.485325 35.91161666666667,27.484146666666668 35.91245166666667,27.482511666666667 35.913605,27.481278333333332 35.914465,27.478445 35.91647833333333,27.478445 35.91647833333333,27.475581666666667 35.91853833333333,27.475126666666668 35.918855,27.472663333333333 35.920625,27.46984 35.922605,27.466591666666666 35.924905,27.463715 35.927,27.462866666666667 35.92760166666667,27.460845 35.92901666666667,27.460081666666667 35.929561666666665,27.458071666666665 35.93100666666667,27.45767 35.931308333333334,27.45538833333333 35.933233333333334,27.455051666666666 35.93351833333333,27.452791666666666 35.935425,27.452021666666667 35.936051666666664,27.45023 35.937688333333334,27.448463333333333 35.939231666666664,27.447411666666667 35.940125,27.445215 35.94206166666667,27.444893333333333 35.942346666666666,27.44239 35.94454833333333,27.44239 35.94454833333333,27.439876666666667 35.94671833333334,27.437318333333334 35.948875,27.439876666666667 35.94671833333334,27.439876666666667 35.94671833333334,27.432191666666668 35.953245,27.432191666666668 35.953245,27.42933 35.95577,27.426863333333333 35.95791166666667,27.424731666666666 35.95972833333333,27.4243 35.960098333333335,27.421443333333333 35.96257,27.418525 35.96514833333333,27.41604166666667 35.96736166666667,27.41604166666667 35.96736166666667,27.413441666666667 35.969656666666666,27.410956666666667 35.97185833333333,27.408798333333333 35.973773333333334,27.40844 35.974095,27.405833333333334 35.976395,27.40304 35.978926666666666,27.400488333333332 35.981265,27.399766666666668 35.98191166666667,27.397981666666666 35.98352166666667,27.397225 35.984195,27.395821666666667 35.985375,27.394666666666666 35.98631666666667,27.392011666666665 35.988475,27.389783333333334 35.99037166666667,27.389121666666668 35.99091166666667,27.386845 35.992778333333334,27.386435 35.99312166666667,27.384211666666666 35.99500833333333,27.381573333333332 35.99724333333333,27.381573333333332 35.99724333333333,27.3792 35.99914166666667,27.37882 35.999453333333335,27.378093333333332 36.00003666666667,27.378093333333332 36.00003666666667,27.375405 36.00222,27.374978333333335 36.00255833333333,27.37265 36.004486666666665,27.37265 36.004486666666665,27.367653333333333 36.00866833333333,27.36731 36.00896,27.365388333333332 36.01056833333333,27.364205 36.01151333333333,27.363011666666665 36.01246666666667,27.361451666666667 36.013755,27.360263333333332 36.01475666666666,27.35880166666667 36.016,27.35797833333333 36.01666,27.355625 36.018575,27.35338 36.020465,27.352591666666665 36.021155,27.351158333333334 36.022418333333334,27.349715 36.023671666666665,27.34888 36.02437166666667,27.34663 36.026295,27.343938333333334 36.028528333333334,27.343938333333334 36.028528333333334,27.341625 36.030431666666665,27.341236666666667 36.030748333333335,27.339311666666667 36.032293333333335,27.33856 36.03290333333333,27.33592 36.035093333333336,27.333248333333334 36.03728,27.330608333333334 36.03942333333333,27.330608333333334 36.03942333333333,27.328365 36.0413,27.327655 36.041891666666665,27.326136666666667 36.043185,27.325013333333334 36.04407333333333,27.323463333333333 36.045298333333335,27.32231 36.046235,27.321115 36.04721333333333,27.319966666666666 36.04817833333333,27.318841666666668 36.049103333333335,27.317231666666668 36.050395,27.31644 36.051006666666666,27.314105 36.05283,27.311915 36.054615,27.311588333333333 36.054875,27.30964833333333 36.05639,27.30889833333333 36.05698,27.30744333333333 36.058148333333335,27.305885 36.05937333333333,27.30517 36.05995333333333,27.302886666666666 36.06176333333333,27.302886666666666 36.06176333333333,27.30072 36.06355666666666,27.299991666666667 36.06416,27.2985 36.065415,27.29696 36.06655333333333,27.295928333333332 36.067328333333336,27.2941 36.068778333333334,27.291931666666667 36.070505,27.29117 36.07112333333333,27.28938 36.07259833333333,27.288681666666665 36.07318,27.286735 36.074735,27.285963333333335 36.075335,27.284445 36.07656,27.283315 36.077481666666664,27.282181666666666 36.07841333333333,27.280231666666666 36.07996333333333,27.279835 36.080275,27.27759 36.082116666666664,27.277243333333335 36.0824,27.274906666666666 36.08429,27.273765 36.085175,27.271753333333333 36.08671666666667,27.268973333333335 36.08882666666667,27.267416666666666 36.090073333333336,27.266218333333335 36.09102,27.263443333333335 36.09321666666666,27.260645 36.095483333333334,27.257918333333333 36.09770833333334,27.255138333333335 36.09998,27.252356666666667 36.10220666666667,27.249616666666668 36.10447333333333,27.248075 36.105745,27.244926666666668 36.108315,27.245388333333334 36.107925,27.242293333333333 36.110533333333336,27.242603333333335 36.110275,27.23993 36.112536666666664,27.23993 36.112536666666664,27.237753333333334 36.114468333333335,27.236206666666668 36.11576,27.23543 36.116413333333334,27.233893333333334 36.117691666666666,27.231035 36.120108333333334,27.23068333333333 36.12040666666667,27.22826 36.122415,27.227543333333333 36.12299333333333,27.225963333333333 36.124318333333335,27.224768333333333 36.12526166666667,27.22357166666667 36.12622833333333,27.221153333333334 36.12819,27.220798333333335 36.128476666666664,27.218046666666666 36.13073166666667,27.21477 36.13344333333333,27.211476666666666 36.13624,27.210318333333333 36.13722666666666,27.208645 36.13862833333334,27.205953333333333 36.14078833333333,27.203181666666666 36.1431,27.20001 36.14570333333333,27.198893333333334 36.146656666666665,27.19689 36.14839333333333,27.194193333333335 36.150573333333334,27.190903333333335 36.153145,27.188823333333332 36.154785,27.187591666666666 36.155755,27.186395 36.156705,27.18511 36.15773,27.183883333333334 36.1587,27.181463333333333 36.16066,27.178591666666666 36.16293833333334,27.175198333333334 36.165655,27.17233 36.16798166666667,27.168991666666667 36.17064,27.167673333333333 36.17169666666667,27.166086666666665 36.17292666666667,27.163946666666668 36.17458666666667,27.163141666666668 36.17527666666667,27.16152 36.17653333333333,27.160636666666665 36.17726833333333,27.159493333333334 36.178255,27.158253333333334 36.179285,27.156248333333334 36.18087333333333,27.155773333333332 36.18127833333333,27.153385 36.183233333333334,27.15091333333333 36.185183333333335,27.150121666666667 36.18579833333333,27.144335 36.190398333333334,27.140975 36.19295666666667,27.138108333333335 36.195276666666665,27.13481 36.19800333333333,27.132406666666668 36.20001666666667,27.128683333333335 36.203111666666665,27.126226666666668 36.20515666666667,27.123408333333334 36.207415,27.120436666666667 36.20979333333333,27.119253333333333 36.210775,27.118061666666666 36.211795,27.11647333333333 36.21311,27.115266666666667 36.21408,27.113623333333333 36.215381666666666,27.112346666666667 36.21637333333334,27.11046 36.218025,27.11046 36.218025,27.109661666666668 36.218735,27.106838333333332 36.221025,27.106071666666665 36.22165,27.10444 36.222975,27.103585 36.223665,27.102005 36.22501,27.101208333333332 36.22568,27.09923 36.22734,27.09923 36.22734,27.098383333333334 36.228033333333336,27.096423333333334 36.229655,27.096035 36.22999,27.092918333333333 36.23258333333333,27.090111666666665 36.234896666666664,27.090111666666665 36.234896666666664,27.087306666666667 36.23717333333333,27.08694 36.23746166666667,27.084831666666666 36.239131666666665,27.084481666666665 36.23942,27.08216 36.24140166666667,27.081775 36.24173833333333,27.078571666666665 36.24440166666667,27.079831666666667 36.243363333333335,27.07274 36.249233333333336,27.07274 36.249233333333336,27.069885 36.25165333333333,27.066121666666668 36.25481333333333,27.06273 36.25759333333333,27.06104 36.25896,27.060586666666666 36.25936,27.059836666666666 36.26003,27.057401666666667 36.262075,27.05453333333333 36.2644,27.05407 36.26479833333333,27.050683333333332 36.267561666666666,27.04738 36.27021,27.044875 36.27227333333333,27.041113333333332 36.275295,27.038636666666665 36.277321666666666,27.035381666666666 36.27997166666667,27.032931666666666 36.281895,27.0296 36.28456333333333,27.026598333333332 36.286923333333334,27.023693333333334 36.289235,27.022056666666668 36.29055666666667,27.019011666666668 36.29300833333333,27.016096666666666 36.295345,27.013111666666667 36.29767833333333,27.00964 36.300443333333334,27.006603333333334 36.30285,27.003608333333332 36.30516333333333,27.00008 36.30797166666667,26.999651666666665 36.30831666666667,26.996183333333335 36.31101,26.993586666666666 36.31308833333333,26.991028333333333 36.315055,26.98839 36.317095,26.985345 36.319375,26.982686666666666 36.32136333333333,26.97973 36.32367166666667,26.976183333333335 36.32637,26.971905 36.329816666666666,26.96898 36.332166666666666,26.965146666666666 36.33501,26.96207 36.33732833333333,26.959528333333335 36.339193333333334,26.956135 36.34179666666667,26.956135 36.34179666666667,26.953948333333333 36.34354166666667,26.947935 36.348125,26.944595 36.35059,26.941283333333335 36.353115,26.938666666666666 36.35508166666666,26.935323333333333 36.357686666666666,26.932816666666668 36.35966666666667,26.930293333333335 36.36165333333334,26.929483333333334 36.36231166666666,26.926435 36.364731666666664,26.926011666666668 36.365073333333335,26.926011666666668 36.365073333333335,26.925595 36.36542166666667,26.923526666666667 36.367151666666665,26.922315 36.368181666666665,26.922315 36.368181666666665,26.920661666666668 36.369585,26.917901666666666 36.37197333333334,26.915851666666665 36.37367833333333,26.914988333333334 36.374375,26.91175 36.37706,26.908878333333334 36.37947666666667,26.906525 36.381566666666664,26.903406666666665 36.384258333333335,26.901033333333334 36.386208333333336,26.901033333333334 36.386208333333336,26.90025 36.386865,26.897825 36.38883166666667,26.89542 36.39082833333333,26.892291666666665 36.39353333333333,26.892291666666665 36.39353333333333,26.889151666666667 36.396205,26.888028333333335 36.39718666666667,26.886475 36.398495,26.881808333333332 36.40254,26.88103 36.40322333333334,26.88103 36.40322333333334,26.877871666666667 36.40596166666667,26.876666666666665 36.406978333333335,26.875133333333334 36.408278333333335,26.871925 36.41105666666667,26.87075 36.41208666666667,26.868833333333335 36.413765,26.865695 36.416491666666666,26.865695 36.416491666666666,26.86332 36.41851166666667,26.862141666666666 36.41950833333333,26.85978 36.421571666666665,26.8567 36.42427833333333,26.854721666666666 36.425983333333335,26.853521666666666 36.427006666666664,26.851933333333335 36.42834833333333,26.85077 36.42937333333333,26.848401666666668 36.43146,26.847326666666667 36.43243666666667,26.845791666666667 36.433805,26.844621666666665 36.43486,26.843045 36.436276666666664,26.84221 36.43701333333333,26.840298333333333 36.4387,26.839878333333335 36.43908,26.839165 36.439746666666665,26.838086666666666 36.44077,26.836876666666665 36.44189,26.835335 36.44329,26.834595 36.443958333333335,26.832273333333333 36.446065,26.831473333333335 36.44679166666667,26.829525 36.448586666666664,26.828806666666665 36.44925166666667,26.827605 36.450335,26.826121666666666 36.45171166666667,26.823408333333333 36.454185,26.82306833333333 36.45449,26.82079166666667 36.456646666666664,26.817878333333333 36.45939166666667,26.815213333333332 36.461906666666664,26.81255833333333 36.46445833333333,26.809923333333334 36.46693333333333,26.808023333333335 36.468743333333336,26.806805 36.46982666666667,26.805648333333334 36.47083,26.805288333333333 36.47114,26.803626666666666 36.47253833333333,26.801955 36.47395,26.801158333333333 36.47458833333334,26.799476666666667 36.475948333333335,26.79865 36.47664,26.796603333333334 36.478413333333336,26.79629 36.47869,26.793376666666667 36.48115,26.791413333333335 36.48273,26.791413333333335 36.48273,26.78973166666667 36.484048333333334,26.788468333333334 36.48502833333333,26.787321666666667 36.48591,26.784465 36.488148333333335,26.783981666666666 36.48853833333333,26.782001666666666 36.490145,26.781156666666668 36.490835,26.780788333333334 36.491126666666666,26.77785 36.49337666666667,26.777433333333335 36.493695,26.774641666666668 36.495916666666666,26.77132 36.498575,26.767993333333333 36.501165,26.767993333333333 36.501165,26.765116666666668 36.50345,26.763901666666666 36.50439,26.76259 36.505386666666666,26.761361666666666 36.506315,26.759691666666665 36.50766,26.758906666666668 36.508275,26.75683666666667 36.509905,26.756428333333332 36.510238333333334,26.755573333333334 36.510935,26.754401666666666 36.51183666666667,26.752256666666668 36.513515,26.75111 36.51442,26.748125 36.516725,26.744893333333334 36.51936333333333,26.74407 36.52000833333334,26.74128 36.52219,26.737511666666666 36.52513666666667,26.73468 36.52743,26.731833333333334 36.529691666666665,26.731833333333334 36.529691666666665,26.729041666666667 36.531893333333336,26.725733333333334 36.53454833333333,26.72257 36.53709166666667,26.720055 36.539031666666666,26.719203333333333 36.539703333333335,26.716441666666668 36.541936666666665,26.713995 36.54390166666666,26.711056666666668 36.546261666666666,26.70822 36.548566666666666,26.707421666666665 36.54924,26.704226666666667 36.551815,26.701353333333333 36.55407,26.6986 36.556325,26.696228333333334 36.558323333333334,26.694593333333334 36.55967833333333,26.693355 36.560715,26.690633333333334 36.56303666666667,26.687443333333334 36.56567,26.684613333333335 36.567996666666666,26.683 36.56933,26.681406666666668 36.57063,26.67892 36.572676666666666,26.67576 36.575355,26.673355 36.5774,26.672106666666668 36.578426666666665,26.670891666666666 36.57940833333333,26.670891666666666 36.57940833333333,26.66928 36.580693333333336,26.666196666666668 36.58333,26.663428333333332 36.58557666666667,26.65989666666667 36.58852666666667,26.659411666666667 36.588923333333334,26.657023333333335 36.59094833333333,26.65462 36.592971666666664,26.652226666666667 36.595011666666664,26.648263333333333 36.598435,26.64745 36.599125,26.6425 36.60312666666667,26.640093333333333 36.605065,26.631478333333334 36.61188666666666,26.631478333333334 36.61188666666666,26.628543333333333 36.61420833333333,26.625201666666666 36.61679,26.622795 36.618703333333336,26.62243 36.618986666666665,26.619541666666667 36.621208333333335,26.617093333333333 36.62312,26.61344666666667 36.626015,26.610568333333333 36.628161666666664,26.610568333333333 36.628161666666664,26.608108333333334 36.630075,26.604405 36.63304333333333,26.603165 36.63401,26.60145 36.63533833333333,26.598083333333335 36.637883333333335,26.598083333333335 36.637883333333335,26.595568333333333 36.63983666666667,26.593025 36.64177166666666,26.590485 36.643755,26.590108333333333 36.644058333333334,26.58792 36.645723333333336,26.584858333333333 36.64792833333333,26.584858333333333 36.64792833333333,26.581946666666667 36.65020833333333,26.579333333333334 36.6522,26.576858333333334 36.65408,26.573808333333332 36.65643333333333,26.57265 36.65741,26.570358333333335 36.65911333333333,26.567338333333332 36.661458333333336,26.564141666666668 36.66369,26.561378333333334 36.665835,26.560978333333335 36.66614333333333,26.55925166666667 36.66743,26.558326666666666 36.6681,26.555711666666667 36.67011333333333,26.554338333333334 36.67114333333333,26.553011666666666 36.67214,26.550536666666666 36.674038333333336,26.547975 36.67605666666667,26.546068333333334 36.67742333333333,26.54557 36.6778,26.545116666666665 36.67814166666667,26.541923333333333 36.680515,26.539206666666665 36.682471666666665,26.53470666666667 36.68579833333333,26.532503333333334 36.687353333333334,26.531553333333335 36.688046666666665,26.527931666666667 36.690731666666665,26.52523 36.692766666666664,26.522503333333333 36.69484833333333,26.518883333333335 36.69745,26.518883333333335 36.69745,26.51432 36.700808333333335,26.511611666666667 36.702873333333336,26.50841 36.70527666666667,26.506966666666667 36.706305,26.505083333333335 36.70768,26.505083333333335 36.70768,26.503218333333333 36.70905333333334,26.499063333333332 36.712093333333335,26.496321666666667 36.71411333333333,26.493571666666668 36.716233333333335,26.491293333333335 36.71796166666667,26.490836666666667 36.7183,26.487576666666666 36.720645,26.48426 36.723025,26.481078333333333 36.72539833333333,26.47792 36.727775,26.477428333333332 36.72815833333333,26.474296666666667 36.73062,26.471491666666665 36.73269333333333,26.468403333333335 36.735035,26.465646666666668 36.737138333333334,26.463905 36.73851333333333,26.462063333333333 36.739955,26.460716666666666 36.741,26.459396666666667 36.74199,26.456668333333333 36.74402166666667,26.453925 36.74602333333333,26.451196666666668 36.748043333333335,26.449806666666667 36.74910333333333,26.44845 36.75011666666666,26.44577 36.75217,26.442213333333335 36.754936666666666,26.438665 36.75767833333333,26.436886666666666 36.75907,26.435995 36.759765,26.433351666666667 36.761825,26.429501666666667 36.76506666666667,26.426288333333332 36.76761,26.423671666666667 36.76978833333333,26.423283333333334 36.77011666666667,26.421075 36.771985,26.419836666666665 36.77305,26.416808333333332 36.77559333333333,26.414231666666666 36.777748333333335,26.411606666666668 36.77991166666666,26.410693333333334 36.780676666666665,26.408948333333335 36.78214333333333,26.406368333333333 36.7843,26.402408333333334 36.787623333333336,26.399791666666665 36.78987,26.398495 36.790971666666664,26.397666666666666 36.791671666666666,26.397223333333333 36.79203833333333,26.395865 36.79318833333333,26.394591666666667 36.794268333333335,26.391973333333333 36.796553333333335,26.391495 36.796975,26.388863333333333 36.799231666666664,26.387983333333334 36.79998666666667,26.38495 36.80258666666667,26.384045 36.803385,26.383618333333335 36.80376833333333,26.38148 36.805661666666666,26.380168333333334 36.806756666666665,26.378895 36.80781666666667,26.375896666666666 36.81037666666667,26.375371666666666 36.81082333333333,26.372831666666666 36.813045,26.37245 36.813385,26.371175 36.81453,26.36994333333333 36.81563666666667,26.369393333333335 36.816131666666664,26.36684 36.818403333333336,26.366073333333333 36.819111666666664,26.363508333333332 36.82142666666667,26.363085 36.821796666666664,26.36005 36.82450166666667,26.35881 36.82559,26.357965 36.826315,26.357125 36.82705833333333,26.354138333333335 36.82975833333333,26.351965 36.831626666666665,26.350245 36.83307166666667,26.349371666666666 36.83381833333333,26.347135 36.8357,26.34669 36.836063333333335,26.345843333333335 36.836751666666665,26.344056666666667 36.8382,26.343566666666668 36.838595,26.34089833333333 36.84075833333333,26.34050166666667 36.84108666666667,26.337831666666666 36.84331666666667,26.33481 36.845823333333335,26.33348 36.84690166666667,26.332161666666668 36.847985,26.332161666666668 36.847985,26.329958333333334 36.849805,26.32947 36.850205,26.326391666666666 36.85270333333333,26.322928333333333 36.8555,26.321161666666665 36.85698166666667,26.320345 36.857663333333335,26.318256666666667 36.859495,26.31785 36.85986666666667,26.317036666666667 36.860615,26.315405 36.86211333333333,26.314153333333334 36.86328666666667,26.312118333333334 36.86519333333333,26.310068333333334 36.867105,26.309246666666667 36.86787833333333,26.307253333333332 36.869773333333335,26.306441666666668 36.870533333333334,26.306081666666667 36.87088,26.303215 36.873635,26.30285 36.87398,26.30002 36.876621666666665,26.298366666666666 36.878161666666664,26.295558333333332 36.880698333333335,26.295156666666667 36.881065,26.292845 36.883356666666664,26.29252 36.8837,26.290051666666667 36.886365,26.289695 36.88675,26.287828333333334 36.888745,26.286761666666667 36.889846666666664,26.285 36.89179333333333,26.284335 36.892645,26.281405 36.89722,26.277303333333332 36.90413,26.276533333333333 36.905435,26.275795 36.90669333333334,26.275543333333335 36.90712666666667,26.274025 36.909771666666664,26.273793333333334 36.91016166666667,26.270701666666668 36.915441666666666,26.270431666666667 36.915933333333335,26.268528333333332 36.91837,26.268528333333332 36.91837,26.268115 36.918776666666666,26.264375 36.92187333333333,26.262636666666666 36.923183333333334,26.261258333333334 36.924235,26.259911666666667 36.925235,26.25861 36.926205,26.256221666666665 36.92798333333333,26.255361666666666 36.92861666666667,26.25354 36.929921666666665,26.250428333333332 36.93213166666666,26.249976666666665 36.932446666666664,26.246226666666665 36.93494166666667,26.238808333333335 36.93985333333333,26.23598 36.9418,26.23506 36.94244666666667,26.227388333333334 36.947245,26.22461 36.94907,26.216663333333333 36.954928333333335,26.213735 36.9584,26.213146666666667 36.95916833333333,26.212115 36.96051833333333,26.20924 36.964065,26.205086666666666 36.96933,26.204736666666665 36.969775,26.202773333333333 36.972181666666664,26.202416666666668 36.972615,26.19985 36.975645,26.19853833333333 36.97728166666667,26.197663333333335 36.97848,26.195495 36.98133,26.193683333333333 36.98379333333333,26.19274 36.98507333333333,26.18602 36.99420166666667,26.184135 36.996716666666664,26.181986666666667 36.99964833333333,26.176628333333333 37.00673,26.172835 37.011786666666666,26.171018333333333 37.014405,26.169785 37.01615666666667,26.169253333333334 37.016933333333334,26.16768 37.01915,26.166821666666667 37.02033,26.164621666666665 37.02332333333333,26.162515 37.02635333333333,26.161006666666665 37.028391666666664,26.160335 37.02925,26.158438333333333 37.03176833333333,26.158438333333333 37.03176833333333,26.155941666666667 37.03511666666667,26.150891666666666 37.04192666666667,26.148963333333334 37.044415,26.148315 37.045251666666665,26.146075 37.048175,26.141928333333333 37.053691666666666,26.139376666666667 37.057091666666665,26.13188 37.067303333333335,26.129646666666666 37.07018333333333,26.127508333333335 37.07315333333333,26.125608333333332 37.07575166666667,26.12317 37.079193333333336,26.121086666666667 37.082175,26.120788333333333 37.08260333333333,26.119251666666667 37.084675,26.117396666666668 37.087315,26.111768333333334 37.095616666666665,26.108723333333334 37.100051666666666,26.106693333333332 37.103155,26.104355 37.106635,26.102871666666665 37.10876,26.097781666666666 37.11611833333333,26.095651666666665 37.119191666666666,26.093915 37.12172666666667,26.093316666666666 37.12264166666667,26.089513333333333 37.12924833333334,26.0863 37.135205,26.084305 37.138865,26.082583333333332 37.142066666666665,26.080666666666666 37.145763333333335,26.078873333333334 37.14901666666667,26.078873333333334 37.14901666666667,26.071633333333335 37.16260833333333,26.06912833333333 37.16777833333333,26.068453333333334 37.16911833333333,26.0675 37.170966666666665,26.064703333333334 37.176535,26.062418333333333 37.18115,26.061056666666666 37.183976666666666,26.057953333333334 37.18998333333333,26.057723333333332 37.190455,26.056558333333335 37.192856666666664,26.055208333333333 37.19564333333334,26.05084 37.20469,26.048486666666665 37.20954833333333,26.045808333333333 37.213075,26.043516666666665 37.215511666666664,26.04125833333333 37.21794333333333,26.03366 37.22597,26.031373333333335 37.228385,26.02979 37.230015,26.02628 37.233558333333335,26.023136666666666 37.236665,26.02028 37.23932666666666,26.017845 37.24153166666667,26.017435 37.241908333333335,26.014865 37.244105,26.011006666666667 37.24749,26.00554 37.25226833333333,26.00479 37.252935,26.001933333333334 37.2555,25.994073333333333 37.262026666666664,25.99245 37.26345666666667,25.987833333333334 37.2675,25.985315 37.26978666666667,25.97964 37.27506,25.974571666666666 37.280245,25.972325 37.28254166666667,25.968618333333332 37.28638,25.967448333333333 37.28758,25.964526666666668 37.2906,25.961518333333334 37.29371,25.957448333333332 37.297905,25.955913333333335 37.299456666666664,25.95294 37.30243333333333,25.949818333333333 37.30534166666666,25.947185 37.30788166666667,25.946106666666665 37.308995,25.945076666666665 37.310065,25.942873333333335 37.31229166666667,25.940036666666668 37.315235,25.937965 37.317413333333334,25.935856666666666 37.31962,25.935115 37.320393333333335,25.933661666666666 37.321866666666665,25.931523333333335 37.32404666666667,25.924466666666667 37.33106,25.92406 37.33146333333333,25.9137 37.342285,25.909775 37.34645166666667,25.90801 37.348306666666666,25.90734 37.34900833333333,25.905943333333333 37.350503333333336,25.90527833333333 37.351216666666666,25.903785 37.35277,25.903143333333333 37.35344333333333,25.903143333333333 37.35344333333333,25.901258333333335 37.355375,25.900931666666665 37.355711666666664,25.899111666666666 37.357565,25.896926666666666 37.35978333333333,25.894716666666667 37.36199166666667,25.89287 37.36387666666667,25.892541666666666 37.364205,25.892145 37.36461,25.890313333333335 37.36642666666667,25.887736666666665 37.368991666666666,25.885576666666665 37.371233333333336,25.883381666666665 37.37347833333333,25.882285 37.374605,25.881211666666665 37.375701666666664,25.881211666666665 37.375701666666664,25.879693333333332 37.377253333333336,25.878573333333332 37.378371666666666,25.875645 37.381251666666664,25.874458333333333 37.38246,25.873435 37.38353166666667,25.871106666666666 37.385886666666664,25.869643333333332 37.38737833333333,25.868861666666668 37.38818,25.866595 37.39046,25.864358333333332 37.392736666666664,25.86398 37.393121666666666,25.86208 37.39510166666667,25.859855 37.397415,25.858763333333332 37.39852,25.857563333333335 37.39968833333333,25.855695 37.40154166666667,25.85495 37.402303333333336,25.852695 37.404581666666665,25.847998333333333 37.41014166666667,25.842026666666666 37.41833166666667,25.839283333333334 37.422005,25.838985 37.42241833333333,25.838071666666668 37.4237,25.83755 37.42445,25.8357 37.426923333333335,25.833563333333334 37.429895,25.831776666666666 37.43245833333334,25.831776666666666 37.43245833333334,25.830011666666667 37.43507666666667,25.828258333333334 37.43771,25.827331666666666 37.43916333333333,25.826446666666666 37.440465,25.825238333333335 37.4422,25.824585 37.443133333333336,25.822721666666666 37.445811666666664,25.820851666666666 37.44848666666667,25.820851666666666 37.44848666666667,25.820851666666666 37.44848666666667,25.81866 37.45159666666667,25.816786666666665 37.45428166666667,25.816481666666668 37.45473,25.812146666666667 37.46113166666667,25.8116 37.46194833333333,25.811301666666665 37.462401666666665,25.810393333333334 37.46375333333334,25.809451666666668 37.465155,25.808583333333335 37.46647333333333,25.807605 37.46785333333333,25.806793333333335 37.46918,25.803341666666668 37.47581666666667,25.803078333333332 37.476285,25.802586666666667 37.47722666666667,25.801788333333334 37.479121666666664,25.800993333333334 37.48208,25.800811666666668 37.48302833333333,25.800446666666666 37.48507,25.800095 37.488058333333335,25.79996166666667 37.490066666666664,25.799955 37.49058333333333,25.799948333333333 37.491103333333335,25.799676666666667 37.497128333333336,25.79984 37.493543333333335,25.79937 37.50568166666667,25.799213333333334 37.51179,25.79919 37.51233666666667,25.799096666666667 37.514871666666664,25.799073333333332 37.51537833333333,25.798988333333334 37.51786666666667,25.798981666666666 37.51842666666667,25.798936666666666 37.52097333333333,25.798911666666665 37.522,25.798863333333333 37.524005,25.798843333333334 37.52507333333333,25.798803333333332 37.52707,25.798788333333334 37.528145,25.798758333333332 37.53019166666667,25.798723333333335 37.531218333333335,25.798678333333335 37.534301666666664,25.79864 37.53630166666667,25.798618333333334 37.537378333333336,25.79854 37.541428333333336,25.79853 37.541891666666665,25.798521666666666 37.54400666666667,25.79850666666667 37.544983333333334,25.798491666666667 37.547095,25.79848 37.548055,25.79838833333333 37.55010166666667,25.798288333333332 37.55169,25.798288333333332 37.55169,25.798288333333332 37.55169,25.798181666666668 37.55318,25.79809 37.55470833333333,25.797996666666666 37.55632166666667,25.797945 37.557896666666664,25.79778 37.56099,25.797691666666665 37.562488333333334,25.79754 37.56462,25.797486666666668 37.565601666666666,25.79740333333333 37.567188333333334,25.797375 37.567701666666665,25.797166666666666 37.570735,25.79713 37.57125166666667,25.796918333333334 37.574875,25.79689 37.575388333333336,25.7968 37.57749333333334,25.796756666666667 37.57848666666667,25.796756666666667 37.57848666666667,25.796595 37.58153333333333,25.796538333333334 37.58262,25.796445 37.584685,25.796401666666668 37.58566166666667,25.796181666666666 37.589365,25.795931666666668 37.59296,25.795931666666668 37.59296,25.795678333333335 37.596045,25.795678333333335 37.596045,25.795543333333335 37.598055,25.795475 37.599145,25.795475 37.599145,25.795273333333334 37.602245,25.79503 37.606255,25.794956666666668 37.60733166666667,25.794746666666665 37.6104,25.794763333333332 37.610405,25.794586666666667 37.61290666666667,25.794551666666667 37.613525,25.794551666666667 37.613525,25.794453333333333 37.61504,25.794303333333332 37.61752,25.7941 37.620643333333334,25.794066666666666 37.62121,25.793883333333333 37.62428666666667,25.79383 37.62531166666667,25.793676666666666 37.62831666666667,25.79365 37.628875,25.793516666666665 37.63142166666667,25.79333 37.63449166666667,25.793095 37.638015,25.792875 37.641128333333334,25.792841666666668 37.64158666666667,25.792676666666665 37.64418666666667,25.792676666666665 37.64418666666667,25.792676666666665 37.64418666666667,25.792646666666666 37.644695,25.79247833333333 37.64815,25.792283333333334 37.65130333333333,25.79224 37.65175833333333,25.791911666666667 37.654846666666664,25.791856666666668 37.65535333333333,25.791543333333333 37.65832833333333,25.79131 37.660396666666664,25.79131 37.660396666666664,25.790941666666665 37.663423333333334,25.790856666666667 37.664381666666664,25.790661666666665 37.666455,25.790561666666665 37.667408333333334,25.79014 37.67146666666667,25.789828333333332 37.67456333333333,25.788785 37.684605,25.788431666666668 37.687695,25.788215 37.68971,25.788215 37.68971,25.788101666666666 37.69072666666667,25.78787833333333 37.69281333333333,25.787715 37.69432666666667,25.787556666666667 37.69584833333333,25.787375 37.697775,25.787271666666665 37.698838333333335,25.78697 37.701418333333336,25.78665 37.70444,25.786601666666666 37.70484166666667,25.786538333333333 37.705391666666664,25.78629 37.70785,25.785853333333332 37.71288666666667,25.785693333333334 37.714398333333335,25.785533333333333 37.71595666666666,25.785386666666668 37.717465,25.785228333333333 37.71902,25.785138333333332 37.719921666666664,25.78508666666667 37.720525,25.784828333333333 37.72350333333333,25.784673333333334 37.725075,25.783933333333334 37.73262666666667,25.783728333333332 37.73506666666667,25.783728333333332 37.73506666666667,25.78368 37.73567333333333,25.783446666666666 37.738656666666664,25.783245 37.74169333333333,25.783186666666666 37.74225,25.782858333333333 37.74471833333333,25.782788333333333 37.74522,25.782715 37.74576833333333,25.782383333333332 37.74821333333333,25.782255 37.749265,25.782151666666667 37.750215,25.781973333333333 37.751765,25.781915 37.752266666666664,25.781643333333335 37.75476833333333,25.78159 37.75527,25.780901666666665 37.76134833333333,25.780615 37.76378166666667,25.779771666666665 37.77068,25.779551666666666 37.77271666666667,25.779393333333335 37.77415666666667,25.779336666666666 37.774605,25.7792 37.77565833333333,25.778951666666668 37.77766166666667,25.778838333333333 37.778661666666665,25.778658333333333 37.780165,25.778598333333335 37.780665,25.778491666666667 37.781668333333336,25.778038333333335 37.78567666666667,25.777808333333333 37.78767833333333,25.777703333333335 37.78867833333333,25.777358333333332 37.791655,25.777018333333334 37.794646666666665,25.776951666666665 37.79519666666667,25.776951666666665 37.79519666666667,25.776666666666667 37.79765833333333,25.776295 37.80065833333333,25.775945 37.803705,25.775618333333334 37.80670166666667,25.775466666666667 37.808135,25.775283333333334 37.809673333333336,25.775225 37.81016833333333,25.774935 37.812645,25.77457 37.81559333333333,25.77422333333333 37.818665,25.773731666666666 37.82317333333334,25.773523333333333 37.825075,25.773351666666667 37.82667166666667,25.773046666666666 37.829636666666666,25.772708333333334 37.83266666666667,25.772356666666667 37.83567166666667,25.771871666666666 37.84019166666667,25.77032833333333 37.85527833333333,25.768703333333335 37.87038,25.76803 37.87692333333333,25.767788333333332 37.88049,25.76759 37.88355,25.767446666666668 37.885575,25.767363333333332 37.886588333333336,25.767131666666668 37.88964333333333,25.766671666666667 37.89678333333333,25.76638833333333 37.90134333333334,25.766301666666667 37.90291333333333,25.766158333333333 37.905953333333336,25.766001666666668 37.909486666666666,25.76584666666667 37.91247166666667,25.765676666666668 37.915565,25.765648333333335 37.916075,25.765533333333334 37.918615,25.765366666666665 37.92167833333333,25.765133333333335 37.92771166666667,25.764851666666665 37.933855,25.76465 37.937416666666664,25.764483333333335 37.94045666666667,25.764185 37.94756833333334,25.764185 37.94756833333334,25.764068333333334 37.95056833333334,25.763938333333332 37.954011666666666,25.76374 37.96107333333333,25.763621666666666 37.96356333333333,25.763606666666668 37.96406,25.763521666666666 37.967065,25.763455 37.97006833333333,25.76338 37.97303333333333,25.763293333333333 37.97607,25.763278333333332 37.97652166666666,25.763215 37.97908666666667,25.76312666666667 37.98211,25.762955 37.98817,25.762911666666668 37.991746666666664,25.762911666666668 37.991746666666664,25.762835 37.99485833333333,25.76274 38.000501666666665,25.762705 38.00355666666667,25.762643333333333 38.007113333333336,25.762431666666668 38.01109666666667,25.762263333333333 38.01367833333333,25.762195 38.01468333333333,25.761785 38.02176,25.761735 38.02277,25.761636666666668 38.02479,25.761511666666667 38.02833833333333,25.761415 38.03036,25.761331666666667 38.031886666666665,25.761215 38.03489666666667,25.761065 38.038005,25.761031666666668 38.03897333333333,25.760978333333334 38.04107166666667,25.760888333333334 38.04409,25.760783333333332 38.047176666666665,25.760716666666667 38.048705,25.760591666666667 38.05172833333334,25.76058 38.052236666666666,25.76056833333333 38.05274,25.760483333333333 38.05478,25.760291666666667 38.05782333333333,25.76011 38.061341666666664,25.760041666666666 38.06290333333333,25.759946666666668 38.06433333333333,25.759711666666668 38.067985,25.759498333333333 38.070456666666665,25.759443333333333 38.07105166666667,25.759118333333333 38.07398333333333,25.758231666666667 38.083058333333334,25.75818 38.083615,25.757105 38.093716666666666,25.75657 38.097775,25.756168333333335 38.10078333333333,25.755735 38.10389166666667,25.75568833333333 38.1043,25.755435 38.10695,25.75418833333333 38.11553333333333,25.753963333333335 38.116545,25.753263333333333 38.119566666666664,25.75255 38.12263333333333,25.751871666666666 38.125595,25.75116166666667 38.12863333333333,25.750928333333334 38.12970166666667,25.75049 38.13168833333334,25.74911 38.137856666666664,25.748408333333334 38.14087333333333,25.745308333333334 38.15428,25.744585 38.15739,25.74379 38.16093,25.742408333333334 38.167055,25.74089 38.173735,25.740138333333334 38.176815,25.739415 38.179845,25.737236666666668 38.18967166666667,25.736273333333333 38.193705,25.736393333333332 38.19319,25.730586666666667 38.21955833333333,25.730015 38.222605,25.729708333333335 38.225608333333334,25.729561666666665 38.229126666666666,25.729495 38.232153333333336,25.729486666666666 38.233215,25.729501666666668 38.235215,25.729593333333334 38.23875666666667,25.729445 38.24225,25.729106666666667 38.246315,25.72882 38.24885833333333,25.728763333333333 38.24936833333334,25.728401666666667 38.25241833333333,25.728041666666666 38.255516666666665,25.727641666666667 38.259031666666665,25.727291666666666 38.26208833333333,25.726976666666665 38.26512,25.726641666666666 38.26823,25.725823333333334 38.274835,25.725291666666667 38.27795,25.723403333333334 38.28861166666667,25.723148333333334 38.290085,25.721861666666666 38.29671666666667,25.72035 38.30275,25.717283333333334 38.31585,25.716571666666667 38.31885,25.715881666666668 38.32193,25.715248333333335 38.324895,25.714935 38.326411666666665,25.714605 38.327976666666665,25.714511666666667 38.32843,25.714028333333335 38.33095,25.713491666666666 38.33399166666667,25.712903333333333 38.33707,25.71231 38.34003,25.71172 38.34308333333333,25.711226666666665 38.346041666666665,25.710805 38.34905333333333,25.71043 38.351998333333334,25.70972 38.35810333333333,25.708963333333333 38.36522166666666,25.708728333333333 38.36826166666667,25.708296666666666 38.37434666666667,25.708211666666667 38.37582333333334,25.708146666666668 38.377401666666664,25.708033333333333 38.383518333333335,25.708055 38.387075,25.708085 38.39308,25.708053333333332 38.39611,25.70814 38.40218,25.70815 38.40519333333334,25.708185 38.40815166666667,25.708295 38.41267166666667,25.708568333333332 38.42368166666667,25.70865 38.4271,25.708716666666668 38.43008666666667,25.708808333333334 38.432965,25.709243333333333 38.44667833333333,25.709455 38.45267333333334,25.709515 38.455645,25.70961 38.45861,25.709686666666666 38.461571666666664,25.709785 38.46507,25.709821666666667 38.46650666666667,25.710046666666667 38.475516666666664,25.710141666666665 38.47851333333333,25.710326666666667 38.484503333333336,25.710506666666667 38.49055833333333,25.71061 38.49362166666667,25.71071166666667 38.49666666666667,25.710818333333332 38.499718333333334,25.710918333333332 38.502806666666665,25.711021666666667 38.505873333333334,25.71114 38.509008333333334,25.711391666666668 38.51621166666666,25.711501666666667 38.51934833333333,25.711601666666667 38.522436666666664,25.711645 38.52348333333333,25.711716666666668 38.52558333333333,25.711895 38.533543333333334,25.71195833333333 38.53671166666667,25.711945 38.543525,25.711923333333335 38.547221666666665,25.711868333333335 38.55036333333334,25.711768333333332 38.554028333333335,25.711736666666667 38.55708666666666,25.711741666666665 38.561661666666666,25.71175 38.57176666666667,25.711688333333335 38.57479333333333,25.71165 38.577835,25.71160666666667 38.58132333333333,25.711556666666667 38.584355,25.711525 38.587896666666666,25.711508333333335 38.59093,25.711503333333333 38.594471666666664,25.711491666666667 38.598076666666664,25.711525 38.605106666666664,25.71153 38.606118333333335,25.711495 38.60961,25.711581666666667 38.62165666666667,25.711623333333332 38.62463666666667,25.711758333333332 38.634141666666665,25.711495 38.639065,25.711143333333332 38.64507,25.71106 38.64651666666666,25.710656666666665 38.65450833333333,25.710161666666668 38.66551333333334,25.710041666666665 38.66855833333333,25.709936666666668 38.671506666666666,25.709806666666665 38.675016666666664,25.7096 38.681555,25.70921166666667 38.69255166666667,25.709073333333333 38.696086666666666,25.709036666666666 38.697138333333335,25.70892 38.70158833333333,25.708475 38.71171,25.708273333333334 38.71481,25.708048333333334 38.717816666666664,25.70756 38.72503833333333,25.707135 38.73211333333333,25.706913333333333 38.73518,25.70644 38.73815666666667,25.705503333333333 38.74574,25.704878333333333 38.751686666666664,25.70429 38.757506666666664,25.702958333333335 38.77113666666666,25.702391666666667 38.77699666666667,25.702105 38.77995666666666,25.701145 38.790663333333335,25.700685 38.793123333333334,25.700406666666666 38.79457166666667,25.697971666666668 38.82711333333334,25.69757 38.83587,25.697551666666666 38.836301666666664,25.69743 38.839196666666666,25.697408333333332 38.83967833333333,25.697175 38.845971666666664,25.696905 38.8529,25.696533333333335 38.86061333333333,25.69634 38.864583333333336,25.696203333333333 38.867981666666665,25.696063333333335 38.87092333333333,25.695916666666665 38.873866666666665,25.69578 38.876805,25.694716666666668 38.905613333333335,25.694661666666665 38.907561666666666,25.694511666666667 38.912058333333334,25.69442 38.915515,25.694256666666668 38.92191166666667,25.694223333333333 38.92290833333333,25.694171666666666 38.924825,25.694125 38.92679,25.694088333333333 38.92777666666667,25.693931666666668 38.93369333333333,25.693771666666667 38.93959,25.693718333333333 38.94167,25.693696666666668 38.94260833333333,25.693461666666668 38.956065,25.693513333333332 38.95207166666667,25.693313333333332 38.9645,25.69324 38.972413333333336,25.692968333333333 38.976796666666665,25.692761666666666 38.97969166666667,25.692548333333335 38.98269833333333,25.69232166666667 38.985661666666665,25.692108333333334 38.98860833333333,25.692001666666666 38.99003166666667,25.69174 38.993075,25.691445 38.9966,25.691203333333334 38.99952666666667,25.69101 39.00199,25.690926666666666 39.003025,25.690683333333332 39.00597833333333,25.690466666666666 39.00895166666667,25.690235 39.0119,25.689993333333334 39.01486166666667,25.689956666666667 39.015305,25.689713333333334 39.01829333333333,25.689466666666668 39.021231666666665,25.689218333333333 39.024175,25.689001666666666 39.02710666666667,25.688795 39.029981666666664,25.688551666666665 39.03293333333333,25.688448333333334 39.03429166666667,25.688278333333333 39.03677166666667,25.688083333333335 39.039653333333334,25.687823333333334 39.04355833333333,25.687606666666667 39.04702833333333,25.687273333333334 39.05094833333333,25.687008333333335 39.054381666666664,25.686748333333334 39.057381666666664,25.686433333333333 39.060325,25.68579 39.067148333333336,25.685525 39.07011,25.685238333333334 39.07308,25.684926666666666 39.076055,25.684601666666666 39.07904,25.683771666666665 39.086571666666664,25.683453333333333 39.08954833333333,25.683181666666666 39.092166666666664,25.68286833333333 39.095191666666665,25.68216 39.101755,25.681855 39.104701666666664,25.681743333333333 39.10577333333333,25.681516666666667 39.107798333333335,25.681148333333333 39.110865,25.680803333333333 39.11390333333333,25.680456666666668 39.11695,25.680123333333334 39.119933333333336,25.680123333333334 39.119933333333336,25.679791666666667 39.12301166666666,25.679398333333335 39.126551666666664,25.67898 39.130071666666666,25.678611666666665 39.133105,25.678448333333332 39.13463333333333,25.67781 39.14023666666667,25.677465 39.14328666666667,25.676776666666665 39.14894666666667,25.67658 39.15043,25.676251666666666 39.152995,25.675886666666667 39.15602166666667,25.675866666666668 39.16229333333333,25.675985 39.16535,25.675985 39.16535,25.676701666666666 39.17884166666666,25.676998333333334 39.181551666666664,25.677045 39.18196833333333,25.677393333333335 39.18509666666667,25.677763333333335 39.188273333333335,25.679631666666666 39.20398,25.68072 39.212781666666665,25.680455 39.21069833333333,25.681578333333334 39.220061666666666,25.682363333333335 39.22624166666667,25.682613333333332 39.227743333333336,25.682881666666667 39.22929,25.684465 39.24319,25.684953333333333 39.249295,25.685416666666665 39.252363333333335,25.68720666666667 39.25888833333333,25.687376666666665 39.25944833333333,25.688216666666666 39.262475,25.690478333333335 39.27158,25.690965 39.27359,25.690735 39.27263666666666,25.692088333333334 39.27809,25.69308 39.28209666666667,25.693805 39.285111666666666,25.69527666666667 39.2911,25.696908333333333 39.29768,25.697648333333333 39.300621666666665,25.698411666666665 39.30361833333333,25.699183333333334 39.306688333333334,25.699295 39.307141666666666,25.699923333333334 39.30965333333333,25.700676666666666 39.31272166666667,25.701553333333333 39.3162,25.702296666666665 39.319185,25.70308 39.322311666666664,25.70308 39.322311666666664,25.703453333333332 39.32377,25.704246666666666 39.326818333333335,25.705865 39.333333333333336,25.706351666666666 39.33536,25.70885 39.345525,25.709623333333333 39.34855666666667,25.710366666666665 39.351535,25.71013 39.35057166666667,25.711138333333334 39.35462666666667,25.71193 39.35771,25.712683333333334 39.36069666666667,25.713455 39.36378833333333,25.714176666666667 39.366746666666664,25.715198333333333 39.370866666666664,25.71573 39.372888333333336,25.717253333333332 39.37898166666667,25.717873333333333 39.38147,25.718 39.381975,25.71878166666667 39.38504,25.719526666666667 39.38807833333333,25.720266666666667 39.39121166666666,25.72114 39.39474166666667,25.72114 39.39474166666667,25.723538333333334 39.404415,25.724296666666667 39.40744,25.725096666666666 39.41054333333334,25.725873333333332 39.41359833333333,25.726628333333334 39.41661333333333,25.727456666666665 39.41971,25.728251666666665 39.42272166666667,25.729058333333334 39.425825,25.729876666666666 39.42888833333333,25.731546666666667 39.43499333333333,25.732378333333333 39.437981666666666,25.734026666666665 39.44425833333333,25.73466 39.44678666666667,25.734793333333332 39.447298333333336,25.735545 39.45039333333333,25.736211666666666 39.45351,25.736896666666667 39.45661,25.737603333333333 39.45971,25.738633333333333 39.46434166666667,25.739781666666666 39.46944,25.74061 39.472485,25.741575 39.476076666666664,25.742378333333335 39.47906833333333,25.743143333333332 39.48218,25.744005 39.485173333333336,25.744963333333335 39.48831666666667,25.745888333333333 39.49137,25.749753333333334 39.504425,25.7516 39.510435,25.752535 39.5135,25.756255 39.52548,25.757425 39.52911666666667,25.758346666666668 39.53214833333333,25.75813 39.53865833333333,25.759631666666667 39.552735,25.761883333333333 39.55865,25.763031666666667 39.561658333333334,25.76808 39.574558333333336,25.770316666666666 39.58038333333333,25.77285 39.586905,25.774013333333333 39.58986,25.77520833333333 39.592951666666664,25.77754 39.5989,25.784788333333335 39.61385833333333,25.786366666666666 39.616753333333335,25.7895 39.622475,25.79104 39.625295,25.797925 39.63657166666667,25.799775 39.63928333333333,25.803543333333334 39.64480833333333,25.805953333333335 39.648401666666665,25.807853333333334 39.65119333333333,25.809738333333332 39.653951666666664,25.813521666666666 39.65955,25.816001666666665 39.66323833333333,25.817891666666668 39.66605833333333,25.81977 39.668825,25.82189 39.671973333333334,25.823801666666668 39.67478666666667,25.825935 39.677971666666664,25.825935 39.677971666666664,25.827771666666667 39.680683333333334,25.831576666666667 39.686295,25.83332 39.68886666666667,25.835023333333332 39.69143,25.835248333333332 39.69177166666667,25.836721666666666 39.693995,25.838395 39.696486666666665,25.838918333333332 39.697253333333336,25.84014833333333 39.699261666666665,25.841473333333333 39.701591666666666,25.842701666666667 39.70397333333333,25.843901666666667 39.70652,25.845045 39.708823333333335,25.846166666666665 39.7113,25.84716 39.71339,25.85005 39.719438333333336,25.850995 39.72141166666667,25.851843333333335 39.723165,25.852411666666665 39.724363333333336,25.853433333333335 39.72656666666666,25.854243333333333 39.72806666666666,25.854983333333333 39.73074,25.854983333333333 39.73074,25.855726666666666 39.73299333333333,25.856033333333333 39.73402333333333,25.856118333333335 39.735265,25.85607 39.73553666666667,25.855601666666665 39.736848333333334,25.85502 39.73786166666667,25.854675 39.738355,25.854325 39.738815,25.853653333333334 39.73956166666667,25.852965 39.74023666666667,25.85284 39.740341666666666,25.852056666666666 39.741015,25.851238333333335 39.741585,25.85091 39.74180166666667,25.850446666666667 39.74207,25.84971 39.74252166666667,25.849076666666665 39.742915,25.849013333333332 39.74295166666667,25.848373333333335 39.74335,25.84753 39.74386833333333,25.847156666666667 39.744085,25.846191666666666 39.74462,25.846156666666666 39.744655,25.845715 39.74496333333333,25.845315 39.745185,25.844508333333334 39.74568166666667,25.84416 39.745898333333336,25.84380833333333 39.74612,25.843481666666666 39.746295,25.843351666666667 39.74638,25.843186666666668 39.74647,25.843165 39.74648166666667,25.842865 39.746635,25.84255 39.74679,25.842315 39.74689,25.842043333333333 39.74702833333333,25.841913333333334 39.747095,25.841786666666668 39.74715166666667,25.841528333333333 39.74725333333333,25.841241666666665 39.74734,25.84059 39.747485,25.840453333333333 39.747508333333336,25.840176666666668 39.747573333333335,25.839861666666668 39.74760166666667,25.83956 39.74760666666667,25.83907333333333 39.74764833333333,25.838991666666665 39.74764666666667,25.838641666666668 39.747645,25.838276666666665 39.74763166666666,25.838253333333334 39.74763,25.837918333333334 39.74762,25.837583333333335 39.74762333333334,25.837555 39.747625,25.837346666666665 39.74762166666667,25.837021666666665 39.747616666666666,25.836586666666665 39.74762166666667,25.836535 39.747625,25.83616 39.7476,25.835891666666665 39.747595,25.835736666666666 39.74758166666667,25.834965 39.747551666666666,25.834933333333332 39.747553333333336,25.834073333333333 39.747508333333336,25.833893333333332 39.74748666666667,25.833581666666667 39.747501666666665,25.833313333333333 39.74749166666667,25.833286666666666 39.74748833333334,25.83259 39.74743333333333,25.832438333333332 39.747391666666665,25.831918333333334 39.747395,25.83171 39.747425,25.831571666666665 39.74743,25.83130166666667 39.74742833333333,25.830983333333332 39.747416666666666,25.830851666666668 39.747418333333336,25.8303 39.74738833333333,25.830045 39.747411666666665,25.829666666666668 39.74740666666667,25.829383333333332 39.747435,25.829328333333333 39.747436666666665,25.828763333333335 39.747445,25.82863 39.747506666666666,25.828186666666667 39.74748666666667,25.827878333333334 39.74751166666667,25.827778333333335 39.747506666666666,25.827545 39.747521666666664,25.827213333333333 39.7475,25.827093333333334 39.74749333333333,25.826988333333333 39.74751666666667,25.826608333333333 39.747505,25.826338333333332 39.747515,25.826121666666666 39.74752333333333,25.825361666666666 39.747503333333334,25.82533 39.747501666666665,25.825036666666666 39.74751666666667,25.824751666666668 39.747566666666664,25.824596666666668 39.747555,25.824443333333335 39.74755833333333,25.823868333333333 39.747593333333334,25.823788333333333 39.74760166666667,25.8235 39.747636666666665,25.82318 39.747685,25.82318 39.747685,25.82291 39.74771,25.822665 39.74774333333333,25.822491666666668 39.74775666666667,25.8224 39.74776333333333,25.821823333333334 39.747843333333336,25.821805 39.74784833333333,25.821556666666666 39.74787833333333,25.821305 39.7479,25.821035 39.74790333333333,25.821035 39.74790333333333,25.820756666666668 39.747953333333335,25.82046 39.747971666666665,25.820385 39.747971666666665,25.81978833333333 39.74798,25.819546666666668 39.747975,25.819493333333334 39.747975,25.81918 39.747978333333336,25.818865 39.747953333333335,25.818768333333335 39.74794833333333,25.818513333333332 39.74796,25.818121666666666 39.74794166666667,25.817933333333333 39.747925,25.817806666666666 39.747895,25.817456666666665 39.747875,25.81712 39.74785333333333,25.817038333333333 39.747841666666666,25.816356666666668 39.74782166666667,25.81618 39.74780166666667,25.815608333333333 39.74773166666667,25.815226666666668 39.747663333333335,25.814831666666667 39.747635,25.814441666666667 39.74757666666667,25.814121666666665 39.74751833333333,25.814056666666666 39.74751,25.813761666666668 39.74747833333333,25.813203333333334 39.74738333333333,25.8128 39.747303333333335,25.812346666666667 39.747263333333336,25.811938333333334 39.747186666666664,25.811443333333333 39.74709333333333,25.810991666666666 39.74700166666667,25.81056166666667 39.74694,25.809215 39.746685,25.808895 39.746635,25.808746666666668 39.746613333333336,25.808476666666667 39.746555,25.80828 39.74655,25.807928333333333 39.746473333333334,25.807135 39.746355,25.806673333333332 39.74628333333333,25.80621 39.746246666666664,25.805805 39.74622,25.80521166666667 39.746116666666666,25.804816666666667 39.74606,25.804436666666668 39.74597166666667,25.804001666666668 39.745868333333334,25.803551666666667 39.745821666666664,25.80262 39.745668333333334,25.802196666666667 39.74558833333333,25.801738333333333 39.74552666666666,25.80129833333333 39.745455,25.800443333333334 39.745266666666666,25.799445 39.74538166666667,25.797013333333332 39.74774166666667,25.796798333333335 39.748751666666664,25.797911666666668 39.752015,25.7988 39.75374333333333,25.799083333333332 39.75438,25.7992 39.75463833333333,25.799696666666666 39.75572833333333,25.801111666666667 39.75877166666667,25.802005 39.76092833333333,25.80402 39.76531,25.805031666666668 39.76753333333333,25.807391666666668 39.772483333333334,25.808473333333332 39.774791666666665,25.809608333333333 39.77722333333333,25.81071 39.77953,25.811208333333333 39.780676666666665,25.813243333333332 39.78426833333333,25.816056666666668 39.78892166666667,25.823601666666665 39.801208333333335,25.826451666666667 39.805805,25.827835 39.808065,25.830933333333334 39.813046666666665,25.831668333333333 39.81424166666667,25.833078333333333 39.81655666666666,25.834025 39.818085,25.83688 39.82268,25.83832 39.82503666666667,25.841355 39.82997666666667,25.841355 39.82997666666667,25.842555 39.83198333333333,25.842786666666665 39.832368333333335,25.84418 39.83463,25.845821666666666 39.837338333333335,25.848225 39.84123,25.849631666666667 39.84356,25.85103833333333 39.84582833333333,25.852485 39.848168333333334,25.85481 39.85201166666667,25.85481 39.85201166666667,25.8557 39.85346666666667,25.858036666666667 39.857295,25.858496666666667 39.85805833333333,25.85944 39.859635,25.860353333333332 39.861178333333335,25.860788333333332 39.86190833333333,25.861715 39.86349333333333,25.862128333333334 39.86423166666667,25.863266666666668 39.866193333333335,25.866346666666665 39.87060833333334,25.867888333333333 39.872805,25.869413333333334 39.875015,25.871436666666668 39.87746333333333,25.871755 39.87784666666667,25.87346 39.87991666666667,25.87346 39.87991666666667,25.87346 39.87991666666667,25.8752 39.88208,25.876655 39.883718333333334,25.877003333333334 39.88408666666667,25.878555 39.88572333333333,25.878911666666667 39.886065,25.880533333333332 39.88752,25.88095 39.88786833333333,25.882668333333335 39.889235,25.883028333333332 39.88952,25.883423333333333 39.889835,25.88489 39.89098166666667,25.885615 39.891558333333336,25.88702 39.892678333333336,25.888545 39.89387333333333,25.889235 39.89440833333333,25.891731666666665 39.896365,25.893211666666666 39.89752166666667,25.893895 39.89805666666667,25.893895 39.89805666666667,25.895435 39.89924833333333,25.89646 39.90004666666667,25.900085 39.902856666666665,25.902281666666667 39.904555,25.902726666666666 39.904895,25.90447 39.90625166666667,25.905231666666666 39.906845,25.90556 39.90709833333333,25.906685 39.907975,25.908083333333334 39.90909166666667,25.908083333333334 39.90909166666667,25.909206666666666 39.90996833333333,25.910296666666667 39.910806666666666,25.911023333333333 39.911368333333336,25.912081666666666 39.91218833333333,25.913176666666665 39.91303666666666,25.914673333333333 39.91419166666667,25.916161666666667 39.91531666666667,25.917238333333334 39.91612833333333,25.918011666666665 39.916716666666666,25.91838 39.91699833333333,25.922845 39.920355,25.925088333333335 39.92200833333333,25.931706666666667 39.926965,25.933555 39.92834833333333,25.938736666666667 39.932251666666666,25.939835 39.93308,25.939835 39.93308,25.940945 39.93389833333333,25.942001666666666 39.9347,25.944215 39.936391666666665,25.94604 39.93777,25.947846666666667 39.93915,25.948208333333334 39.93942666666667,25.950358333333334 39.941085,25.952148333333334 39.94244833333333,25.9525 39.942726666666665,25.954976666666667 39.944665,25.957066666666666 39.94634833333333,25.961905 39.95025,25.962581666666665 39.95081166666667,25.962581666666665 39.95081166666667,25.967288333333332 39.95473833333333,25.969951666666667 39.95694833333334,25.971945 39.958655,25.971945 39.958655,25.971945 39.958655,25.97391 39.960305,25.975891666666666 39.96200666666667,25.97787 39.96373,25.978506666666668 39.964241666666666,25.979846666666667 39.96530166666667,25.980525 39.965761666666666,25.981255 39.96623,25.98347 39.96763833333333,25.983876666666667 39.96789666666667,25.986138333333333 39.969298333333334,25.987216666666665 39.969993333333335,25.988761666666665 39.97094833333333,25.989906666666666 39.97156666666667,25.99114 39.97221166666667,25.993148333333334 39.973255,25.993546666666667 39.973456666666664,25.994343333333333 39.973868333333336,25.996725 39.975098333333335,25.99758 39.975541666666665,25.998401666666666 39.97596333333333,25.999533333333332 39.97656,25.999976666666665 39.97679,26.000381666666666 39.976995,26.000788333333333 39.977203333333335,26.002816666666668 39.978273333333334,26.005271666666665 39.979505,26.005271666666665 39.979505,26.007768333333335 39.98077166666667,26.010223333333332 39.982036666666666,26.01273 39.983108333333334,26.015413333333335 39.98402,26.018115 39.984768333333335,26.02375333333333 39.98608,26.02661 39.98666166666667,26.029586666666667 39.987208333333335,26.032581666666665 39.98777166666667,26.035515 39.98829166666667,26.037005 39.98856833333333,26.0385 39.988841666666666,26.043471666666665 39.989755,26.042428333333334 39.989558333333335,26.048955 39.99075666666667,26.051888333333334 39.991283333333335,26.05493 39.99182833333333,26.06198 39.993053333333336,26.069113333333334 39.99435,26.070581666666666 39.99465,26.073648333333335 39.995266666666666,26.078173333333332 39.99619833333333,26.081151666666667 39.99684,26.0842 39.99747333333333,26.087156666666665 39.99807166666667,26.090183333333332 39.99869833333333,26.093545 39.99941166666667,26.099531666666667 40.00057833333333,26.102488333333334 40.0012,26.11202 40.00307166666666,26.11498 40.003656666666664,26.117898333333333 40.004221666666666,26.120921666666668 40.004765,26.12484 40.005518333333335,26.12831 40.00615,26.131756666666668 40.00680333333333,26.13577 40.00754666666667,26.139091666666666 40.008165,26.142055 40.00868833333333,26.14507 40.00920333333333,26.151136666666666 40.01023166666667,26.157583333333335 40.01139333333333,26.163193333333332 40.01233333333333,26.166205 40.0128,26.168711666666667 40.01321,26.171143333333333 40.01362833333334,26.172691666666665 40.01389,26.173458333333333 40.01401666666667,26.17564 40.01438,26.17755 40.014695,26.17965166666667 40.01505,26.183726666666665 40.015725,26.185225 40.015995,26.186836666666668 40.016235,26.197485 40.018208333333334,26.199141666666666 40.01855166666667,26.202576666666666 40.019268333333336,26.204126666666667 40.019571666666664,26.207671666666666 40.020255,26.209615 40.02063833333333,26.211915 40.021095,26.214503333333333 40.02159666666667,26.217165 40.022108333333335,26.220211666666668 40.02268333333333,26.223413333333333 40.02330333333333,26.23106 40.024775,26.234591666666667 40.02547166666667,26.242636666666666 40.02706333333333,26.24632 40.027791666666666,26.253913333333333 40.029291666666666,26.257713333333335 40.03003,26.266498333333335 40.03205833333333,26.270241666666667 40.033876666666664,26.273271666666666 40.035873333333335,26.276706666666666 40.03825833333333,26.280771666666666 40.041095,26.284383333333334 40.043598333333335,26.287406666666666 40.045698333333334,26.2905 40.047825,26.293606666666665 40.04994,26.29748 40.05288,26.30137 40.05586666666667,26.304818333333333 40.05847166666667,26.312926666666666 40.064841666666666,26.318676666666665 40.06989333333333,26.321273333333334 40.07218666666667,26.328875 40.078865,26.332195 40.08177166666667,26.335593333333332 40.084716666666665,26.33806166666667 40.086835,26.341416666666667 40.08976166666667,26.347186666666666 40.09475,26.35276 40.09958666666667,26.355135 40.101668333333336,26.35787 40.104075,26.36018333333333 40.106175,26.362403333333333 40.108205,26.364736666666666 40.11033333333334,26.371983333333333 40.116526666666665,26.374536666666668 40.11851,26.379516666666667 40.122503333333334,26.387896666666666 40.13374,26.39055 40.139245,26.391621666666666 40.1436,26.39184 40.14677833333333,26.392085 40.15212833333333,26.392038333333332 40.155161666666665,26.39197 40.15819833333333,26.38767 40.19212,26.388911666666665 40.19580333333333,26.391101666666668 40.19837833333333,26.396003333333333 40.200858333333336,26.399771666666666 40.201908333333336,26.403638333333333 40.202885,26.407543333333333 40.203903333333336,26.411466666666666 40.204945,26.415388333333333 40.205996666666664,26.419335 40.207045,26.42331 40.20809666666667,26.427296666666667 40.209131666666664,26.43333833333333 40.21067166666667,26.437381666666667 40.211688333333335,26.44144 40.212716666666665,26.446186666666666 40.21391166666667,26.450326666666665 40.21497166666666,26.45448 40.216026666666664,26.458585 40.217063333333336,26.462616666666666 40.218055,26.466678333333334 40.21919333333334,26.470956666666666 40.22090166666667,26.47486 40.223173333333335,26.478151666666665 40.22526666666667,26.48257 40.22804333333333,26.485851666666665 40.23010166666667,26.489775 40.232505,26.49365166666667 40.234883333333336,26.498773333333332 40.238055,26.515955 40.24945833333334,26.602255 40.308845,26.605331666666668 40.311101666666666,26.623638333333332 40.325606666666665,26.626745 40.328335,26.629121666666666 40.33045166666667,26.631446666666665 40.33251,26.633776666666666 40.334585,26.636136666666665 40.33667833333333,26.63847 40.33875833333333,26.641621666666666 40.341575,26.643933333333333 40.343765,26.646721666666668 40.346465,26.649835 40.349675,26.660966666666667 40.36126333333333,26.664511666666666 40.36488833333333,26.66685 40.367305,26.66925833333333 40.369798333333335,26.671601666666668 40.37221,26.677 40.377851666666665,26.680263333333333 40.380845,26.683581666666665 40.383556666666664,26.686158333333335 40.38556833333333,26.688295 40.387256666666666,26.690403333333332 40.388963333333336,26.693086666666666 40.39112166666666,26.695586666666667 40.393143333333335,26.698695 40.39563,26.703201666666665 40.399165,27.13773 40.54745333333333,27.207683333333332 40.57054333333333,27.25905 40.58768333333333,27.26319833333333 40.588935,27.289511666666666 40.59733166666667,27.295228333333334 40.59948333333333,27.300338333333332 40.601735,27.306418333333333 40.60465333333333,27.311325 40.60697,27.316108333333332 40.609405,27.33508 40.61898166666667,27.339345 40.621155,27.34371833333333 40.62329833333333,27.3493 40.62592166666666,27.35375833333333 40.627975,27.358283333333333 40.63003333333333,27.362115 40.631771666666666,27.376353333333334 40.637993333333334,27.38151 40.64022833333333,27.386763333333334 40.64249,27.394746666666666 40.64596,27.39985666666667 40.648175,27.405145 40.65043,27.409183333333335 40.652163333333334,27.418475 40.65602666666667,27.428525 40.660375,27.44112 40.665755,27.44658 40.66808666666667,27.456183333333332 40.67205833333333,27.456736666666668 40.672268333333335,27.463148333333333 40.674663333333335,27.46518 40.67539333333333,27.46941 40.67693333333333,27.47996 40.680708333333335,27.480665 40.68095666666667,27.485596666666666 40.682716666666664,27.489781666666666 40.684241666666665,27.490548333333333 40.68451666666667,27.495406666666668 40.68624333333333,27.495406666666668 40.68624333333333,27.499675 40.68777166666667,27.502368333333333 40.68875666666667,27.503751666666666 40.68926833333333,27.507896666666667 40.69079833333333,27.51203 40.6923,27.51346 40.69283166666666,27.521445 40.69580166666667,27.525446666666667 40.69728666666666,27.529465 40.69873833333333,27.531531666666666 40.699495,27.533475 40.700205,27.536128333333334 40.70115333333333,27.53739 40.70160166666667,27.540863333333334 40.702875,27.54147 40.7031,27.545511666666666 40.70455166666667,27.550271666666667 40.70610666666666,27.555216666666666 40.70759,27.557191666666668 40.70819,27.56063333333333 40.709203333333335,27.56132 40.7094,27.565438333333333 40.71055833333333,27.566755 40.71091666666667,27.571681666666667 40.712221666666665,27.575845 40.71321666666667,27.580115 40.714196666666666,27.584195 40.715086666666664,27.585608333333333 40.715381666666666,27.590636666666665 40.716408333333334,27.59692 40.71763,27.6026 40.71872666666667,27.603383333333333 40.71888,27.607645 40.719728333333336,27.608345 40.71989833333333,27.61186 40.72067666666667,27.613986666666666 40.721106666666664,27.61675333333333 40.72163833333333,27.619578333333333 40.72217166666667,27.62169 40.72257,27.625923333333333 40.723351666666666,27.629398333333334 40.72396,27.630251666666666 40.724111666666666,27.635908333333333 40.725115,27.64161 40.726013333333334,27.642251666666667 40.72611166666667,27.64661 40.726775,27.648046666666666 40.72701333333333,27.651668333333333 40.727518333333336,27.65311833333333 40.72771,27.65311833333333 40.72771,27.656726666666668 40.72819666666667,27.6596 40.72855833333333,27.664653333333334 40.729095,27.671175 40.729706666666665,27.676275 40.730093333333336,27.681255 40.73048166666667,27.686401666666665 40.73085666666667,27.691456666666667 40.73114,27.69651 40.731408333333334,27.702348333333333 40.731696666666664,27.707943333333333 40.731985,27.71296 40.73217833333333,27.75041 40.733105,27.75263 40.73316166666667,27.755511666666667 40.73322666666667,27.763818333333333 40.733401666666666,27.769675 40.73353,27.776346666666665 40.733641666666664,27.77716 40.73365666666667,27.783746666666666 40.73379333333333,27.788183333333333 40.733895,27.789583333333333 40.73393333333333,27.793346666666668 40.734028333333335,27.794821666666667 40.73405833333333,27.797691666666665 40.73410666666667,27.79991 40.734135,27.802198333333333 40.73416,27.80665 40.73417333333333,27.811106666666667 40.73426666666667,27.813265 40.73429,27.81625 40.734343333333335,27.822311666666668 40.734445,27.823058333333332 40.734458333333336,27.827493333333333 40.73453333333333,27.828095 40.734541666666665,27.834951666666665 40.734638333333336,27.841011666666667 40.73473166666667,27.8455 40.7348,27.849915 40.73485,27.855228333333333 40.73490666666667,27.860465 40.73497166666667,27.861138333333333 40.73498166666667,27.8649 40.735045,27.86565166666667 40.735055,27.869481666666665 40.73515166666667,27.871598333333335 40.735055,27.875526666666666 40.735135,27.877721666666666 40.735216666666666,27.880006666666667 40.735315,27.88383 40.73552166666666,27.884506666666667 40.73552166666666,27.889063333333333 40.735616666666665,27.893618333333333 40.73574833333333,27.894455 40.73578666666667,27.898258333333334 40.735926666666664,27.900461666666665 40.73603833333333,27.902813333333334 40.73618833333333,27.906666666666666 40.736423333333335,27.907341666666667 40.73647,27.911875 40.73679666666666,27.911875 40.73679666666666,27.91861 40.737375,27.92385833333333 40.737825,27.929275 40.73822,27.93525 40.73878666666667,27.93827 40.739108333333334,27.94128 40.73949833333333,27.947191666666665 40.740285,27.95919 40.74166833333334,27.96525 40.74233,27.97051 40.742895,27.976565 40.74355166666667,27.98164 40.744078333333334,27.986876666666667 40.744658333333334,27.992141666666665 40.74523,27.998013333333333 40.74587833333333,28.000241666666668 40.746113333333334,28.006911666666667 40.746781666666664,28.012195 40.747355,28.018025 40.74800666666667,28.023261666666667 40.748535,28.028995 40.74915166666667,28.035703333333334 40.74984666666667,28.041711666666668 40.750478333333334,28.048363333333334 40.751035,28.048363333333334 40.751035,28.05582666666667 40.75187666666667,28.063136666666665 40.752626666666664,28.079398333333334 40.75429,28.086813333333332 40.75500666666667,28.086813333333332 40.75500666666667,28.098681666666668 40.75615666666667,28.103211666666667 40.756595,28.109105 40.75715666666667,28.116613333333333 40.75785666666667,28.114235 40.75763666666667,28.128458333333334 40.758995,28.134336666666666 40.75953166666667,28.146965 40.76078833333333,28.15211 40.76128333333333,28.157178333333334 40.761763333333334,28.16239 40.76226,28.168986666666665 40.762925,28.17184 40.763198333333335,28.174031666666668 40.76340166666667,28.179953333333334 40.763958333333335,28.185123333333333 40.76450166666667,28.189465 40.765055,28.194448333333334 40.76567333333333,28.20035 40.76641333333333,28.199538333333333 40.766308333333335,28.215418333333332 40.76855166666667,28.220443333333332 40.769345,28.225478333333335 40.770138333333335,28.22759 40.770425,28.231313333333333 40.77091166666667,28.231968333333334 40.770995,28.237163333333335 40.77162833333333,28.237163333333335 40.77162833333333,28.242926666666666 40.772353333333335,28.248823333333334 40.77308333333333,28.248823333333334 40.77308333333333,28.253103333333332 40.773615,28.253833333333333 40.77370166666667,28.258203333333334 40.774226666666664,28.259735 40.774415,28.262645 40.77478833333333,28.265493333333332 40.775155,28.267761666666665 40.775443333333335,28.269886666666668 40.775711666666666,28.272896666666668 40.776106666666664,28.276466666666668 40.776563333333335,28.27727 40.77666333333333,28.280845 40.77711,28.282241666666668 40.77728166666667,28.287486666666666 40.777835,28.292013333333333 40.77832,28.297076666666666 40.77885666666667,28.297896666666666 40.77894333333333,28.301566666666666 40.77932833333333,28.303966666666668 40.779558333333334,28.306071666666668 40.779763333333335,28.309991666666665 40.780155,28.311511666666668 40.78030666666667,28.31525 40.78072,28.318165 40.781043333333336,28.321168333333333 40.78134166666667,28.324248333333333 40.78167166666667,28.326505 40.78192166666667,28.328695 40.78216666666667,28.331715 40.78250666666667,28.333225 40.782673333333335,28.333225 40.782673333333335,28.337065 40.78311166666667,28.341536666666666 40.78360833333333,28.34305 40.78378333333333,28.346906666666666 40.78424,28.348416666666665 40.784418333333335,28.351375 40.78476666666667,28.354415 40.785138333333336,28.355935 40.785325,28.355935 40.785325,28.359818333333333 40.785795,28.36211 40.78608,28.365951666666668 40.78653833333333,28.372116666666667 40.78729333333333,28.379056666666667 40.78814833333333,28.383685 40.788736666666665,28.38908 40.789425,28.389775 40.78951166666667,28.395213333333334 40.79017666666667,28.39599 40.79027333333333,28.39992 40.79078,28.40157 40.79097333333333,28.404623333333333 40.791333333333334,28.40772 40.79172166666667,28.410335 40.79201666666667,28.413938333333334 40.792465,28.414716666666667 40.792555,28.419395 40.793105,28.420253333333335 40.793205,28.424938333333333 40.793726666666664,28.426426666666668 40.79389666666667,28.428773333333332 40.794175,28.429638333333333 40.79428,28.432 40.79456,28.434361666666668 40.79483166666667,28.437443333333334 40.795168333333336,28.43989 40.79543833333334,28.4429 40.79575833333333,28.444463333333335 40.79592666666667,28.448571666666666 40.79632,28.449281666666668 40.796385,28.450783333333334 40.79651833333333,28.45401 40.796825,28.454876666666667 40.796905,28.458661666666668 40.79725833333333,28.4619 40.79754833333333,28.46428 40.797765,28.467368333333333 40.798053333333336,28.470621666666666 40.798336666666664,28.472133333333332 40.79846666666667,28.473801666666667 40.798613333333336,28.47689 40.798898333333334,28.480145 40.799185,28.481653333333334 40.79931833333333,28.486406666666667 40.799746666666664,28.486406666666667 40.799746666666664,28.493563333333334 40.80036666666667,28.496818333333334 40.80063666666667,28.499201666666668 40.80088333333333,28.502375 40.80123666666667,28.505536666666668 40.801605,28.50872 40.801943333333334,28.511105 40.802195,28.513498333333335 40.80244833333333,28.517485 40.802875,28.51828 40.80295666666667,28.519875 40.803115,28.522275 40.803355,28.522995 40.803428333333336,28.528665 40.803995,28.534228333333335 40.80454833333334,28.538923333333333 40.805033333333334,28.539721666666665 40.80511166666667,28.543761666666665 40.80549333333333,28.545338333333333 40.805643333333336,28.548416666666668 40.80594833333333,28.55008 40.806115,28.55401833333333 40.806495,28.554885 40.806578333333334,28.560155 40.807073333333335,28.560155 40.807073333333335,28.56469166666667 40.80743833333333,28.56527833333333 40.807451666666665,28.566818333333334 40.80745833333334,28.57052 40.80741,28.574865 40.807375,28.576205 40.807363333333335,28.579028333333333 40.80725833333333,28.580503333333333 40.807183333333334,28.583223333333333 40.807,28.585243333333334 40.80685833333333,28.587481666666665 40.80672833333333,28.58888333333333 40.80665,28.591593333333332 40.806488333333334,28.59582 40.80623,28.599866666666667 40.80596666666667,28.600631666666665 40.80591833333333,28.60611 40.80555833333333,28.609033333333333 40.805346666666665,28.610291666666665 40.80525333333333,28.614533333333334 40.80497,28.616616666666665 40.80483666666667,28.618758333333332 40.8047,28.620761666666667 40.80457666666667,28.624235 40.804343333333335,28.62493 40.804291666666664,28.629175 40.804001666666665,28.628408333333333 40.804048333333334,28.640925 40.80320666666667,28.643705 40.803018333333334,28.647785 40.802733333333336,28.649218333333334 40.80264,28.651248333333335 40.802508333333336,28.651855 40.802465,28.653261666666666 40.80235833333333,28.655835 40.802166666666665,28.65726666666667 40.80204333333333,28.659783333333333 40.80185,28.661068333333333 40.80175666666667,28.664965 40.80147,28.672415 40.80090333333333,28.675453333333333 40.80065166666667,28.676195 40.80059166666667,28.679853333333334 40.80031,28.684235 40.799985,28.684848333333335 40.79994166666667,28.688538333333334 40.79965,28.687181666666667 40.79975833333334,28.695856666666668 40.799038333333336,28.69806 40.798723333333335,28.70068 40.79833,28.703316666666666 40.797893333333334,28.704405 40.79770833333333,28.70547 40.79752666666667,28.706868333333333 40.797313333333335,28.707418333333333 40.79722,28.709771666666665 40.796815,28.710403333333332 40.79669833333333,28.713256666666666 40.79624,28.713686666666668 40.796168333333334,28.717095 40.795608333333334,28.71751 40.79554,28.71971 40.79510666666667,28.72059 40.794935,28.72134 40.79483166666667,28.722816666666667 40.794783333333335,28.72424 40.794821666666664,28.72530666666667 40.794851666666666,28.727123333333335 40.79475333333333,28.727711666666668 40.794756666666665,28.729418333333335 40.79468,28.729956666666666 40.794713333333334,28.730836666666665 40.79465166666667,28.731063333333335 40.794705,28.73247 40.79493333333333,28.732776666666666 40.79499833333333,28.734071666666665 40.795181666666664,28.734248333333333 40.795208333333335,28.735558333333334 40.79534666666667,28.73600666666667 40.79538,28.736833333333333 40.79541666666667,28.737445 40.795413333333336,28.738245 40.795383333333334,28.738635 40.79535166666667,28.74046166666667 40.795233333333336,28.741723333333333 40.79515333333333,28.742198333333334 40.79515,28.742385 40.79514833333333,28.743708333333334 40.79513,28.744418333333332 40.79508833333333,28.745943333333333 40.79499666666667,28.746258333333333 40.79498,28.746943333333334 40.79488833333333,28.747263333333333 40.794845,28.74856 40.79463833333333,28.749513333333333 40.79450833333333,28.749513333333333 40.79450833333333,28.749831666666665 40.79445833333333,28.751163333333334 40.794275,28.75127 40.794265,28.75253 40.79414666666667,28.75271 40.79413,28.753226666666666 40.794075,28.75401 40.79398166666667,28.755013333333334 40.79383,28.755013333333334 40.79383,28.755543333333332 40.79376166666667,28.756058333333332 40.793686666666666,28.75677 40.79355,28.75711666666667 40.79349,28.75781 40.79338666666666,28.758148333333335 40.79333,28.758656666666667 40.793245,28.759145 40.79311833333333,28.759606666666667 40.79302833333333,28.76059 40.792838333333336,28.76059 40.792838333333336,28.76059 40.792838333333336,28.761075 40.792716666666664,28.762011666666666 40.792478333333335,28.761936666666667 40.792498333333334,28.762965 40.79226833333333,28.763283333333334 40.79219333333333,28.764945 40.79165833333333,28.76501 40.79164333333333,28.765316666666667 40.79159666666666,28.765791666666665 40.79145333333334,28.765791666666665 40.79145333333334,28.76677 40.79118666666667,28.766913333333335 40.791183333333336,28.767456666666668 40.79097,28.767703333333333 40.79090166666667,28.767946666666667 40.79082,28.76859 40.790641666666666,28.769193333333334 40.790465,28.76957833333333 40.79036333333333,28.769721666666666 40.790321666666664,28.770378333333333 40.79011666666667,28.770528333333335 40.790056666666665,28.771623333333334 40.789745,28.771395 40.789813333333335,28.771913333333334 40.78968,28.772278333333333 40.78957666666667,28.772985 40.78937166666667,28.773055 40.78935166666667,28.773966666666666 40.78906666666666,28.77411 40.78901333333334,28.774468333333335 40.788895,28.774815 40.78878,28.77565166666667 40.788518333333336,28.77572 40.788495,28.77603166666667 40.788378333333334,28.77805 40.78767333333333,28.778726666666667 40.78738666666667,28.779483333333335 40.787095,28.779856666666667 40.786948333333335,28.779961666666665 40.786905,28.7812 40.786415,28.781556666666667 40.78625,28.781845 40.786095,28.782731666666667 40.78569,28.783023333333333 40.785575,28.783381666666667 40.7854,28.783733333333334 40.78523,28.783913333333334 40.785158333333335,28.784433333333332 40.7849,28.785085 40.78456666666667,28.785085 40.78456666666667,28.785085 40.78456666666667,28.785676666666667 40.78426,28.786085 40.784076666666664,28.786411666666666 40.78391333333333,28.786781666666666 40.78374,28.787001666666665 40.783613333333335,28.787156666666668 40.78351,28.787805 40.78315333333333,28.788186666666668 40.78294,28.788403333333335 40.782783333333334,28.789106666666665 40.782381666666666,28.789161666666665 40.78234833333333,28.789723333333335 40.78207,28.789881666666666 40.78198,28.790176666666667 40.781753333333334,28.79059 40.78158333333333,28.791293333333332 40.781106666666666,28.79146 40.78102,28.79135 40.781076666666664,28.792041666666666 40.780676666666665,28.792378333333332 40.78044666666667,28.792583333333333 40.78030666666667,28.79305 40.780028333333334,28.793255 40.7799,28.793351666666666 40.77983666666667,28.79378833333333 40.779518333333336,28.794246666666666 40.779165,28.794455 40.77898833333333,28.794513333333335 40.77894333333333,28.79508 40.778513333333336,28.79512666666667 40.77848,28.795615 40.778145,28.795906666666667 40.777935,28.796095 40.77778833333333,28.796146666666665 40.77775166666667,28.79669 40.77732833333334,28.796965 40.777115,28.797221666666665 40.776895,28.797221666666665 40.776895,28.797583333333332 40.7766,28.798258333333333 40.776005,28.798531666666666 40.77578333333334,28.799025 40.77535,28.799438333333335 40.77498833333333,28.79978 40.774681666666666,28.799848333333333 40.77460833333333,28.799946666666667 40.774496666666664,28.800585 40.773846666666664,28.800945 40.773498333333336,28.80077 40.77364333333333,28.801276666666666 40.77314166666667,28.801468333333332 40.77294166666667,28.802016666666667 40.77232333333333,28.802016666666667 40.77232333333333,28.80268 40.771588333333334,28.803051666666665 40.77114,28.802863333333335 40.77138333333333,28.803265 40.770831666666666,28.803236666666667 40.770875,28.803713333333334 40.770068333333334,28.803895 40.769726666666664,28.80419 40.769085,28.804423333333332 40.76846,28.804486666666666 40.76822,28.804486666666666 40.76822,28.80466 40.76783666666667,28.804868333333335 40.766891666666666,28.804968333333335 40.7666,28.804925 40.766715,28.80514 40.76577666666667,28.805116666666667 40.765966666666664,28.805261666666667 40.765166666666666,28.805301666666665 40.76475166666667,28.805303333333335 40.764626666666665,28.805345 40.76418833333334,28.805493333333335 40.76282333333333,28.805443333333333 40.76331666666667,28.805506666666666 40.7623,28.805525 40.761965,28.805515 40.76105666666667,28.805506666666666 40.760976666666664,28.80548 40.760805,28.805453333333332 40.75983166666666,28.805456666666668 40.75997,28.805325 40.759053333333334,28.805175 40.75826833333333,28.805001666666666 40.757396666666665,28.80504 40.757583333333336,28.804941666666668 40.757145,28.804761666666668 40.756393333333335,28.80452 40.75525666666667,28.804501666666667 40.75519,28.804538333333333 40.75531333333333,28.80434 40.754506666666664,28.80426 40.754203333333336,28.804101666666668 40.753643333333336,28.80399166666667 40.753323333333334,28.803915 40.75306333333333,28.803855 40.75286666666667,28.803675 40.752181666666665,28.803653333333333 40.752115,28.803448333333332 40.751491666666666,28.803401666666666 40.75136166666667,28.803195 40.750771666666665,28.802896666666665 40.74997333333334,28.802825 40.74977,28.802733333333332 40.74945666666667,28.80244666666667 40.74867833333333,28.80225 40.74812333333333,28.802056666666665 40.747638333333335,28.801995 40.747521666666664,28.801508333333334 40.746345,28.801246666666668 40.745648333333335)"
# 留一份当时训练时的网络
class Net(torch.nn.Module):
def __init__(self, n_feature, n_hidden,n_output):
super(Net, self).__init__() #官网固定写法
self.hidden = torch.nn.Linear(n_feature, n_hidden)
self.predict = torch.nn.Linear(n_hidden, n_output)
def forward(self, x):
x = self.hidden(x)
x = torch.tanh(x)
x = self.predict(x)
return x
def toList(tup):
listX = []
listY = []
for i in tup:
str = i[11:len(i)-1]
list = str.split(',')
for j in list:
lonlat = j.split(' ')
listX.append(float(lonlat[0]))
listY.append(float(lonlat[1]))
return [listX, listY]
line02 = "LINESTRING(35.82825833333333 34.504146666666664,35.82825833333333 34.504146666666664,35.82499 34.506618333333336,35.82499 34.506618333333336,35.81779 34.51170333333334,35.81044 34.51542333333333,35.80562166666667 34.51744166666667,35.80381 34.518098333333334,35.798633333333335 34.51966,35.79349666666667 34.52065833333333,35.786793333333335 34.521825,35.77884 34.523215,35.77884 34.523215,35.772081666666665 34.523898333333335,35.76739666666667 34.52404833333333,35.76269166666667 34.52390166666667,35.758065 34.523223333333334,35.75339833333334 34.521996666666666,35.729346666666665 34.51399166666667,35.723 34.51198,35.71969333333333 34.510935,35.71841666666667 34.510533333333335,35.7146 34.50933333333333,35.7146 34.50933333333333,35.711435 34.50827666666667,35.710785 34.5081,35.70474166666666 34.50707333333333,35.699236666666664 34.5069,35.69645833333333 34.506865,35.694993333333336 34.506835,35.694293333333334 34.506815,35.68888666666667 34.506638333333335,35.68674166666667 34.50656,35.684673333333336 34.506481666666666,35.67975333333333 34.50633333333333,35.674975 34.50620333333333,35.67283333333334 34.506145,35.66952333333333 34.506038333333336,35.664645 34.50586333333333,35.663893333333334 34.50583833333334,35.659776666666666 34.50570333333334,35.65569333333333 34.50557,35.65293833333333 34.50547666666667,35.651565 34.505425,35.651565 34.505425,35.647423333333336 34.50526833333333,35.64595666666666 34.50519166666667,35.643235 34.505065,35.64115666666667 34.505015,35.639003333333335 34.504965,35.636915 34.5049,35.63351333333333 34.504796666666664,35.63281666666666 34.504775,35.62941 34.504693333333336,35.628645 34.50467666666667,35.62515166666667 34.504585,35.624386666666666 34.50456333333333,35.622366666666665 34.504508333333334,35.620266666666666 34.50445166666667,35.61956333333333 34.50443666666666,35.615365 34.504345,35.614018333333334 34.50431833333333,35.611086666666665 34.50425333333333,35.60975 34.50422833333333,35.604843333333335 34.504125,35.604843333333335 34.504125,35.60064833333333 34.504025,35.60002166666666 34.50401333333333,35.59638666666667 34.503965,35.59583333333333 34.50396333333333,35.59157833333333 34.50393,35.58933833333333 34.503881666666665,35.58933833333333 34.503881666666665,35.585945 34.50384833333333,35.58524666666667 34.503841666666666,35.580976666666665 34.50380833333333,35.576861666666666 34.50379,35.576861666666666 34.50379,35.572716666666665 34.50375,35.572025 34.50374333333333,35.56925833333333 34.50373,35.567881666666665 34.503703333333334,35.563745 34.50362666666667,35.563046666666665 34.50363333333333,35.55898 34.50356333333333,35.55898 34.50356333333333,35.55482666666666 34.503463333333336,35.552845 34.503435,35.549481666666665 34.503391666666666,35.548006666666666 34.503355,35.545363333333334 34.50329333333333,35.542655 34.50322333333333,35.541293333333336 34.503188333333334,35.528558333333336 34.502858333333336,35.527748333333335 34.50282166666667,35.525126666666665 34.502705,35.522423333333336 34.50259833333333,35.52115833333333 34.50257666666667,35.51844166666667 34.50250833333333,35.51717 34.502465,35.514335 34.50231333333333,35.513063333333335 34.50226,35.510405 34.502185,35.509135 34.50212666666667,35.50777333333333 34.50205666666667,35.50644833333333 34.501976666666664,35.50508333333333 34.50188333333333,35.503706666666666 34.50178666666667,35.50181333333333 34.50165833333333,35.50114666666666 34.501603333333335,35.49711166666667 34.501221666666666,35.49637333333333 34.501158333333336,35.494346666666665 34.50096,35.493021666666664 34.50087333333333,35.492288333333335 34.500815,35.48844166666667 34.500515,35.48782166666667 34.50049166666667,35.48433333333333 34.50022333333333,35.48364 34.50015833333333,35.47951 34.49981833333333,35.478903333333335 34.49977333333333,35.474866666666664 34.499446666666664,35.470841666666665 34.49914166666667,35.46610666666667 34.49869833333333,35.46537333333333 34.498646666666666,35.46212333333333 34.49839166666667,35.46076166666667 34.49827833333333,35.45735666666667 34.49799333333333,35.456606666666666 34.497931666666666,35.45321 34.497645,35.45253 34.49758666666666,35.449191666666664 34.497301666666665,35.44781666666667 34.497231666666664,35.44781666666667 34.497231666666664,35.44436833333334 34.49702333333333,35.44376166666667 34.49699666666667,35.439535 34.49668666666667,35.43821666666667 34.496631666666666,35.43472833333333 34.496445,35.43404666666667 34.496395,35.42984666666667 34.49607666666667,35.429296666666666 34.49603666666667,35.42652833333333 34.495871666666666,35.42586 34.49584,35.42525333333333 34.49580666666667,35.42178333333333 34.495596666666664,35.42043 34.495525,35.417645 34.49536833333333,35.41636166666667 34.49529166666667,35.41366 34.49512333333333,35.41231666666667 34.495045,35.40955 34.49489166666667,35.40831333333333 34.494816666666665,35.406666666666666 34.49471666666667,35.40437166666667 34.49458,35.40233166666667 34.49446,35.400305 34.49433666666667,35.39828 34.49420666666666,35.39624666666667 34.494078333333334,35.394146666666664 34.493948333333336,35.39225666666667 34.493838333333336,35.390103333333336 34.49372,35.388155 34.493611666666666,35.386065 34.49349,35.3841 34.49337833333333,35.383356666666664 34.493336666666664,35.38200166666667 34.49326166666667,35.37936833333333 34.49311,35.37735166666667 34.49298666666667,35.37544333333334 34.49286166666667,35.373145 34.49272833333333,35.37186 34.49265666666667,35.36900333333333 34.4925,35.367778333333334 34.492428333333336,35.36642833333333 34.49236166666667,35.364331666666665 34.49221,35.362385 34.49207333333333,35.360285 34.49193666666667,35.35764 34.49178166666667,35.356226666666664 34.491695,35.35359 34.491535,35.352241666666664 34.491438333333335,35.348795 34.491205,35.347515 34.491121666666665,35.34556333333333 34.49099666666667,35.344143333333335 34.49091333333333,35.34339833333333 34.49087333333333,35.34001666666666 34.49069,35.33941166666666 34.490653333333334,35.335993333333334 34.490428333333334,35.335388333333334 34.490385,35.33127666666667 34.490115,35.33127666666667 34.490115,35.327131666666666 34.48986166666667,35.327131666666666 34.48986166666667,35.32308666666667 34.489595,35.32241333333333 34.489551666666664,35.319775 34.489358333333335,35.319028333333335 34.48930333333333,35.31783166666666 34.48917,35.31497666666667 34.48898833333333,35.313741666666665 34.488906666666665,35.312293333333336 34.4888,35.3096 34.48861333333333,35.3096 34.48862,35.30563333333333 34.488335,35.30151 34.48809166666667,35.300155 34.48799666666667,35.29602833333333 34.48770833333333,35.295485 34.48767,35.29143 34.487386666666666,35.29004 34.48730833333333,35.28665 34.487066666666664,35.2874 34.48712333333334,35.28334 34.486825,35.277166666666666 34.486385,35.277166666666666 34.486385,35.27301166666667 34.48607833333333,35.27301166666667 34.48607833333333,35.264583333333334 34.485481666666665,35.263751666666664 34.48542166666667,35.26082666666667 34.485216666666666,35.25886333333333 34.485076666666664,35.256503333333335 34.484878333333334,35.25466 34.48476333333333,35.252665 34.48470666666667,35.250618333333335 34.484675,35.24864 34.48464666666667,35.245185 34.484566666666666,35.244508333333336 34.484548333333336,35.24308333333333 34.48451166666667,35.23981833333333 34.48444333333333,35.23900666666667 34.484431666666666,35.23574833333333 34.48437666666667,35.23499666666667 34.484363333333334,35.23082333333333 34.484298333333335,35.23082333333333 34.484298333333335,35.226735 34.48422166666667,35.22143166666667 34.48414833333333,35.220615 34.484136666666664,35.21733833333333 34.48408166666667,35.21597666666667 34.48405833333333,35.21223833333333 34.48397166666667,35.207771666666666 34.48388833333333,35.204953333333336 34.48383,35.203575 34.483803333333334,35.200915 34.48373333333333,35.20004 34.483715,35.19119666666667 34.483581666666666,35.187105 34.483488333333334,35.18574 34.48345,35.1817 34.48335333333333,35.17742 34.483315,35.176721666666666 34.48330333333333,35.17347 34.48321166666667,35.171976666666666 34.48316833333333,35.16936833333333 34.483095,35.1675 34.48305,35.16434666666667 34.483003333333336,35.16434666666667 34.483003333333336,35.163655 34.48299,35.16238166666667 34.48296666666667,35.15964833333334 34.48290166666666,35.15822 34.482875,35.15555833333333 34.48281333333333,35.15419 34.482776666666666,35.15009833333333 34.48267333333333,35.15009833333333 34.48267333333333,35.145376666666664 34.482548333333334,35.14462666666667 34.48253166666667,35.140605 34.482443333333336,35.139936666666664 34.482418333333335,35.135815 34.48228,35.13380333333333 34.48217833333333,35.129675 34.4821,35.12631833333333 34.48201666666667,35.124985 34.48195166666667,35.12084333333333 34.48175833333333,35.12084333333333 34.48175833333333,35.11672333333333 34.481545,35.110551666666666 34.481233333333336,35.10570666666667 34.480963333333335,35.10012 34.480698333333336,35.099493333333335 34.48064,35.09609666666667 34.48043833333333,35.09207 34.48020833333333,35.089193333333334 34.480061666666664,35.087605 34.47998166666667,35.085071666666664 34.47984,35.080936666666666 34.479641666666666,35.07542 34.47933333333334,35.069905 34.47909666666666,35.073346666666666 34.479243333333336,35.051656666666666 34.478163333333335,35.04673666666667 34.477975,35.040775 34.477601666666665,35.035963333333335 34.47743,35.03138333333333 34.477228333333336,35.02361833333333 34.476695,35.0181 34.476391666666665,35.01879 34.47642333333334,35.01183 34.476085,35.00768333333333 34.475941666666664,35.003425 34.475625,35.000098333333334 34.47544666666667,34.99926333333333 34.475375,34.997386666666664 34.47521666666667,34.995203333333336 34.475116666666665,34.992441666666664 34.475025,34.991075 34.474986666666666,34.98678666666667 34.47485,34.98678666666667 34.47485,34.982643333333336 34.474665,34.982643333333336 34.474665,34.978008333333335 34.474505,34.97376833333333 34.47429666666667,34.97431666666667 34.474325,34.96828333333333 34.474093333333336,34.96828333333333 34.474093333333336,34.963935 34.473888333333335,34.963215 34.47385,34.95914333333333 34.473686666666666,34.95914333333333 34.473686666666666,34.95500166666667 34.47352333333333,34.95500166666667 34.47352333333333,34.950825 34.47343,34.945971666666665 34.473283333333335,34.94110833333333 34.473101666666665,34.94033833333334 34.473083333333335,34.937005 34.472971666666666,34.935476666666666 34.472923333333334,34.93199833333333 34.47281,34.93130333333333 34.47279,34.92652833333333 34.472586666666665,34.92234666666667 34.47228333333333,34.92152 34.47222333333333,34.91771 34.47199166666667,34.91592333333333 34.471851666666666,34.91254 34.471671666666666,34.910196666666664 34.47154166666667,34.9043 34.471175,34.906978333333335 34.47135166666666,34.89098833333333 34.470495,34.88657666666667 34.47011333333333,34.883315 34.469903333333335,34.88262 34.46986166666667,34.877745 34.46957333333334,34.87354666666667 34.469335,34.869193333333335 34.46908666666667,34.86817666666666 34.46904333333333,34.86375 34.468806666666666,34.86375 34.468806666666666,34.859605 34.468575,34.85819 34.4685,34.854035 34.46829,34.85466666666667 34.46832333333333,34.849718333333335 34.468046666666666,34.849718333333335 34.468046666666666,34.844728333333336 34.467815,34.8455 34.467875,34.840475 34.46758,34.840475 34.46758,34.83624666666667 34.467375,34.83201666666667 34.46718166666667,34.83137833333333 34.467151666666666,34.827105 34.467013333333334,34.820751666666666 34.46674333333333,34.818628333333336 34.46665,34.81301166666667 34.4664,34.80451333333333 34.466046666666664,34.800105 34.465925,34.79591666666666 34.465805,34.79591666666666 34.465805,34.791068333333335 34.465608333333336,34.78254 34.465385,34.78254 34.465385,34.778193333333334 34.46528833333333,34.766885 34.46507166666667,34.761851666666665 34.46496666666667,34.757508333333334 34.464843333333334,34.75407833333333 34.464758333333336,34.74903333333334 34.464695,34.74399833333333 34.4647,34.74903333333334 34.464695,34.711173333333335 34.464185,34.711173333333335 34.464185,34.70176166666667 34.46368,34.69612166666667 34.46343,34.691265 34.46319833333333,34.689075 34.46308666666667,34.68492833333333 34.46295666666666,34.68492833333333 34.46295666666666,34.680793333333334 34.46271333333333,34.680793333333334 34.46271333333333,34.67671 34.462473333333335,34.67671 34.462473333333335,34.672466666666665 34.462225,34.672466666666665 34.462225,34.666535 34.46177333333333,34.665935 34.46174,34.665661666666665 34.46171833333333,34.66245333333333 34.461495,34.66245333333333 34.461495,34.658923333333334 34.46107,34.65676333333333 34.46082166666667,34.65676333333333 34.46082166666667,34.65286833333333 34.46060166666667,34.64877666666667 34.46037166666667,34.642245 34.459635,34.644125 34.459788333333336,34.63480333333333 34.45901,34.632826666666666 34.458848333333336,34.630865 34.45867666666667,34.625535 34.45821333333333,34.6216 34.45786666666667,34.617045 34.457501666666666,34.617045 34.457501666666666,34.61828666666667 34.45760166666667,34.608575 34.45679,34.60521166666667 34.45655333333333,34.60129666666667 34.45621833333333,34.60072666666667 34.45614833333333,34.60072666666667 34.45614833333333,34.596001666666666 34.45568333333333,34.58756833333333 34.45480333333333,34.58179 34.45422666666666,34.580443333333335 34.45408666666667,34.577918333333336 34.453853333333335,34.57392 34.453453333333336,34.572113333333334 34.453275,34.567525 34.45279,34.56295 34.45232333333333,34.561658333333334 34.45224833333333,34.558425 34.4519,34.55383333333333 34.451523333333334,34.54815833333333 34.450988333333335,34.54472 34.45066666666666,34.542793333333336 34.450478333333336,34.542793333333336 34.450478333333336,34.53832 34.45009833333334,34.532511666666664 34.449553333333334,34.52741 34.449131666666666,34.52303666666667 34.448765,34.52303666666667 34.448765,34.51894333333333 34.44835666666667,34.51439 34.447968333333336,34.509265 34.447556666666664,34.50457 34.447205,34.503656666666664 34.44713,34.497503333333334 34.44660666666667,34.497503333333334 34.44660666666667,34.48236833333333 34.44549166666667,34.48110833333333 34.445415,34.48236833333333 34.44549166666667,34.477845 34.445191666666666,34.473281666666665 34.444941666666665,34.47069666666667 34.44475166666667,34.469405 34.44468833333333,34.46610833333333 34.444448333333334,34.46546 34.4444,34.46480833333333 34.444355,34.46088833333334 34.44408833333333,34.45699166666667 34.44385166666667,34.455745 34.443776666666665,34.452466666666666 34.443615,34.45112666666667 34.44352833333333,34.44860833333333 34.443371666666664,34.446595 34.44323,34.44469333333333 34.44310333333333,34.44399166666667 34.443068333333336,34.44204 34.44298833333333,34.440075 34.442855,34.43621666666667 34.44267166666667,34.43231 34.44245333333333,34.431628333333336 34.442393333333335,34.427825 34.44218,34.42395333333333 34.441941666666665,34.422621666666664 34.44183666666667,34.41806833333333 34.44161166666667,34.412953333333334 34.441426666666665,34.40843666666667 34.441305,34.40775 34.4413,34.405788333333334 34.44121166666667,34.403865 34.441161666666666,34.40256333333333 34.441201666666664,34.39974333333333 34.440995,34.394825 34.440796666666664,34.39024666666667 34.440675,34.38957833333333 34.440668333333335,34.38688166666667 34.44061166666667,34.385601666666666 34.440555,34.38436166666666 34.44052333333333,34.38169333333333 34.44047333333334,34.380446666666664 34.440425,34.377743333333335 34.440315,34.376595 34.440263333333334,34.37378666666667 34.44016666666667,34.371323333333336 34.44006666666667,34.369933333333336 34.440043333333335,34.36662833333333 34.43999,34.36598 34.43995666666667,34.36598 34.43995666666667,34.36079 34.439843333333336,34.36017666666667 34.439843333333336,34.35631333333333 34.439705,34.35631333333333 34.439705,34.35187166666667 34.43957,34.35036 34.439386666666664,34.34602666666667 34.439305,34.34477166666667 34.43931833333333,34.34361833333333 34.43929,34.33970333333333 34.439085,34.335703333333335 34.438993333333336,34.331286666666664 34.438491666666664,34.328543333333336 34.438516666666665,34.327378333333336 34.43845833333334,34.32273 34.438215,34.31966833333333 34.438045,34.318385 34.43797166666667,34.31453666666667 34.437715,34.31195833333334 34.437565,34.30939333333333 34.43749,34.30818 34.437445,34.30818 34.437445,34.30558666666666 34.437195,34.30172666666667 34.436931666666666,34.29717333333333 34.436675,34.28946 34.436075,34.283678333333334 34.435678333333335,34.276556666666664 34.43517166666667,34.27521 34.435051666666666,34.27265166666667 34.43483166666667,34.271315 34.434715,34.26826333333333 34.43443,34.26826333333333 34.43443,34.267561666666666 34.43436833333333,34.26372166666667 34.43403833333333,34.26372166666667 34.43403833333333,34.259863333333335 34.43369,34.25915833333333 34.433618333333335,34.256025 34.433295,34.250905 34.43279833333333,34.250905 34.43279833333333,34.23865166666667 34.431448333333336,34.23710166666667 34.43127,34.23481666666667 34.431061666666665,34.232443333333336 34.43083166666667,34.22788833333333 34.430345,34.22375666666667 34.42993166666667,34.21826333333333 34.42935166666667,34.215005 34.428985,34.21366666666667 34.428826666666666,34.21108 34.428545,34.209601666666664 34.42838666666667,34.20722 34.42811833333333,34.20478 34.427753333333335,34.203381666666665 34.427695,34.1978 34.427148333333335,34.1978 34.427148333333335,34.1978 34.427148333333335,34.193815 34.426675,34.19394166666667 34.42669,34.18982833333333 34.42619,34.18951 34.42615333333333,34.18591833333333 34.42574833333333,34.185266666666664 34.42567666666667,34.182145 34.425446666666666,34.179566666666666 34.42518666666667,34.17820666666667 34.42517333333333,34.175061666666664 34.424715,34.17453833333333 34.42472166666667,34.170521666666666 34.424861666666665,34.16988666666666 34.42462333333334,34.16901 34.42416,34.164831666666664 34.42428666666667,34.160756666666664 34.42445166666667,34.156713333333336 34.424551666666666,34.15262333333333 34.42449166666667,34.15088166666666 34.424495,34.148125 34.424425,34.14677833333333 34.424215,34.146966666666664 34.424235,34.14313 34.42404166666667,34.130671666666665 34.423705,34.139195 34.423955,34.10749833333333 34.423255,34.096333333333334 34.423091666666664,34.085676666666664 34.422913333333334,34.08358666666667 34.42281833333333,34.06962333333333 34.42239,34.06059333333334 34.42212,34.06163333333333 34.422156666666666,34.05200166666667 34.42181166666666,34.047396666666664 34.42162,34.04485 34.421526666666665,34.04152833333333 34.42142333333334,34.040283333333335 34.421398333333336,34.035065 34.42129333333333,34.03252333333333 34.421211666666665,34.025335 34.42101,34.02073333333333 34.42093166666667,34.02073333333333 34.42093166666667,34.01688 34.42082666666666,34.01688 34.42082666666666,34.01107833333333 34.42071,34.00583833333334 34.420626666666664,34.000515 34.420516666666664,33.99656 34.42044,33.994591666666665 34.42040166666666,33.98932166666667 34.420321666666666,33.98468 34.42029,33.980803333333334 34.42032,33.977578333333334 34.42026,33.97678 34.42024833333333,33.972883333333336 34.420175,33.968808333333335 34.42014833333333,33.96491833333334 34.42010166666667,33.959775 34.420091666666664,33.95694 34.420045,33.954328333333336 34.420051666666666,33.948541666666664 34.420071666666665,33.943063333333335 34.420048333333334,33.938023333333334 34.420095,33.93597166666667 34.42010666666667,33.931378333333335 34.420115,33.9274 34.42013,33.922221666666665 34.420116666666665,33.917695 34.42014,33.91697333333333 34.42014833333333,33.89865833333333 34.41995166666667,33.894708333333334 34.41989,33.88868 34.41981333333333,33.88543333333333 34.41976,33.880763333333334 34.41967666666667,33.875593333333335 34.419626666666666,33.87168166666667 34.419578333333334,33.86776 34.419518333333336,33.863115 34.419448333333335,33.85926833333333 34.41943166666667,33.857328333333335 34.41940666666667,33.85344833333333 34.41932666666667,33.852805 34.41931833333334,33.849465 34.41933,33.84570333333333 34.41921166666667,33.84061166666667 34.419175,33.83940333333334 34.419138333333336,33.83537166666667 34.419066666666666,33.833441666666666 34.41902,33.83150666666667 34.418978333333335,33.80878333333333 34.41876666666667,33.80439333333333 34.418765,33.796635 34.41856,33.79211 34.418495,33.79211 34.418495,33.78617166666667 34.41853833333333,33.78187 34.418463333333335,33.78176166666667 34.418456666666664,33.77762666666667 34.418371666666665,33.77249166666667 34.41823333333333,33.770181666666666 34.418146666666665,33.765816666666666 34.418058333333335,33.76256333333333 34.41793166666667,33.761921666666666 34.41791666666666,33.761921666666666 34.41791666666666,33.75736166666667 34.417885,33.753503333333335 34.41769166666667,33.74963833333333 34.41738,33.747121666666665 34.417185,33.74577333333333 34.417095,33.74255 34.41685833333333,33.74054 34.416718333333336,33.73610166666667 34.416466666666665,33.73085666666667 34.41426666666667,33.728728333333336 34.41408166666667,33.725116666666665 34.41389,33.724783333333335 34.41387,33.720326666666665 34.41542666666667,33.72006833333333 34.41540833333333,33.71640166666667 34.415205,33.712358333333334 34.41495166666667,33.712035 34.41493,33.70854666666666 34.41466666666667,33.705931666666665 34.414498333333334,33.704585 34.414385,33.704585 34.414385,33.700665 34.414141666666666,33.70007 34.41410333333334,33.69550666666667 34.413835,33.69550666666667 34.413835,33.69165 34.413625,33.69034333333333 34.41354833333333,33.68379 34.41314666666667,33.67800833333333 34.412776666666666,33.67601 34.412643333333335,33.67335666666666 34.412443333333336,33.671461666666666 34.41233666666667,33.665686666666666 34.41199833333334,33.66693333333333 34.412058333333334,33.661768333333335 34.41178333333333,33.657875 34.41153166666667,33.65323333333333 34.41126166666667,33.65258166666667 34.411226666666664,33.64865 34.41104333333333,33.64478166666667 34.410803333333334,33.64145166666667 34.41057833333333,33.644135 34.41075333333333,33.62636833333333 34.409616666666665,33.62446666666666 34.409501666666664,33.61259833333333 34.408755,33.60982833333333 34.408575,33.606595 34.40831333333333,33.60531833333334 34.408226666666664,33.60531833333334 34.408226666666664,33.602608333333336 34.408028333333334,33.601345 34.40793333333333,33.59735666666667 34.407626666666665,33.596756666666664 34.407583333333335,33.59338 34.40734666666667,33.588726666666666 34.407005,33.58665666666667 34.406843333333335,33.586125 34.406803333333336,33.58339333333333 34.406596666666665,33.57944333333333 34.40629,33.57871333333333 34.40623333333333,33.574655 34.40593166666667,33.570748333333334 34.405625,33.56943666666667 34.405528333333336,33.565465 34.40519666666667,33.565465 34.40519666666667,33.560785 34.404835,33.55618166666667 34.4045,33.55618166666667 34.4045,33.55148333333333 34.40414666666667,33.55081333333333 34.404095,33.54680333333334 34.40379333333333,33.547405 34.40383833333333,33.537398333333336 34.40308666666667,33.525508333333335 34.402175,33.53143 34.40262333333333,33.53216 34.402676666666665,33.51148666666667 34.401111666666665,33.49612833333333 34.39997666666667,33.49286 34.39973833333333,33.49212833333333 34.399685,33.48893 34.39946166666667,33.485463333333335 34.39921,33.48486166666667 34.399166666666666,33.48486166666667 34.399166666666666,33.478885 34.39870333333333,33.478885 34.39870333333333,33.468155 34.397933333333334,33.466883333333335 34.397841666666665,33.46548333333333 34.39773666666667,33.46355333333333 34.39759,33.46089166666667 34.39738166666667,33.459495 34.39727166666667,33.45556833333333 34.396971666666666,33.454771666666666 34.39691166666667,33.45019166666667 34.396568333333335,33.44555166666667 34.396215,33.44555166666667 34.396215,33.441586666666666 34.39591166666667,33.43887333333333 34.39571333333333,33.43761166666667 34.39563,33.43489833333334 34.395446666666665,33.43233166666667 34.395255,33.42710666666667 34.39485666666667,33.40603333333333 34.39326166666667,33.41129 34.39365,33.37719166666667 34.391193333333334,33.375055 34.391085,33.371185 34.390845,33.36981166666666 34.39075666666667,33.367263333333334 34.39058833333333,33.36660666666667 34.390545,33.364675 34.39039,33.36008666666667 34.390096666666665,33.359433333333335 34.390058333333336,33.35550833333333 34.389805,33.35413166666667 34.389716666666665,33.34962 34.389425,33.34766666666667 34.38929666666667,33.34571666666667 34.38917166666667,33.345055 34.389135,33.341053333333335 34.38888333333333,33.340401666666665 34.38884,33.33647333333333 34.388575,33.335166666666666 34.388486666666665,33.332545 34.38830166666666,33.330641666666665 34.38816833333333,33.327891666666666 34.387985,33.32671333333333 34.387903333333334,33.32671333333333 34.387903333333334,33.324038333333334 34.387723333333334,33.31890166666667 34.38738166666667,33.31818333333333 34.38733666666667,33.31417833333333 34.38707333333333,33.30981 34.386775,33.309095 34.386725,33.305121666666665 34.386473333333335,33.30121166666667 34.386206666666666,33.299908333333335 34.38612,33.296706666666665 34.385913333333335,33.29539833333333 34.38582666666667,33.288113333333335 34.38536666666667,33.288113333333335 34.38536666666667,33.284275 34.38512166666667,33.282845 34.38502666666667,33.2803 34.384861666666666,33.278995 34.384771666666666,33.275005 34.38449833333333,33.27117333333333 34.38424166666667,33.26987 34.38415666666667,33.26987 34.38415666666667,33.26596 34.38389,33.264783333333334 34.383806666666665,33.26014 34.38348666666667,33.262035 34.38361333333334,33.25103166666667 34.38287833333333,33.24907 34.38276333333334,33.248351666666665 34.38272,33.24632 34.382598333333334,33.24369333333333 34.38243833333333,33.24172333333333 34.382315,33.23974833333333 34.382198333333335,33.23784166666667 34.382081666666664,33.23580833333333 34.38196166666667,33.23383666666667 34.381836666666665,33.231941666666664 34.38171833333333,33.22932 34.38156166666667,33.22735333333333 34.381445,33.225386666666665 34.38133166666667,33.22143833333333 34.38112,33.21684166666667 34.38086666666667,33.21618333333333 34.380831666666666,33.208945 34.380445,33.204993333333334 34.38024333333333,33.201053333333334 34.380055,33.198483333333336 34.379918333333336,33.19381166666667 34.37968166666667,33.19132 34.379558333333335,33.19132 34.379558333333335,33.189875 34.379486666666665,33.18665333333333 34.37932,33.18600333333333 34.37929,33.18199 34.37912,33.18199 34.37912,33.178115 34.378948333333334,33.174095 34.37876833333333,33.170795 34.378618333333335,33.170138333333334 34.37858666666666,33.16948333333333 34.378555,33.157756666666664 34.37799166666667,33.157756666666664 34.37799166666667,33.153255 34.37777,33.151945 34.377705,33.14933 34.37757666666667,33.14411666666667 34.37736,33.140213333333335 34.37717166666667,33.13628833333333 34.37699166666667,33.13238666666667 34.37680833333334,33.13174 34.376775,33.12777 34.376595,33.12385333333334 34.37641833333333,33.119953333333335 34.376223333333336,33.116056666666665 34.37602666666667,33.11287166666666 34.375863333333335,33.11087666666667 34.37577666666667,33.109588333333335 34.37571166666667,33.10642333333333 34.375521666666664,33.105713333333334 34.37548,33.10245 34.375295,33.101785 34.37524166666667,33.09851833333333 34.37504166666667,33.09654166666667 34.37493833333333,33.092705 34.37473166666667,33.092705 34.37473166666667,33.092055 34.374695,33.08815166666667 34.374465,33.08425833333333 34.37424333333333,33.08425833333333 34.37424333333333,33.082315 34.37413166666666,33.08043333333333 34.37401333333333,33.07834833333333 34.37388,33.07327 34.373553333333334,33.07191 34.373466666666666,33.069361666666666 34.373286666666665,33.064065 34.372931666666666,33.06019166666667 34.372688333333336,33.05947 34.37264166666667,33.05619 34.372416666666666,33.05619 34.372416666666666,33.05367666666667 34.37221666666667,33.05224333333334 34.372115,33.048276666666666 34.371833333333335,33.042411666666666 34.371401666666664,33.04038666666667 34.371246666666664,33.03642833333333 34.370918333333336,33.03246166666667 34.37058,33.02851666666667 34.370265,33.02063 34.369548333333334,33.02129 34.369605,33.01493 34.37046333333333,32.99935833333333 34.37461666666667,32.995043333333335 34.375791666666665,32.99442 34.37596333333333,32.990745 34.37695333333333,32.99012 34.37712,32.987008333333335 34.37795833333333,32.986383333333336 34.37813,32.98327833333333 34.37898666666667,32.97893333333333 34.380181666666665,32.97707333333334 34.380696666666665,32.97521 34.38121,32.97521 34.38121,32.97148 34.38221166666667,32.96516166666667 34.38391333333333,32.960895 34.38507,32.957256666666666 34.38606,32.957256666666666 34.38606,32.957256666666666 34.38606,32.952911666666665 34.38727166666666,32.953585 34.38708333333334,32.94925 34.388288333333335,32.945591666666665 34.38931,32.94625833333333 34.38912333333333,32.940126666666664 34.390856666666664,32.93824166666667 34.39138833333333,32.93405 34.39257833333333,32.930413333333334 34.393645,32.926746666666666 34.39469666666667,32.922446666666666 34.3959,32.920676666666665 34.396405,32.918171666666666 34.39712,32.914431666666665 34.39816666666667,32.91012666666666 34.399406666666664,32.90644833333333 34.4005,32.90285166666666 34.40157833333333,32.899188333333335 34.402685,32.895496666666666 34.403785,32.89181166666667 34.40485,32.887425 34.40616166666667,32.883245 34.40746166666667,32.88263666666667 34.407653333333336,32.87953666666667 34.40861833333334,32.878855 34.408831666666664,32.87373 34.40976833333333,32.87373 34.40976833333333,32.86915 34.411233333333335,32.85915 34.41498,32.858648333333335 34.415135,32.85438166666667 34.416293333333336,32.85414333333333 34.41646,32.85109333333333 34.417471666666664,32.848265 34.41826833333333,32.84648166666667 34.418778333333336,32.84276666666667 34.419825,32.838503333333335 34.42104166666667,32.83362833333333 34.422428333333336,32.829348333333336 34.42362333333333,32.828606666666666 34.42382833333333,32.823746666666665 34.42511,32.82003666666667 34.42601,32.814483333333335 34.42736166666667,32.81207166666667 34.427945,32.810765 34.428275,32.810765 34.428275,32.810206666666666 34.42841,32.80144833333333 34.43052,32.797195 34.43155333333333,32.79595833333333 34.43186166666667,32.79349666666667 34.432471666666665,32.79349666666667 34.432471666666665,32.79165 34.43291333333333,32.78734333333333 34.433915,32.78296 34.43497333333333,32.78234333333333 34.435116666666666,32.779365 34.435765,32.77560833333333 34.43664833333333,32.77444166666667 34.436926666666665,32.77321166666667 34.43722,32.768973333333335 34.438225,32.764588333333336 34.439276666666665,32.76094666666667 34.440155,32.75666 34.4412,32.756013333333335 34.441356666666664,32.75965333333333 34.44047666666667,32.74561666666666 34.44385833333333,32.74196 34.44473166666667,32.738305 34.44562,32.738305 34.44562,32.73458333333333 34.44655,32.730955 34.44744333333333,32.727306666666664 34.448305,32.723675 34.44920833333333,32.72004666666667 34.450125,32.719503333333336 34.45025833333333,32.71634 34.45099666666667,32.71275833333333 34.451818333333335,32.712225 34.451955,32.70912833333333 34.452685,32.705555 34.4535,32.70180333333333 34.4544,32.70180333333333 34.4544,32.69887333333333 34.45507333333333,32.695166666666665 34.45596666666667,32.693345 34.45641166666667,32.6897 34.457278333333335,32.684268333333335 34.45856333333333,32.68306333333334 34.45885833333333,32.680701666666664 34.459446666666665,32.67605833333333 34.46062,32.672693333333335 34.461465,32.66916833333333 34.46239,32.66555 34.46328333333334,32.66555 34.46328333333334,32.66185 34.464196666666666,32.658255 34.465185,32.65459 34.46613333333333,32.651048333333335 34.46712333333333,32.647443333333335 34.468091666666666,32.646845 34.468255,32.646368333333335 34.46838666666667,32.639678333333336 34.47034166666667,32.635515 34.471448333333335,32.63188 34.472455,32.62947833333333 34.47318,32.62821 34.473533333333336,32.62712666666667 34.473836666666664,32.624635 34.474608333333336,32.62287 34.47505666666667,32.620995 34.47557166666667,32.619328333333335 34.47604333333334,32.617403333333336 34.47658833333333,32.615035 34.47723333333333,32.61376833333333 34.47759166666667,32.61138666666667 34.47826333333333,32.610776666666666 34.478435,32.608895 34.478973333333336,32.60774333333333 34.479305,32.604695 34.480183333333336,32.59916833333333 34.48177166666667,32.59556833333333 34.48281333333333,32.593693333333334 34.483351666666664,32.591166666666666 34.48403166666667,32.587666666666664 34.48516333333333,32.58405666666667 34.48613666666667,32.58038166666667 34.48712333333334,32.576715 34.48809166666667,32.57552333333334 34.488425,32.57552333333334 34.488425,32.57606333333333 34.48827333333333,32.57230333333333 34.489268333333335,32.55642 34.493495,32.555863333333335 34.493665,32.554566666666666 34.49402833333333,32.55025833333333 34.495158333333336,32.546625 34.496125,32.54539166666667 34.496453333333335,32.54293166666667 34.497103333333335,32.541705 34.49743,32.539235 34.49807833333333,32.538 34.498401666666666,32.538 34.498401666666666,32.53549666666667 34.499046666666665,32.53423166666666 34.499361666666665,32.531705 34.5,32.528578333333336 34.50074,32.52482333333333 34.501758333333335,32.520405 34.502865,32.519145 34.503193333333336,32.519145 34.503193333333336,32.51653 34.50382833333333,32.50388 34.50693166666667,32.50388 34.50693166666667,32.50008666666667 34.507866666666665,32.49311 34.50951666666667,32.489905 34.51025666666666,32.488625 34.51055,32.484096666666666 34.51156,32.47965666666666 34.512505,32.47787 34.512888333333336,32.475265 34.513463333333334,32.474 34.513758333333335,32.47024833333333 34.514678333333336,32.46776833333333 34.515278333333335,32.463973333333335 34.516103333333334,32.461391666666664 34.51671,32.461391666666664 34.51671,32.46019166666667 34.516985,32.455895 34.517965,32.45656833333334 34.51782,32.45220666666667 34.518805,32.45220666666667 34.518805,32.44853833333333 34.519635,32.44615 34.520175,32.44433333333333 34.52061,32.44373 34.52075333333333,32.442465 34.52106,32.440673333333336 34.521498333333334,32.438285 34.522075,32.43774833333333 34.52220333333333,32.437095 34.52236,32.433596666666666 34.52323666666667,32.433596666666666 34.52323666666667,32.43114833333333 34.52385833333334,32.429405 34.52431833333333,32.428738333333335 34.524525,32.425848333333334 34.525326666666665,32.425266666666666 34.52547833333333,32.425266666666666 34.52547833333333,32.42184 34.52639666666666,32.42184 34.52639666666666,32.41825333333333 34.527375,32.41825333333333 34.527375,32.41467 34.528351666666666,32.41467 34.528351666666666,32.410536666666665 34.529555,32.410536666666665 34.529555,32.407225 34.530485,32.40398 34.531385,32.40157333333333 34.53209,32.399825 34.532576666666664,32.39513 34.533926666666666,32.393901666666665 34.53431666666667,32.38982333333333 34.535495,32.386825 34.53627,32.386825 34.53627,32.382016666666665 34.53778833333333,32.382016666666665 34.53778833333333,32.377248333333334 34.53920333333333,32.372591666666665 34.540525,32.37132666666667 34.540906666666665,32.368248333333334 34.54175333333333,32.36775 34.541866666666664,32.36416666666667 34.542945,32.358785 34.544405,32.359988333333334 34.54407666666667,32.356451666666665 34.545048333333334,32.35106 34.54651166666667,32.34925 34.54700166666667,32.345576666666666 34.548015,32.343783333333334 34.54849333333333,32.33967666666667 34.54956333333333,32.336585 34.55036166666667,32.33598333333333 34.550518333333336,32.33245 34.55140166666666,32.32999 34.55202,32.32642166666667 34.552881666666664,32.32273166666667 34.55370833333333,32.32273166666667 34.55370833333333,32.31917166666667 34.55447,32.31917166666667 34.55447,32.317901666666664 34.554741666666665,32.31554833333333 34.555265,32.314895 34.55541,32.31193666666667 34.556075,32.311345 34.556205,32.308463333333336 34.556826666666666,32.30781666666667 34.556965,32.304296666666666 34.55773,32.30488166666667 34.55760166666666,32.30079 34.55849166666667,32.301435 34.558348333333335,32.297853333333336 34.559153333333335,32.295495 34.55968166666667,32.294375 34.559936666666665,32.29141166666667 34.56060166666666,32.290823333333336 34.56074666666667,32.287835 34.56152,32.28725166666667 34.561675,32.284348333333334 34.56245,32.28324166666667 34.56274333333333,32.280245 34.563543333333335,32.279718333333335 34.56369,32.279718333333335 34.56369,32.27681166666667 34.56453,32.275533333333335 34.56490333333333,32.27274166666667 34.565715,32.27209833333333 34.56590166666667,32.26851666666666 34.56695166666667,32.26745833333333 34.56726333333334,32.26569833333333 34.56778833333333,32.265051666666665 34.567985,32.26387833333333 34.568345,32.261473333333335 34.569085,32.259845 34.56959833333333,32.25740833333333 34.570375,32.25632 34.570708333333336,32.253985 34.571475,32.25158166666667 34.572225,32.250418333333336 34.572588333333336,32.24759 34.573476666666664,32.246896666666665 34.573695,32.24457833333334 34.574436666666664,32.243535 34.57476666666667,32.24109333333333 34.57548166666667,32.239988333333336 34.57579666666667,32.23653 34.576805,32.232905 34.577846666666666,32.232905 34.577846666666666,32.230601666666665 34.57851333333333,32.22935833333333 34.578873333333334,32.225813333333335 34.57989666666667,32.22528 34.58004833333333,32.222206666666665 34.58092833333333,32.221025 34.581271666666666,32.218698333333336 34.58193333333333,32.21577333333333 34.582753333333336,32.215118333333336 34.58293833333333,32.212268333333334 34.58376,32.212268333333334 34.58376,32.211553333333335 34.58396666666667,32.20863 34.58481333333334,32.207971666666666 34.585,32.20432666666667 34.586043333333336,32.200813333333336 34.587055,32.19962 34.587403333333334,32.19717333333333 34.58810166666667,32.19549 34.58857833333333,32.194828333333334 34.588766666666665,32.193625 34.58911,32.19121833333333 34.58978833333333,32.186971666666665 34.590985,32.186373333333336 34.591155,32.18344 34.59199,32.182246666666664 34.592325,32.179786666666665 34.59301,32.17864333333333 34.59333,32.17623833333333 34.59400333333333,32.17623833333333 34.59400333333333,32.17496833333333 34.59435,32.17496833333333 34.59435,32.17138833333333 34.59531333333333,32.17138833333333 34.59531333333333,32.16769166666667 34.59632833333333,32.166545 34.59664166666666,32.16413166666667 34.597303333333336,32.162926666666664 34.597633333333334,32.159305 34.598618333333334,32.158765 34.59876666666667,32.158165 34.59893,32.155705 34.59959,32.15389833333333 34.60007,32.151545 34.60069333333333,32.14793 34.60165166666667,32.14793 34.60165166666667,32.14424833333333 34.60265833333333,32.14364666666667 34.60282333333333,32.140695 34.603633333333335,32.140035 34.60381833333334,32.140035 34.60381833333334,32.13460166666667 34.60529833333333,32.13032333333334 34.606471666666664,32.126751666666664 34.607443333333336,32.121991666666666 34.60876666666667,32.119463333333336 34.60946166666667,32.118381666666664 34.60976333333333,32.114835 34.610753333333335,32.11118333333334 34.611781666666666,32.107508333333335 34.61282,32.10456166666667 34.61365333333333,32.103365 34.61399333333333,32.10396333333333 34.613823333333336,32.09545166666667 34.616235,32.09370333333333 34.616728333333334,32.09189166666667 34.617245,32.089483333333334 34.61792833333333,32.088275 34.618273333333335,32.08593333333334 34.618945,32.08533166666667 34.61911666666666,32.08467 34.619305,32.08231333333333 34.619975,32.08231333333333 34.619975,32.081041666666664 34.62034833333333,32.07877 34.62101333333333,32.07739333333333 34.62141333333334,32.073836666666665 34.622456666666665,32.073836666666665 34.622456666666665,32.070206666666664 34.62352333333333,32.069665 34.62368333333333,32.06666833333333 34.624583333333334,32.062975 34.62564,32.062445 34.625805,32.05947 34.62676333333334,32.055835 34.62785,32.052233333333334 34.628933333333336,32.04869333333333 34.630001666666665,32.04741 34.630375,32.045001666666664 34.63109,32.04141666666667 34.63218833333333,32.037835 34.633293333333334,32.03724166666667 34.633478333333336,32.034255 34.634411666666665,32.033593333333336 34.634616666666666,32.033593333333336 34.634616666666666,32.03239 34.634993333333334,32.030645 34.635533333333335,32.028861666666664 34.6361,32.028861666666664 34.6361,32.027091666666664 34.636671666666665,32.02415 34.63762666666667,32.023565 34.63782,32.02064166666667 34.63877,32.017645 34.639735,32.016585 34.64007333333333,32.01476 34.64066166666667,32.013133333333336 34.64120333333333,32.012458333333335 34.641435,32.009526666666666 34.642285,32.00652 34.643121666666666,32.00586666666667 34.64330833333333,32.002226666666665 34.64431666666667,31.999795 34.64504,31.996295 34.64605,31.996295 34.64605,31.994041666666668 34.646705,31.992748333333335 34.647088333333336,31.990465 34.64778,31.988703333333333 34.64830833333333,31.985693333333334 34.64920166666667,31.98457 34.64953166666667,31.982173333333332 34.65021,31.980876666666667 34.650551666666665,31.979016666666666 34.651085,31.97734833333333 34.65157333333333,31.976736666666667 34.65175,31.973673333333334 34.652645,31.970226666666665 34.65369,31.969578333333335 34.65388333333333,31.966666666666665 34.65474666666667,31.966086666666666 34.654935,31.965493333333335 34.65509333333333,31.963066666666666 34.65584,31.962415 34.65604166666667,31.961936666666666 34.65618666666666,31.96192 34.65618666666666,31.96122 34.65640166666667,31.95888 34.65709,31.956443333333333 34.65781833333333,31.95531 34.65815833333333,31.951093333333333 34.65938666666667,31.948148333333332 34.66032166666667,31.946308333333334 34.66089,31.946308333333334 34.66089,31.944513333333333 34.661458333333336,31.943308333333334 34.661851666666664,31.942181666666666 34.66217666666667,31.940986666666667 34.662506666666665,31.941003333333335 34.66252166666666,31.940453333333334 34.66266666666667,31.938495 34.66323666666667,31.937946666666665 34.66338666666667,31.93728 34.66357333333333,31.937285 34.66359666666666,31.93506 34.66433333333333,31.93506 34.66433333333333,31.933848333333334 34.66470666666667,31.930165 34.66585166666667,31.92961 34.66601,31.92716666666667 34.66678666666667,31.925423333333335 34.667345,31.924825 34.667516666666664,31.92306 34.668035,31.922458333333335 34.668216666666666,31.9206 34.66878666666667,31.91940333333333 34.669153333333334,31.918866666666666 34.66931833333334,31.91702 34.66988666666666,31.91583 34.67025666666667,31.91464 34.670625,31.912258333333334 34.67136166666667,31.911725 34.671528333333335,31.909883333333333 34.67211,31.90816166666667 34.67265833333333,31.907508333333332 34.672868333333334,31.906355 34.673225,31.904716666666666 34.67375833333333,31.904045 34.67397,31.902253333333334 34.674533333333336,31.901063333333333 34.674905,31.89865 34.67568,31.896803333333335 34.676271666666665,31.896803333333335 34.676271666666665,31.89332 34.67742166666667,31.889611666666667 34.67856333333334,31.88742166666667 34.679315,31.88631833333333 34.67968166666667,31.88631833333333 34.67968166666667,31.88363 34.680526666666665,31.88249666666667 34.680888333333336,31.880093333333335 34.681685,31.87896 34.682045,31.876581666666667 34.682825,31.872986666666666 34.68402666666667,31.87181 34.68443,31.86953 34.685215,31.866618333333335 34.6862,31.866036666666666 34.686395,31.862525 34.687556666666666,31.861796666666667 34.68780666666667,31.859016666666665 34.688736666666664,31.855623333333334 34.68987333333333,31.85217 34.69103,31.85152 34.69124166666667,31.848543333333332 34.692195,31.846111666666665 34.692858333333334,31.844853333333333 34.693195,31.841233333333335 34.69412666666667,31.837536666666665 34.695105,31.833908333333333 34.69604666666667,31.83022 34.69696666666667,31.826706666666666 34.697876666666666,31.823046666666666 34.698813333333334,31.81935 34.69974666666667,31.815756666666665 34.70063833333333,31.815086666666666 34.700808333333335,31.812046666666667 34.701585,31.809675 34.702191666666664,31.808943333333332 34.702385,31.80596 34.703155,31.805291666666665 34.70332666666667,31.804681666666667 34.70348166666667,31.804681666666667 34.70348166666667,31.801633333333335 34.704258333333335,31.801025 34.704415,31.799258333333334 34.70487166666667,31.797975 34.70520166666667,31.79736 34.70536,31.7943 34.70615166666666,31.793686666666666 34.706311666666664,31.793136666666665 34.706455,31.79004 34.70724833333333,31.78817 34.707723333333334,31.786273333333334 34.708195,31.78268 34.709105,31.780185 34.70975833333333,31.778975 34.710073333333334,31.77776 34.71038166666666,31.775331666666666 34.71100333333333,31.774108333333334 34.71132333333333,31.772883333333333 34.711643333333335,31.771721666666668 34.71194666666667,31.7705 34.712268333333334,31.767996666666665 34.71292833333333,31.766778333333335 34.713251666666665,31.766778333333335 34.713251666666665,31.763783333333333 34.71404833333333,31.760126666666668 34.715003333333335,31.759455 34.715178333333334,31.75646 34.71595333333333,31.754626666666667 34.71642,31.75279 34.71689,31.750826666666665 34.717391666666664,31.749718333333334 34.71767833333333,31.749101666666668 34.71783833333333,31.745405 34.718805,31.741773333333335 34.71972,31.73809 34.720661666666665,31.737476666666666 34.720823333333335,31.73436166666667 34.721635,31.733185 34.72194,31.730866666666667 34.72257333333334,31.729571666666665 34.722915,31.727158333333332 34.723545,31.726541666666666 34.72370333333333,31.725861666666667 34.72387666666667,31.722878333333334 34.724626666666666,31.721036666666667 34.72510333333334,31.71911 34.725593333333336,31.715975 34.726366666666664,31.715295 34.72654,31.712275 34.727295,31.710375 34.72777,31.70785 34.72841666666667,31.706628333333335 34.72872666666667,31.70362666666667 34.72946666666667,31.703646666666668 34.72946833333334,31.703003333333335 34.729635,31.700015 34.73038666666667,31.699343333333335 34.73055333333333,31.695608333333332 34.731485,31.695056666666666 34.73162666666666,31.691986666666665 34.73242333333334,31.690755 34.73273833333333,31.688226666666665 34.733375,31.687055 34.733666666666664,31.684605 34.73429,31.68220833333333 34.734901666666666,31.68092 34.73523,31.678525 34.735855,31.67785 34.73602833333333,31.67484333333333 34.73681333333333,31.67484333333333 34.73681333333333,31.674165 34.73699166666667,31.671085 34.73779666666667,31.67040666666667 34.73797166666667,31.668021666666668 34.738575,31.667471666666668 34.73871333333334,31.666801666666668 34.738883333333334,31.663206666666667 34.73981,31.662535 34.739985,31.659563333333335 34.74075666666667,31.655913333333334 34.7417,31.655306666666668 34.741855,31.651596666666666 34.742803333333335,31.64734 34.74389,31.64435 34.744658333333334,31.64379 34.74480666666667,31.640023333333332 34.745705,31.63703 34.746451666666665,31.636361666666666 34.74661666666667,31.634545 34.74707,31.632726666666667 34.747526666666666,31.629766666666665 34.748263333333334,31.628506666666667 34.748585,31.626096666666665 34.74919666666667,31.624896666666668 34.749496666666666,31.622551666666666 34.750076666666665,31.621288333333332 34.750391666666665,31.617148333333333 34.751435,31.615291666666668 34.75190166666667,31.614753333333333 34.75203833333333,31.613558333333334 34.752343333333336,31.609893333333332 34.75328,31.60755 34.75385833333333,31.606351666666665 34.75414333333333,31.603955 34.75474,31.602698333333333 34.755073333333335,31.600433333333335 34.7557,31.599191666666666 34.756005,31.59866 34.756141666666664,31.59688 34.75660666666667,31.595093333333335 34.75707166666667,31.59091 34.7581,31.587325 34.75901833333333,31.585416666666667 34.75951666666667,31.58306 34.76013666666667,31.581951666666665 34.760435,31.58095 34.76070166666667,31.57947 34.76105666666667,31.578203333333335 34.76138,31.575925 34.761965,31.57466 34.762285,31.572253333333332 34.762888333333336,31.570506666666667 34.763326666666664,31.568033333333332 34.763955,31.566886666666665 34.76425,31.563253333333332 34.765161666666664,31.561921666666667 34.7655,31.556 34.76703666666667,31.554123333333333 34.76752166666667,31.54988 34.768613333333334,31.548606666666668 34.76893833333333,31.546283333333335 34.769513333333336,31.54376 34.770158333333335,31.542593333333333 34.770455,31.541248333333332 34.770788333333336,31.53764 34.77171833333333,31.53393 34.772645,31.53344166666667 34.772765,31.52977 34.773671666666665,31.526068333333335 34.77457,31.525451666666665 34.77471666666667,31.524155 34.77503,31.521685 34.775623333333336,31.52045 34.77592,31.512583333333332 34.77776333333333,31.508188333333333 34.778795,31.506865 34.77910333333333,31.504358333333332 34.77968333333333,31.500636666666665 34.780561666666664,31.496081666666665 34.781578333333336,31.492165 34.782446666666665,31.488461666666666 34.783205,31.487788333333334 34.783366666666666,31.48713 34.78351833333333,31.483861666666666 34.784215,31.481435 34.784735,31.480008333333334 34.78504,31.477535 34.785558333333334,31.476146666666665 34.78584166666667,31.472985 34.78648666666667,31.471761666666666 34.78674,31.46853 34.787411666666664,31.46457 34.788241666666664,31.459968333333332 34.789168333333336,31.458726666666667 34.78941666666667,31.45677 34.78981,31.454871666666666 34.790191666666665,31.452846666666666 34.7906,31.452191666666668 34.790728333333334,31.44827666666667 34.791533333333334,31.443753333333333 34.792426666666664,31.443033333333332 34.792566666666666,31.440348333333333 34.793095,31.439111666666665 34.793345,31.435211666666667 34.79414333333333,31.433873333333334 34.79438666666667,31.430018333333333 34.795185,31.428026666666668 34.7956,31.426016666666666 34.79605333333333,31.424635 34.796348333333334,31.42339 34.79661,31.422148333333332 34.79687166666667,31.41683 34.79804,31.413995 34.79853833333333,31.412676666666666 34.79882166666667,31.410186666666668 34.79940833333333,31.408073333333334 34.799861666666665,31.403535 34.80085666666667,31.402173333333334 34.801161666666665,31.39910666666667 34.801883333333336,31.398298333333333 34.80201666666667,31.398293333333335 34.802,31.395005 34.802733333333336,31.393693333333335 34.803025,31.390481666666666 34.80374,31.389828333333334 34.80389,31.387745 34.80437666666667,31.385208333333335 34.804968333333335,31.383906666666668 34.80527333333333,31.381245 34.805883333333334,31.377443333333332 34.806783333333335,31.374875 34.80741,31.373518333333333 34.807735,31.369706666666666 34.80864,31.367121666666666 34.80925,31.365773333333333 34.809553333333334,31.363306666666666 34.810105,31.36195 34.810401666666664,31.360133333333334 34.8108,31.358051666666668 34.81129333333333,31.356203333333333 34.81173,31.354078333333334 34.81225,31.352313333333335 34.812711666666665,31.349681666666665 34.813386666666666,31.34839 34.813705,31.343363333333333 34.81500166666667,31.340001666666666 34.81587833333333,31.334806666666665 34.817231666666665,31.33102166666667 34.818221666666666,31.325876666666666 34.81956666666667,31.321938333333332 34.82058333333333,31.319413333333333 34.82122666666667,31.317501666666665 34.821758333333335,31.314228333333332 34.822631666666666,31.309146666666667 34.82398666666667,31.305341666666667 34.82498833333333,31.303343333333334 34.82550666666667,31.301411666666667 34.826011666666666,31.29762 34.826996666666666,31.29762 34.826996666666666,31.293721666666666 34.828025,31.293148333333335 34.828176666666664,31.28931 34.829211666666666,31.288606666666666 34.8294,31.285456666666665 34.83022666666667,31.284873333333334 34.830376666666666,31.2828 34.830913333333335,31.28157 34.83123333333333,31.279635 34.831736666666664,31.275783333333333 34.83275666666667,31.27508 34.83294166666666,31.271173333333333 34.833956666666666,31.269955 34.83427666666667,31.266106666666666 34.83529166666667,31.262266666666665 34.83631,31.258371666666665 34.83734666666667,31.257153333333335 34.837666666666664,31.253995 34.83849333333333,31.253288333333334 34.838678333333334,31.249448333333333 34.83968333333333,31.248805 34.83985333333333,31.244973333333334 34.840871666666665,31.24178 34.841745,31.241141666666667 34.84192,31.237308333333335 34.842945,31.23539 34.843448333333335,31.232811666666667 34.84415,31.23089 34.84468,31.227741666666667 34.845531666666666,31.227163333333333 34.845686666666666,31.222615 34.846918333333335,31.218775 34.847968333333334,31.214378333333332 34.849228333333336,31.210473333333333 34.850335,31.206566666666667 34.85140833333333,31.203788333333332 34.852175,31.2014 34.852815,31.19949 34.853343333333335,31.195703333333334 34.85440333333333,31.192481666666666 34.85527,31.190485 34.855801666666665,31.186541666666667 34.85686166666667,31.182685 34.857925,31.181595 34.858223333333335,31.17884 34.85898,31.173851666666668 34.860348333333334,31.169951666666666 34.861403333333335,31.167388333333335 34.86209,31.165465 34.862611666666666,31.162266666666667 34.863503333333334,31.160925 34.863883333333334,31.157175 34.86492833333333,31.153283333333334 34.865993333333336,31.15213333333333 34.86631333333333,31.148905 34.86722,31.148335 34.86738166666667,31.143813333333334 34.86864833333333,31.141836666666666 34.86920166666667,31.138721666666665 34.870086666666666,31.134265 34.87135,31.131091666666666 34.87225166666666,31.12666 34.873513333333335,31.123485 34.874405,31.121743333333335 34.87492833333334,31.119868333333333 34.875465,31.117335 34.87618,31.114155 34.877071666666666,31.111621666666668 34.87779833333333,31.10277 34.88036833333334,31.095838333333333 34.88234166666667,31.09521 34.882525,31.092141666666667 34.88343,31.091021666666666 34.883765,31.088313333333332 34.88455833333333,31.08207 34.88635166666667,31.078255 34.88748666666667,31.07769 34.88765333333333,31.074491666666667 34.88858666666667,31.07017 34.88986833333333,31.068973333333332 34.89021666666667,31.06514 34.89133833333333,31.060775 34.89263833333333,31.057041666666667 34.893765,31.05648 34.89393333333334,31.05272666666667 34.89503333333333,31.048695 34.8962,31.044943333333332 34.897326666666665,31.041188333333334 34.89846166666667,31.036951666666667 34.899765,31.033001666666667 34.90092666666666,31.031765 34.901271666666666,31.02943 34.90196666666667,31.027498333333334 34.90255166666667,31.025695 34.90309833333333,31.02197 34.904235,31.020603333333334 34.904653333333336,31.018248333333332 34.90538,31.014468333333333 34.906545,31.013846666666666 34.906735,31.010781666666666 34.90764166666666,31.010781666666666 34.90764166666666,31.000048333333332 34.910621666666664,30.999423333333333 34.91079666666667,30.998796666666667 34.91097166666667,30.995043333333335 34.91200833333333,30.991355 34.91303666666666,30.99079 34.91319333333333,30.98564 34.91462166666667,30.980556666666665 34.916035,30.976796666666665 34.917078333333336,30.973133333333333 34.91811666666667,30.967508333333335 34.91963833333333,30.967508333333335 34.91963833333333,30.963666666666665 34.920665,30.95744 34.92236833333333,30.95373 34.923395,30.9499 34.92445,30.946203333333333 34.925468333333335,30.929908333333334 34.92998333333333,30.903248333333334 34.93747833333333,30.147813333333332 35.13128,30.09904 35.14616,30.06632 35.15434666666667,29.964613333333332 35.179226666666665,29.954053333333334 35.181866666666664,29.75674666666667 35.23690666666667,29.723226666666665 35.24672,29.701226666666667 35.25288,29.6804 35.25834666666667,29.66472 35.26232,29.664133333333332 35.26248,29.663493333333335 35.26264,29.591786666666668 35.28066666666667,29.5912 35.2808,29.273733333333332 35.36472,29.0216 35.42858666666667,28.967553333333335 35.442123333333335,28.930426666666666 35.45173333333334,28.886533333333333 35.46333333333333,28.872178333333334 35.467216666666666,28.850675 35.472925,28.84697 35.47393,28.843135 35.47496666666667,28.839408333333335 35.47595333333334,28.835655 35.477005,28.806213333333332 35.48506666666667,28.831831666666666 35.47810166666667,28.70799 35.512278333333335,28.700068333333334 35.514273333333335,28.69509 35.51546833333333,28.690858333333335 35.516445,28.68599 35.51751333333333,28.681638333333332 35.51852,28.677425 35.519466666666666,28.673103333333334 35.520435,28.66936 35.52128,28.668216666666666 35.52156333333333,28.664536666666667 35.52240666666667,28.659523333333333 35.52349666666667,28.6552 35.52438166666666,28.649813333333334 35.52549333333333,28.646053333333334 35.526268333333334,28.64174 35.527123333333336,28.63804 35.52782666666667,28.634335 35.528553333333335,28.630645 35.52930833333333,28.626941666666667 35.53003,28.623308333333334 35.53069,28.61891 35.531525,28.61347 35.53265833333333,28.608565 35.53365333333333,28.604988333333335 35.534325,28.600733333333334 35.535221666666665,28.59719 35.536031666666666,28.59361 35.53672,28.589935 35.53749833333333,28.589328333333334 35.53761166666666,28.58744 35.53799166666667,28.582655 35.53882,28.578431666666667 35.53969333333333,28.575001666666665 35.54051333333334,28.571516666666668 35.54136666666667,28.568023333333333 35.54226666666667,28.564481666666666 35.543146666666665,28.559926666666666 35.544201666666666,28.552461666666666 35.54606666666667,28.549006666666667 35.546905,28.544436666666666 35.54805666666667,28.540366666666667 35.54902666666667,28.53634 35.550021666666666,28.531841666666665 35.55117333333333,28.528431666666666 35.55198,28.525048333333334 35.55282666666667,28.52119666666667 35.55386166666667,28.517853333333335 35.554721666666666,28.514465 35.55568,28.509373333333333 35.55702333333333,28.506011666666666 35.557905,28.502653333333335 35.55878666666667,28.499351666666666 35.559623333333334,28.495406666666668 35.560615,28.49039 35.56194333333333,28.482636666666668 35.56388666666667,28.478696666666668 35.564863333333335,28.474853333333332 35.565848333333335,28.47113166666667 35.566871666666664,28.467806666666668 35.567748333333334,28.463338333333333 35.56892,28.459595 35.569903333333336,28.458988333333334 35.57006333333333,28.455665 35.57096,28.45236166666667 35.57190166666667,28.451865 35.57203666666667,28.446923333333334 35.573373333333336,28.445723333333333 35.57369833333333,28.44364 35.57425833333333,28.442443333333333 35.574565,28.44037 35.575116666666666,28.437045 35.57600333333333,28.43316 35.57700166666667,28.432665 35.577128333333334,28.429315 35.57802,28.42882 35.57815166666666,28.42496166666667 35.579175,28.424413333333334 35.579325,28.42055 35.580313333333336,28.42055 35.580313333333336,28.416118333333333 35.581428333333335,28.415621666666667 35.58155333333333,28.412718333333334 35.582276666666665,28.40938 35.58313166666667,28.401625 35.58504166666667,28.397643333333335 35.58602166666667,28.393236666666667 35.58702,28.389268333333334 35.58782,28.38478 35.588741666666664,28.38080666666667 35.58956,28.376405 35.590561666666666,28.372968333333333 35.591271666666664,28.37246 35.591348333333336,28.369046666666666 35.59201,28.3652 35.592908333333334,28.360658333333333 35.593885,28.359591666666667 35.59408,28.356721666666665 35.59462666666667,28.353416666666668 35.59533166666667,28.349993333333334 35.596065,28.34842 35.59639333333333,28.345551666666665 35.59699833333333,28.343855 35.597325,28.34161 35.59778,28.339366666666667 35.59827,28.337101666666666 35.598708333333335,28.334838333333334 35.59914333333333,28.332576666666668 35.599555,28.33029833333333 35.599898333333336,28.328051666666667 35.600335,28.326935 35.600563333333334,28.312685 35.60400666666666,28.309401666666666 35.60489166666667,28.305596666666666 35.60591,28.301645 35.606883333333336,28.297901666666668 35.60789333333334,28.294483333333332 35.60884166666666,28.293506666666666 35.60914,28.289588333333334 35.610335,28.285753333333332 35.61141,28.285213333333335 35.61156833333333,28.281966666666666 35.61253,28.280403333333332 35.612986666666664,28.278211666666667 35.613661666666665,28.276708333333332 35.61411,28.274968333333334 35.614555,28.271688333333334 35.61541166666667,28.268423333333335 35.61629,28.26466 35.617308333333334,28.262486666666668 35.61788833333333,28.261398333333332 35.61817,28.257501666666666 35.61916,28.25647 35.61944333333334,28.253125 35.62029166666667,28.252078333333333 35.62054666666667,28.248816666666666 35.62136666666667,28.248263333333334 35.62151,28.24491 35.62239666666667,28.244361666666666 35.622546666666665,28.241548333333334 35.623286666666665,28.24051 35.62357333333333,28.237198333333332 35.624455,28.233363333333333 35.625515,28.23281 35.62565333333333,28.230021666666666 35.62640666666667,28.228431666666665 35.62684,28.226301666666668 35.62741166666667,28.22460166666667 35.62784166666667,28.22235166666667 35.628415,28.220166666666668 35.629005,28.21907 35.62929,28.21638 35.63001166666667,28.2148 35.63045666666667,28.211531666666666 35.63137,28.210333333333335 35.631701666666665,28.207666666666668 35.63245,28.206511666666668 35.632751666666664,28.204375 35.633311666666664,28.202683333333333 35.633768333333336,28.198913333333333 35.63480166666667,28.19995 35.63451666666667,28.195036666666667 35.63587833333333,28.195638333333335 35.63571,28.191783333333333 35.636828333333334,28.187446666666666 35.638055,28.183631666666667 35.639138333333335,28.183631666666667 35.639138333333335,28.180381666666666 35.640101666666666,28.179351666666665 35.64040166666667,28.176153333333332 35.64131166666667,28.176153333333332 35.64131166666667,28.17234 35.642385,28.17282833333333 35.64225666666667,28.168438333333334 35.64339,28.169035 35.643235,28.164698333333334 35.64440333333334,28.165241666666667 35.64425833333333,28.16086 35.64546833333333,28.158715 35.64610166666667,28.155515 35.646993333333334,28.151676666666667 35.648048333333335,28.149508333333333 35.648645,28.148413333333334 35.648935,28.145195 35.64980833333333,28.145195 35.64980833333333,28.141886666666668 35.65072333333333,28.141886666666668 35.65072333333333,28.138201666666667 35.651735,28.138201666666667 35.651735,28.13437 35.65280333333333,28.13437 35.65280333333333,28.129996666666667 35.65401,28.129996666666667 35.65401,28.12675 35.65491166666666,28.126208333333334 35.65506333333333,28.123498333333334 35.655805,28.122475 35.65609833333333,28.11860666666667 35.657091666666666,28.11860666666667 35.657091666666666,28.114803333333334 35.65812666666667,28.09152 35.664728333333336,28.08755 35.66587166666667,28.083653333333334 35.666995,28.08314 35.667141666666666,28.079135 35.668326666666665,28.075213333333334 35.66952333333333,28.072401666666668 35.670366666666666,28.071281666666668 35.670701666666666,28.06847 35.671553333333335,28.06729 35.67191833333333,28.063901666666666 35.67295333333333,28.062825 35.67328,28.05874 35.67452333333333,28.055363333333332 35.67555,28.05194 35.67661833333333,28.050858333333334 35.676955,28.05029 35.67713333333333,28.045733333333335 35.678565,28.042281666666668 35.679651666666665,28.03892 35.680745,28.035465 35.68183666666667,28.032613333333334 35.68275666666667,28.030945 35.683278333333334,28.026326666666666 35.68475333333333,28.02512 35.68514833333333,28.020601666666668 35.68666,28.01597 35.688208333333336,28.009605 35.690306666666665,28.005633333333332 35.691631666666666,27.999796666666665 35.69361166666667,27.99356166666667 35.69576,27.990195 35.69690833333333,27.986816666666666 35.698026666666664,27.985745 35.698375,27.983455 35.69913833333333,27.983455 35.69913833333333,27.97963 35.70044333333333,27.975676666666665 35.70178666666666,27.97456 35.70216,27.971245 35.703271666666666,27.967931666666665 35.70442333333333,27.965836666666668 35.705178333333336,27.963786666666667 35.70592,27.963246666666667 35.706111666666665,27.959443333333333 35.70744666666667,27.95557833333333 35.708805,27.95557833333333 35.708805,27.951895 35.71006833333333,27.950281666666665 35.71059833333333,27.948135 35.71131666666667,27.947548333333334 35.71152,27.945416666666667 35.712246666666665,27.94382 35.712788333333336,27.9423 35.71333333333333,27.9396 35.71430333333333,27.939073333333333 35.714495,27.93595 35.715605,27.934831666666668 35.715995,27.933878333333332 35.71633333333333,27.931641666666668 35.71711166666667,27.929526666666668 35.71787,27.927505 35.71855,27.924181666666666 35.719566666666665,27.9209 35.72045,27.919225 35.720823333333335,27.917541666666665 35.72117166666666,27.916976666666667 35.72129,27.915406666666666 35.721615,27.914171666666668 35.721875,27.910245 35.722683333333336,27.905786666666668 35.723668333333336,27.902468333333335 35.724466666666665,27.902468333333335 35.724466666666665,27.899141666666665 35.72531,27.899141666666665 35.72531,27.895273333333332 35.726315,27.894778333333335 35.72644,27.891523333333332 35.727268333333335,27.891523333333332 35.727268333333335,27.887205 35.728381666666664,27.883926666666667 35.72921,27.882885 35.72947166666667,27.879476666666665 35.73036,27.875123333333335 35.731495,27.871833333333335 35.73235666666667,27.871833333333335 35.73235666666667,27.868456666666667 35.733261666666664,27.867316666666667 35.733556666666665,27.86615 35.73386333333333,27.864165 35.73434666666667,27.86304833333333 35.73462833333333,27.860885 35.735213333333334,27.858668333333334 35.735798333333335,27.853136666666668 35.73724166666667,27.849856666666668 35.73809833333333,27.849856666666668 35.73809833333333,27.845436666666668 35.73931833333334,27.838945 35.74106833333333,27.830385 35.743383333333334,27.82616 35.744505,27.822901666666667 35.74538666666667,27.8186 35.74651166666666,27.816535 35.747033333333334,27.815483333333333 35.747303333333335,27.811758333333334 35.748308333333334,27.812283333333333 35.748165,27.808615 35.749113333333334,27.804505 35.750155,27.800391666666666 35.75122,27.797758333333334 35.75190666666666,27.795288333333332 35.752518333333335,27.79421 35.752781666666664,27.790596666666666 35.753658333333334,27.786485 35.754673333333336,27.784438333333334 35.75519833333333,27.78341 35.75545,27.781818333333334 35.755845,27.779283333333332 35.756476666666664,27.77615 35.75724833333334,27.77306 35.758021666666664,27.770528333333335 35.75865833333334,27.769013333333334 35.759058333333336,27.765405 35.76002833333333,27.761338333333335 35.761046666666665,27.756678333333333 35.76225,27.75249833333333 35.76334666666666,27.748478333333335 35.76435166666667,27.747976666666666 35.76448166666667,27.74495 35.76527166666666,27.74495 35.76527166666666,27.741443333333333 35.76616,27.74043 35.76642666666667,27.738395 35.766983333333336,27.73384666666667 35.76810166666667,27.730226666666667 35.769,27.7266 35.76992666666667,27.724533333333333 35.770453333333336,27.722928333333332 35.770853333333335,27.71987 35.77158166666667,27.716818333333332 35.772328333333334,27.713825 35.77307666666667,27.710741666666667 35.77383666666667,27.710741666666667 35.77383666666667,27.706786666666666 35.77487,27.702745 35.775863333333334,27.698061666666668 35.77706833333333,27.69499666666667 35.777838333333335,27.694431666666667 35.777971666666666,27.690126666666668 35.77903833333333,27.68956 35.77916666666667,27.686498333333333 35.779923333333336,27.686498333333333 35.779923333333336,27.683741666666666 35.780651666666664,27.683288333333333 35.78077833333333,27.679688333333335 35.78174,27.676616666666668 35.78249666666667,27.676616666666668 35.78249666666667,27.67359 35.783295,27.673086666666666 35.783425,27.669541666666667 35.784346666666664,27.665536666666668 35.78541666666667,27.67059666666667 35.78407333333333,27.650441666666666 35.78944833333333,27.650441666666666 35.78944833333333,27.646423333333335 35.790456666666664,27.646423333333335 35.790456666666664,27.642673333333335 35.791426666666666,27.643226666666667 35.79125166666667,27.639498333333332 35.79293833333333,27.639498333333332 35.79293833333333,27.636775 35.79494,27.633745 35.797385,27.634076666666665 35.797113333333336,27.6311 35.799483333333335,27.630675 35.79981,27.627623333333332 35.802105,27.628381666666666 35.80154,27.62459 35.804388333333335,27.621555 35.80675166666666,27.61828 35.80934666666667,27.61828 35.80934666666667,27.615648333333333 35.81135833333333,27.613091666666666 35.813338333333334,27.610335 35.815443333333334,27.60763 35.81756,27.604955 35.81959833333333,27.602196666666668 35.82181833333333,27.59905 35.82425666666666,27.596168333333335 35.82644166666667,27.59341 35.828625,27.590235 35.83110666666666,27.587426666666666 35.833215,27.587026666666667 35.83351833333333,27.584625 35.83538166666666,27.584275 35.835658333333335,27.58196166666667 35.837475,27.580345 35.838746666666665,27.579095 35.83969833333333,27.577513333333332 35.840898333333335,27.575915 35.84216166666667,27.574295 35.843453333333336,27.571193333333333 35.845885,27.570381666666666 35.84655333333333,27.570025 35.846835,27.568828333333332 35.847765,27.567543333333333 35.84875,27.564713333333334 35.85096166666667,27.561981666666668 35.853145,27.564311666666665 35.85128,27.557271666666665 35.85687166666666,27.556101666666667 35.85780666666667,27.554868333333335 35.85876833333333,27.55331333333333 35.859985,27.55247333333333 35.860636666666664,27.550531666666668 35.86213,27.548975 35.86335166666667,27.547793333333335 35.864315,27.5463 35.86555333333333,27.543193333333335 35.86805666666667,27.54246 35.86864333333333,27.540145 35.870531666666665,27.540898333333335 35.869908333333335,27.537518333333335 35.872658333333334,27.534503333333333 35.875031666666665,27.535613333333334 35.874165,27.530235 35.87837666666667,27.52917 35.879225,27.526678333333333 35.88126833333333,27.527725 35.880408333333335,27.523998333333335 35.883361666666666,27.524773333333332 35.882776666666665,27.522078333333333 35.884865,27.52126833333333 35.88550333333333,27.518528333333332 35.887548333333335,27.516531666666666 35.88901,27.515688333333333 35.88962333333333,27.513725 35.891128333333334,27.512981666666665 35.89168166666666,27.511448333333334 35.892825,27.507128333333334 35.89602166666667,27.50439 35.89804,27.508618333333335 35.89490166666667,27.496781666666667 35.90349166666667,27.49596 35.904073333333336,27.493106666666666 35.90608,27.49031 35.9081,27.487405 35.910158333333335,27.485325 35.91161666666667,27.484146666666668 35.91245166666667,27.482511666666667 35.913605,27.481278333333332 35.914465,27.478445 35.91647833333333,27.478445 35.91647833333333,27.475581666666667 35.91853833333333,27.475126666666668 35.918855,27.472663333333333 35.920625,27.46984 35.922605,27.466591666666666 35.924905,27.463715 35.927,27.462866666666667 35.92760166666667,27.460845 35.92901666666667,27.460081666666667 35.929561666666665,27.458071666666665 35.93100666666667,27.45767 35.931308333333334,27.45538833333333 35.933233333333334,27.455051666666666 35.93351833333333,27.452791666666666 35.935425,27.452021666666667 35.936051666666664,27.45023 35.937688333333334,27.448463333333333 35.939231666666664,27.447411666666667 35.940125,27.445215 35.94206166666667,27.444893333333333 35.942346666666666,27.44239 35.94454833333333,27.44239 35.94454833333333,27.439876666666667 35.94671833333334,27.437318333333334 35.948875,27.439876666666667 35.94671833333334,27.439876666666667 35.94671833333334,27.432191666666668 35.953245,27.432191666666668 35.953245,27.42933 35.95577,27.426863333333333 35.95791166666667,27.424731666666666 35.95972833333333,27.4243 35.960098333333335,27.421443333333333 35.96257,27.418525 35.96514833333333,27.41604166666667 35.96736166666667,27.41604166666667 35.96736166666667,27.413441666666667 35.969656666666666,27.410956666666667 35.97185833333333,27.408798333333333 35.973773333333334,27.40844 35.974095,27.405833333333334 35.976395,27.40304 35.978926666666666,27.400488333333332 35.981265,27.399766666666668 35.98191166666667,27.397981666666666 35.98352166666667,27.397225 35.984195,27.395821666666667 35.985375,27.394666666666666 35.98631666666667,27.392011666666665 35.988475,27.389783333333334 35.99037166666667,27.389121666666668 35.99091166666667,27.386845 35.992778333333334,27.386435 35.99312166666667,27.384211666666666 35.99500833333333,27.381573333333332 35.99724333333333,27.381573333333332 35.99724333333333,27.3792 35.99914166666667,27.37882 35.999453333333335,27.378093333333332 36.00003666666667,27.378093333333332 36.00003666666667,27.375405 36.00222,27.374978333333335 36.00255833333333,27.37265 36.004486666666665,27.37265 36.004486666666665,27.367653333333333 36.00866833333333,27.36731 36.00896,27.365388333333332 36.01056833333333,27.364205 36.01151333333333,27.363011666666665 36.01246666666667,27.361451666666667 36.013755,27.360263333333332 36.01475666666666,27.35880166666667 36.016,27.35797833333333 36.01666,27.355625 36.018575,27.35338 36.020465,27.352591666666665 36.021155,27.351158333333334 36.022418333333334,27.349715 36.023671666666665,27.34888 36.02437166666667,27.34663 36.026295,27.343938333333334 36.028528333333334,27.343938333333334 36.028528333333334,27.341625 36.030431666666665,27.341236666666667 36.030748333333335,27.339311666666667 36.032293333333335,27.33856 36.03290333333333,27.33592 36.035093333333336,27.333248333333334 36.03728,27.330608333333334 36.03942333333333,27.330608333333334 36.03942333333333,27.328365 36.0413,27.327655 36.041891666666665,27.326136666666667 36.043185,27.325013333333334 36.04407333333333,27.323463333333333 36.045298333333335,27.32231 36.046235,27.321115 36.04721333333333,27.319966666666666 36.04817833333333,27.318841666666668 36.049103333333335,27.317231666666668 36.050395,27.31644 36.051006666666666,27.314105 36.05283,27.311915 36.054615,27.311588333333333 36.054875,27.30964833333333 36.05639,27.30889833333333 36.05698,27.30744333333333 36.058148333333335,27.305885 36.05937333333333,27.30517 36.05995333333333,27.302886666666666 36.06176333333333,27.302886666666666 36.06176333333333,27.30072 36.06355666666666,27.299991666666667 36.06416,27.2985 36.065415,27.29696 36.06655333333333,27.295928333333332 36.067328333333336,27.2941 36.068778333333334,27.291931666666667 36.070505,27.29117 36.07112333333333,27.28938 36.07259833333333,27.288681666666665 36.07318,27.286735 36.074735,27.285963333333335 36.075335,27.284445 36.07656,27.283315 36.077481666666664,27.282181666666666 36.07841333333333,27.280231666666666 36.07996333333333,27.279835 36.080275,27.27759 36.082116666666664,27.277243333333335 36.0824,27.274906666666666 36.08429,27.273765 36.085175,27.271753333333333 36.08671666666667,27.268973333333335 36.08882666666667,27.267416666666666 36.090073333333336,27.266218333333335 36.09102,27.263443333333335 36.09321666666666,27.260645 36.095483333333334,27.257918333333333 36.09770833333334,27.255138333333335 36.09998,27.252356666666667 36.10220666666667,27.249616666666668 36.10447333333333,27.248075 36.105745,27.244926666666668 36.108315,27.245388333333334 36.107925,27.242293333333333 36.110533333333336,27.242603333333335 36.110275,27.23993 36.112536666666664,27.23993 36.112536666666664,27.237753333333334 36.114468333333335,27.236206666666668 36.11576,27.23543 36.116413333333334,27.233893333333334 36.117691666666666,27.231035 36.120108333333334,27.23068333333333 36.12040666666667,27.22826 36.122415,27.227543333333333 36.12299333333333,27.225963333333333 36.124318333333335,27.224768333333333 36.12526166666667,27.22357166666667 36.12622833333333,27.221153333333334 36.12819,27.220798333333335 36.128476666666664,27.218046666666666 36.13073166666667,27.21477 36.13344333333333,27.211476666666666 36.13624,27.210318333333333 36.13722666666666,27.208645 36.13862833333334,27.205953333333333 36.14078833333333,27.203181666666666 36.1431,27.20001 36.14570333333333,27.198893333333334 36.146656666666665,27.19689 36.14839333333333,27.194193333333335 36.150573333333334,27.190903333333335 36.153145,27.188823333333332 36.154785,27.187591666666666 36.155755,27.186395 36.156705,27.18511 36.15773,27.183883333333334 36.1587,27.181463333333333 36.16066,27.178591666666666 36.16293833333334,27.175198333333334 36.165655,27.17233 36.16798166666667,27.168991666666667 36.17064,27.167673333333333 36.17169666666667,27.166086666666665 36.17292666666667,27.163946666666668 36.17458666666667,27.163141666666668 36.17527666666667,27.16152 36.17653333333333,27.160636666666665 36.17726833333333,27.159493333333334 36.178255,27.158253333333334 36.179285,27.156248333333334 36.18087333333333,27.155773333333332 36.18127833333333,27.153385 36.183233333333334,27.15091333333333 36.185183333333335,27.150121666666667 36.18579833333333,27.144335 36.190398333333334,27.140975 36.19295666666667,27.138108333333335 36.195276666666665,27.13481 36.19800333333333,27.132406666666668 36.20001666666667,27.128683333333335 36.203111666666665,27.126226666666668 36.20515666666667,27.123408333333334 36.207415,27.120436666666667 36.20979333333333,27.119253333333333 36.210775,27.118061666666666 36.211795,27.11647333333333 36.21311,27.115266666666667 36.21408,27.113623333333333 36.215381666666666,27.112346666666667 36.21637333333334,27.11046 36.218025,27.11046 36.218025,27.109661666666668 36.218735,27.106838333333332 36.221025,27.106071666666665 36.22165,27.10444 36.222975,27.103585 36.223665,27.102005 36.22501,27.101208333333332 36.22568,27.09923 36.22734,27.09923 36.22734,27.098383333333334 36.228033333333336,27.096423333333334 36.229655,27.096035 36.22999,27.092918333333333 36.23258333333333,27.090111666666665 36.234896666666664,27.090111666666665 36.234896666666664,27.087306666666667 36.23717333333333,27.08694 36.23746166666667,27.084831666666666 36.239131666666665,27.084481666666665 36.23942,27.08216 36.24140166666667,27.081775 36.24173833333333,27.078571666666665 36.24440166666667,27.079831666666667 36.243363333333335,27.07274 36.249233333333336,27.07274 36.249233333333336,27.069885 36.25165333333333,27.066121666666668 36.25481333333333,27.06273 36.25759333333333,27.06104 36.25896,27.060586666666666 36.25936,27.059836666666666 36.26003,27.057401666666667 36.262075,27.05453333333333 36.2644,27.05407 36.26479833333333,27.050683333333332 36.267561666666666,27.04738 36.27021,27.044875 36.27227333333333,27.041113333333332 36.275295,27.038636666666665 36.277321666666666,27.035381666666666 36.27997166666667,27.032931666666666 36.281895,27.0296 36.28456333333333,27.026598333333332 36.286923333333334,27.023693333333334 36.289235,27.022056666666668 36.29055666666667,27.019011666666668 36.29300833333333,27.016096666666666 36.295345,27.013111666666667 36.29767833333333,27.00964 36.300443333333334,27.006603333333334 36.30285,27.003608333333332 36.30516333333333,27.00008 36.30797166666667,26.999651666666665 36.30831666666667,26.996183333333335 36.31101,26.993586666666666 36.31308833333333,26.991028333333333 36.315055,26.98839 36.317095,26.985345 36.319375,26.982686666666666 36.32136333333333,26.97973 36.32367166666667,26.976183333333335 36.32637,26.971905 36.329816666666666,26.96898 36.332166666666666,26.965146666666666 36.33501,26.96207 36.33732833333333,26.959528333333335 36.339193333333334,26.956135 36.34179666666667,26.956135 36.34179666666667,26.953948333333333 36.34354166666667,26.947935 36.348125,26.944595 36.35059,26.941283333333335 36.353115,26.938666666666666 36.35508166666666,26.935323333333333 36.357686666666666,26.932816666666668 36.35966666666667,26.930293333333335 36.36165333333334,26.929483333333334 36.36231166666666,26.926435 36.364731666666664,26.926011666666668 36.365073333333335,26.926011666666668 36.365073333333335,26.925595 36.36542166666667,26.923526666666667 36.367151666666665,26.922315 36.368181666666665,26.922315 36.368181666666665,26.920661666666668 36.369585,26.917901666666666 36.37197333333334,26.915851666666665 36.37367833333333,26.914988333333334 36.374375,26.91175 36.37706,26.908878333333334 36.37947666666667,26.906525 36.381566666666664,26.903406666666665 36.384258333333335,26.901033333333334 36.386208333333336,26.901033333333334 36.386208333333336,26.90025 36.386865,26.897825 36.38883166666667,26.89542 36.39082833333333,26.892291666666665 36.39353333333333,26.892291666666665 36.39353333333333,26.889151666666667 36.396205,26.888028333333335 36.39718666666667,26.886475 36.398495,26.881808333333332 36.40254,26.88103 36.40322333333334,26.88103 36.40322333333334,26.877871666666667 36.40596166666667,26.876666666666665 36.406978333333335,26.875133333333334 36.408278333333335,26.871925 36.41105666666667,26.87075 36.41208666666667,26.868833333333335 36.413765,26.865695 36.416491666666666,26.865695 36.416491666666666,26.86332 36.41851166666667,26.862141666666666 36.41950833333333,26.85978 36.421571666666665,26.8567 36.42427833333333,26.854721666666666 36.425983333333335,26.853521666666666 36.427006666666664,26.851933333333335 36.42834833333333,26.85077 36.42937333333333,26.848401666666668 36.43146,26.847326666666667 36.43243666666667,26.845791666666667 36.433805,26.844621666666665 36.43486,26.843045 36.436276666666664,26.84221 36.43701333333333,26.840298333333333 36.4387,26.839878333333335 36.43908,26.839165 36.439746666666665,26.838086666666666 36.44077,26.836876666666665 36.44189,26.835335 36.44329,26.834595 36.443958333333335,26.832273333333333 36.446065,26.831473333333335 36.44679166666667,26.829525 36.448586666666664,26.828806666666665 36.44925166666667,26.827605 36.450335,26.826121666666666 36.45171166666667,26.823408333333333 36.454185,26.82306833333333 36.45449,26.82079166666667 36.456646666666664,26.817878333333333 36.45939166666667,26.815213333333332 36.461906666666664,26.81255833333333 36.46445833333333,26.809923333333334 36.46693333333333,26.808023333333335 36.468743333333336,26.806805 36.46982666666667,26.805648333333334 36.47083,26.805288333333333 36.47114,26.803626666666666 36.47253833333333,26.801955 36.47395,26.801158333333333 36.47458833333334,26.799476666666667 36.475948333333335,26.79865 36.47664,26.796603333333334 36.478413333333336,26.79629 36.47869,26.793376666666667 36.48115,26.791413333333335 36.48273,26.791413333333335 36.48273,26.78973166666667 36.484048333333334,26.788468333333334 36.48502833333333,26.787321666666667 36.48591,26.784465 36.488148333333335,26.783981666666666 36.48853833333333,26.782001666666666 36.490145,26.781156666666668 36.490835,26.780788333333334 36.491126666666666,26.77785 36.49337666666667,26.777433333333335 36.493695,26.774641666666668 36.495916666666666,26.77132 36.498575,26.767993333333333 36.501165,26.767993333333333 36.501165,26.765116666666668 36.50345,26.763901666666666 36.50439,26.76259 36.505386666666666,26.761361666666666 36.506315,26.759691666666665 36.50766,26.758906666666668 36.508275,26.75683666666667 36.509905,26.756428333333332 36.510238333333334,26.755573333333334 36.510935,26.754401666666666 36.51183666666667,26.752256666666668 36.513515,26.75111 36.51442,26.748125 36.516725,26.744893333333334 36.51936333333333,26.74407 36.52000833333334,26.74128 36.52219,26.737511666666666 36.52513666666667,26.73468 36.52743,26.731833333333334 36.529691666666665,26.731833333333334 36.529691666666665,26.729041666666667 36.531893333333336,26.725733333333334 36.53454833333333,26.72257 36.53709166666667,26.720055 36.539031666666666,26.719203333333333 36.539703333333335,26.716441666666668 36.541936666666665,26.713995 36.54390166666666,26.711056666666668 36.546261666666666,26.70822 36.548566666666666,26.707421666666665 36.54924,26.704226666666667 36.551815,26.701353333333333 36.55407,26.6986 36.556325,26.696228333333334 36.558323333333334,26.694593333333334 36.55967833333333,26.693355 36.560715,26.690633333333334 36.56303666666667,26.687443333333334 36.56567,26.684613333333335 36.567996666666666,26.683 36.56933,26.681406666666668 36.57063,26.67892 36.572676666666666,26.67576 36.575355,26.673355 36.5774,26.672106666666668 36.578426666666665,26.670891666666666 36.57940833333333,26.670891666666666 36.57940833333333,26.66928 36.580693333333336,26.666196666666668 36.58333,26.663428333333332 36.58557666666667,26.65989666666667 36.58852666666667,26.659411666666667 36.588923333333334,26.657023333333335 36.59094833333333,26.65462 36.592971666666664,26.652226666666667 36.595011666666664,26.648263333333333 36.598435,26.64745 36.599125,26.6425 36.60312666666667,26.640093333333333 36.605065,26.631478333333334 36.61188666666666,26.631478333333334 36.61188666666666,26.628543333333333 36.61420833333333,26.625201666666666 36.61679,26.622795 36.618703333333336,26.62243 36.618986666666665,26.619541666666667 36.621208333333335,26.617093333333333 36.62312,26.61344666666667 36.626015,26.610568333333333 36.628161666666664,26.610568333333333 36.628161666666664,26.608108333333334 36.630075,26.604405 36.63304333333333,26.603165 36.63401,26.60145 36.63533833333333,26.598083333333335 36.637883333333335,26.598083333333335 36.637883333333335,26.595568333333333 36.63983666666667,26.593025 36.64177166666666,26.590485 36.643755,26.590108333333333 36.644058333333334,26.58792 36.645723333333336,26.584858333333333 36.64792833333333,26.584858333333333 36.64792833333333,26.581946666666667 36.65020833333333,26.579333333333334 36.6522,26.576858333333334 36.65408,26.573808333333332 36.65643333333333,26.57265 36.65741,26.570358333333335 36.65911333333333,26.567338333333332 36.661458333333336,26.564141666666668 36.66369,26.561378333333334 36.665835,26.560978333333335 36.66614333333333,26.55925166666667 36.66743,26.558326666666666 36.6681,26.555711666666667 36.67011333333333,26.554338333333334 36.67114333333333,26.553011666666666 36.67214,26.550536666666666 36.674038333333336,26.547975 36.67605666666667,26.546068333333334 36.67742333333333,26.54557 36.6778,26.545116666666665 36.67814166666667,26.541923333333333 36.680515,26.539206666666665 36.682471666666665,26.53470666666667 36.68579833333333,26.532503333333334 36.687353333333334,26.531553333333335 36.688046666666665,26.527931666666667 36.690731666666665,26.52523 36.692766666666664,26.522503333333333 36.69484833333333,26.518883333333335 36.69745,26.518883333333335 36.69745,26.51432 36.700808333333335,26.511611666666667 36.702873333333336,26.50841 36.70527666666667,26.506966666666667 36.706305,26.505083333333335 36.70768,26.505083333333335 36.70768,26.503218333333333 36.70905333333334,26.499063333333332 36.712093333333335,26.496321666666667 36.71411333333333,26.493571666666668 36.716233333333335,26.491293333333335 36.71796166666667,26.490836666666667 36.7183,26.487576666666666 36.720645,26.48426 36.723025,26.481078333333333 36.72539833333333,26.47792 36.727775,26.477428333333332 36.72815833333333,26.474296666666667 36.73062,26.471491666666665 36.73269333333333,26.468403333333335 36.735035,26.465646666666668 36.737138333333334,26.463905 36.73851333333333,26.462063333333333 36.739955,26.460716666666666 36.741,26.459396666666667 36.74199,26.456668333333333 36.74402166666667,26.453925 36.74602333333333,26.451196666666668 36.748043333333335,26.449806666666667 36.74910333333333,26.44845 36.75011666666666,26.44577 36.75217,26.442213333333335 36.754936666666666,26.438665 36.75767833333333,26.436886666666666 36.75907,26.435995 36.759765,26.433351666666667 36.761825,26.429501666666667 36.76506666666667,26.426288333333332 36.76761,26.423671666666667 36.76978833333333,26.423283333333334 36.77011666666667,26.421075 36.771985,26.419836666666665 36.77305,26.416808333333332 36.77559333333333,26.414231666666666 36.777748333333335,26.411606666666668 36.77991166666666,26.410693333333334 36.780676666666665,26.408948333333335 36.78214333333333,26.406368333333333 36.7843,26.402408333333334 36.787623333333336,26.399791666666665 36.78987,26.398495 36.790971666666664,26.397666666666666 36.791671666666666,26.397223333333333 36.79203833333333,26.395865 36.79318833333333,26.394591666666667 36.794268333333335,26.391973333333333 36.796553333333335,26.391495 36.796975,26.388863333333333 36.799231666666664,26.387983333333334 36.79998666666667,26.38495 36.80258666666667,26.384045 36.803385,26.383618333333335 36.80376833333333,26.38148 36.805661666666666,26.380168333333334 36.806756666666665,26.378895 36.80781666666667,26.375896666666666 36.81037666666667,26.375371666666666 36.81082333333333,26.372831666666666 36.813045,26.37245 36.813385,26.371175 36.81453,26.36994333333333 36.81563666666667,26.369393333333335 36.816131666666664,26.36684 36.818403333333336,26.366073333333333 36.819111666666664,26.363508333333332 36.82142666666667,26.363085 36.821796666666664,26.36005 36.82450166666667,26.35881 36.82559,26.357965 36.826315,26.357125 36.82705833333333,26.354138333333335 36.82975833333333,26.351965 36.831626666666665,26.350245 36.83307166666667,26.349371666666666 36.83381833333333,26.347135 36.8357,26.34669 36.836063333333335,26.345843333333335 36.836751666666665,26.344056666666667 36.8382,26.343566666666668 36.838595,26.34089833333333 36.84075833333333,26.34050166666667 36.84108666666667,26.337831666666666 36.84331666666667,26.33481 36.845823333333335,26.33348 36.84690166666667,26.332161666666668 36.847985,26.332161666666668 36.847985,26.329958333333334 36.849805,26.32947 36.850205,26.326391666666666 36.85270333333333,26.322928333333333 36.8555,26.321161666666665 36.85698166666667,26.320345 36.857663333333335,26.318256666666667 36.859495,26.31785 36.85986666666667,26.317036666666667 36.860615,26.315405 36.86211333333333,26.314153333333334 36.86328666666667,26.312118333333334 36.86519333333333,26.310068333333334 36.867105,26.309246666666667 36.86787833333333,26.307253333333332 36.869773333333335,26.306441666666668 36.870533333333334,26.306081666666667 36.87088,26.303215 36.873635,26.30285 36.87398,26.30002 36.876621666666665,26.298366666666666 36.878161666666664,26.295558333333332 36.880698333333335,26.295156666666667 36.881065,26.292845 36.883356666666664,26.29252 36.8837,26.290051666666667 36.886365,26.289695 36.88675,26.287828333333334 36.888745,26.286761666666667 36.889846666666664,26.285 36.89179333333333,26.284335 36.892645,26.281405 36.89722,26.277303333333332 36.90413,26.276533333333333 36.905435,26.275795 36.90669333333334,26.275543333333335 36.90712666666667,26.274025 36.909771666666664,26.273793333333334 36.91016166666667,26.270701666666668 36.915441666666666,26.270431666666667 36.915933333333335,26.268528333333332 36.91837,26.268528333333332 36.91837,26.268115 36.918776666666666,26.264375 36.92187333333333,26.262636666666666 36.923183333333334,26.261258333333334 36.924235,26.259911666666667 36.925235,26.25861 36.926205,26.256221666666665 36.92798333333333,26.255361666666666 36.92861666666667,26.25354 36.929921666666665,26.250428333333332 36.93213166666666,26.249976666666665 36.932446666666664,26.246226666666665 36.93494166666667,26.238808333333335 36.93985333333333,26.23598 36.9418,26.23506 36.94244666666667,26.227388333333334 36.947245,26.22461 36.94907,26.216663333333333 36.954928333333335,26.213735 36.9584,26.213146666666667 36.95916833333333,26.212115 36.96051833333333,26.20924 36.964065,26.205086666666666 36.96933,26.204736666666665 36.969775,26.202773333333333 36.972181666666664,26.202416666666668 36.972615,26.19985 36.975645,26.19853833333333 36.97728166666667,26.197663333333335 36.97848,26.195495 36.98133,26.193683333333333 36.98379333333333,26.19274 36.98507333333333,26.18602 36.99420166666667,26.184135 36.996716666666664,26.181986666666667 36.99964833333333,26.176628333333333 37.00673,26.172835 37.011786666666666,26.171018333333333 37.014405,26.169785 37.01615666666667,26.169253333333334 37.016933333333334,26.16768 37.01915,26.166821666666667 37.02033,26.164621666666665 37.02332333333333,26.162515 37.02635333333333,26.161006666666665 37.028391666666664,26.160335 37.02925,26.158438333333333 37.03176833333333,26.158438333333333 37.03176833333333,26.155941666666667 37.03511666666667,26.150891666666666 37.04192666666667,26.148963333333334 37.044415,26.148315 37.045251666666665,26.146075 37.048175,26.141928333333333 37.053691666666666,26.139376666666667 37.057091666666665,26.13188 37.067303333333335,26.129646666666666 37.07018333333333,26.127508333333335 37.07315333333333,26.125608333333332 37.07575166666667,26.12317 37.079193333333336,26.121086666666667 37.082175,26.120788333333333 37.08260333333333,26.119251666666667 37.084675,26.117396666666668 37.087315,26.111768333333334 37.095616666666665,26.108723333333334 37.100051666666666,26.106693333333332 37.103155,26.104355 37.106635,26.102871666666665 37.10876,26.097781666666666 37.11611833333333,26.095651666666665 37.119191666666666,26.093915 37.12172666666667,26.093316666666666 37.12264166666667,26.089513333333333 37.12924833333334,26.0863 37.135205,26.084305 37.138865,26.082583333333332 37.142066666666665,26.080666666666666 37.145763333333335,26.078873333333334 37.14901666666667,26.078873333333334 37.14901666666667,26.071633333333335 37.16260833333333,26.06912833333333 37.16777833333333,26.068453333333334 37.16911833333333,26.0675 37.170966666666665,26.064703333333334 37.176535,26.062418333333333 37.18115,26.061056666666666 37.183976666666666,26.057953333333334 37.18998333333333,26.057723333333332 37.190455,26.056558333333335 37.192856666666664,26.055208333333333 37.19564333333334,26.05084 37.20469,26.048486666666665 37.20954833333333,26.045808333333333 37.213075,26.043516666666665 37.215511666666664,26.04125833333333 37.21794333333333,26.03366 37.22597,26.031373333333335 37.228385,26.02979 37.230015,26.02628 37.233558333333335,26.023136666666666 37.236665,26.02028 37.23932666666666,26.017845 37.24153166666667,26.017435 37.241908333333335,26.014865 37.244105,26.011006666666667 37.24749,26.00554 37.25226833333333,26.00479 37.252935,26.001933333333334 37.2555,25.994073333333333 37.262026666666664,25.99245 37.26345666666667,25.987833333333334 37.2675,25.985315 37.26978666666667,25.97964 37.27506,25.974571666666666 37.280245,25.972325 37.28254166666667,25.968618333333332 37.28638,25.967448333333333 37.28758,25.964526666666668 37.2906,25.961518333333334 37.29371,25.957448333333332 37.297905,25.955913333333335 37.299456666666664,25.95294 37.30243333333333,25.949818333333333 37.30534166666666,25.947185 37.30788166666667,25.946106666666665 37.308995,25.945076666666665 37.310065,25.942873333333335 37.31229166666667,25.940036666666668 37.315235,25.937965 37.317413333333334,25.935856666666666 37.31962,25.935115 37.320393333333335,25.933661666666666 37.321866666666665,25.931523333333335 37.32404666666667,25.924466666666667 37.33106,25.92406 37.33146333333333,25.9137 37.342285,25.909775 37.34645166666667,25.90801 37.348306666666666,25.90734 37.34900833333333,25.905943333333333 37.350503333333336,25.90527833333333 37.351216666666666,25.903785 37.35277,25.903143333333333 37.35344333333333,25.903143333333333 37.35344333333333,25.901258333333335 37.355375,25.900931666666665 37.355711666666664,25.899111666666666 37.357565,25.896926666666666 37.35978333333333,25.894716666666667 37.36199166666667,25.89287 37.36387666666667,25.892541666666666 37.364205,25.892145 37.36461,25.890313333333335 37.36642666666667,25.887736666666665 37.368991666666666,25.885576666666665 37.371233333333336,25.883381666666665 37.37347833333333,25.882285 37.374605,25.881211666666665 37.375701666666664,25.881211666666665 37.375701666666664,25.879693333333332 37.377253333333336,25.878573333333332 37.378371666666666,25.875645 37.381251666666664,25.874458333333333 37.38246,25.873435 37.38353166666667,25.871106666666666 37.385886666666664,25.869643333333332 37.38737833333333,25.868861666666668 37.38818,25.866595 37.39046,25.864358333333332 37.392736666666664,25.86398 37.393121666666666,25.86208 37.39510166666667,25.859855 37.397415,25.858763333333332 37.39852,25.857563333333335 37.39968833333333,25.855695 37.40154166666667,25.85495 37.402303333333336,25.852695 37.404581666666665,25.847998333333333 37.41014166666667,25.842026666666666 37.41833166666667,25.839283333333334 37.422005,25.838985 37.42241833333333,25.838071666666668 37.4237,25.83755 37.42445,25.8357 37.426923333333335,25.833563333333334 37.429895,25.831776666666666 37.43245833333334,25.831776666666666 37.43245833333334,25.830011666666667 37.43507666666667,25.828258333333334 37.43771,25.827331666666666 37.43916333333333,25.826446666666666 37.440465,25.825238333333335 37.4422,25.824585 37.443133333333336,25.822721666666666 37.445811666666664,25.820851666666666 37.44848666666667,25.820851666666666 37.44848666666667,25.820851666666666 37.44848666666667,25.81866 37.45159666666667,25.816786666666665 37.45428166666667,25.816481666666668 37.45473,25.812146666666667 37.46113166666667,25.8116 37.46194833333333,25.811301666666665 37.462401666666665,25.810393333333334 37.46375333333334,25.809451666666668 37.465155,25.808583333333335 37.46647333333333,25.807605 37.46785333333333,25.806793333333335 37.46918,25.803341666666668 37.47581666666667,25.803078333333332 37.476285,25.802586666666667 37.47722666666667,25.801788333333334 37.479121666666664,25.800993333333334 37.48208,25.800811666666668 37.48302833333333,25.800446666666666 37.48507,25.800095 37.488058333333335,25.79996166666667 37.490066666666664,25.799955 37.49058333333333,25.799948333333333 37.491103333333335,25.799676666666667 37.497128333333336,25.79984 37.493543333333335,25.79937 37.50568166666667,25.799213333333334 37.51179,25.79919 37.51233666666667,25.799096666666667 37.514871666666664,25.799073333333332 37.51537833333333,25.798988333333334 37.51786666666667,25.798981666666666 37.51842666666667,25.798936666666666 37.52097333333333,25.798911666666665 37.522,25.798863333333333 37.524005,25.798843333333334 37.52507333333333,25.798803333333332 37.52707,25.798788333333334 37.528145,25.798758333333332 37.53019166666667,25.798723333333335 37.531218333333335,25.798678333333335 37.534301666666664,25.79864 37.53630166666667,25.798618333333334 37.537378333333336,25.79854 37.541428333333336,25.79853 37.541891666666665,25.798521666666666 37.54400666666667,25.79850666666667 37.544983333333334,25.798491666666667 37.547095,25.79848 37.548055,25.79838833333333 37.55010166666667,25.798288333333332 37.55169,25.798288333333332 37.55169,25.798288333333332 37.55169,25.798181666666668 37.55318,25.79809 37.55470833333333,25.797996666666666 37.55632166666667,25.797945 37.557896666666664,25.79778 37.56099,25.797691666666665 37.562488333333334,25.79754 37.56462,25.797486666666668 37.565601666666666,25.79740333333333 37.567188333333334,25.797375 37.567701666666665,25.797166666666666 37.570735,25.79713 37.57125166666667,25.796918333333334 37.574875,25.79689 37.575388333333336,25.7968 37.57749333333334,25.796756666666667 37.57848666666667,25.796756666666667 37.57848666666667,25.796595 37.58153333333333,25.796538333333334 37.58262,25.796445 37.584685,25.796401666666668 37.58566166666667,25.796181666666666 37.589365,25.795931666666668 37.59296,25.795931666666668 37.59296,25.795678333333335 37.596045,25.795678333333335 37.596045,25.795543333333335 37.598055,25.795475 37.599145,25.795475 37.599145,25.795273333333334 37.602245,25.79503 37.606255,25.794956666666668 37.60733166666667,25.794746666666665 37.6104,25.794763333333332 37.610405,25.794586666666667 37.61290666666667,25.794551666666667 37.613525,25.794551666666667 37.613525,25.794453333333333 37.61504,25.794303333333332 37.61752,25.7941 37.620643333333334,25.794066666666666 37.62121,25.793883333333333 37.62428666666667,25.79383 37.62531166666667,25.793676666666666 37.62831666666667,25.79365 37.628875,25.793516666666665 37.63142166666667,25.79333 37.63449166666667,25.793095 37.638015,25.792875 37.641128333333334,25.792841666666668 37.64158666666667,25.792676666666665 37.64418666666667,25.792676666666665 37.64418666666667,25.792676666666665 37.64418666666667,25.792646666666666 37.644695,25.79247833333333 37.64815,25.792283333333334 37.65130333333333,25.79224 37.65175833333333,25.791911666666667 37.654846666666664,25.791856666666668 37.65535333333333,25.791543333333333 37.65832833333333,25.79131 37.660396666666664,25.79131 37.660396666666664,25.790941666666665 37.663423333333334,25.790856666666667 37.664381666666664,25.790661666666665 37.666455,25.790561666666665 37.667408333333334,25.79014 37.67146666666667,25.789828333333332 37.67456333333333,25.788785 37.684605,25.788431666666668 37.687695,25.788215 37.68971,25.788215 37.68971,25.788101666666666 37.69072666666667,25.78787833333333 37.69281333333333,25.787715 37.69432666666667,25.787556666666667 37.69584833333333,25.787375 37.697775,25.787271666666665 37.698838333333335,25.78697 37.701418333333336,25.78665 37.70444,25.786601666666666 37.70484166666667,25.786538333333333 37.705391666666664,25.78629 37.70785,25.785853333333332 37.71288666666667,25.785693333333334 37.714398333333335,25.785533333333333 37.71595666666666,25.785386666666668 37.717465,25.785228333333333 37.71902,25.785138333333332 37.719921666666664,25.78508666666667 37.720525,25.784828333333333 37.72350333333333,25.784673333333334 37.725075,25.783933333333334 37.73262666666667,25.783728333333332 37.73506666666667,25.783728333333332 37.73506666666667,25.78368 37.73567333333333,25.783446666666666 37.738656666666664,25.783245 37.74169333333333,25.783186666666666 37.74225,25.782858333333333 37.74471833333333,25.782788333333333 37.74522,25.782715 37.74576833333333,25.782383333333332 37.74821333333333,25.782255 37.749265,25.782151666666667 37.750215,25.781973333333333 37.751765,25.781915 37.752266666666664,25.781643333333335 37.75476833333333,25.78159 37.75527,25.780901666666665 37.76134833333333,25.780615 37.76378166666667,25.779771666666665 37.77068,25.779551666666666 37.77271666666667,25.779393333333335 37.77415666666667,25.779336666666666 37.774605,25.7792 37.77565833333333,25.778951666666668 37.77766166666667,25.778838333333333 37.778661666666665,25.778658333333333 37.780165,25.778598333333335 37.780665,25.778491666666667 37.781668333333336,25.778038333333335 37.78567666666667,25.777808333333333 37.78767833333333,25.777703333333335 37.78867833333333,25.777358333333332 37.791655,25.777018333333334 37.794646666666665,25.776951666666665 37.79519666666667,25.776951666666665 37.79519666666667,25.776666666666667 37.79765833333333,25.776295 37.80065833333333,25.775945 37.803705,25.775618333333334 37.80670166666667,25.775466666666667 37.808135,25.775283333333334 37.809673333333336,25.775225 37.81016833333333,25.774935 37.812645,25.77457 37.81559333333333,25.77422333333333 37.818665,25.773731666666666 37.82317333333334,25.773523333333333 37.825075,25.773351666666667 37.82667166666667,25.773046666666666 37.829636666666666,25.772708333333334 37.83266666666667,25.772356666666667 37.83567166666667,25.771871666666666 37.84019166666667,25.77032833333333 37.85527833333333,25.768703333333335 37.87038,25.76803 37.87692333333333,25.767788333333332 37.88049,25.76759 37.88355,25.767446666666668 37.885575,25.767363333333332 37.886588333333336,25.767131666666668 37.88964333333333,25.766671666666667 37.89678333333333,25.76638833333333 37.90134333333334,25.766301666666667 37.90291333333333,25.766158333333333 37.905953333333336,25.766001666666668 37.909486666666666,25.76584666666667 37.91247166666667,25.765676666666668 37.915565,25.765648333333335 37.916075,25.765533333333334 37.918615,25.765366666666665 37.92167833333333,25.765133333333335 37.92771166666667,25.764851666666665 37.933855,25.76465 37.937416666666664,25.764483333333335 37.94045666666667,25.764185 37.94756833333334,25.764185 37.94756833333334,25.764068333333334 37.95056833333334,25.763938333333332 37.954011666666666,25.76374 37.96107333333333,25.763621666666666 37.96356333333333,25.763606666666668 37.96406,25.763521666666666 37.967065,25.763455 37.97006833333333,25.76338 37.97303333333333,25.763293333333333 37.97607,25.763278333333332 37.97652166666666,25.763215 37.97908666666667,25.76312666666667 37.98211,25.762955 37.98817,25.762911666666668 37.991746666666664,25.762911666666668 37.991746666666664,25.762835 37.99485833333333,25.76274 38.000501666666665,25.762705 38.00355666666667,25.762643333333333 38.007113333333336,25.762431666666668 38.01109666666667,25.762263333333333 38.01367833333333,25.762195 38.01468333333333,25.761785 38.02176,25.761735 38.02277,25.761636666666668 38.02479,25.761511666666667 38.02833833333333,25.761415 38.03036,25.761331666666667 38.031886666666665,25.761215 38.03489666666667,25.761065 38.038005,25.761031666666668 38.03897333333333,25.760978333333334 38.04107166666667,25.760888333333334 38.04409,25.760783333333332 38.047176666666665,25.760716666666667 38.048705,25.760591666666667 38.05172833333334,25.76058 38.052236666666666,25.76056833333333 38.05274,25.760483333333333 38.05478,25.760291666666667 38.05782333333333,25.76011 38.061341666666664,25.760041666666666 38.06290333333333,25.759946666666668 38.06433333333333,25.759711666666668 38.067985,25.759498333333333 38.070456666666665,25.759443333333333 38.07105166666667,25.759118333333333 38.07398333333333,25.758231666666667 38.083058333333334,25.75818 38.083615,25.757105 38.093716666666666,25.75657 38.097775,25.756168333333335 38.10078333333333,25.755735 38.10389166666667,25.75568833333333 38.1043,25.755435 38.10695,25.75418833333333 38.11553333333333,25.753963333333335 38.116545,25.753263333333333 38.119566666666664,25.75255 38.12263333333333,25.751871666666666 38.125595,25.75116166666667 38.12863333333333,25.750928333333334 38.12970166666667,25.75049 38.13168833333334,25.74911 38.137856666666664,25.748408333333334 38.14087333333333,25.745308333333334 38.15428,25.744585 38.15739,25.74379 38.16093,25.742408333333334 38.167055,25.74089 38.173735,25.740138333333334 38.176815,25.739415 38.179845,25.737236666666668 38.18967166666667,25.736273333333333 38.193705,25.736393333333332 38.19319,25.730586666666667 38.21955833333333,25.730015 38.222605,25.729708333333335 38.225608333333334,25.729561666666665 38.229126666666666,25.729495 38.232153333333336,25.729486666666666 38.233215,25.729501666666668 38.235215,25.729593333333334 38.23875666666667,25.729445 38.24225,25.729106666666667 38.246315,25.72882 38.24885833333333,25.728763333333333 38.24936833333334,25.728401666666667 38.25241833333333,25.728041666666666 38.255516666666665,25.727641666666667 38.259031666666665,25.727291666666666 38.26208833333333,25.726976666666665 38.26512,25.726641666666666 38.26823,25.725823333333334 38.274835,25.725291666666667 38.27795,25.723403333333334 38.28861166666667,25.723148333333334 38.290085,25.721861666666666 38.29671666666667,25.72035 38.30275,25.717283333333334 38.31585,25.716571666666667 38.31885,25.715881666666668 38.32193,25.715248333333335 38.324895,25.714935 38.326411666666665,25.714605 38.327976666666665,25.714511666666667 38.32843,25.714028333333335 38.33095,25.713491666666666 38.33399166666667,25.712903333333333 38.33707,25.71231 38.34003,25.71172 38.34308333333333,25.711226666666665 38.346041666666665,25.710805 38.34905333333333,25.71043 38.351998333333334,25.70972 38.35810333333333,25.708963333333333 38.36522166666666,25.708728333333333 38.36826166666667,25.708296666666666 38.37434666666667,25.708211666666667 38.37582333333334,25.708146666666668 38.377401666666664,25.708033333333333 38.383518333333335,25.708055 38.387075,25.708085 38.39308,25.708053333333332 38.39611,25.70814 38.40218,25.70815 38.40519333333334,25.708185 38.40815166666667,25.708295 38.41267166666667,25.708568333333332 38.42368166666667,25.70865 38.4271,25.708716666666668 38.43008666666667,25.708808333333334 38.432965,25.709243333333333 38.44667833333333,25.709455 38.45267333333334,25.709515 38.455645,25.70961 38.45861,25.709686666666666 38.461571666666664,25.709785 38.46507,25.709821666666667 38.46650666666667,25.710046666666667 38.475516666666664,25.710141666666665 38.47851333333333,25.710326666666667 38.484503333333336,25.710506666666667 38.49055833333333,25.71061 38.49362166666667,25.71071166666667 38.49666666666667,25.710818333333332 38.499718333333334,25.710918333333332 38.502806666666665,25.711021666666667 38.505873333333334,25.71114 38.509008333333334,25.711391666666668 38.51621166666666,25.711501666666667 38.51934833333333,25.711601666666667 38.522436666666664,25.711645 38.52348333333333,25.711716666666668 38.52558333333333,25.711895 38.533543333333334,25.71195833333333 38.53671166666667,25.711945 38.543525,25.711923333333335 38.547221666666665,25.711868333333335 38.55036333333334,25.711768333333332 38.554028333333335,25.711736666666667 38.55708666666666,25.711741666666665 38.561661666666666,25.71175 38.57176666666667,25.711688333333335 38.57479333333333,25.71165 38.577835,25.71160666666667 38.58132333333333,25.711556666666667 38.584355,25.711525 38.587896666666666,25.711508333333335 38.59093,25.711503333333333 38.594471666666664,25.711491666666667 38.598076666666664,25.711525 38.605106666666664,25.71153 38.606118333333335,25.711495 38.60961,25.711581666666667 38.62165666666667,25.711623333333332 38.62463666666667,25.711758333333332 38.634141666666665,25.711495 38.639065,25.711143333333332 38.64507,25.71106 38.64651666666666,25.710656666666665 38.65450833333333,25.710161666666668 38.66551333333334,25.710041666666665 38.66855833333333,25.709936666666668 38.671506666666666,25.709806666666665 38.675016666666664,25.7096 38.681555,25.70921166666667 38.69255166666667,25.709073333333333 38.696086666666666,25.709036666666666 38.697138333333335,25.70892 38.70158833333333,25.708475 38.71171,25.708273333333334 38.71481,25.708048333333334 38.717816666666664,25.70756 38.72503833333333,25.707135 38.73211333333333,25.706913333333333 38.73518,25.70644 38.73815666666667,25.705503333333333 38.74574,25.704878333333333 38.751686666666664,25.70429 38.757506666666664,25.702958333333335 38.77113666666666,25.702391666666667 38.77699666666667,25.702105 38.77995666666666,25.701145 38.790663333333335,25.700685 38.793123333333334,25.700406666666666 38.79457166666667,25.697971666666668 38.82711333333334,25.69757 38.83587,25.697551666666666 38.836301666666664,25.69743 38.839196666666666,25.697408333333332 38.83967833333333,25.697175 38.845971666666664,25.696905 38.8529,25.696533333333335 38.86061333333333,25.69634 38.864583333333336,25.696203333333333 38.867981666666665,25.696063333333335 38.87092333333333,25.695916666666665 38.873866666666665,25.69578 38.876805,25.694716666666668 38.905613333333335,25.694661666666665 38.907561666666666,25.694511666666667 38.912058333333334,25.69442 38.915515,25.694256666666668 38.92191166666667,25.694223333333333 38.92290833333333,25.694171666666666 38.924825,25.694125 38.92679,25.694088333333333 38.92777666666667,25.693931666666668 38.93369333333333,25.693771666666667 38.93959,25.693718333333333 38.94167,25.693696666666668 38.94260833333333,25.693461666666668 38.956065,25.693513333333332 38.95207166666667,25.693313333333332 38.9645,25.69324 38.972413333333336,25.692968333333333 38.976796666666665,25.692761666666666 38.97969166666667,25.692548333333335 38.98269833333333,25.69232166666667 38.985661666666665,25.692108333333334 38.98860833333333,25.692001666666666 38.99003166666667,25.69174 38.993075,25.691445 38.9966,25.691203333333334 38.99952666666667,25.69101 39.00199,25.690926666666666 39.003025,25.690683333333332 39.00597833333333,25.690466666666666 39.00895166666667,25.690235 39.0119,25.689993333333334 39.01486166666667,25.689956666666667 39.015305,25.689713333333334 39.01829333333333,25.689466666666668 39.021231666666665,25.689218333333333 39.024175,25.689001666666666 39.02710666666667,25.688795 39.029981666666664,25.688551666666665 39.03293333333333,25.688448333333334 39.03429166666667,25.688278333333333 39.03677166666667,25.688083333333335 39.039653333333334,25.687823333333334 39.04355833333333,25.687606666666667 39.04702833333333,25.687273333333334 39.05094833333333,25.687008333333335 39.054381666666664,25.686748333333334 39.057381666666664,25.686433333333333 39.060325,25.68579 39.067148333333336,25.685525 39.07011,25.685238333333334 39.07308,25.684926666666666 39.076055,25.684601666666666 39.07904,25.683771666666665 39.086571666666664,25.683453333333333 39.08954833333333,25.683181666666666 39.092166666666664,25.68286833333333 39.095191666666665,25.68216 39.101755,25.681855 39.104701666666664,25.681743333333333 39.10577333333333,25.681516666666667 39.107798333333335,25.681148333333333 39.110865,25.680803333333333 39.11390333333333,25.680456666666668 39.11695,25.680123333333334 39.119933333333336,25.680123333333334 39.119933333333336,25.679791666666667 39.12301166666666,25.679398333333335 39.126551666666664,25.67898 39.130071666666666,25.678611666666665 39.133105,25.678448333333332 39.13463333333333,25.67781 39.14023666666667,25.677465 39.14328666666667,25.676776666666665 39.14894666666667,25.67658 39.15043,25.676251666666666 39.152995,25.675886666666667 39.15602166666667,25.675866666666668 39.16229333333333,25.675985 39.16535,25.675985 39.16535,25.676701666666666 39.17884166666666,25.676998333333334 39.181551666666664,25.677045 39.18196833333333,25.677393333333335 39.18509666666667,25.677763333333335 39.188273333333335,25.679631666666666 39.20398,25.68072 39.212781666666665,25.680455 39.21069833333333,25.681578333333334 39.220061666666666,25.682363333333335 39.22624166666667,25.682613333333332 39.227743333333336,25.682881666666667 39.22929,25.684465 39.24319,25.684953333333333 39.249295,25.685416666666665 39.252363333333335,25.68720666666667 39.25888833333333,25.687376666666665 39.25944833333333,25.688216666666666 39.262475,25.690478333333335 39.27158,25.690965 39.27359,25.690735 39.27263666666666,25.692088333333334 39.27809,25.69308 39.28209666666667,25.693805 39.285111666666666,25.69527666666667 39.2911,25.696908333333333 39.29768,25.697648333333333 39.300621666666665,25.698411666666665 39.30361833333333,25.699183333333334 39.306688333333334,25.699295 39.307141666666666,25.699923333333334 39.30965333333333,25.700676666666666 39.31272166666667,25.701553333333333 39.3162,25.702296666666665 39.319185,25.70308 39.322311666666664,25.70308 39.322311666666664,25.703453333333332 39.32377,25.704246666666666 39.326818333333335,25.705865 39.333333333333336,25.706351666666666 39.33536,25.70885 39.345525,25.709623333333333 39.34855666666667,25.710366666666665 39.351535,25.71013 39.35057166666667,25.711138333333334 39.35462666666667,25.71193 39.35771,25.712683333333334 39.36069666666667,25.713455 39.36378833333333,25.714176666666667 39.366746666666664,25.715198333333333 39.370866666666664,25.71573 39.372888333333336,25.717253333333332 39.37898166666667,25.717873333333333 39.38147,25.718 39.381975,25.71878166666667 39.38504,25.719526666666667 39.38807833333333,25.720266666666667 39.39121166666666,25.72114 39.39474166666667,25.72114 39.39474166666667,25.723538333333334 39.404415,25.724296666666667 39.40744,25.725096666666666 39.41054333333334,25.725873333333332 39.41359833333333,25.726628333333334 39.41661333333333,25.727456666666665 39.41971,25.728251666666665 39.42272166666667,25.729058333333334 39.425825,25.729876666666666 39.42888833333333,25.731546666666667 39.43499333333333,25.732378333333333 39.437981666666666,25.734026666666665 39.44425833333333,25.73466 39.44678666666667,25.734793333333332 39.447298333333336,25.735545 39.45039333333333,25.736211666666666 39.45351,25.736896666666667 39.45661,25.737603333333333 39.45971,25.738633333333333 39.46434166666667,25.739781666666666 39.46944,25.74061 39.472485,25.741575 39.476076666666664,25.742378333333335 39.47906833333333,25.743143333333332 39.48218,25.744005 39.485173333333336,25.744963333333335 39.48831666666667,25.745888333333333 39.49137,25.749753333333334 39.504425,25.7516 39.510435,25.752535 39.5135,25.756255 39.52548,25.757425 39.52911666666667,25.758346666666668 39.53214833333333,25.75813 39.53865833333333,25.759631666666667 39.552735,25.761883333333333 39.55865,25.763031666666667 39.561658333333334,25.76808 39.574558333333336,25.770316666666666 39.58038333333333,25.77285 39.586905,25.774013333333333 39.58986,25.77520833333333 39.592951666666664,25.77754 39.5989,25.784788333333335 39.61385833333333,25.786366666666666 39.616753333333335,25.7895 39.622475,25.79104 39.625295,25.797925 39.63657166666667,25.799775 39.63928333333333,25.803543333333334 39.64480833333333,25.805953333333335 39.648401666666665,25.807853333333334 39.65119333333333,25.809738333333332 39.653951666666664,25.813521666666666 39.65955,25.816001666666665 39.66323833333333,25.817891666666668 39.66605833333333,25.81977 39.668825,25.82189 39.671973333333334,25.823801666666668 39.67478666666667,25.825935 39.677971666666664,25.825935 39.677971666666664,25.827771666666667 39.680683333333334,25.831576666666667 39.686295,25.83332 39.68886666666667,25.835023333333332 39.69143,25.835248333333332 39.69177166666667,25.836721666666666 39.693995,25.838395 39.696486666666665,25.838918333333332 39.697253333333336,25.84014833333333 39.699261666666665,25.841473333333333 39.701591666666666,25.842701666666667 39.70397333333333,25.843901666666667 39.70652,25.845045 39.708823333333335,25.846166666666665 39.7113,25.84716 39.71339,25.85005 39.719438333333336,25.850995 39.72141166666667,25.851843333333335 39.723165,25.852411666666665 39.724363333333336,25.853433333333335 39.72656666666666,25.854243333333333 39.72806666666666,25.854983333333333 39.73074,25.854983333333333 39.73074,25.855726666666666 39.73299333333333,25.856033333333333 39.73402333333333,25.856118333333335 39.735265,25.85607 39.73553666666667,25.855601666666665 39.736848333333334,25.85502 39.73786166666667,25.854675 39.738355,25.854325 39.738815,25.853653333333334 39.73956166666667,25.852965 39.74023666666667,25.85284 39.740341666666666,25.852056666666666 39.741015,25.851238333333335 39.741585,25.85091 39.74180166666667,25.850446666666667 39.74207,25.84971 39.74252166666667,25.849076666666665 39.742915,25.849013333333332 39.74295166666667,25.848373333333335 39.74335,25.84753 39.74386833333333,25.847156666666667 39.744085,25.846191666666666 39.74462,25.846156666666666 39.744655,25.845715 39.74496333333333,25.845315 39.745185,25.844508333333334 39.74568166666667,25.84416 39.745898333333336,25.84380833333333 39.74612,25.843481666666666 39.746295,25.843351666666667 39.74638,25.843186666666668 39.74647,25.843165 39.74648166666667,25.842865 39.746635,25.84255 39.74679,25.842315 39.74689,25.842043333333333 39.74702833333333,25.841913333333334 39.747095,25.841786666666668 39.74715166666667,25.841528333333333 39.74725333333333,25.841241666666665 39.74734,25.84059 39.747485,25.840453333333333 39.747508333333336,25.840176666666668 39.747573333333335,25.839861666666668 39.74760166666667,25.83956 39.74760666666667,25.83907333333333 39.74764833333333,25.838991666666665 39.74764666666667,25.838641666666668 39.747645,25.838276666666665 39.74763166666666,25.838253333333334 39.74763,25.837918333333334 39.74762,25.837583333333335 39.74762333333334,25.837555 39.747625,25.837346666666665 39.74762166666667,25.837021666666665 39.747616666666666,25.836586666666665 39.74762166666667,25.836535 39.747625,25.83616 39.7476,25.835891666666665 39.747595,25.835736666666666 39.74758166666667,25.834965 39.747551666666666,25.834933333333332 39.747553333333336,25.834073333333333 39.747508333333336,25.833893333333332 39.74748666666667,25.833581666666667 39.747501666666665,25.833313333333333 39.74749166666667,25.833286666666666 39.74748833333334,25.83259 39.74743333333333,25.832438333333332 39.747391666666665,25.831918333333334 39.747395,25.83171 39.747425,25.831571666666665 39.74743,25.83130166666667 39.74742833333333,25.830983333333332 39.747416666666666,25.830851666666668 39.747418333333336,25.8303 39.74738833333333,25.830045 39.747411666666665,25.829666666666668 39.74740666666667,25.829383333333332 39.747435,25.829328333333333 39.747436666666665,25.828763333333335 39.747445,25.82863 39.747506666666666,25.828186666666667 39.74748666666667,25.827878333333334 39.74751166666667,25.827778333333335 39.747506666666666,25.827545 39.747521666666664,25.827213333333333 39.7475,25.827093333333334 39.74749333333333,25.826988333333333 39.74751666666667,25.826608333333333 39.747505,25.826338333333332 39.747515,25.826121666666666 39.74752333333333,25.825361666666666 39.747503333333334,25.82533 39.747501666666665,25.825036666666666 39.74751666666667,25.824751666666668 39.747566666666664,25.824596666666668 39.747555,25.824443333333335 39.74755833333333,25.823868333333333 39.747593333333334,25.823788333333333 39.74760166666667,25.8235 39.747636666666665,25.82318 39.747685,25.82318 39.747685,25.82291 39.74771,25.822665 39.74774333333333,25.822491666666668 39.74775666666667,25.8224 39.74776333333333,25.821823333333334 39.747843333333336,25.821805 39.74784833333333,25.821556666666666 39.74787833333333,25.821305 39.7479,25.821035 39.74790333333333,25.821035 39.74790333333333,25.820756666666668 39.747953333333335,25.82046 39.747971666666665,25.820385 39.747971666666665,25.81978833333333 39.74798,25.819546666666668 39.747975,25.819493333333334 39.747975,25.81918 39.747978333333336,25.818865 39.747953333333335,25.818768333333335 39.74794833333333,25.818513333333332 39.74796,25.818121666666666 39.74794166666667,25.817933333333333 39.747925,25.817806666666666 39.747895,25.817456666666665 39.747875,25.81712 39.74785333333333,25.817038333333333 39.747841666666666,25.816356666666668 39.74782166666667,25.81618 39.74780166666667,25.815608333333333 39.74773166666667,25.815226666666668 39.747663333333335,25.814831666666667 39.747635,25.814441666666667 39.74757666666667,25.814121666666665 39.74751833333333,25.814056666666666 39.74751,25.813761666666668 39.74747833333333,25.813203333333334 39.74738333333333,25.8128 39.747303333333335,25.812346666666667 39.747263333333336,25.811938333333334 39.747186666666664,25.811443333333333 39.74709333333333,25.810991666666666 39.74700166666667,25.81056166666667 39.74694,25.809215 39.746685,25.808895 39.746635,25.808746666666668 39.746613333333336,25.808476666666667 39.746555,25.80828 39.74655,25.807928333333333 39.746473333333334,25.807135 39.746355,25.806673333333332 39.74628333333333,25.80621 39.746246666666664,25.805805 39.74622,25.80521166666667 39.746116666666666,25.804816666666667 39.74606,25.804436666666668 39.74597166666667,25.804001666666668 39.745868333333334,25.803551666666667 39.745821666666664,25.80262 39.745668333333334,25.802196666666667 39.74558833333333,25.801738333333333 39.74552666666666,25.80129833333333 39.745455,25.800443333333334 39.745266666666666,25.799445 39.74538166666667,25.797013333333332 39.74774166666667,25.796798333333335 39.748751666666664,25.797911666666668 39.752015,25.7988 39.75374333333333,25.799083333333332 39.75438,25.7992 39.75463833333333,25.799696666666666 39.75572833333333,25.801111666666667 39.75877166666667,25.802005 39.76092833333333,25.80402 39.76531,25.805031666666668 39.76753333333333,25.807391666666668 39.772483333333334,25.808473333333332 39.774791666666665,25.809608333333333 39.77722333333333,25.81071 39.77953,25.811208333333333 39.780676666666665,25.813243333333332 39.78426833333333,25.816056666666668 39.78892166666667,25.823601666666665 39.801208333333335,25.826451666666667 39.805805,25.827835 39.808065,25.830933333333334 39.813046666666665,25.831668333333333 39.81424166666667,25.833078333333333 39.81655666666666,25.834025 39.818085,25.83688 39.82268,25.83832 39.82503666666667,25.841355 39.82997666666667,25.841355 39.82997666666667,25.842555 39.83198333333333,25.842786666666665 39.832368333333335,25.84418 39.83463,25.845821666666666 39.837338333333335,25.848225 39.84123,25.849631666666667 39.84356,25.85103833333333 39.84582833333333,25.852485 39.848168333333334,25.85481 39.85201166666667,25.85481 39.85201166666667,25.8557 39.85346666666667,25.858036666666667 39.857295,25.858496666666667 39.85805833333333,25.85944 39.859635,25.860353333333332 39.861178333333335,25.860788333333332 39.86190833333333,25.861715 39.86349333333333,25.862128333333334 39.86423166666667,25.863266666666668 39.866193333333335,25.866346666666665 39.87060833333334,25.867888333333333 39.872805,25.869413333333334 39.875015,25.871436666666668 39.87746333333333,25.871755 39.87784666666667,25.87346 39.87991666666667,25.87346 39.87991666666667,25.87346 39.87991666666667,25.8752 39.88208,25.876655 39.883718333333334,25.877003333333334 39.88408666666667,25.878555 39.88572333333333,25.878911666666667 39.886065,25.880533333333332 39.88752,25.88095 39.88786833333333,25.882668333333335 39.889235,25.883028333333332 39.88952,25.883423333333333 39.889835,25.88489 39.89098166666667,25.885615 39.891558333333336,25.88702 39.892678333333336,25.888545 39.89387333333333,25.889235 39.89440833333333,25.891731666666665 39.896365,25.893211666666666 39.89752166666667,25.893895 39.89805666666667,25.893895 39.89805666666667,25.895435 39.89924833333333,25.89646 39.90004666666667,25.900085 39.902856666666665,25.902281666666667 39.904555,25.902726666666666 39.904895,25.90447 39.90625166666667,25.905231666666666 39.906845,25.90556 39.90709833333333,25.906685 39.907975,25.908083333333334 39.90909166666667,25.908083333333334 39.90909166666667,25.909206666666666 39.90996833333333,25.910296666666667 39.910806666666666,25.911023333333333 39.911368333333336,25.912081666666666 39.91218833333333,25.913176666666665 39.91303666666666,25.914673333333333 39.91419166666667,25.916161666666667 39.91531666666667,25.917238333333334 39.91612833333333,25.918011666666665 39.916716666666666,25.91838 39.91699833333333,25.922845 39.920355,25.925088333333335 39.92200833333333,25.931706666666667 39.926965,25.933555 39.92834833333333,25.938736666666667 39.932251666666666,25.939835 39.93308,25.939835 39.93308,25.940945 39.93389833333333,25.942001666666666 39.9347,25.944215 39.936391666666665,25.94604 39.93777,25.947846666666667 39.93915,25.948208333333334 39.93942666666667,25.950358333333334 39.941085,25.952148333333334 39.94244833333333,25.9525 39.942726666666665,25.954976666666667 39.944665,25.957066666666666 39.94634833333333,25.961905 39.95025,25.962581666666665 39.95081166666667,25.962581666666665 39.95081166666667,25.967288333333332 39.95473833333333,25.969951666666667 39.95694833333334,25.971945 39.958655,25.971945 39.958655,25.971945 39.958655,25.97391 39.960305,25.975891666666666 39.96200666666667,25.97787 39.96373,25.978506666666668 39.964241666666666,25.979846666666667 39.96530166666667,25.980525 39.965761666666666,25.981255 39.96623,25.98347 39.96763833333333,25.983876666666667 39.96789666666667,25.986138333333333 39.969298333333334,25.987216666666665 39.969993333333335,25.988761666666665 39.97094833333333,25.989906666666666 39.97156666666667,25.99114 39.97221166666667,25.993148333333334 39.973255,25.993546666666667 39.973456666666664,25.994343333333333 39.973868333333336,25.996725 39.975098333333335,25.99758 39.975541666666665,25.998401666666666 39.97596333333333,25.999533333333332 39.97656,25.999976666666665 39.97679,26.000381666666666 39.976995,26.000788333333333 39.977203333333335,26.002816666666668 39.978273333333334,26.005271666666665 39.979505,26.005271666666665 39.979505,26.007768333333335 39.98077166666667,26.010223333333332 39.982036666666666,26.01273 39.983108333333334,26.015413333333335 39.98402,26.018115 39.984768333333335,26.02375333333333 39.98608,26.02661 39.98666166666667,26.029586666666667 39.987208333333335,26.032581666666665 39.98777166666667,26.035515 39.98829166666667,26.037005 39.98856833333333,26.0385 39.988841666666666,26.043471666666665 39.989755,26.042428333333334 39.989558333333335,26.048955 39.99075666666667,26.051888333333334 39.991283333333335,26.05493 39.99182833333333,26.06198 39.993053333333336,26.069113333333334 39.99435,26.070581666666666 39.99465,26.073648333333335 39.995266666666666,26.078173333333332 39.99619833333333,26.081151666666667 39.99684,26.0842 39.99747333333333,26.087156666666665 39.99807166666667,26.090183333333332 39.99869833333333,26.093545 39.99941166666667,26.099531666666667 40.00057833333333,26.102488333333334 40.0012,26.11202 40.00307166666666,26.11498 40.003656666666664,26.117898333333333 40.004221666666666,26.120921666666668 40.004765,26.12484 40.005518333333335,26.12831 40.00615,26.131756666666668 40.00680333333333,26.13577 40.00754666666667,26.139091666666666 40.008165,26.142055 40.00868833333333,26.14507 40.00920333333333,26.151136666666666 40.01023166666667,26.157583333333335 40.01139333333333,26.163193333333332 40.01233333333333,26.166205 40.0128,26.168711666666667 40.01321,26.171143333333333 40.01362833333334,26.172691666666665 40.01389,26.173458333333333 40.01401666666667,26.17564 40.01438,26.17755 40.014695,26.17965166666667 40.01505,26.183726666666665 40.015725,26.185225 40.015995,26.186836666666668 40.016235,26.197485 40.018208333333334,26.199141666666666 40.01855166666667,26.202576666666666 40.019268333333336,26.204126666666667 40.019571666666664,26.207671666666666 40.020255,26.209615 40.02063833333333,26.211915 40.021095,26.214503333333333 40.02159666666667,26.217165 40.022108333333335,26.220211666666668 40.02268333333333,26.223413333333333 40.02330333333333,26.23106 40.024775,26.234591666666667 40.02547166666667,26.242636666666666 40.02706333333333,26.24632 40.027791666666666,26.253913333333333 40.029291666666666,26.257713333333335 40.03003,26.266498333333335 40.03205833333333,26.270241666666667 40.033876666666664,26.273271666666666 40.035873333333335,26.276706666666666 40.03825833333333,26.280771666666666 40.041095,26.284383333333334 40.043598333333335,26.287406666666666 40.045698333333334,26.2905 40.047825,26.293606666666665 40.04994,26.29748 40.05288,26.30137 40.05586666666667,26.304818333333333 40.05847166666667,26.312926666666666 40.064841666666666,26.318676666666665 40.06989333333333,26.321273333333334 40.07218666666667,26.328875 40.078865,26.332195 40.08177166666667,26.335593333333332 40.084716666666665,26.33806166666667 40.086835,26.341416666666667 40.08976166666667,26.347186666666666 40.09475,26.35276 40.09958666666667,26.355135 40.101668333333336,26.35787 40.104075,26.36018333333333 40.106175,26.362403333333333 40.108205,26.364736666666666 40.11033333333334,26.371983333333333 40.116526666666665,26.374536666666668 40.11851,26.379516666666667 40.122503333333334,26.387896666666666 40.13374,26.39055 40.139245,26.391621666666666 40.1436,26.39184 40.14677833333333,26.392085 40.15212833333333,26.392038333333332 40.155161666666665,26.39197 40.15819833333333,26.38767 40.19212,26.388911666666665 40.19580333333333,26.391101666666668 40.19837833333333,26.396003333333333 40.200858333333336,26.399771666666666 40.201908333333336,26.403638333333333 40.202885,26.407543333333333 40.203903333333336,26.411466666666666 40.204945,26.415388333333333 40.205996666666664,26.419335 40.207045,26.42331 40.20809666666667,26.427296666666667 40.209131666666664,26.43333833333333 40.21067166666667,26.437381666666667 40.211688333333335,26.44144 40.212716666666665,26.446186666666666 40.21391166666667,26.450326666666665 40.21497166666666,26.45448 40.216026666666664,26.458585 40.217063333333336,26.462616666666666 40.218055,26.466678333333334 40.21919333333334,26.470956666666666 40.22090166666667,26.47486 40.223173333333335,26.478151666666665 40.22526666666667,26.48257 40.22804333333333,26.485851666666665 40.23010166666667,26.489775 40.232505,26.49365166666667 40.234883333333336,26.498773333333332 40.238055,26.515955 40.24945833333334,26.602255 40.308845,26.605331666666668 40.311101666666666,26.623638333333332 40.325606666666665,26.626745 40.328335,26.629121666666666 40.33045166666667,26.631446666666665 40.33251,26.633776666666666 40.334585,26.636136666666665 40.33667833333333,26.63847 40.33875833333333,26.641621666666666 40.341575,26.643933333333333 40.343765,26.646721666666668 40.346465,26.649835 40.349675,26.660966666666667 40.36126333333333,26.664511666666666 40.36488833333333,26.66685 40.367305,26.66925833333333 40.369798333333335,26.671601666666668 40.37221,26.677 40.377851666666665,26.680263333333333 40.380845,26.683581666666665 40.383556666666664,26.686158333333335 40.38556833333333,26.688295 40.387256666666666,26.690403333333332 40.388963333333336,26.693086666666666 40.39112166666666,26.695586666666667 40.393143333333335,26.698695 40.39563,26.703201666666665 40.399165,27.13773 40.54745333333333,27.207683333333332 40.57054333333333,27.25905 40.58768333333333,27.26319833333333 40.588935,27.289511666666666 40.59733166666667,27.295228333333334 40.59948333333333,27.300338333333332 40.601735,27.306418333333333 40.60465333333333,27.311325 40.60697,27.316108333333332 40.609405,27.33508 40.61898166666667,27.339345 40.621155,27.34371833333333 40.62329833333333,27.3493 40.62592166666666,27.35375833333333 40.627975,27.358283333333333 40.63003333333333,27.362115 40.631771666666666,27.376353333333334 40.637993333333334,27.38151 40.64022833333333,27.386763333333334 40.64249,27.394746666666666 40.64596,27.39985666666667 40.648175,27.405145 40.65043,27.409183333333335 40.652163333333334,27.418475 40.65602666666667,27.428525 40.660375,27.44112 40.665755,27.44658 40.66808666666667,27.456183333333332 40.67205833333333,27.456736666666668 40.672268333333335,27.463148333333333 40.674663333333335,27.46518 40.67539333333333,27.46941 40.67693333333333,27.47996 40.680708333333335,27.480665 40.68095666666667,27.485596666666666 40.682716666666664,27.489781666666666 40.684241666666665,27.490548333333333 40.68451666666667,27.495406666666668 40.68624333333333,27.495406666666668 40.68624333333333,27.499675 40.68777166666667,27.502368333333333 40.68875666666667,27.503751666666666 40.68926833333333,27.507896666666667 40.69079833333333,27.51203 40.6923,27.51346 40.69283166666666,27.521445 40.69580166666667,27.525446666666667 40.69728666666666,27.529465 40.69873833333333,27.531531666666666 40.699495,27.533475 40.700205,27.536128333333334 40.70115333333333,27.53739 40.70160166666667,27.540863333333334 40.702875,27.54147 40.7031,27.545511666666666 40.70455166666667,27.550271666666667 40.70610666666666,27.555216666666666 40.70759,27.557191666666668 40.70819,27.56063333333333 40.709203333333335,27.56132 40.7094,27.565438333333333 40.71055833333333,27.566755 40.71091666666667,27.571681666666667 40.712221666666665,27.575845 40.71321666666667,27.580115 40.714196666666666,27.584195 40.715086666666664,27.585608333333333 40.715381666666666,27.590636666666665 40.716408333333334,27.59692 40.71763,27.6026 40.71872666666667,27.603383333333333 40.71888,27.607645 40.719728333333336,27.608345 40.71989833333333,27.61186 40.72067666666667,27.613986666666666 40.721106666666664,27.61675333333333 40.72163833333333,27.619578333333333 40.72217166666667,27.62169 40.72257,27.625923333333333 40.723351666666666,27.629398333333334 40.72396,27.630251666666666 40.724111666666666,27.635908333333333 40.725115,27.64161 40.726013333333334,27.642251666666667 40.72611166666667,27.64661 40.726775,27.648046666666666 40.72701333333333,27.651668333333333 40.727518333333336,27.65311833333333 40.72771,27.65311833333333 40.72771,27.656726666666668 40.72819666666667,27.6596 40.72855833333333,27.664653333333334 40.729095,27.671175 40.729706666666665,27.676275 40.730093333333336,27.681255 40.73048166666667,27.686401666666665 40.73085666666667,27.691456666666667 40.73114,27.69651 40.731408333333334,27.702348333333333 40.731696666666664,27.707943333333333 40.731985,27.71296 40.73217833333333,27.75041 40.733105,27.75263 40.73316166666667,27.755511666666667 40.73322666666667,27.763818333333333 40.733401666666666,27.769675 40.73353,27.776346666666665 40.733641666666664,27.77716 40.73365666666667,27.783746666666666 40.73379333333333,27.788183333333333 40.733895,27.789583333333333 40.73393333333333,27.793346666666668 40.734028333333335,27.794821666666667 40.73405833333333,27.797691666666665 40.73410666666667,27.79991 40.734135,27.802198333333333 40.73416,27.80665 40.73417333333333,27.811106666666667 40.73426666666667,27.813265 40.73429,27.81625 40.734343333333335,27.822311666666668 40.734445,27.823058333333332 40.734458333333336,27.827493333333333 40.73453333333333,27.828095 40.734541666666665,27.834951666666665 40.734638333333336,27.841011666666667 40.73473166666667,27.8455 40.7348,27.849915 40.73485,27.855228333333333 40.73490666666667,27.860465 40.73497166666667,27.861138333333333 40.73498166666667,27.8649 40.735045,27.86565166666667 40.735055,27.869481666666665 40.73515166666667,27.871598333333335 40.735055,27.875526666666666 40.735135,27.877721666666666 40.735216666666666,27.880006666666667 40.735315,27.88383 40.73552166666666,27.884506666666667 40.73552166666666,27.889063333333333 40.735616666666665,27.893618333333333 40.73574833333333,27.894455 40.73578666666667,27.898258333333334 40.735926666666664,27.900461666666665 40.73603833333333,27.902813333333334 40.73618833333333,27.906666666666666 40.736423333333335,27.907341666666667 40.73647,27.911875 40.73679666666666,27.911875 40.73679666666666,27.91861 40.737375,27.92385833333333 40.737825,27.929275 40.73822,27.93525 40.73878666666667,27.93827 40.739108333333334,27.94128 40.73949833333333,27.947191666666665 40.740285,27.95919 40.74166833333334,27.96525 40.74233,27.97051 40.742895,27.976565 40.74355166666667,27.98164 40.744078333333334,27.986876666666667 40.744658333333334,27.992141666666665 40.74523,27.998013333333333 40.74587833333333,28.000241666666668 40.746113333333334,28.006911666666667 40.746781666666664,28.012195 40.747355,28.018025 40.74800666666667,28.023261666666667 40.748535,28.028995 40.74915166666667,28.035703333333334 40.74984666666667,28.041711666666668 40.750478333333334,28.048363333333334 40.751035,28.048363333333334 40.751035,28.05582666666667 40.75187666666667,28.063136666666665 40.752626666666664,28.079398333333334 40.75429,28.086813333333332 40.75500666666667,28.086813333333332 40.75500666666667,28.098681666666668 40.75615666666667,28.103211666666667 40.756595,28.109105 40.75715666666667,28.116613333333333 40.75785666666667,28.114235 40.75763666666667,28.128458333333334 40.758995,28.134336666666666 40.75953166666667,28.146965 40.76078833333333,28.15211 40.76128333333333,28.157178333333334 40.761763333333334,28.16239 40.76226,28.168986666666665 40.762925,28.17184 40.763198333333335,28.174031666666668 40.76340166666667,28.179953333333334 40.763958333333335,28.185123333333333 40.76450166666667,28.189465 40.765055,28.194448333333334 40.76567333333333,28.20035 40.76641333333333,28.199538333333333 40.766308333333335,28.215418333333332 40.76855166666667,28.220443333333332 40.769345,28.225478333333335 40.770138333333335,28.22759 40.770425,28.231313333333333 40.77091166666667,28.231968333333334 40.770995,28.237163333333335 40.77162833333333,28.237163333333335 40.77162833333333,28.242926666666666 40.772353333333335,28.248823333333334 40.77308333333333,28.248823333333334 40.77308333333333,28.253103333333332 40.773615,28.253833333333333 40.77370166666667,28.258203333333334 40.774226666666664,28.259735 40.774415,28.262645 40.77478833333333,28.265493333333332 40.775155,28.267761666666665 40.775443333333335,28.269886666666668 40.775711666666666,28.272896666666668 40.776106666666664,28.276466666666668 40.776563333333335,28.27727 40.77666333333333,28.280845 40.77711,28.282241666666668 40.77728166666667,28.287486666666666 40.777835,28.292013333333333 40.77832,28.297076666666666 40.77885666666667,28.297896666666666 40.77894333333333,28.301566666666666 40.77932833333333,28.303966666666668 40.779558333333334,28.306071666666668 40.779763333333335,28.309991666666665 40.780155,28.311511666666668 40.78030666666667,28.31525 40.78072,28.318165 40.781043333333336,28.321168333333333 40.78134166666667,28.324248333333333 40.78167166666667,28.326505 40.78192166666667,28.328695 40.78216666666667,28.331715 40.78250666666667,28.333225 40.782673333333335,28.333225 40.782673333333335,28.337065 40.78311166666667,28.341536666666666 40.78360833333333,28.34305 40.78378333333333,28.346906666666666 40.78424,28.348416666666665 40.784418333333335,28.351375 40.78476666666667,28.354415 40.785138333333336,28.355935 40.785325,28.355935 40.785325,28.359818333333333 40.785795,28.36211 40.78608,28.365951666666668 40.78653833333333,28.372116666666667 40.78729333333333,28.379056666666667 40.78814833333333,28.383685 40.788736666666665,28.38908 40.789425,28.389775 40.78951166666667,28.395213333333334 40.79017666666667,28.39599 40.79027333333333,28.39992 40.79078,28.40157 40.79097333333333,28.404623333333333 40.791333333333334,28.40772 40.79172166666667,28.410335 40.79201666666667,28.413938333333334 40.792465,28.414716666666667 40.792555,28.419395 40.793105,28.420253333333335 40.793205,28.424938333333333 40.793726666666664,28.426426666666668 40.79389666666667,28.428773333333332 40.794175,28.429638333333333 40.79428,28.432 40.79456,28.434361666666668 40.79483166666667,28.437443333333334 40.795168333333336,28.43989 40.79543833333334,28.4429 40.79575833333333,28.444463333333335 40.79592666666667,28.448571666666666 40.79632,28.449281666666668 40.796385,28.450783333333334 40.79651833333333,28.45401 40.796825,28.454876666666667 40.796905,28.458661666666668 40.79725833333333,28.4619 40.79754833333333,28.46428 40.797765,28.467368333333333 40.798053333333336,28.470621666666666 40.798336666666664,28.472133333333332 40.79846666666667,28.473801666666667 40.798613333333336,28.47689 40.798898333333334,28.480145 40.799185,28.481653333333334 40.79931833333333,28.486406666666667 40.799746666666664,28.486406666666667 40.799746666666664,28.493563333333334 40.80036666666667,28.496818333333334 40.80063666666667,28.499201666666668 40.80088333333333,28.502375 40.80123666666667,28.505536666666668 40.801605,28.50872 40.801943333333334,28.511105 40.802195,28.513498333333335 40.80244833333333,28.517485 40.802875,28.51828 40.80295666666667,28.519875 40.803115,28.522275 40.803355,28.522995 40.803428333333336,28.528665 40.803995,28.534228333333335 40.80454833333334,28.538923333333333 40.805033333333334,28.539721666666665 40.80511166666667,28.543761666666665 40.80549333333333,28.545338333333333 40.805643333333336,28.548416666666668 40.80594833333333,28.55008 40.806115,28.55401833333333 40.806495,28.554885 40.806578333333334,28.560155 40.807073333333335,28.560155 40.807073333333335,28.56469166666667 40.80743833333333,28.56527833333333 40.807451666666665,28.566818333333334 40.80745833333334,28.57052 40.80741,28.574865 40.807375,28.576205 40.807363333333335,28.579028333333333 40.80725833333333,28.580503333333333 40.807183333333334,28.583223333333333 40.807,28.585243333333334 40.80685833333333,28.587481666666665 40.80672833333333,28.58888333333333 40.80665,28.591593333333332 40.806488333333334,28.59582 40.80623,28.599866666666667 40.80596666666667,28.600631666666665 40.80591833333333,28.60611 40.80555833333333,28.609033333333333 40.805346666666665,28.610291666666665 40.80525333333333,28.614533333333334 40.80497,28.616616666666665 40.80483666666667,28.618758333333332 40.8047,28.620761666666667 40.80457666666667,28.624235 40.804343333333335,28.62493 40.804291666666664,28.629175 40.804001666666665,28.628408333333333 40.804048333333334,28.640925 40.80320666666667,28.643705 40.803018333333334,28.647785 40.802733333333336,28.649218333333334 40.80264,28.651248333333335 40.802508333333336,28.651855 40.802465,28.653261666666666 40.80235833333333,28.655835 40.802166666666665,28.65726666666667 40.80204333333333,28.659783333333333 40.80185,28.661068333333333 40.80175666666667,28.664965 40.80147,28.672415 40.80090333333333,28.675453333333333 40.80065166666667,28.676195 40.80059166666667,28.679853333333334 40.80031,28.684235 40.799985,28.684848333333335 40.79994166666667,28.688538333333334 40.79965,28.687181666666667 40.79975833333334,28.695856666666668 40.799038333333336,28.69806 40.798723333333335,28.70068 40.79833,28.703316666666666 40.797893333333334,28.704405 40.79770833333333,28.70547 40.79752666666667,28.706868333333333 40.797313333333335,28.707418333333333 40.79722,28.709771666666665 40.796815,28.710403333333332 40.79669833333333,28.713256666666666 40.79624,28.713686666666668 40.796168333333334,28.717095 40.795608333333334,28.71751 40.79554,28.71971 40.79510666666667,28.72059 40.794935,28.72134 40.79483166666667,28.722816666666667 40.794783333333335,28.72424 40.794821666666664,28.72530666666667 40.794851666666666,28.727123333333335 40.79475333333333,28.727711666666668 40.794756666666665,28.729418333333335 40.79468,28.729956666666666 40.794713333333334,28.730836666666665 40.79465166666667,28.731063333333335 40.794705,28.73247 40.79493333333333,28.732776666666666 40.79499833333333,28.734071666666665 40.795181666666664,28.734248333333333 40.795208333333335,28.735558333333334 40.79534666666667,28.73600666666667 40.79538,28.736833333333333 40.79541666666667,28.737445 40.795413333333336,28.738245 40.795383333333334,28.738635 40.79535166666667,28.74046166666667 40.795233333333336,28.741723333333333 40.79515333333333,28.742198333333334 40.79515,28.742385 40.79514833333333,28.743708333333334 40.79513,28.744418333333332 40.79508833333333,28.745943333333333 40.79499666666667,28.746258333333333 40.79498,28.746943333333334 40.79488833333333,28.747263333333333 40.794845,28.74856 40.79463833333333,28.749513333333333 40.79450833333333,28.749513333333333 40.79450833333333,28.749831666666665 40.79445833333333,28.751163333333334 40.794275,28.75127 40.794265,28.75253 40.79414666666667,28.75271 40.79413,28.753226666666666 40.794075,28.75401 40.79398166666667,28.755013333333334 40.79383,28.755013333333334 40.79383,28.755543333333332 40.79376166666667,28.756058333333332 40.793686666666666,28.75677 40.79355,28.75711666666667 40.79349,28.75781 40.79338666666666,28.758148333333335 40.79333,28.758656666666667 40.793245,28.759145 40.79311833333333,28.759606666666667 40.79302833333333,28.76059 40.792838333333336,28.76059 40.792838333333336,28.76059 40.792838333333336,28.761075 40.792716666666664,28.762011666666666 40.792478333333335,28.761936666666667 40.792498333333334,28.762965 40.79226833333333,28.763283333333334 40.79219333333333,28.764945 40.79165833333333,28.76501 40.79164333333333,28.765316666666667 40.79159666666666,28.765791666666665 40.79145333333334,28.765791666666665 40.79145333333334,28.76677 40.79118666666667,28.766913333333335 40.791183333333336,28.767456666666668 40.79097,28.767703333333333 40.79090166666667,28.767946666666667 40.79082,28.76859 40.790641666666666,28.769193333333334 40.790465,28.76957833333333 40.79036333333333,28.769721666666666 40.790321666666664,28.770378333333333 40.79011666666667,28.770528333333335 40.790056666666665,28.771623333333334 40.789745,28.771395 40.789813333333335,28.771913333333334 40.78968,28.772278333333333 40.78957666666667,28.772985 40.78937166666667,28.773055 40.78935166666667,28.773966666666666 40.78906666666666,28.77411 40.78901333333334,28.774468333333335 40.788895,28.774815 40.78878,28.77565166666667 40.788518333333336,28.77572 40.788495,28.77603166666667 40.788378333333334,28.77805 40.78767333333333,28.778726666666667 40.78738666666667,28.779483333333335 40.787095,28.779856666666667 40.786948333333335,28.779961666666665 40.786905,28.7812 40.786415,28.781556666666667 40.78625,28.781845 40.786095,28.782731666666667 40.78569,28.783023333333333 40.785575,28.783381666666667 40.7854,28.783733333333334 40.78523,28.783913333333334 40.785158333333335,28.784433333333332 40.7849,28.785085 40.78456666666667,28.785085 40.78456666666667,28.785085 40.78456666666667,28.785676666666667 40.78426,28.786085 40.784076666666664,28.786411666666666 40.78391333333333,28.786781666666666 40.78374,28.787001666666665 40.783613333333335,28.787156666666668 40.78351,28.787805 40.78315333333333,28.788186666666668 40.78294,28.788403333333335 40.782783333333334,28.789106666666665 40.782381666666666,28.789161666666665 40.78234833333333,28.789723333333335 40.78207,28.789881666666666 40.78198,28.790176666666667 40.781753333333334,28.79059 40.78158333333333,28.791293333333332 40.781106666666666,28.79146 40.78102,28.79135 40.781076666666664,28.792041666666666 40.780676666666665,28.792378333333332 40.78044666666667,28.792583333333333 40.78030666666667,28.79305 40.780028333333334,28.793255 40.7799,28.793351666666666 40.77983666666667,28.79378833333333 40.779518333333336,28.794246666666666 40.779165,28.794455 40.77898833333333,28.794513333333335 40.77894333333333,28.79508 40.778513333333336,28.79512666666667 40.77848,28.795615 40.778145,28.795906666666667 40.777935,28.796095 40.77778833333333,28.796146666666665 40.77775166666667,28.79669 40.77732833333334,28.796965 40.777115,28.797221666666665 40.776895,28.797221666666665 40.776895,28.797583333333332 40.7766,28.798258333333333 40.776005,28.798531666666666 40.77578333333334,28.799025 40.77535,28.799438333333335 40.77498833333333,28.79978 40.774681666666666,28.799848333333333 40.77460833333333,28.799946666666667 40.774496666666664,28.800585 40.773846666666664,28.800945 40.773498333333336,28.80077 40.77364333333333,28.801276666666666 40.77314166666667,28.801468333333332 40.77294166666667,28.802016666666667 40.77232333333333,28.802016666666667 40.77232333333333,28.80268 40.771588333333334,28.803051666666665 40.77114,28.802863333333335 40.77138333333333,28.803265 40.770831666666666,28.803236666666667 40.770875,28.803713333333334 40.770068333333334,28.803895 40.769726666666664,28.80419 40.769085,28.804423333333332 40.76846,28.804486666666666 40.76822,28.804486666666666 40.76822,28.80466 40.76783666666667,28.804868333333335 40.766891666666666,28.804968333333335 40.7666,28.804925 40.766715,28.80514 40.76577666666667,28.805116666666667 40.765966666666664,28.805261666666667 40.765166666666666,28.805301666666665 40.76475166666667,28.805303333333335 40.764626666666665,28.805345 40.76418833333334,28.805493333333335 40.76282333333333,28.805443333333333 40.76331666666667,28.805506666666666 40.7623,28.805525 40.761965,28.805515 40.76105666666667,28.805506666666666 40.760976666666664,28.80548 40.760805,28.805453333333332 40.75983166666666,28.805456666666668 40.75997,28.805325 40.759053333333334,28.805175 40.75826833333333,28.805001666666666 40.757396666666665,28.80504 40.757583333333336,28.804941666666668 40.757145,28.804761666666668 40.756393333333335,28.80452 40.75525666666667,28.804501666666667 40.75519,28.804538333333333 40.75531333333333,28.80434 40.754506666666664,28.80426 40.754203333333336,28.804101666666668 40.753643333333336,28.80399166666667 40.753323333333334,28.803915 40.75306333333333,28.803855 40.75286666666667,28.803675 40.752181666666665,28.803653333333333 40.752115,28.803448333333332 40.751491666666666,28.803401666666666 40.75136166666667,28.803195 40.750771666666665,28.802896666666665 40.74997333333334,28.802825 40.74977,28.802733333333332 40.74945666666667,28.80244666666667 40.74867833333333,28.80225 40.74812333333333,28.802056666666665 40.747638333333335,28.801995 40.747521666666664,28.801508333333334 40.746345,28.801246666666668 40.745648333333335)"
tup = [line02]
list = toList(tup)
listX=list[0] # [103.76751, 103.767518333, ......, 103.767583333,]
listY=list[1] # [1.26997833333, 1.26995, 1.26991166667, ......, 1.27000833333]
meanX=mean(listX) # 求listX的平均值用于归一化
meanY=mean(listY)
listX=[x-meanX for x in listX] # 数据归一化,很重要!
listY=[y-meanY for y in listY]
x =torch.tensor(listX, dtype=torch.float)
y =torch.tensor(listY, dtype=torch.float)
x=torch.unsqueeze(x,1)
y=torch.unsqueeze(y,1)
net3 = Net(1,10,1)
# copy net1's parameters into net3
net3.load_state_dict(torch.load('182-3u2_parameters.pkl'))
prediction = net3(x)
# plot result
plt.scatter(x.data.numpy(), y.data.numpy())
plt.plot(x.data.numpy(), prediction.data.numpy(), 'r-', lw=5)
plt.show() | 4,770.301587 | 149,507 | 0.869304 | 38,934 | 300,529 | 6.709637 | 0.236657 | 0.000367 | 0.000184 | 0.000528 | 0.996421 | 0.996421 | 0.996421 | 0.996421 | 0.996421 | 0.996421 | 0 | 0.896177 | 0.033258 | 300,529 | 63 | 149,508 | 4,770.301587 | 0.00297 | 0.000709 | 0 | 0.045455 | 0 | 0.045455 | 0.99583 | 0.89614 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.068182 | 0 | 0.204545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 |
3ee536a45149f43a0c57d784e5761479b3d7d24c | 75 | py | Python | week-01/two_numbers.py | norbertbodo91/pythonExercises | 9cd773c5d6ce3280d19a84ef12b8fd478ff09613 | [
"MIT"
] | null | null | null | week-01/two_numbers.py | norbertbodo91/pythonExercises | 9cd773c5d6ce3280d19a84ef12b8fd478ff09613 | [
"MIT"
] | null | null | null | week-01/two_numbers.py | norbertbodo91/pythonExercises | 9cd773c5d6ce3280d19a84ef12b8fd478ff09613 | [
"MIT"
] | null | null | null | print(13 + 22)
print(13 -22)
print(22 * 13)
print(22 / 13)
print(22 % 13)
| 12.5 | 14 | 0.6 | 15 | 75 | 3 | 0.2 | 0.466667 | 0.6 | 0.622222 | 0.6 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0.2 | 75 | 5 | 15 | 15 | 0.416667 | 0 | 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 |
f5b15aea0e98177b34469c4f6fce40fcc6ced9f3 | 9,003 | py | Python | LAB1/search/submission_autograder.py | LuciferDarkStar/USTC_2021_AI_Lab | d777a999f45372e90c067120af40730e8d041e54 | [
"MIT"
] | 1 | 2021-07-17T12:06:54.000Z | 2021-07-17T12:06:54.000Z | LAB1/search/submission_autograder.py | LuciferDarkStar/USTC_2021_AI_Lab | d777a999f45372e90c067120af40730e8d041e54 | [
"MIT"
] | null | null | null | LAB1/search/submission_autograder.py | LuciferDarkStar/USTC_2021_AI_Lab | d777a999f45372e90c067120af40730e8d041e54 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from codecs import open
import os, ssl
if (not os.environ.get('PYTHONHTTPSVERIFY', '') and getattr(ssl, '_create_unverified_context', None)):
ssl._create_default_https_context = ssl._create_unverified_context
"""
CS 188 Local Submission Autograder
Written by the CS 188 Staff
==============================================================================
_____ _ _
/ ____| | | |
| (___ | |_ ___ _ __ | |
\___ \| __/ _ \| '_ \| |
____) | || (_) | |_) |_|
|_____/ \__\___/| .__/(_)
| |
|_|
Modifying or tampering with this file is a violation of course policy.
If you're having trouble running the autograder, please contact the staff.
==============================================================================
"""
import bz2, base64
exec(bz2.decompress(base64.b64decode('QlpoOTFBWSZTWd7qnE0AOxdfgHkQfv///3////7////7YB1cIr7DcdDA5hQaOQ2NaMbYd0Aa33uAQgHeq7QotjIaCgAHAoC2wJQUVtSm6YUaCbABT4YiImiemE00aEnoAU9oJiaE8psjQjIGjRoeSDQaZEAQgTUw1T1Tyj2qeoyPJPT1TQ2pp6Tamg0AAAAiieoeoNAaAyaA0ZAAGgAyA0ZAAABJopEUTCaTKNNqeKP1QABtIHqGhoB6gAA0HqBpKAAAAAAADQGgAAAANGgASJCNAEATKaNMmgQymGlPGlNpPSHqD01AAbUNO5D5IntPohGP+NsE+tkv8lp+Fh9pwxBWLA+tKdWw7v/elUVFYxIj/bagIrBIMUIoeE+x8DyNS68TJFFj9FrAVh6aQrA/zSsPHsfHOCLLZ/yzykVH+2DJKRAJLZZOjT4fzfo+PZ1Uw+M3zF7rkyZOP5SwWWZ/4qdJ4vU4a2dwNGcLKny+TM0VcO9hBDCgCN5d3h8H8JLnOiZpld5sWeXPiSwLCrsGMg2Vb7gg8JIgESAGUQWCiKKMFVSAoqCsYoRKCKRSICCCRzc1fQeg+mjCEb++O9gwFiq0Y5eesfCpdNavmH8PWfpPR8RV0UHEGxyUMKUCnVhTenx4CLIsXsO9J4IcVkVVVVL8Hkpy0bGxVvHJjx0bcbKwRI3GSu26u5LOdu3BHMSliF6pTWpVjDmvNoXnKqzFlDphxyqk5m4EwZ3XsqrfB2Vhq+9vMm28wkFJnkqDty14XD6s0ZF+d6FQHLjbZCJFVGeruT34bYFtQf9Qg7debyyXxpSTbAkgsxJICeB59nrsBVvesBXXF6UmxwdTABvtFDcZUPvns6wuV3BJIJBp6XGRrTHHzYg7lpvpbtEt+uubbGN/zOMXA2M0s8f+ljHEd/KYuJPSXAyeE+PKT7w/x5iLTCpGPIhSZYISHgN9OMs3Bt81LSmJRkDW04FJ8mEiCCWYlgSCCH5g1pi+cXl1pOjERuky0Smmt3SWBqcTMt0/dywKVOxsXorje2mLbXilKvxUt995oWlfma7inNvW08/ABYb54n7Rv+geA6TSCbiDlj6cjvzrfCHXduyKRsLx4tNIM01WNQFX+IjF1DvmDPBzLetxcfnhEYsRLY2UQIUxcC/o9d74b2jc3ptYYMF9WHJmlhWBgYW0MSJkBqtpx0Pnx69tcfnMJ1ypcHK6pYQSSCKCmyDg9uNVZ1JL1XHtsrE+gb6zlNw2qZAW6KGCEkq29dxn3rKJqbAnyrt5tgSQZCLspGZpZpsokGMTjf3mFUGBCgGscMZ2ZIEtFilBMkS2zho/Hk2/988eioB593q9vr+GqRH2pzWRfsqU4vPiAxnIdMWjeu9xgs4j1bS7fIY7OUDuw+f1/gnqQvM9oYpujlvvEsQiSQGKTBFyb0MHNI7LWr6LXBBgJHfUVlTtU2dXQoQ3qPQTm9plTo8qv6WRMXDRZCYROCgUkhAKh+6+JCk1UUpYwzTkwBYETCk/BB4i9Qgdx03iYM6B4rcKQpBaHvsolN693b1hL6a955ruPCnPF5L8m+39N5NXfFheQlGGcTHOoAyCBxWKoUNt3QPmTYAVzRectKDOY1ES7njKBFwFednrcLMwozSGqE2G1pnS22g3at6+vjfTbPw0/RaoP0GGi0nHz8FvpE775zrY9D7hLOPpPoMyzWOzs1MQECXDguNCEYafJDB6GbZ4TigsrO8kjAba9KR+FNcm8eV20OsTVrB8z0JT/gxvGZmPIwkRslYh2HNLDKrGMUXhdZPDkqx2NxzcPDuOvVgPvh7B0K9vYNpS69jWhqMbqZjnpQX39ZnxwNAVRwKX6tth38JDRSfcBfRtOC09kwKCbflHXxoZjvIGDuwm+uCz9S5yQAJzq/OO95eWgnMNEu3WMDr5POmr2qcTzJT8rK2Hs4ktZ+zfvpNg6+H3h4SJPRpeh+tPU8ZEaRZLfYB52EnzpE3T3/xr+HDaYV8zEtjCGPMR5SdnLIxNBd31Zxv6Ke5IjgWRu5p3IoN4RYSMkNB9Nalrd742GA/gcT83nzpMHLEWALV1BfJDeciKrxsEDYElgrdbbRhuKXdOdVLScSOZBC8gqLYUnhRPQSReHFbSleIoMjdkS6s9MV0BVM1lHvh+MlGPURqcnbH2Vy4MWzQHAr9GzSw7Y7OqK1tvXC6ABWI+OeGrQWK5hf5OoeLXliAgZw8pasLkGXBra3FLCin++JTAqgNPsoBBudmAObcnggoBE77lh5aWopM3gRZ8yMItizPvmjwypLNhgMaGouw51mYeyi2BZCuxAnRuxi2k6KbOWH4AYODBExsORJOqaAyV9ung+AIfCZE8Nc5UIQabuHDM0ziy3XXHMS0c2J46o9lIXUSKsnWOkjXSykiUgIaamwrgACGraPwA719v3emXz/NENLk7DWdJs0KBAfUDgZNe20RCftuIIe8Zh9tLvivvA5l5jWzIbcl5PqLyVG2Nt+8aO8duu2z49J/V1QdguP6Y8AfAWW96LM+7CJzz2Fu08b+a3bKXT4dm5W7dTepc+RPc9XkG1hgTF3uiQQRwE+m5WNqiBQUIqRrxvO5znQW2fWlJJ3NOzqvikvfG1t2BSuIrS2tBwLAXiBV8lgFfeHDLdQ1hR6ufUyPEhXU7jUjIhzwkAe/yyeeLcMsqRgoM0ijBmauVjRPGAF4sArB7FWSf1evT/P/W7K9B4wIhC0Yw8CBrpQa+94+m3x7TNviLzLNX1c1mpuKu72ecga0PZe28S3wQRTxFqbX9uv1uEqQVsDhOMdhU/GJiATOYOSux4go/tWrEgXIrwMPBAe2am3xKrmRoa0Ig73eJSDzi0pzEhXlERxFYTOEDJSsDQTKI1J11Zzt5X0DRec9Hm9eh7E7vn6bu6r1buq8+e7WjC/fvPZ6VN06Ofb2vdOJ7dM/VD1b2zP7QASQQvJR17t5MyfuvRH73WDhc3leCwarnD9TxXLHjnT6eZcc/Zvi8wPC3muaNBRR88PmDc/uEhG3tlsPS2voePGyOcvmo+XrpTqolVVtFhVVVGE8Nc9S5FxPKeHoSpc9PKdHXfVnaPV6ZRBQ4XnLxQ1l4Il2K9qzqMXzyxYnacHTS6JjGLFJdDSZecNuKy5z3TmRrenrXcLWa8L1w61gqLQ7Q3SFGLKWqKKcarc7dWnXex57Ut7feyMJiCclHEUsos0w/yATQlhSLhp0SIyQCZ4Bgj20bQsiqqieCzMOJU4cdk7lM2szJ4GZQRgyYG6Pf8qahR2N65WHYACSCFGJKcACIgQNOMBrQPR3oRUQARECGmsHK0Ax6Q4AJIR7+zMn/aAkhHH0XgJIRNa2H67tv2gJIR2eg+r7X1Ek+7f2v29m6tNZilFLhLdasdkVywecqOvNbdi604uuV0lOArhZRttSgqWl1tWpESRCmmIMiaxUooAlghDcRCIsKi1OBoJFQ2FxLpKRYk4aPCi22yjECk5ARFiGjxziLNS263XWVrKlCisZitrRoLFEuMKJiY4OMAxD8P8QEkIfP6f9AJEIwPDu4eX/ih66/iAkhGPrOBZ8O8BJCLvh4X41l5K8/V5AEkIyI/EBJCM8JOP1ASQiIesfHmZ+7vASQi2nJle4BJCJ3fCBHD2e+luxAkhFlrDi/L7AEkIiX6AJIR4eJ/RBCPGJOOsTm4hOWRpzhtyu5uY3CZzRFirYtW04mxWSrNEIaMgbYqLcXWuNXOvEePNXwnOkebYVuSCjhLMFgIKLNKFmUOuBaLTjjILkRhiyFhgoRiIZAULIziM5KWlSzTYSyQZHMbATlaUZZtm1EwlJhEytigwzFBZSFko8sWlbbJJZGCEX/0CSEPj/gAkhBSJs+4R9aSV9EN3Id0MLDgVUcOp3lZmNLl+Ef9QFIG2JBIDfPa98fLCmUfzeyHLDeCJWTMSru8jQZPs7gOK9uGsXpYgdZCkPPrkaZjiWXyuiUkJJpxDMuTxYFxA9AcV9wQtIWyH+SzNtNhqMO9rIcOX8QUgdIsIy2OAN209uPH0gAkgj3R8L2AZKiPeBiPcBnYjaq7Tqme1Byxtm0FBsYoIxWGQtEck5IwTmfjBbm3czqjDxM5QI02AGGE5Q88/7+YBxuEdTgAPSu0gkICIIeGlfM0pmo6TmicKyPTYDC9Fp41wOajtIwzv+UCFcuwJw7VkgbO1l/lB6sOMgC8pigZZmmN2WyMcPra5HCIzLrzxyNoaHQxL7Cvq93+lpVAPh5gEkIvV+jma8mazCJgQsFhs+VdmEGaC3Og8bjwDjUC63U7HDtAoQ44hQ04wPIxqYlDUBjavBHVxYWK4MJpY/ulYE9yAx2uzilfeqrRhu2HH7L3u0kRVkPjoSYD7aBG1YflLW1o4XzmrFHQBJCGbwnuWCDZ/IBxuc4MWMEwEm607C9Bl+C6Owmeht3sQlCbJQjcCUfoD5pCBFRkLkFFwEgZmZw0pCjsbWQ3G200+/p0InQ4oD8gEkIxSPMk3QcegoMYxMYkpaAdDak7Eg799k54Gg1sp4ZYWsGw62IWaKXHEtDpQ0dV32zAO1n0bAyQaZWu3yU2m789O6eUu5EkGGRR9FVtYR8APlqgL352rIB3Vm5RJWi0XWjzjREOfPki7kJqBmebhfYiIAayIh4om0k3cCyLplxUnN2lbNL++y4KPGUKo0iZ2AwoUU73XHHG2hV2Fc5Vrl7wEkIsKMkVISuW0GtJpTSkL35z3WykG8CPiSrVHm2Te/00lY6vKSgKU7dQMUHVB4fJADQZYiSOtwbfP2HQJ9lgivVZkt/jEEgGAGnD4tjPbcaCGA7aja9wzDEKr7uEMUbpSYHo1NxOuqDj+tK8OQ8LJDkok1KJBImRBGSNcFMLRRxyvqLgA1Qv3vzYwLtKSchDREUJbKD4FLTNh+3yILL9l1/8iRPvEYHNv0mw0kFNZluyeyLCbFR4hwj7TFlAqK1AXVrFqTJXTEXSALy0D8qd9oAVqoL+Is+QxlO1NA6EdBeUYQAKBQKIQJQzWTOS/qgw5NO0ZeV2f1NIiF3VgJIRl3lE8uZaHqFmEwn5zy1Muq3SXjYQoMSxLZNT5e4CU5/MURNO6pBI9g0hpg2PJd2g6IMSxduEElYrThtlKGgkwIY7YDZSIYDabW5gDB1hf1CdJYJdjLhTLh9wt8W/vQCS2lZgSEgFOqVGjgM+WiAANuBuPFpNbSEiBp/0gJIQ5Ya0CB/MxEBQiCNN76e0mFitZFyYIgh+nsv4m9IpYa8ESZ7IW0af5edFsp+dcwR7fV7KfdySMxF+XEMOGYbhtsDvGH1NLpctYLDO73U3J2gYJWd6bPQVPve9oGxBNNAfM0rAQaAGgkuQLqc1W+s3qj+MYI9H8D0hwNQfmPYuGO7iNomzlLm5ESeQ4sGNMlKHuv4b/WBpn6blkXIrGiaG02xAxsaaH7UFD84M7UapB1fmOXl45NGPjsO9VuMBcEfC+RIGA8oD/sBJCNpdv8Euk9MS+dxx2OW7KyoSPpAShD3nsCfD7Xx/R17fzEMLxtPr+jhgbmmxmTZrtXHI3nHvm3Gm087Q89dmpwb3LtclNzHE1njO6xQHglttqcpQqxkRWFMYiObJSiMRjJkvM20HS22lRrCAtDJaoIIIYwmiualWqsQLGEB3ngJ7voJiHkPQXvHHsn0i9bMctAacAwaZihQSIAkQwGkvtWOy2XWNYWMUGLBtM6tYVFRNCiUUQrZRNDGImD18OlxDgwRh114h37P0fNj83k04y9ICzmnoNDcGYXu8Tjqrw7vEOcbKnfv7Ozg9d03avOl7Ou+dAttq6JVKwolgqwV9J+IRiBKWFgiE3F00LZSQ6Dg9I0ayzkLIhYIXz6H9SHt9QUPxTIbDexBo0jQPf8sYE1ZwhTaFdvMZiJvrUd6cwOka82vqnkGfPQDZmuBQWRMzFFkxZkllBzEREJwDkIDjAIgE4EKUgyJBUN7A5wQLslFCIXHolUV0IiHCsTYmSIHm1AYYtHjpu5EGzaitIl2GZYbzXeIFBtWs2B+zfAHBEB2UDuLcJGtkyWrhTNaIiU9q9XkyNWa7roPd55JG+iz0jKe5Q5RBfChtIGkwGRyY02GzbGHCyvEwMN+JLtXzxYGaOwDEBiu0vQcqj+moTeIB8BkrZg2afDLe+Zgum73fiAkhHn9Z6hvv3yhxBPhAoosFREUYwT2+8OYeFvQ7xOj8cu6ei/FneDnev8MilYny+mt2A3hBDvInEJqcy50KDbCGqFZlj5PdjD83qhi7bOq0GGMdUON18+JCzzQLb42tHwaVhsc+Z5wn2fBeHg8+fRNh6OJut1x6fIxzsnXs066O6pqyq3TVIqlCprBFsHDSFOxhbRLea1o2hVrKmOkvCklnGlAZBKtC0TqTgoBS20TDI0391+NdZuUQ+pzvRQBtFyL5OKMD4CkNAKSkZ7uG/QE4yEOoB+R4yePXD3e5LSqntK93HKjxWhkZkWUNKjQS/FbKMKlBlQrBjibDCBybThJB8gsOoG67Dp0fMaDiNcF455sWjWtKqh8nweyJD40woCgHrScYIVLWIEwJRURvnUpFan8rZYeQAEkEXE3bvoDjxwBC3ioNty85yOvM7K/o2xaAqnyAj9oKD023RfLiQ+kZeWlshtYvUqUSHhcKUQEgSGdiRADLL0nYv67bVaiTNAvj0/Tu5c6X/RRoFBcXbpqwKodbF7/YKwNGkVBFEYccw8udlUjsZP51tNmpWfwHOYAtPFq5708usBaD1zBHx7g4dBOlAbjG5uSMdtjRw7B9q04JWW7hof7fL2Y7G/lyR3d28oxY6SEidtXurNro2MMXbdbwEXIxAovjxxutO0BJCM0Afse+mdpT8AEkIboh6jj630nmEKj7Y22/Tb8KUOCgLlVEDIgUbv9aDxDM4gROAQyDDlhaTFPC+WtsklGgfcPvEkRICDIIyQpSgIwnq3fZUtOjqQRDFLJBEgESG5EhMaAqGDLXC0AmAbGa7EBp3AE7rlq9oySdQOm2yVIKRdEF6Md4sxU64nvKomeYPkvWYx0yhJLud/TOzUGsPRSU5lEyxQe02WdRdU32HIExgdSCEhjRQLxEJCmTIBGBxCE+EZI0AZJOHifKkltGdnYMaSiY5EhJjSVOWaLChQGMSSzEaY+1V1fFa1rrkH4KA3hICAq9oBq008Pk+mpMo27BFiI9DfjjE/vMK1U4CTD7LaX0slBuhQmeljhSdweepnSGoXZyEutdUBMcbDdUAXQkg92V7a5O8ZVlt0lIBiuQQ/CRmIiknEBR2sjDG9YWBIX1gJIRtSrs730c9UciLhjGSCFYHez2Z3eod19l9qJhlfPwQEgNVxCwnQ+26/0zxvSK4QmNANrDjpw0WO43R9Y57y42i0qDYmCJKEAweY4ziOIEAbS+/pKy82xfhcX7rLeKYiVs5OoZwj7Sqtaxi4se1g+xbJgDbbnIHd1NwuwTEqCpd03CdV3T0KIHUbGhaxCVHeCBi6F6O2J0dYC9W8JoLQHd985OhDdBZ0QAkhEUSZcz3kC6SreBdaHxdNc8p323DiQSpKeM24ZR2ZQLtuNlcEfewh59WD7ccgpdgCKpMDBjUkBza7S2zAM1E9lDx316dpv4BwaY0E0G2Zs37jsnN0NZEoziSlETiWKVATuZNEk0XJEFkdh280TSwdUPfkZtsyYiED3RIfRI1tTkAE8THBcC5V5oGK+gdJAE8tVz0JQpn84iNIP8R/oAkhH0BFs815MfIDF7Hi7TrYhrCpz7lE5SkitVsp22yADtC0CnUdPNG8evhvrzGX3FnJGHYZR6GmxQql604117e3Z+ICSEOc9MfM8Y7U3wr3umJRyznh6CcsWE16vnASQjKyw5FoukytyhKYsbQlqdT8NvUBJCMqi+VpMJdx+Tfj+5po6zx111wk8JDBZ1uQ0BhUPlftuUj7AEkI9dlaisNUebiiZh9NkM1+Jkd4CSEQpI4GDAfbmaGNhP4sOYWv+9x8H4P8yGv3fd41vrs5ILELdiVyej/y9GQyGxAQCAYCdgAfxdyRThQkN7qnE0A==')))
| 290.419355 | 8,090 | 0.927358 | 264 | 9,003 | 31.382576 | 0.909091 | 0.003259 | 0.004587 | 0.006276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135197 | 0.022326 | 9,003 | 30 | 8,091 | 300.1 | 0.806067 | 0.004665 | 0 | 0 | 0 | 0.142857 | 0.967129 | 0.965097 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.571429 | 0 | 0.571429 | 0.142857 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 8 |
f5c2db25ffede2dafb6d364e222aa801e093a4e5 | 8,171 | py | Python | src/frr/tests/topotests/bgp_rfapi_basic_sanity/scripts/check_timeout.py | zhouhaifeng/vpe | 9c644ffd561988e5740021ed26e0f7739844353d | [
"Apache-2.0"
] | null | null | null | src/frr/tests/topotests/bgp_rfapi_basic_sanity/scripts/check_timeout.py | zhouhaifeng/vpe | 9c644ffd561988e5740021ed26e0f7739844353d | [
"Apache-2.0"
] | null | null | null | src/frr/tests/topotests/bgp_rfapi_basic_sanity/scripts/check_timeout.py | zhouhaifeng/vpe | 9c644ffd561988e5740021ed26e0f7739844353d | [
"Apache-2.0"
] | null | null | null | from lib.lutil import luCommand
holddownFactorSet = luCommand(
"r1",
'vtysh -c "show running"',
"rfp holddown-factor",
"none",
"Holddown factor set",
)
luCommand("r1", 'vtysh -c "show vnc registrations"', ".", "none")
luCommand("r3", 'vtysh -c "show vnc registrations"', ".", "none")
luCommand("r4", 'vtysh -c "show vnc registrations"', ".", "none")
if not holddownFactorSet:
luCommand(
"r1",
'vtysh -c "show vnc summary"',
".",
"pass",
"Holddown factor not set -- skipping test",
)
else:
# holddown time test
luCommand(
"r1",
'vtysh -c "debug rfapi-dev register vn 10.0.0.1 un 1.1.1.1 prefix 1.111.0.0/16 lifetime 10"',
"",
"none",
"Prefix registered",
)
luCommand(
"r1",
'vtysh -c "show vnc registrations local"',
"1.111.0.0/16",
"wait",
"Local registration",
)
luCommand(
"r3",
'vtysh -c "debug rfapi-dev register vn 10.0.0.2 un 2.2.2.2 prefix 1.222.0.0/16 lifetime 10"',
"",
"none",
"Prefix registered",
)
luCommand(
"r3",
'vtysh -c "show vnc registrations local"',
"1.222.0.0/16",
"wait",
"Local registration",
)
luCommand(
"r4",
'vtysh -c "show vnc registrations"',
"Remotely: *Active: 4 ",
"wait",
"See registrations, L=10",
)
luCommand(
"r4",
'vtysh -c "debug rfapi-dev register vn 10.0.0.3 un 3.3.3.3 prefix 1.222.0.0/16 lifetime 5 cost 50"',
"",
"none",
"MP Prefix registered",
)
luCommand(
"r4",
'vtysh -c "show vnc registrations local"',
"1.222.0.0/16",
"wait",
"Local registration (MP prefix)",
)
luCommand("r1", 'vtysh -c "show vnc registrations"', ".", "none")
luCommand("r3", 'vtysh -c "show vnc registrations"', ".", "none")
luCommand(
"r4",
'vtysh -c "debug rfapi-dev query vn 10.0.0.3 un 3.3.3.3 target 1.111.111.111"',
"pfx=",
"pass",
"Query R1s info",
)
luCommand(
"r4",
'vtysh -c "debug rfapi-dev query vn 10.0.0.3 un 3.3.3.3 target 1.222.222.222"',
"1.222.0.0/16.*1.222.0.0/16",
"pass",
"Query R3s+R4s info",
)
luCommand(
"r4",
'vtysh -c "debug rfapi-dev unregister vn 10.0.0.3 un 3.3.3.3 prefix 1.222.0.0/16"',
"",
"none",
"MP Prefix removed",
)
luCommand(
"r4",
'vtysh -c "show vnc registrations"',
"In Holddown: *Active: 1 ",
"wait",
"MP prefix in holddown",
)
luCommand(
"r1",
'vtysh -c "show vnc registrations"',
"In Holddown: *Active: 1 ",
"wait",
"MP prefix in holddown",
)
luCommand(
"r3",
'vtysh -c "show vnc registrations"',
"In Holddown: *Active: 1 ",
"wait",
"MP prefix in holddown",
)
luCommand(
"r1",
'vtysh -c "debug rfapi-dev query vn 10.0.0.1 un 1.1.1.1 target 1.222.222.222"',
"1.222.0.0/16",
"pass",
"Query R3s info",
)
luCommand(
"r1",
'vtysh -c "debug rfapi-dev unregister vn 10.0.0.1 un 1.1.1.1 prefix 1.111.0.0/16"',
"",
"none",
"Prefix timeout",
)
luCommand(
"r1",
'vtysh -c "show vnc registrations holddown"',
"1.111.0.0/16",
"wait",
"Local holddown",
1,
)
luCommand(
"r3",
'vtysh -c "debug rfapi-dev unregister vn 10.0.0.2 un 2.2.2.2 prefix 1.222.0.0/16"',
"",
"none",
"Prefix timeout",
)
luCommand(
"r3",
'vtysh -c "show vnc registrations holddown"',
"1.222.0.0/16",
"wait",
"Local holddown",
1,
)
luCommand("r4", 'vtysh -c "show vnc registrations"', ".", "none")
luCommand("r4", 'vtysh -c "show vnc registrations"', ".", "none")
luCommand(
"r4",
'vtysh -c "show vnc registrations"',
"In Holddown: *Active: 2 ",
"wait",
"In holddown",
)
luCommand(
"r1",
'vtysh -c "show vnc registrations"',
"In Holddown: *Active: 2 ",
"wait",
"In holddown",
)
luCommand(
"r3",
'vtysh -c "show vnc registrations"',
"In Holddown: *Active: 2 ",
"wait",
"In holddown",
)
luCommand(
"r1",
'vtysh -c "show vnc registrations"',
"In Holddown: *Active: 0",
"wait",
"Out of holddown",
20,
)
luCommand(
"r3",
'vtysh -c "show vnc registrations"',
"In Holddown: *Active: 0",
"wait",
"Out of holddown",
)
luCommand(
"r4",
'vtysh -c "show vnc registrations"',
"In Holddown: *Active: 0",
"wait",
"Out of holddown",
)
# kill test
luCommand(
"r1",
'vtysh -c "debug rfapi-dev register vn 10.0.0.1 un 1.1.1.1 prefix 1.111.0.0/16 lifetime 10"',
"",
"none",
"Prefix registered",
)
luCommand(
"r1",
'vtysh -c "show vnc registrations local"',
"1.111.0.0/16",
"wait",
"Local registration",
)
luCommand(
"r3",
'vtysh -c "debug rfapi-dev register vn 10.0.0.2 un 2.2.2.2 prefix 1.222.0.0/16 lifetime 10"',
"",
"none",
"Prefix registered",
)
luCommand(
"r3",
'vtysh -c "show vnc registrations local"',
"1.222.0.0/16",
"wait",
"Local registration",
)
luCommand(
"r4",
'vtysh -c "show vnc registrations"',
"Remotely: *Active: 4 ",
"wait",
"See registrations L=10 (pre-kill)",
5,
)
luCommand("r1", 'vtysh -c "show vnc registrations"', ".", "none")
luCommand("r3", 'vtysh -c "show vnc registrations"', ".", "none")
luCommand(
"r1",
'vtysh -c "debug rfapi-dev unregister vn 10.0.0.1 un 1.1.1.1 prefix 1.111.0.0/16 kill"',
"",
"none",
"Prefix kill",
)
luCommand(
"r1",
'vtysh -c "show vnc registrations"',
"Locally: *Active: 1 .* Remotely: *Active: 4 .*In Holddown: *Active: 0",
"wait",
"Registration killed",
1,
)
luCommand(
"r3",
'vtysh -c "show vnc registrations"',
"Locally: *Active: 2 .* Remotely: *Active: 3 .*In Holddown: *Active: 1",
"wait",
"Remote in holddown",
5,
)
luCommand(
"r4",
'vtysh -c "show vnc registrations"',
"Locally: *Active: 2 .* Remotely: *Active: 3 .*In Holddown: *Active: 1",
"wait",
"Remote in holddown",
5,
)
luCommand(
"r3",
'vtysh -c "debug rfapi-dev unregister vn 10.0.0.2 un 2.2.2.2 prefix 1.222.0.0/16 kill"',
"",
"none",
"Prefix kill",
)
luCommand(
"r3",
'vtysh -c "show vnc registrations"',
"Locally: *Active: 1 .* Remotely: *Active: 3 .*In Holddown: *Active: 1",
"wait",
"Registration killed",
1,
)
luCommand(
"r4",
'vtysh -c "show vnc registrations"',
"Locally: *Active: 2 .* Remotely: *Active: 2 .*In Holddown: *Active: 2",
"wait",
"Remote in holddown",
5,
)
luCommand(
"r1",
'vtysh -c "show vnc registrations"',
"Locally: *Active: 1 .* Remotely: *Active: 3 .*In Holddown: *Active: 0",
"wait",
"Out of holddown",
20,
)
luCommand(
"r3",
'vtysh -c "show vnc registrations"',
"Locally: *Active: 1 .* Remotely: *Active: 3 .*In Holddown: *Active: 0",
"wait",
"Out of holddown",
)
luCommand(
"r4",
'vtysh -c "show vnc registrations"',
"Locally: *Active: 2 .* Remotely: *Active: 2 .*In Holddown: *Active: 0",
"wait",
"Out of holddown",
)
| 25.064417 | 108 | 0.478277 | 955 | 8,171 | 4.092147 | 0.079581 | 0.076766 | 0.094678 | 0.119754 | 0.94089 | 0.925793 | 0.900461 | 0.857984 | 0.81781 | 0.814995 | 0 | 0.08088 | 0.359931 | 8,171 | 325 | 109 | 25.141538 | 0.666348 | 0.003427 | 0 | 0.760518 | 0 | 0.067961 | 0.536732 | 0.003194 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.012945 | 0.003236 | 0 | 0.003236 | 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 |
eb124c96f43503e6506f1e639cbdd3978a3e2e48 | 165 | py | Python | tests/test_exa_error.py | exasol/error-reporting-python | e21f181502b32f18d09660dde84cc20159c27b29 | [
"MIT"
] | null | null | null | tests/test_exa_error.py | exasol/error-reporting-python | e21f181502b32f18d09660dde84cc20159c27b29 | [
"MIT"
] | 6 | 2021-11-05T07:01:02.000Z | 2022-03-28T14:01:56.000Z | tests/test_exa_error.py | exasol/error-reporting-python | e21f181502b32f18d09660dde84cc20159c27b29 | [
"MIT"
] | null | null | null | from exasol_error_reporting_python.exa_error import ExaError
def test_message_builder():
assert str(ExaError.message_builder("E-ERJ-TEST-1")) == "E-ERJ-TEST-1" | 33 | 74 | 0.781818 | 26 | 165 | 4.692308 | 0.653846 | 0.229508 | 0.131148 | 0.147541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.090909 | 165 | 5 | 74 | 33 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.144578 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
eb2a4401b835ddf284555c4e0cc25f66851fb2a9 | 166 | py | Python | controllers/wiki.py | ecohealthalliance/sicki | 390ab06cedc205a415d823339f5816730dcc4b72 | [
"Apache-2.0"
] | null | null | null | controllers/wiki.py | ecohealthalliance/sicki | 390ab06cedc205a415d823339f5816730dcc4b72 | [
"Apache-2.0"
] | null | null | null | controllers/wiki.py | ecohealthalliance/sicki | 390ab06cedc205a415d823339f5816730dcc4b72 | [
"Apache-2.0"
] | null | null | null | def blog():
return render_page ()
def case():
return render_page ()
def tutorials():
return render_page ()
def docs():
return render_page ()
| 11.857143 | 25 | 0.608434 | 20 | 166 | 4.85 | 0.4 | 0.494845 | 0.659794 | 0.587629 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.271084 | 166 | 13 | 26 | 12.769231 | 0.801653 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 8 |
eb3cf87f474ccbd5a773cd986ec00a26a5d3f109 | 156 | py | Python | logical_permissions/exceptions/PermissionTypeAlreadyExistsException.py | ordermind/logical-permissions-py | 3a64ad49ad1d4c2e471746456e88deb554683067 | [
"MIT"
] | 1 | 2016-01-04T17:28:35.000Z | 2016-01-04T17:28:35.000Z | logical_permissions/exceptions/PermissionTypeAlreadyExistsException.py | ordermind/logical-permissions-py | 3a64ad49ad1d4c2e471746456e88deb554683067 | [
"MIT"
] | null | null | null | logical_permissions/exceptions/PermissionTypeAlreadyExistsException.py | ordermind/logical-permissions-py | 3a64ad49ad1d4c2e471746456e88deb554683067 | [
"MIT"
] | null | null | null | from logical_permissions.exceptions import InvalidArgumentValueException
class PermissionTypeAlreadyExistsException(InvalidArgumentValueException):
pass
| 31.2 | 74 | 0.910256 | 10 | 156 | 14.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064103 | 156 | 4 | 75 | 39 | 0.965753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
de4c0097e70bc191a7f34c2c5ed17eb421d2d407 | 19,666 | py | Python | tests/test_component_tree_model.py | ess-dmsc/nexus-constructor | ae0026c48f8f2d4d88d3ff00e45cb6591983853b | [
"BSD-2-Clause"
] | 3 | 2019-05-31T08:38:25.000Z | 2022-01-06T09:23:21.000Z | tests/test_component_tree_model.py | ess-dmsc/nexus-constructor | ae0026c48f8f2d4d88d3ff00e45cb6591983853b | [
"BSD-2-Clause"
] | 709 | 2019-02-06T08:23:07.000Z | 2022-03-29T23:03:37.000Z | tests/test_component_tree_model.py | ess-dmsc/nexus-constructor | ae0026c48f8f2d4d88d3ff00e45cb6591983853b | [
"BSD-2-Clause"
] | 2 | 2020-03-06T09:58:56.000Z | 2020-08-04T18:32:57.000Z | from typing import Any, List, Optional, Tuple
import pytest
from PySide2.QtCore import QModelIndex, Qt
from PySide2.QtGui import QVector3D
from nexus_constructor.component_tree_model import (
ComponentInfo,
ComponentTreeModel,
LinkTransformation,
)
from nexus_constructor.model.component import Component
from nexus_constructor.model.dataset import Dataset
from nexus_constructor.model.entry import Instrument
from nexus_constructor.model.model import Model
from nexus_constructor.model.value_type import ValueTypes
def _add_component_to_file(
field_name: str, field_value: Any, component_name: str = "test_component"
):
component = Component(component_name)
component.set_field_value(
field_name,
Dataset(
name=field_name, type=ValueTypes.DOUBLE, size="[1]", values=field_value
),
dtype=ValueTypes.DOUBLE,
)
return component
@pytest.fixture(scope="function")
def model():
model = Model()
return model
def get_component():
return Component("test_1")
def create_component_tree_model(
components: Optional[List[Component]] = None,
) -> Tuple[ComponentTreeModel, Instrument]:
model = Model()
component_model = ComponentTreeModel(model)
# remove sample component for purposes of tests
component_model.remove_node(
component_model.createIndex(0, 0, component_model.components[0])
)
if components is not None:
for component in components:
component_model.add_component(component)
return ComponentTreeModel(model), model.entry.instrument
def test_number_of_components_0():
test_component_tree_model, _ = create_component_tree_model()
test_index = QModelIndex()
assert test_component_tree_model.rowCount(test_index) == 0
def test_number_of_components_1():
test_component_tree_model, _ = create_component_tree_model([get_component()])
test_index = QModelIndex()
assert test_component_tree_model.rowCount(test_index) == 1
def test_number_of_components_2():
test_component_tree_model, _ = create_component_tree_model(
[get_component(), get_component()]
)
test_index = QModelIndex()
assert test_component_tree_model.rowCount(test_index) == 2
def test_component_has_2_rows():
test_component_tree_model, test_instrument = create_component_tree_model(
[get_component()]
)
test_index = test_component_tree_model.createIndex(
0, 0, test_instrument.component_list[0]
)
assert test_component_tree_model.rowCount(test_index) == 2
def test_transformation_list_has_0_rows():
test_component_tree_model, test_instrument = create_component_tree_model(
[get_component()]
)
test_instrument.component_list[
0
].stored_transforms = test_instrument.component_list[0].transforms
test_index = test_component_tree_model.createIndex(
0, 0, test_instrument.component_list[0].stored_transforms
)
assert test_component_tree_model.rowCount(test_index) == 0
def test_transformation_list_has_1_rows():
component = Component("test")
translation = component.add_translation(QVector3D(1.0, 0.0, 0.0))
component.depends_on = translation
component.stored_transforms = component.transforms
test_component_tree_model, _ = create_component_tree_model([component])
test_index = test_component_tree_model.createIndex(
0, 0, component.stored_transforms
)
assert test_component_tree_model.rowCount(test_index) == 1
def test_transformation_has_0_rows():
component = Component("test")
translation = component.add_translation(QVector3D(1.0, 0.0, 0.0))
component.depends_on = translation
component.stored_transforms = component.transforms
test_component_tree_model, _ = create_component_tree_model([component])
test_index = test_component_tree_model.createIndex(
0, 0, component.stored_transforms[0]
)
assert test_component_tree_model.rowCount(test_index) == 0
def test_transformation_link_has_0_rows():
component = Component("test")
translation = component.add_translation(QVector3D(1.0, 0.0, 0.0))
component.depends_on = translation
component.stored_transforms = component.transforms
test_component_tree_model, _ = create_component_tree_model([component])
test_index = test_component_tree_model.createIndex(
0, 0, component.stored_transforms[0]
)
assert test_component_tree_model.rowCount(test_index) == 0
def test_rowCount_gets_unknown_type():
test_component_tree_model, _ = create_component_tree_model()
test_index = test_component_tree_model.createIndex(0, 0, {})
with pytest.raises(RuntimeError):
test_component_tree_model.rowCount(test_index)
def test_get_default_parent():
test_component_tree_model, _ = create_component_tree_model()
test_index = QModelIndex()
assert test_component_tree_model.parent(test_index) == QModelIndex()
def test_get_component_parent():
test_component_tree_model, test_instrument = create_component_tree_model(
[get_component()]
)
test_index = test_component_tree_model.createIndex(
0, 0, test_instrument.component_list[0]
)
assert test_component_tree_model.parent(test_index) == QModelIndex()
def test_get_transform_list_parent():
test_component_tree_model, test_instrument = create_component_tree_model(
[get_component()]
)
test_instrument.component_list[
0
].stored_transforms = test_instrument.component_list[0].transforms
test_index = test_component_tree_model.createIndex(
0, 0, test_instrument.component_list[0].stored_transforms
)
temp_parent = test_component_tree_model.parent(test_index)
assert temp_parent.internalPointer() is test_instrument.component_list[0]
assert temp_parent.row() == 0
def test_get_transform_list_parent_v2():
zeroth_component = get_component()
first_component = get_component()
zeroth_component.stored_transforms = zeroth_component.transforms
first_component.stored_transforms = first_component.transforms
first_component.name = "Some other name"
test_component_tree_model, _ = create_component_tree_model(
[zeroth_component, first_component]
)
test_index = test_component_tree_model.createIndex(
0, 0, first_component.stored_transforms
)
temp_parent = test_component_tree_model.parent(test_index)
assert temp_parent.internalPointer() is first_component
assert temp_parent.row() == 1
def test_get_component_info_parent():
test_component_tree_model, test_instrument = create_component_tree_model(
[get_component()]
)
# Creating ComponentInfo in-line causes a segmentation error
temp_component_info = ComponentInfo(parent=test_instrument.component_list[0])
test_index = test_component_tree_model.createIndex(0, 0, temp_component_info)
assert (
test_component_tree_model.parent(test_index).internalPointer()
is test_instrument.component_list[0]
)
def test_get_transformation_link_parent():
component = get_component()
component.stored_transforms = component.transforms
transform_link = LinkTransformation(component.stored_transforms)
component.stored_transforms.link = transform_link
component.stored_transforms.has_link = True
test_component_tree_model, test_instrument = create_component_tree_model(
[component]
)
test_index = test_component_tree_model.createIndex(0, 0, transform_link)
found_parent = test_component_tree_model.parent(test_index)
assert (
found_parent.internalPointer()
== test_instrument.component_list[0].stored_transforms
)
assert found_parent.row() == 1
def test_get_invalid_index():
test_component_tree_model, test_instrument = create_component_tree_model(
[get_component()]
)
test_index = QModelIndex()
assert test_component_tree_model.index(2, 0, test_index) == QModelIndex()
def test_get_data_success_1():
test_component_tree_model, test_instrument = create_component_tree_model(
[get_component()]
)
test_index = test_component_tree_model.createIndex(
0, 0, test_instrument.component_list[0]
)
assert (
test_component_tree_model.data(test_index, Qt.DisplayRole)
is test_instrument.component_list[0]
)
def test_get_data_success_2():
test_component_tree_model, test_instrument = create_component_tree_model(
[get_component()]
)
test_index = test_component_tree_model.createIndex(
0, 0, test_instrument.component_list[0]
)
assert test_component_tree_model.data(test_index, Qt.SizeHintRole) is None
def test_get_data_fail():
test_component_tree_model, test_instrument = create_component_tree_model(
[get_component()]
)
test_component_tree_model.createIndex(0, 0, test_instrument.component_list[0])
assert test_component_tree_model.data(QModelIndex(), Qt.DisplayRole) is None
def test_get_flags_fail():
test_component_tree_model, test_instrument = create_component_tree_model(
[get_component()]
)
test_component_tree_model.createIndex(0, 0, test_instrument.component_list[0])
assert test_component_tree_model.flags(QModelIndex()) is Qt.NoItemFlags
def test_get_flags_component():
test_component_tree_model, test_instrument = create_component_tree_model(
[get_component()]
)
index = test_component_tree_model.createIndex(
0, 0, test_instrument.component_list[0]
)
assert test_component_tree_model.flags(index) == (
Qt.ItemIsEnabled | Qt.ItemIsSelectable
)
def test_get_flags_component_info():
test_component_tree_model, test_instrument = create_component_tree_model(
[get_component()]
)
item = ComponentInfo(parent=test_instrument.component_list[0])
index = test_component_tree_model.createIndex(0, 0, item)
assert test_component_tree_model.flags(index) == Qt.ItemIsEnabled
def test_get_flags_transformation_list():
test_component_tree_model, test_instrument = create_component_tree_model(
[get_component()]
)
component = test_instrument.component_list[0]
component.stored_transforms = component.transforms
index = test_component_tree_model.createIndex(0, 0, component.stored_transforms)
assert (
test_component_tree_model.flags(index) == Qt.ItemIsEnabled | Qt.ItemIsSelectable
)
def test_get_flags_other():
test_component_tree_model, test_instrument = create_component_tree_model(
[get_component()]
)
class TestObject:
pass
test_item = TestObject()
index = test_component_tree_model.createIndex(0, 0, test_item)
assert (
test_component_tree_model.flags(index)
== Qt.ItemIsEnabled | Qt.ItemIsSelectable | Qt.ItemIsEditable
)
def test_add_component():
test_component_tree_model, _ = create_component_tree_model()
assert test_component_tree_model.rowCount(QModelIndex()) == 0
test_component_tree_model.add_component(get_component())
assert test_component_tree_model.rowCount(QModelIndex()) == 1
def test_add_rotation():
test_component_tree_model, _ = create_component_tree_model()
test_component_tree_model.add_component(get_component())
component_index = test_component_tree_model.index(0, 0, QModelIndex())
transformation_list_index = test_component_tree_model.index(1, 0, component_index)
assert test_component_tree_model.rowCount(transformation_list_index) == 0
test_component_tree_model.add_rotation(component_index)
assert test_component_tree_model.rowCount(transformation_list_index) == 1
transform_index = test_component_tree_model.index(0, 0, transformation_list_index)
assert transform_index.internalPointer().transform_type == "Rotation"
def test_add_translation():
test_component_tree_model, _ = create_component_tree_model()
test_component_tree_model.add_component(get_component())
component_index = test_component_tree_model.index(0, 0, QModelIndex())
transformation_list_index = test_component_tree_model.index(1, 0, component_index)
assert test_component_tree_model.rowCount(transformation_list_index) == 0
test_component_tree_model.add_translation(component_index)
assert test_component_tree_model.rowCount(transformation_list_index) == 1
transform_index = test_component_tree_model.index(0, 0, transformation_list_index)
assert transform_index.internalPointer().transform_type == "Translation"
def test_add_transformation_alt_1():
test_component_tree_model, _ = create_component_tree_model()
test_component_tree_model.add_component(get_component())
component_index = test_component_tree_model.index(0, 0, QModelIndex())
transformation_list_index = test_component_tree_model.index(1, 0, component_index)
assert test_component_tree_model.rowCount(transformation_list_index) == 0
test_component_tree_model.add_translation(transformation_list_index)
assert test_component_tree_model.rowCount(transformation_list_index) == 1
def test_add_transformation_alt_2():
test_component_tree_model, _ = create_component_tree_model()
test_component_tree_model.add_component(get_component())
component_index = test_component_tree_model.index(0, 0, QModelIndex())
transformation_list_index = test_component_tree_model.index(1, 0, component_index)
test_component_tree_model.add_translation(transformation_list_index)
assert test_component_tree_model.rowCount(transformation_list_index) == 1
transform_index = test_component_tree_model.index(0, 0, transformation_list_index)
test_component_tree_model.add_translation(transform_index)
assert test_component_tree_model.rowCount(transformation_list_index) == 2
def test_add_link_alt_1():
test_component_tree_model, _ = create_component_tree_model()
test_component_tree_model.add_component(get_component())
component_index = test_component_tree_model.index(0, 0, QModelIndex())
transformation_list_index = test_component_tree_model.index(1, 0, component_index)
assert test_component_tree_model.rowCount(transformation_list_index) == 0
test_component_tree_model.add_link(component_index)
assert test_component_tree_model.rowCount(transformation_list_index) == 1
assert transformation_list_index.internalPointer().has_link
assert len(transformation_list_index.internalPointer()) == 0
def test_add_link_alt_2():
test_component_tree_model, _ = create_component_tree_model()
test_component_tree_model.add_component(get_component())
component_index = test_component_tree_model.index(0, 0, QModelIndex())
transformation_list_index = test_component_tree_model.index(1, 0, component_index)
assert test_component_tree_model.rowCount(transformation_list_index) == 0
test_component_tree_model.add_link(transformation_list_index)
assert test_component_tree_model.rowCount(transformation_list_index) == 1
assert transformation_list_index.internalPointer().has_link
assert len(transformation_list_index.internalPointer()) == 0
def test_add_link_alt_3():
test_component_tree_model, _ = create_component_tree_model()
test_component_tree_model.add_component(get_component())
component_index = test_component_tree_model.index(0, 0, QModelIndex())
transformation_list_index = test_component_tree_model.index(1, 0, component_index)
test_component_tree_model.add_rotation(component_index)
transform_index = test_component_tree_model.index(0, 0, transformation_list_index)
assert test_component_tree_model.rowCount(transformation_list_index) == 1
test_component_tree_model.add_link(transform_index)
assert test_component_tree_model.rowCount(transformation_list_index) == 2
assert transformation_list_index.internalPointer().has_link
assert len(transformation_list_index.internalPointer()) == 1
def test_add_link_multiple_times():
test_component_tree_model, _ = create_component_tree_model()
test_component_tree_model.add_component(get_component())
component_index = test_component_tree_model.index(0, 0, QModelIndex())
transformation_list_index = test_component_tree_model.index(1, 0, component_index)
assert test_component_tree_model.rowCount(transformation_list_index) == 0
test_component_tree_model.add_link(component_index)
first_link = transformation_list_index.internalPointer().link
test_component_tree_model.add_link(component_index)
assert test_component_tree_model.rowCount(transformation_list_index) == 1
assert transformation_list_index.internalPointer().has_link
assert len(transformation_list_index.internalPointer()) == 0
assert first_link is transformation_list_index.internalPointer().link
def test_remove_component(model):
test_component_tree_model = ComponentTreeModel(model)
model.entry.instrument.component_list.append(Component(name="Some name"))
component_index = test_component_tree_model.index(0, 0, QModelIndex())
# Should be 2 components as the sample counts as 1
assert test_component_tree_model.rowCount(QModelIndex()) == 2
test_component_tree_model.remove_node(component_index)
# Check that only the sample is left
assert test_component_tree_model.rowCount(QModelIndex()) == 1
def test_remove_component_with_transformation(model):
test_component_tree_model = ComponentTreeModel(model)
model.entry.instrument.component_list.append(Component(name="Some name"))
component_index = test_component_tree_model.index(0, 0, QModelIndex())
test_component_tree_model.add_rotation(component_index)
# Should be 2 components as the sample counts as 1
assert test_component_tree_model.rowCount(QModelIndex()) == 2
test_component_tree_model.remove_node(component_index)
# Check that only the sample is left
assert test_component_tree_model.rowCount(QModelIndex()) == 1, (
"Expected component to be successfully deleted because it has "
"a transformation that only has it as a dependent"
)
def test_remove_transformation(model):
test_component_tree_model = ComponentTreeModel(model)
model.entry.instrument.component_list.append(Component(name="Some name"))
component_index = test_component_tree_model.index(0, 0, QModelIndex())
test_component_tree_model.add_rotation(component_index)
transformation_list_index = test_component_tree_model.index(1, 0, component_index)
transformation_index = test_component_tree_model.index(
0, 0, transformation_list_index
)
assert test_component_tree_model.rowCount(transformation_list_index) == 1
test_component_tree_model.remove_node(transformation_index)
assert test_component_tree_model.rowCount(transformation_list_index) == 0
def test_remove_link(model):
test_component_tree_model = ComponentTreeModel(model)
model.entry.instrument.component_list.append(Component(name="Some name"))
component_index = test_component_tree_model.index(0, 0, QModelIndex())
test_component_tree_model.add_link(component_index)
transformation_list_index = test_component_tree_model.index(1, 0, component_index)
transformation_index = test_component_tree_model.index(
0, 0, transformation_list_index
)
assert test_component_tree_model.rowCount(transformation_list_index) == 1
assert len(transformation_list_index.internalPointer()) == 0
test_component_tree_model.remove_node(transformation_index)
assert test_component_tree_model.rowCount(transformation_list_index) == 0
| 36.351201 | 88 | 0.777281 | 2,455 | 19,666 | 5.767006 | 0.056619 | 0.179969 | 0.249188 | 0.250177 | 0.840938 | 0.805057 | 0.793544 | 0.772284 | 0.750742 | 0.732801 | 0 | 0.012437 | 0.14548 | 19,666 | 540 | 89 | 36.418519 | 0.830051 | 0.013831 | 0 | 0.52987 | 0 | 0 | 0.011451 | 0 | 0 | 0 | 0 | 0 | 0.166234 | 1 | 0.106494 | false | 0.002597 | 0.025974 | 0.002597 | 0.145455 | 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 |
de57c9d639dd808d2f887c1c61e170a0085129dd | 29,210 | py | Python | CPFrontend/quotes/views.py | Conpancol/PyHeroku | 16b157a23c77cd794d246a56cf8575766e48689c | [
"MIT"
] | null | null | null | CPFrontend/quotes/views.py | Conpancol/PyHeroku | 16b157a23c77cd794d246a56cf8575766e48689c | [
"MIT"
] | null | null | null | CPFrontend/quotes/views.py | Conpancol/PyHeroku | 16b157a23c77cd794d246a56cf8575766e48689c | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.core.files.storage import FileSystemStorage
from django.contrib.auth.decorators import login_required
from django.forms import formset_factory
from requests.exceptions import ConnectionError
from .services.QuoteCreator import QuoteCreator
from .services.ExtQuotedMaterialCreator import ExtQuotedMaterialCreator
from .forms import QuotesForm, QuotedMaterialsForm, SelectorForm, QuotesFormOnlyinfo, QuotedMaterialForm
from .forms import SmartQuotesForm
import requests
import json
import os
from common.BackendMessage import BackendMessage
from common.MachineConfig import MachineConfigurator
from common.Instructions import Instructions
from common.FrontendTexts import FrontendTexts
view_texts = FrontendTexts('quotes')
def cleanup(filename):
try:
os.remove('.' + filename)
print("removed file: " + filename)
except Exception as error:
print(error)
@login_required(login_url='/auth/login')
def quotes_upload(request):
menu_texts = FrontendTexts('menu')
instructions = Instructions('quotes', 'upload')
uploaded_file_url = ''
try:
form = QuotesForm()
if request.method == 'POST':
form = QuotesForm(request.POST, request.FILES)
if form.is_valid():
quote = QuoteCreator()
internal_code = form.cleaned_data['internalCode']
external_code = form.cleaned_data['externalCode']
provider_code = form.cleaned_data['providerCode']
received_date = form.cleaned_data['receivedDate']
sent_date = form.cleaned_data['sentDate']
user = form.cleaned_data['user']
provider_id = form.cleaned_data['providerId']
provider_name = form.cleaned_data['providerName']
contact_name = form.cleaned_data['contactName']
incoterms = form.cleaned_data['incoterms']
note = form.cleaned_data['note']
edt = form.cleaned_data['edt']
quote.setQuoteInformation(internal_code, external_code, provider_code, provider_id, provider_name,
contact_name, received_date, sent_date, user, edt)
quote.setQuoteIncoterms(incoterms)
quote.setQuoteNote(note)
myfile = request.FILES['document']
fs = FileSystemStorage()
filename = fs.save(myfile.name, myfile)
uploaded_file_url = fs.url(filename)
result = quote.createQuotefromCSV('.' + uploaded_file_url)
# ... print(json.dumps(result))
backend_host = MachineConfigurator().getBackend()
r = requests.post(backend_host + '/auth/quotes/', json=result)
backend_message = BackendMessage(json.loads(r.text))
cleanup(uploaded_file_url)
backend_result = []
if backend_message.errorInd:
display_message = {}
display_message['internalCode'] = internal_code
display_message['externalCode'] = external_code
display_message['status'] = backend_message.getValue()
backend_result.append(display_message)
else:
backend_result = json.loads(backend_message.getValue())
return render(request, 'quotes/quote_upload.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'upload_result': backend_result})
return render(request, 'quotes/quote_upload.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'form': form,
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()})
except ValueError as exception:
cleanup(uploaded_file_url)
print("There is a problem with the backend return value")
print(exception)
return render(request, 'quotes/quote_upload.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'error_message': 'Backend problem',
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()
})
except ConnectionError as exception:
cleanup(uploaded_file_url)
print("Backend connection problem")
print(exception)
return render(request, 'quotes/quote_upload.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'error_message': 'Backend connection problem',
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()
})
except Exception as exception:
cleanup(uploaded_file_url)
print(exception)
return render(request, 'quotes/quote_upload.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'error_message': 'General problem',
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()
})
@login_required(login_url='/auth/login')
def smart_quotes_upload(request):
menu_texts = FrontendTexts('menu')
instructions = Instructions('quotes', 'upload')
uploaded_file_url = ''
try:
backend_host = MachineConfigurator().getBackend()
r = requests.get(backend_host + '/auth/providers/short')
backend_message = BackendMessage(json.loads(r.text))
providers_list = json.loads(backend_message.getValue())
form = SmartQuotesForm(providers_list)
if request.method == 'POST':
form = SmartQuotesForm(providers_list, request.POST, request.FILES)
if form.is_valid():
quote = QuoteCreator()
internal_code = form.cleaned_data['internalCode']
external_code = form.cleaned_data['externalCode']
provider_code = form.cleaned_data['providerCode']
received_date = form.cleaned_data['receivedDate']
sent_date = form.cleaned_data['sentDate']
user = form.cleaned_data['user']
contact_name = form.cleaned_data['contactName']
incoterms = form.cleaned_data['incoterms']
note = form.cleaned_data['note']
edt = form.cleaned_data['edt']
provider = int(form.cleaned_data[ 'providerId' ])
provider_choices = form.getProviderInfo()[provider - 1][1].split(' | ')
# ... print(provider_choices[0], provider_choices[1])
provider_id = provider_choices[0]
provider_name = provider_choices[1]
quote.setQuoteInformation(internal_code, external_code, provider_code, provider_id, provider_name,
contact_name, received_date, sent_date, user, edt)
quote.setQuoteIncoterms(incoterms)
quote.setQuoteNote(note)
myfile = request.FILES['document']
fs = FileSystemStorage()
filename = fs.save(myfile.name, myfile)
uploaded_file_url = fs.url(filename)
result = quote.createQuotefromCSV('.' + uploaded_file_url)
# ... print(json.dumps(result))
backend_host = MachineConfigurator().getBackend()
r = requests.post(backend_host + '/auth/quotes/', json=result)
backend_message = BackendMessage(json.loads(r.text))
cleanup(uploaded_file_url)
backend_result = []
if backend_message.errorInd:
display_message = {}
display_message['internalCode'] = internal_code
display_message['externalCode'] = external_code
display_message['status'] = backend_message.getValue()
backend_result.append(display_message)
else:
backend_result = json.loads(backend_message.getValue())
return render(request, 'quotes/quote_upload.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'upload_result': backend_result})
return render(request, 'quotes/quote_upload.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'form': form,
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()})
except ValueError as exception:
cleanup(uploaded_file_url)
print("There is a problem with the backend return value")
print(exception)
return render(request, 'quotes/quote_upload.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'error_message': 'Backend problem',
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()
})
except ConnectionError as exception:
cleanup(uploaded_file_url)
print("Backend connection problem")
print(exception)
return render(request, 'quotes/quote_upload.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'error_message': 'Backend connection problem',
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()
})
except Exception as exception:
cleanup(uploaded_file_url)
print(exception)
return render(request, 'quotes/quote_upload.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'error_message': 'General problem',
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()
})
@login_required(login_url='/auth/login')
def quoted_materials_upload(request):
menu_texts = FrontendTexts('menu')
instructions = Instructions('quotes', 'materials_upload')
uploaded_file_url = ''
try:
if request.method == 'POST':
form = QuotedMaterialsForm(request.POST, request.FILES)
if form.is_valid():
data = ExtQuotedMaterialCreator()
providerId = form.cleaned_data['providerId']
providerName = form.cleaned_data['providerName']
revision = form.cleaned_data['revision']
data.setExtendedInformation(providerId, providerName, revision)
my_file = request.FILES['document']
fs = FileSystemStorage()
filename = fs.save(my_file.name, my_file)
uploaded_file_url = fs.url(filename)
result = data.createExtQuotedMaterialsfromCSV('.' + uploaded_file_url)
# print(json.dumps(result))
backend_host = MachineConfigurator().getBackend()
r = requests.post(backend_host + '/auth/quotes/materials', json=result)
backend_message = BackendMessage(json.loads(r.text))
cleanup(uploaded_file_url)
backend_result = []
if backend_message.errorInd:
display_message = {}
display_message['itemcode'] = "-"
display_message['revision'] = "-"
display_message['status'] = "-"
backend_result.append(display_message)
else:
backend_result = json.loads(backend_message.getValue())
return render(request, 'quotes/materials_upload.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'upload_result': backend_result})
else:
form = QuotedMaterialsForm()
return render(request, 'quotes/materials_upload.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'form': form,
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()
})
except ValueError as exception:
cleanup(uploaded_file_url)
print("There is a problem with the backend return value")
print(exception)
return render(request, 'quotes/materials_upload.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'error_message': 'Backend problem',
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()
})
except ConnectionError as exception:
cleanup(uploaded_file_url)
print("There is a problem with the backend return value")
print(exception)
return render(request, 'quotes/materials_upload.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'error_message': 'Backend connection problem',
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()
})
except Exception as exception:
cleanup(uploaded_file_url)
print(exception)
return render(request, 'quotes/materials_upload.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'error_message': "Frontend Error",
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()
})
@login_required(login_url='/auth/login')
def quotes_manager(request):
menu_texts = FrontendTexts('menu')
instructions = Instructions('quotes', 'manage')
print("quotes manager")
try:
if request.method == 'POST':
selector_form = SelectorForm(request.POST)
if selector_form.is_valid():
code = selector_form.cleaned_data['code']
action = selector_form.cleaned_data['action']
if action == '1':
return redirect('edit/' + code)
elif action == '2':
return redirect('edit/materials/' + code)
else:
selector_form = SelectorForm()
return render(request, 'quotes/quote_selector.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'selector_form': selector_form,
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()})
except ValueError as exception:
print("There is a problem with the backend return value")
print(exception)
return render(request, 'quotes/quote_selector.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'error_message': 'Backend problem',
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()
})
except ConnectionError as exception:
print("Backend connection problem")
print(exception)
return render(request, 'quotes/quote_selector.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'error_message': 'Backend connection problem',
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()
})
except Exception as exception:
print(exception)
return render(request, 'quotes/quote_selector.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'error_message': 'System error',
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()
})
@login_required(login_url='/auth/login')
def quotes_editor(request, code):
menu_texts = FrontendTexts('menu')
instructions = Instructions('quotes', 'edit')
try:
backend_host = MachineConfigurator().getBackend()
r = requests.post(backend_host + '/auth/quotes/' + code)
backend_message = BackendMessage(json.loads(r.text))
backend_result = json.loads(backend_message.getValue())
material_data = backend_result['materialList']
quote_form = QuotesFormOnlyinfo(initial=backend_result)
MaterialFormSet = formset_factory(QuotedMaterialForm, extra=0)
materials_formset = MaterialFormSet(initial=material_data)
if request.method == 'POST':
quote_form = QuotesFormOnlyinfo(request.POST)
materials_formset = MaterialFormSet(request.POST)
if quote_form.is_valid() and materials_formset.is_valid():
# ... update current material with the data provided
# ... send data to backend
creator = QuoteCreator()
result = creator.editQuotewithMaterials(quote_form, materials_formset, material_data)
print(result)
result_json = []
for quote in result:
result_json.append(json.dumps(quote))
r = requests.put(backend_host + '/auth/quotes/' + code, json=result)
backend_message = BackendMessage(json.loads(r.text))
backend_result = json.loads(backend_message.getValue())
return render(request, 'quotes/quote_editor.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'updated_materials': backend_result})
else:
print("Invalid form")
return render(request, 'quotes/quote_editor.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'quote_form': quote_form,
'materials_formset': materials_formset,
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()})
except ValueError as exception:
print("There is a problem with the backend return value")
print(exception)
return render(request, 'quotes/quote_editor.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'error_message': 'No such QUOTE exists in the DB: ' + code,
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()})
except ConnectionError as exception:
print("Backend connection problem")
print(exception)
return render(request, 'quotes/quote_editor.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'error_message': 'Backend connection problem',
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()})
except Exception as exception:
print(exception)
return render(request, 'quotes/quote_editor.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'error_message': 'System error',
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()})
@login_required(login_url='/auth/login')
def quoted_materials_editor(request, code):
menu_texts = FrontendTexts('menu')
instructions = Instructions('quotes', 'edit')
try:
backend_host = MachineConfigurator().getBackend()
r = requests.post(backend_host + '/auth/quotes/materials/' + code)
backend_message = BackendMessage(json.loads(r.text))
quoted_materials_data = json.loads(backend_message.getValue())
quoted_material_form = QuotedMaterialForm(initial=quoted_materials_data)
if request.method == 'POST':
quoted_material_form = QuotedMaterialForm(request.POST)
if quoted_material_form.is_valid():
# ... update current material with the data provided
# ... send data to backend
creator = QuoteCreator()
result = creator.editQuotedMaterials(quoted_material_form, quoted_materials_data)
result_json = []
for quote in result:
result_json.append(json.dumps(quote))
r = requests.put(backend_host + '/auth/quotes/materials/' + code, json=result)
backend_message = BackendMessage(json.loads(r.text))
backend_result = json.loads(backend_message.getValue())
return render(request, 'quotes/materials_editor.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'updated_materials': backend_result})
else:
print("Invalid form")
return render(request, 'quotes/materials_editor.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'quote_form': quoted_material_form,
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()})
except ValueError as exception:
print("There is a problem with the backend return value")
print(exception)
return render(request, 'quotes/materials_editor.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'error_message': 'No such quoted material exists ' +
'in the DB: ' + code,
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()})
except ConnectionError as exception:
print("Backend connection problem")
print(exception)
return render(request, 'quotes/materials_editor.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'error_message': 'Backend connection problem',
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()})
except Exception as exception:
print(exception)
return render(request, 'quotes/materials_editor.html', {'menu_text': menu_texts.getComponent(),
'view_texts': view_texts.getComponent(),
'error_message': 'System error',
'instructions_title': instructions.getTitle(),
'instructions_steps': instructions.getSteps()})
| 52.34767 | 119 | 0.492605 | 2,159 | 29,210 | 6.440482 | 0.082909 | 0.038188 | 0.039626 | 0.05214 | 0.829702 | 0.808918 | 0.80827 | 0.799281 | 0.78238 | 0.777418 | 0 | 0.000535 | 0.424375 | 29,210 | 557 | 120 | 52.441652 | 0.826454 | 0.009962 | 0 | 0.785047 | 0 | 0 | 0.143584 | 0.028814 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016355 | false | 0 | 0.037383 | 0 | 0.126168 | 0.084112 | 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 |
def392ddc6260ed2f365bfe840f5518089871b58 | 3,670 | py | Python | davenetgame/gameobjects/attributes/builtin.py | davefancella/davenetgame | f16c36539a3898ab4a021e63feef7fe497e5bc69 | [
"Apache-2.0"
] | null | null | null | davenetgame/gameobjects/attributes/builtin.py | davefancella/davenetgame | f16c36539a3898ab4a021e63feef7fe497e5bc69 | [
"Apache-2.0"
] | null | null | null | davenetgame/gameobjects/attributes/builtin.py | davefancella/davenetgame | f16c36539a3898ab4a021e63feef7fe497e5bc69 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
'''
Copyright 2016 Dave Fancella
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
'''
import struct
from davenetgame.gameobjects.attributes import base
## @file This file provides attribute classes for all of python's builtin types.
## Integer attributes.
class nSyncAttributeInt(base.nSyncAttributeBase):
## Initializes the class. attrDesc should be a dictionary describing the attribute that this
# object will represent. Consult nSyncObject for the description of this dictionary.
# The attribute will be marked dirty initially, because it is dirty when created new. This will
# result in the entire nSyncObject being synced with initial values as soon as it is created,
# and this is desired behavior.
def __init__(self, **attrDesc):
# Force the type to be an int, regardless of what was passed in.
attrdesc['type'] = int
super().__init__(attrDesc)
def __str__(self):
return str(self._value)
def GetFormatString(self):
return "Iq"
def Encode(self):
fmt = self.GetFormatString()
if fmt is not None:
return struct.pack("!" + fmt, self._id, self._value)
class nSyncAttributeFloat(base.nSyncAttributeBase):
## Initializes the class. attrDesc should be a dictionary describing the attribute that this
# object will represent. Consult nSyncObject for the description of this dictionary.
# The attribute will be marked dirty initially, because it is dirty when created new. This will
# result in the entire nSyncObject being synced with initial values as soon as it is created,
# and this is desired behavior.
def __init__(self, **attrDesc):
# Force the type to be an float, regardless of what was passed in.
attrdesc['type'] = float
super().__init__(attrDesc)
def __str__(self):
return str(self._value)
def GetFormatString(self):
return "Id"
def Encode(self):
fmt = self.GetFormatString()
if fmt is not None:
return struct.pack("!" + fmt, self._id, self._value)
class nSyncAttributeString(base.nSyncAttributeBase):
## Initializes the class. attrDesc should be a dictionary describing the attribute that this
# object will represent. Consult nSyncObject for the description of this dictionary.
# The attribute will be marked dirty initially, because it is dirty when created new. This will
# result in the entire nSyncObject being synced with initial values as soon as it is created,
# and this is desired behavior.
def __init__(self, **attrDesc):
# Force the type to be an float, regardless of what was passed in.
attrdesc['type'] = unicode
super().__init__(attrDesc)
def __str__(self):
return str(self._value)
def GetFormatString(self):
return "Id"
def Encode(self):
fmt = self.GetFormatString()
if fmt is not None:
return struct.pack("!" + fmt, self._id, self._value)
| 36.336634 | 101 | 0.673025 | 474 | 3,670 | 5.116034 | 0.299578 | 0.024742 | 0.040825 | 0.044536 | 0.721237 | 0.721237 | 0.721237 | 0.721237 | 0.705155 | 0.705155 | 0 | 0.003317 | 0.260763 | 3,670 | 100 | 102 | 36.7 | 0.890527 | 0.559128 | 0 | 0.763158 | 0 | 0 | 0.013522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.052632 | 0.157895 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 9 |
a0d0026406ea1fce9dec972849f0d8280eea291a | 25,157 | py | Python | Developement/main/main.py | aurora314156/MOST-AI-dialog | baf1955f5f6c01f573631c20676580f69e6fad41 | [
"MIT"
] | null | null | null | Developement/main/main.py | aurora314156/MOST-AI-dialog | baf1955f5f6c01f573631c20676580f69e6fad41 | [
"MIT"
] | null | null | null | Developement/main/main.py | aurora314156/MOST-AI-dialog | baf1955f5f6c01f573631c20676580f69e6fad41 | [
"MIT"
] | null | null | null | import sys, time, logging, json
sys.path.append('../')
from os import listdir
#from keras import backend as K
from DevelopmentModeInitial import DevelopmentModeInitial
from SanityCheck.SanityCheck import SanityCheck
#from AttentionWithGRU.AttentionWithGRU import AttentionWithGRU
# correct_answer_2 = [1,4,1,1,2,1,3,4,2,3,3,4,1,1,4,2,1,2,1,1,2,1,1,2,3,4,3,2,4,1,3,3,3,1,2,1,4,4,4,2,3,1,1,1,1,2,1,4,2,1,3,2,4,3,4,2,1,4,2,3,1,4,1,3,1,2,2,1,1,3,4,2,4,2,2,3,2,4,3,1,2,1,2,3,2,4,3,1,3,1,2,3,4,1,2,1,2,2,4,2,2,3,2,2,4,4,3,4,3,3,3,3,3,1,1,2,2,1,3,3,3,2,4,1,1,3,1,3,3,3,3,2,2,4,4,3,4,2,2,2,4,4,3,1,3,1,3,4,2,1,1,4,1,3,4,2,2,4,2,3,1,3,4,1,3,4,1,4,2,1,2,1,4,2,4,1,1,2,2,1,2,4,3,1,4,1,2,4,3,2,1,2,4,1,3,3,3,1,3,2,2,2,3,3,1,2,2,1,1,2,1,1,2,1,4,1,2,3,1,2,2,1,4,3,1,3,1,2,2,4,1,2,3,4,1,2,1,3,2,3,2,3,2,3,4,3,1,3,1,4,2,4,4,4,4,4,4,4,4,4,3,3,1,4,3,1,3,4,3,4,3,4,4,4,4,4,3,3,4,3,2,4,4,3,1,2,3,4,3,2,4,2,3,1,3,1,3,4,2,1,2,1,1,2,3,4,3,4,1,2,2,3,1,1,4,3,1,2,4,1,4,2,1,3,1,4,2,1,3,4,4,2,1,3,2,4,4,1,3,2,2,3,4,1,1,1,2,2,3,4,1,3,2,1,4,3,1,2,2,1,4,1,2,3,3,2,1,1,1,4,2,2,1,3,4,1,3,2,4,2,1,3,4,2,2,3,1,4,2,2,4,4,2,1,3,1,4,3,2,3,1,3,2,1,3,2,4,4,1,3,2,1,3,4,1,2,4,3,2,4,2,1,1,2,4,2,4,2,1,3,1,1,2,1,4,1,3,2,4,3,4,2,2,1,4,3,4,1,4,1,3,4,3,2,2,1,1,2,1,3,2,2,4,1,3,1,2,3,1,2,3,1,4,2,2,4,3,1,1,4,2,4,4,2,3,1,4,1,3,1,3,1,2,3,2,1,1,2,4,3,4,2,1,1,4,2,1,2,1,3,1,1,2,3,4,2,2,4,2,4,3,2,3,3,3,4,1,1,1,2,3,1,4,3,4,1,2,2,4,2,3,4,4,1,1,3,3,3,1,3,2,3,4,2,3,1,1,3,4,2,1,3,3,2,4,1,4,3,2,1,3,4,3,4,3,1,1,1,1,4,1,1,4,4,2,1,2,3,2,1,4,3,1,1,1,1,4,3,2,1,3,1,1,3,1,3,3,1,1,1,3,1,4,1,1,3,1,2,4,1,1,1,3,1,2,1,4,4,1,1,1,1,1,1,1,1,3,1,2,1,2,3,2,3,4,1,4,2,1,2,1,2,3,2,2,3,3,4,1,3,3,4,2,2,4,3,4,1,2,3,2,4,2,3,4,2,3,4,2,3,4,1,1,4,4,1,2,3,4,3,1,3,3,2,1,3,4,2,3,2,1,3,2,3,1,3,3,4,4,2,4,2,2,1,3,2,2,2,3,1,4,2,1,3,2,4,4,3,4,3,4,1,2,1,4,2,1,2,1,2,1,1,1,1,1,4,2,4,1,3,1,4,1,2,4,2,2,1,2,2,4,3,4,4,1,4,2,1,3,4,1,2,2,2,4,3,2,2,3,2,1,3,1,1,1,2,3,3,2,1,2,3,1,1,2,3,3,2,2,4,2,2,4,3,4,2,2,1,3,2,2,2,1,1,4,2,1,1,3,1,2,4,4,4,3,1,4,2,2,4,1,2,2,3,3,3,3,1,1,1,1,1,1,2,3,2,1,1,3,2,2,3,2,1,3,2,1,1,1,1,3,1,1,1,1,4,1,3,2,3,1,3,1,1,4,1,3,2,1,1,1,4,4,4,1,1,4,3,1,1,2,2,4,4,1,4,1,4,3,4,3,4,2,2,2,3,3,1,2,1,2,3,1,4,4,3,3,1,4,4,4,1,1,2,1,4,2,1,2,3,4,4,1,1,2,2,1,3,3,4,4,4,3,3,3,1,1,3,3,3,1,1,2,2,3,3,3,2,2,4,4,4,4,2,1,1,1,1,2,4,1,1,2,2,4,3,3,2,2,1,1,1,3,3,1,1,1,4,4,2,1,1,4,1,4,1,4,2,4,2,1,2,4,1,4,2,4,3,4,2,1,2,4,3,2,2,1,1,4,2,1,1,1,3,1,2,3,1,4,1,2,2,3,1,4,1,4,2,2,1,3,2,2,1,1,2,1,2,2,1,2,4,3,1,2,1,2,4,1,2,3,1,3,3,1,2,4,3,1,4,3,3,4,2,1,4,2,4,2,3,1,4,4,1,3,1,2,4,4,4,4,1,2,1,2,2,3,2,2,2,3,1,3,2,2,3,2,3,3,3,1,3,4,3,4,2,1,3,4,2,4,1,4,4,2,4,4,4,3,1,4,2,3,3,2,2,4,3,2,3,4,4,3,3,3,4,2,2,1,2,3,1,2,3,1,3,4,2,4,4,3,4,1,3,2,2,2,3,4,2,2,2,2,3,4,1,3,2,1,4,1,4,4,2,4,4,1,3,2,3,3,3,1,2,4,4,2,3,4,2,1,1,3,1,2,2,4,2,3,3,1,1,1,3,4,2,3,1,2,1,2,4,4,4,2,1,2,1,3,4,3,1,3,3,2,1,4,3,2,3,3,2,4,4,3,1,2,3,4,2,4,1,2,1]
# correct_answer_3 = [4,1,3,4,3,2,3,2,1,1,3,2,3,3,3,4,2,2,3,2,4,1,2,4,2,3,1,3,2,3,4,3,4,2,1,4,2,2,3,2,3,1,4,3,4,3,4,1,2,3,2,1,4,1,2,3,3,1,2,1,1,3,2,3,2,3,1,3,4,4,1,3,3,2,4,2,1,4,1,2,3,2,1,3,2,3,1,3,1,2,4,3,4,4,2,2,1,4,2,1,1,3,4,1,1,1,2,1,3,2,4,1,3,2,2,2,2,3,3,2,4,1,4,2,2,3,1,1,1,3,1,1,4,1,3,2,3,1,1,4,2,1,2,1,3,1,3,1,1,1,2,2,2,3,1,2,3,1,3,4,3,3,2,1,4,1,2,4,2,2,1,4,1,2,3,1,4,2,2,3,3,2,1,2,4,3,4,1,1,1,4,4,1,4,3,3,1,4,4,3,1,1,1,4,4,4,3,4,1,4,1,3,2,3,2,4,2,2,2,2,1,1,1,2,3,1,2,2,3,1,3,3,1,3,1,4,2,2,1,2,3,2,1,3,1,4,2,3,2,4,1,1,3,4,3,2,3,1,2,1,4,2,3,1,3,2,2,4,2,3,1,4,4,2,3,3,3,2,1,4,1,1,2,2,3,3,3,4,4,4,1,3,3,2,4,4,4,3,1,3,1,4,2,3,4,2,4,1,3,1,2,4,3,1,3,2,4,3,4,3,2,1,2,3,2,2,3,3,1,3,3,1,4,4,1,3,4,1,4,3,2,4,3,3,1,2,1,3,2,1,3,1,2,3,2,1,3,4,3,2,2,1,4,2,3,3,3,2,4,2,2,3,1,1,4,3,1,2,3,1,3,1,4,3,3,1,1,2,1,3,2,3,2,3,2,1,2,3,4,1,2,2,1,2,3,2,1,1,1,3,3,4,3,2,3,1,3,4,1,4,3,4,2,3,3,3,3,4,2,4,3,4,4,1,3,4,1,3,1,2,2,1,2,1,1,4,1,3,2,3,4,1,2,3,4,4,3,2,2,2,1,4,4,3,3,2,2,1,4,3,2,1,4,4,3,1,4,4,1,4,4,4,3,1,4,2,2,3,4,3,2,2,4,2,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,4,4,4,4,4,4,4,2,2,2,3,3,3,3,2,1,2,4,1,3,4,4,3,3,4,1,3,2,3,2,4,3,2,1,1,4,2,3,2,2,4,1,3,2,3,2,1,4,3,1,3,3,4,4,2,1,2,3,4,3,3,3,1,3,4,2,1,1,3,2,4,2,3,1,2,4,1,1,3,2,2,4,1,2,1,3,2,4,1,2,2,2,3,2,2,3,1,3,2,3,2,2,3,1,1,2,3,2,3,1,2,3,2,1,3,1,4,3,2,3,4,2,1,4,1,4,3,1,4,2,1,2,4,1,4,2,3,1,2,1,1,2,4,4,1,3,3,4,2,4,2,2,1,3,3,1,4,3,2,4,2,2,2,3,2,4,3,4,1,3,4,2,2,3,4,1,3,2,1,4,1,1,2,4,2,1,3,1,2,1,1,2,1,3,1,3,1,1,2,2,1,1,4,4,2,4,2,1,3,4,3,4,4,2,4,1,4,3,4,4,4,2,4,4,3,1,1,2,4,4,3,4,3,4,3,2,2,3,2,4,2,4,3,1,3,4,3,4,4,2,3,3,1,3,2,1,2,2,3,4,2,1,4,3,2,4,2,3,2,2,3,1,2,3,2,3,4,3,2,3,3,2,4,2,3,4,2,3,2,1,3,4,3,3,2,1,2,4,1,3,2,2,1,3,2,4,3,1,4,2,4,2,4,2,1,1,4,2,1,3,2,3,1,4,2,2,1,2,3,1,3,1,3,1,3,2,1,4,4,1,2,3,1,3,1,2,3,1,2,4,3,1,2,1,3,1,3,3,1,3,3,1,1,3,4,1,3,2,4,4,2,4,3,4,1,3,2,1,4,3,2,2,1,2,2,2,1,1,2,1,1,2,3,2,1,1,2,2,2,2,1,3,1,3,2,3,1,1,2,1,3,1,1,1,1,1,3,4,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,3,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,4,2,1,2,1,1,1,1,3,1,1,2,4,2,1,1,2,1,1,3,2,3,1,1,1,3,1,2,2,4,1,1,1,1,1,2,4,3,1,3,2,3,2,1,2,3,4,3,2,3,3,2,1,2,3,1,1,2,1,3,1,2,2,4,3,1,1,1,1,2,1,2,1,2,1,3,1,4,1,3,1,4,3,2,1,3,1,1,3,2,2,1,4,3,2,2,3,1,3,4,3,2,2,3,2,3,3,2,1,3,4,4,2,2,2,2,2,2,2,3,4,2,1,2,3,2,4,3,3,3,3,4,2,2,2,3,3,3,2,2,3,3,2,1,4,4,3,2,3,3,2,4,2,4,3,2,3,3,3,4,4,2,3,1,1,3,2,2,2,4,3,4,2,3,2,1,2,3,4,2,2,4,4,2,2,3,2,2,2,2,3,4,3,3,1,2,3,2,2,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,4,3,4,4,4,3,4,4,4,3,4,4,4,1,1,4,4,1,3,3,4,4,4,1,3,4,4,1,4,3,1,3,4,4,1,1,4,1,4,3,4,3,1,4,4,3,4,4,3,1,2,1,4,1,4,2,3,2,1,3,4,2,3,2,2,3,2,4,4,1,2,2,3,1,2,3,1,4,3,1,4,3,3,2,2,3,4,2,4,1,1,2,2,3,2,4,3,3,4,1,2,3,2,3,1,4,3,3,1,2,4,1,3,2,2,4,3,2,4,4,3,2,1,3,2,4,2,1,4,2,1,4,3,4,3,2,1,4,2,3,3,2,1,3,4,3,2,3,1,4,4,3,2,3,4,3,3,2,1,4,3,1,2,1,3,4,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,2,2,1,1,3,1,2,2,2,1,2,3,4,2,2,1,1,2,2,3,1,1,1,4,1,3,3,2,2,1,2,4,3,4,3,2,4,1,1,3,1,4,2,4,3,1,3,1,1,4,2,3,2,1,3,2,3,4,3,1,4,4,2,2,4,3,1,2,1,1,2,4,1,3,1,4,2,2,1,2,2,3,3,2,4,2,2,1]
# correct_answer_4 = [3,4,1,1,1,4,1,1,1,1,1,1,1,3,3,4,1,4,3,4,3,1,1,1,1,1,1,3,3,3,3,3,3,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4,4,1,1,2,3,4,1,2,3,1,2,3,4,1,1,2,1,2,4,3,4,3,1,4,1,1,4,4,4,4,3,1,4,1,4,3,1,1,1,3,3,4,4,3,4,4,1,1,1,3,3,4,3,1,1,4,4,4,1,4,4,1,3,4,4,4,1,3,1,1,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1,3,3,4,3,3,4,1,3,3,4,3,4,1,3,4,1,4,3,4,4,4,3,4,1,4,1,4,3,4,1,4,4,4,4,3,4,2,3,3,4,1,2,3,4,1,3,4,2,2,3,3,2,3,3,2,2,2,4,1,4,4,4,3,2,3,1,1,4,2,3,1,4,4,3,2,3,4,2,3,4,2,1,4,2,2,2,1,1,2,3,2,2,3,4,3,3,1,3,3,1,2,2,2,1,2,3,3,1,1,2,3,3,1,2,3,1,4,2,3,1,3,3,4,2,4,1,4,1,2,1,1,1,4,4,1,4,3,1,3,4,2,3,3,2,4,1,2,4,1,2,3,4,1,2,3,1,3,4,1,2,3,4,2,3,2,4,1,1,2,3,4,3,3,4,1,1,2,2,4,1,3,4,1,1,2,4,3,1,1,2,1,2,1,4,1,4,4,2,1,4,3,2,3,2,2,4,1,3,4,4,1,2,3,4,2,3,1,4,2,2,4,2,3,4,4,2,3,1,1,4,2,2,3,4,1,3,4,4,1,1,1,2,2,3,3,3,3,3,3,3,1,2,3,4,1,2,1,1,2,4,1,2,3,4,3,4,1,2,3,4,1,2,3,1,2,3,4,1,4,1,2,3,4,2,3,3,3,3,1,2,2,3,2,2,2,3,4,1,2,4,4,1,2,3,1,2,3,4,2,3,4,3,4,2,4,2,1,4,2,3,4,4,2,3,1,2,4,1,1,1,2,3,4,2,3,1,3,4,4,1,2,3,4,3,3,2,3,4,3,1,1,2,3,2,4,1,1,1,2,4,3,1,1,2,4,1,1,3,1,2,3,4,4,1,3,1,2,3,2,2,3,4,1,2,3,4,1,2,3,4,1,2,4,1,2,3,4,1,2,1,3,4,1,4,1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4,1,2,4,1,2,3,4,1,2,3,4,1,2,3,4,2,1,2,4,4,3,3,3,2,3,2,4,1,1,2,3,1,2,1,2,3,3,1,3,2,1,2,2,3,1,3,4,3,3,4,3,3,1,3,3,1,2,2,2,2,4,4,4,4,4,4,1,1,2,2,3,3,4,4,2,4,2,3,3,3,4,4,1,2,3,1,2,3,3,3,1,3,4,2,2,4,4,2,2,3,4,4,4,1,1,4,4,3,1,4,3,4,4,1,2,1,2,3,4,2,2,2,3,1,2,3,2,3,2,2,2,4,4,1,3,4,1,2,4,4,3,1,2,1,2,3,3,3,2,1,2,4,1,4,2,3,1,3,1,2,3,4,2,2,3,4,2,2,3,3,2,3,1,4,1,2,3,4,1,1,4,1,2,3,4,3,2,3,3,3,3,1,2,1,3,1,3,4,1,2,4,1,2,1,1,2,3,1,2,2,1,2,3,2,2,1,3,2,3,1,2,3,1,2,2,1,4,2,4,1,4,3,3,1,1,3,1,2,1,4,1,2,2,2,2,2,4,4,4,4,1,2,3,4,3,3,1,4,2,3,4,1,2,3,4,1,1,1,2,3,3,3,1,1,2,3,4,2,3,4,2,2,4,1,2,2,2,4,4,1,1,1,1,2,2,2,2,2,2,4,4,4,4,4,4,4,4,4,4,4,1,4,4,4,2,3,2,3,1,1,2,2,2,4,4,4,4,2,3,1,2,3,3,2,2,3,1,2,3,1,2,4,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,4,4,1,3,3,3,4,3,1,1,2,4,3,4,1,1,2,2,2,2,3,3,3,3,4,4,4,1,4,4,2,2,2,2,2,2,4,4,4,4,4,4,4,4,4,2,2,2,3,1,2,3,4,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,1,1,1,1,2,2,4,4,1,4,1,4,2,3,1,1,3,4,2,4,2,3,4,1,1,2,3,4,2,3,4,3,3,2,3,2,1,2,3,1,2,3,4,1,2,3,4,1,2,2,3,2,4,4,1,1,4,3,3,3,2,2,4,3,3,1,2,3,4,1,2,3,4,1,3,2,3,2,3,2,3,4,3,2,3,4,2,1,1,3,1,2,4,2,3,4,1,3,3,4,1,3,3,1,3,2,4,1,4,1,2,2,2,4,1,4,2,1,4,3,2,3,1,3,4,4,3,1,4,1,4,3,3,4,3,3,4,1,1,3,4,4,1,1,2,4,1,2,3,4,1,3,2,3,3,4,2,2,4,2,1,1,2,3,4,2,1,2,3,1,4,4,1,2,1,2,3,1,2,2,3,4,2,1,1,2,2,3,4,1,2,3,1,3,4,3,1,1,3,3,3,3,1,2,1,2,2,3,1,3,3,4,4,4,1,2,2,2,2,3,4,2,3,3,3,4,2,3,4,1,1,2,4,1,3,3,3,2,2,3,1,2,3,4,1,2,3,4,1,2,1,2,4,2,1,3,4,2,4,1,2,3,3,1,2,4,2,3,4,1,2,1,1,4,1,1,1,2,2,3,1,1,1,2,3,1,4,1,3,2,4,4,2,2,3,3,4,1,2,2,4,2,2,3,1,2,1,1,1,1,1,2,2,2,3,3,3,3,3,1,2,2,4,2,1,2,1,2,3,3,3,2,3,3,1,1,1,2,2,2,3,3,1,1,2,2,3,1,1,1,4,1,2,1,2,4,1,2,1,2,3,3,2,3,1,2,3,4,2,2,3,4,1,2,2,2,1,2,3,2,3,3,2,4,2,2,1,3,2,3,4,2,1,2,2,1,1,2,1,2,3,2,4,1,2,2,3,2,3,1,2,4,1,2,3,3,2,1,2,3,4,2,3,4,1,2,3,4,1,1,4,1,4,1,3,3,3,4,1,2,3,1,3,1,3,1,2,3,4,1,2,3,4,1,2,1,2,4,2,3,4,1,1,2,4,1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,1,3,2,4]
# correct_answer_5 = [2,2,4,4,1,2,3,1,2,1,3,2,2,2,1,3,1,3,2,2,1,2,2,3,2,3,3,1,1,1,1,1,2,3,1,2,3,1,1,2,3,1,3,1,1,1,4,3,1,3,3,1,2,3,3,3,3,1,1,3,3,1,2,2,3,3,4,4,2,3,1,4,1,1,1,2,3,2,1,3,3,3,3,1,2,1,2,3,3,1,3,2,2,3,1,3,2,1,1,3,1,1,2,1,2,2,2,2,2,2,3,1,1,3,1,1,1,4,1,3,2,3,1,2,1,3,2,3,3,2,1,3,2,1,4,1,3,2,1,3,2,2,1,4,3,1,2,3,3,2,2,3,4,3,2,2,3,4,1,2,3,3,2,3,2,3,4,1,3,3,3,3,3,2,4,1,3,3,2,2,1,1,4,3,4,4,3,3,2,1,1,1,2,2,3,4,2,3,2,3,1,1,2,4,4,4,4,2,3,3,1,4,4,3,4,1,1,2,1,2,1,1,4,1,4,2,1,1,2,2,1,2,1,2,4,3,2,3,4,3,2,2,4,3,2,1,1,1,2,3,4,1,3,2,4,3,2,3,3,4,2,1,3,3,3,2,2,4,3,2,2,3,1,4,3,4,1,3,1,2,3,4,2,3,4,3,1,1,2,1,4,4,3,3,2,2,3,2,1,2,3,1,1,3,3,3,1,2,3,3,2,1,4,2,2,1,1,1,4,4,2,4,1,3,3,2,2,2,2,2,4,3,2,1,2,2,2,1,2,3,3,1,2,4,1,2,1,2,1,2,4,3,3,1,4,2,3,3,2,1,2,1,4,3,2,1,2,4,2,2,4,3,3,1,2,1,1,1,2,3,3,4,2,3,2,1,1,4,3,1,4,1,4,3,2,3,4,2,3,1,2,1,2,2,2,1,3,2,3,3,2,2,3,4,3,1,3,2,2,4,1,2,4,4,2,4,3,3,4,1,3,1,4,2,4,1,2,4,1,3,4,1,3,3,2,4,1,2,1,3,2,4,3,1,1,2,3,3,1,2,2,3,3,2,4,4,1,2,1,3,4,3,2,4,1,1,3,2,4,1,2,2,1,4,3,3,2,4,1,1,2,3,4,1,2,1,4,1,3,4,2,1,2,3,4,1,3,1,2,4,2,1,3,2,4,2,3,4,1,1,3,4,2,1,2,1,4,2,1,3,4,3,2,4,1,1,4,3,2,2,3,4,4,3,1,1,4,3,2,4,1,1,2,3,1,3,4,3,4,2,3,3,4,2,1,1,2,2,3,2,4,4,2,3,1,1,1,3,2,1,3,3,4,4,3,2,3,4,1,4,1,3,2,1,4,2,3,1,2,4,4,1,2,1,2,3,4,3,2,4,2,3,1,3,4,2,3,1,1,4,2,3,1,2,1,2,3,4,4,3,3,3,1,4,2,3,2,3,3,1,2,4,3,4,1,2,1,2,1,2,3,2,1,2,3,4,4,1,3,2,3,1,4,2,4,3,1,4,2,3,3,2,4,2,1,4,3,2,3,4,1,1,2,4,3,1,4,2,3,1,4,3,3,1,4,2,3,4,4,2,4,3,1,4,3,2,4,2,3,2,4,1,3,4,2,3,1,4,1,2,4,4,2,4,3,4,1,2,2,3,4,1,4,2,4,1,3,2,1,2,1,4,1,4,3,2,1,3,4,3,4,2,3,3,2,3,1,2,4,1,3,1,2,3,4,1,2,3,4,1,1,4,3,2,1,1,4,2,3,3,4,1,2,1,3,4,4,2,3,1,3,4,3,4,1,2,3,4,1,2,3,1,4,1,4,1,2,3,2,1,2,3,4,2,1,3,3,1,4,2,3,4,2,4,4,4,1,2,3,4,3,1,2,4,1,4,3,2,2,4,3,2,1,2,4,4,4,2,3,3,1,1,4,2,2,4,3,1,3,1,1,1,1,1,1,4,2,3,2,1,3,4,2,1,2,3,3,1,2,2,1,3,4,2,3,1,4,2,2,3,3,4,3,1,3,4,2,1,4,2,4,2,4,2,1,3,4,3,4,3,1,4,3,2,2,3,1,2,1,4,1,4,3,3,2,4,3,3,2,3,1,2,4,4,3,4,4,3,4,4,3,2,4,1,1,4,1,2,1,1,1,1,4,4,1,1,1,1,4,1,1,1,1,1,4,1,1,4,4,3,4,4,4,4,2,4,2,2,3,4,4,3,1,1,1,1,3,1,2,4,4,1,1,1,1,1,4,3,2,1,1,4,3,1,3,2,2,4,3,3,1,4,4,3,3,3,3,3,4,1,3,1,4,4,4,2,3,3,1,3,3,1,1,4,1,3,3,1,3,2,3,2,4,1,1,1,1,4,1,1,4,3,4,2,4,1,1,3,2,4,4,3,4,4,1,2,4,1,2,3,4,1,2,3,2,1,4,4,1,2,3,3,4,1,4,4,1,1,4,2,2,4,1,4,1,1,1,1,3,2,4,4,1,3,4,1,1,4,3,1,4,3,4,2,4,1,2,2,2,1,1,3,4,2,4,1,4,3,2,4,2,4,3,2,1,2,1,2,4,1,1,3,3,2,2,2,1,3,1,1,2,4,2,2,4,3,2,2,4,1,2,4,3,1,2,1,4,4,3,2,1,3,3,4,4,1,3,2,3,2,2,4,4,1,4,2,3,4,4,2,2,4,4,4,4,2,1,3,1,2,1,3,4,2,2,3,3,2,1,4,3,2,4,1,4,1,1,2,3,2,1,3,2,4,2,4,2,2,2,3,1,4,1,2,2,1,3,4,1,3,2,1,3,1,2,3,4,2,1,2,4,1,3,4,2,2,1,2,3,4,2,1,2,1,4,4,2,3,3,1,2,2,1,2,2,1,2,3,1,2,2,4,3,2,2,3,3,2,2,3,2,4,1,3,4,1,4,1,1,3,1,4,2,3,2,3,3,1,2,1,3,3,4,4,2,3,1,1,3,3,1,2,4,2,1,2,4,1,3,2,3,2,4,2,4,1,2,3,1,4,4,3,1,4,3,2,1,3,3,4,4,4,2,3,2,3,2,3,3,1,1,3,3,4,2,2,3,3,1,3,4,4,3,1,1,2,4,3,1,1,1,2,4,3,3,3,4,3,2,3,2,2,4,2,1,3,1,3,4,3,1,1,2,4,2,3,3,1,2,3,1,1,3,3,3,4,3,2,3,2,1,3,4,3,4,4,2,3,1,2,4,2,3,3,2,4,1,3,4,3,1,3,4,4,4,4,4,2,1,4,4,2,2,1,4,2,1,4,4,4,3,2,4,2,4,4,1,1,3,3,2,2,1,1,1,4,1,3,2,3,4,3,4,3,1,2,2,1,3,4,4,1,1,2,3,4,4,2,4,2]
# correct_answer_6 = [1,1,2,2,2,3,1,4,2,1,1,3,3,2,3,2,3,1,3,2,1,4,2,4,2,2,2,4,2,2,4,1,3,2,2,3,1,2,3,2,1,3,1,1,3,4,1,4,2,2,3,3,3,2,2,3,4,2,4,3,3,3,1,4,1,3,3,3,1,4,2,2,4,3,3,1,3,1,4,4,2,3,4,3,4,1,4,1,1,2,1,3,4,1,3,1,1,1,2,2,2,1,4,3,2,1,3,1,3,4,4,1,3,1,3,2,4,4,1,2,3,2,3,3,2,4,2,3,1,2,1,3,1,3,1,4,2,2,1,1,2,4,1,3,1,3,1,2,2,1,3,4,2,1,2,4,2,2,2,4,1,2,3,3,1,3,4,1,3,4,3,1,3,4,4,2,3,4,3,1,4,2,2,4,1,1,2,2,2,4,4,2,3,3,1,4,3,2,4,2,2,3,1,3,4,2,1,4,2,4,1,3,2,4,2,2,4,3,2,4,1,4,2,3,1,2,4,3,2,1,3,4,3,4,2,4,2,2,4,2,3,1,1,4,4,2,3,3,2,4,1,2,2,1,3,3,3,4,1,2,2,3,2,3,3,2,4,2,3,1,3,3,4,1,2,1,4,4,2,4,1,3,2,3,4,1,4,3,1,2,2,1,4,3,4,3,4,1,4,3,4,1,2,3,4,3,1,3,2,2,2,4,4,1,2,3,1,2,4,2,3,3,2,4,4,1,4,1,3,3,4,2,4,1,3,2,1,2,2,2,1,1,3,2,2,4,3,2,4,4,3,1,2,4,4,1,1,3,2,4,2,3,3,1,3,2,3,2,1,2,2,4,4,1,3,3,2,3,3,4,1,3,1,2,1,3,4,3,3,2,4,4,4,1,3,4,4,2,1,3,2,4,2,3,1,4,1,2,3,3,2,4,3,1,2,3,1,2,1,2,1,2,4,4,2,2,3,2,4,1,2,1,2,3,4,1,1,1,3,4,4,4,1,3,1,2,2,4,1,2,2,4,2,4,2,4,1,1,3,2,3,1,4,2,1,1,4,4,3,2,1,4,4,3,3,4,3,1,4,1,2,4,2,2,2,2,3,4,1,4,1,3,4,3,4,3,4,2,1,3,4,3,4,1,1,4,4,1,4,2,2,4,4,2,3,4,3,3,3,4,3,2,1,1,3,1,4,1,2,4,1,2,3,3,1,2,2,3,1,4,3,3,4,4,3,2,4,4,2,1,4,3,4,1,2,3,3,1,2,4,3,4,2,3,1,3,2,4,4,3,3,3,4,2,3,1,2,4,2,1,3,4,2,3,2,2,1,2,4,2,4,2,1,3,4,4,2,2,4,4,3,2,1,3,4,3,3,3,1,4,1,2,2,2,2,3,4,2,1,3,2,4,3,1,1,1,2,4,4,2,1,4,4,2,1,1,2,3,2,3,2,4,4,4,1,4,3,3,1,3,3,3,3,1,4,2,3,2,4,2,2,4,1,4,2,1,4,2,1,3,1,1,3,1,2,4,2,2,2,3,2,3,4,1,2,1,3,2,4,4,1,4,3,1,3,1,4,2,3,3,2,4,2,3,2,3,3,3,1,4,3,4,4,3,4,1,4,2,4,1,3,1,2,3,2,3,2,1,4,2,4,1,3,4,4,1,1,4,3,1,2,1,4,1,3,2,3,3,3,2,1,4,3,4,2,1,1,2,2,4,4,1,3,3,1,1,1,4,4,3,2,2,3,4,1,3,4,1,1,1,3,3,2,3,2,3,1,3,2,1,1,1,2,4,1,4,2,3,3,3,4,4,1,1,4,2,1,4,3,1,2,3,4,4,2,2,1,2,4,2,1,3,4,2,3,4,4,4,1,2,1,2,4,4,4,1,3,2,1,4,4,4,3,1,3,2,2,2,2,2,4,4,3,1,2,2,2,4,3,3,2,4,2,1,4,1,3,4,1,1,1,3,2,3,4,4,1,2,1,3,4,2,1,3,1,3,3,3,1,1,2,2,2,3,1,3,4,3,3,3,4,4,2,3,1,4,4,4,1,2,4,3,3,3,1,4,4,1,2,1,4,1,3,2,2,1,1,3,3,2,1,4,4,3,4,2,4,1,1,3,1,4,2,4,2,1,1,4,1,3,4,4,2,2,1,1,2,4,1,2,2,2,3,1,3,2,3,3,2,2,1,1,4,1,1,3,3,3,2,1,1,1,1,2,3,1,4,4,3,4,1,2,2,4,2,4,4,1,3,2,4,3,1,3,1,4,2,3,4,2,3,1,4,4,2,3,1,4,3,1,2,4,2,1,3,2,2,1,4,3,3,2,3,4,2,1,2,3,2,4,2,1,3,1,2,4,3,4,2,3,1,2,4,1,3,2,1,4,2,4,2,3,1,2,1,4,3,3,2,4,3,1,2,4,3,1,3,4,2,3,1,4,3,3,1,4,2,4,3,4,2,1,4,3,2,1,3,2,4,1,2,3,4,2,4,3,4,2,3,4,2,1,4,3,2,1,3,3,1,4,1,2,1,1,3,2,1,3,2,2,4,4,2,4,3,2,3,3,4,2,1,4,3,2,4,2,4,3,1,4,2,3,1,2,3,1,4,1,3,4,1,2,3,4,1,3,2,2,4,4,1,3,2,4,4,2,3,4,2,1,4,1,3,4,3,2,1,4,2,1,3,1,3,4,4,3,1,4,4,4,3,3,2,1,4,1,1,2,3,2,4,2,3,1,4,1,2,3,1,2,3,4,2,3,4,2,1,3,4,2,1,3,1,4,3,2,2,3,4,1,3,1,3,2,3,4,3,3,1,4,2,1,4,2,3,2,1,3,4,1,2,2,1,3,4,2,1,2,1,2,3,4,1,2,3,4,2,1,3,4,2,3,2,3,4,1,2,1,1,4,2,1,2,4,1,3,2,4,1,2,3,4,1,2,3,1,2,4,2,1,4,4,3,1,2,4,2,1,2,4,1,1,4,3,1,4,3,2,1,3,4,3,1,4,2,4,1,2,3,4,2,3,1,2,4,3,2,3,1,1,3,4,2,1,3,1,4,1,3,2,3,4,4,2,3,4,1,3,1,2,3,1,2,4,4,2,1,3,2,1,3,2,1,4,1,2,4,1,3,1,3,1,4,1,2,4,3,4,1,4,4,2,4,3,4,2,4,1,3,2,1,2,3,4,1,2,1,2,3,1,3,3,1,4,2,2,1,3,1,2,3,4,2,1,3,4,1,2,3,4,1,2,3,4,1,2,1,3,2,1,3,4,1,2,3,1,2,3,4,1,2,3,1,2,4,1,3,1,3,4,1,2,3,4,3,1,2,1,3,4,2,4,1,3,4,2,1,3,4,4,1,4,2,3,4,2,1,3,4,4]
# CWT = [2, 3, 4, 1, 3, 4, 1, 2, 3, 1, 4, 3, 2, 3, 3, 3, 1, 3, 2, 1, 2, 2, 3, 3, 2, 1, 3, 2, 4, 4, 1, 4, 2, 1, 2, 3, 1, 1, 3, 2, 3, 3, 4, 4, 2, 3, 1, 3, 2, 3, 3, 4, 1, 2, 1, 4, 4, 3, 4, 1, 3, 3, 1, 3, 1, 1, 2, 3, 4, 2, 4, 3, 1, 2, 2, 4, 4, 4, 4, 4, 2, 4, 2, 4, 3, 3, 4, 3, 1, 1, 2, 1, 4, 4, 4, 1, 2, 1, 4, 4, 1, 2, 3, 4, 1, 3, 2, 3, 4, 1, 2, 1, 2, 3, 3, 1, 1, 2, 4, 3, 3, 4, 2, 2, 1, 4, 1, 3, 2, 4, 3, 2, 2, 4, 3, 1, 2, 1, 3, 4, 3, 1, 3, 1, 4, 1, 2, 4, 2, 3, 4, 4, 3, 1, 4, 2, 1, 4, 4, 3, 4, 2, 1, 1, 3, 3, 3, 4, 1, 1, 3, 4, 2, 4, 2, 2, 3, 3, 2, 2, 1, 4, 4, 2, 2, 3, 4, 4, 2, 1, 1, 3, 3, 4, 1, 3, 1, 4, 3, 1, 4, 4, 1, 2, 3, 4, 1, 4, 3, 3, 3, 1, 2, 1, 1, 3, 1, 3, 2, 4, 3, 1, 4, 4, 1, 1, 4, 1, 3, 2, 2, 1, 3, 3, 4, 1, 4, 2, 3, 4, 1, 1, 3, 3, 4, 1, 4, 1, 3, 3, 1, 4, 4, 2, 4, 1, 1, 2, 4, 2, 4, 3, 2, 4, 3, 2, 1, 1, 3, 3, 4, 2, 1, 1, 2, 3, 4, 2, 2, 2, 4, 4, 3, 2, 4, 2, 3, 2, 1, 2, 3, 4, 1, 3, 1, 4, 2, 1, 3, 4, 4, 3, 3, 2, 3, 2, 2, 1, 4, 3, 3, 4, 3, 1, 1, 1, 4, 1, 3, 3, 4, 2, 1, 3, 2, 1, 2, 2, 3, 4, 1, 3, 4, 1, 4, 2, 4, 2, 1, 3, 4, 1, 1, 2, 2, 4, 3, 4, 2, 3, 2, 1, 4, 3, 4, 1, 1, 3, 2, 2, 3, 2, 1, 1, 4, 4, 1, 2, 3, 2, 4, 4, 3, 1, 1, 4, 4, 1, 2, 3, 2, 1, 3, 4, 2, 2, 3, 2, 3, 2, 4, 2, 3,1]
# def AttentionMethod(CQADataSet, tqn):
# # model parameters
# gru_units, model_fit_epochs, hops = [10,50,100,200], [2,4], [2,4,6]
# # correct answer
# correct_answer = [1,1,2,2,2,3,1,4,2,1,1,3,3,2,3,2,3,1,3,2,1,4,2,4,2,2,2,4,2,2,4,1,3,2,2,3,1,2,3,2,1,3,1,1,3,4,1,4,2,2,3,3,3,2,2,3,4,2,4,3,3,3,1,4,1,3,3,3,1,4,2,2,4,3,3,1,3,1,4,4,2,3,4,3,4,1,4,1,1,2,1,3,4,1,3,1,1,1,2,2,2,1,4,3,2,1,3,1,3,4,4,1,3,1,3,2,4,4,1,2,3,2,3,3,2,4,2,3,1,2,1,3,1,3,1,4,2,2,1,1,2,4,1,3,1,3,1,2,2,1,3,4,2,1,2,4,2,2,2,4,1,2,3,3,1,3,4,1,3,4,3,1,3,4,4,2,3,4,3,1,4,2,2,4,1,1,2,2,2,4,4,2,3,3,1,4,3,2,4,2,2,3,1,3,4,2,1,4,2,4,1,3,2,4,2,2,4,3,2,4,1,4,2,3,1,2,4,3,2,1,3,4,3,4,2,4,2,2,4,2,3,1,1,4,4,2,3,3,2,4,1,2,2,1,3,3,3,4,1,2,2,3,2,3,3,2,4,2,3,1,3,3,4,1,2,1,4,4,2,4,1,3,2,3,4,1,4,3,1,2,2,1,4,3,4,3,4,1,4,3,4,1,2,3,4,3,1,3,2,2,2,4,4,1,2,3,1,2,4,2,3,3,2,4,4,1,4,1,3,3,4,2,4,1,3,2,1,2,2,2,1,1,3,2,2,4,3,2,4,4,3,1,2,4,4,1,1,3,2,4,2,3,3,1,3,2,3,2,1,2,2,4,4,1,3,3,2,3,3,4,1,3,1,2,1,3,4,3,3,2,4,4,4,1,3,4,4,2,1,3,2,4,2,3,1,4,1,2,3,3,2,4,3,1,2,3,1,2,1,2,1,2,4,4,2,2,3,2,4,1,2,1,2,3,4,1,1,1,3,4,4,4,1,3,1,2,2,4,1,2,2,4,2,4,2,4,1,1,3,2,3,1,4,2,1,1,4,4,3,2,1,4,4,3,3,4,3,1,4,1,2,4,2,2,2,2,3,4,1,4,1,3,4,3,4,3,4,2,1,3,4,3,4,1,1,4,4,1,4,2,2,4,4,2,3,4,3,3,3,4,3,2,1,1,3,1,4,1,2,4,1,2,3,3,1,2,2,3,1,4,3,3,4,4,3,2,4,4,2,1,4,3,4,1,2,3,3,1,2,4,3,4,2,3,1,3,2,4,4,3,3,3,4,2,3,1,2,4,2,1,3,4,2,3,2,2,1,2,4,2,4,2,1,3,4,4,2,2,4,4,3,2,1,3,4,3,3,3,1,4,1,2,2,2,2,3,4,2,1,3,2,4,3,1,1,1,2,4,4,2,1,4,4,2,1,1,2,3,2,3,2,4,4,4,1,4,3,3,1,3,3,3,3,1,4,2,3,2,4,2,2,4,1,4,2,1,4,2,1,3,1,1,3,1,2,4,2,2,2,3,2,3,4,1,2,1,3,2,4,4,1,4,3,1,3,1,4,2,3,3,2,4,2,3,2,3,3,3,1,4,3,4,4,3,4,1,4,2,4,1,3,1,2,3,2,3,2,1,4,2,4,1,3,4,4,1,1,4,3,1,2,1,4,1,3,2,3,3,3,2,1,4,3,4,2,1,1,2,2,4,4,1,3,3,1,1,1,4,4,3,2,2,3,4,1,3,4,1,1,1,3,3,2,3,2,3,1,3,2,1,1,1,2,4,1,4,2,3,3,3,4,4,1,1,4,2,1,4,3,1,2,3,4,4,2,2,1,2,4,2,1,3,4,2,3,4,4,4,1,2,1,2,4,4,4,1,3,2,1,4,4,4,3,1,3,2,2,2,2,2,4,4,3,1,2,2,2,4,3,3,2,4,2,1,4,1,3,4,1,1,1,3,2,3,4,4,1,2,1,3,4,2,1,3,1,3,3,3,1,1,2,2,2,3,1,3,4,3,3,3,4,4,2,3,1,4,4,4,1,2,4,3,3,3,1,4,4,1,2,1,4,1,3,2,2,1,1,3,3,2,1,4,4,3,4,2,4,1,1,3,1,4,2,4,2,1,1,4,1,3,4,4,2,2,1,1,2,4,1,2,2,2,3,1,3,2,3,3,2,2,1,1,4,1,1,3,3,3,2,1,1,1,1,2,3,1,4,4,3,4,1,2,2,4,2,4,4,1,3,2,4,3,1,3,1,4,2,3,4,2,3,1,4,4,2,3,1,4,3,1,2,4,2,1,3,2,2,1,4,3,3,2,3,4,2,1,2,3,2,4,2,1,3,1,2,4,3,4,2,3,1,2,4,1,3,2,1,4,2,4,2,3,1,2,1,4,3,3,2,4,3,1,2,4,3,1,3,4,2,3,1,4,3,3,1,4,2,4,3,4,2,1,4,3,2,1,3,2,4,1,2,3,4,2,4,3,4,2,3,4,2,1,4,3,2,1,3,3,1,4,1,2,1,1,3,2,1,3,2,2,4,4,2,4,3,2,3,3,4,2,1,4,3,2,4,2,4,3,1,4,2,3,1,2,3,1,4,1,3,4,1,2,3,4,1,3,2,2,4,4,1,3,2,4,4,2,3,4,2,1,4,1,3,4,3,2,1,4,2,1,3,1,3,4,4,3,1,4,4,4,3,3,2,1,4,1,1,2,3,2,4,2,3,1,4,1,2,3,1,2,3,4,2,3,4,2,1,3,4,2,1,3,1,4,3,2,2,3,4,1,3,1,3,2,3,4,3,3,1,4,2,1,4,2,3,2,1,3,4,1,2,2,1,3,4,2,1,2,1,2,3,4,1,2,3,4,2,1,3,4,2,3,2,3,4,1,2,1,1,4,2,1,2,4,1,3,2,4,1,2,3,4,1,2,3,1,2,4,2,1,4,4,3,1,2,4,2,1,2,4,1,1,4,3,1,4,3,2,1,3,4,3,1,4,2,4,1,2,3,4,2,3,1,2,4,3,2,3,1,1,3,4,2,1,3,1,4,1,3,2,3,4,4,2,3,4,1,3,1,2,3,1,2,4,4,2,1,3,2,1,3,2,1,4,1,2,4,1,3,1,3,1,4,1,2,4,3,4,1,4,4,2,4,3,4,2,4,1,3,2,1,2,3,4,1,2,1,2,3,1,3,3,1,4,2,2,1,3,1,2,3,4,2,1,3,4,1,2,3,4,1,2,3,4,1,2,1,3,2,1,3,4,1,2,3,1,2,3,4,1,2,3,1,2,4,1,3,1,3,4,1,2,3,4,3,1,2,1,3,4,2,4,1,3,4,2,1,3,4,4,1,4,2,3,4,2,1,3,4,4]
# for g in gru_units:
# for m in model_fit_epochs:
# for h in hops:
# sTime = time.time()
# # final answer list
# guessAnsList = []
# for i in range(tqn):
# # clear tensorflow draw graph
# K.clear_session()
# eachTime = time.time()
# print("Processing number: %s\n"%(i))
# print("******Parameters******\nGru_units: %s, model_fit_epochs: %s, hops: %s\n"%(g, m, h))
# # corpus content initial
# questionWordList = CQADataSet[i].getQuestion()
# storyWordList = CQADataSet[i].getCorpus()
# answerList = CQADataSet[i].getAnswer()
# guessAnswer = AttentionWithGRU(questionWordList, storyWordList, answerList, g, m, h).AttentionWithGRUMain()
# guessAnsList.append(guessAnswer)
# print("This epoch tooks: %.2fs" % (time.time()-eachTime))
# print("Total tooks: %.2fs" % (time.time()-sTime))
# guess_correct = 0
# for i in range(tqn):
# if guessAnsList[i] == correct_answer[i]:
# guess_correct += 1
# print("Final guess correctness: ", guess_correct)
# with open('log.txt', 'a') as log:
# log.write("\n ******This epoch experiment result******\n")
# log.write("Total cost time: %.2fs.\n" % (time.time()-sTime))
# log.write("Correctness: %.2f\n" % (guess_correct/len(correct_answer)))
# log.write("Gru_units: %s, model_fit_epochs: %s, hops: %s\n" % (g, m, h))
def SanityCheckMethod(CQADataSet, model, tqn, lim_start, lim_end):
with open('correct_list.json' , 'r') as reader:
ans_list = json.loads(reader.read())
def filterDataset(CQADataSet):
tmpLen = 0
for q in self.CQADataset[self.cqn].getQuestion():
tmpLen += len(q)
if tmpLen < 20:
return False
else:
return True
x, bestX, highestCorrectCount, filterCount, tmpC = 0.1, 0, 0, 0, 0
# initital idfTable
idfTable = SanityCheck(CQADataSet, tqn, 0).calIDF()
while x < 1:
tempCorrectCount = 0
for cqn in range(tqn):
if cqn > lim_start and cqn <= lim_end:
continue
# if filterDataset(CQADataSet) == False:
# filterCount += 1
# continue
tmpC+=1
ans = SanityCheck(CQADataSet, tqn, cqn).SanityCheckMain(model, x, idfTable)
if ans == ans_list['correct_answer'][cqn]:
tempCorrectCount += 1
if highestCorrectCount < tempCorrectCount:
highestCorrectCount = tempCorrectCount
bestX = x
print(tmpC)
x += 0.1
return bestX
def SanityCheckMethodTest(CQADataSet, model, tqn, x, lim_start, lim_end):
with open('correct_list.json' , 'r') as reader:
ans_list = json.loads(reader.read())
# initital idfTable
idfTable = SanityCheck(CQADataSet, tqn, 0).calIDF()
CorrectCount,tmpC = 0, 0
wrongNumSet = {}
for cqn in range(tqn):
if cqn >= lim_start and cqn <= lim_end:
tmpC +=1
guessAns = SanityCheck(CQADataSet, tqn, cqn).SanityCheckMain(model, x, idfTable)
if guessAns == ans_list['correct_answer'][cqn]:
CorrectCount += 1
else:
wrongNumSet[cqn] = guessAns
return CorrectCount /(8550*0.1), wrongNumSet
def main(argv=None):
# initial setting
data = 'MOST'
# development mode
print("\nStart development mode.\n\nInput parameters [1]qasp [2]mp.\n")
qasp = sys.argv[1]
mp = sys.argv[2]
tqn = len(listdir(qasp))
print(tqn)
# get all instance and load word2vec model
print("Start create CQA instance and load model.\n")
# start SanityCheckMethod iteration
bestAccuracy, accuracy = 0, 0
lim_start = [7694, 0, 855, 1710, 2565, 3420, 4275, 5130, 5985, 6840]
lim_end = [8549, 854, 1709, 2564, 3419, 4274, 5129, 5984, 6839, 7693]
modelFiles = listdir(mp)
bestModel = ""
wrongNumList, wrongNumJson = [], {}
for m in modelFiles:
if m[len(m)-6:len(m)] == ".model":
tmpWrongNumList = []
modelPath = mp + m
print("W2V Model: %s" %m)
CQADataSet, w2vmodel = DevelopmentModeInitial(qasp, modelPath, tqn, data).getCQADataSetAndModel()
#AttentionMethod(CQADataSet, tqn)
accuracy = 0
for l in range(10):
tmpBestx = SanityCheckMethod(CQADataSet, w2vmodel, tqn, lim_start[l], lim_end[l])
eachTestAccuracy, eachTestwrongSet= SanityCheckMethodTest(CQADataSet, w2vmodel, tqn, tmpBestx, lim_start[l], lim_end[l])
accuracy += eachTestAccuracy
tmpWrongNumList.append(eachTestwrongSet)
print(accuracy)
accuracy /= 10
if accuracy > bestAccuracy:
bestAccuracy = accuracy
bestModel = m
wrongNumList = tmpWrongNumList
print(bestAccuracy)
print(bestModel)
wrongNumJson[str(0)] = wrongNumList
with open('Experiment/'+ m +'.json', 'w') as json_file:
json.dump(wrongNumJson, json_file)
print("-----------------------")
print("bestModel: ", bestModel)
print("bestAccuracy: ", bestAccuracy)
print("-----------------------")
if __name__ == "__main__":
main()
# 6840~8549
# 0~1709
# 1710~3419
# 3420~5129
# 5130~6839 | 149.744048 | 3,024 | 0.505346 | 9,814 | 25,157 | 1.289077 | 0.019462 | 0.117777 | 0.064501 | 0.044581 | 0.772192 | 0.765789 | 0.724765 | 0.554027 | 0.39072 | 0.326298 | 0 | 0.412027 | 0.099694 | 25,157 | 168 | 3,025 | 149.744048 | 0.146541 | 0.838335 | 0 | 0.153846 | 0 | 0 | 0.072659 | 0.011486 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043956 | false | 0 | 0.043956 | 0 | 0.131868 | 0.131868 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
9d1b6d427be95ea45d7c26c3d929358589c3f356 | 52,569 | py | Python | PUBGSearchbot.py | J-hoplin1/PUBG-player-search-bot | b3389cde41f4c3723b29885d355ac4491146934c | [
"MIT"
] | 6 | 2020-06-09T06:45:17.000Z | 2021-07-31T16:07:40.000Z | PUBGSearchbot.py | J-hoplin1/PUBG-player-search-bot | b3389cde41f4c3723b29885d355ac4491146934c | [
"MIT"
] | null | null | null | PUBGSearchbot.py | J-hoplin1/PUBG-player-search-bot | b3389cde41f4c3723b29885d355ac4491146934c | [
"MIT"
] | 5 | 2020-05-23T01:27:43.000Z | 2021-08-21T14:38:15.000Z | #This code and description is written by Hoplin
#This code is written with API version 1.0.0(Rewirte-V)
#No matter to use it as non-commercial.
import discord
import asyncio
import os
from discord.ext import commands
import urllib
from urllib.request import URLError
from urllib.request import HTTPError
from urllib.request import urlopen
from urllib.request import Request, urlopen
from bs4 import BeautifulSoup
from urllib.parse import quote
import re # Regex for youtube link
import warnings
import requests
import unicodedata
import json
import time
token = ''
client = discord.Client()
@client.event # Use these decorator to register an event.
async def on_ready(): # on_ready() event : when the bot has finised logging in and setting things up
await client.change_presence(status=discord.Status.online, activity=discord.Game("Type !help or !도움말 for help"))
print("New log in as {0.user}".format(client))
@client.event
async def on_message(message): # on_message() event : when the bot has recieved a message
#To user who sent message
# await message.author.send(msg)
print(message.content)
if message.author == client.user:
return
if message.content.startswith("!경쟁전1"):#TabErrorTPP
baseURL = "https://dak.gg/profile/"
playerNickname = ''.join((message.content).split(' ')[1:])
URL = baseURL + quote(playerNickname)
try:
html = urlopen(URL)
bs = BeautifulSoup(html, 'html.parser')
if len(message.content.split(" ")) == 1:
embed = discord.Embed(title="닉네임이 입력되지 않았습니다", description="", color=0x5CD1E5)
embed.add_field(name="Player nickname not entered",
value="To use command !경쟁전(1 : TPP or 2 : FPP) : !경쟁전 (Nickname)", inline=False)
embed.set_footer(text='Service provided by Hoplin.',
icon_url='https://avatars2.githubusercontent.com/u/45956041?s=460&u=1caf3b112111cbd9849a2b95a88c3a8f3a15ecfa&v=4')
await message.channel.send("Error : Incorrect command usage ", embed=embed)
else:
accessors = bs.findAll('a', {'href': re.compile('\/statistics\/[A-Za-z]')})
# Season Information : ['PUBG',(season info),(Server),'overview']
seasonInfo = []
for si in bs.findAll('li', {'class': "active"}):
seasonInfo.append(si.text.strip())
serverAccessorAndStatus = []
# To prevent : Parsing Server Status, Make a result like Server:\nOnline. So I need to delete '\n'to get good result
for a in accessors:
serverAccessorAndStatus.append(re.sub(pattern='[\n]', repl="", string=a.text.strip()))
# Varaible serverAccessorAndStatus : [(accessors),(ServerStatus),(Don't needed value)]
# Varaibel rankElements : index 0: fpp 1 : tpp
rankElements = bs.findAll('div',{'class' : re.compile('squad ranked [A-Za-z0-9]')})
'''
-> 클래스 값을 가져와서 판별하는 것도 있지만 이 방법을 사용해 본다.
-> 만약 기록이 존재 하지 않는 경우 class 가 no_record라는 값을 가진 <div>가 생성된다. 이 태그로 데이터 유무 판별하면된다.
print(rankElements[1].find('div',{'class' : 'no_record'}))
'''
if rankElements[0].find('div',{'class' : 'no_record'}) != None: # 인덱스 0 : 경쟁전 fpp -> 정보가 있는지 없는지 유무를 판별한다.
embed = discord.Embed(title="Record not found", description="Rank TPP record not found.",color=0x5CD1E5)
embed.add_field(name="Player search from dak.gg", value=URL, inline=False)
embed.set_footer(text='Service provided by Hoplin.',
icon_url='https://avatars2.githubusercontent.com/u/45956041?s=460&u=1caf3b112111cbd9849a2b95a88c3a8f3a15ecfa&v=4')
await message.channel.send("PUBG player " + playerNickname + "'s TPP Ranking information",embed=embed)
else:
#Short of fpp Rank
fR = rankElements[0]
# Tier Information
# Get tier medal image
tierMedalImage = fR.find('div',{'class' : 'grade-info'}).img['src']
# Get tier Information
tierInfo = fR.find('div',{'class' : 'grade-info'}).img['alt']
# Rating Inforamtion
# RP Score
RPScore = fR.find('div',{'class' : 'rating'}).find('span',{'class' : 'caption'}).text
#Get top rate statistics
#등수
topRatioRank = topRatio = fR.find('p',{'class' : 'desc'}).find('span',{'class' : 'rank'}).text
#상위 %
topRatio = fR.find('p',{'class' : 'desc'}).find('span',{'class' : 'top'}).text
# Main : Stats all in here.
mainStatsLayout = fR.find('div',{'class' : 'stats'})
#Stats Data Saved As List
statsList = mainStatsLayout.findAll('p',{'class' : 'value'})# [KDA,승률,Top10,평균딜량, 게임수, 평균등수]
statsRatingList = mainStatsLayout.findAll('span',{'class' : 'top'})#[KDA, 승률,Top10 평균딜량, 게임수]
for r in range(0,len(statsList)):
# \n으로 큰 여백이 있어 split 처리
statsList[r] = statsList[r].text.strip().split('\n')[0]
statsRatingList[r] = statsRatingList[r].text
# 평균등수는 stats Rating을 표시하지 않는다.
statsRatingList = statsRatingList[0:5]
embed = discord.Embed(title="Player Unkonw Battle Ground player search from dak.gg", description="",color=0x5CD1E5)
embed.add_field(name="Player search from dak.gg", value=URL, inline=False)
embed.add_field(name="Real Time Accessors and Server Status",
value="Accessors : " + serverAccessorAndStatus[0] + " | " "Server Status : " +
serverAccessorAndStatus[1].split(':')[-1], inline=False)
embed.add_field(name="Player located server", value=seasonInfo[2] + " Server", inline=False)
embed.add_field(name = "Tier / Top Rate / Average Rank",
value = tierInfo + " (" + RPScore + ") / "+topRatio + " / " + topRatioRank,inline=False)
embed.add_field(name="K/D", value=statsList[0] + "/" + statsRatingList[0], inline=True)
embed.add_field(name="승률", value=statsList[1] + "/" + statsRatingList[1], inline=True)
embed.add_field(name="Top 10 비율", value=statsList[2] + "/" + statsRatingList[2], inline=True)
embed.add_field(name="평균딜량", value=statsList[3] + "/" + statsRatingList[3], inline=True)
embed.add_field(name="게임수", value=statsList[4] + "판/" + statsRatingList[4], inline=True)
embed.add_field(name="평균등수", value=statsList[5],inline=True)
embed.set_thumbnail(url=f'https:{tierMedalImage}')
embed.set_footer(text='Service provided by Hoplin.',
icon_url='https://avatars2.githubusercontent.com/u/45956041?s=460&u=1caf3b112111cbd9849a2b95a88c3a8f3a15ecfa&v=4')
await message.channel.send("PUBG player " + playerNickname + "'s TPP Ranking information", embed=embed)
except HTTPError as e:
embed = discord.Embed(title="Not existing plyer", description="Can't find player " + playerNickname + "'s information.\nPlease check player's nickname again",color=0x5CD1E5)
await message.channel.send("Error : Not existing player", embed=embed)
print(e)
except AttributeError as e:
embed = discord.Embed(title="Not existing plyer",
description="Can't find player " + playerNickname + "'s information.\nPlease check player's nickname again",
color=0x5CD1E5)
await message.channel.send("Error : Not existing player", embed=embed)
print(e)
if message.content.startswith("!경쟁전2"):#FPP
baseURL = "https://dak.gg/profile/"
playerNickname = ''.join((message.content).split(' ')[1:])
URL = baseURL + quote(playerNickname)
try:
html = urlopen(URL)
bs = BeautifulSoup(html, 'html.parser')
if len(message.content.split(" ")) == 1:
embed = discord.Embed(title="닉네임이 입력되지 않았습니다", description="", color=0x5CD1E5)
embed.add_field(name="Player nickname not entered",
value="To use command !경쟁전(1 : TPP or 2 : FPP) : !경쟁전 (Nickname)", inline=False)
embed.set_footer(text='Service provided by Hoplin.',
icon_url='https://avatars2.githubusercontent.com/u/45956041?s=460&u=1caf3b112111cbd9849a2b95a88c3a8f3a15ecfa&v=4')
await message.channel.send("Error : Incorrect command usage ", embed=embed)
else:
accessors = bs.findAll('a', {'href': re.compile('\/statistics\/[A-Za-z]')})
# Season Information : ['PUBG',(season info),(Server),'overview']
seasonInfo = []
for si in bs.findAll('li', {'class': "active"}):
seasonInfo.append(si.text.strip())
serverAccessorAndStatus = []
# To prevent : Parsing Server Status, Make a result like Server:\nOnline. So I need to delete '\n'to get good result
for a in accessors:
serverAccessorAndStatus.append(re.sub(pattern='[\n]', repl="", string=a.text.strip()))
# Varaible serverAccessorAndStatus : [(accessors),(ServerStatus),(Don't needed value)]
# index 0: fpp 1 : tpp
rankElements = bs.findAll('div',{'class' : re.compile('squad ranked [A-Za-z0-9]')})
'''
-> 클래스 값을 가져와서 판별하는 것도 있지만 이 방법을 사용해 본다.
-> 만약 기록이 존재 하지 않는 경우 class 가 no_record라는 값을 가진 <div>가 생성된다. 이 태그로 데이터 유무 판별하면된다.
print(rankElements[1].find('div',{'class' : 'no_record'}))
'''
if rankElements[1].find('div',{'class' : 'no_record'}) != None: # 인덱스 0 : 경쟁전 fpp -> 정보가 있는지 없는지 유무를 판별한다a.
embed = discord.Embed(title="Record not found", description="Solo que record not found.",
color=0x5CD1E5)
embed.add_field(name="Player search from dak.gg", value=URL, inline=False)
embed.set_footer(text='Service provided by Hoplin.',
icon_url='https://avatars2.githubusercontent.com/u/45956041?s=460&u=1caf3b112111cbd9849a2b95a88c3a8f3a15ecfa&v=4')
await message.channel.send("PUBG player " + playerNickname + "'s FPP Ranking information",embed=embed)
else:
#Short of fpp Rank
fR = rankElements[1]
# Tier Information
# Get tier medal image
tierMedalImage = fR.find('div',{'class' : 'grade-info'}).img['src']
# Get tier Information
tierInfo = fR.find('div',{'class' : 'grade-info'}).img['alt']
# Rating Inforamtion
# RP Score
RPScore = fR.find('div',{'class' : 'rating'}).find('span',{'class' : 'caption'}).text
#Get top rate statistics
#등수
topRatioRank = topRatio = fR.find('p',{'class' : 'desc'}).find('span',{'class' : 'rank'}).text
#상위 %
topRatio = fR.find('p',{'class' : 'desc'}).find('span',{'class' : 'top'}).text
# Main : Stats all in here.
mainStatsLayout = fR.find('div',{'class' : 'stats'})
#Stats Data Saved As List
statsList = mainStatsLayout.findAll('p',{'class' : 'value'})# [KDA,승률,Top10,평균딜량, 게임수, 평균등수]
statsRatingList = mainStatsLayout.findAll('span',{'class' : 'top'})#[KDA, 승률,Top10 평균딜량, 게임수]
for r in range(0,len(statsList)):
# \n으로 큰 여백이 있어 split 처리
statsList[r] = statsList[r].text.strip().split('\n')[0]
statsRatingList[r] = statsRatingList[r].text
# 평균등수는 stats Rating을 표시하지 않는다.
statsRatingList = statsRatingList[0:5]
embed = discord.Embed(title="Player Unkonw Battle Ground player search from dak.gg", description="",color=0x5CD1E5)
embed.add_field(name="Player search from dak.gg", value=URL, inline=False)
embed.add_field(name="Real Time Accessors and Server Status",
value="Accessors : " + serverAccessorAndStatus[0] + " | " "Server Status : " +
serverAccessorAndStatus[1].split(':')[-1], inline=False)
embed.add_field(name="Player located server", value=seasonInfo[2] + " Server", inline=False)
embed.add_field(name = "Tier / Top Rate / Average Rank",
value = tierInfo + " (" + RPScore + ") / "+topRatio + " / " + topRatioRank,inline=False)
embed.add_field(name="K/D", value=statsList[0] + "/" + statsRatingList[0], inline=True)
embed.add_field(name="승률", value=statsList[1] + "/" + statsRatingList[1], inline=True)
embed.add_field(name="Top 10 비율", value=statsList[2] + "/" + statsRatingList[2], inline=True)
embed.add_field(name="평균딜량", value=statsList[3] + "/" + statsRatingList[3], inline=True)
embed.add_field(name="게임수", value=statsList[4] + "판/" + statsRatingList[4], inline=True)
embed.add_field(name="평균등수", value=statsList[5],inline=True)
embed.set_thumbnail(url=f'https:{tierMedalImage}')
embed.set_footer(text='Service provided by Hoplin.',
icon_url='https://avatars2.githubusercontent.com/u/45956041?s=460&u=1caf3b112111cbd9849a2b95a88c3a8f3a15ecfa&v=4')
await message.channel.send("PUBG player " + playerNickname + "'s FPP Ranking information", embed=embed)
except HTTPError as e:
embed = discord.Embed(title="Not existing plyer", description="Can't find player " + playerNickname + "'s information.\nPlease check player's nickname again",color=0x5CD1E5)
await message.channel.send("Error : Not existing player", embed=embed)
except AttributeError as e:
embed = discord.Embed(title="Not existing plyer",
description="Can't find player " + playerNickname + "'s information.\nPlease check player's nickname again",
color=0x5CD1E5)
await message.channel.send("Error : Not existing player", embed=embed)
if message.content.startswith("!배그솔로1"):
baseURL = "https://dak.gg/profile/"
playerNickname = ''.join((message.content).split(' ')[1:])
URL = baseURL + quote(playerNickname)
try:
html = urlopen(URL)
bs = BeautifulSoup(html, 'html.parser')
if len(message.content.split(" ")) == 1:
embed = discord.Embed(title="닉네임이 입력되지 않았습니다", description="", color=0x5CD1E5)
embed.add_field(name="Player nickname not entered",
value="To use command !배그솔로 : !배그솔로 (Nickname)", inline=False)
embed.set_footer(text='Service provided by Hoplin.',
icon_url='https://avatars2.githubusercontent.com/u/45956041?s=460&u=1caf3b112111cbd9849a2b95a88c3a8f3a15ecfa&v=4')
await message.channel.send("Error : Incorrect command usage ", embed=embed)
else:
accessors = bs.findAll('a', {'href': re.compile('\/statistics\/[A-Za-z]')})
# Season Information : ['PUBG',(season info),(Server),'overview']
seasonInfo = []
for si in bs.findAll('li', {'class': "active"}):
seasonInfo.append(si.text.strip())
serverAccessorAndStatus = []
# To prevent : Parsing Server Status, Make a result like Server:\nOnline. So I need to delete '\n'to get good result
for a in accessors:
serverAccessorAndStatus.append(re.sub(pattern='[\n]', repl="", string=a.text.strip()))
# Varaible serverAccessorAndStatus : [(accessors),(ServerStatus),(Don't needed value)]
soloQueInfo = bs.find('section', {'class': "solo modeItem"}).find('div', {'class': "mode-section tpp"})
if soloQueInfo == None:
embed = discord.Embed(title="Record not found", description="Solo que record not found.",
color=0x5CD1E5)
embed.add_field(name="Player search from dak.gg", value=URL, inline=False)
await message.channel.send("PUBG player " + playerNickname + "'s TPP solo que information", embed=embed)
else:
# print(soloQueInfo)
# Get total playtime
soloQueTotalPlayTime = soloQueInfo.find('span', {'class': "time_played"}).text.strip()
# Get Win/Top10/Lose : [win,top10,lose]
soloQueGameWL = soloQueInfo.find('em').text.strip().split(' ')
# RankPoint
rankPoint = soloQueInfo.find('span', {'class': 'value'}).text
# Tier image url, tier
tierInfos = soloQueInfo.find('img', {
'src': re.compile('\/\/static\.dak\.gg\/images\/icons\/tier\/[A-Za-z0-9_.]')})
tierImage = "https:" + tierInfos['src']
print(tierImage)
tier = tierInfos['alt']
# Comprehensive info
comInfo = []
# [K/D,승률,Top10,평균딜량,게임수, 최다킬수,헤드샷,저격거리,생존,평균순위]
for ci in soloQueInfo.findAll('p', {'class': 'value'}):
comInfo.append(''.join(ci.text.split()))
embed = discord.Embed(title="Player Unkonw Battle Ground player search from dak.gg", description="",
color=0x5CD1E5)
embed.add_field(name="Player search from dak.gg", value=URL, inline=False)
embed.add_field(name="Real Time Accessors and Server Status",
value="Accessors : " + serverAccessorAndStatus[0] + " | " "Server Status : " +
serverAccessorAndStatus[1].split(':')[-1], inline=False)
embed.add_field(name="Player located server", value=seasonInfo[2] + " Server / Total playtime : " +soloQueTotalPlayTime, inline=False)
embed.add_field(name="Tier",
value=tier + " ("+rankPoint+"p)" , inline=False)
embed.add_field(name="K/D", value=comInfo[0], inline=True)
embed.add_field(name="승률", value=comInfo[1], inline=True)
embed.add_field(name="Top 10 비율", value=comInfo[2], inline=True)
embed.add_field(name="평균딜량", value=comInfo[3], inline=True)
embed.add_field(name="게임수", value=comInfo[4] + "판", inline=True)
embed.add_field(name="최다킬수", value=comInfo[5] + "킬", inline=True)
embed.add_field(name="헤드샷 비율", value=comInfo[6], inline=True)
embed.add_field(name="저격거리", value=comInfo[7], inline=True)
embed.add_field(name="평균생존시간", value=comInfo[8], inline=True)
embed.set_footer(text='Service provided by Hoplin.',
icon_url='https://avatars2.githubusercontent.com/u/45956041?s=460&u=1caf3b112111cbd9849a2b95a88c3a8f3a15ecfa&v=4')
await message.channel.send("PUBG player " + playerNickname + "'s TPP solo que information", embed=embed)
except HTTPError as e:
embed = discord.Embed(title="Not existing plyer", description="Can't find player " + playerNickname + "'s information.\nPlease check player's nickname again",color=0x5CD1E5)
await message.channel.send("Error : Not existing player", embed=embed)
except AttributeError as e:
embed = discord.Embed(title="Not existing plyer",
description="Can't find player " + playerNickname + "'s information.\nPlease check player's nickname again",
color=0x5CD1E5)
await message.channel.send("Error : Not existing player", embed=embed)
if message.content.startswith("!배그듀오1"):
baseURL = "https://dak.gg/profile/"
playerNickname = ''.join((message.content).split(' ')[1:])
URL = baseURL + quote(playerNickname)
try:
html = urlopen(URL)
bs = BeautifulSoup(html, 'html.parser')
if len(message.content.split(" ")) == 1:
embed = discord.Embed(title="닉네임이 입력되지 않았습니다", description="", color=0x5CD1E5)
embed.add_field(name="Player nickname not entered",
value="To use command !배그스쿼드 : !배그스쿼드 (Nickname)", inline=False)
embed.set_footer(text='Service provided by Hoplin.',
icon_url='https://avatars2.githubusercontent.com/u/45956041?s=460&u=1caf3b112111cbd9849a2b95a88c3a8f3a15ecfa&v=4')
await message.channel.send("Error : Incorrect command usage ", embed=embed)
else:
accessors = bs.findAll('a', {'href': re.compile('\/statistics\/[A-Za-z]')})
# Season Information : ['PUBG',(season info),(Server),'overview']
seasonInfo = []
for si in bs.findAll('li', {'class': "active"}):
seasonInfo.append(si.text.strip())
serverAccessorAndStatus = []
# To prevent : Parsing Server Status, Make a result like Server:\nOnline. So I need to delete '\n'to get good result
for a in accessors:
serverAccessorAndStatus.append(re.sub(pattern='[\n]', repl="", string=a.text.strip()))
# Varaible serverAccessorAndStatus : [(accessors),(ServerStatus),(Don't needed value)]
duoQueInfo = bs.find('section',{'class' : "duo modeItem"}).find('div',{'class' : "mode-section tpp"})
if duoQueInfo == None:
embed = discord.Embed(title="Record not found", description="Duo que record not found.",
color=0x5CD1E5)
embed.add_field(name="Player search from dak.gg", value=URL, inline=False)
await message.channel.send("PUBG player " + playerNickname + "'s TPP duo que information", embed=embed)
else:
# print(duoQueInfo)
# Get total playtime
duoQueTotalPlayTime = duoQueInfo.find('span', {'class': "time_played"}).text.strip()
# Get Win/Top10/Lose : [win,top10,lose]
duoQueGameWL = duoQueInfo.find('em').text.strip().split(' ')
# RankPoint
rankPoint = duoQueInfo.find('span', {'class': 'value'}).text
# Tier image url, tier
tierInfos = duoQueInfo.find('img', {
'src': re.compile('\/\/static\.dak\.gg\/images\/icons\/tier\/[A-Za-z0-9_.]')})
tierImage = "https:" + tierInfos['src']
tier = tierInfos['alt']
# Comprehensive info
comInfo = []
# [K/D,승률,Top10,평균딜량,게임수, 최다킬수,헤드샷,저격거리,생존,평균순위]
for ci in duoQueInfo.findAll('p', {'class': 'value'}):
comInfo.append(''.join(ci.text.split()))
embed = discord.Embed(title="Player Unkonw Battle Ground player search from dak.gg", description="",
color=0x5CD1E5)
embed.add_field(name="Player search from dak.gg", value=URL, inline=False)
embed.add_field(name="Real Time Accessors and Server Status",
value="Accessors : " + serverAccessorAndStatus[0] + " | " "Server Status : " +
serverAccessorAndStatus[1].split(':')[-1], inline=False)
embed.add_field(name="Player located server and total playtime", value=seasonInfo[2] + " Server / Total playtime : " +duoQueTotalPlayTime, inline=False)
embed.add_field(name="Tier(Rank Point)",
value=tier + " ("+rankPoint+"p)", inline=False)
embed.add_field(name="K/D", value=comInfo[0], inline=True)
embed.add_field(name="승률", value=comInfo[1], inline=True)
embed.add_field(name="Top 10 비율", value=comInfo[2], inline=True)
embed.add_field(name="평균딜량", value=comInfo[3], inline=True)
embed.add_field(name="게임수", value=comInfo[4] + "판", inline=True)
embed.add_field(name="최다킬수", value=comInfo[5] + "킬", inline=True)
embed.add_field(name="헤드샷 비율", value=comInfo[6], inline=True)
embed.add_field(name="저격거리", value=comInfo[7], inline=True)
embed.add_field(name="평균생존시간", value=comInfo[8], inline=True)
embed.set_footer(text='Service provided by Hoplin.',
icon_url='https://avatars2.githubusercontent.com/u/45956041?s=460&u=1caf3b112111cbd9849a2b95a88c3a8f3a15ecfa&v=4')
await message.channel.send("PUBG player " + playerNickname + "'s TPP duo que information", embed=embed)
except HTTPError as e:
embed = discord.Embed(title="Not existing plyer",
description="Can't find player " + playerNickname + "'s information.\nPlease check player's nickname again",
color=0x5CD1E5)
await message.channel.send("Error : Not existing player", embed=embed)
except AttributeError as e:
embed = discord.Embed(title="Not existing plyer",
description="Can't find player " + playerNickname + "'s information.\nPlease check player's nickname again",
color=0x5CD1E5)
await message.channel.send("Error : Not existing player", embed=embed)
if message.content.startswith("!배그스쿼드1"):
baseURL = "https://dak.gg/profile/"
playerNickname = ''.join((message.content).split(' ')[1:])
URL = baseURL + quote(playerNickname)
try:
html = urlopen(URL)
bs = BeautifulSoup(html, 'html.parser')
if len(message.content.split(" ")) == 1:
embed = discord.Embed(title="닉네임이 입력되지 않았습니다", description="", color=0x5CD1E5)
embed.add_field(name="Player nickname not entered",
value="To use command !배그솔로 : !배그솔로 (Nickname)", inline=False)
embed.set_footer(text='Service provided by Hoplin.',
icon_url='https://avatars2.githubusercontent.com/u/45956041?s=460&u=1caf3b112111cbd9849a2b95a88c3a8f3a15ecfa&v=4')
await message.channel.send("Error : Incorrect command usage ", embed=embed)
else:
accessors = bs.findAll('a', {'href': re.compile('\/statistics\/[A-Za-z]')})
# Season Information : ['PUBG',(season info),(Server),'overview']
seasonInfo = []
for si in bs.findAll('li', {'class': "active"}):
seasonInfo.append(si.text.strip())
serverAccessorAndStatus = []
# To prevent : Parsing Server Status, Make a result like Server:\nOnline. So I need to delete '\n'to get good result
for a in accessors:
serverAccessorAndStatus.append(re.sub(pattern='[\n]', repl="", string=a.text.strip()))
# Varaible serverAccessorAndStatus : [(accessors),(ServerStatus),(Don't needed value)]
squadQueInfo = bs.find('section',{'class' : "squad modeItem"}).find('div',{'class' : "mode-section tpp"})
if squadQueInfo == None:
embed = discord.Embed(title="Record not found", description="Squad que record not found.",
color=0x5CD1E5)
embed.add_field(name="Player search from dak.gg", value=URL, inline=False)
await message.channel.send("PUBG player " + playerNickname + "'s TPP squad que information", embed=embed)
else:
# print(duoQueInfo)
# Get total playtime
squadQueTotalPlayTime = squadQueInfo.find('span', {'class': "time_played"}).text.strip()
# Get Win/Top10/Lose : [win,top10,lose]
squadQueGameWL = squadQueInfo.find('em').text.strip().split(' ')
# RankPoint
rankPoint = squadQueInfo.find('span', {'class': 'value'}).text
# Tier image url, tier
tierInfos = squadQueInfo.find('img', {
'src': re.compile('\/\/static\.dak\.gg\/images\/icons\/tier\/[A-Za-z0-9_.]')})
tierImage = "https:" + tierInfos['src']
tier = tierInfos['alt']
# Comprehensive info
comInfo = []
# [K/D,승률,Top10,평균딜량,게임수, 최다킬수,헤드샷,저격거리,생존,평균순위]
for ci in squadQueInfo.findAll('p', {'class': 'value'}):
comInfo.append(''.join(ci.text.split()))
embed = discord.Embed(title="Player Unkonw Battle Ground player search from dak.gg", description="",
color=0x5CD1E5)
embed.add_field(name="Player search from dak.gg", value=URL, inline=False)
embed.add_field(name="Real Time Accessors and Server Status",
value="Accessors : " + serverAccessorAndStatus[0] + " | " "Server Status : " +
serverAccessorAndStatus[1].split(':')[-1], inline=False)
embed.add_field(name="Player located server", value=seasonInfo[2] + " Server / Total playtime : " +squadQueTotalPlayTime, inline=False)
embed.add_field(name="Tier(Rank Point)",
value=tier + " (" + rankPoint + "p)", inline=False)
embed.add_field(name="K/D", value=comInfo[0] , inline=True)
embed.add_field(name="승률", value=comInfo[1] , inline=True)
embed.add_field(name="Top 10 비율", value=comInfo[2] , inline=True)
embed.add_field(name="평균딜량", value=comInfo[3] , inline=True)
embed.add_field(name="게임수", value=comInfo[4] + "판", inline=True)
embed.add_field(name="최다킬수", value=comInfo[5] + "킬", inline=True)
embed.add_field(name="헤드샷 비율", value=comInfo[6], inline=True)
embed.add_field(name="저격거리", value=comInfo[7], inline=True)
embed.add_field(name="평균생존시간", value=comInfo[8], inline=True)
embed.set_footer(text='Service provided by Hoplin.',
icon_url='https://avatars2.githubusercontent.com/u/45956041?s=460&u=1caf3b112111cbd9849a2b95a88c3a8f3a15ecfa&v=4')
await message.channel.send("PUBG player " + playerNickname + "'s TPP squad que information", embed=embed)
except HTTPError as e:
embed = discord.Embed(title="Not existing plyer",
description="Can't find player " + playerNickname + "'s information.\nPlease check player's nickname again",
color=0x5CD1E5)
await message.channel.send("Error : Not existing player", embed=embed)
except AttributeError as e:
embed = discord.Embed(title="Not existing plyer",
description="Can't find player " + playerNickname + "'s information.\nPlease check player's nickname again",
color=0x5CD1E5)
await message.channel.send("Error : Not existing player", embed=embed)
if message.content.startswith("!배그솔로2"):
baseURL = "https://dak.gg/profile/"
playerNickname = ''.join((message.content).split(' ')[1:])
URL = baseURL + quote(playerNickname)
try:
html = urlopen(URL)
bs = BeautifulSoup(html, 'html.parser')
if len(message.content.split(" ")) == 1:
embed = discord.Embed(title="닉네임이 입력되지 않았습니다", description="", color=0x5CD1E5)
embed.add_field(name="Player nickname not entered",
value="To use command !배그솔로 : !배그솔로 (Nickname)", inline=False)
embed.set_footer(text='Service provided by Hoplin.',
icon_url='https://avatars2.githubusercontent.com/u/45956041?s=460&u=1caf3b112111cbd9849a2b95a88c3a8f3a15ecfa&v=4')
await message.channel.send("Error : Incorrect command usage ", embed=embed)
else:
accessors = bs.findAll('a', {'href': re.compile('\/statistics\/[A-Za-z]')})
# Season Information : ['PUBG',(season info),(Server),'overview']
seasonInfo = []
for si in bs.findAll('li', {'class': "active"}):
seasonInfo.append(si.text.strip())
serverAccessorAndStatus = []
# To prevent : Parsing Server Status, Make a result like Server:\nOnline. So I need to delete '\n'to get good result
for a in accessors:
serverAccessorAndStatus.append(re.sub(pattern='[\n]', repl="", string=a.text.strip()))
# Varaible serverAccessorAndStatus : [(accessors),(ServerStatus),(Don't needed value)]
soloQueInfo = bs.find('section', {'class': "solo modeItem"}).find('div', {'class': "mode-section fpp"})
if soloQueInfo == None:
embed = discord.Embed(title="Record not found", description="Solo que record not found.",
color=0x5CD1E5)
embed.add_field(name="Player search from dak.gg", value=URL, inline=False)
await message.channel.send("PUBG player " + playerNickname + "'s FPP solo que information",
embed=embed)
else:
# print(soloQueInfo)
# Get total playtime
soloQueTotalPlayTime = soloQueInfo.find('span', {'class': "time_played"}).text.strip()
# Get Win/Top10/Lose : [win,top10,lose]
soloQueGameWL = soloQueInfo.find('em').text.strip().split(' ')
# RankPoint
rankPoint = soloQueInfo.find('span', {'class': 'value'}).text
# Tier image url, tier
tierInfos = soloQueInfo.find('img', {
'src': re.compile('\/\/static\.dak\.gg\/images\/icons\/tier\/[A-Za-z0-9_.]')})
tierImage = "https:" + tierInfos['src']
print(tierImage)
tier = tierInfos['alt']
# Comprehensive info
comInfo = []
# [K/D,승률,Top10,평균딜량,게임수, 최다킬수,헤드샷,저격거리,생존,평균순위]
for ci in soloQueInfo.findAll('p', {'class': 'value'}):
comInfo.append(''.join(ci.text.split()))
embed = discord.Embed(title="Player Unkonw Battle Ground player search from dak.gg", description="",
color=0x5CD1E5)
embed.add_field(name="Player search from dak.gg", value=URL, inline=False)
embed.add_field(name="Real Time Accessors and Server Status",
value="Accessors : " + serverAccessorAndStatus[0] + " | " "Server Status : " +
serverAccessorAndStatus[1].split(':')[-1], inline=False)
embed.add_field(name="Player located server",
value=seasonInfo[2] + " Server / Total playtime : " + soloQueTotalPlayTime,
inline=False)
embed.add_field(name="Tier(Rank Point)",
value=tier + " (" + rankPoint + "p)", inline=False)
embed.add_field(name="K/D", value=comInfo[0], inline=True)
embed.add_field(name="승률", value=comInfo[1], inline=True)
embed.add_field(name="Top 10 비율", value=comInfo[2], inline=True)
embed.add_field(name="평균딜량", value=comInfo[3], inline=True)
embed.add_field(name="게임수", value=comInfo[4] + "판" , inline=True)
embed.add_field(name="최다킬수", value=comInfo[5] + "킬" , inline=True)
embed.add_field(name="헤드샷 비율", value=comInfo[6] , inline=True)
embed.add_field(name="저격거리", value=comInfo[7], inline=True)
embed.add_field(name="평균생존시간", value=comInfo[8] , inline=True)
embed.set_footer(text='Service provided by Hoplin.',
icon_url='https://avatars2.githubusercontent.com/u/45956041?s=460&u=1caf3b112111cbd9849a2b95a88c3a8f3a15ecfa&v=4')
await message.channel.send("PUBG player " + playerNickname + "'s FPP solo que information",
embed=embed)
except HTTPError as e:
embed = discord.Embed(title="Not existing plyer",
description="Can't find player " + playerNickname + "'s information.\nPlease check player's nickname again",
color=0x5CD1E5)
await message.channel.send("Error : Not existing player", embed=embed)
except AttributeError as e:
embed = discord.Embed(title="Not existing plyer",
description="Can't find player " + playerNickname + "'s information.\nPlease check player's nickname again",
color=0x5CD1E5)
await message.channel.send("Error : Not existing player", embed=embed)
if message.content.startswith("!배그듀오2"):
baseURL = "https://dak.gg/profile/"
playerNickname = ''.join((message.content).split(' ')[1:])
URL = baseURL + quote(playerNickname)
try:
html = urlopen(URL)
bs = BeautifulSoup(html, 'html.parser')
if len(message.content.split(" ")) == 1:
embed = discord.Embed(title="닉네임이 입력되지 않았습니다", description="", color=0x5CD1E5)
embed.add_field(name="Player nickname not entered",
value="To use command !배그스쿼드 : !배그스쿼드 (Nickname)", inline=False)
embed.set_footer(text='Service provided by Hoplin.',
icon_url='https://avatars2.githubusercontent.com/u/45956041?s=460&u=1caf3b112111cbd9849a2b95a88c3a8f3a15ecfa&v=4')
await message.channel.send("Error : Incorrect command usage ", embed=embed)
else:
accessors = bs.findAll('a', {'href': re.compile('\/statistics\/[A-Za-z]')})
# Season Information : ['PUBG',(season info),(Server),'overview']
seasonInfo = []
for si in bs.findAll('li', {'class': "active"}):
seasonInfo.append(si.text.strip())
serverAccessorAndStatus = []
# To prevent : Parsing Server Status, Make a result like Server:\nOnline. So I need to delete '\n'to get good result
for a in accessors:
serverAccessorAndStatus.append(re.sub(pattern='[\n]', repl="", string=a.text.strip()))
# Varaible serverAccessorAndStatus : [(accessors),(ServerStatus),(Don't needed value)]
duoQueInfo = bs.find('section', {'class': "duo modeItem"}).find('div', {'class': "mode-section fpp"})
if duoQueInfo == None:
embed = discord.Embed(title="Record not found", description="Duo que record not found.",
color=0x5CD1E5)
embed.add_field(name="Player search from dak.gg", value=URL, inline=False)
await message.channel.send("PUBG player " + playerNickname + "'s FPP duo que information",
embed=embed)
else:
# print(duoQueInfo)
# Get total playtime
duoQueTotalPlayTime = duoQueInfo.find('span', {'class': "time_played"}).text.strip()
# Get Win/Top10/Lose : [win,top10,lose]
duoQueGameWL = duoQueInfo.find('em').text.strip().split(' ')
# RankPoint
rankPoint = duoQueInfo.find('span', {'class': 'value'}).text
# Tier image url, tier
tierInfos = duoQueInfo.find('img', {
'src': re.compile('\/\/static\.dak\.gg\/images\/icons\/tier\/[A-Za-z0-9_.]')})
tierImage = "https:" + tierInfos['src']
tier = tierInfos['alt']
# Comprehensive info
comInfo = []
# [K/D,승률,Top10,평균딜량,게임수, 최다킬수,헤드샷,저격거리,생존,평균순위]
for ci in duoQueInfo.findAll('p', {'class': 'value'}):
comInfo.append(''.join(ci.text.split()))
embed = discord.Embed(title="Player Unkonw Battle Ground player search from dak.gg", description="",
color=0x5CD1E5)
embed.add_field(name="Player search from dak.gg", value=URL, inline=False)
embed.add_field(name="Real Time Accessors and Server Status",
value="Accessors : " + serverAccessorAndStatus[0] + " | " "Server Status : " +
serverAccessorAndStatus[1].split(':')[-1], inline=False)
embed.add_field(name="Player located server and total playtime",
value=seasonInfo[2] + " Server / Total playtime : " + duoQueTotalPlayTime,
inline=False)
embed.add_field(name="Tier(Rank Point)",
value=tier + " (" + rankPoint + "p)", inline=False)
embed.add_field(name="K/D", value=comInfo[0] , inline=True)
embed.add_field(name="승률", value=comInfo[1], inline=True)
embed.add_field(name="Top 10 비율", value=comInfo[2], inline=True)
embed.add_field(name="평균딜량", value=comInfo[3], inline=True)
embed.add_field(name="게임수", value=comInfo[4] + "판", inline=True)
embed.add_field(name="최다킬수", value=comInfo[5] + "킬", inline=True)
embed.add_field(name="헤드샷 비율", value=comInfo[6] , inline=True)
embed.add_field(name="저격거리", value=comInfo[7] , inline=True)
embed.add_field(name="평균생존시간", value=comInfo[8] , inline=True)
embed.set_footer(text='Service provided by Hoplin.',
icon_url='https://avatars2.githubusercontent.com/u/45956041?s=460&u=1caf3b112111cbd9849a2b95a88c3a8f3a15ecfa&v=4')
await message.channel.send("PUBG player " + playerNickname + "'s FPP duo que information",
embed=embed)
except HTTPError as e:
embed = discord.Embed(title="Not existing plyer",
description="Can't find player " + playerNickname + "'s information.\nPlease check player's nickname again",
color=0x5CD1E5)
await message.channel.send("Error : Not existing player", embed=embed)
except AttributeError as e:
embed = discord.Embed(title="Not existing plyer",
description="Can't find player " + playerNickname + "'s information.\nPlease check player's nickname again",
color=0x5CD1E5)
await message.channel.send("Error : Not existing player", embed=embed)
if message.content.startswith("!배그스쿼드2"):
baseURL = "https://dak.gg/profile/"
playerNickname = ''.join((message.content).split(' ')[1:])
URL = baseURL + quote(playerNickname)
try:
html = urlopen(URL)
bs = BeautifulSoup(html, 'html.parser')
if len(message.content.split(" ")) == 1:
embed = discord.Embed(title="닉네임이 입력되지 않았습니다", description="", color=0x5CD1E5)
embed.add_field(name="Player nickname not entered",
value="To use command !배그솔로 : !배그솔로 (Nickname)", inline=False)
embed.set_footer(text='Service provided by Hoplin.',
icon_url='https://avatars2.githubusercontent.com/u/45956041?s=460&u=1caf3b112111cbd9849a2b95a88c3a8f3a15ecfa&v=4')
await message.channel.send("Error : Incorrect command usage ", embed=embed)
else:
accessors = bs.findAll('a', {'href': re.compile('\/statistics\/[A-Za-z]')})
# Season Information : ['PUBG',(season info),(Server),'overview']
seasonInfo = []
for si in bs.findAll('li', {'class': "active"}):
seasonInfo.append(si.text.strip())
serverAccessorAndStatus = []
# To prevent : Parsing Server Status, Make a result like Server:\nOnline. So I need to delete '\n'to get good result
for a in accessors:
serverAccessorAndStatus.append(re.sub(pattern='[\n]', repl="", string=a.text.strip()))
# Varaible serverAccessorAndStatus : [(accessors),(ServerStatus),(Don't needed value)]
squadQueInfo = bs.find('section', {'class': "squad modeItem"}).find('div',
{'class': "mode-section fpp"})
if squadQueInfo == None:
embed = discord.Embed(title="Record not found", description="Squad que record not found.",
color=0x5CD1E5)
embed.add_field(name="Player search from dak.gg", value=URL, inline=False)
await message.channel.send("PUBG player " + playerNickname + "'s FPP squad que information",
embed=embed)
else:
# print(duoQueInfo)
# Get total playtime
squadQueTotalPlayTime = squadQueInfo.find('span', {'class': "time_played"}).text.strip()
# Get Win/Top10/Lose : [win,top10,lose]
squadQueGameWL = squadQueInfo.find('em').text.strip().split(' ')
# RankPoint
rankPoint = squadQueInfo.find('span', {'class': 'value'}).text
# Tier image url, tier
tierInfos = squadQueInfo.find('img', {
'src': re.compile('\/\/static\.dak\.gg\/images\/icons\/tier\/[A-Za-z0-9_.]')})
tierImage = "https:" + tierInfos['src']
tier = tierInfos['alt']
# Comprehensive info
comInfo = []
# [K/D,승률,Top10,평균딜량,게임수, 최다킬수,헤드샷,저격거리,생존,평균순위]
for ci in squadQueInfo.findAll('p', {'class': 'value'}):
comInfo.append(''.join(ci.text.split()))
embed = discord.Embed(title="Player Unkonw Battle Ground player search from dak.gg", description="",
color=0x5CD1E5)
embed.add_field(name="Player search from dak.gg", value=URL, inline=False)
embed.add_field(name="Real Time Accessors and Server Status",
value="Accessors : " + serverAccessorAndStatus[0] + " | " "Server Status : " +
serverAccessorAndStatus[1].split(':')[-1], inline=False)
embed.add_field(name="Player located server",
value=seasonInfo[2] + " Server / Total playtime : " + squadQueTotalPlayTime,
inline=False)
embed.add_field(name="Tier(Rank Point)",
value=tier + " (" + rankPoint + "p)", inline=False)
embed.add_field(name="K/D", value=comInfo[0], inline=True)
embed.add_field(name="승률", value=comInfo[1], inline=True)
embed.add_field(name="Top 10 비율", value=comInfo[2], inline=True)
embed.add_field(name="평균딜량", value=comInfo[3], inline=True)
embed.add_field(name="게임수", value=comInfo[4] + "판", inline=True)
embed.add_field(name="최다킬수", value=comInfo[5] + "킬", inline=True)
embed.add_field(name="헤드샷 비율", value=comInfo[6] , inline=True)
embed.add_field(name="저격거리", value=comInfo[7], inline=True)
embed.add_field(name="평균생존시간", value=comInfo[8], inline=True)
embed.set_footer(text='Service provided by Hoplin.',
icon_url='https://avatars2.githubusercontent.com/u/45956041?s=460&u=1caf3b112111cbd9849a2b95a88c3a8f3a15ecfa&v=4')
await message.channel.send("PUBG player " + playerNickname + "'s FPP squad que information",
embed=embed)
except HTTPError as e:
embed = discord.Embed(title="Not existing plyer",
description="Can't find player " + playerNickname + "'s information.\nPlease check player's nickname again",
color=0x5CD1E5)
await message.channel.send("Error : Not existing player", embed=embed)
except AttributeError as e:
embed = discord.Embed(title="Not existing plyer",
description="Can't find player " + playerNickname + "'s information.\nPlease check player's nickname again",
color=0x5CD1E5)
await message.channel.send("Error : Not existing player", embed=embed)
client.run(token)
| 65.793492 | 185 | 0.531739 | 5,329 | 52,569 | 5.21261 | 0.07037 | 0.032832 | 0.053352 | 0.069767 | 0.963316 | 0.96202 | 0.96202 | 0.961984 | 0.959644 | 0.959644 | 0 | 0.029676 | 0.341684 | 52,569 | 798 | 186 | 65.87594 | 0.772994 | 0.082539 | 0 | 0.908789 | 0 | 0.039801 | 0.221599 | 0.011551 | 0 | 0 | 0.006721 | 0 | 0 | 1 | 0 | false | 0 | 0.028192 | 0 | 0.029851 | 0.00995 | 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 |
c22f706f3be2ad129576123424e86d55514ca2f0 | 201 | py | Python | bot/platforms/vk/commands/others/__init__.py | AiratK/kaishnik-bot | c42351611a40a04d78c8ae481b97339adbd321e5 | [
"MIT"
] | 15 | 2019-04-30T14:37:15.000Z | 2022-02-09T06:43:00.000Z | bot/platforms/vk/commands/others/__init__.py | AiratK/kaishnik-bot | c42351611a40a04d78c8ae481b97339adbd321e5 | [
"MIT"
] | 4 | 2019-03-18T06:09:38.000Z | 2021-12-10T06:12:26.000Z | bot/platforms/vk/commands/others/__init__.py | AiratK/kaishnik-bot | c42351611a40a04d78c8ae481b97339adbd321e5 | [
"MIT"
] | 2 | 2020-04-12T10:31:52.000Z | 2021-06-07T20:18:08.000Z | from bot.platforms.vk.commands.others import week
from bot.platforms.vk.commands.others import brs
from bot.platforms.vk.commands.others import help
from bot.platforms.vk.commands.others import donate
| 40.2 | 51 | 0.840796 | 32 | 201 | 5.28125 | 0.34375 | 0.16568 | 0.378698 | 0.426036 | 0.899408 | 0.899408 | 0.899408 | 0 | 0 | 0 | 0 | 0 | 0.079602 | 201 | 4 | 52 | 50.25 | 0.913514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 8 |
a0366decc3e821e9c34e8ef9f19ae0819420f857 | 86 | py | Python | dual_rocks/api/viewsets/__init__.py | dual-rocks/dual.rocks | 6231833fcc36839b1dc6de79edda99d9d15c2cfe | [
"MIT"
] | null | null | null | dual_rocks/api/viewsets/__init__.py | dual-rocks/dual.rocks | 6231833fcc36839b1dc6de79edda99d9d15c2cfe | [
"MIT"
] | 10 | 2020-02-18T00:37:32.000Z | 2022-03-12T00:17:58.000Z | dual_rocks/api/viewsets/__init__.py | dual-rocks/dual.rocks | 6231833fcc36839b1dc6de79edda99d9d15c2cfe | [
"MIT"
] | null | null | null | from .user_profile import * # noqa: F401 F403
from .chat import * # noqa: F401 F403
| 28.666667 | 46 | 0.697674 | 13 | 86 | 4.538462 | 0.615385 | 0.338983 | 0.474576 | 0.610169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 0.209302 | 86 | 2 | 47 | 43 | 0.691176 | 0.360465 | 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 |
a06d00aa928b7b6e4f6da8f111d7203326bc58ed | 175 | py | Python | baseconvert/__init__.py | frolkit/baseconvert | a5d7b475429da0a2b6a9efb3911915fa80c93784 | [
"MIT"
] | 13 | 2017-08-25T15:54:23.000Z | 2021-04-28T15:57:54.000Z | Python/lab4 [2, 6, 7, 12, 14]/venv/Lib/site-packages/baseconvert/__init__.py | da-foxbite/KSU141 | 133637abb4f465aeecb845e6735ba383a2fdd689 | [
"MIT"
] | 4 | 2017-09-26T19:42:43.000Z | 2021-09-02T16:15:36.000Z | baseconvert/__init__.py | mulkieran/baseconvert | 26c9a2c07c2ffcde7d078fb812419ca6d388900b | [
"MIT"
] | 5 | 2016-09-17T14:44:54.000Z | 2021-12-29T20:32:38.000Z | from baseconvert.baseconvert import BaseConverter
from baseconvert.baseconvert import base
import pkg_resources
__version__ = pkg_resources.require("baseconvert")[0].version
| 29.166667 | 61 | 0.857143 | 20 | 175 | 7.2 | 0.5 | 0.208333 | 0.361111 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006211 | 0.08 | 175 | 5 | 62 | 35 | 0.888199 | 0 | 0 | 0 | 0 | 0 | 0.062857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
26218abaa5d39217bc0435e2ce2c02009b493352 | 1,626 | py | Python | data_clean/data_checks_5_8_2017.py | beilmanmich/cap_june_2017 | 7bd4bc56e3d610e5919e8259d0d0cb6f2af06d9d | [
"CC-BY-3.0"
] | null | null | null | data_clean/data_checks_5_8_2017.py | beilmanmich/cap_june_2017 | 7bd4bc56e3d610e5919e8259d0d0cb6f2af06d9d | [
"CC-BY-3.0"
] | null | null | null | data_clean/data_checks_5_8_2017.py | beilmanmich/cap_june_2017 | 7bd4bc56e3d610e5919e8259d0d0cb6f2af06d9d | [
"CC-BY-3.0"
] | null | null | null | # coding: utf-8
import pandas as pd
import pickle
df = pd.DaraFrame(pickle.load(open('/data/dummied_recent_data.pkl', 'rb')))
df = pd.DataFrame(pickle.load(open('/data/dummied_recent_data.pkl', 'rb')))
df = pd.DataFrame(pickle.load(open('data/dummied_recent_data.pkl', 'rb')))
df.head[:5]
df.head(n=5)
print list(df)
df2 = pd.DataFrame(pickle.load(open('data/cleaned_data_with_features.pkl', 'rb')))
print list(df2)
print list(df)
print list(df2)
df2 = pd.DataFrame(pickle.load(open('data/cleaned_data_with_features.pkl', 'rb')))
print list(df2)
df = pd.DataFrame(pickle.load(open('data/dummied_recent_data.pkl', 'rb')))
print list(df)
df = pd.DataFrame(pickle.load(open('data/dummied_recent_data.pkl', 'rb')))
print list(df)
df2 = pd.DataFrame(pickle.load(open('data/cleaned_data_with_features.pkl', 'rb')))
print list(df2)
df = pd.DataFrame(pickle.load(open('data/dummied_recent_data.pkl', 'rb')))
print list(df)
df2 = pd.DataFrame(pickle.load(open('data/cleaned_data_with_features.pkl', 'rb')))
print list(df2)
df = pd.DataFrame(pickle.load(open('data/dummied_recent_data.pkl', 'rb')))
print list(df)
df3 = pd.DataFrame(pickle.load(open('dummied_full_data.pkl', 'rb')))
df3 = pd.DataFrame(pickle.load(open('data/dummied_full_data.pkl', 'rb')))
print list(df3)
df3 = pd.DataFrame(pickle.load(open('data/dummied_full_data.pkl', 'rb')))
print list(df3)
df3.shape
df4 = pd.DataFrame(pickle.load(open('data/read_score.pkl'', 'rb')))
df4 = pd.DataFrame(pickle.load(open('data/read_score.pkl', 'rb')))
print list(df4)
df4.head(n=5)
df5 = pd.DataFrame(pickle.load(open('data/polar_score.pkl', 'rb')))
print list(df5)
df5.head(n=5)
| 39.658537 | 82 | 0.731857 | 275 | 1,626 | 4.2 | 0.127273 | 0.147186 | 0.206061 | 0.249351 | 0.892641 | 0.851082 | 0.801732 | 0.801732 | 0.801732 | 0.801732 | 0 | 0.017834 | 0.068881 | 1,626 | 40 | 83 | 40.65 | 0.745046 | 0.007995 | 0 | 0.615385 | 0 | 0 | 0.312228 | 0.255121 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.051282 | null | null | 0.384615 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
263d1bb4fa62fd23f6d1e56694aec3c603ea915f | 8,569 | py | Python | conanguide/ui/widget/profile/profile_attribute_ui.py | afri-bit/conan-guide | 4eac41710ee83da64cea1e5ce2aafc09844c4fa1 | [
"MIT"
] | 8 | 2021-05-31T10:45:14.000Z | 2022-03-29T12:55:58.000Z | conanguide/ui/widget/profile/profile_attribute_ui.py | afri-bit/conan-blade | 4eac41710ee83da64cea1e5ce2aafc09844c4fa1 | [
"MIT"
] | 4 | 2021-05-31T10:46:37.000Z | 2021-07-24T08:15:01.000Z | conanguide/ui/widget/profile/profile_attribute_ui.py | afri-bit/conan-blade | 4eac41710ee83da64cea1e5ce2aafc09844c4fa1 | [
"MIT"
] | 2 | 2021-05-31T17:42:28.000Z | 2021-07-23T17:40:28.000Z | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'profile_attribute.ui'
##
## Created by: Qt User Interface Compiler version 5.15.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide2.QtCore import *
from PySide2.QtGui import *
from PySide2.QtWidgets import *
from conanguide.ui.res import resources_rc
class Ui_WidgetProfileAttribute(object):
def setupUi(self, WidgetProfileAttribute):
if not WidgetProfileAttribute.objectName():
WidgetProfileAttribute.setObjectName(u"WidgetProfileAttribute")
WidgetProfileAttribute.resize(551, 205)
self.verticalLayout = QVBoxLayout(WidgetProfileAttribute)
self.verticalLayout.setSpacing(2)
self.verticalLayout.setObjectName(u"verticalLayout")
self.verticalLayout.setContentsMargins(2, 2, 2, 2)
self.groupBox = QGroupBox(WidgetProfileAttribute)
self.groupBox.setObjectName(u"groupBox")
self.horizontalLayout = QHBoxLayout(self.groupBox)
self.horizontalLayout.setSpacing(2)
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.horizontalLayout.setContentsMargins(2, 2, 2, 2)
self.frame_20 = QFrame(self.groupBox)
self.frame_20.setObjectName(u"frame_20")
self.frame_20.setFrameShape(QFrame.StyledPanel)
self.frame_20.setFrameShadow(QFrame.Raised)
self.verticalLayout_11 = QVBoxLayout(self.frame_20)
self.verticalLayout_11.setSpacing(0)
self.verticalLayout_11.setObjectName(u"verticalLayout_11")
self.verticalLayout_11.setContentsMargins(0, 0, 0, 0)
self.toolButtonAdd = QToolButton(self.frame_20)
self.toolButtonAdd.setObjectName(u"toolButtonAdd")
self.toolButtonAdd.setMinimumSize(QSize(25, 25))
self.toolButtonAdd.setMaximumSize(QSize(25, 25))
icon = QIcon()
icon.addFile(u":/icon/light/add.png", QSize(), QIcon.Normal, QIcon.Off)
self.toolButtonAdd.setIcon(icon)
self.verticalLayout_11.addWidget(self.toolButtonAdd)
self.toolButtonRemove = QToolButton(self.frame_20)
self.toolButtonRemove.setObjectName(u"toolButtonRemove")
self.toolButtonRemove.setMinimumSize(QSize(25, 25))
self.toolButtonRemove.setMaximumSize(QSize(25, 25))
icon1 = QIcon()
icon1.addFile(u":/icon/light/remove.png", QSize(), QIcon.Normal, QIcon.Off)
self.toolButtonRemove.setIcon(icon1)
self.verticalLayout_11.addWidget(self.toolButtonRemove)
self.toolButtonClear = QToolButton(self.frame_20)
self.toolButtonClear.setObjectName(u"toolButtonClear")
self.toolButtonClear.setMinimumSize(QSize(25, 25))
self.toolButtonClear.setMaximumSize(QSize(25, 25))
icon2 = QIcon()
icon2.addFile(u":/icon/light/garbage_can.png", QSize(), QIcon.Normal, QIcon.Off)
self.toolButtonClear.setIcon(icon2)
self.verticalLayout_11.addWidget(self.toolButtonClear)
self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)
self.verticalLayout_11.addItem(self.verticalSpacer)
self.horizontalLayout.addWidget(self.frame_20)
self.tableViewAttributes = QTableView(self.groupBox)
self.tableViewAttributes.setObjectName(u"tableViewAttributes")
self.horizontalLayout.addWidget(self.tableViewAttributes)
self.verticalLayout.addWidget(self.groupBox)
self.retranslateUi(WidgetProfileAttribute)
QMetaObject.connectSlotsByName(WidgetProfileAttribute)
# setupUi
def retranslateUi(self, WidgetProfileAttribute):
WidgetProfileAttribute.setWindowTitle(QCoreApplication.translate("WidgetProfileAttribute", u"Form", None))
self.groupBox.setTitle(QCoreApplication.translate("WidgetProfileAttribute", u"GroupBox", None))
self.toolButtonAdd.setText("")
self.toolButtonRemove.setText(QCoreApplication.translate("WidgetProfileAttribute", u"-", None))
self.toolButtonClear.setText(QCoreApplication.translate("WidgetProfileAttribute", u"C", None))
# re# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'profile_attribute.ui'
##
## Created by: Qt User Interface Compiler version 5.15.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide2.QtCore import *
from PySide2.QtGui import *
from PySide2.QtWidgets import *
from conanguide.ui.res import resources_rc
class Ui_WidgetProfileAttribute(object):
def setupUi(self, WidgetProfileAttribute):
if not WidgetProfileAttribute.objectName():
WidgetProfileAttribute.setObjectName(u"WidgetProfileAttribute")
WidgetProfileAttribute.resize(551, 205)
self.verticalLayout = QVBoxLayout(WidgetProfileAttribute)
self.verticalLayout.setSpacing(2)
self.verticalLayout.setObjectName(u"verticalLayout")
self.verticalLayout.setContentsMargins(2, 2, 2, 2)
self.groupBox = QGroupBox(WidgetProfileAttribute)
self.groupBox.setObjectName(u"groupBox")
self.horizontalLayout = QHBoxLayout(self.groupBox)
self.horizontalLayout.setSpacing(2)
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.horizontalLayout.setContentsMargins(2, 2, 2, 2)
self.frame_20 = QFrame(self.groupBox)
self.frame_20.setObjectName(u"frame_20")
self.frame_20.setFrameShape(QFrame.StyledPanel)
self.frame_20.setFrameShadow(QFrame.Raised)
self.verticalLayout_11 = QVBoxLayout(self.frame_20)
self.verticalLayout_11.setSpacing(0)
self.verticalLayout_11.setObjectName(u"verticalLayout_11")
self.verticalLayout_11.setContentsMargins(0, 0, 0, 0)
self.toolButtonAdd = QToolButton(self.frame_20)
self.toolButtonAdd.setObjectName(u"toolButtonAdd")
self.toolButtonAdd.setMinimumSize(QSize(25, 25))
self.toolButtonAdd.setMaximumSize(QSize(25, 25))
icon = QIcon()
icon.addFile(u":/icon/light/add.png", QSize(), QIcon.Normal, QIcon.Off)
self.toolButtonAdd.setIcon(icon)
self.verticalLayout_11.addWidget(self.toolButtonAdd)
self.toolButtonRemove = QToolButton(self.frame_20)
self.toolButtonRemove.setObjectName(u"toolButtonRemove")
self.toolButtonRemove.setMinimumSize(QSize(25, 25))
self.toolButtonRemove.setMaximumSize(QSize(25, 25))
icon1 = QIcon()
icon1.addFile(u":/icon/light/remove.png", QSize(), QIcon.Normal, QIcon.Off)
self.toolButtonRemove.setIcon(icon1)
self.verticalLayout_11.addWidget(self.toolButtonRemove)
self.toolButtonClear = QToolButton(self.frame_20)
self.toolButtonClear.setObjectName(u"toolButtonClear")
self.toolButtonClear.setMinimumSize(QSize(25, 25))
self.toolButtonClear.setMaximumSize(QSize(25, 25))
icon2 = QIcon()
icon2.addFile(u":/icon/light/garbage_can.png", QSize(), QIcon.Normal, QIcon.Off)
self.toolButtonClear.setIcon(icon2)
self.verticalLayout_11.addWidget(self.toolButtonClear)
self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)
self.verticalLayout_11.addItem(self.verticalSpacer)
self.horizontalLayout.addWidget(self.frame_20)
self.tableViewAttributes = QTableView(self.groupBox)
self.tableViewAttributes.setObjectName(u"tableViewAttributes")
self.horizontalLayout.addWidget(self.tableViewAttributes)
self.verticalLayout.addWidget(self.groupBox)
self.retranslateUi(WidgetProfileAttribute)
QMetaObject.connectSlotsByName(WidgetProfileAttribute)
# setupUi
def retranslateUi(self, WidgetProfileAttribute):
WidgetProfileAttribute.setWindowTitle(QCoreApplication.translate("WidgetProfileAttribute", u"Form", None))
self.groupBox.setTitle(QCoreApplication.translate("WidgetProfileAttribute", u"GroupBox", None))
self.toolButtonAdd.setText("")
self.toolButtonRemove.setText(QCoreApplication.translate("WidgetProfileAttribute", u"-", None))
self.toolButtonClear.setText(QCoreApplication.translate("WidgetProfileAttribute", u"C", None))
# retranslateUi
| 43.94359 | 114 | 0.699381 | 818 | 8,569 | 7.270171 | 0.140587 | 0.078695 | 0.033294 | 0.025223 | 0.997478 | 0.997478 | 0.997478 | 0.997478 | 0.997478 | 0.997478 | 0 | 0.028216 | 0.164547 | 8,569 | 194 | 115 | 44.170103 | 0.802486 | 0.053448 | 0 | 1 | 1 | 0 | 0.0827 | 0.041479 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.060606 | 0 | 0.106061 | 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 |
cd25b5661f5488f6468cf42493d15e5384038397 | 73,523 | py | Python | operator_api/contractor/tests.py | liquidity-network/nocust-hub | 76f49f9b8a6c264fcbe9e0c110e98031d463c0a8 | [
"MIT"
] | 1 | 2021-08-04T06:09:46.000Z | 2021-08-04T06:09:46.000Z | operator_api/contractor/tests.py | liquidity-network/nocust-hub | 76f49f9b8a6c264fcbe9e0c110e98031d463c0a8 | [
"MIT"
] | 8 | 2020-11-01T19:48:21.000Z | 2022-02-10T14:12:25.000Z | operator_api/contractor/tests.py | liquidity-network/nocust-hub | 76f49f9b8a6c264fcbe9e0c110e98031d463c0a8 | [
"MIT"
] | 3 | 2020-11-01T15:59:56.000Z | 2021-09-16T07:18:18.000Z | import random
from django.conf import settings
from eth_utils import remove_0x_prefix
from contractor.rpctestcase import RPCTestCase
from contractor.tasks import respond_to_challenges, slash_bad_withdrawals, confirm_withdrawals
from contractor.tasks.send_queued_transactions import send_queued_transactions
from operator_api import crypto, merkle_tree, testrpc_accounts
from operator_api.merkle_tree import calculate_merkle_proof
from operator_api.simulation.deposit import create_random_deposits, make_deposit
from operator_api.simulation.withdrawal import place_parallel_withdrawals
from operator_api.simulation.eon import commit_eon, advance_to_next_eon, advance_past_slack_period, advance_past_extended_slack_period
from operator_api.simulation.epoch import confirm_on_chain_events
from operator_api.simulation.registration import register_testrpc_accounts
from operator_api.simulation.tokens import deploy_new_test_token, distribute_token_balance_to_addresses
from operator_api.simulation.swap import send_swap, freeze_last_swap, finalize_last_swap, cancel_last_swap, init_swap_challenge, freeze_swap, cancel_swap, finalize_swap
from operator_api.tx_merkle_tree import TransactionMerkleTree
from operator_api.util import cyan, long_string_to_list, csf_to_list
from ledger.context.wallet_transfer import WalletTransferContext
from ledger.models import Wallet, TokenCommitment, Token, RootCommitment, TokenPair, WithdrawalRequest, Withdrawal, Transfer
from ledger.tests import simulate_eon_with_random_transfers
from ledger.token_registration import register_token
from swapper.tasks.cancel_finalize_swaps import cancel_finalize_swaps_for_eon
from swapper.tasks.confirm_swaps import confirm_swaps_for_eon
from swapper.tasks.process_swaps import process_swaps_for_eon
class ContractorTests(RPCTestCase):
def test_empty_state_update_challenge_responder(self):
eth_token = Token.objects.first()
# Initialize accounts from testrpc
registered_accounts = register_testrpc_accounts(
test_case=self,
token=eth_token)
# Do transfers, create checkpoint and broadcast it
commit_eon(
test_case=self,
eon_number=1)
self.assertEqual(self.contract_interface.get_unmanaged_funds(
eth_token.address, 1), 0)
self.assertEqual(self.contract_interface.get_managed_funds(
eth_token.address, 1), 0)
simulate_eon_with_random_transfers(
test_case=self,
eon_number=1,
accounts=registered_accounts,
token=eth_token)
self.assertEqual(self.contract_interface.get_unmanaged_funds(
eth_token.address, 1), self.contract_interface.get_total_balance(eth_token.address))
self.assertEqual(self.contract_interface.get_managed_funds(
eth_token.address, 1), 0)
self.assertEqual(self.contract_interface.get_unmanaged_funds(
eth_token.address, 2), 0)
# Issue challenges
advance_past_slack_period(test_case=self)
for i in range(1, len(registered_accounts)):
wallet = Wallet.objects.get(address=remove_0x_prefix(
registered_accounts[i].get('address')))
wallet_transfer_context = WalletTransferContext(
wallet=wallet, transfer=None)
active_state = wallet_transfer_context.last_appended_active_state(
eon_number=1)
v, r, s = active_state.operator_signature.vrs()
tx_set_root = crypto.zfill(
crypto.decode_hex(active_state.tx_set_hash))
deltas = [int(active_state.updated_spendings),
int(active_state.updated_gains)]
self.contract_interface.issue_state_update_challenge_empty(
token_address=eth_token.address,
wallet=wallet.address,
trail_identifier=wallet.trail_identifier,
tx_set_root=tx_set_root,
deltas=deltas,
r=crypto.uint256(r), s=crypto.uint256(s), v=v)
# Assert challenges are alive
live_challenges = self.contract_interface.get_live_challenge_count(
eon_number=2)
self.assertEqual(live_challenges, len(registered_accounts) - 1)
cyan('PRE-ANSWER Live Challenges On-Chain: {}'.format(live_challenges))
confirm_on_chain_events(self)
# Respond to challenges
respond_to_challenges()
send_queued_transactions()
commit_eon(
test_case=self,
eon_number=2)
self.assertEqual(self.contract_interface.get_unmanaged_funds(
eth_token.address, 3), 0)
self.assertEqual(self.contract_interface.get_managed_funds(
eth_token.address, 3), self.contract_interface.get_total_balance(eth_token.address))
# Assert challenges are dead
live_challenges = self.contract_interface.get_live_challenge_count(
eon_number=2)
cyan('POST-ANSWER Live Challenges On-Chain: {}'.format(live_challenges))
self.assertEqual(live_challenges, 0)
def test_state_update_challenge_responder(self):
eth_token = Token.objects.first()
# Initialize accounts from testrpc
registered_accounts = register_testrpc_accounts(
test_case=self,
token=eth_token)
# Do transfers, create checkpoint and broadcast it
commit_eon(
test_case=self,
eon_number=1)
self.assertEqual(self.contract_interface.get_unmanaged_funds(
eth_token.address, 1), 0)
self.assertEqual(self.contract_interface.get_managed_funds(
eth_token.address, 1), 0)
simulate_eon_with_random_transfers(
test_case=self,
eon_number=1,
accounts=registered_accounts,
token=eth_token)
self.assertEqual(self.contract_interface.get_unmanaged_funds(
eth_token.address, 1), self.contract_interface.get_total_balance(eth_token.address))
self.assertEqual(self.contract_interface.get_managed_funds(
eth_token.address, 1), 0)
self.assertEqual(self.contract_interface.get_unmanaged_funds(
eth_token.address, 2), 0)
# Issue challenges
advance_past_slack_period(test_case=self)
last_checkpoint = self.contract_interface.get_last_checkpoint()
previous_checkpoint = RootCommitment.objects.get(eon_number=1)
self.assertEqual(
crypto.hex_value(last_checkpoint[1]),
RootCommitment.objects.get(eon_number=last_checkpoint[0]).merkle_root)
cyan('Issue challenges in eon: {}'.format(
self.contract_interface.get_current_eon_number()))
skip = 0
for i in range(1, len(registered_accounts)):
wallet = Wallet.objects.get(
token=eth_token,
address=remove_0x_prefix(registered_accounts[i].get('address')))
wallet_transfer_context = WalletTransferContext(
wallet=wallet, transfer=None)
balance = wallet_transfer_context.balance_as_of_eon(
eon_number=1)
active_state = wallet_transfer_context.last_appended_active_state(
eon_number=1)
if active_state is None:
cyan('No Challenge by: {}'.format(wallet.address))
skip += 1
continue
v, r, s = active_state.operator_signature.vrs()
tx_set_root = crypto.zfill(
crypto.decode_hex(active_state.tx_set_hash))
deltas = [int(active_state.updated_spendings),
int(active_state.updated_gains)]
self.assertEqual(len(balance.merkle_proof_hashes) % 64, 0)
self.assertEqual(balance.eon_number, last_checkpoint[0] - 1)
node_hash = merkle_tree.leaf_hash(
merkle_tree.wallet_leaf_inner_hash,
{
'contract': settings.HUB_LQD_CONTRACT_ADDRESS,
'token': eth_token.address,
'wallet': wallet.address,
'left': balance.left,
'right': balance.right,
'active_state_checksum': b'\0'*32,
'passive_checksum': b'\0'*32,
'passive_amount': 0,
'passive_marker': 0,
})
token_commitment = TokenCommitment.objects.get(
token=balance.wallet.token,
root_commitment__eon_number=balance.eon_number)
self.assertEqual(self.contract_interface.check_exclusive_allotment_proof(
allotment_trail=int(balance.merkle_proof_trail),
membership_trail=eth_token.trail,
node=node_hash,
merkle_root=crypto.decode_hex(previous_checkpoint.merkle_root),
allotment_chain=[crypto.zfill(crypto.decode_hex(v)) for v in
long_string_to_list(balance.merkle_proof_hashes, 64)],
membership_chain=[crypto.zfill(crypto.decode_hex(checksum)) for checksum in
long_string_to_list(token_commitment.membership_hashes, 64)],
value=csf_to_list(balance.merkle_proof_values, int),
left=int(balance.left),
right=int(balance.right)
), balance.right)
self.contract_interface.issue_state_update_challenge_merkle(
token_address=wallet.token.address,
wallet=wallet.address,
active_state_checksum=b'\0' * 32,
trail=int(balance.merkle_proof_trail),
allotment_chain=[crypto.zfill(crypto.decode_hex(v)) for v in
long_string_to_list(balance.merkle_proof_hashes, 64)],
membership_chain=[crypto.zfill(crypto.decode_hex(checksum)) for checksum in
long_string_to_list(token_commitment.membership_hashes, 64)],
value=csf_to_list(balance.merkle_proof_values, int),
left=int(balance.left),
right=int(balance.right),
tx_set_root=tx_set_root,
deltas=deltas,
r=crypto.uint256(r), s=crypto.uint256(s), v=v,
passive_checksum=b'\0'*32,
passive_amount=0,
passive_marker=0)
# Assert challenges are alive
live_challenges = self.contract_interface.get_live_challenge_count(
eon_number=2)
self.assertEqual(live_challenges, len(registered_accounts) - 1 - skip)
cyan('PRE-ANSWER Live Challenges On-Chain: {}'.format(live_challenges))
confirm_on_chain_events(self)
# Respond to challenges
respond_to_challenges()
send_queued_transactions()
# Assert challenges are dead
live_challenges = self.contract_interface.get_live_challenge_count(
eon_number=2)
cyan('POST-ANSWER Live Challenges On-Chain: {}'.format(live_challenges))
self.assertEqual(live_challenges, 0)
def test_transaction_delivery_challenge_responder(self):
eth_token = Token.objects.first()
# Initialize accounts from testrpc
registered_accounts = register_testrpc_accounts(
test_case=self,
token=eth_token)
# Do transfers, create checkpoint and broadcast it
commit_eon(
test_case=self,
eon_number=1)
self.assertEqual(self.contract_interface.get_unmanaged_funds(
eth_token.address, 1), 0)
self.assertEqual(self.contract_interface.get_managed_funds(
eth_token.address, 1), 0)
simulate_eon_with_random_transfers(
test_case=self,
eon_number=1,
accounts=registered_accounts,
token=eth_token)
self.assertEqual(self.contract_interface.get_unmanaged_funds(
eth_token.address, 1), self.contract_interface.get_total_balance(eth_token.address))
self.assertEqual(self.contract_interface.get_managed_funds(
eth_token.address, 1), 0)
self.assertEqual(self.contract_interface.get_unmanaged_funds(
eth_token.address, 2), 0)
# Issue challenges
advance_past_slack_period(test_case=self)
skip = 0
for i in range(1, len(registered_accounts)):
wallet = Wallet.objects.get(token=eth_token, address=remove_0x_prefix(
registered_accounts[i].get('address')))
wallet_transfer_context = WalletTransferContext(
wallet=wallet, transfer=None)
transfer = wallet_transfer_context.last_appended_incoming_active_transfer(
eon_number=1)
if transfer is None:
cyan('No Challenge by: {}'.format(wallet.address))
skip += 1
continue
sender = transfer.wallet
sender_transfer_context = WalletTransferContext(
wallet=sender, transfer=transfer)
self.assertEqual(sender.address, transfer.wallet.address)
self.assertEqual(wallet.address, transfer.recipient.address)
transfers_list_nonce_index_map = {}
transfers_list = sender_transfer_context.authorized_transfers_list_shorthand(
only_appended=True,
force_append=False,
last_transfer_is_finalized=False,
index_map=transfers_list_nonce_index_map)
transfer_tree = TransactionMerkleTree(transfers_list)
transfer_index = transfers_list_nonce_index_map.get(
int(transfer.nonce))
transfer_node = transfer_tree.merkle_tree_leaf_map.get(
transfer_index)
transfer_proof = [node.get('hash') for node in calculate_merkle_proof(
transfer_index, transfer_node)]
sender_active_state = sender_transfer_context.last_appended_active_state(
eon_number=1)
self.assertEqual(sender_active_state.tx_set_hash,
crypto.hex_value(transfer_tree.root_hash()))
v, r, s = sender_active_state.operator_signature.vrs()
tx_set_root = crypto.zfill(
crypto.decode_hex(sender_active_state.tx_set_hash))
deltas = [int(sender_active_state.updated_spendings),
int(sender_active_state.updated_gains)]
self.assertTrue(self.contract_interface.check_merkle_membership_proof(
trail=int(transfer_index),
chain=[crypto.zfill(x) for x in transfer_proof],
node=transfer_node.get('hash'),
merkle_root=tx_set_root))
chain_transition_checksum = self.contract_interface.check_proof_of_transition_agreement(
token_address=wallet.token.address,
holder=sender.address,
trail_identifier=sender.trail_identifier,
eon_number=1,
tx_set_root=tx_set_root,
deltas=deltas,
attester=settings.HUB_OWNER_ACCOUNT_ADDRESS,
r=crypto.uint256(r), s=crypto.uint256(s), v=v)
self.assertEqual(
crypto.hex_value(chain_transition_checksum),
crypto.hex_value(sender_active_state.checksum()))
self.contract_interface.issue_delivery_challenge(
token_address=wallet.token.address,
wallet=wallet.address,
sender=sender.address,
nonce=int(transfer.nonce),
sender_tx_recipient_trails=[
sender.trail_identifier, transfer_index, transfer.recipient.trail_identifier],
chain=[crypto.zfill(x) for x in transfer_proof],
tx_set_root=tx_set_root,
deltas=deltas,
amount=int(transfer.amount),
r=crypto.uint256(r), s=crypto.uint256(s), v=v)
# Assert challenges are alive
live_challenges = self.contract_interface.get_live_challenge_count(
eon_number=2)
self.assertEqual(live_challenges, len(registered_accounts) - 1 - skip)
cyan('PRE-ANSWER Live Challenges On-Chain: {}'.format(live_challenges))
confirm_on_chain_events(self)
# Respond to challenges
respond_to_challenges()
send_queued_transactions()
# Assert challenges are dead
live_challenges = self.contract_interface.get_live_challenge_count(
eon_number=2)
cyan('POST-ANSWER Live Challenges On-Chain: {}'.format(live_challenges))
self.assertEqual(live_challenges, 0)
def test_withdrawal_slash_client(self):
eth_token = Token.objects.first()
# Initialize accounts from testrpc, commit to registrations
registered_accounts = register_testrpc_accounts(
test_case=self,
token=eth_token)
commit_eon(
test_case=self,
eon_number=1)
self.assertEqual(self.contract_interface.get_unmanaged_funds(
eth_token.address, 1), 0)
self.assertEqual(self.contract_interface.get_managed_funds(
eth_token.address, 1), 0)
advance_to_next_eon(
test_case=self,
eon_number=2)
self.assertEqual(self.contract_interface.get_unmanaged_funds(
eth_token.address, 2), 0)
self.assertEqual(self.contract_interface.get_managed_funds(
eth_token.address, 2), 0)
commit_eon(
test_case=self,
eon_number=2)
# Do transfers, and commit to them
simulate_eon_with_random_transfers(
test_case=self,
eon_number=2,
accounts=registered_accounts,
token=eth_token)
self.assertEqual(self.contract_interface.get_unmanaged_funds(
eth_token.address, 2), self.contract_interface.get_total_balance(eth_token.address))
self.assertEqual(self.contract_interface.get_managed_funds(
eth_token.address, 2), 0)
# Issue withdrawals
dishonest_clients = 0
to_slash = 0
token_commitment = TokenCommitment.objects.get(
token=eth_token,
root_commitment__eon_number=2)
for i in range(1, len(registered_accounts)):
wallet = Wallet.objects.get(token=eth_token, address=remove_0x_prefix(
registered_accounts[i].get('address')))
wallet_transfer_context = WalletTransferContext(
wallet=wallet, transfer=None)
allotment = wallet_transfer_context.balance_as_of_eon(eon_number=2)
available_balance = wallet_transfer_context.loosely_available_funds_at_eon(
eon_number=3,
current_eon_number=3,
is_checkpoint_created=True,
only_appended=True)
passive_checksum, passive_amount, passive_marker = wallet_transfer_context.get_passive_values(
eon_number=1)
dishonest = random.randint(
0, 2) < 2 and available_balance < allotment.amount()
honest_draw = min(available_balance, allotment.amount())
overdraw = max(available_balance, allotment.amount())
total_draw = overdraw if dishonest else honest_draw
if dishonest:
dishonest_clients += 1
withdrawal_amounts = [total_draw // 4,
total_draw // 2, total_draw // 4]
for withdrawal_amount in withdrawal_amounts:
if dishonest:
to_slash += withdrawal_amount
cyan([dishonest, wallet.address,
withdrawal_amount, available_balance])
self.contract_interface.withdraw(
token_address=wallet.token.address,
wallet=wallet.address,
active_state_checksum=crypto.zfill(
allotment.active_state_checksum()),
trail=int(allotment.merkle_proof_trail),
allotment_chain=[crypto.zfill(crypto.decode_hex(checksum)) for checksum in
long_string_to_list(allotment.merkle_proof_hashes, 64)],
membership_chain=[crypto.zfill(crypto.decode_hex(checksum)) for checksum in
long_string_to_list(token_commitment.membership_hashes, 64)],
values=csf_to_list(allotment.merkle_proof_values, int),
exclusive_allotment_interval=[
int(allotment.left), int(allotment.right)],
withdrawal_amount=int(withdrawal_amount),
passive_checksum=passive_checksum,
passive_amount=passive_amount,
passive_marker=passive_marker)
client_state_variables = self.contract_interface.get_client_contract_state_variables(
wallet.token.address,
wallet.address)
withdrawals_on_chain = client_state_variables[6]
self.assertTrue(len(withdrawals_on_chain)
== len(withdrawal_amounts))
for i in range(len(withdrawals_on_chain)):
pending_withdrawal = withdrawals_on_chain[i]
withdrawal_on_chain_eon_number = pending_withdrawal[0]
withdrawal_on_chain_amount = pending_withdrawal[1]
self.assertEqual(withdrawal_on_chain_eon_number, 3)
self.assertEqual(withdrawal_on_chain_amount,
withdrawal_amounts[i])
cyan('{} slashes expected, {} wei to be slashed'.format(
dishonest_clients, to_slash))
pre_pending_withdrawal = self.contract_interface.get_pending_withdrawals(
eth_token.address, eon_number=3)
cyan('PRE-SLASH Amount Pending Withdrawal On-Chain: {}'.format(pre_pending_withdrawal))
confirm_on_chain_events(self)
slash_bad_withdrawals()
send_queued_transactions()
post_pending_withdrawal = self.contract_interface.get_pending_withdrawals(
eth_token.address, eon_number=3)
cyan('POST-SLASH Amount Pending Withdrawal On-Chain: {}'.format(post_pending_withdrawal))
withdrawals = WithdrawalRequest.objects.filter(
slashed=True, eon_number__gte=1)
self.assertEqual(len(withdrawals), dishonest_clients*3)
self.assertEqual(post_pending_withdrawal, pre_pending_withdrawal - to_slash,
"Expected to slash more: {}".format((pre_pending_withdrawal - to_slash) < post_pending_withdrawal))
def test_swap_delivery_challenge_responder(self):
eth_token = Token.objects.first()
lqd_token_address = deploy_new_test_token(test_case=self)
distribute_token_balance_to_addresses(
test_case=self,
token_address=lqd_token_address,
recipients=testrpc_accounts.accounts)
lqd_token = register_token(
token_address=lqd_token_address,
name='Liquidity',
short_name='LQD',
register_on_chain=True)
send_queued_transactions()
tokens = [
eth_token,
lqd_token
]
tp = TokenPair.objects.create(token_from=eth_token, token_to=lqd_token)
self.assertEqual(
tp.conduit, '3e323616eb611ee4b3006a7643e0baf6aea1c182')
TokenPair.objects.create(token_from=lqd_token, token_to=eth_token)
registered_accounts = {
'eth_token': register_testrpc_accounts(self, token=eth_token),
'lqd_token': register_testrpc_accounts(self, token=lqd_token)
}
for token in tokens:
self.assertEqual(
self.contract_interface.get_unmanaged_funds(token.address, 1), 0)
self.assertEqual(
self.contract_interface.get_managed_funds(token.address, 1), 0)
make_deposit(self, eth_token,
registered_accounts['eth_token'][1], 1000)
make_deposit(self, lqd_token,
registered_accounts['lqd_token'][2], 1000)
confirm_on_chain_events(self)
for token in tokens:
self.assertEqual(
self.contract_interface.get_unmanaged_funds(token.address, 1), 1000)
self.assertEqual(
self.contract_interface.get_managed_funds(token.address, 1), 0)
commit_eon(
test_case=self,
eon_number=1)
advance_to_next_eon(
test_case=self,
eon_number=1)
commit_eon(
test_case=self,
eon_number=2)
buy_lqd_nonce = random.randint(1, 999999)
sell_lqd_nonce = random.randint(1, 999999)
buy_lqd = send_swap( # Buy LQD at 0.5 ETH
test_case=self,
eon_number=2,
account=testrpc_accounts.accounts[1],
token=eth_token,
token_swapped=lqd_token,
amount=1,
amount_swapped=2,
nonce=buy_lqd_nonce)
sell_lqd = send_swap( # Sell LQD at 0.5 ETH
test_case=self,
eon_number=2,
account=testrpc_accounts.accounts[2],
token=lqd_token,
token_swapped=eth_token,
amount=2,
amount_swapped=1,
nonce=sell_lqd_nonce)
# Match All
confirm_swaps_for_eon(operator_eon_number=2)
cancel_finalize_swaps_for_eon(operator_eon_number=2)
process_swaps_for_eon(operator_eon_number=2)
finalize_last_swap(
test_case=self,
token=eth_token,
token_swapped=lqd_token,
account=testrpc_accounts.accounts[1])
finalize_last_swap(
test_case=self,
token=lqd_token,
token_swapped=eth_token,
account=testrpc_accounts.accounts[2])
confirm_swaps_for_eon(operator_eon_number=2)
cancel_finalize_swaps_for_eon(operator_eon_number=2)
process_swaps_for_eon(operator_eon_number=2)
advance_to_next_eon(
test_case=self,
eon_number=2)
commit_eon(
test_case=self,
eon_number=3)
advance_past_slack_period(test_case=self)
eon_number = 2
wallet_eth = Wallet.objects.get(token=eth_token, address=remove_0x_prefix(
testrpc_accounts.accounts[1]['address']))
wallet_lqd = Wallet.objects.get(token=lqd_token, address=remove_0x_prefix(
testrpc_accounts.accounts[1]['address']))
wallet_eth_transfer_context = WalletTransferContext(
wallet=wallet_eth, transfer=None)
#wallet_lqd_transfer_context = WalletTransferContext(wallet=wallet_lqd, transfer=None)
transfer_eth = wallet_eth_transfer_context.last_appended_outgoing_active_transfer(
eon_number=eon_number)
#transfer_lqd = wallet_lqd_transfer_context.last_appended_incoming_transfer(eon_number=eon_number)
init_swap_challenge(self, transfer_eth, eon_number)
# Assert challenges are alive
live_challenges = self.contract_interface.get_live_challenge_count(
eon_number=eon_number + 1)
self.assertEqual(live_challenges, 1)
cyan('PRE-ANSWER Live Challenges On-Chain: {}'.format(live_challenges))
confirm_on_chain_events(self)
# Respond to challenges
respond_to_challenges()
send_queued_transactions()
# Assert challenges are dead
live_challenges = self.contract_interface.get_live_challenge_count(
eon_number=eon_number + 1)
cyan('POST-ANSWER Live Challenges On-Chain: {}'.format(live_challenges))
self.assertEqual(live_challenges, 0)
def test_non_finalized_swap_delivery_challenge_responder(self):
eth_token = Token.objects.first()
lqd_token_address = deploy_new_test_token(test_case=self)
distribute_token_balance_to_addresses(
test_case=self,
token_address=lqd_token_address,
recipients=testrpc_accounts.accounts)
lqd_token = register_token(
token_address=lqd_token_address,
name='Liquidity',
short_name='LQD',
register_on_chain=True)
send_queued_transactions()
tokens = [
eth_token,
lqd_token
]
tp = TokenPair.objects.create(token_from=eth_token, token_to=lqd_token)
self.assertEqual(
tp.conduit, '3e323616eb611ee4b3006a7643e0baf6aea1c182')
TokenPair.objects.create(token_from=lqd_token, token_to=eth_token)
registered_accounts = {
'eth_token': register_testrpc_accounts(self, token=eth_token),
'lqd_token': register_testrpc_accounts(self, token=lqd_token)
}
for token in tokens:
self.assertEqual(
self.contract_interface.get_unmanaged_funds(token.address, 1), 0)
self.assertEqual(
self.contract_interface.get_managed_funds(token.address, 1), 0)
make_deposit(self, eth_token,
registered_accounts['eth_token'][1], 1000)
make_deposit(self, lqd_token,
registered_accounts['lqd_token'][2], 1000)
confirm_on_chain_events(self)
for token in tokens:
self.assertEqual(
self.contract_interface.get_unmanaged_funds(token.address, 1), 1000)
self.assertEqual(
self.contract_interface.get_managed_funds(token.address, 1), 0)
commit_eon(
test_case=self,
eon_number=1)
advance_to_next_eon(
test_case=self,
eon_number=1)
commit_eon(
test_case=self,
eon_number=2)
buy_lqd_nonce = random.randint(1, 999999)
sell_lqd_nonce = random.randint(1, 999999)
buy_lqd = send_swap( # Buy LQD at 0.5 ETH
test_case=self,
eon_number=2,
account=testrpc_accounts.accounts[1],
token=eth_token,
token_swapped=lqd_token,
amount=1,
amount_swapped=2,
nonce=buy_lqd_nonce)
sell_lqd = send_swap( # Sell LQD at 0.5 ETH
test_case=self,
eon_number=2,
account=testrpc_accounts.accounts[2],
token=lqd_token,
token_swapped=eth_token,
amount=2,
amount_swapped=1,
nonce=sell_lqd_nonce)
# Match All
confirm_swaps_for_eon(operator_eon_number=2)
cancel_finalize_swaps_for_eon(operator_eon_number=2)
process_swaps_for_eon(operator_eon_number=2)
advance_to_next_eon(
test_case=self,
eon_number=2)
commit_eon(
test_case=self,
eon_number=3)
advance_past_slack_period(test_case=self)
eon_number = 2
wallet_eth = Wallet.objects.get(token=eth_token, address=remove_0x_prefix(
testrpc_accounts.accounts[1]['address']))
wallet_lqd = Wallet.objects.get(token=lqd_token, address=remove_0x_prefix(
testrpc_accounts.accounts[1]['address']))
wallet_eth_transfer_context = WalletTransferContext(
wallet=wallet_eth, transfer=None)
#wallet_lqd_transfer_context = WalletTransferContext(wallet=wallet_lqd, transfer=None)
transfer_eth = wallet_eth_transfer_context.last_appended_outgoing_active_transfer(
eon_number=eon_number)
#transfer_lqd = wallet_lqd_transfer_context.last_appended_incoming_transfer(eon_number=eon_number)
init_swap_challenge(self, transfer_eth, eon_number)
# Assert challenges are alive
live_challenges = self.contract_interface.get_live_challenge_count(
eon_number=eon_number + 1)
self.assertEqual(live_challenges, 1)
cyan('PRE-ANSWER Live Challenges On-Chain: {}'.format(live_challenges))
confirm_on_chain_events(self)
# Respond to challenges
respond_to_challenges()
send_queued_transactions()
# Assert challenges are dead
live_challenges = self.contract_interface.get_live_challenge_count(
eon_number=eon_number + 1)
cyan('POST-ANSWER Live Challenges On-Chain: {}'.format(live_challenges))
self.assertEqual(live_challenges, 0)
def test_withdrawal_confirmation(self):
eth_token = Token.objects.first()
# Initialize accounts from testrpc, commit to registrations
registered_accounts = register_testrpc_accounts(
test_case=self,
token=eth_token)
commit_eon(
test_case=self,
eon_number=1)
self.assertEqual(self.contract_interface.get_unmanaged_funds(
eth_token.address, 1), 0)
self.assertEqual(self.contract_interface.get_managed_funds(
eth_token.address, 1), 0)
# Make deposits, commit to them
create_random_deposits(
test_case=self,
number_of_deposits=random.randint(12, 17),
accounts=registered_accounts,
token=eth_token)
self.assertEqual(self.contract_interface.get_unmanaged_funds(
eth_token.address, 1), self.contract_interface.get_total_balance(eth_token.address))
self.assertEqual(self.contract_interface.get_managed_funds(
eth_token.address, 1), 0)
advance_to_next_eon(
test_case=self,
eon_number=1)
commit_eon(
test_case=self,
eon_number=2)
advance_to_next_eon(
test_case=self,
eon_number=2)
commit_eon(
test_case=self,
eon_number=3)
# Issue withdrawals
total_amounts = {}
total_requests = 0
for_eon_number = 3
for i in range(1, len(registered_accounts)):
wallet_address = registered_accounts[i].get('address')
total_withdraw_amount, withdrawal_amounts, overdraw = place_parallel_withdrawals(
test_case=self,
token=eth_token,
wallet_address=wallet_address,
current_eon=for_eon_number)
total_amounts[i] = total_withdraw_amount
if(total_withdraw_amount == 0):
continue
else:
total_requests += 3
client_state_variables = self.contract_interface.get_client_contract_state_variables(
eth_token.address, wallet_address)
# get only pending withdrawals from the current eon
withdrawals_on_chain = list(
filter(lambda w: w[0] == for_eon_number, client_state_variables[6]))
self.assertEqual(len(withdrawal_amounts), 3)
self.assertEqual(len(withdrawals_on_chain),
len(withdrawal_amounts))
self.assertTrue(len(withdrawals_on_chain)
== len(withdrawal_amounts))
for i in range(len(withdrawals_on_chain)):
pending_withdrawal = withdrawals_on_chain[i]
withdrawal_on_chain_amount = pending_withdrawal[1]
self.assertEqual(withdrawal_on_chain_amount,
withdrawal_amounts[i])
confirm_on_chain_events(self)
withdrawals = WithdrawalRequest.objects.filter(
slashed=False, eon_number=for_eon_number)
self.assertEqual(len(withdrawals), total_requests)
advance_to_next_eon(
test_case=self,
eon_number=3)
commit_eon(
test_case=self,
eon_number=4)
for i in range(1, len(registered_accounts)):
wallet = Wallet.objects.get(token=eth_token, address=remove_0x_prefix(
registered_accounts[i].get('address')))
amount = self.contract_interface.get_confirmed_withdrawable_amount(
eth_token.address, wallet.address)
self.assertEqual(amount, 0)
advance_to_next_eon(
test_case=self,
eon_number=4)
commit_eon(
test_case=self,
eon_number=5)
advance_past_extended_slack_period(self)
for i in range(1, len(registered_accounts)):
wallet = Wallet.objects.get(token=eth_token, address=remove_0x_prefix(
registered_accounts[i].get('address')))
amount = self.contract_interface.get_confirmed_withdrawable_amount(
eth_token.address, wallet.address)
self.assertEqual(amount, total_amounts[i])
confirm_withdrawals()
send_queued_transactions()
confirm_on_chain_events(self)
for i in range(1, len(registered_accounts)):
if(total_amounts[i] == 0):
continue
wallet = Wallet.objects.get(token=eth_token, address=remove_0x_prefix(
registered_accounts[i].get('address')))
confirmed_withdrawals = Withdrawal.objects.filter(
wallet=wallet, eon_number=5)
self.assertEqual(len(confirmed_withdrawals), 3)
confirmed_withdrawals_amount = 0
for confirmed_withdrawal in confirmed_withdrawals:
confirmed_withdrawals_amount += confirmed_withdrawal.amount
self.assertEqual(confirmed_withdrawals_amount, total_amounts[i])
def test_withdrawal_parallel_confirmation(self):
eth_token = Token.objects.first()
# Initialize accounts from testrpc, commit to registrations
registered_accounts = register_testrpc_accounts(
test_case=self,
token=eth_token)
commit_eon(
test_case=self,
eon_number=1)
self.assertEqual(self.contract_interface.get_unmanaged_funds(
eth_token.address, 1), 0)
self.assertEqual(self.contract_interface.get_managed_funds(
eth_token.address, 1), 0)
# Make deposits, commit to them
create_random_deposits(
test_case=self,
number_of_deposits=random.randint(12, 17),
accounts=registered_accounts,
token=eth_token)
self.assertEqual(self.contract_interface.get_unmanaged_funds(
eth_token.address, 1), self.contract_interface.get_total_balance(eth_token.address))
self.assertEqual(self.contract_interface.get_managed_funds(
eth_token.address, 1), 0)
advance_to_next_eon(
test_case=self,
eon_number=1)
commit_eon(
test_case=self,
eon_number=2)
advance_to_next_eon(
test_case=self,
eon_number=2)
commit_eon(
test_case=self,
eon_number=3)
# Issue withdrawals
total_amounts = {}
total_requests = 0
for_eon_number = 3
for i in range(1, len(registered_accounts)):
wallet_address = registered_accounts[i].get('address')
total_withdraw_amount, withdrawal_amounts, overdraw = place_parallel_withdrawals(
test_case=self,
token=eth_token,
wallet_address=wallet_address,
current_eon=for_eon_number)
total_amounts[i] = total_withdraw_amount
if(total_withdraw_amount == 0):
continue
else:
total_requests += 3
client_state_variables = self.contract_interface.get_client_contract_state_variables(
eth_token.address, wallet_address)
# get only pending withdrawals from the current eon
withdrawals_on_chain = list(
filter(lambda w: w[0] == for_eon_number, client_state_variables[6]))
self.assertEqual(len(withdrawal_amounts), 3)
self.assertEqual(len(withdrawals_on_chain),
len(withdrawal_amounts))
self.assertTrue(len(withdrawals_on_chain)
== len(withdrawal_amounts))
for i in range(len(withdrawals_on_chain)):
pending_withdrawal = withdrawals_on_chain[i]
withdrawal_on_chain_amount = pending_withdrawal[1]
self.assertEqual(withdrawal_on_chain_amount,
withdrawal_amounts[i])
confirm_on_chain_events(self)
withdrawals = WithdrawalRequest.objects.filter(
slashed=False, eon_number=for_eon_number)
self.assertEqual(len(withdrawals), total_requests)
advance_to_next_eon(
test_case=self,
eon_number=3)
commit_eon(
test_case=self,
eon_number=4)
advance_to_next_eon(
test_case=self,
eon_number=4)
commit_eon(
test_case=self,
eon_number=5)
# issue more withdrawals
total_amounts_2 = {}
total_requests_2 = 0
for_eon_number = 5
for i in range(1, len(registered_accounts)):
wallet_address = registered_accounts[i].get('address')
total_withdraw_amount, withdrawal_amounts, overdraw = place_parallel_withdrawals(
test_case=self,
token=eth_token,
wallet_address=wallet_address,
current_eon=for_eon_number)
total_amounts_2[i] = total_withdraw_amount
if(total_withdraw_amount == 0):
continue
else:
total_requests_2 += 3
client_state_variables = self.contract_interface.get_client_contract_state_variables(
eth_token.address, wallet_address)
# get only pending withdrawals from the current eon
withdrawals_on_chain = list(
filter(lambda w: w[0] == for_eon_number, client_state_variables[6]))
self.assertEqual(len(withdrawal_amounts), 3)
self.assertEqual(len(withdrawals_on_chain),
len(withdrawal_amounts))
for i in range(len(withdrawals_on_chain)):
pending_withdrawal = withdrawals_on_chain[i]
withdrawal_on_chain_amount = pending_withdrawal[1]
self.assertEqual(withdrawal_on_chain_amount,
withdrawal_amounts[i])
confirm_on_chain_events(self)
withdrawals = WithdrawalRequest.objects.filter(
slashed=False, eon_number=for_eon_number)
self.assertEqual(len(withdrawals), total_requests_2)
advance_to_next_eon(
test_case=self,
eon_number=5)
commit_eon(
test_case=self,
eon_number=6)
for i in range(1, len(registered_accounts)):
if(total_amounts[i] == 0):
continue
wallet = Wallet.objects.get(token=eth_token, address=remove_0x_prefix(
registered_accounts[i].get('address')))
amount = self.contract_interface.get_confirmed_withdrawable_amount(
eth_token.address, wallet.address)
self.assertEqual(total_amounts[i], amount)
requests = WithdrawalRequest.objects.filter(
wallet=wallet, slashed=False, withdrawal__isnull=True).order_by('id')
self.assertEqual(len(requests), 6)
self.contract_interface.confirm_withdrawals(
eth_token.address, wallet.address)
confirm_on_chain_events(self)
confirmed_withdrawals = Withdrawal.objects.filter(
wallet=wallet, eon_number=6)
self.assertEqual(len(confirmed_withdrawals), 3)
confirmed_withdrawals_amount = 0
for confirmed_withdrawal in confirmed_withdrawals:
confirmed_withdrawals_amount += confirmed_withdrawal.amount
self.assertEqual(confirmed_withdrawals_amount, amount)
requests = WithdrawalRequest.objects.filter(
wallet=wallet, slashed=False, withdrawal__isnull=True).order_by('id')
self.assertEqual(len(requests), 3)
advance_to_next_eon(
test_case=self,
eon_number=6)
commit_eon(
test_case=self,
eon_number=7)
advance_to_next_eon(
test_case=self,
eon_number=7)
commit_eon(
test_case=self,
eon_number=8)
for i in range(1, len(registered_accounts)):
if(total_amounts_2[i] == 0):
continue
wallet = Wallet.objects.get(token=eth_token, address=remove_0x_prefix(
registered_accounts[i].get('address')))
amount = self.contract_interface.get_confirmed_withdrawable_amount(
eth_token.address, wallet.address)
self.assertEqual(total_amounts_2[i], amount)
requests = WithdrawalRequest.objects.filter(
wallet=wallet, slashed=False, withdrawal__isnull=True).order_by('id')
self.assertEqual(len(requests), 3)
self.contract_interface.confirm_withdrawals(
eth_token.address, wallet.address)
confirm_on_chain_events(self)
confirmed_withdrawals = Withdrawal.objects.filter(
wallet=wallet, eon_number=8)
self.assertEqual(len(confirmed_withdrawals), 3)
confirmed_withdrawals_amount = 0
for confirmed_withdrawal in confirmed_withdrawals:
confirmed_withdrawals_amount += confirmed_withdrawal.amount
self.assertEqual(confirmed_withdrawals_amount, amount)
requests = WithdrawalRequest.objects.filter(
wallet=wallet, slashed=False, withdrawal__isnull=True).order_by('id')
self.assertEqual(len(requests), 0)
def test_multi_eon_swap_not_matched_challenge_responder(self):
eth_token = Token.objects.first()
lqd_token_address = deploy_new_test_token(test_case=self)
distribute_token_balance_to_addresses(
test_case=self,
token_address=lqd_token_address,
recipients=testrpc_accounts.accounts)
lqd_token = register_token(
token_address=lqd_token_address,
name='Liquidity',
short_name='LQD',
register_on_chain=True)
send_queued_transactions()
registered_accounts = {
'eth_token': register_testrpc_accounts(self, token=eth_token),
'lqd_token': register_testrpc_accounts(self, token=lqd_token)
}
make_deposit(self, eth_token,
registered_accounts['eth_token'][1], 1000)
make_deposit(self, lqd_token,
registered_accounts['lqd_token'][2], 1000)
confirm_on_chain_events(self)
TokenPair.objects.create(token_from=eth_token, token_to=lqd_token)
TokenPair.objects.create(token_from=lqd_token, token_to=eth_token)
commit_eon(
test_case=self,
eon_number=1)
advance_to_next_eon(
test_case=self,
eon_number=1)
commit_eon(
test_case=self,
eon_number=2)
total_remaining_eons = 5
# make persistent swap
send_swap( # Buy LQD at 0.5 ETH
test_case=self,
eon_number=2,
account=testrpc_accounts.accounts[1],
token=eth_token,
token_swapped=lqd_token,
amount=1,
amount_swapped=2,
nonce=random.randint(1, 999999),
eon_count=total_remaining_eons)
swap = Transfer.objects.filter(
swap=True, wallet__token=eth_token).order_by('id')[0]
swap_tx_id = swap.tx_id
wallet_transfer_context = WalletTransferContext(
wallet=swap.wallet, transfer=None)
recipient_transfer_context = WalletTransferContext(
wallet=swap.recipient, transfer=None)
wallet_funds_before = 1
recipient_funds_before = 0
# process swaps
confirm_swaps_for_eon(operator_eon_number=2)
cancel_finalize_swaps_for_eon(operator_eon_number=2)
process_swaps_for_eon(operator_eon_number=2)
# skip some eons
for i in range(3, 7):
# proceed to next eon
advance_to_next_eon(
test_case=self,
eon_number=i-1)
commit_eon(
test_case=self,
eon_number=i)
# process swaps
confirm_swaps_for_eon(operator_eon_number=i)
cancel_finalize_swaps_for_eon(operator_eon_number=i)
process_swaps_for_eon(operator_eon_number=i)
swap = Transfer.objects.get(
swap=True, tx_id=swap_tx_id, eon_number=i-1)
advance_past_slack_period(test_case=self)
init_swap_challenge(self, swap, i-1)
# Assert challenges are alive
live_challenges = self.contract_interface.get_live_challenge_count(
eon_number=i)
self.assertEqual(live_challenges, 1)
cyan('PRE-ANSWER Live Challenges On-Chain: {}'.format(live_challenges))
confirm_on_chain_events(self)
# Respond to challenges
respond_to_challenges()
send_queued_transactions()
# Assert challenges are dead
live_challenges = self.contract_interface.get_live_challenge_count(
eon_number=i)
cyan('POST-ANSWER Live Challenges On-Chain: {}'.format(live_challenges))
self.assertEqual(live_challenges, 0)
self.assertEqual(wallet_transfer_context.available_funds_at_eon(
i, False), wallet_funds_before)
self.assertEqual(recipient_transfer_context.available_funds_at_eon(
i, False), recipient_funds_before)
commit_eon(test_case=self, eon_number=i)
def test_multi_eon_swap_not_finalized_challenge_responder(self):
eth_token = Token.objects.first()
lqd_token_address = deploy_new_test_token(test_case=self)
distribute_token_balance_to_addresses(
test_case=self,
token_address=lqd_token_address,
recipients=testrpc_accounts.accounts)
lqd_token = register_token(
token_address=lqd_token_address,
name='Liquidity',
short_name='LQD',
register_on_chain=True)
send_queued_transactions()
registered_accounts = {
'eth_token': register_testrpc_accounts(self, token=eth_token),
'lqd_token': register_testrpc_accounts(self, token=lqd_token)
}
make_deposit(self, eth_token,
registered_accounts['eth_token'][1], 1000)
make_deposit(self, lqd_token,
registered_accounts['lqd_token'][2], 1000)
confirm_on_chain_events(self)
TokenPair.objects.create(token_from=eth_token, token_to=lqd_token)
TokenPair.objects.create(token_from=lqd_token, token_to=eth_token)
commit_eon(
test_case=self,
eon_number=1)
advance_to_next_eon(
test_case=self,
eon_number=1)
commit_eon(
test_case=self,
eon_number=2)
total_remaining_eons = 5
# make persistent swap
send_swap( # Buy LQD at 0.5 ETH
test_case=self,
eon_number=2,
account=testrpc_accounts.accounts[1],
token=eth_token,
token_swapped=lqd_token,
amount=1,
amount_swapped=2,
nonce=random.randint(1, 999999),
eon_count=total_remaining_eons)
swap = Transfer.objects.filter(
swap=True, wallet__token=eth_token).order_by('id')[0]
swap_tx_id = swap.tx_id
wallet_transfer_context = WalletTransferContext(
wallet=swap.wallet, transfer=None)
recipient_transfer_context = WalletTransferContext(
wallet=swap.recipient, transfer=None)
wallet_funds_before = 1
recipient_funds_before = 0
# process swaps
confirm_swaps_for_eon(operator_eon_number=2)
cancel_finalize_swaps_for_eon(operator_eon_number=2)
process_swaps_for_eon(operator_eon_number=2)
# skip some eons
for i in range(3, 6):
# proceed to next eon
advance_to_next_eon(
test_case=self,
eon_number=i-1)
commit_eon(
test_case=self,
eon_number=i)
# process swaps
confirm_swaps_for_eon(operator_eon_number=i)
cancel_finalize_swaps_for_eon(operator_eon_number=i)
process_swaps_for_eon(operator_eon_number=i)
self.assertEqual(wallet_transfer_context.available_funds_at_eon(
i, False), wallet_funds_before)
self.assertEqual(recipient_transfer_context.available_funds_at_eon(
i, False), recipient_funds_before)
# make opposite swap
send_swap( # Sell LQD at 0.5 ETH
test_case=self,
eon_number=5,
account=testrpc_accounts.accounts[2],
token=lqd_token,
token_swapped=eth_token,
amount=2,
amount_swapped=1,
nonce=random.randint(1, 999999),
eon_count=1)
# process swaps
confirm_swaps_for_eon(operator_eon_number=5)
cancel_finalize_swaps_for_eon(operator_eon_number=5)
process_swaps_for_eon(operator_eon_number=5)
# finalize opposite swap
finalize_last_swap(
test_case=self,
token=lqd_token,
token_swapped=eth_token,
account=testrpc_accounts.accounts[2],
eon_count=1)
# process swaps
confirm_swaps_for_eon(operator_eon_number=5)
cancel_finalize_swaps_for_eon(operator_eon_number=5)
process_swaps_for_eon(operator_eon_number=5)
swap = Transfer.objects.get(
swap=True, tx_id=swap_tx_id, eon_number=5)
self.assertTrue(swap.complete)
self.assertEqual(wallet_transfer_context.available_funds_at_eon(
5, False), wallet_funds_before - 1)
self.assertEqual(recipient_transfer_context.available_funds_at_eon(
5, False), recipient_funds_before + 2)
# proceed to next eon
advance_to_next_eon(
test_case=self,
eon_number=5)
commit_eon(
test_case=self,
eon_number=6)
# process swaps
confirm_swaps_for_eon(operator_eon_number=6)
cancel_finalize_swaps_for_eon(operator_eon_number=6)
process_swaps_for_eon(operator_eon_number=6)
advance_past_slack_period(test_case=self)
init_swap_challenge(self, swap, 5)
# Assert challenges are alive
live_challenges = self.contract_interface.get_live_challenge_count(
eon_number=6)
self.assertEqual(live_challenges, 1)
cyan('PRE-ANSWER Live Challenges On-Chain: {}'.format(live_challenges))
confirm_on_chain_events(self)
# Respond to challenges
respond_to_challenges()
send_queued_transactions()
# Assert challenges are dead
live_challenges = self.contract_interface.get_live_challenge_count(
eon_number=6)
cyan('POST-ANSWER Live Challenges On-Chain: {}'.format(live_challenges))
self.assertEqual(live_challenges, 0)
advance_to_next_eon(test_case=self, eon_number=6)
commit_eon(test_case=self, eon_number=7)
def test_multi_eon_swap_finalized_challenge_responder(self):
eth_token = Token.objects.first()
lqd_token_address = deploy_new_test_token(test_case=self)
distribute_token_balance_to_addresses(
test_case=self,
token_address=lqd_token_address,
recipients=testrpc_accounts.accounts)
lqd_token = register_token(
token_address=lqd_token_address,
name='Liquidity',
short_name='LQD',
register_on_chain=True)
send_queued_transactions()
registered_accounts = {
'eth_token': register_testrpc_accounts(self, token=eth_token),
'lqd_token': register_testrpc_accounts(self, token=lqd_token)
}
make_deposit(self, eth_token,
registered_accounts['eth_token'][1], 1000)
make_deposit(self, lqd_token,
registered_accounts['lqd_token'][2], 1000)
confirm_on_chain_events(self)
TokenPair.objects.create(token_from=eth_token, token_to=lqd_token)
TokenPair.objects.create(token_from=lqd_token, token_to=eth_token)
commit_eon(
test_case=self,
eon_number=1)
advance_to_next_eon(
test_case=self,
eon_number=1)
commit_eon(
test_case=self,
eon_number=2)
total_remaining_eons = 5
# make persistent swap
send_swap( # Buy LQD at 0.5 ETH
test_case=self,
eon_number=2,
account=testrpc_accounts.accounts[1],
token=eth_token,
token_swapped=lqd_token,
amount=1,
amount_swapped=2,
nonce=random.randint(1, 999999),
eon_count=total_remaining_eons)
swap = Transfer.objects.filter(
swap=True, wallet__token=eth_token).order_by('id')[0]
swap_tx_id = swap.tx_id
wallet_transfer_context = WalletTransferContext(
wallet=swap.wallet, transfer=None)
recipient_transfer_context = WalletTransferContext(
wallet=swap.recipient, transfer=None)
wallet_funds_before = 1
recipient_funds_before = 0
# process swaps
confirm_swaps_for_eon(operator_eon_number=2)
cancel_finalize_swaps_for_eon(operator_eon_number=2)
process_swaps_for_eon(operator_eon_number=2)
# skip some eons
for i in range(3, 6):
# proceed to next eon
advance_to_next_eon(
test_case=self,
eon_number=i-1)
commit_eon(
test_case=self,
eon_number=i)
total_remaining_eons -= 1
# process swaps
confirm_swaps_for_eon(operator_eon_number=i)
cancel_finalize_swaps_for_eon(operator_eon_number=i)
process_swaps_for_eon(operator_eon_number=i)
self.assertEqual(wallet_transfer_context.available_funds_at_eon(
i, False), wallet_funds_before)
self.assertEqual(recipient_transfer_context.available_funds_at_eon(
i, False), recipient_funds_before)
# make opposite swap
send_swap( # Sell LQD at 0.5 ETH
test_case=self,
eon_number=5,
account=testrpc_accounts.accounts[2],
token=lqd_token,
token_swapped=eth_token,
amount=2,
amount_swapped=1,
nonce=random.randint(1, 999999),
eon_count=1)
# process swaps
confirm_swaps_for_eon(operator_eon_number=5)
cancel_finalize_swaps_for_eon(operator_eon_number=5)
process_swaps_for_eon(operator_eon_number=5)
# finalize opposite swap
finalize_last_swap(
test_case=self,
token=lqd_token,
token_swapped=eth_token,
account=testrpc_accounts.accounts[2],
eon_count=1)
swap = Transfer.objects.get(
swap=True, tx_id=swap_tx_id, eon_number=5)
# finalize swap
finalize_swap(
test_case=self,
swap=swap,
account=testrpc_accounts.accounts[1],
eon_count=total_remaining_eons)
# process swaps
confirm_swaps_for_eon(operator_eon_number=5)
cancel_finalize_swaps_for_eon(operator_eon_number=5)
process_swaps_for_eon(operator_eon_number=5)
self.assertEqual(wallet_transfer_context.available_funds_at_eon(
5, False), wallet_funds_before - 1)
self.assertEqual(recipient_transfer_context.available_funds_at_eon(
5, False), recipient_funds_before + 2)
swap = Transfer.objects.get(
swap=True, tx_id=swap_tx_id, eon_number=5)
self.assertTrue(swap.complete)
# proceed to next eon
advance_to_next_eon(
test_case=self,
eon_number=5)
commit_eon(
test_case=self,
eon_number=6)
# process swaps
confirm_swaps_for_eon(operator_eon_number=6)
cancel_finalize_swaps_for_eon(operator_eon_number=6)
process_swaps_for_eon(operator_eon_number=6)
advance_past_slack_period(test_case=self)
init_swap_challenge(self, swap, 5)
# Assert challenges are alive
live_challenges = self.contract_interface.get_live_challenge_count(
eon_number=6)
self.assertEqual(live_challenges, 1)
cyan('PRE-ANSWER Live Challenges On-Chain: {}'.format(live_challenges))
confirm_on_chain_events(self)
# Respond to challenges
respond_to_challenges()
send_queued_transactions()
# Assert challenges are dead
live_challenges = self.contract_interface.get_live_challenge_count(
eon_number=6)
cyan('POST-ANSWER Live Challenges On-Chain: {}'.format(live_challenges))
self.assertEqual(live_challenges, 0)
advance_to_next_eon(test_case=self, eon_number=6)
commit_eon(test_case=self, eon_number=7)
def test_multi_eon_swap_partially_matched_challenge_responder(self):
eth_token = Token.objects.first()
lqd_token_address = deploy_new_test_token(test_case=self)
distribute_token_balance_to_addresses(
test_case=self,
token_address=lqd_token_address,
recipients=testrpc_accounts.accounts)
lqd_token = register_token(
token_address=lqd_token_address,
name='Liquidity',
short_name='LQD',
register_on_chain=True)
send_queued_transactions()
registered_accounts = {
'eth_token': register_testrpc_accounts(self, token=eth_token),
'lqd_token': register_testrpc_accounts(self, token=lqd_token)
}
make_deposit(self, eth_token, registered_accounts['eth_token'][1], 100)
make_deposit(self, lqd_token, registered_accounts['lqd_token'][2], 100)
confirm_on_chain_events(self)
TokenPair.objects.create(token_from=eth_token, token_to=lqd_token)
TokenPair.objects.create(token_from=lqd_token, token_to=eth_token)
wallet_transfer_context = WalletTransferContext(
wallet=Wallet.objects.get(address__iexact=remove_0x_prefix(testrpc_accounts.accounts[1].get('address')), token=eth_token), transfer=None)
recipient_transfer_context = WalletTransferContext(
wallet=Wallet.objects.get(address__iexact=remove_0x_prefix(testrpc_accounts.accounts[1].get('address')), token=lqd_token), transfer=None)
commit_eon(
test_case=self,
eon_number=1)
advance_to_next_eon(
test_case=self,
eon_number=1)
commit_eon(
test_case=self,
eon_number=2)
total_remaining_eons = 6
# make persistent swap
send_swap( # Buy LQD at 0.5 ETH
test_case=self,
eon_number=2,
account=testrpc_accounts.accounts[1],
token=eth_token,
token_swapped=lqd_token,
amount=4,
amount_swapped=8,
nonce=random.randint(1, 999999),
eon_count=total_remaining_eons)
swap = Transfer.objects.filter(
swap=True, wallet__token=eth_token).order_by('id')[0]
swap_tx_id = swap.tx_id
wallet_funds_before = 4
recipient_funds_before = 0
# process swaps
confirm_swaps_for_eon(operator_eon_number=2)
cancel_finalize_swaps_for_eon(operator_eon_number=2)
process_swaps_for_eon(operator_eon_number=2)
# skip some eons
for i in range(3, 7):
send_swap( # Buy LQD at 0.5 ETH
test_case=self,
eon_number=i-1,
account=testrpc_accounts.accounts[2],
token=lqd_token,
token_swapped=eth_token,
amount=2,
amount_swapped=1,
nonce=random.randint(1, 999999),
eon_count=1)
# process swaps
confirm_swaps_for_eon(operator_eon_number=i-1)
cancel_finalize_swaps_for_eon(operator_eon_number=i-1)
process_swaps_for_eon(operator_eon_number=i-1)
# finalize opposite swap
finalize_last_swap(
test_case=self,
token=lqd_token,
token_swapped=eth_token,
account=testrpc_accounts.accounts[2],
eon_count=1)
# process swaps
confirm_swaps_for_eon(operator_eon_number=i-1)
cancel_finalize_swaps_for_eon(operator_eon_number=i-1)
process_swaps_for_eon(operator_eon_number=i-1)
wallet_funds_before -= 1
recipient_funds_before += 2
self.assertEqual(wallet_transfer_context.available_funds_at_eon(
i-1, False), wallet_funds_before)
self.assertEqual(recipient_transfer_context.available_funds_at_eon(
i-1, False), recipient_funds_before)
# proceed to next eon
advance_to_next_eon(
test_case=self,
eon_number=i-1)
commit_eon(
test_case=self,
eon_number=i)
total_remaining_eons -= 1
# process swaps
confirm_swaps_for_eon(operator_eon_number=i)
cancel_finalize_swaps_for_eon(operator_eon_number=i)
process_swaps_for_eon(operator_eon_number=i)
swap = Transfer.objects.get(
swap=True, tx_id=swap_tx_id, eon_number=i-1)
self.assertFalse(swap.voided)
print("EON {}".format(i))
advance_past_slack_period(test_case=self)
init_swap_challenge(self, swap, i-1)
# Assert challenges are alive
live_challenges = self.contract_interface.get_live_challenge_count(
eon_number=i)
self.assertEqual(live_challenges, 1)
cyan('PRE-ANSWER Live Challenges On-Chain: {}'.format(live_challenges))
confirm_on_chain_events(self)
# Respond to challenges
respond_to_challenges()
send_queued_transactions()
# Assert challenges are dead
live_challenges = self.contract_interface.get_live_challenge_count(
eon_number=i)
cyan('POST-ANSWER Live Challenges On-Chain: {}'.format(live_challenges))
self.assertEqual(live_challenges, 0)
self.assertEqual(wallet_transfer_context.available_funds_at_eon(
i, False), wallet_funds_before)
self.assertEqual(recipient_transfer_context.available_funds_at_eon(
i, False), recipient_funds_before)
commit_eon(test_case=self, eon_number=i)
def test_multi_eon_swap_cancelled_challenge_responder(self):
eth_token = Token.objects.first()
lqd_token_address = deploy_new_test_token(test_case=self)
distribute_token_balance_to_addresses(
test_case=self,
token_address=lqd_token_address,
recipients=testrpc_accounts.accounts)
lqd_token = register_token(
token_address=lqd_token_address,
name='Liquidity',
short_name='LQD',
register_on_chain=True)
send_queued_transactions()
registered_accounts = {
'eth_token': register_testrpc_accounts(self, token=eth_token),
'lqd_token': register_testrpc_accounts(self, token=lqd_token)
}
make_deposit(self, eth_token, registered_accounts['eth_token'][1], 100)
make_deposit(self, lqd_token, registered_accounts['lqd_token'][2], 100)
confirm_on_chain_events(self)
TokenPair.objects.create(token_from=eth_token, token_to=lqd_token)
TokenPair.objects.create(token_from=lqd_token, token_to=eth_token)
wallet_transfer_context = WalletTransferContext(
wallet=Wallet.objects.get(address__iexact=remove_0x_prefix(testrpc_accounts.accounts[1].get('address')), token=eth_token), transfer=None)
recipient_transfer_context = WalletTransferContext(
wallet=Wallet.objects.get(address__iexact=remove_0x_prefix(testrpc_accounts.accounts[1].get('address')), token=lqd_token), transfer=None)
commit_eon(
test_case=self,
eon_number=1)
advance_to_next_eon(
test_case=self,
eon_number=1)
commit_eon(
test_case=self,
eon_number=2)
total_remaining_eons = 6
# make persistent swap
send_swap( # Buy LQD at 0.5 ETH
test_case=self,
eon_number=2,
account=testrpc_accounts.accounts[1],
token=eth_token,
token_swapped=lqd_token,
amount=1,
amount_swapped=2,
nonce=random.randint(1, 999999),
eon_count=total_remaining_eons)
swap = Transfer.objects.filter(
swap=True, wallet__token=eth_token).order_by('id')[0]
swap_tx_id = swap.tx_id
wallet_funds_before = 1
recipient_funds_before = 0
# process swaps
confirm_swaps_for_eon(operator_eon_number=2)
cancel_finalize_swaps_for_eon(operator_eon_number=2)
process_swaps_for_eon(operator_eon_number=2)
# skip some eons
for i in range(3, 5):
# proceed to next eon
advance_to_next_eon(
test_case=self,
eon_number=i-1)
commit_eon(
test_case=self,
eon_number=i)
total_remaining_eons -= 1
# process swaps
confirm_swaps_for_eon(operator_eon_number=i)
cancel_finalize_swaps_for_eon(operator_eon_number=i)
process_swaps_for_eon(operator_eon_number=i)
self.assertEqual(wallet_transfer_context.available_funds_at_eon(
i, False), wallet_funds_before)
self.assertEqual(recipient_transfer_context.available_funds_at_eon(
i, False), recipient_funds_before)
swap = Transfer.objects.get(
swap=True, tx_id=swap_tx_id, eon_number=4)
freeze_swap(
test_case=self,
swap=swap,
account=testrpc_accounts.accounts[1])
swap = Transfer.objects.get(
swap=True, tx_id=swap_tx_id, eon_number=4)
cancel_swap(
test_case=self,
swap=swap,
account=testrpc_accounts.accounts[1],
eon_count=total_remaining_eons)
swap = Transfer.objects.get(
swap=True, tx_id=swap_tx_id, eon_number=4)
self.assertTrue(swap.cancelled)
self.assertTrue(swap.processed)
self.assertTrue(swap.appended)
self.assertTrue(
swap.sender_cancellation_active_state.operator_signature is not None)
# proceed to next eon
advance_to_next_eon(
test_case=self,
eon_number=4)
commit_eon(
test_case=self,
eon_number=5)
total_remaining_eons -= 1
# process swaps
confirm_swaps_for_eon(operator_eon_number=5)
cancel_finalize_swaps_for_eon(operator_eon_number=5)
process_swaps_for_eon(operator_eon_number=5)
advance_past_slack_period(test_case=self)
init_swap_challenge(self, swap, 4)
# Assert challenges are alive
live_challenges = self.contract_interface.get_live_challenge_count(
eon_number=5)
self.assertEqual(live_challenges, 1)
cyan('PRE-ANSWER Live Challenges On-Chain: {}'.format(live_challenges))
confirm_on_chain_events(self)
# Respond to challenges
respond_to_challenges()
send_queued_transactions()
# Assert challenges are dead
live_challenges = self.contract_interface.get_live_challenge_count(
eon_number=5)
cyan('POST-ANSWER Live Challenges On-Chain: {}'.format(live_challenges))
self.assertEqual(live_challenges, 0)
advance_to_next_eon(
test_case=self,
eon_number=5)
commit_eon(test_case=self, eon_number=6)
| 38.696316 | 168 | 0.632727 | 8,326 | 73,523 | 5.21559 | 0.036512 | 0.050984 | 0.038411 | 0.033851 | 0.88882 | 0.864893 | 0.858607 | 0.848774 | 0.845412 | 0.835394 | 0 | 0.014895 | 0.293242 | 73,523 | 1,899 | 169 | 38.716693 | 0.820796 | 0.039484 | 0 | 0.841927 | 0 | 0 | 0.024225 | 0.001433 | 0 | 0 | 0 | 0 | 0.085482 | 1 | 0.00882 | false | 0.006784 | 0.016282 | 0 | 0.02578 | 0.000678 | 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 |
cd28bb5a95ed3523a2ff672580f9a1290b0286aa | 94 | py | Python | smalltime/__init__.py | nicklambourne/smalltime | c7e79f766d6418c7bde3e05a891d294e9e6cf1f1 | [
"BSD-3-Clause"
] | null | null | null | smalltime/__init__.py | nicklambourne/smalltime | c7e79f766d6418c7bde3e05a891d294e9e6cf1f1 | [
"BSD-3-Clause"
] | null | null | null | smalltime/__init__.py | nicklambourne/smalltime | c7e79f766d6418c7bde3e05a891d294e9e6cf1f1 | [
"BSD-3-Clause"
] | null | null | null | from .timer import SmallTimer
from .timer import SmallTimer as Timer
from .timer import timed
| 23.5 | 38 | 0.819149 | 14 | 94 | 5.5 | 0.428571 | 0.350649 | 0.584416 | 0.649351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 94 | 3 | 39 | 31.333333 | 0.9625 | 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 |
cd7f366245b00be981307ddeb75a67042c3a987c | 116 | py | Python | isl/datasets/__init__.py | HenryLee97/isl | 0eb357bd45c5ce3ab3ef060deb84707975049d37 | [
"MIT"
] | 2 | 2021-12-14T10:43:53.000Z | 2021-12-14T12:46:50.000Z | isl/datasets/__init__.py | HenryLee97/isl | 0eb357bd45c5ce3ab3ef060deb84707975049d37 | [
"MIT"
] | null | null | null | isl/datasets/__init__.py | HenryLee97/isl | 0eb357bd45c5ce3ab3ef060deb84707975049d37 | [
"MIT"
] | null | null | null | from isl.datasets.mnist import MNIST
from isl.datasets.cifar import CIFAR10
from isl.datasets.cifar import CIFAR100
| 29 | 39 | 0.844828 | 18 | 116 | 5.444444 | 0.444444 | 0.214286 | 0.459184 | 0.408163 | 0.530612 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048077 | 0.103448 | 116 | 3 | 40 | 38.666667 | 0.894231 | 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 |
cd8ee356a49f05876776db379bdf923ff6e7018c | 8,113 | py | Python | rangel/tabela.py | Clemilton10/rangel_bibliotecas | d987fd06c842d57ad0992c4dfb911f3a25a868cb | [
"MIT"
] | null | null | null | rangel/tabela.py | Clemilton10/rangel_bibliotecas | d987fd06c842d57ad0992c4dfb911f3a25a868cb | [
"MIT"
] | null | null | null | rangel/tabela.py | Clemilton10/rangel_bibliotecas | d987fd06c842d57ad0992c4dfb911f3a25a868cb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from rangel.shell_style import shell_style
ss = shell_style()
def tabela_colorida(colunas=(), alinhamento=(), dados=[]):
'''Função que cria uma tabela extraida de uma lista
Parameters:
colunas (tuple): Nome das colunas (opcional)
alinhamento (tuple): Alinhamento de cada coluna (opicional)
dados (list): Lista com dados para tabela
'''
try:
# juntando as colunas pra ver qual o texto maior
if colunas != ():
tmp_dados = []
tmp_dados.append(colunas)
tmp_dados = tmp_dados + dados.copy()
else:
tmp_dados = dados.copy()
# enfileirando cada coluna em uma lista pra saber quem é maior
lista_reordenada = []
for j, d in enumerate(tmp_dados[0]):
lista_reordenada.append([])
for j, d in enumerate(tmp_dados[0]):
for i, l in enumerate(tmp_dados):
lista_reordenada[j].append(l[j])
# convertendo tudo para string
for j, d in enumerate(tmp_dados[0]):
lista_reordenada[j] = list( map( str, lista_reordenada[j]) )
# gerando lista com o maior número de caracteres de cada coluna
lista_max = []
for j, d in enumerate(tmp_dados[0]):
maior_nome = max( lista_reordenada[j], key=len )
nmax = len( maior_nome )
lista_max.append(nmax)
# printando as colunas
if colunas != ():
# o nome das colunas
linha = f'{ss.CF_AMARELA}| '
for j, d in enumerate(tmp_dados[0]):
if alinhamento != ():
if alinhamento[j] == 'd':
linha += f'{ss.CF_AMARELA}{ss.NEGRITO}{colunas[j]: >{lista_max[j]}}{ss.NONE} {ss.CF_AMARELA}| '
elif alinhamento[j] == 'c':
linha += f'{ss.CF_AMARELA}{ss.NEGRITO}{colunas[j]: ^{lista_max[j]}}{ss.NONE} {ss.CF_AMARELA}| '
else:
linha += f'{ss.CF_AMARELA}{ss.NEGRITO}{colunas[j]: <{lista_max[j]}}{ss.NONE} {ss.CF_AMARELA}| '
else:
linha += f'{ss.CF_AMARELA}{ss.NEGRITO}{colunas[j]: <{lista_max[j]}} {ss.CF_AMARELA}| '
linha = linha[ 0: len(linha) - 1 ]
print(linha)
# a linha de baixo
linha = '|-'
for j, d in enumerate(tmp_dados[0]):
nada = ''
linha += f'{nada:-<{lista_max[j]}}-|-'
linha = ss.CF_AMARELA + linha[ 0: len(linha) - 1 ] + ss.NONE
print(linha)
# printando os dados da coluna
for l in dados:
linha = f'{ss.CF_AMARELA}| '
for j, d in enumerate(tmp_dados[0]):
rw = str(l[j]).replace('\t', '').replace('\r', '').replace('➜', '>').replace('\n', '$')
if alinhamento != ():
if alinhamento[j] == 'd':
linha += f'{ss.CFB_BRANCA}{rw: >{lista_max[j]}} {ss.CF_AMARELA}| '
elif alinhamento[j] == 'c':
linha += f'{ss.CFB_BRANCA}{rw: ^{lista_max[j]}} {ss.CF_AMARELA}| '
else:
linha += f'{ss.CFB_BRANCA}{rw: <{lista_max[j]}} {ss.CF_AMARELA}| '
else:
linha += f'{ss.CFB_BRANCA}{rw: <{lista_max[j]}} {ss.CF_AMARELA}| '
linha = linha[ 0: len(linha) - 1 ]
print(linha)
print(ss.NONE)
except Exception as er:
print('tabela:')
print(er)
def tabela(colunas=(), alinhamento=(), dados=[]):
'''Função que cria uma tabela extraida de uma lista
Parameters:
colunas (tuple): Nome das colunas (opcional)
alinhamento (tuple): Alinhamento de cada coluna (opicional)
dados (list): Lista com dados para tabela
'''
try:
# juntando as colunas pra ver qual o texto maior
if colunas != ():
tmp_dados = []
tmp_dados.append(colunas)
tmp_dados = tmp_dados + dados.copy()
else:
tmp_dados = dados.copy()
# enfileirando cada coluna em uma lista pra saber quem é maior
lista_reordenada = []
for j, d in enumerate(tmp_dados[0]):
lista_reordenada.append([])
for j, d in enumerate(tmp_dados[0]):
for i, l in enumerate(tmp_dados):
lista_reordenada[j].append(l[j])
# convertendo tudo para string
for j, d in enumerate(tmp_dados[0]):
lista_reordenada[j] = list( map( str, lista_reordenada[j]) )
# gerando lista com o maior número de caracteres de cada coluna
lista_max = []
for j, d in enumerate(tmp_dados[0]):
maior_nome = max( lista_reordenada[j], key=len )
nmax = len( maior_nome )
lista_max.append(nmax)
# printando as colunas
if colunas != ():
# o nome das colunas
linha = f'| '
for j, d in enumerate(tmp_dados[0]):
if alinhamento != ():
if alinhamento[j] == 'd':
linha += f'{colunas[j]: >{lista_max[j]}} | '
elif alinhamento[j] == 'c':
linha += f'{colunas[j]: ^{lista_max[j]}} | '
else:
linha += f'{colunas[j]: <{lista_max[j]}} | '
else:
linha += f'{colunas[j]: <{lista_max[j]}} | '
linha = linha[ 0: len(linha) - 1 ]
print(linha)
# a linha de baixo
linha = '|-'
for j, d in enumerate(tmp_dados[0]):
nada = ''
linha += f'{nada:-<{lista_max[j]}}-|-'
linha = linha[ 0: len(linha) - 1 ]
print(linha)
# printando os dados da coluna
for l in dados:
linha = f'| '
for j, d in enumerate(tmp_dados[0]):
rw = str(l[j]).replace('\t', '').replace('\r', '').replace('➜', '>').replace('\n', '$')
if alinhamento != ():
if alinhamento[j] == 'd':
linha += f'{rw: >{lista_max[j]}} | '
elif alinhamento[j] == 'c':
linha += f'{rw: ^{lista_max[j]}} | '
else:
linha += f'{rw: <{lista_max[j]}} | '
else:
linha += f'{rw: <{lista_max[j]}} | '
linha = linha[ 0: len(linha) - 1 ]
print(linha)
except Exception as er:
print('tabela:')
print(er)
def tabela_texto(colunas=(), alinhamento=(), dados=[], html=False):
'''Função que cria uma tabela extraida de uma lista e retorna em forma de texto
Parameters:
colunas (tuple): Nome das colunas (opcional)
alinhamento (tuple): Alinhamento de cada coluna (opicional)
dados (list): Lista com dados para tabela
html (bool): Se o formato final vai ser HTML
Returns:
tabela (str): Tabela em forma de texto para salvar, exibir, etc
'''
try:
txt = ''
# juntando as colunas pra ver qual o texto maior
if colunas != ():
tmp_dados = []
tmp_dados.append(colunas)
tmp_dados = tmp_dados + dados.copy()
else:
tmp_dados = dados.copy()
# enfileirando cada coluna em uma lista pra saber quem é maior
lista_reordenada = []
for j, d in enumerate(tmp_dados[0]):
lista_reordenada.append([])
for j, d in enumerate(tmp_dados[0]):
for i, l in enumerate(tmp_dados):
lista_reordenada[j].append(l[j])
# convertendo tudo para string
for j, d in enumerate(tmp_dados[0]):
lista_reordenada[j] = list( map( str, lista_reordenada[j]) )
# gerando lista com o maior número de caracteres de cada coluna
lista_max = []
for j, d in enumerate(tmp_dados[0]):
maior_nome = max( lista_reordenada[j], key=len )
nmax = len( maior_nome )
lista_max.append(nmax)
# printando as colunas
if colunas != ():
# o nome das colunas
linha = f'| '
for j, d in enumerate(tmp_dados[0]):
if alinhamento != ():
if alinhamento[j] == 'd':
linha += f'{colunas[j]: >{lista_max[j]}} | '
elif alinhamento[j] == 'c':
linha += f'{colunas[j]: ^{lista_max[j]}} | '
else:
linha += f'{colunas[j]: <{lista_max[j]}} | '
else:
linha += f'{colunas[j]: <{lista_max[j]}} | '
linha = linha[ 0: len(linha) - 1 ]
txt += linha + '\n'
# a linha de baixo
linha = '|-'
for j, d in enumerate(tmp_dados[0]):
nada = ''
linha += f'{nada:-<{lista_max[j]}}-|-'
linha = linha[ 0: len(linha) - 1 ]
txt += linha + '\n'
# printando os dados da coluna
for l in dados:
linha = f'| '
for j, d in enumerate(tmp_dados[0]):
rw = str(l[j]).replace('\t', '').replace('\r', '').replace('➜', '>').replace('\n', '$')
if alinhamento != ():
if alinhamento[j] == 'd':
linha += f'{rw: >{lista_max[j]}} | '
elif alinhamento[j] == 'c':
linha += f'{rw: ^{lista_max[j]}} | '
else:
linha += f'{rw: <{lista_max[j]}} | '
else:
linha += f'{rw: <{lista_max[j]}} | '
linha = linha[ 0: len(linha) - 1 ]
txt += linha + '\n'
if html:
txt = '<style>.py_tabela{border:0px;margin:0px;padding:0px;font-family: courier; font-size:14px;white-space: nowrap;}</style><div class=py_tabela>' + txt.replace(' ', ' ').replace('\n', '<br>') + '</div>'
return txt
except Exception as er:
print('tabela:')
print(er)
| 30.272388 | 212 | 0.603846 | 1,194 | 8,113 | 4.00335 | 0.112228 | 0.065272 | 0.050837 | 0.095397 | 0.914644 | 0.911506 | 0.911506 | 0.911506 | 0.903766 | 0.895397 | 0 | 0.007097 | 0.218415 | 8,113 | 267 | 213 | 30.385768 | 0.746255 | 0.214347 | 0 | 0.907609 | 0 | 0.027174 | 0.209233 | 0.062598 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016304 | false | 0 | 0.005435 | 0 | 0.027174 | 0.070652 | 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 |
26a7566f2e36702783f77dc865d8f2e73733c74d | 155 | py | Python | fault/magma_utils.py | makaimann/fault | 8c805415f398e64971d18fbd3014bc0b59fb38b8 | [
"BSD-3-Clause"
] | 31 | 2018-07-16T15:03:14.000Z | 2022-03-10T08:36:09.000Z | fault/magma_utils.py | makaimann/fault | 8c805415f398e64971d18fbd3014bc0b59fb38b8 | [
"BSD-3-Clause"
] | 216 | 2018-07-18T20:00:34.000Z | 2021-10-05T17:40:47.000Z | fault/magma_utils.py | makaimann/fault | 8c805415f398e64971d18fbd3014bc0b59fb38b8 | [
"BSD-3-Clause"
] | 10 | 2019-02-17T00:56:58.000Z | 2021-11-05T13:31:37.000Z | import magma as m
def is_recursive_type(T):
return (issubclass(T, m.Tuple) or issubclass(T, m.Array) and
not issubclass(T.T, m.Digital))
| 22.142857 | 64 | 0.664516 | 26 | 155 | 3.884615 | 0.653846 | 0.326733 | 0.237624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219355 | 155 | 6 | 65 | 25.833333 | 0.834711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
26f57666954679095b77c702732feb17076c46de | 14,770 | py | Python | frequencies/migrations/0004_auto_20191107_1047.py | brand-fabian/varfish-server | 6a084d891d676ff29355e72a29d4f7b207220283 | [
"MIT"
] | 14 | 2019-09-30T12:44:17.000Z | 2022-02-04T14:45:16.000Z | frequencies/migrations/0004_auto_20191107_1047.py | brand-fabian/varfish-server | 6a084d891d676ff29355e72a29d4f7b207220283 | [
"MIT"
] | 244 | 2021-03-26T15:13:15.000Z | 2022-03-31T15:48:04.000Z | frequencies/migrations/0004_auto_20191107_1047.py | brand-fabian/varfish-server | 6a084d891d676ff29355e72a29d4f7b207220283 | [
"MIT"
] | 8 | 2020-05-19T21:55:13.000Z | 2022-03-31T07:02:58.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.25 on 2019-11-07 10:47
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("frequencies", "0003_auto_20190705_1321")]
operations = [
migrations.AddField(
model_name="gnomadexomes", name="controls_ac", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_ac_afr", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_ac_amr", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_ac_asj", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_ac_eas", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_ac_fin", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_ac_nfe", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_ac_oth", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes",
name="controls_ac_popmax",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadexomes", name="controls_ac_sas", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_af", field=models.FloatField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_af_afr", field=models.FloatField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_af_amr", field=models.FloatField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_af_asj", field=models.FloatField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_af_eas", field=models.FloatField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_af_fin", field=models.FloatField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_af_nfe", field=models.FloatField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_af_oth", field=models.FloatField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_af_popmax", field=models.FloatField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_af_sas", field=models.FloatField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_an", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_an_afr", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_an_amr", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_an_asj", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_an_eas", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_an_fin", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_an_nfe", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_an_oth", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes",
name="controls_an_popmax",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadexomes", name="controls_an_sas", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_hemi", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes",
name="controls_hemi_afr",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadexomes",
name="controls_hemi_amr",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadexomes",
name="controls_hemi_asj",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadexomes",
name="controls_hemi_eas",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadexomes",
name="controls_hemi_fin",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadexomes",
name="controls_hemi_nfe",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadexomes",
name="controls_hemi_oth",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadexomes",
name="controls_hemi_popmax",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadexomes",
name="controls_hemi_sas",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadexomes", name="controls_hom", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_hom_afr", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_hom_amr", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_hom_asj", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_hom_eas", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_hom_fin", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_hom_nfe", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes", name="controls_hom_oth", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes",
name="controls_hom_popmax",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadexomes", name="controls_hom_sas", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadexomes",
name="controls_popmax",
field=models.CharField(max_length=8, null=True),
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_ac", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_ac_afr", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_ac_amr", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_ac_asj", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_ac_eas", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_ac_fin", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_ac_nfe", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_ac_oth", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes",
name="controls_ac_popmax",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_af", field=models.FloatField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_af_afr", field=models.FloatField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_af_amr", field=models.FloatField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_af_asj", field=models.FloatField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_af_eas", field=models.FloatField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_af_fin", field=models.FloatField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_af_nfe", field=models.FloatField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_af_oth", field=models.FloatField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes",
name="controls_af_popmax",
field=models.FloatField(null=True),
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_an", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_an_afr", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_an_amr", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_an_asj", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_an_eas", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_an_fin", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_an_nfe", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_an_oth", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes",
name="controls_an_popmax",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_hemi", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes",
name="controls_hemi_afr",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadgenomes",
name="controls_hemi_amr",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadgenomes",
name="controls_hemi_asj",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadgenomes",
name="controls_hemi_eas",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadgenomes",
name="controls_hemi_fin",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadgenomes",
name="controls_hemi_nfe",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadgenomes",
name="controls_hemi_oth",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadgenomes",
name="controls_hemi_popmax",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadgenomes", name="controls_hom", field=models.IntegerField(null=True)
),
migrations.AddField(
model_name="gnomadgenomes",
name="controls_hom_afr",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadgenomes",
name="controls_hom_amr",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadgenomes",
name="controls_hom_asj",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadgenomes",
name="controls_hom_eas",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadgenomes",
name="controls_hom_fin",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadgenomes",
name="controls_hom_nfe",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadgenomes",
name="controls_hom_oth",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadgenomes",
name="controls_hom_popmax",
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name="gnomadgenomes",
name="controls_popmax",
field=models.CharField(max_length=8, null=True),
),
]
| 39.811321 | 100 | 0.609749 | 1,389 | 14,770 | 6.275738 | 0.042477 | 0.200298 | 0.255937 | 0.300447 | 0.977056 | 0.977056 | 0.977056 | 0.977056 | 0.972582 | 0.972582 | 0 | 0.003356 | 0.273798 | 14,770 | 370 | 101 | 39.918919 | 0.809342 | 0.004672 | 0 | 0.779614 | 1 | 0 | 0.186828 | 0.001565 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.00551 | 0 | 0.013774 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
f8427753e0be5ae044e04ca60c8d67204802fcf6 | 221,038 | py | Python | dingtalk/python/alibabacloud_dingtalk/industry_1_0/models.py | aliyun/dingtalk-sdk | ab4f856b8cfe94f6b69f10a0730a2e5a7d4901c5 | [
"Apache-2.0"
] | 15 | 2020-08-27T04:10:26.000Z | 2022-03-07T06:25:42.000Z | dingtalk/python/alibabacloud_dingtalk/industry_1_0/models.py | aliyun/dingtalk-sdk | ab4f856b8cfe94f6b69f10a0730a2e5a7d4901c5 | [
"Apache-2.0"
] | 1 | 2020-09-27T01:30:46.000Z | 2021-12-29T09:15:34.000Z | dingtalk/python/alibabacloud_dingtalk/industry_1_0/models.py | aliyun/dingtalk-sdk | ab4f856b8cfe94f6b69f10a0730a2e5a7d4901c5 | [
"Apache-2.0"
] | 5 | 2020-08-27T04:07:44.000Z | 2021-12-03T02:55:20.000Z | # -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
from Tea.model import TeaModel
from typing import Dict, List
class QueryUserInfoHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class QueryUserInfoResponseBodyContentJob(TeaModel):
def __init__(
self,
code: str = None,
biz_type: str = None,
category: str = None,
display_name: str = None,
):
# 标签Code
self.code = code
# 标签类型
self.biz_type = biz_type
# 分类
self.category = category
# 展示名称
self.display_name = display_name
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.code is not None:
result['code'] = self.code
if self.biz_type is not None:
result['bizType'] = self.biz_type
if self.category is not None:
result['category'] = self.category
if self.display_name is not None:
result['displayName'] = self.display_name
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('code') is not None:
self.code = m.get('code')
if m.get('bizType') is not None:
self.biz_type = m.get('bizType')
if m.get('category') is not None:
self.category = m.get('category')
if m.get('displayName') is not None:
self.display_name = m.get('displayName')
return self
class QueryUserInfoResponseBodyContentJobStatus(TeaModel):
def __init__(
self,
code: str = None,
biz_type: str = None,
category: str = None,
display_name: str = None,
):
# 标签Code
self.code = code
# 标签类型
self.biz_type = biz_type
# 分类
self.category = category
# 展示名称
self.display_name = display_name
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.code is not None:
result['code'] = self.code
if self.biz_type is not None:
result['bizType'] = self.biz_type
if self.category is not None:
result['category'] = self.category
if self.display_name is not None:
result['displayName'] = self.display_name
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('code') is not None:
self.code = m.get('code')
if m.get('bizType') is not None:
self.biz_type = m.get('bizType')
if m.get('category') is not None:
self.category = m.get('category')
if m.get('displayName') is not None:
self.display_name = m.get('displayName')
return self
class QueryUserInfoResponseBodyContentUserProb(TeaModel):
def __init__(
self,
code: str = None,
biz_type: str = None,
category: str = None,
display_name: str = None,
):
# 标签Code
self.code = code
# 标签类型
self.biz_type = biz_type
# 分类
self.category = category
# 展示名称
self.display_name = display_name
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.code is not None:
result['code'] = self.code
if self.biz_type is not None:
result['bizType'] = self.biz_type
if self.category is not None:
result['category'] = self.category
if self.display_name is not None:
result['displayName'] = self.display_name
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('code') is not None:
self.code = m.get('code')
if m.get('bizType') is not None:
self.biz_type = m.get('bizType')
if m.get('category') is not None:
self.category = m.get('category')
if m.get('displayName') is not None:
self.display_name = m.get('displayName')
return self
class QueryUserInfoResponseBodyContentGroup(TeaModel):
def __init__(
self,
id: int = None,
name: str = None,
dept_id: int = None,
dept_name: str = None,
):
# 医疗组Id
self.id = id
# 医疗组名称
self.name = name
# 医疗组所在科室Id
self.dept_id = dept_id
# 医疗组所在科室名称
self.dept_name = dept_name
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.id is not None:
result['id'] = self.id
if self.name is not None:
result['name'] = self.name
if self.dept_id is not None:
result['deptId'] = self.dept_id
if self.dept_name is not None:
result['deptName'] = self.dept_name
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('id') is not None:
self.id = m.get('id')
if m.get('name') is not None:
self.name = m.get('name')
if m.get('deptId') is not None:
self.dept_id = m.get('deptId')
if m.get('deptName') is not None:
self.dept_name = m.get('deptName')
return self
class QueryUserInfoResponseBodyContentDept(TeaModel):
def __init__(
self,
id: int = None,
name: str = None,
):
# 科室Id
self.id = id
# 科室名称
self.name = name
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.id is not None:
result['id'] = self.id
if self.name is not None:
result['name'] = self.name
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('id') is not None:
self.id = m.get('id')
if m.get('name') is not None:
self.name = m.get('name')
return self
class QueryUserInfoResponseBodyContentJobStatusList(TeaModel):
def __init__(
self,
code: str = None,
biz_type: str = None,
category: str = None,
display_name: str = None,
):
# 标签Code
self.code = code
# 标签类型
self.biz_type = biz_type
# 分类
self.category = category
# 展示名称
self.display_name = display_name
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.code is not None:
result['code'] = self.code
if self.biz_type is not None:
result['bizType'] = self.biz_type
if self.category is not None:
result['category'] = self.category
if self.display_name is not None:
result['displayName'] = self.display_name
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('code') is not None:
self.code = m.get('code')
if m.get('bizType') is not None:
self.biz_type = m.get('bizType')
if m.get('category') is not None:
self.category = m.get('category')
if m.get('displayName') is not None:
self.display_name = m.get('displayName')
return self
class QueryUserInfoResponseBodyContent(TeaModel):
def __init__(
self,
uid: str = None,
user_name: str = None,
job: QueryUserInfoResponseBodyContentJob = None,
job_num: str = None,
job_status: QueryUserInfoResponseBodyContentJobStatus = None,
user_prob: QueryUserInfoResponseBodyContentUserProb = None,
group: List[QueryUserInfoResponseBodyContentGroup] = None,
dept: List[QueryUserInfoResponseBodyContentDept] = None,
comments: str = None,
job_status_list: List[QueryUserInfoResponseBodyContentJobStatusList] = None,
):
# 用户Id
self.uid = uid
# 用户名称
self.user_name = user_name
# 职称标签
self.job = job
# 工号
self.job_num = job_num
# 工作状态标签, 已废弃, 请使用jobStatusList字段
self.job_status = job_status
# 人员属性标签
self.user_prob = user_prob
# 所在医疗组
self.group = group
# 所在科室
self.dept = dept
# comments
self.comments = comments
# 工作状态标签
self.job_status_list = job_status_list
def validate(self):
if self.job:
self.job.validate()
if self.job_status:
self.job_status.validate()
if self.user_prob:
self.user_prob.validate()
if self.group:
for k in self.group:
if k:
k.validate()
if self.dept:
for k in self.dept:
if k:
k.validate()
if self.job_status_list:
for k in self.job_status_list:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.uid is not None:
result['uid'] = self.uid
if self.user_name is not None:
result['userName'] = self.user_name
if self.job is not None:
result['job'] = self.job.to_map()
if self.job_num is not None:
result['jobNum'] = self.job_num
if self.job_status is not None:
result['jobStatus'] = self.job_status.to_map()
if self.user_prob is not None:
result['userProb'] = self.user_prob.to_map()
result['group'] = []
if self.group is not None:
for k in self.group:
result['group'].append(k.to_map() if k else None)
result['dept'] = []
if self.dept is not None:
for k in self.dept:
result['dept'].append(k.to_map() if k else None)
if self.comments is not None:
result['comments'] = self.comments
result['jobStatusList'] = []
if self.job_status_list is not None:
for k in self.job_status_list:
result['jobStatusList'].append(k.to_map() if k else None)
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('uid') is not None:
self.uid = m.get('uid')
if m.get('userName') is not None:
self.user_name = m.get('userName')
if m.get('job') is not None:
temp_model = QueryUserInfoResponseBodyContentJob()
self.job = temp_model.from_map(m['job'])
if m.get('jobNum') is not None:
self.job_num = m.get('jobNum')
if m.get('jobStatus') is not None:
temp_model = QueryUserInfoResponseBodyContentJobStatus()
self.job_status = temp_model.from_map(m['jobStatus'])
if m.get('userProb') is not None:
temp_model = QueryUserInfoResponseBodyContentUserProb()
self.user_prob = temp_model.from_map(m['userProb'])
self.group = []
if m.get('group') is not None:
for k in m.get('group'):
temp_model = QueryUserInfoResponseBodyContentGroup()
self.group.append(temp_model.from_map(k))
self.dept = []
if m.get('dept') is not None:
for k in m.get('dept'):
temp_model = QueryUserInfoResponseBodyContentDept()
self.dept.append(temp_model.from_map(k))
if m.get('comments') is not None:
self.comments = m.get('comments')
self.job_status_list = []
if m.get('jobStatusList') is not None:
for k in m.get('jobStatusList'):
temp_model = QueryUserInfoResponseBodyContentJobStatusList()
self.job_status_list.append(temp_model.from_map(k))
return self
class QueryUserInfoResponseBody(TeaModel):
def __init__(
self,
content: QueryUserInfoResponseBodyContent = None,
):
# 人员详情
self.content = content
def validate(self):
if self.content:
self.content.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.content is not None:
result['content'] = self.content.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('content') is not None:
temp_model = QueryUserInfoResponseBodyContent()
self.content = temp_model.from_map(m['content'])
return self
class QueryUserInfoResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: QueryUserInfoResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = QueryUserInfoResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class QueryAllMemberByDeptHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class QueryAllMemberByDeptRequest(TeaModel):
def __init__(
self,
page_size: int = None,
page_number: int = None,
):
# 分页查询页容量
self.page_size = page_size
# 分页查询页码
self.page_number = page_number
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.page_size is not None:
result['pageSize'] = self.page_size
if self.page_number is not None:
result['pageNumber'] = self.page_number
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('pageSize') is not None:
self.page_size = m.get('pageSize')
if m.get('pageNumber') is not None:
self.page_number = m.get('pageNumber')
return self
class QueryAllMemberByDeptResponseBodyContent(TeaModel):
def __init__(
self,
uid: str = None,
user_name: str = None,
job_num: str = None,
):
# 用户Id
self.uid = uid
# 用户名称
self.user_name = user_name
# 工号
self.job_num = job_num
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.uid is not None:
result['uid'] = self.uid
if self.user_name is not None:
result['userName'] = self.user_name
if self.job_num is not None:
result['jobNum'] = self.job_num
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('uid') is not None:
self.uid = m.get('uid')
if m.get('userName') is not None:
self.user_name = m.get('userName')
if m.get('jobNum') is not None:
self.job_num = m.get('jobNum')
return self
class QueryAllMemberByDeptResponseBody(TeaModel):
def __init__(
self,
content: List[QueryAllMemberByDeptResponseBodyContent] = None,
total_pages: int = None,
total_count: int = None,
current_page: int = None,
):
# 人员列表
self.content = content
# 总页数
self.total_pages = total_pages
# 数据总量
self.total_count = total_count
# 当前页码
self.current_page = current_page
def validate(self):
if self.content:
for k in self.content:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
result['content'] = []
if self.content is not None:
for k in self.content:
result['content'].append(k.to_map() if k else None)
if self.total_pages is not None:
result['totalPages'] = self.total_pages
if self.total_count is not None:
result['totalCount'] = self.total_count
if self.current_page is not None:
result['currentPage'] = self.current_page
return result
def from_map(self, m: dict = None):
m = m or dict()
self.content = []
if m.get('content') is not None:
for k in m.get('content'):
temp_model = QueryAllMemberByDeptResponseBodyContent()
self.content.append(temp_model.from_map(k))
if m.get('totalPages') is not None:
self.total_pages = m.get('totalPages')
if m.get('totalCount') is not None:
self.total_count = m.get('totalCount')
if m.get('currentPage') is not None:
self.current_page = m.get('currentPage')
return self
class QueryAllMemberByDeptResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: QueryAllMemberByDeptResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = QueryAllMemberByDeptResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class QueryUserRolesHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class QueryUserRolesResponseBodyContent(TeaModel):
def __init__(
self,
role_code: str = None,
role_name: str = None,
):
# 角色编码
self.role_code = role_code
# 角色名称
self.role_name = role_name
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.role_code is not None:
result['roleCode'] = self.role_code
if self.role_name is not None:
result['roleName'] = self.role_name
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('roleCode') is not None:
self.role_code = m.get('roleCode')
if m.get('roleName') is not None:
self.role_name = m.get('roleName')
return self
class QueryUserRolesResponseBody(TeaModel):
def __init__(
self,
content: List[QueryUserRolesResponseBodyContent] = None,
):
# 扩展属性
self.content = content
def validate(self):
if self.content:
for k in self.content:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
result['content'] = []
if self.content is not None:
for k in self.content:
result['content'].append(k.to_map() if k else None)
return result
def from_map(self, m: dict = None):
m = m or dict()
self.content = []
if m.get('content') is not None:
for k in m.get('content'):
temp_model = QueryUserRolesResponseBodyContent()
self.content.append(temp_model.from_map(k))
return self
class QueryUserRolesResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: QueryUserRolesResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = QueryUserRolesResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class QueryAllGroupHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class QueryAllGroupRequest(TeaModel):
def __init__(
self,
page_size: int = None,
page_number: int = None,
):
# 分页查询页容量
self.page_size = page_size
# 分页查询页码
self.page_number = page_number
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.page_size is not None:
result['pageSize'] = self.page_size
if self.page_number is not None:
result['pageNumber'] = self.page_number
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('pageSize') is not None:
self.page_size = m.get('pageSize')
if m.get('pageNumber') is not None:
self.page_number = m.get('pageNumber')
return self
class QueryAllGroupResponseBodyContent(TeaModel):
def __init__(
self,
id: int = None,
name: str = None,
dept_id: int = None,
):
# 医疗组Id
self.id = id
# 医疗组名称
self.name = name
# 所在科室Id
self.dept_id = dept_id
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.id is not None:
result['id'] = self.id
if self.name is not None:
result['name'] = self.name
if self.dept_id is not None:
result['deptId'] = self.dept_id
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('id') is not None:
self.id = m.get('id')
if m.get('name') is not None:
self.name = m.get('name')
if m.get('deptId') is not None:
self.dept_id = m.get('deptId')
return self
class QueryAllGroupResponseBody(TeaModel):
def __init__(
self,
content: List[QueryAllGroupResponseBodyContent] = None,
total_pages: int = None,
total_count: int = None,
current_page: int = None,
):
# Id of the request
self.content = content
# 总页数
self.total_pages = total_pages
# 数据总量
self.total_count = total_count
# 当前页码
self.current_page = current_page
def validate(self):
if self.content:
for k in self.content:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
result['content'] = []
if self.content is not None:
for k in self.content:
result['content'].append(k.to_map() if k else None)
if self.total_pages is not None:
result['totalPages'] = self.total_pages
if self.total_count is not None:
result['totalCount'] = self.total_count
if self.current_page is not None:
result['currentPage'] = self.current_page
return result
def from_map(self, m: dict = None):
m = m or dict()
self.content = []
if m.get('content') is not None:
for k in m.get('content'):
temp_model = QueryAllGroupResponseBodyContent()
self.content.append(temp_model.from_map(k))
if m.get('totalPages') is not None:
self.total_pages = m.get('totalPages')
if m.get('totalCount') is not None:
self.total_count = m.get('totalCount')
if m.get('currentPage') is not None:
self.current_page = m.get('currentPage')
return self
class QueryAllGroupResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: QueryAllGroupResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = QueryAllGroupResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class QueryAllGroupsInDeptHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class QueryAllGroupsInDeptRequest(TeaModel):
def __init__(
self,
page_size: int = None,
page_number: int = None,
):
# 分页查询页容量
self.page_size = page_size
# 分页查询页码
self.page_number = page_number
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.page_size is not None:
result['pageSize'] = self.page_size
if self.page_number is not None:
result['pageNumber'] = self.page_number
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('pageSize') is not None:
self.page_size = m.get('pageSize')
if m.get('pageNumber') is not None:
self.page_number = m.get('pageNumber')
return self
class QueryAllGroupsInDeptResponseBodyContent(TeaModel):
def __init__(
self,
id: int = None,
name: str = None,
dept_id: int = None,
):
# 医疗组Id
self.id = id
# 医疗组名称
self.name = name
# 所在科室Id
self.dept_id = dept_id
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.id is not None:
result['id'] = self.id
if self.name is not None:
result['name'] = self.name
if self.dept_id is not None:
result['deptId'] = self.dept_id
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('id') is not None:
self.id = m.get('id')
if m.get('name') is not None:
self.name = m.get('name')
if m.get('deptId') is not None:
self.dept_id = m.get('deptId')
return self
class QueryAllGroupsInDeptResponseBody(TeaModel):
def __init__(
self,
content: List[QueryAllGroupsInDeptResponseBodyContent] = None,
total_pages: int = None,
total_count: int = None,
current_page: int = None,
):
# Id of the request
self.content = content
# 总页数
self.total_pages = total_pages
# 数据总量
self.total_count = total_count
# 当前页码
self.current_page = current_page
def validate(self):
if self.content:
for k in self.content:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
result['content'] = []
if self.content is not None:
for k in self.content:
result['content'].append(k.to_map() if k else None)
if self.total_pages is not None:
result['totalPages'] = self.total_pages
if self.total_count is not None:
result['totalCount'] = self.total_count
if self.current_page is not None:
result['currentPage'] = self.current_page
return result
def from_map(self, m: dict = None):
m = m or dict()
self.content = []
if m.get('content') is not None:
for k in m.get('content'):
temp_model = QueryAllGroupsInDeptResponseBodyContent()
self.content.append(temp_model.from_map(k))
if m.get('totalPages') is not None:
self.total_pages = m.get('totalPages')
if m.get('totalCount') is not None:
self.total_count = m.get('totalCount')
if m.get('currentPage') is not None:
self.current_page = m.get('currentPage')
return self
class QueryAllGroupsInDeptResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: QueryAllGroupsInDeptResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = QueryAllGroupsInDeptResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class QueryUserExtendValuesHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class QueryUserExtendValuesRequest(TeaModel):
def __init__(
self,
ding_org_id: int = None,
user_ids: List[str] = None,
user_extend_key: str = None,
):
# 组织id
self.ding_org_id = ding_org_id
# userId列表
self.user_ids = user_ids
# 用户拓展key
self.user_extend_key = user_extend_key
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.ding_org_id is not None:
result['dingOrgId'] = self.ding_org_id
if self.user_ids is not None:
result['userIds'] = self.user_ids
if self.user_extend_key is not None:
result['userExtendKey'] = self.user_extend_key
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('dingOrgId') is not None:
self.ding_org_id = m.get('dingOrgId')
if m.get('userIds') is not None:
self.user_ids = m.get('userIds')
if m.get('userExtendKey') is not None:
self.user_extend_key = m.get('userExtendKey')
return self
class QueryUserExtendValuesResponseBodyContent(TeaModel):
def __init__(
self,
user_extend_key: str = None,
user_extend_value: str = None,
user_extend_display_name: str = None,
user_code: str = None,
):
# 扩展字段key
self.user_extend_key = user_extend_key
# 扩展字段value
self.user_extend_value = user_extend_value
# 扩展字段描述
self.user_extend_display_name = user_extend_display_name
# 用户code
self.user_code = user_code
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.user_extend_key is not None:
result['userExtendKey'] = self.user_extend_key
if self.user_extend_value is not None:
result['userExtendValue'] = self.user_extend_value
if self.user_extend_display_name is not None:
result['userExtendDisplayName'] = self.user_extend_display_name
if self.user_code is not None:
result['userCode'] = self.user_code
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('userExtendKey') is not None:
self.user_extend_key = m.get('userExtendKey')
if m.get('userExtendValue') is not None:
self.user_extend_value = m.get('userExtendValue')
if m.get('userExtendDisplayName') is not None:
self.user_extend_display_name = m.get('userExtendDisplayName')
if m.get('userCode') is not None:
self.user_code = m.get('userCode')
return self
class QueryUserExtendValuesResponseBody(TeaModel):
def __init__(
self,
content: List[QueryUserExtendValuesResponseBodyContent] = None,
total_count: int = None,
success: bool = None,
):
# 人员列表
self.content = content
# 数据总量
self.total_count = total_count
# 是否成功
self.success = success
def validate(self):
if self.content:
for k in self.content:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
result['content'] = []
if self.content is not None:
for k in self.content:
result['content'].append(k.to_map() if k else None)
if self.total_count is not None:
result['totalCount'] = self.total_count
if self.success is not None:
result['success'] = self.success
return result
def from_map(self, m: dict = None):
m = m or dict()
self.content = []
if m.get('content') is not None:
for k in m.get('content'):
temp_model = QueryUserExtendValuesResponseBodyContent()
self.content.append(temp_model.from_map(k))
if m.get('totalCount') is not None:
self.total_count = m.get('totalCount')
if m.get('success') is not None:
self.success = m.get('success')
return self
class QueryUserExtendValuesResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: QueryUserExtendValuesResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = QueryUserExtendValuesResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class QueryDepartmentInfoHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class QueryDepartmentInfoResponseBodyContentLeaderJob(TeaModel):
def __init__(
self,
code: str = None,
biz_type: str = None,
category: str = None,
display_name: str = None,
):
# 标签Code
self.code = code
# 业务类型
self.biz_type = biz_type
# 分类
self.category = category
# 展示名称
self.display_name = display_name
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.code is not None:
result['code'] = self.code
if self.biz_type is not None:
result['bizType'] = self.biz_type
if self.category is not None:
result['category'] = self.category
if self.display_name is not None:
result['displayName'] = self.display_name
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('code') is not None:
self.code = m.get('code')
if m.get('bizType') is not None:
self.biz_type = m.get('bizType')
if m.get('category') is not None:
self.category = m.get('category')
if m.get('displayName') is not None:
self.display_name = m.get('displayName')
return self
class QueryDepartmentInfoResponseBodyContentLeader(TeaModel):
def __init__(
self,
name: str = None,
user_id: str = None,
job_number: str = None,
job: QueryDepartmentInfoResponseBodyContentLeaderJob = None,
):
# 姓名
self.name = name
# 人员Id
self.user_id = user_id
# 工号
self.job_number = job_number
# 工作标签
self.job = job
def validate(self):
if self.job:
self.job.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.name is not None:
result['name'] = self.name
if self.user_id is not None:
result['userId'] = self.user_id
if self.job_number is not None:
result['jobNumber'] = self.job_number
if self.job is not None:
result['job'] = self.job.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('name') is not None:
self.name = m.get('name')
if m.get('userId') is not None:
self.user_id = m.get('userId')
if m.get('jobNumber') is not None:
self.job_number = m.get('jobNumber')
if m.get('job') is not None:
temp_model = QueryDepartmentInfoResponseBodyContentLeaderJob()
self.job = temp_model.from_map(m['job'])
return self
class QueryDepartmentInfoResponseBodyContentResidentLeaderJob(TeaModel):
def __init__(
self,
code: str = None,
biz_type: str = None,
category: str = None,
display_name: str = None,
):
# 标签Code
self.code = code
# 业务类型
self.biz_type = biz_type
# 分类
self.category = category
# 展示名称
self.display_name = display_name
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.code is not None:
result['code'] = self.code
if self.biz_type is not None:
result['bizType'] = self.biz_type
if self.category is not None:
result['category'] = self.category
if self.display_name is not None:
result['displayName'] = self.display_name
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('code') is not None:
self.code = m.get('code')
if m.get('bizType') is not None:
self.biz_type = m.get('bizType')
if m.get('category') is not None:
self.category = m.get('category')
if m.get('displayName') is not None:
self.display_name = m.get('displayName')
return self
class QueryDepartmentInfoResponseBodyContentResidentLeader(TeaModel):
def __init__(
self,
name: str = None,
user_id: str = None,
job_number: str = None,
job: QueryDepartmentInfoResponseBodyContentResidentLeaderJob = None,
):
# 姓名
self.name = name
# 人员Id
self.user_id = user_id
# 工号
self.job_number = job_number
# 工作标签
self.job = job
def validate(self):
if self.job:
self.job.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.name is not None:
result['name'] = self.name
if self.user_id is not None:
result['userId'] = self.user_id
if self.job_number is not None:
result['jobNumber'] = self.job_number
if self.job is not None:
result['job'] = self.job.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('name') is not None:
self.name = m.get('name')
if m.get('userId') is not None:
self.user_id = m.get('userId')
if m.get('jobNumber') is not None:
self.job_number = m.get('jobNumber')
if m.get('job') is not None:
temp_model = QueryDepartmentInfoResponseBodyContentResidentLeaderJob()
self.job = temp_model.from_map(m['job'])
return self
class QueryDepartmentInfoResponseBodyContent(TeaModel):
def __init__(
self,
id: int = None,
name: str = None,
leader: QueryDepartmentInfoResponseBodyContentLeader = None,
resident_leader: QueryDepartmentInfoResponseBodyContentResidentLeader = None,
):
# 科室Id
self.id = id
# 科室名称
self.name = name
# 科室主任
self.leader = leader
# 住院总医师
self.resident_leader = resident_leader
def validate(self):
if self.leader:
self.leader.validate()
if self.resident_leader:
self.resident_leader.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.id is not None:
result['id'] = self.id
if self.name is not None:
result['name'] = self.name
if self.leader is not None:
result['leader'] = self.leader.to_map()
if self.resident_leader is not None:
result['residentLeader'] = self.resident_leader.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('id') is not None:
self.id = m.get('id')
if m.get('name') is not None:
self.name = m.get('name')
if m.get('leader') is not None:
temp_model = QueryDepartmentInfoResponseBodyContentLeader()
self.leader = temp_model.from_map(m['leader'])
if m.get('residentLeader') is not None:
temp_model = QueryDepartmentInfoResponseBodyContentResidentLeader()
self.resident_leader = temp_model.from_map(m['residentLeader'])
return self
class QueryDepartmentInfoResponseBody(TeaModel):
def __init__(
self,
content: QueryDepartmentInfoResponseBodyContent = None,
):
# 科室详情
self.content = content
def validate(self):
if self.content:
self.content.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.content is not None:
result['content'] = self.content.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('content') is not None:
temp_model = QueryDepartmentInfoResponseBodyContent()
self.content = temp_model.from_map(m['content'])
return self
class QueryDepartmentInfoResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: QueryDepartmentInfoResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = QueryDepartmentInfoResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class UpdateUserExtendInfoHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class UpdateUserExtendInfoRequest(TeaModel):
def __init__(
self,
job_code: str = None,
user_prob_code: str = None,
job_status_code: List[str] = None,
comments: str = None,
):
# 职称code
self.job_code = job_code
# 用户属性code
self.user_prob_code = user_prob_code
# 工作状态code
self.job_status_code = job_status_code
# comments
self.comments = comments
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.job_code is not None:
result['jobCode'] = self.job_code
if self.user_prob_code is not None:
result['userProbCode'] = self.user_prob_code
if self.job_status_code is not None:
result['jobStatusCode'] = self.job_status_code
if self.comments is not None:
result['comments'] = self.comments
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('jobCode') is not None:
self.job_code = m.get('jobCode')
if m.get('userProbCode') is not None:
self.user_prob_code = m.get('userProbCode')
if m.get('jobStatusCode') is not None:
self.job_status_code = m.get('jobStatusCode')
if m.get('comments') is not None:
self.comments = m.get('comments')
return self
class UpdateUserExtendInfoResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
):
self.headers = headers
def validate(self):
self.validate_required(self.headers, 'headers')
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
return self
class QueryUserExtInfoHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class QueryUserExtInfoResponseBodyContent(TeaModel):
def __init__(
self,
user_extend_key: str = None,
user_extend_value: str = None,
user_extend_display_name: str = None,
org_id: str = None,
status: int = None,
user_code: str = None,
gmt_create: str = None,
gmt_modified: str = None,
):
# 扩展属性Key
self.user_extend_key = user_extend_key
# 扩展属性值
self.user_extend_value = user_extend_value
# 扩展属性描述
self.user_extend_display_name = user_extend_display_name
# 组织id
self.org_id = org_id
# 状态:0-有效,1-无效
self.status = status
# 用户标识
self.user_code = user_code
# 创建时间
self.gmt_create = gmt_create
# 修改时间
self.gmt_modified = gmt_modified
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.user_extend_key is not None:
result['userExtendKey'] = self.user_extend_key
if self.user_extend_value is not None:
result['userExtendValue'] = self.user_extend_value
if self.user_extend_display_name is not None:
result['userExtendDisplayName'] = self.user_extend_display_name
if self.org_id is not None:
result['orgId'] = self.org_id
if self.status is not None:
result['status'] = self.status
if self.user_code is not None:
result['userCode'] = self.user_code
if self.gmt_create is not None:
result['gmtCreate'] = self.gmt_create
if self.gmt_modified is not None:
result['gmtModified'] = self.gmt_modified
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('userExtendKey') is not None:
self.user_extend_key = m.get('userExtendKey')
if m.get('userExtendValue') is not None:
self.user_extend_value = m.get('userExtendValue')
if m.get('userExtendDisplayName') is not None:
self.user_extend_display_name = m.get('userExtendDisplayName')
if m.get('orgId') is not None:
self.org_id = m.get('orgId')
if m.get('status') is not None:
self.status = m.get('status')
if m.get('userCode') is not None:
self.user_code = m.get('userCode')
if m.get('gmtCreate') is not None:
self.gmt_create = m.get('gmtCreate')
if m.get('gmtModified') is not None:
self.gmt_modified = m.get('gmtModified')
return self
class QueryUserExtInfoResponseBody(TeaModel):
def __init__(
self,
content: List[QueryUserExtInfoResponseBodyContent] = None,
):
# 扩展属性
self.content = content
def validate(self):
if self.content:
for k in self.content:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
result['content'] = []
if self.content is not None:
for k in self.content:
result['content'].append(k.to_map() if k else None)
return result
def from_map(self, m: dict = None):
m = m or dict()
self.content = []
if m.get('content') is not None:
for k in m.get('content'):
temp_model = QueryUserExtInfoResponseBodyContent()
self.content.append(temp_model.from_map(k))
return self
class QueryUserExtInfoResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: QueryUserExtInfoResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = QueryUserExtInfoResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class QueryJobCodeDictionaryHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class QueryJobCodeDictionaryResponseBodyContent(TeaModel):
def __init__(
self,
code: str = None,
category: str = None,
display_name: str = None,
doctor_type: str = None,
):
# 固定字段标识
self.code = code
# 分类
self.category = category
# 展示名字
self.display_name = display_name
# 1:医师,0:非医师,2:待补充
self.doctor_type = doctor_type
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.code is not None:
result['code'] = self.code
if self.category is not None:
result['category'] = self.category
if self.display_name is not None:
result['displayName'] = self.display_name
if self.doctor_type is not None:
result['doctorType'] = self.doctor_type
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('code') is not None:
self.code = m.get('code')
if m.get('category') is not None:
self.category = m.get('category')
if m.get('displayName') is not None:
self.display_name = m.get('displayName')
if m.get('doctorType') is not None:
self.doctor_type = m.get('doctorType')
return self
class QueryJobCodeDictionaryResponseBody(TeaModel):
def __init__(
self,
content: List[QueryJobCodeDictionaryResponseBodyContent] = None,
):
# code列表
self.content = content
def validate(self):
if self.content:
for k in self.content:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
result['content'] = []
if self.content is not None:
for k in self.content:
result['content'].append(k.to_map() if k else None)
return result
def from_map(self, m: dict = None):
m = m or dict()
self.content = []
if m.get('content') is not None:
for k in m.get('content'):
temp_model = QueryJobCodeDictionaryResponseBodyContent()
self.content.append(temp_model.from_map(k))
return self
class QueryJobCodeDictionaryResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: QueryJobCodeDictionaryResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = QueryJobCodeDictionaryResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class IndustryManufactureLabourCostHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class IndustryManufactureLabourCostRequest(TeaModel):
def __init__(
self,
process_no: str = None,
material_no: str = None,
start_time: int = None,
end_time: int = None,
cursor: int = None,
page_number: int = None,
page_size: int = None,
token_grant_type: int = None,
org_id: int = None,
corp_id: str = None,
isv_org_id: str = None,
suite_key: str = None,
microapp_agent_id: int = None,
app_ids: List[int] = None,
app_id: int = None,
app_name: str = None,
):
self.process_no = process_no
self.material_no = material_no
self.start_time = start_time
self.end_time = end_time
self.cursor = cursor
self.page_number = page_number
self.page_size = page_size
self.token_grant_type = token_grant_type
self.org_id = org_id
self.corp_id = corp_id
self.isv_org_id = isv_org_id
self.suite_key = suite_key
self.microapp_agent_id = microapp_agent_id
self.app_ids = app_ids
self.app_id = app_id
self.app_name = app_name
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.process_no is not None:
result['processNo'] = self.process_no
if self.material_no is not None:
result['materialNo'] = self.material_no
if self.start_time is not None:
result['startTime'] = self.start_time
if self.end_time is not None:
result['endTime'] = self.end_time
if self.cursor is not None:
result['cursor'] = self.cursor
if self.page_number is not None:
result['pageNumber'] = self.page_number
if self.page_size is not None:
result['pageSize'] = self.page_size
if self.token_grant_type is not None:
result['tokenGrantType'] = self.token_grant_type
if self.org_id is not None:
result['orgId'] = self.org_id
if self.corp_id is not None:
result['corpId'] = self.corp_id
if self.isv_org_id is not None:
result['isvOrgId'] = self.isv_org_id
if self.suite_key is not None:
result['suiteKey'] = self.suite_key
if self.microapp_agent_id is not None:
result['microappAgentId'] = self.microapp_agent_id
if self.app_ids is not None:
result['appIds'] = self.app_ids
if self.app_id is not None:
result['appId'] = self.app_id
if self.app_name is not None:
result['appName'] = self.app_name
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('processNo') is not None:
self.process_no = m.get('processNo')
if m.get('materialNo') is not None:
self.material_no = m.get('materialNo')
if m.get('startTime') is not None:
self.start_time = m.get('startTime')
if m.get('endTime') is not None:
self.end_time = m.get('endTime')
if m.get('cursor') is not None:
self.cursor = m.get('cursor')
if m.get('pageNumber') is not None:
self.page_number = m.get('pageNumber')
if m.get('pageSize') is not None:
self.page_size = m.get('pageSize')
if m.get('tokenGrantType') is not None:
self.token_grant_type = m.get('tokenGrantType')
if m.get('orgId') is not None:
self.org_id = m.get('orgId')
if m.get('corpId') is not None:
self.corp_id = m.get('corpId')
if m.get('isvOrgId') is not None:
self.isv_org_id = m.get('isvOrgId')
if m.get('suiteKey') is not None:
self.suite_key = m.get('suiteKey')
if m.get('microappAgentId') is not None:
self.microapp_agent_id = m.get('microappAgentId')
if m.get('appIds') is not None:
self.app_ids = m.get('appIds')
if m.get('appId') is not None:
self.app_id = m.get('appId')
if m.get('appName') is not None:
self.app_name = m.get('appName')
return self
class IndustryManufactureLabourCostResponseBodyList(TeaModel):
def __init__(
self,
gmt_create: int = None,
gmt_modified: int = None,
corp_id: str = None,
labour_cost_no: str = None,
labour_cost_name: str = None,
process_no: str = None,
process_name: str = None,
material_no: str = None,
material_name: str = None,
qualified_price: float = None,
un_qualified_price_1: float = None,
un_qualified_reason_1: str = None,
instance_id: str = None,
process_code: str = None,
ext: str = None,
un_qualified_reason_2: str = None,
un_qualified_price_2: float = None,
un_qualified_info: str = None,
):
self.gmt_create = gmt_create
self.gmt_modified = gmt_modified
self.corp_id = corp_id
self.labour_cost_no = labour_cost_no
self.labour_cost_name = labour_cost_name
self.process_no = process_no
self.process_name = process_name
self.material_no = material_no
self.material_name = material_name
self.qualified_price = qualified_price
self.un_qualified_price_1 = un_qualified_price_1
self.un_qualified_reason_1 = un_qualified_reason_1
self.instance_id = instance_id
self.process_code = process_code
self.ext = ext
self.un_qualified_reason_2 = un_qualified_reason_2
self.un_qualified_price_2 = un_qualified_price_2
self.un_qualified_info = un_qualified_info
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.gmt_create is not None:
result['gmtCreate'] = self.gmt_create
if self.gmt_modified is not None:
result['gmtModified'] = self.gmt_modified
if self.corp_id is not None:
result['corpId'] = self.corp_id
if self.labour_cost_no is not None:
result['labourCostNo'] = self.labour_cost_no
if self.labour_cost_name is not None:
result['labourCostName'] = self.labour_cost_name
if self.process_no is not None:
result['processNo'] = self.process_no
if self.process_name is not None:
result['processName'] = self.process_name
if self.material_no is not None:
result['materialNo'] = self.material_no
if self.material_name is not None:
result['materialName'] = self.material_name
if self.qualified_price is not None:
result['qualifiedPrice'] = self.qualified_price
if self.un_qualified_price_1 is not None:
result['unQualifiedPrice1'] = self.un_qualified_price_1
if self.un_qualified_reason_1 is not None:
result['unQualifiedReason1'] = self.un_qualified_reason_1
if self.instance_id is not None:
result['instanceId'] = self.instance_id
if self.process_code is not None:
result['processCode'] = self.process_code
if self.ext is not None:
result['ext'] = self.ext
if self.un_qualified_reason_2 is not None:
result['unQualifiedReason2'] = self.un_qualified_reason_2
if self.un_qualified_price_2 is not None:
result['unQualifiedPrice2'] = self.un_qualified_price_2
if self.un_qualified_info is not None:
result['unQualifiedInfo'] = self.un_qualified_info
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('gmtCreate') is not None:
self.gmt_create = m.get('gmtCreate')
if m.get('gmtModified') is not None:
self.gmt_modified = m.get('gmtModified')
if m.get('corpId') is not None:
self.corp_id = m.get('corpId')
if m.get('labourCostNo') is not None:
self.labour_cost_no = m.get('labourCostNo')
if m.get('labourCostName') is not None:
self.labour_cost_name = m.get('labourCostName')
if m.get('processNo') is not None:
self.process_no = m.get('processNo')
if m.get('processName') is not None:
self.process_name = m.get('processName')
if m.get('materialNo') is not None:
self.material_no = m.get('materialNo')
if m.get('materialName') is not None:
self.material_name = m.get('materialName')
if m.get('qualifiedPrice') is not None:
self.qualified_price = m.get('qualifiedPrice')
if m.get('unQualifiedPrice1') is not None:
self.un_qualified_price_1 = m.get('unQualifiedPrice1')
if m.get('unQualifiedReason1') is not None:
self.un_qualified_reason_1 = m.get('unQualifiedReason1')
if m.get('instanceId') is not None:
self.instance_id = m.get('instanceId')
if m.get('processCode') is not None:
self.process_code = m.get('processCode')
if m.get('ext') is not None:
self.ext = m.get('ext')
if m.get('unQualifiedReason2') is not None:
self.un_qualified_reason_2 = m.get('unQualifiedReason2')
if m.get('unQualifiedPrice2') is not None:
self.un_qualified_price_2 = m.get('unQualifiedPrice2')
if m.get('unQualifiedInfo') is not None:
self.un_qualified_info = m.get('unQualifiedInfo')
return self
class IndustryManufactureLabourCostResponseBody(TeaModel):
def __init__(
self,
list: List[IndustryManufactureLabourCostResponseBodyList] = None,
has_more: bool = None,
next_cursor: int = None,
total_count: int = None,
):
self.list = list
self.has_more = has_more
self.next_cursor = next_cursor
self.total_count = total_count
def validate(self):
if self.list:
for k in self.list:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
result['list'] = []
if self.list is not None:
for k in self.list:
result['list'].append(k.to_map() if k else None)
if self.has_more is not None:
result['hasMore'] = self.has_more
if self.next_cursor is not None:
result['nextCursor'] = self.next_cursor
if self.total_count is not None:
result['totalCount'] = self.total_count
return result
def from_map(self, m: dict = None):
m = m or dict()
self.list = []
if m.get('list') is not None:
for k in m.get('list'):
temp_model = IndustryManufactureLabourCostResponseBodyList()
self.list.append(temp_model.from_map(k))
if m.get('hasMore') is not None:
self.has_more = m.get('hasMore')
if m.get('nextCursor') is not None:
self.next_cursor = m.get('nextCursor')
if m.get('totalCount') is not None:
self.total_count = m.get('totalCount')
return self
class IndustryManufactureLabourCostResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: IndustryManufactureLabourCostResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = IndustryManufactureLabourCostResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class QueryHospitalDistrictInfoHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class QueryHospitalDistrictInfoRequest(TeaModel):
def __init__(
self,
page_size: int = None,
page_number: int = None,
):
# 分页查询分页大小
self.page_size = page_size
# 分页查询页码
self.page_number = page_number
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.page_size is not None:
result['pageSize'] = self.page_size
if self.page_number is not None:
result['pageNumber'] = self.page_number
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('pageSize') is not None:
self.page_size = m.get('pageSize')
if m.get('pageNumber') is not None:
self.page_number = m.get('pageNumber')
return self
class QueryHospitalDistrictInfoResponseBodyContent(TeaModel):
def __init__(
self,
id: int = None,
district_name: str = None,
district_type: int = None,
parent_district_id: int = None,
address: str = None,
deleted: int = None,
gmt_create: str = None,
gmt_modified: str = None,
):
# 主键
self.id = id
# 院区或病区名称
self.district_name = district_name
# 类型,1:院区;2:病区
self.district_type = district_type
# 院区id
self.parent_district_id = parent_district_id
# 病区对应的物理地址
self.address = address
# 删除,0:正常,其他:已删除
self.deleted = deleted
# 创建时间
self.gmt_create = gmt_create
# 修改时间
self.gmt_modified = gmt_modified
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.id is not None:
result['id'] = self.id
if self.district_name is not None:
result['districtName'] = self.district_name
if self.district_type is not None:
result['districtType'] = self.district_type
if self.parent_district_id is not None:
result['parentDistrictId'] = self.parent_district_id
if self.address is not None:
result['address'] = self.address
if self.deleted is not None:
result['deleted'] = self.deleted
if self.gmt_create is not None:
result['gmtCreate'] = self.gmt_create
if self.gmt_modified is not None:
result['gmtModified'] = self.gmt_modified
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('id') is not None:
self.id = m.get('id')
if m.get('districtName') is not None:
self.district_name = m.get('districtName')
if m.get('districtType') is not None:
self.district_type = m.get('districtType')
if m.get('parentDistrictId') is not None:
self.parent_district_id = m.get('parentDistrictId')
if m.get('address') is not None:
self.address = m.get('address')
if m.get('deleted') is not None:
self.deleted = m.get('deleted')
if m.get('gmtCreate') is not None:
self.gmt_create = m.get('gmtCreate')
if m.get('gmtModified') is not None:
self.gmt_modified = m.get('gmtModified')
return self
class QueryHospitalDistrictInfoResponseBody(TeaModel):
def __init__(
self,
content: List[QueryHospitalDistrictInfoResponseBodyContent] = None,
total_pages: int = None,
total_count: int = None,
current_page: int = None,
):
# 院区病区详情
self.content = content
# 总页数
self.total_pages = total_pages
# 数据总量
self.total_count = total_count
# 当前页码
self.current_page = current_page
def validate(self):
if self.content:
for k in self.content:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
result['content'] = []
if self.content is not None:
for k in self.content:
result['content'].append(k.to_map() if k else None)
if self.total_pages is not None:
result['totalPages'] = self.total_pages
if self.total_count is not None:
result['totalCount'] = self.total_count
if self.current_page is not None:
result['currentPage'] = self.current_page
return result
def from_map(self, m: dict = None):
m = m or dict()
self.content = []
if m.get('content') is not None:
for k in m.get('content'):
temp_model = QueryHospitalDistrictInfoResponseBodyContent()
self.content.append(temp_model.from_map(k))
if m.get('totalPages') is not None:
self.total_pages = m.get('totalPages')
if m.get('totalCount') is not None:
self.total_count = m.get('totalCount')
if m.get('currentPage') is not None:
self.current_page = m.get('currentPage')
return self
class QueryHospitalDistrictInfoResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: QueryHospitalDistrictInfoResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = QueryHospitalDistrictInfoResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class IndustryManufactureCostRecordListGetHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class IndustryManufactureCostRecordListGetRequest(TeaModel):
def __init__(
self,
instance_id: str = None,
material_no: str = None,
order_no: str = None,
production_task_no: str = None,
start_time: int = None,
end_time: int = None,
cursor: int = None,
page_number: int = None,
page_size: int = None,
token_grant_type: int = None,
org_id: int = None,
corp_id: str = None,
isv_org_id: int = None,
suite_key: str = None,
microapp_agent_id: int = None,
app_ids: List[int] = None,
app_id: int = None,
app_name: str = None,
):
self.instance_id = instance_id
self.material_no = material_no
self.order_no = order_no
self.production_task_no = production_task_no
self.start_time = start_time
self.end_time = end_time
self.cursor = cursor
self.page_number = page_number
self.page_size = page_size
self.token_grant_type = token_grant_type
self.org_id = org_id
self.corp_id = corp_id
self.isv_org_id = isv_org_id
self.suite_key = suite_key
self.microapp_agent_id = microapp_agent_id
self.app_ids = app_ids
self.app_id = app_id
self.app_name = app_name
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.instance_id is not None:
result['instanceId'] = self.instance_id
if self.material_no is not None:
result['materialNo'] = self.material_no
if self.order_no is not None:
result['orderNo'] = self.order_no
if self.production_task_no is not None:
result['productionTaskNo'] = self.production_task_no
if self.start_time is not None:
result['startTime'] = self.start_time
if self.end_time is not None:
result['endTime'] = self.end_time
if self.cursor is not None:
result['cursor'] = self.cursor
if self.page_number is not None:
result['pageNumber'] = self.page_number
if self.page_size is not None:
result['pageSize'] = self.page_size
if self.token_grant_type is not None:
result['tokenGrantType'] = self.token_grant_type
if self.org_id is not None:
result['orgId'] = self.org_id
if self.corp_id is not None:
result['corpId'] = self.corp_id
if self.isv_org_id is not None:
result['isvOrgId'] = self.isv_org_id
if self.suite_key is not None:
result['suiteKey'] = self.suite_key
if self.microapp_agent_id is not None:
result['microappAgentId'] = self.microapp_agent_id
if self.app_ids is not None:
result['appIds'] = self.app_ids
if self.app_id is not None:
result['appId'] = self.app_id
if self.app_name is not None:
result['appName'] = self.app_name
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('instanceId') is not None:
self.instance_id = m.get('instanceId')
if m.get('materialNo') is not None:
self.material_no = m.get('materialNo')
if m.get('orderNo') is not None:
self.order_no = m.get('orderNo')
if m.get('productionTaskNo') is not None:
self.production_task_no = m.get('productionTaskNo')
if m.get('startTime') is not None:
self.start_time = m.get('startTime')
if m.get('endTime') is not None:
self.end_time = m.get('endTime')
if m.get('cursor') is not None:
self.cursor = m.get('cursor')
if m.get('pageNumber') is not None:
self.page_number = m.get('pageNumber')
if m.get('pageSize') is not None:
self.page_size = m.get('pageSize')
if m.get('tokenGrantType') is not None:
self.token_grant_type = m.get('tokenGrantType')
if m.get('orgId') is not None:
self.org_id = m.get('orgId')
if m.get('corpId') is not None:
self.corp_id = m.get('corpId')
if m.get('isvOrgId') is not None:
self.isv_org_id = m.get('isvOrgId')
if m.get('suiteKey') is not None:
self.suite_key = m.get('suiteKey')
if m.get('microappAgentId') is not None:
self.microapp_agent_id = m.get('microappAgentId')
if m.get('appIds') is not None:
self.app_ids = m.get('appIds')
if m.get('appId') is not None:
self.app_id = m.get('appId')
if m.get('appName') is not None:
self.app_name = m.get('appName')
return self
class IndustryManufactureCostRecordListGetResponseBodyList(TeaModel):
def __init__(
self,
gmt_create: int = None,
gmt_modified: int = None,
corp_id: str = None,
material_cost_record_no: str = None,
instance_id: str = None,
material_no: str = None,
material_name: str = None,
unit: str = None,
count: float = None,
type: str = None,
price: float = None,
order_no: str = None,
production_task_no: str = None,
is_deleted: str = None,
ext: str = None,
memo: str = None,
real_count: float = None,
real_price: float = None,
process_code: str = None,
):
self.gmt_create = gmt_create
self.gmt_modified = gmt_modified
self.corp_id = corp_id
self.material_cost_record_no = material_cost_record_no
self.instance_id = instance_id
self.material_no = material_no
self.material_name = material_name
self.unit = unit
self.count = count
self.type = type
self.price = price
self.order_no = order_no
self.production_task_no = production_task_no
self.is_deleted = is_deleted
self.ext = ext
self.memo = memo
self.real_count = real_count
self.real_price = real_price
self.process_code = process_code
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.gmt_create is not None:
result['gmtCreate'] = self.gmt_create
if self.gmt_modified is not None:
result['gmtModified'] = self.gmt_modified
if self.corp_id is not None:
result['corpId'] = self.corp_id
if self.material_cost_record_no is not None:
result['materialCostRecordNo'] = self.material_cost_record_no
if self.instance_id is not None:
result['instanceId'] = self.instance_id
if self.material_no is not None:
result['materialNo'] = self.material_no
if self.material_name is not None:
result['materialName'] = self.material_name
if self.unit is not None:
result['unit'] = self.unit
if self.count is not None:
result['count'] = self.count
if self.type is not None:
result['type'] = self.type
if self.price is not None:
result['price'] = self.price
if self.order_no is not None:
result['orderNo'] = self.order_no
if self.production_task_no is not None:
result['productionTaskNo'] = self.production_task_no
if self.is_deleted is not None:
result['isDeleted'] = self.is_deleted
if self.ext is not None:
result['ext'] = self.ext
if self.memo is not None:
result['memo'] = self.memo
if self.real_count is not None:
result['realCount'] = self.real_count
if self.real_price is not None:
result['realPrice'] = self.real_price
if self.process_code is not None:
result['processCode'] = self.process_code
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('gmtCreate') is not None:
self.gmt_create = m.get('gmtCreate')
if m.get('gmtModified') is not None:
self.gmt_modified = m.get('gmtModified')
if m.get('corpId') is not None:
self.corp_id = m.get('corpId')
if m.get('materialCostRecordNo') is not None:
self.material_cost_record_no = m.get('materialCostRecordNo')
if m.get('instanceId') is not None:
self.instance_id = m.get('instanceId')
if m.get('materialNo') is not None:
self.material_no = m.get('materialNo')
if m.get('materialName') is not None:
self.material_name = m.get('materialName')
if m.get('unit') is not None:
self.unit = m.get('unit')
if m.get('count') is not None:
self.count = m.get('count')
if m.get('type') is not None:
self.type = m.get('type')
if m.get('price') is not None:
self.price = m.get('price')
if m.get('orderNo') is not None:
self.order_no = m.get('orderNo')
if m.get('productionTaskNo') is not None:
self.production_task_no = m.get('productionTaskNo')
if m.get('isDeleted') is not None:
self.is_deleted = m.get('isDeleted')
if m.get('ext') is not None:
self.ext = m.get('ext')
if m.get('memo') is not None:
self.memo = m.get('memo')
if m.get('realCount') is not None:
self.real_count = m.get('realCount')
if m.get('realPrice') is not None:
self.real_price = m.get('realPrice')
if m.get('processCode') is not None:
self.process_code = m.get('processCode')
return self
class IndustryManufactureCostRecordListGetResponseBody(TeaModel):
def __init__(
self,
list: List[IndustryManufactureCostRecordListGetResponseBodyList] = None,
next_cursor: int = None,
total_count: int = None,
has_more: bool = None,
):
self.list = list
self.next_cursor = next_cursor
self.total_count = total_count
self.has_more = has_more
def validate(self):
if self.list:
for k in self.list:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
result['list'] = []
if self.list is not None:
for k in self.list:
result['list'].append(k.to_map() if k else None)
if self.next_cursor is not None:
result['nextCursor'] = self.next_cursor
if self.total_count is not None:
result['totalCount'] = self.total_count
if self.has_more is not None:
result['hasMore'] = self.has_more
return result
def from_map(self, m: dict = None):
m = m or dict()
self.list = []
if m.get('list') is not None:
for k in m.get('list'):
temp_model = IndustryManufactureCostRecordListGetResponseBodyList()
self.list.append(temp_model.from_map(k))
if m.get('nextCursor') is not None:
self.next_cursor = m.get('nextCursor')
if m.get('totalCount') is not None:
self.total_count = m.get('totalCount')
if m.get('hasMore') is not None:
self.has_more = m.get('hasMore')
return self
class IndustryManufactureCostRecordListGetResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: IndustryManufactureCostRecordListGetResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = IndustryManufactureCostRecordListGetResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class QueryAllMemberByGroupHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class QueryAllMemberByGroupRequest(TeaModel):
def __init__(
self,
page_size: int = None,
page_number: int = None,
):
# 分页查询分页大小
self.page_size = page_size
# 分页查询页码
self.page_number = page_number
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.page_size is not None:
result['pageSize'] = self.page_size
if self.page_number is not None:
result['pageNumber'] = self.page_number
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('pageSize') is not None:
self.page_size = m.get('pageSize')
if m.get('pageNumber') is not None:
self.page_number = m.get('pageNumber')
return self
class QueryAllMemberByGroupResponseBodyContent(TeaModel):
def __init__(
self,
uid: str = None,
user_name: str = None,
job_num: str = None,
):
# 用户Id
self.uid = uid
# 用户名称
self.user_name = user_name
# 工号
self.job_num = job_num
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.uid is not None:
result['uid'] = self.uid
if self.user_name is not None:
result['userName'] = self.user_name
if self.job_num is not None:
result['jobNum'] = self.job_num
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('uid') is not None:
self.uid = m.get('uid')
if m.get('userName') is not None:
self.user_name = m.get('userName')
if m.get('jobNum') is not None:
self.job_num = m.get('jobNum')
return self
class QueryAllMemberByGroupResponseBody(TeaModel):
def __init__(
self,
content: List[QueryAllMemberByGroupResponseBodyContent] = None,
total_pages: int = None,
total_count: int = None,
current_page: int = None,
):
# 人员列表
self.content = content
# 总页数
self.total_pages = total_pages
# 数据总量
self.total_count = total_count
# 当前页码
self.current_page = current_page
def validate(self):
if self.content:
for k in self.content:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
result['content'] = []
if self.content is not None:
for k in self.content:
result['content'].append(k.to_map() if k else None)
if self.total_pages is not None:
result['totalPages'] = self.total_pages
if self.total_count is not None:
result['totalCount'] = self.total_count
if self.current_page is not None:
result['currentPage'] = self.current_page
return result
def from_map(self, m: dict = None):
m = m or dict()
self.content = []
if m.get('content') is not None:
for k in m.get('content'):
temp_model = QueryAllMemberByGroupResponseBodyContent()
self.content.append(temp_model.from_map(k))
if m.get('totalPages') is not None:
self.total_pages = m.get('totalPages')
if m.get('totalCount') is not None:
self.total_count = m.get('totalCount')
if m.get('currentPage') is not None:
self.current_page = m.get('currentPage')
return self
class QueryAllMemberByGroupResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: QueryAllMemberByGroupResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = QueryAllMemberByGroupResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class QueryHospitalRolesHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class QueryHospitalRolesResponseBodyContent(TeaModel):
def __init__(
self,
id: int = None,
gmt_create: str = None,
is_deleted: int = None,
role_code: str = None,
role_name: str = None,
remark: str = None,
sort: int = None,
read_only: int = None,
):
# 主键
self.id = id
# 修改时间
self.gmt_create = gmt_create
# 是否已删除,默认0未删除,1已删除
self.is_deleted = is_deleted
# 角色编码
self.role_code = role_code
# 角色名称
self.role_name = role_name
# 备注
self.remark = remark
# 排序,数字越小越靠前,默认0
self.sort = sort
# 角色关联权限点是否只读
self.read_only = read_only
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.id is not None:
result['id'] = self.id
if self.gmt_create is not None:
result['gmtCreate'] = self.gmt_create
if self.is_deleted is not None:
result['isDeleted'] = self.is_deleted
if self.role_code is not None:
result['roleCode'] = self.role_code
if self.role_name is not None:
result['roleName'] = self.role_name
if self.remark is not None:
result['remark'] = self.remark
if self.sort is not None:
result['sort'] = self.sort
if self.read_only is not None:
result['readOnly'] = self.read_only
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('id') is not None:
self.id = m.get('id')
if m.get('gmtCreate') is not None:
self.gmt_create = m.get('gmtCreate')
if m.get('isDeleted') is not None:
self.is_deleted = m.get('isDeleted')
if m.get('roleCode') is not None:
self.role_code = m.get('roleCode')
if m.get('roleName') is not None:
self.role_name = m.get('roleName')
if m.get('remark') is not None:
self.remark = m.get('remark')
if m.get('sort') is not None:
self.sort = m.get('sort')
if m.get('readOnly') is not None:
self.read_only = m.get('readOnly')
return self
class QueryHospitalRolesResponseBody(TeaModel):
def __init__(
self,
content: List[QueryHospitalRolesResponseBodyContent] = None,
):
# 角色列表
self.content = content
def validate(self):
if self.content:
for k in self.content:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
result['content'] = []
if self.content is not None:
for k in self.content:
result['content'].append(k.to_map() if k else None)
return result
def from_map(self, m: dict = None):
m = m or dict()
self.content = []
if m.get('content') is not None:
for k in m.get('content'):
temp_model = QueryHospitalRolesResponseBodyContent()
self.content.append(temp_model.from_map(k))
return self
class QueryHospitalRolesResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: QueryHospitalRolesResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = QueryHospitalRolesResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class QueryBizOptLogHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class QueryBizOptLogRequest(TeaModel):
def __init__(
self,
next_token: int = None,
max_results: int = None,
):
# 拉取记录的起始位置,默认从上次拉取的最后位置开始
self.next_token = next_token
# 每次拉取的数据量,最大200条
self.max_results = max_results
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.next_token is not None:
result['nextToken'] = self.next_token
if self.max_results is not None:
result['maxResults'] = self.max_results
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('nextToken') is not None:
self.next_token = m.get('nextToken')
if m.get('maxResults') is not None:
self.max_results = m.get('maxResults')
return self
class QueryBizOptLogResponseBodyContent(TeaModel):
def __init__(
self,
id: int = None,
data_type: int = None,
biz_type: int = None,
opt_time: int = None,
opt_user_code: str = None,
opt_user_name: str = None,
opt_job_number: str = None,
opt_type: int = None,
opt_biz_type: int = None,
opt_object_code: str = None,
opt_object_user_job_no: str = None,
opt_object_name: str = None,
opt_success: int = None,
remark: str = None,
opt_before_data: str = None,
opt_after_data: str = None,
opt_extend: str = None,
):
# 日志ID
self.id = id
# 数据类型
self.data_type = data_type
# 业务类型
self.biz_type = biz_type
# 操作时间 时间戳
self.opt_time = opt_time
# 操作用户code
self.opt_user_code = opt_user_code
# 操作用户名称
self.opt_user_name = opt_user_name
# 操作者工号
self.opt_job_number = opt_job_number
# 操作类型
self.opt_type = opt_type
# 操作业务类型
self.opt_biz_type = opt_biz_type
# 操作对象code,人员code,或者部门code
self.opt_object_code = opt_object_code
# 操作对象人员工号
self.opt_object_user_job_no = opt_object_user_job_no
# 操作对象名称
self.opt_object_name = opt_object_name
# 操作是否成功
self.opt_success = opt_success
# 备注
self.remark = remark
# 操作前对象数据快照,json格式
self.opt_before_data = opt_before_data
# 操作后对象数据快照,json格式
self.opt_after_data = opt_after_data
# 扩展信息,map json格式
self.opt_extend = opt_extend
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.id is not None:
result['id'] = self.id
if self.data_type is not None:
result['dataType'] = self.data_type
if self.biz_type is not None:
result['bizType'] = self.biz_type
if self.opt_time is not None:
result['optTime'] = self.opt_time
if self.opt_user_code is not None:
result['optUserCode'] = self.opt_user_code
if self.opt_user_name is not None:
result['optUserName'] = self.opt_user_name
if self.opt_job_number is not None:
result['optJobNumber'] = self.opt_job_number
if self.opt_type is not None:
result['optType'] = self.opt_type
if self.opt_biz_type is not None:
result['optBizType'] = self.opt_biz_type
if self.opt_object_code is not None:
result['optObjectCode'] = self.opt_object_code
if self.opt_object_user_job_no is not None:
result['optObjectUserJobNo'] = self.opt_object_user_job_no
if self.opt_object_name is not None:
result['optObjectName'] = self.opt_object_name
if self.opt_success is not None:
result['optSuccess'] = self.opt_success
if self.remark is not None:
result['remark'] = self.remark
if self.opt_before_data is not None:
result['optBeforeData'] = self.opt_before_data
if self.opt_after_data is not None:
result['optAfterData'] = self.opt_after_data
if self.opt_extend is not None:
result['optExtend'] = self.opt_extend
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('id') is not None:
self.id = m.get('id')
if m.get('dataType') is not None:
self.data_type = m.get('dataType')
if m.get('bizType') is not None:
self.biz_type = m.get('bizType')
if m.get('optTime') is not None:
self.opt_time = m.get('optTime')
if m.get('optUserCode') is not None:
self.opt_user_code = m.get('optUserCode')
if m.get('optUserName') is not None:
self.opt_user_name = m.get('optUserName')
if m.get('optJobNumber') is not None:
self.opt_job_number = m.get('optJobNumber')
if m.get('optType') is not None:
self.opt_type = m.get('optType')
if m.get('optBizType') is not None:
self.opt_biz_type = m.get('optBizType')
if m.get('optObjectCode') is not None:
self.opt_object_code = m.get('optObjectCode')
if m.get('optObjectUserJobNo') is not None:
self.opt_object_user_job_no = m.get('optObjectUserJobNo')
if m.get('optObjectName') is not None:
self.opt_object_name = m.get('optObjectName')
if m.get('optSuccess') is not None:
self.opt_success = m.get('optSuccess')
if m.get('remark') is not None:
self.remark = m.get('remark')
if m.get('optBeforeData') is not None:
self.opt_before_data = m.get('optBeforeData')
if m.get('optAfterData') is not None:
self.opt_after_data = m.get('optAfterData')
if m.get('optExtend') is not None:
self.opt_extend = m.get('optExtend')
return self
class QueryBizOptLogResponseBody(TeaModel):
def __init__(
self,
content: List[QueryBizOptLogResponseBodyContent] = None,
next_token: int = None,
):
# content
self.content = content
# 下次拉取数据的起始位置
self.next_token = next_token
def validate(self):
if self.content:
for k in self.content:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
result['content'] = []
if self.content is not None:
for k in self.content:
result['content'].append(k.to_map() if k else None)
if self.next_token is not None:
result['nextToken'] = self.next_token
return result
def from_map(self, m: dict = None):
m = m or dict()
self.content = []
if m.get('content') is not None:
for k in m.get('content'):
temp_model = QueryBizOptLogResponseBodyContent()
self.content.append(temp_model.from_map(k))
if m.get('nextToken') is not None:
self.next_token = m.get('nextToken')
return self
class QueryBizOptLogResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: QueryBizOptLogResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = QueryBizOptLogResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class QueryHospitalRoleUserInfoHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class QueryHospitalRoleUserInfoRequest(TeaModel):
def __init__(
self,
page_size: int = None,
page_number: int = None,
):
# 分页查询分页大小
self.page_size = page_size
# 分页查询页码
self.page_number = page_number
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.page_size is not None:
result['pageSize'] = self.page_size
if self.page_number is not None:
result['pageNumber'] = self.page_number
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('pageSize') is not None:
self.page_size = m.get('pageSize')
if m.get('pageNumber') is not None:
self.page_number = m.get('pageNumber')
return self
class QueryHospitalRoleUserInfoResponseBodyContent(TeaModel):
def __init__(
self,
user_code: str = None,
user_name: str = None,
job_number: str = None,
role_code: str = None,
role_name: str = None,
gmt_create: str = None,
gmt_modified: str = None,
):
# 用户编码
self.user_code = user_code
# 用户名称
self.user_name = user_name
# 用户工号
self.job_number = job_number
# 角色编码
self.role_code = role_code
# 角色名称
self.role_name = role_name
# gmtCreate
self.gmt_create = gmt_create
# 修改时间
self.gmt_modified = gmt_modified
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.user_code is not None:
result['userCode'] = self.user_code
if self.user_name is not None:
result['userName'] = self.user_name
if self.job_number is not None:
result['jobNumber'] = self.job_number
if self.role_code is not None:
result['roleCode'] = self.role_code
if self.role_name is not None:
result['roleName'] = self.role_name
if self.gmt_create is not None:
result['gmtCreate'] = self.gmt_create
if self.gmt_modified is not None:
result['gmtModified'] = self.gmt_modified
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('userCode') is not None:
self.user_code = m.get('userCode')
if m.get('userName') is not None:
self.user_name = m.get('userName')
if m.get('jobNumber') is not None:
self.job_number = m.get('jobNumber')
if m.get('roleCode') is not None:
self.role_code = m.get('roleCode')
if m.get('roleName') is not None:
self.role_name = m.get('roleName')
if m.get('gmtCreate') is not None:
self.gmt_create = m.get('gmtCreate')
if m.get('gmtModified') is not None:
self.gmt_modified = m.get('gmtModified')
return self
class QueryHospitalRoleUserInfoResponseBody(TeaModel):
def __init__(
self,
content: List[QueryHospitalRoleUserInfoResponseBodyContent] = None,
total_pages: int = None,
total_count: int = None,
current_page: int = None,
):
# 角色人员信息
self.content = content
# 总页数
self.total_pages = total_pages
# 总数量
self.total_count = total_count
# 当前页码
self.current_page = current_page
def validate(self):
if self.content:
for k in self.content:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
result['content'] = []
if self.content is not None:
for k in self.content:
result['content'].append(k.to_map() if k else None)
if self.total_pages is not None:
result['totalPages'] = self.total_pages
if self.total_count is not None:
result['totalCount'] = self.total_count
if self.current_page is not None:
result['currentPage'] = self.current_page
return result
def from_map(self, m: dict = None):
m = m or dict()
self.content = []
if m.get('content') is not None:
for k in m.get('content'):
temp_model = QueryHospitalRoleUserInfoResponseBodyContent()
self.content.append(temp_model.from_map(k))
if m.get('totalPages') is not None:
self.total_pages = m.get('totalPages')
if m.get('totalCount') is not None:
self.total_count = m.get('totalCount')
if m.get('currentPage') is not None:
self.current_page = m.get('currentPage')
return self
class QueryHospitalRoleUserInfoResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: QueryHospitalRoleUserInfoResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = QueryHospitalRoleUserInfoResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class QueryUserProbCodeDictionaryHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class QueryUserProbCodeDictionaryResponseBodyContent(TeaModel):
def __init__(
self,
code: str = None,
category: str = None,
display_name: str = None,
):
# 固定字段标识
self.code = code
# 分类
self.category = category
# 展示名字
self.display_name = display_name
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.code is not None:
result['code'] = self.code
if self.category is not None:
result['category'] = self.category
if self.display_name is not None:
result['displayName'] = self.display_name
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('code') is not None:
self.code = m.get('code')
if m.get('category') is not None:
self.category = m.get('category')
if m.get('displayName') is not None:
self.display_name = m.get('displayName')
return self
class QueryUserProbCodeDictionaryResponseBody(TeaModel):
def __init__(
self,
content: List[QueryUserProbCodeDictionaryResponseBodyContent] = None,
):
# code列表
self.content = content
def validate(self):
if self.content:
for k in self.content:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
result['content'] = []
if self.content is not None:
for k in self.content:
result['content'].append(k.to_map() if k else None)
return result
def from_map(self, m: dict = None):
m = m or dict()
self.content = []
if m.get('content') is not None:
for k in m.get('content'):
temp_model = QueryUserProbCodeDictionaryResponseBodyContent()
self.content.append(temp_model.from_map(k))
return self
class QueryUserProbCodeDictionaryResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: QueryUserProbCodeDictionaryResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = QueryUserProbCodeDictionaryResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class QueryJobStatusCodeDictionaryHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class QueryJobStatusCodeDictionaryResponseBodyContent(TeaModel):
def __init__(
self,
code: str = None,
category: str = None,
display_name: str = None,
):
# 固定字段标识
self.code = code
# 分类
self.category = category
# 展示名字
self.display_name = display_name
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.code is not None:
result['code'] = self.code
if self.category is not None:
result['category'] = self.category
if self.display_name is not None:
result['displayName'] = self.display_name
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('code') is not None:
self.code = m.get('code')
if m.get('category') is not None:
self.category = m.get('category')
if m.get('displayName') is not None:
self.display_name = m.get('displayName')
return self
class QueryJobStatusCodeDictionaryResponseBody(TeaModel):
def __init__(
self,
content: List[QueryJobStatusCodeDictionaryResponseBodyContent] = None,
):
# code列表
self.content = content
def validate(self):
if self.content:
for k in self.content:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
result['content'] = []
if self.content is not None:
for k in self.content:
result['content'].append(k.to_map() if k else None)
return result
def from_map(self, m: dict = None):
m = m or dict()
self.content = []
if m.get('content') is not None:
for k in m.get('content'):
temp_model = QueryJobStatusCodeDictionaryResponseBodyContent()
self.content.append(temp_model.from_map(k))
return self
class QueryJobStatusCodeDictionaryResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: QueryJobStatusCodeDictionaryResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = QueryJobStatusCodeDictionaryResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class IndustryManufactureMaterialListHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class IndustryManufactureMaterialListRequest(TeaModel):
def __init__(
self,
token_grant_type: int = None,
corp_id: str = None,
page_size: int = None,
end_time: int = None,
instance_id: str = None,
material_no: str = None,
start_time: int = None,
microapp_agent_id: int = None,
cursor: int = None,
app_name: str = None,
org_id: int = None,
app_id: int = None,
suite_key: str = None,
app_ids: List[int] = None,
current_page: int = None,
isv_org_id: int = None,
):
self.token_grant_type = token_grant_type
self.corp_id = corp_id
self.page_size = page_size
self.end_time = end_time
self.instance_id = instance_id
self.material_no = material_no
self.start_time = start_time
self.microapp_agent_id = microapp_agent_id
self.cursor = cursor
self.app_name = app_name
self.org_id = org_id
self.app_id = app_id
self.suite_key = suite_key
self.app_ids = app_ids
self.current_page = current_page
self.isv_org_id = isv_org_id
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.token_grant_type is not None:
result['tokenGrantType'] = self.token_grant_type
if self.corp_id is not None:
result['corpId'] = self.corp_id
if self.page_size is not None:
result['pageSize'] = self.page_size
if self.end_time is not None:
result['endTime'] = self.end_time
if self.instance_id is not None:
result['instanceId'] = self.instance_id
if self.material_no is not None:
result['materialNo'] = self.material_no
if self.start_time is not None:
result['startTime'] = self.start_time
if self.microapp_agent_id is not None:
result['microappAgentId'] = self.microapp_agent_id
if self.cursor is not None:
result['cursor'] = self.cursor
if self.app_name is not None:
result['appName'] = self.app_name
if self.org_id is not None:
result['orgId'] = self.org_id
if self.app_id is not None:
result['appId'] = self.app_id
if self.suite_key is not None:
result['suiteKey'] = self.suite_key
if self.app_ids is not None:
result['appIds'] = self.app_ids
if self.current_page is not None:
result['currentPage'] = self.current_page
if self.isv_org_id is not None:
result['isvOrgId'] = self.isv_org_id
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('tokenGrantType') is not None:
self.token_grant_type = m.get('tokenGrantType')
if m.get('corpId') is not None:
self.corp_id = m.get('corpId')
if m.get('pageSize') is not None:
self.page_size = m.get('pageSize')
if m.get('endTime') is not None:
self.end_time = m.get('endTime')
if m.get('instanceId') is not None:
self.instance_id = m.get('instanceId')
if m.get('materialNo') is not None:
self.material_no = m.get('materialNo')
if m.get('startTime') is not None:
self.start_time = m.get('startTime')
if m.get('microappAgentId') is not None:
self.microapp_agent_id = m.get('microappAgentId')
if m.get('cursor') is not None:
self.cursor = m.get('cursor')
if m.get('appName') is not None:
self.app_name = m.get('appName')
if m.get('orgId') is not None:
self.org_id = m.get('orgId')
if m.get('appId') is not None:
self.app_id = m.get('appId')
if m.get('suiteKey') is not None:
self.suite_key = m.get('suiteKey')
if m.get('appIds') is not None:
self.app_ids = m.get('appIds')
if m.get('currentPage') is not None:
self.current_page = m.get('currentPage')
if m.get('isvOrgId') is not None:
self.isv_org_id = m.get('isvOrgId')
return self
class IndustryManufactureMaterialListResponseBodyList(TeaModel):
def __init__(
self,
corp_id: str = None,
instance_id: str = None,
material_no: str = None,
material_name: str = None,
specification: str = None,
type: str = None,
category: str = None,
unit: str = None,
ext: str = None,
process_code: str = None,
stock_max_warn: float = None,
stock_min_warn: float = None,
):
self.corp_id = corp_id
self.instance_id = instance_id
self.material_no = material_no
self.material_name = material_name
self.specification = specification
self.type = type
self.category = category
self.unit = unit
self.ext = ext
self.process_code = process_code
self.stock_max_warn = stock_max_warn
self.stock_min_warn = stock_min_warn
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.corp_id is not None:
result['corpId'] = self.corp_id
if self.instance_id is not None:
result['instanceId'] = self.instance_id
if self.material_no is not None:
result['materialNo'] = self.material_no
if self.material_name is not None:
result['materialName'] = self.material_name
if self.specification is not None:
result['specification'] = self.specification
if self.type is not None:
result['type'] = self.type
if self.category is not None:
result['category'] = self.category
if self.unit is not None:
result['unit'] = self.unit
if self.ext is not None:
result['ext'] = self.ext
if self.process_code is not None:
result['processCode'] = self.process_code
if self.stock_max_warn is not None:
result['stockMaxWarn'] = self.stock_max_warn
if self.stock_min_warn is not None:
result['stockMinWarn'] = self.stock_min_warn
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('corpId') is not None:
self.corp_id = m.get('corpId')
if m.get('instanceId') is not None:
self.instance_id = m.get('instanceId')
if m.get('materialNo') is not None:
self.material_no = m.get('materialNo')
if m.get('materialName') is not None:
self.material_name = m.get('materialName')
if m.get('specification') is not None:
self.specification = m.get('specification')
if m.get('type') is not None:
self.type = m.get('type')
if m.get('category') is not None:
self.category = m.get('category')
if m.get('unit') is not None:
self.unit = m.get('unit')
if m.get('ext') is not None:
self.ext = m.get('ext')
if m.get('processCode') is not None:
self.process_code = m.get('processCode')
if m.get('stockMaxWarn') is not None:
self.stock_max_warn = m.get('stockMaxWarn')
if m.get('stockMinWarn') is not None:
self.stock_min_warn = m.get('stockMinWarn')
return self
class IndustryManufactureMaterialListResponseBody(TeaModel):
def __init__(
self,
list: List[IndustryManufactureMaterialListResponseBodyList] = None,
next_cursor: int = None,
total_count: int = None,
has_more: bool = None,
):
self.list = list
self.next_cursor = next_cursor
self.total_count = total_count
self.has_more = has_more
def validate(self):
if self.list:
for k in self.list:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
result['list'] = []
if self.list is not None:
for k in self.list:
result['list'].append(k.to_map() if k else None)
if self.next_cursor is not None:
result['nextCursor'] = self.next_cursor
if self.total_count is not None:
result['totalCount'] = self.total_count
if self.has_more is not None:
result['hasMore'] = self.has_more
return result
def from_map(self, m: dict = None):
m = m or dict()
self.list = []
if m.get('list') is not None:
for k in m.get('list'):
temp_model = IndustryManufactureMaterialListResponseBodyList()
self.list.append(temp_model.from_map(k))
if m.get('nextCursor') is not None:
self.next_cursor = m.get('nextCursor')
if m.get('totalCount') is not None:
self.total_count = m.get('totalCount')
if m.get('hasMore') is not None:
self.has_more = m.get('hasMore')
return self
class IndustryManufactureMaterialListResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: IndustryManufactureMaterialListResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = IndustryManufactureMaterialListResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class IndustryMmanufactureMaterialCostGetHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class IndustryMmanufactureMaterialCostGetRequest(TeaModel):
def __init__(
self,
instance_id: str = None,
material_no: str = None,
start_time: int = None,
end_time: int = None,
cursor: int = None,
page_number: int = None,
page_size: int = None,
token_grant_type: int = None,
org_id: int = None,
corp_id: str = None,
isv_org_id: int = None,
suite_key: str = None,
microapp_agent_id: int = None,
app_ids: List[int] = None,
app_id: int = None,
app_name: str = None,
):
self.instance_id = instance_id
self.material_no = material_no
self.start_time = start_time
self.end_time = end_time
self.cursor = cursor
self.page_number = page_number
self.page_size = page_size
self.token_grant_type = token_grant_type
self.org_id = org_id
self.corp_id = corp_id
self.isv_org_id = isv_org_id
self.suite_key = suite_key
self.microapp_agent_id = microapp_agent_id
self.app_ids = app_ids
self.app_id = app_id
self.app_name = app_name
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.instance_id is not None:
result['instanceId'] = self.instance_id
if self.material_no is not None:
result['materialNo'] = self.material_no
if self.start_time is not None:
result['startTime'] = self.start_time
if self.end_time is not None:
result['endTime'] = self.end_time
if self.cursor is not None:
result['cursor'] = self.cursor
if self.page_number is not None:
result['pageNumber'] = self.page_number
if self.page_size is not None:
result['pageSize'] = self.page_size
if self.token_grant_type is not None:
result['tokenGrantType'] = self.token_grant_type
if self.org_id is not None:
result['orgId'] = self.org_id
if self.corp_id is not None:
result['corpId'] = self.corp_id
if self.isv_org_id is not None:
result['isvOrgId'] = self.isv_org_id
if self.suite_key is not None:
result['suiteKey'] = self.suite_key
if self.microapp_agent_id is not None:
result['microappAgentId'] = self.microapp_agent_id
if self.app_ids is not None:
result['appIds'] = self.app_ids
if self.app_id is not None:
result['appId'] = self.app_id
if self.app_name is not None:
result['appName'] = self.app_name
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('instanceId') is not None:
self.instance_id = m.get('instanceId')
if m.get('materialNo') is not None:
self.material_no = m.get('materialNo')
if m.get('startTime') is not None:
self.start_time = m.get('startTime')
if m.get('endTime') is not None:
self.end_time = m.get('endTime')
if m.get('cursor') is not None:
self.cursor = m.get('cursor')
if m.get('pageNumber') is not None:
self.page_number = m.get('pageNumber')
if m.get('pageSize') is not None:
self.page_size = m.get('pageSize')
if m.get('tokenGrantType') is not None:
self.token_grant_type = m.get('tokenGrantType')
if m.get('orgId') is not None:
self.org_id = m.get('orgId')
if m.get('corpId') is not None:
self.corp_id = m.get('corpId')
if m.get('isvOrgId') is not None:
self.isv_org_id = m.get('isvOrgId')
if m.get('suiteKey') is not None:
self.suite_key = m.get('suiteKey')
if m.get('microappAgentId') is not None:
self.microapp_agent_id = m.get('microappAgentId')
if m.get('appIds') is not None:
self.app_ids = m.get('appIds')
if m.get('appId') is not None:
self.app_id = m.get('appId')
if m.get('appName') is not None:
self.app_name = m.get('appName')
return self
class IndustryMmanufactureMaterialCostGetResponseBodyList(TeaModel):
def __init__(
self,
gmt_create: int = None,
gmt_modified: int = None,
corp_id: str = None,
material_cost_no: str = None,
instance_id: str = None,
material_no: str = None,
material_name: str = None,
unit: str = None,
count: float = None,
price: float = None,
act_price: float = None,
ext: str = None,
process_code: str = None,
memo: str = None,
):
self.gmt_create = gmt_create
self.gmt_modified = gmt_modified
self.corp_id = corp_id
self.material_cost_no = material_cost_no
self.instance_id = instance_id
self.material_no = material_no
self.material_name = material_name
self.unit = unit
self.count = count
self.price = price
self.act_price = act_price
self.ext = ext
self.process_code = process_code
self.memo = memo
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.gmt_create is not None:
result['gmtCreate'] = self.gmt_create
if self.gmt_modified is not None:
result['gmtModified'] = self.gmt_modified
if self.corp_id is not None:
result['corpId'] = self.corp_id
if self.material_cost_no is not None:
result['materialCostNo'] = self.material_cost_no
if self.instance_id is not None:
result['instanceId'] = self.instance_id
if self.material_no is not None:
result['materialNo'] = self.material_no
if self.material_name is not None:
result['materialName'] = self.material_name
if self.unit is not None:
result['unit'] = self.unit
if self.count is not None:
result['count'] = self.count
if self.price is not None:
result['price'] = self.price
if self.act_price is not None:
result['actPrice'] = self.act_price
if self.ext is not None:
result['ext'] = self.ext
if self.process_code is not None:
result['processCode'] = self.process_code
if self.memo is not None:
result['memo'] = self.memo
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('gmtCreate') is not None:
self.gmt_create = m.get('gmtCreate')
if m.get('gmtModified') is not None:
self.gmt_modified = m.get('gmtModified')
if m.get('corpId') is not None:
self.corp_id = m.get('corpId')
if m.get('materialCostNo') is not None:
self.material_cost_no = m.get('materialCostNo')
if m.get('instanceId') is not None:
self.instance_id = m.get('instanceId')
if m.get('materialNo') is not None:
self.material_no = m.get('materialNo')
if m.get('materialName') is not None:
self.material_name = m.get('materialName')
if m.get('unit') is not None:
self.unit = m.get('unit')
if m.get('count') is not None:
self.count = m.get('count')
if m.get('price') is not None:
self.price = m.get('price')
if m.get('actPrice') is not None:
self.act_price = m.get('actPrice')
if m.get('ext') is not None:
self.ext = m.get('ext')
if m.get('processCode') is not None:
self.process_code = m.get('processCode')
if m.get('memo') is not None:
self.memo = m.get('memo')
return self
class IndustryMmanufactureMaterialCostGetResponseBody(TeaModel):
def __init__(
self,
list: List[IndustryMmanufactureMaterialCostGetResponseBodyList] = None,
total_count: int = None,
next_cursor: int = None,
has_more: bool = None,
):
self.list = list
self.total_count = total_count
self.next_cursor = next_cursor
self.has_more = has_more
def validate(self):
if self.list:
for k in self.list:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
result['list'] = []
if self.list is not None:
for k in self.list:
result['list'].append(k.to_map() if k else None)
if self.total_count is not None:
result['totalCount'] = self.total_count
if self.next_cursor is not None:
result['nextCursor'] = self.next_cursor
if self.has_more is not None:
result['hasMore'] = self.has_more
return result
def from_map(self, m: dict = None):
m = m or dict()
self.list = []
if m.get('list') is not None:
for k in m.get('list'):
temp_model = IndustryMmanufactureMaterialCostGetResponseBodyList()
self.list.append(temp_model.from_map(k))
if m.get('totalCount') is not None:
self.total_count = m.get('totalCount')
if m.get('nextCursor') is not None:
self.next_cursor = m.get('nextCursor')
if m.get('hasMore') is not None:
self.has_more = m.get('hasMore')
return self
class IndustryMmanufactureMaterialCostGetResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: IndustryMmanufactureMaterialCostGetResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = IndustryMmanufactureMaterialCostGetResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class IndustryManufactureFeeListGetHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class IndustryManufactureFeeListGetRequest(TeaModel):
def __init__(
self,
production_task_no: str = None,
material_no: str = None,
type: str = None,
start_time: int = None,
end_time: int = None,
cursor: int = None,
page_number: int = None,
page_size: int = None,
token_grant_type: int = None,
org_id: int = None,
corp_id: str = None,
isv_org_id: int = None,
suite_key: str = None,
microapp_agent_id: int = None,
app_ids: List[int] = None,
app_id: int = None,
app_name: str = None,
):
self.production_task_no = production_task_no
self.material_no = material_no
self.type = type
self.start_time = start_time
self.end_time = end_time
self.cursor = cursor
self.page_number = page_number
self.page_size = page_size
self.token_grant_type = token_grant_type
self.org_id = org_id
self.corp_id = corp_id
self.isv_org_id = isv_org_id
self.suite_key = suite_key
self.microapp_agent_id = microapp_agent_id
self.app_ids = app_ids
self.app_id = app_id
self.app_name = app_name
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.production_task_no is not None:
result['productionTaskNo'] = self.production_task_no
if self.material_no is not None:
result['materialNo'] = self.material_no
if self.type is not None:
result['type'] = self.type
if self.start_time is not None:
result['startTime'] = self.start_time
if self.end_time is not None:
result['endTime'] = self.end_time
if self.cursor is not None:
result['cursor'] = self.cursor
if self.page_number is not None:
result['pageNumber'] = self.page_number
if self.page_size is not None:
result['pageSize'] = self.page_size
if self.token_grant_type is not None:
result['tokenGrantType'] = self.token_grant_type
if self.org_id is not None:
result['orgId'] = self.org_id
if self.corp_id is not None:
result['corpId'] = self.corp_id
if self.isv_org_id is not None:
result['isvOrgId'] = self.isv_org_id
if self.suite_key is not None:
result['suiteKey'] = self.suite_key
if self.microapp_agent_id is not None:
result['microappAgentId'] = self.microapp_agent_id
if self.app_ids is not None:
result['appIds'] = self.app_ids
if self.app_id is not None:
result['appId'] = self.app_id
if self.app_name is not None:
result['appName'] = self.app_name
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('productionTaskNo') is not None:
self.production_task_no = m.get('productionTaskNo')
if m.get('materialNo') is not None:
self.material_no = m.get('materialNo')
if m.get('type') is not None:
self.type = m.get('type')
if m.get('startTime') is not None:
self.start_time = m.get('startTime')
if m.get('endTime') is not None:
self.end_time = m.get('endTime')
if m.get('cursor') is not None:
self.cursor = m.get('cursor')
if m.get('pageNumber') is not None:
self.page_number = m.get('pageNumber')
if m.get('pageSize') is not None:
self.page_size = m.get('pageSize')
if m.get('tokenGrantType') is not None:
self.token_grant_type = m.get('tokenGrantType')
if m.get('orgId') is not None:
self.org_id = m.get('orgId')
if m.get('corpId') is not None:
self.corp_id = m.get('corpId')
if m.get('isvOrgId') is not None:
self.isv_org_id = m.get('isvOrgId')
if m.get('suiteKey') is not None:
self.suite_key = m.get('suiteKey')
if m.get('microappAgentId') is not None:
self.microapp_agent_id = m.get('microappAgentId')
if m.get('appIds') is not None:
self.app_ids = m.get('appIds')
if m.get('appId') is not None:
self.app_id = m.get('appId')
if m.get('appName') is not None:
self.app_name = m.get('appName')
return self
class IndustryManufactureFeeListGetResponseBodyList(TeaModel):
def __init__(
self,
id: int = None,
gmt_create: int = None,
gmt_modified: int = None,
corp_id: str = None,
production_task_no: str = None,
material_no: str = None,
material_name: str = None,
count: float = None,
unit: str = None,
type: str = None,
amount: str = None,
per_amount: float = None,
is_deleted: str = None,
instance_id: str = None,
process_code: str = None,
ext: str = None,
title: str = None,
):
self.id = id
self.gmt_create = gmt_create
self.gmt_modified = gmt_modified
self.corp_id = corp_id
self.production_task_no = production_task_no
self.material_no = material_no
self.material_name = material_name
self.count = count
self.unit = unit
self.type = type
self.amount = amount
self.per_amount = per_amount
self.is_deleted = is_deleted
self.instance_id = instance_id
self.process_code = process_code
self.ext = ext
self.title = title
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.id is not None:
result['id'] = self.id
if self.gmt_create is not None:
result['gmtCreate'] = self.gmt_create
if self.gmt_modified is not None:
result['gmtModified'] = self.gmt_modified
if self.corp_id is not None:
result['corpId'] = self.corp_id
if self.production_task_no is not None:
result['productionTaskNo'] = self.production_task_no
if self.material_no is not None:
result['materialNo'] = self.material_no
if self.material_name is not None:
result['materialName'] = self.material_name
if self.count is not None:
result['count'] = self.count
if self.unit is not None:
result['unit'] = self.unit
if self.type is not None:
result['type'] = self.type
if self.amount is not None:
result['amount'] = self.amount
if self.per_amount is not None:
result['perAmount'] = self.per_amount
if self.is_deleted is not None:
result['isDeleted'] = self.is_deleted
if self.instance_id is not None:
result['instanceId'] = self.instance_id
if self.process_code is not None:
result['processCode'] = self.process_code
if self.ext is not None:
result['ext'] = self.ext
if self.title is not None:
result['title'] = self.title
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('id') is not None:
self.id = m.get('id')
if m.get('gmtCreate') is not None:
self.gmt_create = m.get('gmtCreate')
if m.get('gmtModified') is not None:
self.gmt_modified = m.get('gmtModified')
if m.get('corpId') is not None:
self.corp_id = m.get('corpId')
if m.get('productionTaskNo') is not None:
self.production_task_no = m.get('productionTaskNo')
if m.get('materialNo') is not None:
self.material_no = m.get('materialNo')
if m.get('materialName') is not None:
self.material_name = m.get('materialName')
if m.get('count') is not None:
self.count = m.get('count')
if m.get('unit') is not None:
self.unit = m.get('unit')
if m.get('type') is not None:
self.type = m.get('type')
if m.get('amount') is not None:
self.amount = m.get('amount')
if m.get('perAmount') is not None:
self.per_amount = m.get('perAmount')
if m.get('isDeleted') is not None:
self.is_deleted = m.get('isDeleted')
if m.get('instanceId') is not None:
self.instance_id = m.get('instanceId')
if m.get('processCode') is not None:
self.process_code = m.get('processCode')
if m.get('ext') is not None:
self.ext = m.get('ext')
if m.get('title') is not None:
self.title = m.get('title')
return self
class IndustryManufactureFeeListGetResponseBody(TeaModel):
def __init__(
self,
list: List[IndustryManufactureFeeListGetResponseBodyList] = None,
next_cursor: int = None,
total_count: int = None,
has_more: bool = None,
):
self.list = list
self.next_cursor = next_cursor
self.total_count = total_count
self.has_more = has_more
def validate(self):
if self.list:
for k in self.list:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
result['list'] = []
if self.list is not None:
for k in self.list:
result['list'].append(k.to_map() if k else None)
if self.next_cursor is not None:
result['nextCursor'] = self.next_cursor
if self.total_count is not None:
result['totalCount'] = self.total_count
if self.has_more is not None:
result['hasMore'] = self.has_more
return result
def from_map(self, m: dict = None):
m = m or dict()
self.list = []
if m.get('list') is not None:
for k in m.get('list'):
temp_model = IndustryManufactureFeeListGetResponseBodyList()
self.list.append(temp_model.from_map(k))
if m.get('nextCursor') is not None:
self.next_cursor = m.get('nextCursor')
if m.get('totalCount') is not None:
self.total_count = m.get('totalCount')
if m.get('hasMore') is not None:
self.has_more = m.get('hasMore')
return self
class IndustryManufactureFeeListGetResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: IndustryManufactureFeeListGetResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = IndustryManufactureFeeListGetResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class QueryAllDoctorsHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class QueryAllDoctorsRequest(TeaModel):
def __init__(
self,
page_size: int = None,
page_num: int = None,
):
# 分页查询页容量
self.page_size = page_size
# 分页查询页码
self.page_num = page_num
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.page_size is not None:
result['pageSize'] = self.page_size
if self.page_num is not None:
result['pageNum'] = self.page_num
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('pageSize') is not None:
self.page_size = m.get('pageSize')
if m.get('pageNum') is not None:
self.page_num = m.get('pageNum')
return self
class QueryAllDoctorsResponseBodyContent(TeaModel):
def __init__(
self,
uid: str = None,
user_name: str = None,
job_num: str = None,
id: int = None,
gmt_create_str: str = None,
gmt_modified_str: str = None,
corp_id: str = None,
user_code: str = None,
dept_code: str = None,
status: int = None,
assess_group_id: str = None,
assess_group_name: str = None,
):
# 租户下staffId
self.uid = uid
# 用户名称
self.user_name = user_name
# 工号
self.job_num = job_num
# 用户id
self.id = id
# 用户创建时间
self.gmt_create_str = gmt_create_str
# 用户最后修改时间
self.gmt_modified_str = gmt_modified_str
# 租户CorpId
self.corp_id = corp_id
# 租户内staffId
self.user_code = user_code
# 关联的部门id
self.dept_code = dept_code
# 状态0-有效,1-删除
self.status = status
# 考核医疗组id
self.assess_group_id = assess_group_id
# 考核医疗组名称
self.assess_group_name = assess_group_name
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.uid is not None:
result['uid'] = self.uid
if self.user_name is not None:
result['userName'] = self.user_name
if self.job_num is not None:
result['jobNum'] = self.job_num
if self.id is not None:
result['id'] = self.id
if self.gmt_create_str is not None:
result['gmtCreateStr'] = self.gmt_create_str
if self.gmt_modified_str is not None:
result['gmtModifiedStr'] = self.gmt_modified_str
if self.corp_id is not None:
result['corpId'] = self.corp_id
if self.user_code is not None:
result['userCode'] = self.user_code
if self.dept_code is not None:
result['deptCode'] = self.dept_code
if self.status is not None:
result['status'] = self.status
if self.assess_group_id is not None:
result['assessGroupId'] = self.assess_group_id
if self.assess_group_name is not None:
result['assessGroupName'] = self.assess_group_name
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('uid') is not None:
self.uid = m.get('uid')
if m.get('userName') is not None:
self.user_name = m.get('userName')
if m.get('jobNum') is not None:
self.job_num = m.get('jobNum')
if m.get('id') is not None:
self.id = m.get('id')
if m.get('gmtCreateStr') is not None:
self.gmt_create_str = m.get('gmtCreateStr')
if m.get('gmtModifiedStr') is not None:
self.gmt_modified_str = m.get('gmtModifiedStr')
if m.get('corpId') is not None:
self.corp_id = m.get('corpId')
if m.get('userCode') is not None:
self.user_code = m.get('userCode')
if m.get('deptCode') is not None:
self.dept_code = m.get('deptCode')
if m.get('status') is not None:
self.status = m.get('status')
if m.get('assessGroupId') is not None:
self.assess_group_id = m.get('assessGroupId')
if m.get('assessGroupName') is not None:
self.assess_group_name = m.get('assessGroupName')
return self
class QueryAllDoctorsResponseBody(TeaModel):
def __init__(
self,
content: List[QueryAllDoctorsResponseBodyContent] = None,
total_pages: int = None,
total_count: int = None,
current_page: int = None,
):
# 人员列表
self.content = content
# 总页数
self.total_pages = total_pages
# 数据总量
self.total_count = total_count
# 当前页码
self.current_page = current_page
def validate(self):
if self.content:
for k in self.content:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
result['content'] = []
if self.content is not None:
for k in self.content:
result['content'].append(k.to_map() if k else None)
if self.total_pages is not None:
result['totalPages'] = self.total_pages
if self.total_count is not None:
result['totalCount'] = self.total_count
if self.current_page is not None:
result['currentPage'] = self.current_page
return result
def from_map(self, m: dict = None):
m = m or dict()
self.content = []
if m.get('content') is not None:
for k in m.get('content'):
temp_model = QueryAllDoctorsResponseBodyContent()
self.content.append(temp_model.from_map(k))
if m.get('totalPages') is not None:
self.total_pages = m.get('totalPages')
if m.get('totalCount') is not None:
self.total_count = m.get('totalCount')
if m.get('currentPage') is not None:
self.current_page = m.get('currentPage')
return self
class QueryAllDoctorsResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: QueryAllDoctorsResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = QueryAllDoctorsResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class QueryAllDepartmentHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class QueryAllDepartmentRequest(TeaModel):
def __init__(
self,
page_size: int = None,
page_number: int = None,
):
# 分页查询分页大小
self.page_size = page_size
# 分页查询页码
self.page_number = page_number
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.page_size is not None:
result['pageSize'] = self.page_size
if self.page_number is not None:
result['pageNumber'] = self.page_number
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('pageSize') is not None:
self.page_size = m.get('pageSize')
if m.get('pageNumber') is not None:
self.page_number = m.get('pageNumber')
return self
class QueryAllDepartmentResponseBodyContentDeptAndExtDepartmentWardIdList(TeaModel):
def __init__(
self,
id: int = None,
):
# 病区id
self.id = id
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.id is not None:
result['id'] = self.id
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('id') is not None:
self.id = m.get('id')
return self
class QueryAllDepartmentResponseBodyContentDeptAndExtDepartment(TeaModel):
def __init__(
self,
id: int = None,
gmt_create_str: str = None,
gmt_modified_str: str = None,
corp_id: str = None,
dept_code: str = None,
dept_type: int = None,
dept_status: int = None,
parent_dept_code: str = None,
dept_order: int = None,
remark: str = None,
dept_name: str = None,
name: str = None,
ward_id_list: List[QueryAllDepartmentResponseBodyContentDeptAndExtDepartmentWardIdList] = None,
):
# 科室ID
self.id = id
# 创建时间
self.gmt_create_str = gmt_create_str
# 修改时间
self.gmt_modified_str = gmt_modified_str
# 租户CorpID
self.corp_id = corp_id
# 部门code
self.dept_code = dept_code
# 部门类型:1-科室,2-医疗组
self.dept_type = dept_type
# 部门状态:0-正常,1-删除
self.dept_status = dept_status
# 父部门code(与dept_code来源保持一致)
self.parent_dept_code = parent_dept_code
# 排序
self.dept_order = dept_order
# 备注
self.remark = remark
# 科室名称,同name
self.dept_name = dept_name
# 科室名称,同deptName
self.name = name
# 病区id列表
self.ward_id_list = ward_id_list
def validate(self):
if self.ward_id_list:
for k in self.ward_id_list:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.id is not None:
result['id'] = self.id
if self.gmt_create_str is not None:
result['gmtCreateStr'] = self.gmt_create_str
if self.gmt_modified_str is not None:
result['gmtModifiedStr'] = self.gmt_modified_str
if self.corp_id is not None:
result['corpId'] = self.corp_id
if self.dept_code is not None:
result['deptCode'] = self.dept_code
if self.dept_type is not None:
result['deptType'] = self.dept_type
if self.dept_status is not None:
result['deptStatus'] = self.dept_status
if self.parent_dept_code is not None:
result['parentDeptCode'] = self.parent_dept_code
if self.dept_order is not None:
result['deptOrder'] = self.dept_order
if self.remark is not None:
result['remark'] = self.remark
if self.dept_name is not None:
result['deptName'] = self.dept_name
if self.name is not None:
result['name'] = self.name
result['wardIdList'] = []
if self.ward_id_list is not None:
for k in self.ward_id_list:
result['wardIdList'].append(k.to_map() if k else None)
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('id') is not None:
self.id = m.get('id')
if m.get('gmtCreateStr') is not None:
self.gmt_create_str = m.get('gmtCreateStr')
if m.get('gmtModifiedStr') is not None:
self.gmt_modified_str = m.get('gmtModifiedStr')
if m.get('corpId') is not None:
self.corp_id = m.get('corpId')
if m.get('deptCode') is not None:
self.dept_code = m.get('deptCode')
if m.get('deptType') is not None:
self.dept_type = m.get('deptType')
if m.get('deptStatus') is not None:
self.dept_status = m.get('deptStatus')
if m.get('parentDeptCode') is not None:
self.parent_dept_code = m.get('parentDeptCode')
if m.get('deptOrder') is not None:
self.dept_order = m.get('deptOrder')
if m.get('remark') is not None:
self.remark = m.get('remark')
if m.get('deptName') is not None:
self.dept_name = m.get('deptName')
if m.get('name') is not None:
self.name = m.get('name')
self.ward_id_list = []
if m.get('wardIdList') is not None:
for k in m.get('wardIdList'):
temp_model = QueryAllDepartmentResponseBodyContentDeptAndExtDepartmentWardIdList()
self.ward_id_list.append(temp_model.from_map(k))
return self
class QueryAllDepartmentResponseBodyContentDeptAndExtExtendInfos(TeaModel):
def __init__(
self,
id: int = None,
gmt_create_str: str = None,
gmt_modified_str: str = None,
corp_id: str = None,
dept_code: str = None,
dept_extend_key: str = None,
dept_extend_value: str = None,
dept_extend_display_name: str = None,
status: int = None,
):
# 扩展信息id
self.id = id
# 创建时间
self.gmt_create_str = gmt_create_str
# 修改时间
self.gmt_modified_str = gmt_modified_str
# 租户CorpID
self.corp_id = corp_id
# 部门code
self.dept_code = dept_code
# 科室扩展字段key
self.dept_extend_key = dept_extend_key
# 科室扩展字段value
self.dept_extend_value = dept_extend_value
# 科室扩展字段描述
self.dept_extend_display_name = dept_extend_display_name
# 0-有效 ,1-无效
self.status = status
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.id is not None:
result['id'] = self.id
if self.gmt_create_str is not None:
result['gmtCreateStr'] = self.gmt_create_str
if self.gmt_modified_str is not None:
result['gmtModifiedStr'] = self.gmt_modified_str
if self.corp_id is not None:
result['corpId'] = self.corp_id
if self.dept_code is not None:
result['deptCode'] = self.dept_code
if self.dept_extend_key is not None:
result['deptExtendKey'] = self.dept_extend_key
if self.dept_extend_value is not None:
result['deptExtendValue'] = self.dept_extend_value
if self.dept_extend_display_name is not None:
result['deptExtendDisplayName'] = self.dept_extend_display_name
if self.status is not None:
result['status'] = self.status
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('id') is not None:
self.id = m.get('id')
if m.get('gmtCreateStr') is not None:
self.gmt_create_str = m.get('gmtCreateStr')
if m.get('gmtModifiedStr') is not None:
self.gmt_modified_str = m.get('gmtModifiedStr')
if m.get('corpId') is not None:
self.corp_id = m.get('corpId')
if m.get('deptCode') is not None:
self.dept_code = m.get('deptCode')
if m.get('deptExtendKey') is not None:
self.dept_extend_key = m.get('deptExtendKey')
if m.get('deptExtendValue') is not None:
self.dept_extend_value = m.get('deptExtendValue')
if m.get('deptExtendDisplayName') is not None:
self.dept_extend_display_name = m.get('deptExtendDisplayName')
if m.get('status') is not None:
self.status = m.get('status')
return self
class QueryAllDepartmentResponseBodyContentDeptAndExt(TeaModel):
def __init__(
self,
department: QueryAllDepartmentResponseBodyContentDeptAndExtDepartment = None,
extend_infos: List[QueryAllDepartmentResponseBodyContentDeptAndExtExtendInfos] = None,
):
# 科室详情
self.department = department
# 科室扩展信息列表
self.extend_infos = extend_infos
def validate(self):
if self.department:
self.department.validate()
if self.extend_infos:
for k in self.extend_infos:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.department is not None:
result['department'] = self.department.to_map()
result['extendInfos'] = []
if self.extend_infos is not None:
for k in self.extend_infos:
result['extendInfos'].append(k.to_map() if k else None)
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('department') is not None:
temp_model = QueryAllDepartmentResponseBodyContentDeptAndExtDepartment()
self.department = temp_model.from_map(m['department'])
self.extend_infos = []
if m.get('extendInfos') is not None:
for k in m.get('extendInfos'):
temp_model = QueryAllDepartmentResponseBodyContentDeptAndExtExtendInfos()
self.extend_infos.append(temp_model.from_map(k))
return self
class QueryAllDepartmentResponseBodyContentGroupAndExtListGroupLeader(TeaModel):
def __init__(
self,
name: str = None,
user_id: str = None,
job_number: str = None,
):
# 姓名
self.name = name
# 用户ID
self.user_id = user_id
# 用户工号
self.job_number = job_number
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.name is not None:
result['name'] = self.name
if self.user_id is not None:
result['userId'] = self.user_id
if self.job_number is not None:
result['jobNumber'] = self.job_number
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('name') is not None:
self.name = m.get('name')
if m.get('userId') is not None:
self.user_id = m.get('userId')
if m.get('jobNumber') is not None:
self.job_number = m.get('jobNumber')
return self
class QueryAllDepartmentResponseBodyContentGroupAndExtListGroup(TeaModel):
def __init__(
self,
id: int = None,
name: str = None,
dept_id: int = None,
gmt_create_str: str = None,
gmt_modified_str: str = None,
corp_id: str = None,
leader: QueryAllDepartmentResponseBodyContentGroupAndExtListGroupLeader = None,
dept_status: int = None,
parent_dept_code: str = None,
remark: str = None,
):
# 医疗组ID
self.id = id
# 医疗组名称
self.name = name
# 科室ID,同parentDeptCode,这里保留是做兼容,原来定义成Long不太好改成了String了
self.dept_id = dept_id
# 创建时间
self.gmt_create_str = gmt_create_str
# 修改时间
self.gmt_modified_str = gmt_modified_str
# 租户CorpID
self.corp_id = corp_id
# 医疗组组长信息
self.leader = leader
# 部门状态:0-正常,1-删除
self.dept_status = dept_status
# 父级组织id,这里医疗组的父级就是科室
self.parent_dept_code = parent_dept_code
# 备注
self.remark = remark
def validate(self):
if self.leader:
self.leader.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.id is not None:
result['id'] = self.id
if self.name is not None:
result['name'] = self.name
if self.dept_id is not None:
result['deptId'] = self.dept_id
if self.gmt_create_str is not None:
result['gmtCreateStr'] = self.gmt_create_str
if self.gmt_modified_str is not None:
result['gmtModifiedStr'] = self.gmt_modified_str
if self.corp_id is not None:
result['corpId'] = self.corp_id
if self.leader is not None:
result['leader'] = self.leader.to_map()
if self.dept_status is not None:
result['deptStatus'] = self.dept_status
if self.parent_dept_code is not None:
result['parentDeptCode'] = self.parent_dept_code
if self.remark is not None:
result['remark'] = self.remark
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('id') is not None:
self.id = m.get('id')
if m.get('name') is not None:
self.name = m.get('name')
if m.get('deptId') is not None:
self.dept_id = m.get('deptId')
if m.get('gmtCreateStr') is not None:
self.gmt_create_str = m.get('gmtCreateStr')
if m.get('gmtModifiedStr') is not None:
self.gmt_modified_str = m.get('gmtModifiedStr')
if m.get('corpId') is not None:
self.corp_id = m.get('corpId')
if m.get('leader') is not None:
temp_model = QueryAllDepartmentResponseBodyContentGroupAndExtListGroupLeader()
self.leader = temp_model.from_map(m['leader'])
if m.get('deptStatus') is not None:
self.dept_status = m.get('deptStatus')
if m.get('parentDeptCode') is not None:
self.parent_dept_code = m.get('parentDeptCode')
if m.get('remark') is not None:
self.remark = m.get('remark')
return self
class QueryAllDepartmentResponseBodyContentGroupAndExtListExtendInfos(TeaModel):
def __init__(
self,
id: int = None,
gmt_create_str: str = None,
gmt_modified_str: str = None,
corp_id: str = None,
dept_code: str = None,
dept_extend_key: str = None,
dept_extend_value: str = None,
dept_extend_display_name: str = None,
status: int = None,
):
# 扩展信息id
self.id = id
# 创建时间
self.gmt_create_str = gmt_create_str
# 修改时间
self.gmt_modified_str = gmt_modified_str
# 租户CorpID
self.corp_id = corp_id
# 部门code
self.dept_code = dept_code
# 医疗组扩展字段key
self.dept_extend_key = dept_extend_key
# 医疗组扩展字段value
self.dept_extend_value = dept_extend_value
# 医疗组扩展字段描述
self.dept_extend_display_name = dept_extend_display_name
# 0-有效 ,1-无效
self.status = status
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.id is not None:
result['id'] = self.id
if self.gmt_create_str is not None:
result['gmtCreateStr'] = self.gmt_create_str
if self.gmt_modified_str is not None:
result['gmtModifiedStr'] = self.gmt_modified_str
if self.corp_id is not None:
result['corpId'] = self.corp_id
if self.dept_code is not None:
result['deptCode'] = self.dept_code
if self.dept_extend_key is not None:
result['deptExtendKey'] = self.dept_extend_key
if self.dept_extend_value is not None:
result['deptExtendValue'] = self.dept_extend_value
if self.dept_extend_display_name is not None:
result['deptExtendDisplayName'] = self.dept_extend_display_name
if self.status is not None:
result['status'] = self.status
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('id') is not None:
self.id = m.get('id')
if m.get('gmtCreateStr') is not None:
self.gmt_create_str = m.get('gmtCreateStr')
if m.get('gmtModifiedStr') is not None:
self.gmt_modified_str = m.get('gmtModifiedStr')
if m.get('corpId') is not None:
self.corp_id = m.get('corpId')
if m.get('deptCode') is not None:
self.dept_code = m.get('deptCode')
if m.get('deptExtendKey') is not None:
self.dept_extend_key = m.get('deptExtendKey')
if m.get('deptExtendValue') is not None:
self.dept_extend_value = m.get('deptExtendValue')
if m.get('deptExtendDisplayName') is not None:
self.dept_extend_display_name = m.get('deptExtendDisplayName')
if m.get('status') is not None:
self.status = m.get('status')
return self
class QueryAllDepartmentResponseBodyContentGroupAndExtList(TeaModel):
def __init__(
self,
group: QueryAllDepartmentResponseBodyContentGroupAndExtListGroup = None,
extend_infos: List[QueryAllDepartmentResponseBodyContentGroupAndExtListExtendInfos] = None,
):
# 医疗组详细信息
self.group = group
# 医疗组扩展信息列表
self.extend_infos = extend_infos
def validate(self):
if self.group:
self.group.validate()
if self.extend_infos:
for k in self.extend_infos:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.group is not None:
result['group'] = self.group.to_map()
result['extendInfos'] = []
if self.extend_infos is not None:
for k in self.extend_infos:
result['extendInfos'].append(k.to_map() if k else None)
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('group') is not None:
temp_model = QueryAllDepartmentResponseBodyContentGroupAndExtListGroup()
self.group = temp_model.from_map(m['group'])
self.extend_infos = []
if m.get('extendInfos') is not None:
for k in m.get('extendInfos'):
temp_model = QueryAllDepartmentResponseBodyContentGroupAndExtListExtendInfos()
self.extend_infos.append(temp_model.from_map(k))
return self
class QueryAllDepartmentResponseBodyContent(TeaModel):
def __init__(
self,
id: int = None,
name: str = None,
dept_and_ext: QueryAllDepartmentResponseBodyContentDeptAndExt = None,
group_and_ext_list: List[QueryAllDepartmentResponseBodyContentGroupAndExtList] = None,
):
# 科室ID
self.id = id
# 科室名称
self.name = name
# 科室详情
self.dept_and_ext = dept_and_ext
# 医疗组列表
self.group_and_ext_list = group_and_ext_list
def validate(self):
if self.dept_and_ext:
self.dept_and_ext.validate()
if self.group_and_ext_list:
for k in self.group_and_ext_list:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.id is not None:
result['id'] = self.id
if self.name is not None:
result['name'] = self.name
if self.dept_and_ext is not None:
result['deptAndExt'] = self.dept_and_ext.to_map()
result['groupAndExtList'] = []
if self.group_and_ext_list is not None:
for k in self.group_and_ext_list:
result['groupAndExtList'].append(k.to_map() if k else None)
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('id') is not None:
self.id = m.get('id')
if m.get('name') is not None:
self.name = m.get('name')
if m.get('deptAndExt') is not None:
temp_model = QueryAllDepartmentResponseBodyContentDeptAndExt()
self.dept_and_ext = temp_model.from_map(m['deptAndExt'])
self.group_and_ext_list = []
if m.get('groupAndExtList') is not None:
for k in m.get('groupAndExtList'):
temp_model = QueryAllDepartmentResponseBodyContentGroupAndExtList()
self.group_and_ext_list.append(temp_model.from_map(k))
return self
class QueryAllDepartmentResponseBody(TeaModel):
def __init__(
self,
content: List[QueryAllDepartmentResponseBodyContent] = None,
total_pages: int = None,
total_count: int = None,
current_page: int = None,
):
# 科室列表
self.content = content
# 总页数
self.total_pages = total_pages
# 数据总量
self.total_count = total_count
# 当前页码
self.current_page = current_page
def validate(self):
if self.content:
for k in self.content:
if k:
k.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
result['content'] = []
if self.content is not None:
for k in self.content:
result['content'].append(k.to_map() if k else None)
if self.total_pages is not None:
result['totalPages'] = self.total_pages
if self.total_count is not None:
result['totalCount'] = self.total_count
if self.current_page is not None:
result['currentPage'] = self.current_page
return result
def from_map(self, m: dict = None):
m = m or dict()
self.content = []
if m.get('content') is not None:
for k in m.get('content'):
temp_model = QueryAllDepartmentResponseBodyContent()
self.content.append(temp_model.from_map(k))
if m.get('totalPages') is not None:
self.total_pages = m.get('totalPages')
if m.get('totalCount') is not None:
self.total_count = m.get('totalCount')
if m.get('currentPage') is not None:
self.current_page = m.get('currentPage')
return self
class QueryAllDepartmentResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: QueryAllDepartmentResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = QueryAllDepartmentResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class QueryGroupInfoHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class QueryGroupInfoResponseBodyContentLeaderJob(TeaModel):
def __init__(
self,
code: str = None,
biz_type: str = None,
category: str = None,
display_name: str = None,
):
# 标签Code
self.code = code
# 业务类型
self.biz_type = biz_type
# 分类
self.category = category
# 展示名称
self.display_name = display_name
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.code is not None:
result['code'] = self.code
if self.biz_type is not None:
result['bizType'] = self.biz_type
if self.category is not None:
result['category'] = self.category
if self.display_name is not None:
result['displayName'] = self.display_name
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('code') is not None:
self.code = m.get('code')
if m.get('bizType') is not None:
self.biz_type = m.get('bizType')
if m.get('category') is not None:
self.category = m.get('category')
if m.get('displayName') is not None:
self.display_name = m.get('displayName')
return self
class QueryGroupInfoResponseBodyContentLeader(TeaModel):
def __init__(
self,
name: str = None,
user_id: str = None,
job_number: str = None,
job: QueryGroupInfoResponseBodyContentLeaderJob = None,
):
# 姓名
self.name = name
# 人员Id
self.user_id = user_id
# 工号
self.job_number = job_number
# 工作标签
self.job = job
def validate(self):
if self.job:
self.job.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.name is not None:
result['name'] = self.name
if self.user_id is not None:
result['userId'] = self.user_id
if self.job_number is not None:
result['jobNumber'] = self.job_number
if self.job is not None:
result['job'] = self.job.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('name') is not None:
self.name = m.get('name')
if m.get('userId') is not None:
self.user_id = m.get('userId')
if m.get('jobNumber') is not None:
self.job_number = m.get('jobNumber')
if m.get('job') is not None:
temp_model = QueryGroupInfoResponseBodyContentLeaderJob()
self.job = temp_model.from_map(m['job'])
return self
class QueryGroupInfoResponseBodyContent(TeaModel):
def __init__(
self,
id: int = None,
name: str = None,
dept_id: int = None,
leader: QueryGroupInfoResponseBodyContentLeader = None,
start_time: int = None,
end_time: int = None,
):
# 医疗组Id
self.id = id
# 医疗组名称
self.name = name
# 科室Id
self.dept_id = dept_id
# 医疗组组长
self.leader = leader
# 有效期开始时间
self.start_time = start_time
# 有效期结束时间
self.end_time = end_time
def validate(self):
if self.leader:
self.leader.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.id is not None:
result['id'] = self.id
if self.name is not None:
result['name'] = self.name
if self.dept_id is not None:
result['deptId'] = self.dept_id
if self.leader is not None:
result['leader'] = self.leader.to_map()
if self.start_time is not None:
result['startTime'] = self.start_time
if self.end_time is not None:
result['endTime'] = self.end_time
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('id') is not None:
self.id = m.get('id')
if m.get('name') is not None:
self.name = m.get('name')
if m.get('deptId') is not None:
self.dept_id = m.get('deptId')
if m.get('leader') is not None:
temp_model = QueryGroupInfoResponseBodyContentLeader()
self.leader = temp_model.from_map(m['leader'])
if m.get('startTime') is not None:
self.start_time = m.get('startTime')
if m.get('endTime') is not None:
self.end_time = m.get('endTime')
return self
class QueryGroupInfoResponseBody(TeaModel):
def __init__(
self,
content: QueryGroupInfoResponseBodyContent = None,
):
# 医疗组详情
self.content = content
def validate(self):
if self.content:
self.content.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.content is not None:
result['content'] = self.content.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('content') is not None:
temp_model = QueryGroupInfoResponseBodyContent()
self.content = temp_model.from_map(m['content'])
return self
class QueryGroupInfoResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: QueryGroupInfoResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = QueryGroupInfoResponseBody()
self.body = temp_model.from_map(m['body'])
return self
class SaveUserExtendValuesHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_access_token = x_acs_dingtalk_access_token
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.common_headers is not None:
result['commonHeaders'] = self.common_headers
if self.x_acs_dingtalk_access_token is not None:
result['x-acs-dingtalk-access-token'] = self.x_acs_dingtalk_access_token
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('commonHeaders') is not None:
self.common_headers = m.get('commonHeaders')
if m.get('x-acs-dingtalk-access-token') is not None:
self.x_acs_dingtalk_access_token = m.get('x-acs-dingtalk-access-token')
return self
class SaveUserExtendValuesRequest(TeaModel):
def __init__(
self,
user_extend_key: str = None,
user_extend_value: str = None,
user_display_name: str = None,
):
# 用户拓展字段key
self.user_extend_key = user_extend_key
# 用户扩展字段value
self.user_extend_value = user_extend_value
# 字段展示名称
self.user_display_name = user_display_name
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.user_extend_key is not None:
result['userExtendKey'] = self.user_extend_key
if self.user_extend_value is not None:
result['userExtendValue'] = self.user_extend_value
if self.user_display_name is not None:
result['userDisplayName'] = self.user_display_name
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('userExtendKey') is not None:
self.user_extend_key = m.get('userExtendKey')
if m.get('userExtendValue') is not None:
self.user_extend_value = m.get('userExtendValue')
if m.get('userDisplayName') is not None:
self.user_display_name = m.get('userDisplayName')
return self
class SaveUserExtendValuesResponseBody(TeaModel):
def __init__(
self,
success: bool = None,
):
# 是否成功
self.success = success
def validate(self):
pass
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.success is not None:
result['success'] = self.success
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('success') is not None:
self.success = m.get('success')
return self
class SaveUserExtendValuesResponse(TeaModel):
def __init__(
self,
headers: Dict[str, str] = None,
body: SaveUserExtendValuesResponseBody = None,
):
self.headers = headers
self.body = body
def validate(self):
self.validate_required(self.headers, 'headers')
self.validate_required(self.body, 'body')
if self.body:
self.body.validate()
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.headers is not None:
result['headers'] = self.headers
if self.body is not None:
result['body'] = self.body.to_map()
return result
def from_map(self, m: dict = None):
m = m or dict()
if m.get('headers') is not None:
self.headers = m.get('headers')
if m.get('body') is not None:
temp_model = SaveUserExtendValuesResponseBody()
self.body = temp_model.from_map(m['body'])
return self
| 31.758333 | 103 | 0.571074 | 27,777 | 221,038 | 4.36253 | 0.020449 | 0.052567 | 0.094621 | 0.066844 | 0.835581 | 0.81141 | 0.795252 | 0.787643 | 0.784028 | 0.7767 | 0 | 0.000425 | 0.329563 | 221,038 | 6,959 | 104 | 31.762897 | 0.817284 | 0.009492 | 0 | 0.882806 | 1 | 0 | 0.074351 | 0.010784 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09444 | false | 0.013174 | 0.000342 | 0 | 0.189222 | 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 |
6efa7a5d535f55cb998958364c88e4181cd27779 | 27,845 | py | Python | sdk/python/pulumi_sumologic/cse_match_rule.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/cse_match_rule.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/cse_match_rule.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__ = ['CseMatchRuleArgs', 'CseMatchRule']
@pulumi.input_type
class CseMatchRuleArgs:
def __init__(__self__, *,
description_expression: pulumi.Input[str],
enabled: pulumi.Input[bool],
entity_selectors: pulumi.Input[Sequence[pulumi.Input['CseMatchRuleEntitySelectorArgs']]],
expression: pulumi.Input[str],
name_expression: pulumi.Input[str],
severity_mapping: pulumi.Input['CseMatchRuleSeverityMappingArgs'],
is_prototype: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
summary_expression: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
"""
The set of arguments for constructing a CseMatchRule resource.
:param pulumi.Input[str] description_expression: The description of the generated Signals
:param pulumi.Input[bool] enabled: Whether the rule should generate Signals
:param pulumi.Input[Sequence[pulumi.Input['CseMatchRuleEntitySelectorArgs']]] entity_selectors: The entities to generate Signals on
:param pulumi.Input[str] expression: The expression for which records to match on
:param pulumi.Input[str] name_expression: The name of the generated Signals
:param pulumi.Input['CseMatchRuleSeverityMappingArgs'] severity_mapping: The configuration of how the severity of the Signals should be mapped from the Records
:param pulumi.Input[bool] is_prototype: Whether the generated Signals should be prototype Signals
:param pulumi.Input[str] name: The name of the Rule
:param pulumi.Input[str] summary_expression: The summary of the generated Signals
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The tags of the generated Signals
"""
pulumi.set(__self__, "description_expression", description_expression)
pulumi.set(__self__, "enabled", enabled)
pulumi.set(__self__, "entity_selectors", entity_selectors)
pulumi.set(__self__, "expression", expression)
pulumi.set(__self__, "name_expression", name_expression)
pulumi.set(__self__, "severity_mapping", severity_mapping)
if is_prototype is not None:
pulumi.set(__self__, "is_prototype", is_prototype)
if name is not None:
pulumi.set(__self__, "name", name)
if summary_expression is not None:
pulumi.set(__self__, "summary_expression", summary_expression)
if tags is not None:
pulumi.set(__self__, "tags", tags)
@property
@pulumi.getter(name="descriptionExpression")
def description_expression(self) -> pulumi.Input[str]:
"""
The description of the generated Signals
"""
return pulumi.get(self, "description_expression")
@description_expression.setter
def description_expression(self, value: pulumi.Input[str]):
pulumi.set(self, "description_expression", value)
@property
@pulumi.getter
def enabled(self) -> pulumi.Input[bool]:
"""
Whether the rule should generate Signals
"""
return pulumi.get(self, "enabled")
@enabled.setter
def enabled(self, value: pulumi.Input[bool]):
pulumi.set(self, "enabled", value)
@property
@pulumi.getter(name="entitySelectors")
def entity_selectors(self) -> pulumi.Input[Sequence[pulumi.Input['CseMatchRuleEntitySelectorArgs']]]:
"""
The entities to generate Signals on
"""
return pulumi.get(self, "entity_selectors")
@entity_selectors.setter
def entity_selectors(self, value: pulumi.Input[Sequence[pulumi.Input['CseMatchRuleEntitySelectorArgs']]]):
pulumi.set(self, "entity_selectors", value)
@property
@pulumi.getter
def expression(self) -> pulumi.Input[str]:
"""
The expression for which records to match on
"""
return pulumi.get(self, "expression")
@expression.setter
def expression(self, value: pulumi.Input[str]):
pulumi.set(self, "expression", value)
@property
@pulumi.getter(name="nameExpression")
def name_expression(self) -> pulumi.Input[str]:
"""
The name of the generated Signals
"""
return pulumi.get(self, "name_expression")
@name_expression.setter
def name_expression(self, value: pulumi.Input[str]):
pulumi.set(self, "name_expression", value)
@property
@pulumi.getter(name="severityMapping")
def severity_mapping(self) -> pulumi.Input['CseMatchRuleSeverityMappingArgs']:
"""
The configuration of how the severity of the Signals should be mapped from the Records
"""
return pulumi.get(self, "severity_mapping")
@severity_mapping.setter
def severity_mapping(self, value: pulumi.Input['CseMatchRuleSeverityMappingArgs']):
pulumi.set(self, "severity_mapping", value)
@property
@pulumi.getter(name="isPrototype")
def is_prototype(self) -> Optional[pulumi.Input[bool]]:
"""
Whether the generated Signals should be prototype Signals
"""
return pulumi.get(self, "is_prototype")
@is_prototype.setter
def is_prototype(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "is_prototype", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the Rule
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="summaryExpression")
def summary_expression(self) -> Optional[pulumi.Input[str]]:
"""
The summary of the generated Signals
"""
return pulumi.get(self, "summary_expression")
@summary_expression.setter
def summary_expression(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "summary_expression", value)
@property
@pulumi.getter
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
The tags of the generated Signals
"""
return pulumi.get(self, "tags")
@tags.setter
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "tags", value)
@pulumi.input_type
class _CseMatchRuleState:
def __init__(__self__, *,
description_expression: Optional[pulumi.Input[str]] = None,
enabled: Optional[pulumi.Input[bool]] = None,
entity_selectors: Optional[pulumi.Input[Sequence[pulumi.Input['CseMatchRuleEntitySelectorArgs']]]] = None,
expression: Optional[pulumi.Input[str]] = None,
is_prototype: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
name_expression: Optional[pulumi.Input[str]] = None,
severity_mapping: Optional[pulumi.Input['CseMatchRuleSeverityMappingArgs']] = None,
summary_expression: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
"""
Input properties used for looking up and filtering CseMatchRule resources.
:param pulumi.Input[str] description_expression: The description of the generated Signals
:param pulumi.Input[bool] enabled: Whether the rule should generate Signals
:param pulumi.Input[Sequence[pulumi.Input['CseMatchRuleEntitySelectorArgs']]] entity_selectors: The entities to generate Signals on
:param pulumi.Input[str] expression: The expression for which records to match on
:param pulumi.Input[bool] is_prototype: Whether the generated Signals should be prototype Signals
:param pulumi.Input[str] name: The name of the Rule
:param pulumi.Input[str] name_expression: The name of the generated Signals
:param pulumi.Input['CseMatchRuleSeverityMappingArgs'] severity_mapping: The configuration of how the severity of the Signals should be mapped from the Records
:param pulumi.Input[str] summary_expression: The summary of the generated Signals
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The tags of the generated Signals
"""
if description_expression is not None:
pulumi.set(__self__, "description_expression", description_expression)
if enabled is not None:
pulumi.set(__self__, "enabled", enabled)
if entity_selectors is not None:
pulumi.set(__self__, "entity_selectors", entity_selectors)
if expression is not None:
pulumi.set(__self__, "expression", expression)
if is_prototype is not None:
pulumi.set(__self__, "is_prototype", is_prototype)
if name is not None:
pulumi.set(__self__, "name", name)
if name_expression is not None:
pulumi.set(__self__, "name_expression", name_expression)
if severity_mapping is not None:
pulumi.set(__self__, "severity_mapping", severity_mapping)
if summary_expression is not None:
pulumi.set(__self__, "summary_expression", summary_expression)
if tags is not None:
pulumi.set(__self__, "tags", tags)
@property
@pulumi.getter(name="descriptionExpression")
def description_expression(self) -> Optional[pulumi.Input[str]]:
"""
The description of the generated Signals
"""
return pulumi.get(self, "description_expression")
@description_expression.setter
def description_expression(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description_expression", value)
@property
@pulumi.getter
def enabled(self) -> Optional[pulumi.Input[bool]]:
"""
Whether the rule should generate Signals
"""
return pulumi.get(self, "enabled")
@enabled.setter
def enabled(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "enabled", value)
@property
@pulumi.getter(name="entitySelectors")
def entity_selectors(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CseMatchRuleEntitySelectorArgs']]]]:
"""
The entities to generate Signals on
"""
return pulumi.get(self, "entity_selectors")
@entity_selectors.setter
def entity_selectors(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['CseMatchRuleEntitySelectorArgs']]]]):
pulumi.set(self, "entity_selectors", value)
@property
@pulumi.getter
def expression(self) -> Optional[pulumi.Input[str]]:
"""
The expression for which records to match on
"""
return pulumi.get(self, "expression")
@expression.setter
def expression(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "expression", value)
@property
@pulumi.getter(name="isPrototype")
def is_prototype(self) -> Optional[pulumi.Input[bool]]:
"""
Whether the generated Signals should be prototype Signals
"""
return pulumi.get(self, "is_prototype")
@is_prototype.setter
def is_prototype(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "is_prototype", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the Rule
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="nameExpression")
def name_expression(self) -> Optional[pulumi.Input[str]]:
"""
The name of the generated Signals
"""
return pulumi.get(self, "name_expression")
@name_expression.setter
def name_expression(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name_expression", value)
@property
@pulumi.getter(name="severityMapping")
def severity_mapping(self) -> Optional[pulumi.Input['CseMatchRuleSeverityMappingArgs']]:
"""
The configuration of how the severity of the Signals should be mapped from the Records
"""
return pulumi.get(self, "severity_mapping")
@severity_mapping.setter
def severity_mapping(self, value: Optional[pulumi.Input['CseMatchRuleSeverityMappingArgs']]):
pulumi.set(self, "severity_mapping", value)
@property
@pulumi.getter(name="summaryExpression")
def summary_expression(self) -> Optional[pulumi.Input[str]]:
"""
The summary of the generated Signals
"""
return pulumi.get(self, "summary_expression")
@summary_expression.setter
def summary_expression(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "summary_expression", value)
@property
@pulumi.getter
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
The tags of the generated Signals
"""
return pulumi.get(self, "tags")
@tags.setter
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "tags", value)
class CseMatchRule(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
description_expression: Optional[pulumi.Input[str]] = None,
enabled: Optional[pulumi.Input[bool]] = None,
entity_selectors: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CseMatchRuleEntitySelectorArgs']]]]] = None,
expression: Optional[pulumi.Input[str]] = None,
is_prototype: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
name_expression: Optional[pulumi.Input[str]] = None,
severity_mapping: Optional[pulumi.Input[pulumi.InputType['CseMatchRuleSeverityMappingArgs']]] = None,
summary_expression: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
__props__=None):
"""
Provides a Sumo Logic CSE [Match Rule](https://help.sumologic.com/Cloud_SIEM_Enterprise/CSE_Rules/03_Write_a_Match_Rule).
## Example Usage
```python
import pulumi
import pulumi_sumologic as sumologic
match_rule = sumologic.CseMatchRule("matchRule",
description_expression="Signal description",
enabled=True,
entity_selectors=[sumologic.CseMatchRuleEntitySelectorArgs(
entity_type="_ip",
expression="srcDevice_ip",
)],
expression="objectType = \"Network\"",
is_prototype=False,
name_expression="Signal name",
severity_mapping=sumologic.CseMatchRuleSeverityMappingArgs(
default=5,
type="constant",
),
summary_expression="Signal summary",
tags=["_mitreAttackTactic:TA0009"])
```
## Import
Match Rules can be imported using the field id, e.g.hcl
```sh
$ pulumi import sumologic:index/cseMatchRule:CseMatchRule match_rule id
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] description_expression: The description of the generated Signals
:param pulumi.Input[bool] enabled: Whether the rule should generate Signals
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CseMatchRuleEntitySelectorArgs']]]] entity_selectors: The entities to generate Signals on
:param pulumi.Input[str] expression: The expression for which records to match on
:param pulumi.Input[bool] is_prototype: Whether the generated Signals should be prototype Signals
:param pulumi.Input[str] name: The name of the Rule
:param pulumi.Input[str] name_expression: The name of the generated Signals
:param pulumi.Input[pulumi.InputType['CseMatchRuleSeverityMappingArgs']] severity_mapping: The configuration of how the severity of the Signals should be mapped from the Records
:param pulumi.Input[str] summary_expression: The summary of the generated Signals
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The tags of the generated Signals
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: CseMatchRuleArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Provides a Sumo Logic CSE [Match Rule](https://help.sumologic.com/Cloud_SIEM_Enterprise/CSE_Rules/03_Write_a_Match_Rule).
## Example Usage
```python
import pulumi
import pulumi_sumologic as sumologic
match_rule = sumologic.CseMatchRule("matchRule",
description_expression="Signal description",
enabled=True,
entity_selectors=[sumologic.CseMatchRuleEntitySelectorArgs(
entity_type="_ip",
expression="srcDevice_ip",
)],
expression="objectType = \"Network\"",
is_prototype=False,
name_expression="Signal name",
severity_mapping=sumologic.CseMatchRuleSeverityMappingArgs(
default=5,
type="constant",
),
summary_expression="Signal summary",
tags=["_mitreAttackTactic:TA0009"])
```
## Import
Match Rules can be imported using the field id, e.g.hcl
```sh
$ pulumi import sumologic:index/cseMatchRule:CseMatchRule match_rule id
```
:param str resource_name: The name of the resource.
:param CseMatchRuleArgs 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(CseMatchRuleArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
description_expression: Optional[pulumi.Input[str]] = None,
enabled: Optional[pulumi.Input[bool]] = None,
entity_selectors: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CseMatchRuleEntitySelectorArgs']]]]] = None,
expression: Optional[pulumi.Input[str]] = None,
is_prototype: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
name_expression: Optional[pulumi.Input[str]] = None,
severity_mapping: Optional[pulumi.Input[pulumi.InputType['CseMatchRuleSeverityMappingArgs']]] = None,
summary_expression: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = CseMatchRuleArgs.__new__(CseMatchRuleArgs)
if description_expression is None and not opts.urn:
raise TypeError("Missing required property 'description_expression'")
__props__.__dict__["description_expression"] = description_expression
if enabled is None and not opts.urn:
raise TypeError("Missing required property 'enabled'")
__props__.__dict__["enabled"] = enabled
if entity_selectors is None and not opts.urn:
raise TypeError("Missing required property 'entity_selectors'")
__props__.__dict__["entity_selectors"] = entity_selectors
if expression is None and not opts.urn:
raise TypeError("Missing required property 'expression'")
__props__.__dict__["expression"] = expression
__props__.__dict__["is_prototype"] = is_prototype
__props__.__dict__["name"] = name
if name_expression is None and not opts.urn:
raise TypeError("Missing required property 'name_expression'")
__props__.__dict__["name_expression"] = name_expression
if severity_mapping is None and not opts.urn:
raise TypeError("Missing required property 'severity_mapping'")
__props__.__dict__["severity_mapping"] = severity_mapping
__props__.__dict__["summary_expression"] = summary_expression
__props__.__dict__["tags"] = tags
super(CseMatchRule, __self__).__init__(
'sumologic:index/cseMatchRule:CseMatchRule',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
description_expression: Optional[pulumi.Input[str]] = None,
enabled: Optional[pulumi.Input[bool]] = None,
entity_selectors: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CseMatchRuleEntitySelectorArgs']]]]] = None,
expression: Optional[pulumi.Input[str]] = None,
is_prototype: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
name_expression: Optional[pulumi.Input[str]] = None,
severity_mapping: Optional[pulumi.Input[pulumi.InputType['CseMatchRuleSeverityMappingArgs']]] = None,
summary_expression: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'CseMatchRule':
"""
Get an existing CseMatchRule resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] description_expression: The description of the generated Signals
:param pulumi.Input[bool] enabled: Whether the rule should generate Signals
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CseMatchRuleEntitySelectorArgs']]]] entity_selectors: The entities to generate Signals on
:param pulumi.Input[str] expression: The expression for which records to match on
:param pulumi.Input[bool] is_prototype: Whether the generated Signals should be prototype Signals
:param pulumi.Input[str] name: The name of the Rule
:param pulumi.Input[str] name_expression: The name of the generated Signals
:param pulumi.Input[pulumi.InputType['CseMatchRuleSeverityMappingArgs']] severity_mapping: The configuration of how the severity of the Signals should be mapped from the Records
:param pulumi.Input[str] summary_expression: The summary of the generated Signals
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The tags of the generated Signals
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _CseMatchRuleState.__new__(_CseMatchRuleState)
__props__.__dict__["description_expression"] = description_expression
__props__.__dict__["enabled"] = enabled
__props__.__dict__["entity_selectors"] = entity_selectors
__props__.__dict__["expression"] = expression
__props__.__dict__["is_prototype"] = is_prototype
__props__.__dict__["name"] = name
__props__.__dict__["name_expression"] = name_expression
__props__.__dict__["severity_mapping"] = severity_mapping
__props__.__dict__["summary_expression"] = summary_expression
__props__.__dict__["tags"] = tags
return CseMatchRule(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter(name="descriptionExpression")
def description_expression(self) -> pulumi.Output[str]:
"""
The description of the generated Signals
"""
return pulumi.get(self, "description_expression")
@property
@pulumi.getter
def enabled(self) -> pulumi.Output[bool]:
"""
Whether the rule should generate Signals
"""
return pulumi.get(self, "enabled")
@property
@pulumi.getter(name="entitySelectors")
def entity_selectors(self) -> pulumi.Output[Sequence['outputs.CseMatchRuleEntitySelector']]:
"""
The entities to generate Signals on
"""
return pulumi.get(self, "entity_selectors")
@property
@pulumi.getter
def expression(self) -> pulumi.Output[str]:
"""
The expression for which records to match on
"""
return pulumi.get(self, "expression")
@property
@pulumi.getter(name="isPrototype")
def is_prototype(self) -> pulumi.Output[Optional[bool]]:
"""
Whether the generated Signals should be prototype Signals
"""
return pulumi.get(self, "is_prototype")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
"""
The name of the Rule
"""
return pulumi.get(self, "name")
@property
@pulumi.getter(name="nameExpression")
def name_expression(self) -> pulumi.Output[str]:
"""
The name of the generated Signals
"""
return pulumi.get(self, "name_expression")
@property
@pulumi.getter(name="severityMapping")
def severity_mapping(self) -> pulumi.Output['outputs.CseMatchRuleSeverityMapping']:
"""
The configuration of how the severity of the Signals should be mapped from the Records
"""
return pulumi.get(self, "severity_mapping")
@property
@pulumi.getter(name="summaryExpression")
def summary_expression(self) -> pulumi.Output[Optional[str]]:
"""
The summary of the generated Signals
"""
return pulumi.get(self, "summary_expression")
@property
@pulumi.getter
def tags(self) -> pulumi.Output[Optional[Sequence[str]]]:
"""
The tags of the generated Signals
"""
return pulumi.get(self, "tags")
| 43.304821 | 185 | 0.655127 | 2,985 | 27,845 | 5.904858 | 0.066332 | 0.099852 | 0.063542 | 0.044934 | 0.884489 | 0.867582 | 0.845342 | 0.810734 | 0.79604 | 0.788438 | 0 | 0.000713 | 0.243958 | 27,845 | 642 | 186 | 43.372274 | 0.836548 | 0.284037 | 0 | 0.712676 | 1 | 0 | 0.136773 | 0.051542 | 0 | 0 | 0 | 0 | 0 | 1 | 0.160563 | false | 0.002817 | 0.019718 | 0 | 0.276056 | 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 |
3e0c71df022372e5a4f6d2762d9e342adda132cc | 10,809 | py | Python | get_models.py | pokonglai/ods-net | d9cc443c6b8fbf778e43e9044c38474d060221a3 | [
"MIT"
] | 22 | 2019-03-27T22:22:12.000Z | 2022-03-10T20:55:31.000Z | get_models.py | pokonglai/ods-net | d9cc443c6b8fbf778e43e9044c38474d060221a3 | [
"MIT"
] | null | null | null | get_models.py | pokonglai/ods-net | d9cc443c6b8fbf778e43e9044c38474d060221a3 | [
"MIT"
] | 3 | 2019-12-11T09:19:48.000Z | 2022-02-21T20:48:36.000Z | from __future__ import print_function
import keras
from keras.models import *
from keras.layers import *
from keras.optimizers import *
from keras.metrics import *
from keras import backend as K
from keras.regularizers import l2
import tensorflow as tf
import numpy as np
from custom_func import *
from keras.utils import plot_model
def create_model_ODS_Net(img_input_shape, hyper_params):
print("img_input_shape=",img_input_shape)
base_depth = 64
dropout_rate = 0.5
first_input = Input(shape=img_input_shape)
second_input = Input(shape=img_input_shape)
concatenated_images = concatenate([first_input, second_input])
conv1 = SeparableConv2D(base_depth, (3, 3), padding='same')(concatenated_images)
conv1 = Activation('relu')(conv1)
conv1 = BatchNormalization()(conv1)
conv1 = SeparableConv2D(base_depth, (3, 3), padding='same')(conv1)
conv1 = Activation('relu')(conv1)
conv1 = BatchNormalization()(conv1)
pool1 = MaxPooling2D(pool_size=(2, 2))(conv1)
conv2 = SeparableConv2D(base_depth*2, (3, 3), padding='same')(pool1)
conv2 = Activation('relu')(conv2)
conv2 = BatchNormalization()(conv2)
conv2 = SeparableConv2D(base_depth*2, (3, 3), padding='same')(conv2)
conv2 = Activation('relu')(conv2)
conv2 = BatchNormalization()(conv2)
pool2 = MaxPooling2D(pool_size=(2, 2))(conv2)
conv3 = SeparableConv2D(base_depth*4, (3, 3), padding='same')(pool2)
conv3 = Activation('relu')(conv3)
conv3 = BatchNormalization()(conv3)
conv3 = SeparableConv2D(base_depth*4, (3, 3), padding='same')(conv3)
conv3 = Activation('relu')(conv3)
conv3 = BatchNormalization()(conv3)
pool3 = MaxPooling2D(pool_size=(2, 2))(conv3)
conv4 = SeparableConv2D(base_depth*8, (3, 3), padding='same')(pool3)
conv4 = Activation('relu')(conv4)
conv4 = BatchNormalization()(conv4)
conv4 = SeparableConv2D(base_depth*8, (3, 3), padding='same')(conv4)
conv4 = Activation('relu')(conv4)
conv4 = BatchNormalization()(conv4)
pool4 = MaxPooling2D(pool_size=(2, 2))(conv4)
conv5 = SeparableConv2D(base_depth*16, (3, 3), padding='same')(pool4)
conv5 = Activation('relu')(conv5)
conv5 = BatchNormalization()(conv5)
conv5 = SeparableConv2D(base_depth*16, (3, 3), padding='same')(conv5)
conv5 = Activation('relu')(conv5)
conv5 = BatchNormalization()(conv5)
up6 = concatenate([Conv2DTranspose(base_depth*8, (2, 2), strides=(2, 2), padding='same')(conv5), conv4], axis=3)
conv6 = Conv2D(base_depth*8, (3, 3), padding='same')(up6)
conv6 = Activation('relu')(conv6)
conv6 = BatchNormalization()(conv6)
conv6 = SeparableConv2D(base_depth*8, (3, 3), padding='same')(conv6)
conv6 = Activation('relu')(conv6)
conv6 = BatchNormalization()(conv6)
conv6 = Dropout(rate=dropout_rate)(conv6)
up7 = concatenate([Conv2DTranspose(base_depth*4, (2, 2), strides=(2, 2), padding='same')(conv6), conv3], axis=3)
conv7 = Conv2D(base_depth*4, (3, 3), padding='same')(up7)
conv7 = Activation('relu')(conv7)
conv7 = BatchNormalization()(conv7)
conv7 = SeparableConv2D(base_depth*4, (3, 3), padding='same')(conv7)
conv7 = Activation('relu')(conv7)
conv7 = BatchNormalization()(conv7)
conv7 = Dropout(rate=dropout_rate)(conv7)
up8 = concatenate([Conv2DTranspose(base_depth*2, (2, 2), strides=(2, 2), padding='same')(conv7), conv2], axis=3)
conv8 = Conv2D(base_depth*2, (3, 3), padding='same')(up8)
conv8 = Activation('relu')(conv8)
conv8 = BatchNormalization()(conv8)
conv8 = SeparableConv2D(base_depth*2, (3, 3), padding='same')(conv8)
conv8 = Activation('relu')(conv8)
conv8 = BatchNormalization()(conv8)
conv8 = Dropout(rate=dropout_rate)(conv8)
up9 = concatenate([Conv2DTranspose(base_depth*2, (2, 2), strides=(2, 2), padding='same')(conv8), conv1], axis=3)
conv9 = Conv2D(base_depth*2, (3, 3), padding='same')(up9)
conv9 = Activation('relu')(conv9)
conv9 = BatchNormalization()(conv9)
conv9 = SeparableConv2D(base_depth*2, (3, 3), padding='same')(conv9)
conv9 = Activation('relu')(conv9)
conv9 = BatchNormalization()(conv9)
conv9 = Dropout(rate=dropout_rate)(conv9)
## increase FCL when compared to v2
dense1 = Dense(base_depth*4, activation='relu')(conv9)
dense1 = Dropout(rate=dropout_rate)(dense1)
dense1 = Dense(base_depth*2, activation='relu')(dense1)
dense1 = Dropout(rate=dropout_rate)(dense1)
dense1 = Dense(base_depth, )(dense1)
dense1 = Dense(base_depth//2, )(dense1)
output_depth = Dense(1, name="depth_map")(dense1)
output_norms = Dense(3, name="normal_map")(dense1)
model = Model(inputs=[first_input, second_input], outputs=[output_depth, output_norms])
model.summary()
model_optimizer = Adam(lr=0.001, beta_1=0.9, beta_2=0.999, epsilon=1e-08)
model.compile(optimizer=model_optimizer,
loss=berHu_loss_elementwise,
metrics=[rmse, median_dist, log10_error])
return model
def create_model_ODS_Net_w_borderLoss(img_input_shape, hyper_params):
print("img_input_shape=",img_input_shape)
base_depth = 64
dropout_rate = 0.5
first_input = Input(shape=img_input_shape)
second_input = Input(shape=img_input_shape)
concatenated_images = concatenate([first_input, second_input])
conv1 = SeparableConv2D(base_depth, (3, 3), padding='same')(concatenated_images)
conv1 = Activation('relu')(conv1)
conv1 = BatchNormalization()(conv1)
conv1 = SeparableConv2D(base_depth, (3, 3), padding='same')(conv1)
conv1 = Activation('relu')(conv1)
conv1 = BatchNormalization()(conv1)
pool1 = MaxPooling2D(pool_size=(2, 2))(conv1)
conv2 = SeparableConv2D(base_depth*2, (3, 3), padding='same')(pool1)
conv2 = Activation('relu')(conv2)
conv2 = BatchNormalization()(conv2)
conv2 = SeparableConv2D(base_depth*2, (3, 3), padding='same')(conv2)
conv2 = Activation('relu')(conv2)
conv2 = BatchNormalization()(conv2)
pool2 = MaxPooling2D(pool_size=(2, 2))(conv2)
conv3 = SeparableConv2D(base_depth*4, (3, 3), padding='same')(pool2)
conv3 = Activation('relu')(conv3)
conv3 = BatchNormalization()(conv3)
conv3 = SeparableConv2D(base_depth*4, (3, 3), padding='same')(conv3)
conv3 = Activation('relu')(conv3)
conv3 = BatchNormalization()(conv3)
pool3 = MaxPooling2D(pool_size=(2, 2))(conv3)
conv4 = SeparableConv2D(base_depth*8, (3, 3), padding='same')(pool3)
conv4 = Activation('relu')(conv4)
conv4 = BatchNormalization()(conv4)
conv4 = SeparableConv2D(base_depth*8, (3, 3), padding='same')(conv4)
conv4 = Activation('relu')(conv4)
conv4 = BatchNormalization()(conv4)
pool4 = MaxPooling2D(pool_size=(2, 2))(conv4)
conv5 = SeparableConv2D(base_depth*16, (3, 3), padding='same')(pool4)
conv5 = Activation('relu')(conv5)
conv5 = BatchNormalization()(conv5)
conv5 = SeparableConv2D(base_depth*16, (3, 3), padding='same')(conv5)
conv5 = Activation('relu')(conv5)
conv5 = BatchNormalization()(conv5)
up6 = concatenate([Conv2DTranspose(base_depth*8, (2, 2), strides=(2, 2), padding='same')(conv5), conv4], axis=3)
conv6 = Conv2D(base_depth*8, (3, 3), padding='same')(up6)
conv6 = Activation('relu')(conv6)
conv6 = BatchNormalization()(conv6)
conv6 = SeparableConv2D(base_depth*8, (3, 3), padding='same')(conv6)
conv6 = Activation('relu')(conv6)
conv6 = BatchNormalization()(conv6)
conv6 = Dropout(rate=dropout_rate)(conv6)
up7 = concatenate([Conv2DTranspose(base_depth*4, (2, 2), strides=(2, 2), padding='same')(conv6), conv3], axis=3)
conv7 = Conv2D(base_depth*4, (3, 3), padding='same')(up7)
conv7 = Activation('relu')(conv7)
conv7 = BatchNormalization()(conv7)
conv7 = SeparableConv2D(base_depth*4, (3, 3), padding='same')(conv7)
conv7 = Activation('relu')(conv7)
conv7 = BatchNormalization()(conv7)
conv7 = Dropout(rate=dropout_rate)(conv7)
up8 = concatenate([Conv2DTranspose(base_depth*2, (2, 2), strides=(2, 2), padding='same')(conv7), conv2], axis=3)
conv8 = Conv2D(base_depth*2, (3, 3), padding='same')(up8)
conv8 = Activation('relu')(conv8)
conv8 = BatchNormalization()(conv8)
conv8 = SeparableConv2D(base_depth*2, (3, 3), padding='same')(conv8)
conv8 = Activation('relu')(conv8)
conv8 = BatchNormalization()(conv8)
conv8 = Dropout(rate=dropout_rate)(conv8)
up9 = concatenate([Conv2DTranspose(base_depth*2, (2, 2), strides=(2, 2), padding='same')(conv8), conv1], axis=3)
conv9 = Conv2D(base_depth*2, (3, 3), padding='same')(up9)
conv9 = Activation('relu')(conv9)
conv9 = BatchNormalization()(conv9)
conv9 = SeparableConv2D(base_depth*2, (3, 3), padding='same')(conv9)
conv9 = Activation('relu')(conv9)
conv9 = BatchNormalization()(conv9)
conv9 = Dropout(rate=dropout_rate)(conv9)
## increase FCL when compared to v2
dense1 = Dense(base_depth*4, activation='relu')(conv9)
dense1 = Dropout(rate=dropout_rate)(dense1)
dense1 = Dense(base_depth*2, activation='relu')(dense1)
dense1 = Dropout(rate=dropout_rate)(dense1)
dense1 = Dense(base_depth, )(dense1)
dense1 = Dense(base_depth//2, )(dense1)
output_depth = Dense(1, name="depth_map")(dense1)
output_norms = Dense(3, name="normal_map")(dense1)
model = Model(inputs=[first_input, second_input], outputs=[output_depth, output_norms])
model.summary()
model_optimizer = Adam(lr=0.001, beta_1=0.9, beta_2=0.999, epsilon=1e-08)
model.compile(optimizer=model_optimizer,
loss=berHu_loss_elementwise_w_border,
metrics=[rmse, median_dist, log10_error])
return model
def get_model(model_config_name, img_input_shape, hyper_params):
model = None
if model_config_name == "ODS_Net": model = create_model_ODS_Net(img_input_shape, hyper_params)
elif model_config_name == "ODS_Net_borderloss": model = create_model_ODS_Net_w_borderLoss(img_input_shape, hyper_params)
print("Estimated memory usage for parameters: ", get_model_memory_usage(hyper_params["batch_size"], model), "gbytes")
return model
def get_model_memory_usage(batch_size, model):
shapes_mem_count = 0
for l in model.layers:
single_layer_mem = 1
for s in l.output_shape:
if s is None:
continue
single_layer_mem *= s
shapes_mem_count += single_layer_mem
trainable_count = np.sum([K.count_params(p) for p in set(model.trainable_weights)])
non_trainable_count = np.sum([K.count_params(p) for p in set(model.non_trainable_weights)])
total_memory = 4.0*batch_size*(shapes_mem_count + trainable_count + non_trainable_count)
gbytes = np.round(total_memory / (1024.0 ** 3), 3)
return gbytes
| 42.058366 | 126 | 0.682487 | 1,379 | 10,809 | 5.188542 | 0.1095 | 0.067925 | 0.045283 | 0.065409 | 0.903564 | 0.888749 | 0.887631 | 0.887631 | 0.887631 | 0.866946 | 0 | 0.065232 | 0.166065 | 10,809 | 256 | 127 | 42.222656 | 0.728533 | 0.006014 | 0 | 0.831731 | 0 | 0 | 0.045256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0 | 0.057692 | 0 | 0.096154 | 0.019231 | 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 |
3e6e2695474d978bc0d61cbd6809ff61512ce49d | 120,391 | py | Python | tests/test_linear_regression.py | nguigs/pylearn-parsimony | f712d2828823d6d55a2470ce060bcaeda2d0589a | [
"BSD-3-Clause"
] | 41 | 2015-02-27T13:26:01.000Z | 2021-07-13T12:48:14.000Z | tests/test_linear_regression.py | nguigs/pylearn-parsimony | f712d2828823d6d55a2470ce060bcaeda2d0589a | [
"BSD-3-Clause"
] | 31 | 2015-01-12T15:02:45.000Z | 2022-02-10T07:11:07.000Z | tests/test_linear_regression.py | nguigs/pylearn-parsimony | f712d2828823d6d55a2470ce060bcaeda2d0589a | [
"BSD-3-Clause"
] | 15 | 2015-01-12T14:48:39.000Z | 2021-07-13T12:48:32.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 27 09:21:23 2014
Copyright (c) 2013-2017, CEA/DSV/I2BM/Neurospin. All rights reserved.
@author: Tommy Löfstedt
@email: lofstedt.tommy@gmail.com
@license: BSD 3-clause.
"""
from nose.tools import assert_less, assert_almost_equal
import numpy as np
import parsimony.utils.consts as consts
try:
from .tests import TestCase # When imported as a package.
except (ValueError, SystemError):
from tests import TestCase # When run as a program.
class TestLinearRegression(TestCase):
def test_overdetermined(self):
from parsimony.functions.losses import LinearRegression
import parsimony.algorithms.gradient as gradient
import parsimony.utils.weights as weights
import parsimony.estimators as estimators
np.random.seed(42)
n, p = 100, 50
alpha = 1.0
Sigma = alpha * np.eye(p, p) \
+ (1.0 - alpha) * np.random.randn(p, p)
mean = np.zeros(p)
X = np.random.multivariate_normal(mean, Sigma, n)
start_vector = weights.RandomUniformWeights(normalise=True)
beta_star = start_vector.get_weights(p)
y = np.dot(X, beta_star)
eps = 1e-8
max_iter = 150
gd = gradient.GradientDescent(eps=eps, max_iter=max_iter)
linear_regression = LinearRegression(X, y, mean=False)
beta_start = start_vector.get_weights(p)
beta_parsimony = gd.run(linear_regression, beta_start)
mse = np.linalg.norm(beta_parsimony - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 1e-3, "The found regression vector is not correct.")
f_parsimony = linear_regression.f(beta_parsimony)
f_star = linear_regression.f(beta_star)
if abs(f_star) > consts.TOLERANCE:
err = abs(f_parsimony - f_star) / f_star
else:
err = abs(f_parsimony - f_star)
# print "err:", err
assert_less(err, 5e-6, "The found regression vector does not give "
"the correct function value.")
lr = estimators.LinearRegression(algorithm=gradient.GradientDescent(),
algorithm_params=dict(max_iter=max_iter),
mean=False)
lr.fit(X, y, beta_start)
berr = np.linalg.norm(lr.beta - beta_star)
# print "berr:", berr
assert_less(berr, 5e-4, "The found regression vector is not correct.")
f_est = linear_regression.f(lr.beta)
f_star = linear_regression.f(beta_star)
err = abs(f_est - f_star)
# print "err:", err
assert_less(err, 5e-6, "The found regression vector does not give "
"the correct function value.")
def test_underdetermined(self):
from parsimony.functions.losses import LinearRegression
import parsimony.algorithms.gradient as gradient
import parsimony.utils.weights as weights
import parsimony.estimators as estimators
np.random.seed(42)
n, p = 60, 90
alpha = 1.0
Sigma = alpha * np.eye(p, p) \
+ (1.0 - alpha) * np.random.randn(p, p)
mean = np.zeros(p)
X = np.random.multivariate_normal(mean, Sigma, n)
start_vector = weights.RandomUniformWeights(normalise=True)
beta_star = start_vector.get_weights(p)
y = np.dot(X, beta_star)
eps = 1e-8
max_iter = 300
gd = gradient.GradientDescent(eps=eps, max_iter=max_iter)
linear_regression = LinearRegression(X, y, mean=False)
beta_start = start_vector.get_weights(p)
beta_parsimony = gd.run(linear_regression, beta_start)
berr = np.linalg.norm(beta_parsimony - beta_star)
# print "berr:", berr
assert_less(berr, 0.85, "The found regression vector is not correct.")
f_parsimony = linear_regression.f(beta_parsimony)
f_star = linear_regression.f(beta_star)
err = abs(f_parsimony - f_star)
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
lr = estimators.LinearRegression(algorithm=gradient.GradientDescent(),
algorithm_params=dict(max_iter=max_iter),
mean=False)
lr.fit(X, y, beta_start)
berr = np.linalg.norm(lr.beta - beta_star)
# print "berr:", berr
assert_less(berr, 0.85, "The found regression vector is not correct.")
f_est = linear_regression.f(lr.beta)
f_star = linear_regression.f(beta_star)
err = abs(f_est - f_star)
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
def test_determined(self):
from parsimony.functions.losses import LinearRegression
import parsimony.algorithms.gradient as gradient
import parsimony.utils.weights as weights
import parsimony.estimators as estimators
np.random.seed(42)
n, p = 50, 50
alpha = 1.0
Sigma = alpha * np.eye(p, p) \
+ (1.0 - alpha) * np.random.randn(p, p)
mean = np.zeros(p)
X = np.random.multivariate_normal(mean, Sigma, n)
start_vector = weights.RandomUniformWeights(normalise=True)
beta_star = start_vector.get_weights(p)
y = np.dot(X, beta_star)
eps = 1e-8
max_iter = 13000
gd = gradient.GradientDescent(eps=eps, max_iter=max_iter)
linear_regression = LinearRegression(X, y, mean=False)
beta_start = start_vector.get_weights(p)
beta_parsimony = gd.run(linear_regression, beta_start)
berr = np.linalg.norm(beta_parsimony - beta_star)
# print("berr:", berr)
assert_less(berr, 5e-2, "The found regression vector is not correct.")
f_parsimony = linear_regression.f(beta_parsimony)
f_star = linear_regression.f(beta_star)
err = abs(f_parsimony - f_star)
# print("err:", err)
assert_less(err, 5e-5, "The found regression vector does not give "
"the correct function value.")
lr = estimators.LinearRegression(algorithm=gradient.GradientDescent(),
algorithm_params=dict(max_iter=max_iter),
mean=False)
lr.fit(X, y, beta_start)
berr = np.linalg.norm(lr.beta - beta_star)
# print "berr:", berr
assert_less(berr, 5e-2, "The found regression vector is not correct.")
f_est = linear_regression.f(lr.beta)
f_star = linear_regression.f(beta_star)
err = abs(f_est - f_star)
# print "err:", err
assert_less(err, 5e-5, "The found regression vector does not give "
"the correct function value.")
def test_intercept1(self):
import numpy as np
from parsimony.functions.losses import LinearRegression
import parsimony.algorithms.gradient as gradient
import parsimony.utils.weights as weights
import parsimony.estimators as estimators
import parsimony.algorithms.proximal as proximal
np.random.seed(42)
start_vector = weights.RandomUniformWeights(normalise=False)
n, p = 60, 90
alpha = 1.0
Sigma = alpha * np.eye(p - 1, p - 1) \
+ (1.0 - alpha) * np.random.randn(p - 1, p - 1)
mean = np.zeros(p - 1)
X0 = np.random.multivariate_normal(mean, Sigma, n)
X_parsimony = np.hstack((np.ones((n, 1)), X0))
X_spams = np.hstack((X0, np.ones((n, 1))))
beta_star = start_vector.get_weights(p)
e = 0.01 * np.random.rand(n, 1)
y = np.dot(X_parsimony, beta_star) + e
eps = 1e-8
max_iter = 1000
gd = gradient.GradientDescent(eps=eps, max_iter=max_iter)
linear_regression = LinearRegression(X_parsimony, y, mean=True)
beta_start = start_vector.get_weights(p)
beta_parsimony = gd.run(linear_regression, beta_start)
try:
import spams
params = {"loss": "square",
"regul": "l2",
"lambda1": 0.0,
"max_it": max_iter,
"tol": eps,
"ista": True,
"numThreads": -1,
"intercept": True}
beta_spams, optim_info = \
spams.fistaFlat(Y=np.asfortranarray(y),
X=np.asfortranarray(X_spams),
W0=np.asfortranarray(beta_start),
return_optim_info=True,
**params)
# print beta_spams
except ImportError:
# beta_spams = np.asarray(
# [[0.09736768], [0.69854941], [0.48793715], [0.75698677],
# [0.44423199], [0.63262493], [0.30397824], [0.5815484],
# [0.02765551], [0.63991869], [1.09671465], [0.21529914],
# [0.39480577], [0.54851789], [-0.02412213], [0.69405293],
# [0.18821586], [0.89556287], [-0.14179676], [0.86230118],
# [0.46760193], [0.62187006], [0.21463264], [0.40930455],
# [1.00249679], [1.08387997], [0.1115664], [0.66241187],
# [0.42912028], [0.0020646], [1.087087], [0.84161254],
# [0.37992596], [0.45365878], [0.52357722], [0.0683171],
# [0.79540688], [0.65421616], [0.47634391], [0.24049712],
# [0.55384988], [0.33100698], [0.12267719], [0.62996432],
# [0.88073445], [0.70778668], [0.83411801], [0.83597934],
# [0.14499151], [0.82389504], [0.78075443], [0.99507837],
# [0.47733893], [0.56237854], [0.7443968], [0.30659158],
# [0.29745792], [0.74846412], [0.06055889], [-0.17837795],
# [0.50033042], [0.62078627], [0.58955146], [-0.04940678],
# [1.16326298], [0.33954734], [0.74985271], [0.05866496],
# [0.70692727], [0.29520974], [0.09383234], [0.39026236],
# [0.65104699], [0.83970364], [0.6179541], [0.60286729],
# [0.47713691], [0.975948], [0.78007776], [0.33100383],
# [0.41049941], [0.6689349], [0.64447833], [0.11711684],
# [0.44066274], [0.82042655], [0.48411089], [0.28608364],
# [0.13726529], [0.76605214]])
beta_spams = np.asarray([[-8.06037694e-01], [4.14156982e-01],
[-1.80829496e-02], [5.34481301e-01],
[-8.46381193e-02], [2.56606896e-01],
[-4.26659295e-01], [1.82213499e-01],
[-9.41253654e-01], [2.63066890e-01],
[1.18255173e+00], [-5.71527320e-01],
[-2.06597712e-01], [6.74329128e-02],
[-1.04303862e+00], [3.79074845e-01],
[-6.57880693e-01], [8.39195685e-01],
[-1.28990607e+00], [7.52094722e-01],
[-7.46442435e-02], [2.18599639e-01],
[-5.79908831e-01], [-1.82726073e-01],
[1.02221912e+00], [1.16823785e+00],
[-7.94080968e-01], [3.11798740e-01],
[-1.43802482e-01], [-1.00745697e+00],
[1.15453591e+00], [6.88358705e-01],
[-2.23805221e-01], [-9.41220530e-02],
[2.11753396e-02], [-8.70117706e-01],
[5.95196712e-01], [2.95795298e-01],
[-2.56071086e-02], [-5.30198419e-01],
[1.01631032e-01], [-3.45813973e-01],
[-7.85969212e-01], [2.37584477e-01],
[7.31884771e-01], [4.11786425e-01],
[6.78644951e-01], [6.97758030e-01],
[-7.01861098e-01], [6.89303857e-01],
[5.59633996e-01], [9.62677153e-01],
[-6.47778588e-02], [1.11142255e-01],
[5.02295252e-01], [-3.84548649e-01],
[-3.99659654e-01], [5.17375634e-01],
[-8.94495268e-01], [-1.30375396e+00],
[-1.50643945e-04], [2.53026512e-01],
[1.99746951e-01], [-1.09332170e+00],
[1.33558526e+00], [-3.27159890e-01],
[5.14294273e-01], [-8.80836834e-01],
[4.04945120e-01], [-4.18478889e-01],
[-8.21612998e-01], [-2.14504030e-01],
[2.92026711e-01], [6.99326047e-01],
[2.64324616e-01], [1.99913618e-01],
[-4.70411769e-02], [9.62956473e-01],
[5.64395870e-01], [-3.43228133e-01],
[-1.95259912e-01], [3.74151026e-01],
[2.86425391e-01], [-7.45765812e-01],
[-1.22699069e-01], [6.54066438e-01],
[-3.86692628e-02], [-4.06830505e-01],
[-7.36631395e-01], [5.26869724e-01]])
berr = np.linalg.norm(beta_parsimony - beta_star)
# print("berr:", berr)
assert_less(berr, 4.03, "The found regression vector is not correct.")
berr = np.linalg.norm(beta_spams - beta_star)
# print "berr:", berr
assert_less(berr, 8.43, "The found regression vector is not correct.")
f_star = linear_regression.f(beta_star)
f_parsimony = linear_regression.f(beta_parsimony)
ferr = abs(f_parsimony - f_star)
# print "ferr:", ferr
assert_less(ferr, 5e-5, msg="The found regression vector does not "
"give the correct function value.")
beta_spams = np.vstack((beta_spams[p - 1, :],
beta_spams[0:p - 1, :]))
f_spams = linear_regression.f(beta_spams)
ferr = abs(f_spams - f_star)
# print "ferr:", ferr
assert_less(ferr, 5e-4, msg="The found regression vector does not "
"give the correct function value.")
lr = estimators.LinearRegression(algorithm=gradient.GradientDescent(),
algorithm_params=dict(max_iter=max_iter),
mean=True)
lr.fit(X_parsimony, y, beta_start)
berr = np.linalg.norm(lr.beta - beta_star)
# print "berr:", berr
assert_almost_equal(berr, 4.021099,
msg="The found regression vector is not correct.",
places=5)
f_est = linear_regression.f(lr.beta)
f_star = linear_regression.f(beta_star)
err = abs(f_est - f_star)
# print "err:", err
assert_less(err, 5e-5, "The found regression vector does not give "
"the correct function value.")
# def test_linear_regression_intercept2(self):
#
# from parsimony.functions.combinedfunctions import CombinedFunction
# from parsimony.functions.losses import LinearRegression
# from parsimony.functions.penalties import L2
# import parsimony.algorithms.gradient as gradient
# import parsimony.utils.weights as weights
#
# np.random.seed(42)
#
# start_vector = weights.RandomUniformWeights(normalise=False)
#
# n, p = 60, 90
#
# alpha = 1.0
# Sigma = alpha * np.eye(p - 1, p - 1) \
# + (1.0 - alpha) * np.random.randn(p - 1, p - 1)
# mean = np.zeros(p - 1)
# X0 = np.random.multivariate_normal(mean, Sigma, n)
# X_parsimony = np.hstack((np.ones((n, 1)), X0))
# X_spams = np.hstack((X0, np.ones((n, 1))))
#
# beta_star = start_vector.get_weights(p)
#
# e = 0.01 * np.random.rand(n, 1)
# y = np.dot(X_parsimony, beta_star) + e
#
# eps = 1e-8
# max_iter = 2500
#
# k = 0.318
# function = CombinedFunction()
# function.add_function(LinearRegression(X_parsimony, y, mean=True))
# function.add_penalty(L2Squared(k, penalty_start=1))
#
# gd = gradient.GradientDescent(eps=eps, max_iter=max_iter)
# beta_start = start_vector.get_weights(p)
# beta_parsimony = gd.run(function, beta_start)
#
# try:
# import spams
#
# params = {"loss": "square",
# "regul": "l2",
# "lambda1": k,
# "max_it": max_iter,
# "tol": eps,
# "ista": True,
# "numThreads": -1,
# "intercept": True,
# }
#
# beta_start = np.vstack((beta_start[1:p, :],
# beta_start[0, :]))
# beta_spams, optim_info = \
# spams.fistaFlat(Y=np.asfortranarray(y),
# X=np.asfortranarray(X_spams),
# W0=np.asfortranarray(beta_start),
# return_optim_info=True,
# **params)
#
## print beta_spams
#
# except ImportError:
# beta_spams = np.asarray(
# )
#
# beta_spams = np.vstack((beta_spams[p - 1, :],
# beta_spams[0:p - 1, :]))
# mse = np.linalg.norm(beta_parsimony - beta_spams) #\
# #/ np.linalg.norm(beta_spams)
# print "mse:", mse
## assert_almost_equal(mse, 0.367913,
## msg="The found regression vector is not correct.",
## places=5)
# print np.hstack((beta_star, beta_parsimony, beta_spams))
#
# f_parsimony = function.f(beta_parsimony)
# f_spams = function.f(beta_spams)
## if abs(f_star) > consts.TOLERANCE:
## err = abs(f_parsimony - f_star) / f_star
## else:
# err = abs(f_parsimony - f_spams) #/ f_spams
# print "err:", err
## assert_less(err, 5e-05, msg="The found regression vector does not " \
## "give the correct function value.")
def test_l1(self):
import numpy as np
from parsimony.functions.losses import LinearRegression
from parsimony.functions.penalties import L1
from parsimony.functions import CombinedFunction
import parsimony.datasets.simulate.l1_l2_gl as l1_l2_gl
import parsimony.utils.weights as weights
import parsimony.estimators as estimators
import parsimony.algorithms.proximal as proximal
start_vector = weights.RandomUniformWeights(normalise=True)
np.random.seed(42)
n, p = 60, 90
alpha = 0.9
V = np.random.randn(p, p)
Sigma = alpha * np.eye(p, p) \
+ (1.0 - alpha) * np.dot(V.T, V)
mean = np.zeros(p)
M = np.random.multivariate_normal(mean, Sigma, n)
e = np.random.randn(n, 1)
beta = start_vector.get_weights(p)
beta[beta < 0.1] = 0.0
l = 0.618
k = 0.0
g = 0.0
A = np.eye(p)
A = [A, A, A]
snr = 100.0
X, y, beta_star = l1_l2_gl.load(l, k, g, beta, M, e, A, snr=snr)
eps = 1e-8
max_iter = 5100
fista = proximal.FISTA(eps=eps, max_iter=max_iter)
linear_regression = LinearRegression(X, y, mean=False)
l1 = L1(l=l)
function = CombinedFunction()
function.add_loss(linear_regression)
function.add_prox(l1)
beta_start = start_vector.get_weights(p)
beta_parsimony = fista.run(function, beta_start)
mu = consts.TOLERANCE
reg_est = estimators.LinearRegressionL1L2TV(
l, k, g, A, mu=mu,
algorithm=proximal.FISTA(),
algorithm_params=dict(eps=eps,
max_iter=max_iter),
mean=False)
reg_est.fit(X, y)
# rreg_est = estimators.RidgeRegression_L1_TV(
# k=k, l=l, g=g,
# A=A, mu=mu,
# algorithm=explicit.FISTA(),
# algorithm_params=dict(eps=eps, max_iter=max_iter),
# mean=False)
# rreg_est.fit(X, y)
rreg_est_2 = estimators.LinearRegressionL1L2GL(l, k, g, A=A, mu=mu,
algorithm=proximal.FISTA(),
algorithm_params=dict(eps=eps,
max_iter=max_iter),
mean=False)
rreg_est_2.fit(X, y)
lasso = estimators.Lasso(l,
algorithm=proximal.FISTA(),
algorithm_params=dict(eps=eps,
max_iter=max_iter),
mean=False)
lasso.fit(X, y)
re = np.linalg.norm(beta_parsimony - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-2, "The found regression vector is not correct.")
re = np.linalg.norm(reg_est.beta - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-2, "The found regression vector is not correct.")
# re = np.linalg.norm(rreg_est.beta - beta_star) \
# / np.linalg.norm(beta_star)
## print "re:", re
# assert_less(re, 5e-3, "The found regression vector is not correct.")
re = np.linalg.norm(rreg_est_2.beta - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_parsimony = function.f(beta_parsimony)
err = abs(f_parsimony - f_star) / f_star
# print "err:", err
assert_less(err, 5e-3, "The found regression vector does not give "
"the correct function value.")
f_est = function.f(reg_est.beta)
err = abs(f_est - f_star) / f_star
# print "err:", err
assert_less(err, 5e-3, "The found regression vector does not give "
"the correct function value.")
# f_rest = function.f(rreg_est.beta)
# err = abs(f_rest - f_star) / f_star
## print "err:", err
# assert_less(err, 5e-5, "The found regression vector does not give " \
# "the correct function value.")
f_rest_2 = function.f(rreg_est_2.beta)
err = abs(f_rest_2 - f_star) / f_star
# print "err:", err
assert_less(err, 5e-3, "The found regression vector does not give "
"the correct function value.")
f_lasso = function.f(lasso.beta)
err = abs(f_lasso - f_star) / f_star
# print "err:", err
assert_less(err, 5e-3, "The found regression vector does not give "
"the correct function value.")
def test_l1_intercept(self):
from parsimony.functions.losses import LinearRegression
from parsimony.functions.penalties import L1
from parsimony.functions import CombinedFunction
import parsimony.datasets.simulate.l1_l2_gl as l1_l2_gl
import parsimony.utils.weights as weights
import parsimony.estimators as estimators
import parsimony.algorithms.proximal as proximal
start_vector = weights.RandomUniformWeights(normalise=True)
np.random.seed(42)
n, p = 60, 90 + 1
alpha = 0.9
V = np.random.randn(p - 1, p - 1)
Sigma = alpha * np.eye(p - 1, p - 1) \
+ (1.0 - alpha) * np.dot(V.T, V)
mean = np.zeros(p - 1)
M0 = np.random.multivariate_normal(mean, Sigma, n)
M = np.hstack((np.ones((n, 1)), M0))
e = np.random.randn(n, 1)
beta = start_vector.get_weights(p)
beta[beta < 0.1] = 0.0
l = 0.618
k = 0.0
g = 0.0
A = np.eye(p - 1)
A = [A, A, A]
snr = 100.0
X, y, beta_star = l1_l2_gl.load(l, k, g, beta, M, e, A, snr=snr,
intercept=True)
eps = 1e-8
max_iter = 3800
fista = proximal.FISTA(eps=eps, max_iter=max_iter)
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_prox(L1(l=l, penalty_start=1))
beta_start = start_vector.get_weights(p)
beta_parsimony = fista.run(function, beta_start)
mu = consts.TOLERANCE
reg_est = estimators.LinearRegressionL1L2TV(
l, k, g, A, mu=mu,
algorithm=proximal.FISTA(),
algorithm_params=dict(eps=eps,
max_iter=max_iter),
penalty_start=1,
mean=False)
reg_est.fit(X, y)
# rreg_est = estimators.RidgeRegression_L1_TV(
# k=k, l=l, g=g,
# A=A, mu=mu,
# algorithm=explicit.FISTA(eps=eps, max_iter=max_iter),
# penalty_start=1,
# mean=False)
# rreg_est.fit(X, y)
rreg_est_2 = estimators.LinearRegressionL1L2GL(l, k, g, A=A, mu=mu,
algorithm=proximal.FISTA(),
algorithm_params=dict(eps=eps,
max_iter=max_iter),
penalty_start=1,
mean=False)
rreg_est_2.fit(X, y)
lasso = estimators.Lasso(l,
algorithm=proximal.FISTA(),
algorithm_params=dict(eps=eps,
max_iter=max_iter),
penalty_start=1,
mean=False)
lasso.fit(X, y)
re = np.linalg.norm(beta_parsimony - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-3, "The found regression vector is not correct.")
re = np.linalg.norm(reg_est.beta - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-3, "The found regression vector is not correct.")
# re = np.linalg.norm(rreg_est.beta - beta_star) \
# / np.linalg.norm(beta_star)
## print "re:", re
# assert_less(re, 5e-3, "The found regression vector is not correct.")
re = np.linalg.norm(rreg_est_2.beta - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-3, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_parsimony = function.f(beta_parsimony)
err = abs(f_parsimony - f_star) / f_star
# print "err:", err
assert_less(err, 5e-5, "The found regression vector does not give "
"the correct function value.")
f_est = function.f(reg_est.beta)
err = abs(f_est - f_star) / f_star
# print "err:", err
assert_less(err, 5e-5, "The found regression vector does not give "
"the correct function value.")
# f_rest = function.f(rreg_est.beta)
# err = abs(f_rest - f_star) / f_star
## print "err:", err
# assert_less(err, 5e-5, "The found regression vector does not give " \
# "the correct function value.")
f_rest_2 = function.f(rreg_est_2.beta)
err = abs(f_rest_2 - f_star) / f_star
# print "err:", err
assert_less(err, 5e-5, "The found regression vector does not give "
"the correct function value.")
f_lasso = function.f(lasso.beta)
err = abs(f_lasso - f_star) / f_star
# print "err:", err
assert_less(err, 5e-6, "The found regression vector does not give "
"the correct function value.")
def test_l2(self):
from parsimony.functions.losses import LinearRegression
from parsimony.functions.losses import RidgeRegression
from parsimony.functions.penalties import L2Squared
from parsimony.functions import CombinedFunction
import parsimony.datasets.simulate.l1_l2_gl as l1_l2_gl
import parsimony.utils.weights as weights
import parsimony.algorithms.proximal as proximal
start_vector = weights.RandomUniformWeights(normalise=True)
np.random.seed(42)
n, p = 60, 90
alpha = 0.9
V = np.random.randn(p, p)
Sigma = alpha * np.eye(p, p) \
+ (1.0 - alpha) * np.dot(V.T, V)
mean = np.zeros(p)
M = np.random.multivariate_normal(mean, Sigma, n)
e = np.random.randn(n, 1)
beta = start_vector.get_weights(p)
# beta[beta < 0.1] = 0.0
l = 0.0
k = 0.618
g = 0.0
A = np.eye(p)
A = [A, A, A]
snr = 100.0
X, y, beta_star = l1_l2_gl.load(l, k, g, beta, M, e, A, snr=snr)
eps = 1e-8
max_iter = 7500
fista = proximal.FISTA(eps=eps, max_iter=max_iter)
beta_start = start_vector.get_weights(p)
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(L2Squared(k))
beta_penalty = fista.run(function, beta_start)
mse = np.linalg.norm(beta_penalty - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-3, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_parsimony = function.f(beta_penalty)
err = abs(f_parsimony - f_star) / f_star
# print "err:", err
assert_less(err, 1e-4, "The found regression vector does not give "
"the correct function value.")
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_prox(L2Squared(k))
beta_prox = fista.run(function, beta_start)
mse = np.linalg.norm(beta_prox - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-3, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_prox = function.f(beta_prox)
err = abs(f_prox - f_star) / f_star
# print "err:", err
assert_less(err, 1e-4, "The found regression vector does not give "
"the correct function value.")
function = CombinedFunction()
function.add_loss(RidgeRegression(X, y, k, mean=False))
beta_rr = fista.run(function, beta_start)
mse = np.linalg.norm(beta_rr - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-3, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_rr = function.f(beta_rr)
err = abs(f_rr - f_star) / f_star
# print "err:", err
assert_less(err, 1e-4, "The found regression vector does not give "
"the correct function value.")
def test_l2_intercept(self):
from parsimony.functions.losses import LinearRegression
from parsimony.functions.losses import RidgeRegression
from parsimony.functions.penalties import L2Squared
from parsimony.functions import CombinedFunction
import parsimony.datasets.simulate.l1_l2_gl as l1_l2_gl
import parsimony.utils.weights as weights
import parsimony.estimators as estimators
import parsimony.algorithms.proximal as proximal
start_vector = weights.RandomUniformWeights(normalise=True)
np.random.seed(42)
n, p = 60, 90
alpha = 0.9
V = np.random.randn(p - 1, p - 1)
Sigma = alpha * np.eye(p - 1, p - 1) \
+ (1.0 - alpha) * np.dot(V.T, V)
mean = np.zeros(p - 1)
M0 = np.random.multivariate_normal(mean, Sigma, n)
M = np.hstack((np.ones((n, 1)), M0))
e = np.random.randn(n, 1)
beta = start_vector.get_weights(p)
# beta[beta < 0.1] = 0.0
l = 0.0
k = 0.618
g = 0.0
A = np.eye(p - 1)
A = [A, A, A]
snr = 100.0
X, y, beta_star = l1_l2_gl.load(l, k, g, beta, M, e, A, snr=snr,
intercept=True)
eps = 1e-8
max_iter = 1500
fista = proximal.FISTA(eps=eps, max_iter=max_iter)
beta_start = start_vector.get_weights(p)
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(L2Squared(k, penalty_start=1))
beta_penalty = fista.run(function, beta_start)
re = np.linalg.norm(beta_penalty - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-3, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_parsimony = function.f(beta_penalty)
err = abs(f_parsimony - f_star) / f_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_prox(L2Squared(k, penalty_start=1))
beta_prox = fista.run(function, beta_start)
re = np.linalg.norm(beta_prox - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-3, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_prox = function.f(beta_prox)
err = abs(f_prox - f_star) / f_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
function = CombinedFunction()
function.add_loss(RidgeRegression(X, y, k, penalty_start=1,
mean=False))
beta_rr = fista.run(function, beta_start)
re = np.linalg.norm(beta_rr - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-3, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_rr = function.f(beta_rr)
err = abs(f_rr - f_star) / f_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
mu = consts.TOLERANCE
reg_est = estimators.LinearRegressionL1L2TV(
l, k, g, A, mu=mu,
algorithm=proximal.FISTA(),
algorithm_params=dict(eps=eps,
max_iter=max_iter),
penalty_start=1,
mean=False)
reg_est.fit(X, y)
re = np.linalg.norm(reg_est.beta - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-3, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_rr = function.f(reg_est.beta)
err = abs(f_rr - f_star) / f_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
# rreg_est = estimators.RidgeRegression_L1_TV(
# k=k, l=l, g=g,
# A=A, mu=mu,
# algorithm=explicit.FISTA(eps=eps, max_iter=max_iter),
# penalty_start=1,
# mean=False)
# rreg_est.fit(X, y)
# re = np.linalg.norm(rreg_est.beta - beta_star) \
# / np.linalg.norm(beta_star)
## print "re:", re
# assert_less(re, 5e-3, "The found regression vector is not correct.")
# f_star = function.f(beta_star)
# f_rr = function.f(rreg_est.beta)
# err = abs(f_rr - f_star) / f_star
## print "err:", err
# assert_less(err, 5e-4, "The found regression vector does not give " \
# "the correct function value.")
rreg_est_2 = estimators.LinearRegressionL1L2GL(l, k, g, A=A, mu=mu,
algorithm=proximal.FISTA(),
algorithm_params=dict(eps=eps,
max_iter=max_iter),
penalty_start=1,
mean=False)
rreg_est_2.fit(X, y)
re = np.linalg.norm(rreg_est_2.beta - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-3, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_rr = function.f(rreg_est_2.beta)
err = abs(f_rr - f_star) / f_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
def test_tv(self):
from parsimony.functions.losses import LinearRegression
# from parsimony.functions.losses import RidgeRegression
# from parsimony.functions.penalties import L1
# from parsimony.functions.penalties import L2
import parsimony.functions.nesterov.tv as tv
from parsimony.functions import CombinedFunction
import parsimony.datasets.simulate.l1_l2_tv as l1_l2_tv
import parsimony.datasets.simulate.l1_l2_tvmu as l1_l2_tvmu
import parsimony.utils.weights as weights
import parsimony.algorithms.proximal as proximal
start_vector = weights.RandomUniformWeights(normalise=True)
np.random.seed(42)
px = 4
py = 4
pz = 4
shape = (pz, py, px)
n, p = 50, np.prod(shape)
alpha = 0.9
Sigma = alpha * np.eye(p, p) \
+ (1.0 - alpha) * np.random.randn(p, p)
mean = np.zeros(p)
M = np.random.multivariate_normal(mean, Sigma, n)
e = np.random.randn(n, 1)
beta = start_vector.get_weights(p)
beta = np.sort(beta, axis=0)
# beta[beta < 0.1] = 0.0
l = 0.0
k = 0.0
g = 1.618
A = tv.linear_operator_from_shape(shape)
snr = 20.0
eps = 1e-8
max_iter = 5000
X, y, beta_star = l1_l2_tv.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, snr=snr)
mus = [5e-2, 5e-4, 5e-6, 5e-8]
fista = proximal.FISTA(eps=eps, max_iter=max_iter / len(mus))
beta_start = start_vector.get_weights(p)
beta_nonsmooth = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(tv.TotalVariation(l=g, A=A, mu=mu,
penalty_start=0))
beta_nonsmooth = fista.run(function, beta_nonsmooth)
mse = np.linalg.norm(beta_nonsmooth - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-3, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_nonsmooth = function.f(beta_nonsmooth)
err = abs(f_nonsmooth - f_star) / f_star
# print "err:", err
assert_less(err, 5e-5, "The found regression vector does not give "
"the correct function value.")
mu_min = mus[-1]
X, y, beta_star = l1_l2_tvmu.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, mu=mu_min, snr=snr)
beta_smooth = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(tv.TotalVariation(l=g, A=A, mu=mu,
penalty_start=0))
beta_smooth = fista.run(function, beta_smooth)
mse = np.linalg.norm(beta_smooth - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-3, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_smooth = function.f(beta_smooth)
err = abs(f_smooth - f_star) / f_star
# print "err:", err
assert_less(err, 5e-5, "The found regression vector does not give "
"the correct function value.")
def test_tv_intercept(self):
from parsimony.functions.losses import LinearRegression
import parsimony.functions.nesterov.tv as tv
from parsimony.functions import CombinedFunction
import parsimony.datasets.simulate.l1_l2_tv as l1_l2_tv
import parsimony.datasets.simulate.l1_l2_tvmu as l1_l2_tvmu
import parsimony.utils.weights as weights
import parsimony.estimators as estimators
import parsimony.algorithms.proximal as proximal
start_vector = weights.RandomUniformWeights(normalise=True)
np.random.seed(42)
px = 4
py = 4
pz = 4
shape = (pz, py, px)
n, p = 50, np.prod(shape) + 1
alpha = 0.9
Sigma = alpha * np.eye(p - 1, p - 1) \
+ (1.0 - alpha) * np.random.randn(p - 1, p - 1)
mean = np.zeros(p - 1)
M0 = np.random.multivariate_normal(mean, Sigma, n)
M = np.hstack((np.ones((n, 1)), M0))
e = np.random.randn(n, 1)
beta = start_vector.get_weights(p)
beta = np.sort(beta, axis=0)
# beta[beta < 0.1] = 0.0
l = 0.0
k = 0.001 # Cannot be zero.
g = 1.618
A = tv.linear_operator_from_shape(shape)
snr = 20.0
eps = 1e-8
max_iter = 8800
X, y, beta_star = l1_l2_tv.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, snr=snr, intercept=True)
mus = [5e-2, 5e-4, 5e-6, 5e-8]
fista = proximal.FISTA(eps=eps, max_iter=max_iter / len(mus))
beta_start = start_vector.get_weights(p)
beta_nonsmooth = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(tv.TotalVariation(l=g, A=A, mu=mu,
penalty_start=1))
beta_nonsmooth = fista.run(function, beta_nonsmooth)
re = np.linalg.norm(beta_nonsmooth - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-3, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_nonsmooth = function.f(beta_nonsmooth)
err = abs(f_nonsmooth - f_star) / f_star
# print "err:", err
assert_less(err, 5e-5, "The found regression vector does not give "
"the correct function value.")
mu_min = mus[-1]
X, y, beta_star = l1_l2_tvmu.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, mu=mu_min, snr=snr,
intercept=True)
beta_smooth = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(tv.TotalVariation(l=g, A=A, mu=mu,
penalty_start=1))
beta_smooth = fista.run(function, beta_smooth)
re = np.linalg.norm(beta_smooth - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-3, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_smooth = function.f(beta_smooth)
err = abs(f_smooth - f_star) / f_star
# print "err:", err
assert_less(err, 5e-5, "The found regression vector does not give "
"the correct function value.")
max_iter = 12500
mu = mu_min
reg_est = estimators.LinearRegressionL1L2TV(
l, k, g, A, mu=mu,
algorithm=proximal.StaticCONESTA(),
algorithm_params=dict(eps=eps,
max_iter=max_iter),
penalty_start=1,
mean=False)
reg_est.fit(X, y)
re = np.linalg.norm(reg_est.beta - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-3, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_rr = function.f(reg_est.beta)
err = abs(f_rr - f_star) / f_star
# print "err:", err
assert_less(err, 5e-5, "The found regression vector does not give "
"the correct function value.")
rreg_est = estimators.LinearRegressionL1L2TV(l, k, g, A=A, mu=mu,
algorithm=proximal.StaticCONESTA(),
algorithm_params=dict(eps=eps,
max_iter=max_iter),
penalty_start=1,
mean=False)
rreg_est.fit(X, y)
re = np.linalg.norm(rreg_est.beta - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-3, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_rr = function.f(rreg_est.beta)
err = abs(f_rr - f_star) / f_star
# print "err:", err
assert_less(err, 5e-5, "The found regression vector does not give "
"the correct function value.")
def test_gl(self):
import numpy as np
from parsimony.functions.losses import LinearRegression
import parsimony.functions.nesterov.gl as gl
from parsimony.functions import CombinedFunction
import parsimony.datasets.simulate.l1_l2_gl as l1_l2_gl
import parsimony.datasets.simulate.l1_l2_glmu as l1_l2_glmu
import parsimony.utils.weights as weights
import parsimony.estimators as estimators
import parsimony.algorithms.proximal as proximal
start_vector = weights.RandomUniformWeights(normalise=True)
np.random.seed(42)
n, p = 60, 90
groups = [list(range(0, 2 * int(p / 3))), list(range(int(p / 3), p))]
weights = [1.5, 0.5]
A = gl.linear_operator_from_groups(p, groups=groups, weights=weights)
alpha = 0.9
V = np.random.randn(p, p)
Sigma = alpha * np.eye(p, p) \
+ (1.0 - alpha) * np.dot(V.T, V)
mean = np.zeros(p)
M = np.random.multivariate_normal(mean, Sigma, n)
e = np.random.randn(n, 1)
beta = start_vector.get_weights(p)
beta = np.sort(beta, axis=0)
# beta[beta < 0.1] = 0.0
l = 0.0
k = 0.001 # Cannot be zero.
g = 1.618
snr = 20.0
eps = 1e-8
max_iter = 7000
X, y, beta_star = l1_l2_gl.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, snr=snr)
mus = [5e-2, 5e-4, 5e-6, 5e-8]
fista = proximal.FISTA(eps=eps, max_iter=max_iter / len(mus))
beta_start = start_vector.get_weights(p)
beta_nonsmooth = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(gl.GroupLassoOverlap(l=g, A=A, mu=mu,
penalty_start=0))
beta_nonsmooth = fista.run(function, beta_nonsmooth)
berr = np.linalg.norm(beta_nonsmooth - beta_star) \
/ np.linalg.norm(beta_star)
# print("berr:", berr)
assert_less(berr, 6e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_parsimony = function.f(beta_nonsmooth)
err = abs(f_parsimony - f_star) / f_star
# print "err:", err
assert_less(err, 1e-3, "The found regression vector does not give "
"the correct function value.")
mu_min = mus[-1]
X, y, beta_star = l1_l2_glmu.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, mu=mu_min, snr=snr)
beta_smooth = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(gl.GroupLassoOverlap(l=g, A=A, mu=mu,
penalty_start=0))
beta_smooth = fista.run(function, beta_smooth)
berr = np.linalg.norm(beta_smooth - beta_star) \
/ np.linalg.norm(beta_star)
# print "berr:", berr
assert_less(berr, 6e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_rr = function.f(beta_smooth)
err = abs(f_rr - f_star) / f_star
# print "err:", err
assert_less(err, 1e-3, "The found regression vector does not give "
"the correct function value.")
max_iter = 7000
est = estimators.LinearRegressionL1L2GL(l, k, g, A=A, mu=mu,
algorithm=proximal.StaticCONESTA(),
algorithm_params=dict(eps=eps,
max_iter=max_iter),
penalty_start=0,
mean=False)
est.fit(X, y)
re = np.linalg.norm(est.beta - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_rr = function.f(est.beta)
err = abs(f_rr - f_star) / f_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
def test_gl_intercept(self):
from parsimony.functions.losses import LinearRegression
import parsimony.functions.nesterov.gl as gl
from parsimony.functions import CombinedFunction
import parsimony.datasets.simulate.l1_l2_gl as l1_l2_gl
import parsimony.datasets.simulate.l1_l2_glmu as l1_l2_glmu
import parsimony.utils.weights as weights
import parsimony.estimators as estimators
import parsimony.algorithms.proximal as proximal
start_vector = weights.RandomUniformWeights(normalise=True)
np.random.seed(42)
n, p = 60, 90 + 1
groups = [list(range(1, 2 * int(p / 3))), list(range(int(p / 3), p))]
weights = [1.5, 0.5]
A = gl.linear_operator_from_groups(p, groups=groups, weights=weights,
penalty_start=1)
alpha = 0.9
V = np.random.randn(p - 1, p - 1)
Sigma = alpha * np.eye(p - 1, p - 1) \
+ (1.0 - alpha) * np.dot(V.T, V)
mean = np.zeros(p - 1)
M0 = np.random.multivariate_normal(mean, Sigma, n)
M = np.hstack((np.ones((n, 1)), M0))
e = np.random.randn(n, 1)
beta = start_vector.get_weights(p)
beta = np.sort(beta, axis=0)
# beta[beta < 0.1] = 0.0
l = 0.0
k = 0.0001 # Cannot be zero.
g = 1.618
snr = 20.0
eps = 1e-8
max_iter = 8000
X, y, beta_star = l1_l2_gl.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, snr=snr, intercept=True)
mus = [5e-2, 5e-4, 5e-6, 5e-8]
fista = proximal.FISTA(eps=eps, max_iter=max_iter / len(mus))
beta_start = start_vector.get_weights(p)
beta_nonsmooth = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(gl.GroupLassoOverlap(l=g, A=A, mu=mu,
penalty_start=1))
beta_nonsmooth = fista.run(function, beta_nonsmooth)
re = np.linalg.norm(beta_nonsmooth - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_parsimony = function.f(beta_nonsmooth)
err = abs(f_parsimony - f_star) / f_star
# print "err:", err
assert_less(err, 5e-5, "The found regression vector does not give "
"the correct function value.")
mu_min = mus[-1]
X, y, beta_star = l1_l2_glmu.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, mu=mu_min, snr=snr,
intercept=True)
beta_smooth = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(gl.GroupLassoOverlap(l=g, A=A, mu=mu,
penalty_start=1))
beta_smooth = fista.run(function, beta_smooth)
re = np.linalg.norm(beta_smooth - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_rr = function.f(beta_smooth)
err = abs(f_rr - f_star) / f_star
# print "err:", err
assert_less(err, 5e-6, "The found regression vector does not give "
"the correct function value.")
max_iter = 5000
rreg_est = estimators.LinearRegressionL1L2GL(l, k, g,
A=A, mu=mu,
algorithm=proximal.StaticCONESTA(),
algorithm_params=dict(eps=eps,
max_iter=max_iter),
penalty_start=1,
mean=False)
rreg_est.fit(X, y)
re = np.linalg.norm(rreg_est.beta - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-3, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_rr = function.f(rreg_est.beta)
err = abs(f_rr - f_star) / f_star
# print "err:", err
assert_less(err, 5e-5, "The found regression vector does not give "
"the correct function value.")
def test_l1_l2(self):
from parsimony.functions.losses import LinearRegression
from parsimony.functions.losses import RidgeRegression
from parsimony.functions.penalties import L1
from parsimony.functions.penalties import L2Squared
from parsimony.functions import CombinedFunction
import parsimony.datasets.simulate.l1_l2_gl as l1_l2_gl
import parsimony.utils.weights as weights
import parsimony.estimators as estimators
import parsimony.algorithms.proximal as proximal
start_vector = weights.RandomUniformWeights(normalise=True)
np.random.seed(42)
n, p = 60, 90
alpha = 1.0
Sigma = alpha * np.eye(p, p) \
+ (1.0 - alpha) * np.random.randn(p, p)
mean = np.zeros(p)
M = np.random.multivariate_normal(mean, Sigma, n)
e = np.random.randn(n, 1)
beta = start_vector.get_weights(p)
beta[beta < 0.1] = 0.0
l = 0.618
k = 1.0 - l
g = 0.0
A = np.eye(p)
A = [A, A, A]
snr = 100.0
X, y, beta_star = l1_l2_gl.load(l, k, g, beta, M, e, A, snr=snr)
eps = 1e-8
max_iter = 400
fista = proximal.FISTA(eps=eps, max_iter=max_iter)
beta_start = start_vector.get_weights(p)
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(L2Squared(k))
function.add_prox(L1(l))
beta_penalty = fista.run(function, beta_start)
re = np.linalg.norm(beta_penalty - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-3, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_parsimony = function.f(beta_penalty)
err = abs(f_parsimony - f_star) / f_star
# print "err:", err
assert_less(err, 5e-5, "The found regression vector does not give "
"the correct function value.")
function = CombinedFunction()
function.add_loss(RidgeRegression(X, y, k, mean=False))
function.add_prox(L1(l))
beta_rr = fista.run(function, beta_start)
re = np.linalg.norm(beta_rr - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-3, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_rr = function.f(beta_rr)
err = abs(f_rr - f_star) / f_star
# print "err:", err
assert_less(err, 5e-5, "The found regression vector does not give "
"the correct function value.")
lasso = estimators.ElasticNet(l,
algorithm=proximal.FISTA(),
algorithm_params=dict(eps=eps,
max_iter=max_iter),
mean=False)
lasso.fit(X, y)
f_star = function.f(beta_star)
f_lasso = function.f(lasso.beta)
err = abs(f_lasso - f_star) / f_star
# print "err:", err
assert_less(err, 5e-5, "The found regression vector does not give "
"the correct function value.")
def test_l1_tv(self):
from parsimony.functions.losses import LinearRegression
# from parsimony.functions.losses import RidgeRegression
from parsimony.functions.penalties import L1
# from parsimony.functions.penalties import L2
import parsimony.functions.nesterov.tv as tv
from parsimony.functions import CombinedFunction
import parsimony.datasets.simulate.l1_l2_tv as l1_l2_tv
import parsimony.datasets.simulate.l1_l2_tvmu as l1_l2_tvmu
import parsimony.utils.weights as weights
import parsimony.algorithms.proximal as proximal
start_vector = weights.RandomUniformWeights(normalise=True)
np.random.seed(42)
px = 4
py = 4
pz = 4
shape = (pz, py, px)
n, p = 50, np.prod(shape)
alpha = 0.9
Sigma = alpha * np.eye(p, p) \
+ (1.0 - alpha) * np.random.randn(p, p)
mean = np.zeros(p)
M = np.random.multivariate_normal(mean, Sigma, n)
e = np.random.randn(n, 1)
beta = start_vector.get_weights(p)
beta = np.sort(beta, axis=0)
beta[beta < 0.1] = 0.0
l = 0.618
k = 0.0
g = 1.618
A = tv.linear_operator_from_shape(shape)
snr = 20.0
eps = 1e-8
max_iter = 1800
X, y, beta_star = l1_l2_tv.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, snr=snr)
mus = [5e-2, 5e-4, 5e-6, 5e-8]
fista = proximal.FISTA(eps=eps, max_iter=max_iter / len(mus))
beta_start = start_vector.get_weights(p)
beta_nonsmooth_penalty = beta_start
function = None
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(tv.TotalVariation(l=g, A=A, mu=mu,
penalty_start=0))
function.add_prox(L1(l))
beta_nonsmooth_penalty = \
fista.run(function, beta_nonsmooth_penalty)
mse = np.linalg.norm(beta_nonsmooth_penalty - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 6e-2, "The found regression vector is not correct.")
f_nonsmooth_star = function.f(beta_star)
f_nonsmooth_penalty = function.f(beta_nonsmooth_penalty)
err = abs(f_nonsmooth_penalty - f_nonsmooth_star) / f_nonsmooth_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
max_iter = 2700
fista = proximal.FISTA(eps=eps, max_iter=max_iter / len(mus))
mu_min = mus[-1]
X, y, beta_star = l1_l2_tvmu.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, mu=mu_min, snr=snr)
beta_smooth_penalty = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(tv.TotalVariation(l=g, A=A, mu=mu,
penalty_start=0))
function.add_prox(L1(l))
beta_smooth_penalty = \
fista.run(function, beta_smooth_penalty)
mse = np.linalg.norm(beta_smooth_penalty - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-2, "The found regression vector is not correct.")
f_smooth_star = function.f(beta_star)
f_smooth_penalty = function.f(beta_smooth_penalty)
err = abs(f_smooth_penalty - f_smooth_star) / f_smooth_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
def test_l1_gl(self):
from parsimony.functions.losses import LinearRegression
# from parsimony.functions.losses import RidgeRegression
from parsimony.functions.penalties import L1
# from parsimony.functions.penalties import L2
import parsimony.functions.nesterov.gl as gl
from parsimony.functions import CombinedFunction
import parsimony.datasets.simulate.l1_l2_gl as l1_l2_gl
import parsimony.datasets.simulate.l1_l2_glmu as l1_l2_glmu
import parsimony.utils.weights as weights
import parsimony.estimators as estimators
import parsimony.algorithms.proximal as proximal
start_vector = weights.RandomUniformWeights(normalise=True)
np.random.seed(42)
n, p = 60, 90
groups = [list(range(0, 2 * int(p / 3))), list(range(int(p / 3), p))]
weights = [1.5, 0.5]
A = gl.linear_operator_from_groups(p, groups=groups, weights=weights)
alpha = 0.9
V = np.random.randn(p, p)
Sigma = alpha * np.eye(p, p) \
+ (1.0 - alpha) * np.dot(V.T, V)
mean = np.zeros(p)
M = np.random.multivariate_normal(mean, Sigma, n)
e = np.random.randn(n, 1)
beta = start_vector.get_weights(p)
beta = np.sort(beta, axis=0)
beta[beta < 0.1] = 0.0
l = 0.618
k = 0.001 # Cannot be zero.
g = 1.618
snr = 20.0
eps = 1e-8
max_iter = 6000
X, y, beta_star = l1_l2_gl.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, snr=snr)
mus = [5e-2, 5e-4, 5e-6, 5e-8]
fista = proximal.FISTA(eps=eps, max_iter=max_iter / len(mus))
beta_start = start_vector.get_weights(p)
beta_nonsmooth = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(gl.GroupLassoOverlap(l=g, A=A, mu=mu,
penalty_start=0))
function.add_prox(L1(l))
beta_nonsmooth = fista.run(function, beta_nonsmooth)
mse = np.linalg.norm(beta_nonsmooth - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_parsimony = function.f(beta_nonsmooth)
err = abs(f_parsimony - f_star) / f_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
mu_min = mus[-1]
X, y, beta_star = l1_l2_glmu.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, mu=mu_min, snr=snr)
beta_smooth = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(gl.GroupLassoOverlap(l=g, A=A, mu=mu,
penalty_start=0))
function.add_prox(L1(l))
beta_smooth = fista.run(function, beta_smooth)
mse = np.linalg.norm(beta_smooth - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 7e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_rr = function.f(beta_smooth)
err = abs(f_rr - f_star) / f_star
# print "err:", err
assert_less(err, 5e-3, "The found regression vector does not give "
"the correct function value.")
max_iter = 5200
est = estimators.LinearRegressionL1L2GL(l, k, g, A=A, mu=mu,
algorithm=proximal.StaticCONESTA(),
algorithm_params=dict(eps=eps,
max_iter=max_iter),
penalty_start=0,
mean=False)
est.fit(X, y)
re = np.linalg.norm(est.beta - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_rr = function.f(est.beta)
err = abs(f_rr - f_star) / f_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
def test_l2_tv(self):
from parsimony.functions.losses import LinearRegression
from parsimony.functions.losses import RidgeRegression
# from parsimony.functions.penalties import L1
from parsimony.functions.penalties import L2Squared
import parsimony.functions.nesterov.tv as tv
from parsimony.functions import CombinedFunction
import parsimony.datasets.simulate.l1_l2_tv as l1_l2_tv
import parsimony.datasets.simulate.l1_l2_tvmu as l1_l2_tvmu
import parsimony.utils.weights as weights
import parsimony.algorithms.proximal as proximal
start_vector = weights.RandomUniformWeights(normalise=True)
np.random.seed(42)
px = 4
py = 4
pz = 4
shape = (pz, py, px)
n, p = 50, np.prod(shape)
alpha = 0.9
Sigma = alpha * np.eye(p, p) \
+ (1.0 - alpha) * np.random.randn(p, p)
mean = np.zeros(p)
M = np.random.multivariate_normal(mean, Sigma, n)
e = np.random.randn(n, 1)
beta = start_vector.get_weights(p)
beta = np.sort(beta, axis=0)
# beta[beta < 0.1] = 0.0
l = 0.0
k = 0.618
g = 1.618
A = tv.linear_operator_from_shape(shape)
snr = 20.0
eps = 1e-8
max_iter = 1900
X, y, beta_star = l1_l2_tv.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, snr=snr)
mus = [5e-2, 5e-4, 5e-6, 5e-8]
fista = proximal.FISTA(eps=eps, max_iter=max_iter / len(mus))
beta_start = start_vector.get_weights(p)
beta_nonsmooth_penalty = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(tv.TotalVariation(l=g, A=A, mu=mu,
penalty_start=0))
function.add_penalty(L2Squared(k))
beta_nonsmooth_penalty = \
fista.run(function, beta_nonsmooth_penalty)
mse = np.linalg.norm(beta_nonsmooth_penalty - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_nonsmooth_penalty = function.f(beta_nonsmooth_penalty)
err = abs(f_nonsmooth_penalty - f_star) / f_star
# print "err:", err
assert_less(err, 6e-5, "The found regression vector does not give "
"the correct function value.")
beta_nonsmooth_prox = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(tv.TotalVariation(l=g, A=A, mu=mu,
penalty_start=0))
function.add_prox(L2Squared(k))
beta_nonsmooth_prox = fista.run(function, beta_nonsmooth_prox)
mse = np.linalg.norm(beta_nonsmooth_prox - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_nonsmooth_prox = function.f(beta_nonsmooth_prox)
err = abs(f_nonsmooth_prox - f_star) / f_star
# print "err:", err
assert_less(err, 6e-5, "The found regression vector does not give "
"the correct function value.")
beta_nonsmooth_rr = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(RidgeRegression(X, y, k, mean=False))
function.add_penalty(tv.TotalVariation(l=g, A=A, mu=mu,
penalty_start=0))
beta_nonsmooth_rr = fista.run(function, beta_nonsmooth_rr)
mse = np.linalg.norm(beta_nonsmooth_rr - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_nonsmooth_rr = function.f(beta_nonsmooth_rr)
err = abs(f_nonsmooth_rr - f_star) / f_star
# print "err:", err
assert_less(err, 6e-5, "The found regression vector does not give "
"the correct function value.")
mu_min = mus[-1]
X, y, beta_star = l1_l2_tvmu.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, mu=mu_min, snr=snr)
beta_smooth_penalty = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(tv.TotalVariation(l=g, A=A, mu=mu,
penalty_start=0))
function.add_penalty(L2Squared(k))
beta_smooth_penalty = \
fista.run(function, beta_smooth_penalty)
mse = np.linalg.norm(beta_smooth_penalty - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_smooth_penalty = function.f(beta_smooth_penalty)
err = abs(f_smooth_penalty - f_star) / f_star
# print "err:", err
assert_less(err, 6e-5, "The found regression vector does not give "
"the correct function value.")
beta_smooth_prox = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(tv.TotalVariation(l=g, A=A, mu=mu,
penalty_start=0))
function.add_prox(L2Squared(k))
beta_smooth_prox = fista.run(function, beta_smooth_prox)
mse = np.linalg.norm(beta_smooth_prox - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_smooth_prox = function.f(beta_smooth_prox)
err = abs(f_smooth_prox - f_star) / f_star
# print "err:", err
assert_less(err, 6e-5, "The found regression vector does not give "
"the correct function value.")
beta_smooth_rr = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(RidgeRegression(X, y, k, mean=False))
function.add_penalty(tv.TotalVariation(l=g, A=A, mu=mu,
penalty_start=0))
beta_smooth_rr = fista.run(function, beta_smooth_rr)
mse = np.linalg.norm(beta_smooth_rr - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_smooth_rr = function.f(beta_smooth_rr)
err = abs(f_smooth_rr - f_star) / f_star
# print "err:", err
assert_less(err, 6e-5, "The found regression vector does not give "
"the correct function value.")
def test_l2_gl(self):
from parsimony.functions.losses import LinearRegression
from parsimony.functions.losses import RidgeRegression
# from parsimony.functions.penalties import L1
from parsimony.functions.penalties import L2Squared
import parsimony.functions.nesterov.gl as gl
from parsimony.functions import CombinedFunction
import parsimony.datasets.simulate.l1_l2_gl as l1_l2_gl
import parsimony.datasets.simulate.l1_l2_glmu as l1_l2_glmu
import parsimony.utils.weights as weights
import parsimony.estimators as estimators
import parsimony.algorithms.proximal as proximal
start_vector = weights.RandomUniformWeights(normalise=True)
np.random.seed(42)
n, p = 60, 90
groups = [list(range(0, 2 * int(p / 3))), list(range(int(p / 3), p))]
weights = [1.5, 0.5]
A = gl.linear_operator_from_groups(p, groups=groups, weights=weights)
alpha = 0.9
V = np.random.randn(p, p)
Sigma = alpha * np.eye(p, p) \
+ (1.0 - alpha) * np.dot(V.T, V)
mean = np.zeros(p)
M = np.random.multivariate_normal(mean, Sigma, n)
e = np.random.randn(n, 1)
beta = start_vector.get_weights(p)
beta = np.sort(beta, axis=0)
# beta[beta < 0.1] = 0.0
l = 0.0
k = 0.618
g = 1.618
snr = 20.0
eps = 1e-8
max_iter = 3000
X, y, beta_star = l1_l2_gl.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, snr=snr)
mus = [5e-2, 5e-4, 5e-6, 5e-8]
fista = proximal.FISTA(eps=eps, max_iter=max_iter / len(mus))
beta_start = start_vector.get_weights(p)
beta_nonsmooth_penalty = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(gl.GroupLassoOverlap(l=g, A=A, mu=mu,
penalty_start=0))
function.add_penalty(L2Squared(k))
beta_nonsmooth_penalty = fista.run(function,
beta_nonsmooth_penalty)
mse = np.linalg.norm(beta_nonsmooth_penalty - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_nonsmooth_penalty = function.f(beta_nonsmooth_penalty)
err = abs(f_nonsmooth_penalty - f_star) / f_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
beta_nonsmooth_prox = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(gl.GroupLassoOverlap(l=g, A=A, mu=mu,
penalty_start=0))
function.add_prox(L2Squared(k))
beta_nonsmooth_prox = fista.run(function, beta_nonsmooth_prox)
mse = np.linalg.norm(beta_nonsmooth_prox - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_nonsmooth_prox = function.f(beta_nonsmooth_prox)
err = abs(f_nonsmooth_prox - f_star) / f_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
beta_nonsmooth_rr = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(RidgeRegression(X, y, k, mean=False))
function.add_penalty(gl.GroupLassoOverlap(l=g, A=A, mu=mu,
penalty_start=0))
beta_nonsmooth_rr = fista.run(function, beta_nonsmooth_rr)
mse = np.linalg.norm(beta_nonsmooth_rr - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_nonsmooth_rr = function.f(beta_nonsmooth_rr)
err = abs(f_nonsmooth_rr - f_star) / f_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
mu_min = mus[-1]
X, y, beta_star = l1_l2_glmu.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, mu=mu_min, snr=snr)
beta_smooth_penalty = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(gl.GroupLassoOverlap(l=g, A=A, mu=mu,
penalty_start=0))
function.add_penalty(L2Squared(k))
beta_smooth_penalty = fista.run(function, beta_smooth_penalty)
mse = np.linalg.norm(beta_smooth_penalty - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_smooth_penalty = function.f(beta_smooth_penalty)
err = abs(f_smooth_penalty - f_star) / f_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
beta_smooth_prox = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(gl.GroupLassoOverlap(l=g, A=A, mu=mu,
penalty_start=0))
function.add_prox(L2Squared(k))
beta_smooth_prox = fista.run(function, beta_smooth_prox)
mse = np.linalg.norm(beta_smooth_prox - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_smooth_prox = function.f(beta_smooth_prox)
err = abs(f_smooth_prox - f_star) / f_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
beta_smooth_rr = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(RidgeRegression(X, y, k, mean=False))
function.add_penalty(gl.GroupLassoOverlap(l=g, A=A, mu=mu,
penalty_start=0))
beta_smooth_rr = fista.run(function, beta_smooth_rr)
mse = np.linalg.norm(beta_smooth_rr - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_smooth_rr = function.f(beta_smooth_rr)
err = abs(f_smooth_rr - f_star) / f_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
max_iter = 2500
est = estimators.LinearRegressionL1L2GL(l, k, g, A=A, mu=mu,
algorithm=proximal.StaticCONESTA(),
algorithm_params=dict(eps=eps,
max_iter=max_iter),
penalty_start=0,
mean=False)
est.fit(X, y)
re = np.linalg.norm(est.beta - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_rr = function.f(est.beta)
err = abs(f_rr - f_star) / f_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
def test_l1_l2_tv(self):
from parsimony.functions.losses import LinearRegression
from parsimony.functions.losses import RidgeRegression
from parsimony.functions.penalties import L1
from parsimony.functions.penalties import L2Squared
import parsimony.functions.nesterov.tv as tv
from parsimony.functions import CombinedFunction
import parsimony.datasets.simulate.l1_l2_tv as l1_l2_tv
import parsimony.datasets.simulate.l1_l2_tvmu as l1_l2_tvmu
import parsimony.utils.weights as weights
import parsimony.algorithms.proximal as proximal
start_vector = weights.RandomUniformWeights(normalise=True)
np.random.seed(42)
px = 4
py = 4
pz = 4
shape = (pz, py, px)
n, p = 50, np.prod(shape)
alpha = 1.0
Sigma = alpha * np.eye(p, p) \
+ (1.0 - alpha) * np.random.randn(p, p)
mean = np.zeros(p)
M = np.random.multivariate_normal(mean, Sigma, n)
e = np.random.randn(n, 1)
beta = start_vector.get_weights(p)
beta = np.sort(beta, axis=0)
beta[beta < 0.1] = 0.0
l = 0.618
k = 1.0 - l
g = 1.618
A = tv.linear_operator_from_shape(shape)
snr = 100.0
eps = 1e-8
max_iter = 1200
X, y, beta_star = l1_l2_tv.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, snr=snr)
mus = [5e-2, 5e-4, 5e-6, 5e-8]
fista = proximal.FISTA(eps=eps, max_iter=max_iter / len(mus))
beta_start = start_vector.get_weights(p)
beta_nonsmooth_penalty = beta_start
function = None
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(tv.TotalVariation(l=g, A=A, mu=mu,
penalty_start=0))
function.add_penalty(L2Squared(k))
function.add_prox(L1(l))
beta_nonsmooth_penalty = \
fista.run(function, beta_nonsmooth_penalty)
mse = np.linalg.norm(beta_nonsmooth_penalty - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-3, "The found regression vector is not correct.")
f_nonsmooth_star = function.f(beta_star)
f_nonsmooth_penalty = function.f(beta_nonsmooth_penalty)
err = abs(f_nonsmooth_penalty - f_nonsmooth_star) / f_nonsmooth_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
beta_nonsmooth_rr = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(RidgeRegression(X, y, k, mean=False))
function.add_penalty(tv.TotalVariation(l=g, A=A, mu=mu,
penalty_start=0))
function.add_prox(L1(l))
beta_nonsmooth_rr = fista.run(function, beta_nonsmooth_rr)
mse = np.linalg.norm(beta_nonsmooth_rr - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-3, "The found regression vector is not correct.")
f_nonsmooth_star = function.f(beta_star)
f_nonsmooth_rr = function.f(beta_nonsmooth_rr)
err = abs(f_nonsmooth_rr - f_nonsmooth_star) / f_nonsmooth_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
mu_min = mus[-1]
X, y, beta_star = l1_l2_tvmu.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, mu=mu_min, snr=snr)
beta_smooth_penalty = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(tv.TotalVariation(l=g, A=A, mu=mu,
penalty_start=0))
function.add_penalty(L2Squared(k))
function.add_prox(L1(l))
beta_smooth_penalty = \
fista.run(function, beta_smooth_penalty)
mse = np.linalg.norm(beta_smooth_penalty - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-3, "The found regression vector is not correct.")
f_smooth_star = function.f(beta_star)
f_smooth_penalty = function.f(beta_smooth_penalty)
err = abs(f_smooth_penalty - f_smooth_star) / f_smooth_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
beta_smooth_rr = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(RidgeRegression(X, y, k, mean=False))
function.add_penalty(tv.TotalVariation(l=g, A=A, mu=mu,
penalty_start=0))
function.add_prox(L1(l))
beta_smooth_rr = fista.run(function, beta_smooth_rr)
mse = np.linalg.norm(beta_smooth_rr - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-3, "The found regression vector is not correct.")
f_smooth_star = function.f(beta_star)
f_smooth_rr = function.f(beta_smooth_rr)
err = abs(f_smooth_rr - f_smooth_star) / f_smooth_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
def test_l1_l2_gl(self):
from parsimony.functions.losses import LinearRegression
from parsimony.functions.losses import RidgeRegression
from parsimony.functions.penalties import L1
from parsimony.functions.penalties import L2Squared
import parsimony.functions.nesterov.gl as gl
from parsimony.functions import CombinedFunction
import parsimony.datasets.simulate.l1_l2_gl as l1_l2_gl
import parsimony.datasets.simulate.l1_l2_glmu as l1_l2_glmu
import parsimony.utils.weights as weights
import parsimony.estimators as estimators
import parsimony.algorithms.proximal as proximal
start_vector = weights.RandomUniformWeights(normalise=True)
np.random.seed(42)
n, p = 60, 90
groups = [list(range(0, 2 * int(p / 3))), list(range(int(p / 3), p))]
weights = [1.5, 0.5]
A = gl.linear_operator_from_groups(p, groups=groups, weights=weights)
alpha = 0.9
V = np.random.randn(p, p)
Sigma = alpha * np.eye(p, p) \
+ (1.0 - alpha) * np.dot(V.T, V)
mean = np.zeros(p)
M = np.random.multivariate_normal(mean, Sigma, n)
e = np.random.randn(n, 1)
beta = start_vector.get_weights(p)
beta = np.sort(beta, axis=0)
beta[beta < 0.1] = 0.0
l = 0.618
k = 1.0 - l
g = 1.618
snr = 20.0
eps = 1e-8
max_iter = 4000
X, y, beta_star = l1_l2_gl.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, snr=snr)
mus = [5e-2, 5e-4, 5e-6, 5e-8]
fista = proximal.FISTA(eps=eps, max_iter=max_iter / len(mus))
beta_start = start_vector.get_weights(p)
beta_nonsmooth_penalty = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(gl.GroupLassoOverlap(l=g, A=A, mu=mu,
penalty_start=0))
function.add_penalty(L2Squared(k))
function.add_prox(L1(l))
beta_nonsmooth_penalty = fista.run(function,
beta_nonsmooth_penalty)
mse = np.linalg.norm(beta_nonsmooth_penalty - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_nonsmooth_penalty = function.f(beta_nonsmooth_penalty)
err = abs(f_nonsmooth_penalty - f_star) / f_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
beta_nonsmooth_rr = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(RidgeRegression(X, y, k, mean=False))
function.add_penalty(gl.GroupLassoOverlap(l=g, A=A, mu=mu,
penalty_start=0))
function.add_prox(L1(l))
beta_nonsmooth_rr = fista.run(function, beta_nonsmooth_rr)
mse = np.linalg.norm(beta_nonsmooth_rr - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_nonsmooth_rr = function.f(beta_nonsmooth_rr)
err = abs(f_nonsmooth_rr - f_star) / f_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
mu_min = mus[-1]
X, y, beta_star = l1_l2_glmu.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, mu=mu_min, snr=snr)
beta_smooth_penalty = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(gl.GroupLassoOverlap(l=g, A=A, mu=mu,
penalty_start=0))
function.add_penalty(L2Squared(k))
function.add_prox(L1(l))
beta_smooth_penalty = fista.run(function, beta_smooth_penalty)
mse = np.linalg.norm(beta_smooth_penalty - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_smooth_penalty = function.f(beta_smooth_penalty)
err = abs(f_smooth_penalty - f_star) / f_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
beta_smooth_rr = beta_start
for mu in mus:
function = CombinedFunction()
function.add_loss(RidgeRegression(X, y, k, mean=False))
function.add_penalty(gl.GroupLassoOverlap(l=g, A=A, mu=mu,
penalty_start=0))
function.add_prox(L1(l))
beta_smooth_rr = fista.run(function, beta_smooth_rr)
mse = np.linalg.norm(beta_smooth_rr - beta_star) \
/ np.linalg.norm(beta_star)
# print "mse:", mse
assert_less(mse, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_smooth_rr = function.f(beta_smooth_rr)
err = abs(f_smooth_rr - f_star) / f_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
max_iter = 2200
est = estimators.LinearRegressionL1L2GL(l, k, g, A=A, mu=mu,
algorithm=proximal.StaticCONESTA(),
algorithm_params=dict(eps=eps,
max_iter=max_iter),
penalty_start=0,
mean=False)
est.fit(X, y)
re = np.linalg.norm(est.beta - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-2, "The found regression vector is not correct.")
f_star = function.f(beta_star)
f_rr = function.f(est.beta)
err = abs(f_rr - f_star) / f_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
def test_estimators(self):
import numpy as np
import parsimony.estimators as estimators
import parsimony.algorithms.gradient as gradient
import parsimony.functions.nesterov.tv as tv
import parsimony.functions.nesterov.gl as gl
import parsimony.datasets.simulate.l1_l2_tv as l1_l2_tv
import parsimony.datasets.simulate.l1_l2_gl as l1_l2_gl
# import parsimony.datasets.simulate.l1_l2_glmu as l1_l2_glmu
import parsimony.utils.weights as weights
from parsimony.functions import CombinedFunction
from parsimony.functions.losses import LinearRegression
from parsimony.functions.penalties import L1, L2Squared
import parsimony.algorithms.proximal as proximal
start_vector = weights.RandomUniformWeights(normalise=True)
np.random.seed(42)
shape = (4, 4, 4)
A = tv.linear_operator_from_shape(shape)
n, p = 64, np.prod(shape)
alpha = 0.9
Sigma = alpha * np.eye(p, p) \
+ (1.0 - alpha) * np.random.randn(p, p)
mean = np.zeros(p)
M = np.random.multivariate_normal(mean, Sigma, n)
e = np.random.randn(n, 1)
beta = np.random.rand(p, 1)
snr = 100.0
l = 0.0 # L1 coefficient
k = 0.1 # Ridge coefficient
g = 0.0 # TV coefficient
np.random.seed(42)
X, y, beta_star = l1_l2_tv.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, snr=snr)
lr = estimators.LinearRegressionL1L2TV(l, k, g, A,
algorithm=proximal.FISTA(),
algorithm_params=dict(max_iter=1000),
mean=False)
lr.fit(X, y)
score = lr.score(X, y)
# print("score:", score)
assert_almost_equal(score, 1.297567,
msg="The found regression vector does not give "
"a low enough score value.",
places=5)
n, p = 50, np.prod(shape)
alpha = 0.9
Sigma = alpha * np.eye(p, p) \
+ (1.0 - alpha) * np.random.randn(p, p)
mean = np.zeros(p)
M = np.random.multivariate_normal(mean, Sigma, n)
e = np.random.randn(n, 1)
beta = np.random.rand(p, 1)
snr = 100.0
l = 0.0 # L1 coefficient
k = 0.1 # Ridge coefficient
g = 0.0 # TV coefficient
np.random.seed(42)
X, y, beta_star = l1_l2_tv.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, snr=snr)
lr = estimators.LinearRegressionL1L2TV(l, k, g, A,
algorithm=proximal.FISTA(),
algorithm_params=dict(max_iter=1000),
mean=False)
lr.fit(X, y)
score = lr.score(X, y)
# print "score:", score
assert_almost_equal(score, 0.969725,
msg="The found regression vector does not give "
"a low enough score value.",
places=5)
n, p = 100, np.prod(shape)
alpha = 0.9
Sigma = alpha * np.eye(p, p) \
+ (1.0 - alpha) * np.random.randn(p, p)
mean = np.zeros(p)
M = np.random.multivariate_normal(mean, Sigma, n)
e = np.random.randn(n, 1)
beta = np.random.rand(p, 1)
snr = 100.0
l = 0.0 # L1 coefficient
k = 0.1 # Ridge coefficient
g = 0.0 # TV coefficient
np.random.seed(42)
X, y, beta_star = l1_l2_tv.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, snr=snr)
lr = estimators.LinearRegressionL1L2TV(l, k, g, A,
algorithm=proximal.FISTA(),
algorithm_params=dict(max_iter=1000),
mean=False)
lr.fit(X, y)
score = lr.score(X, y)
# print "score:", score
assert_almost_equal(score, 1.154467,
msg="The found regression vector does not give "
"a low enough score value.",
places=5)
n, p = 100, np.prod(shape)
alpha = 0.9
Sigma = alpha * np.eye(p, p) \
+ (1.0 - alpha) * np.random.randn(p, p)
mean = np.zeros(p)
M = np.random.multivariate_normal(mean, Sigma, n)
e = np.random.randn(n, 1)
beta = np.random.rand(p, 1)
beta = np.sort(beta, axis=0)
beta[:10, :] = 0.0
snr = 100.0
l = 0.618 # L1 coefficient
k = 1.0 - l # Ridge coefficient
g = 2.718 # TV coefficient
np.random.seed(42)
X, y, beta_star = l1_l2_tv.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, snr=snr)
l = 0.0
k = 0.0
g = 0.0
lr = estimators.LinearRegressionL1L2TV(l, k, g, A,
algorithm=proximal.FISTA(),
algorithm_params=dict(max_iter=1000))
lr.fit(X, y)
score = lr.score(X, y)
# print "score:", score
assert_almost_equal(score, 1.059350,
msg="The found regression vector does not give "
"a low enough score value.",
places=5)
np.random.seed(42)
lr = estimators.LinearRegression(algorithm=gradient.GradientDescent(),
algorithm_params=dict(max_iter=10000))
lr.fit(X, y)
score = lr.score(X, y)
# print "score:", score
assert_almost_equal(score, 3.392501,
msg="The found regression vector does not give "
"the correct score value.",
places=5)
l = 0.618
k = 0.0
g = 0.0
np.random.seed(42)
lr = estimators.LinearRegressionL1L2TV(l, k, g, A,
algorithm=proximal.FISTA(),
algorithm_params=dict(max_iter=1000),
mean=False)
lr.fit(X, y)
score = lr.score(X, y)
# print "score:", score
assert_almost_equal(score, 1.110649,
msg="The found regression vector does not give "
"a low enough score value.",
places=5)
l = 0.0
k = 1.0 - 0.618
g = 0.0
np.random.seed(42)
lr = estimators.LinearRegressionL1L2TV(l, k, g, A,
algorithm=proximal.FISTA(),
algorithm_params=dict(max_iter=1000),
mean=False)
lr.fit(X, y)
score = lr.score(X, y)
# print "score:", score
assert_almost_equal(score, 1.066520,
msg="The found regression vector does not give "
"a low enough score value.",
places=5)
l = 0.0
k = 0.0
g = 2.718
np.random.seed(42)
lr = estimators.LinearRegressionL1L2TV(l, k, g, A,
algorithm=proximal.FISTA(),
algorithm_params=dict(max_iter=1000),
mean=False)
lr.fit(X, y)
score = lr.score(X, y)
# print "score:", score
assert_almost_equal(score, 15.619054,
msg="The found regression vector does not give "
"a low enough score value.",
places=5)
l = 0.618
k = 1.0 - l
g = 0.0
np.random.seed(42)
lr = estimators.LinearRegressionL1L2TV(l, k, g, A,
algorithm=proximal.FISTA(),
algorithm_params=dict(max_iter=1000),
mean=False)
lr.fit(X, y)
score = lr.score(X, y)
# print "score:", score
assert_almost_equal(score, 1.114322,
msg="The found regression vector does not give "
"a low enough score value.",
places=5)
l = 0.618
k = 0.0
g = 2.718
np.random.seed(42)
lr = estimators.LinearRegressionL1L2TV(l, k, g, A,
algorithm=proximal.FISTA(),
algorithm_params=dict(max_iter=1000),
mean=False)
lr.fit(X, y)
score = lr.score(X, y)
# print "score:", score
assert_almost_equal(score, 15.619592,
msg="The found regression vector does not give "
"a low enough score value.",
places=5)
l = 0.0
k = 1.0 - 0.618
g = 2.718
np.random.seed(42)
lr = estimators.LinearRegressionL1L2TV(l, k, g, A,
algorithm=proximal.FISTA(),
algorithm_params=dict(max_iter=1000),
mean=False)
lr.fit(X, y)
score = lr.score(X, y)
# print "score:", score
assert_almost_equal(score, 15.619039,
msg="The found regression vector does not give "
"a low enough score value.",
places=5)
l = 0.618
k = 1.0 - l
g = 2.718
np.random.seed(42)
lr = estimators.LinearRegressionL1L2TV(l, k, g, A,
algorithm=proximal.ISTA(),
algorithm_params=dict(max_iter=1000),
mean=False)
lr.fit(X, y)
score = lr.score(X, y)
# print "score:", score
assert_almost_equal(score, 1047.806503,
msg="The found regression vector does not give "
"the correct score value.",
places=5)
l = 0.618
k = 1.0 - l
g = 2.718
np.random.seed(42)
lr = estimators.LinearRegressionL1L2TV(l, k, g, A,
algorithm=proximal.FISTA(),
algorithm_params=dict(max_iter=1000),
mean=False)
lr.fit(X, y)
score = lr.score(X, y)
# print "score:", score
assert_almost_equal(score, 15.619577,
msg="The found regression vector does not give "
"the correct score value.",
places=5)
# Test group lasso
# ----------------
start_vector = weights.RandomUniformWeights(normalise=True)
np.random.seed(42)
n, p = 60, 90
groups = [list(range(0, 2 * int(p / 3))), list(range(int(p / 3), p))]
weights = [1.5, 0.5]
A = gl.linear_operator_from_groups(p, groups=groups, weights=weights)
alpha = 0.9
V = np.random.randn(p, p)
Sigma = alpha * np.eye(p, p) \
+ (1.0 - alpha) * np.dot(V.T, V)
mean = np.zeros(p)
M = np.random.multivariate_normal(mean, Sigma, n)
e = np.random.randn(n, 1)
beta = start_vector.get_weights(p)
beta = np.sort(beta, axis=0)
beta[:10, :] = 0.0
snr = 20.0
eps = 1e-8
l = 0.0
k = 0.001 # Cannot be zero.
g = 1.618
X, y, beta_star = l1_l2_gl.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, snr=snr)
est = estimators.LinearRegressionL1L2GL(l, k, g, A=A, mu=None,
algorithm=proximal.StaticCONESTA(),
algorithm_params=dict(eps=eps,
max_iter=17000,
tau=0.9),
penalty_start=0,
mean=False)
est.fit(X, y)
re = np.linalg.norm(est.beta - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-2, "The found regression vector is not correct.")
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(gl.GroupLassoOverlap(l=g, A=A,
penalty_start=0))
f_star = function.f(beta_star)
f_rr = function.f(est.beta)
err = abs(f_rr - f_star) / f_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
l = 0.618
k = 0.001 # May not be zero.
g = 1.618
np.random.seed(42)
X, y, beta_star = l1_l2_gl.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, snr=snr)
est = estimators.LinearRegressionL1L2GL(l, k, g, A=A, mu=None,
algorithm=proximal.StaticCONESTA(),
algorithm_params=dict(eps=eps,
max_iter=6500),
penalty_start=0,
mean=False)
est.fit(X, y)
re = np.linalg.norm(est.beta - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 7e-2, "The found regression vector is not correct.")
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(gl.GroupLassoOverlap(l=g, A=A,
penalty_start=0))
function.add_prox(L1(l=l))
f_star = function.f(beta_star)
f_rr = function.f(est.beta)
err = abs(f_rr - f_star) / f_star
# print "err:", err
assert_less(err, 6e-4, "The found regression vector does not give "
"the correct function value.")
np.random.seed(42)
l = 0.0
k = 0.618
g = 1.618
X, y, beta_star = l1_l2_gl.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, snr=snr)
est = estimators.LinearRegressionL1L2GL(l, k, g, A=A, mu=None,
algorithm=proximal.StaticCONESTA(),
algorithm_params=dict(eps=eps,
max_iter=2200),
penalty_start=0,
mean=False)
est.fit(X, y)
re = np.linalg.norm(est.beta - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-2, "The found regression vector is not correct.")
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(gl.GroupLassoOverlap(l=g, A=A,
penalty_start=0))
function.add_prox(L1(l=l))
f_star = function.f(beta_star)
f_rr = function.f(est.beta)
err = abs(f_rr - f_star) / f_star
# print "err:", err
assert_less(err, 5e-2, "The found regression vector does not give "
"the correct function value.")
np.random.seed(42)
l = 0.618
k = 1.0 - l
g = 1.618
X, y, beta_star = l1_l2_gl.load(l=l, k=k, g=g, beta=beta, M=M, e=e,
A=A, snr=snr)
est = estimators.LinearRegressionL1L2GL(l, k, g, A=A, mu=None,
algorithm=proximal.StaticCONESTA(),
algorithm_params=dict(eps=eps,
max_iter=3900),
penalty_start=0,
mean=False)
est.fit(X, y)
re = np.linalg.norm(est.beta - beta_star) \
/ np.linalg.norm(beta_star)
# print "re:", re
assert_less(re, 5e-2, "The found regression vector is not correct.")
function = CombinedFunction()
function.add_loss(LinearRegression(X, y, mean=False))
function.add_penalty(gl.GroupLassoOverlap(l=g, A=A,
penalty_start=0))
function.add_penalty(L2Squared(l=k))
function.add_prox(L1(l=l))
f_star = function.f(beta_star)
f_rr = function.f(est.beta)
err = abs(f_rr - f_star) / f_star
# print "err:", err
assert_less(err, 5e-4, "The found regression vector does not give "
"the correct function value.")
def test_large(self):
import parsimony.algorithms.gradient as gradient
import parsimony.estimators as estimators
import parsimony.functions.nesterov.tv as tv
import parsimony.algorithms.proximal as proximal
np.random.seed(42)
px = 10
py = 10
pz = 10
shape = (pz, py, px)
n, p = 100, np.prod(shape)
A = tv.linear_operator_from_shape(shape)
alpha = 0.9
V = np.random.randn(p, p)
Sigma = alpha * np.eye(p, p) \
+ (1.0 - alpha) * np.dot(V.T, V)
mean = np.zeros(p)
X = np.random.multivariate_normal(mean, Sigma, n)
beta = np.random.rand(p, 1) * 2.0 - 1.0
beta = np.sort(beta, axis=0)
beta[np.abs(beta) < 0.1] = 0.0
y = np.dot(X, beta)
eps = 1e-8
max_iter = 10000
k = 0.618
l = 1.0 - k
g = 1.618
mu = None
logreg_static = estimators.LinearRegressionL1L2TV(l, k, g, A, mu=mu,
algorithm=proximal.StaticCONESTA(),
algorithm_params=dict(eps=eps,
max_iter=max_iter),
mean=False)
logreg_static.fit(X, y)
err = logreg_static.score(X, y)
# print err
assert_less(err, 0.026,
msg="The found regression vector is not correct.")
np.random.seed(42)
mu = None
logreg_dynamic = estimators.LinearRegressionL1L2TV(l, k, g, A, mu=mu,
algorithm=proximal.CONESTA(),
algorithm_params=dict(eps=eps,
max_iter=max_iter),
mean=False)
logreg_dynamic.fit(X, y)
err = logreg_dynamic.score(X, y)
assert_less(err, 0.02591,
msg="The found regression vector is not correct.")
np.random.seed(42)
mu = 5e-4
logreg_fista = estimators.LinearRegressionL1L2TV(l, k, g, A, mu=mu,
algorithm=proximal.FISTA(),
algorithm_params=dict(eps=eps,
max_iter=max_iter),
mean=False)
logreg_fista.fit(X, y)
err = logreg_fista.score(X, y)
# print err
assert_less(err, 0.0259,
msg="The found regression vector is not correct.")
np.random.seed(42)
mu = 5e-4
logreg_ista = estimators.LinearRegressionL1L2TV(l, k, g, A, mu=mu,
algorithm=proximal.ISTA(),
algorithm_params=dict(eps=eps,
max_iter=max_iter),
mean=False)
logreg_ista.fit(X, y)
err = logreg_ista.score(X, y)
# print err
assert_less(err, 0.0350,
msg="The found regression vector is not correct.")
np.random.seed(42)
lr = estimators.LinearRegression(algorithm=gradient.GradientDescent(),
algorithm_params=dict(eps=eps,
max_iter=max_iter),
mean=False)
lr.fit(X, y)
err = lr.score(X, y)
# print err
assert_less(err, 5e-10,
msg="The found regression vector is not correct.")
if __name__ == "__main__":
import unittest
unittest.main()
| 40.413226 | 100 | 0.520454 | 14,660 | 120,391 | 4.125784 | 0.034379 | 0.032141 | 0.049104 | 0.065472 | 0.945308 | 0.940397 | 0.936264 | 0.929717 | 0.924707 | 0.918177 | 0 | 0.052088 | 0.376648 | 120,391 | 2,978 | 101 | 40.426797 | 0.753871 | 0.102832 | 0 | 0.894737 | 0 | 0 | 0.083342 | 0 | 0 | 0 | 0 | 0 | 0.074248 | 1 | 0.009868 | false | 0 | 0.079887 | 0 | 0.090226 | 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 |
3e7b85173150c961d38684a31d290b39d10fdb34 | 347 | py | Python | proj3/constants.py | luizcartolano2/mc920-image-processing | 2cc12bec0562979b34f2980633f666d1dfb75568 | [
"MIT"
] | null | null | null | proj3/constants.py | luizcartolano2/mc920-image-processing | 2cc12bec0562979b34f2980633f666d1dfb75568 | [
"MIT"
] | null | null | null | proj3/constants.py | luizcartolano2/mc920-image-processing | 2cc12bec0562979b34f2980633f666d1dfb75568 | [
"MIT"
] | null | null | null | # paths para a pasta
PATH_IN = '/Users/luizeduardocartolano/Dropbox/DUDU/Unicamp/IC/MC920/workspace/imagesInclinadas/'
PATH_OUT_HOR = '/Users/luizeduardocartolano/Dropbox/DUDU/Unicamp/IC/MC920/workspace/proj3/output/projecaoHorizontal/'
PATH_OUT_HOUGH = '/Users/luizeduardocartolano/Dropbox/DUDU/Unicamp/IC/MC920/workspace/proj3/output/Hough/'
| 69.4 | 117 | 0.824207 | 43 | 347 | 6.534884 | 0.488372 | 0.266904 | 0.341637 | 0.384342 | 0.708185 | 0.708185 | 0.708185 | 0.708185 | 0.498221 | 0.498221 | 0 | 0.033333 | 0.048991 | 347 | 4 | 118 | 86.75 | 0.818182 | 0.051873 | 0 | 0 | 0 | 0.666667 | 0.839506 | 0.839506 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
e4395776f21a5810cca546b82c8df94281e6f2c3 | 8,834 | py | Python | tests/click_simulation/test_pbm.py | rjagerman/pytorchltr | 625416e1e7d21fb2bbc485914704fc2e55274556 | [
"MIT"
] | 37 | 2020-05-24T13:40:52.000Z | 2022-03-17T09:00:52.000Z | tests/click_simulation/test_pbm.py | SuperXiang/pytorchltr | 625416e1e7d21fb2bbc485914704fc2e55274556 | [
"MIT"
] | 22 | 2020-05-25T11:35:38.000Z | 2021-03-20T04:08:07.000Z | tests/click_simulation/test_pbm.py | SuperXiang/pytorchltr | 625416e1e7d21fb2bbc485914704fc2e55274556 | [
"MIT"
] | 4 | 2020-10-16T13:14:16.000Z | 2022-01-31T17:18:20.000Z | import torch
from pytorchltr.click_simulation.pbm import simulate_perfect
from pytorchltr.click_simulation.pbm import simulate_position
from pytorchltr.click_simulation.pbm import simulate_nearrandom
from pytest import approx
def _generate_test_data():
"""Generates a small batch of test data for simulations."""
rankings = torch.LongTensor([
[3, 4, 0, 2, 1],
[1, 0, 2, 4, 3]
])
ys = torch.LongTensor([
[1, 0, 4, 0, 2],
[4, 3, 0, 0, 0]
])
n = torch.LongTensor([5, 3])
return rankings, ys, n
def _monte_carlo_simulation(rankings, ys, n, click_fn, nr=100):
"""Runs a click simulation repeatedly and reports averages.
Arguments:
rankings: The batch of rankings.
ys: The batch of relevance labels.
n: The nr of docs per query in the batch.
click_fn: The click simulate function to call.
nr: Number of simulations to run.
Returns:
The averaged output of `click_fn` across `nr` runs.
"""
clicks = simulate_perfect(rankings, ys, n)
torch.manual_seed(4200)
click_aggregate = torch.zeros_like(clicks[0]).to(torch.float)
prop_aggregate = torch.zeros_like(clicks[1]).to(torch.float)
for i in range(nr):
clicks, props = click_fn(rankings, ys, n)
click_aggregate += clicks.to(dtype=torch.float)
prop_aggregate += props
return click_aggregate / float(nr), prop_aggregate / float(nr)
def test_perfect_clicks():
rankings, ys, n = _generate_test_data()
clicks, props = _monte_carlo_simulation(rankings, ys, n, simulate_perfect)
rel_expected = torch.FloatTensor([
[0.2, 0.0, 1.0, 0.0, 0.4],
[1.0, 0.8, 0.0, 0.0, 0.0]
])
props_expected = torch.FloatTensor([
[1.0, 1.0, 1.0, 1.0, 1.0],
[1.0, 1.0, 1.0, 0.0, 0.0]
])
clicks_expected = rel_expected * props_expected
assert clicks_expected.numpy() == approx(clicks.numpy(), abs=0.1)
assert props_expected.numpy() == approx(props.numpy(), abs=0.1)
def test_perfect_clicks_cutoff_3():
rankings, ys, n = _generate_test_data()
def click_fn(rankings, ys, n):
return simulate_perfect(rankings, ys, n, cutoff=3)
clicks, props = _monte_carlo_simulation(rankings, ys, n, click_fn)
rel_expected = torch.FloatTensor([
[0.2, 0.0, 1.0, 0.0, 0.4],
[1.0, 0.8, 0.0, 0.0, 0.0]
])
props_expected = torch.FloatTensor([
[1.0, 0.0, 0.0, 1.0, 1.0],
[1.0, 1.0, 1.0, 0.0, 0.0]
])
clicks_expected = rel_expected * props_expected
assert clicks_expected.numpy() == approx(clicks.numpy(), abs=0.1)
assert props_expected.numpy() == approx(props.numpy(), abs=0.1)
def test_perfect_clicks_cutoff_2():
rankings, ys, n = _generate_test_data()
def click_fn(rankings, ys, n):
return simulate_perfect(rankings, ys, n, cutoff=2)
clicks, props = _monte_carlo_simulation(rankings, ys, n, click_fn)
rel_expected = torch.FloatTensor([
[0.2, 0.0, 1.0, 0.0, 0.4],
[1.0, 0.8, 0.0, 0.0, 0.0]
])
props_expected = torch.FloatTensor([
[0.0, 0.0, 0.0, 1.0, 1.0],
[1.0, 1.0, 0.0, 0.0, 0.0]
])
clicks_expected = rel_expected * props_expected
assert clicks_expected.numpy() == approx(clicks.numpy(), abs=0.1)
assert props_expected.numpy() == approx(props.numpy(), abs=0.1)
def test_position_clicks():
rankings, ys, n = _generate_test_data()
clicks, props = _monte_carlo_simulation(rankings, ys, n, simulate_position)
rel_expected = torch.FloatTensor([
[0.1, 0.1, 1.0, 0.1, 0.1],
[1.0, 1.0, 0.1, 0.1, 0.1]
])
props_expected = torch.FloatTensor([
[1/4.0, 1/6.0, 1/5.0, 1/2.0, 1/3.0],
[1/3.0, 1/2.0, 1/4.0, 0.0, 0.0]
])
clicks_expected = rel_expected * props_expected
assert clicks_expected.numpy() == approx(clicks.numpy(), abs=0.1)
assert props_expected.numpy() == approx(props.numpy(), abs=0.1)
def test_position_clicks_eta_2():
rankings, ys, n = _generate_test_data()
def click_fn(rankings, ys, n):
return simulate_position(rankings, ys, n, eta=2.0)
clicks, props = _monte_carlo_simulation(rankings, ys, n, click_fn)
rel_expected = torch.FloatTensor([
[0.1, 0.1, 1.0, 0.1, 0.1],
[1.0, 1.0, 0.1, 0.1, 0.1]
])
props_expected = torch.FloatTensor([
[1/4.0, 1/6.0, 1/5.0, 1/2.0, 1/3.0],
[1/3.0, 1/2.0, 1/4.0, 0.0, 0.0]
]) ** 2.0
clicks_expected = rel_expected * props_expected
assert clicks_expected.numpy() == approx(clicks.numpy(), abs=0.1)
assert props_expected.numpy() == approx(props.numpy(), abs=0.1)
def test_position_clicks_eta_0():
rankings, ys, n = _generate_test_data()
def click_fn(rankings, ys, n):
return simulate_position(rankings, ys, n, eta=0.0)
clicks, props = _monte_carlo_simulation(rankings, ys, n, click_fn)
rel_expected = torch.FloatTensor([
[0.1, 0.1, 1.0, 0.1, 0.1],
[1.0, 1.0, 0.1, 0.1, 0.1]
])
props_expected = torch.FloatTensor([
[1/4.0, 1/6.0, 1/5.0, 1/2.0, 1/3.0],
[1/3.0, 1/2.0, 1/4.0, 0.0, 0.0]
]) ** 0.0
props_expected[1, 3] = 0.0
props_expected[1, 4] = 0.0
clicks_expected = rel_expected * props_expected
assert clicks_expected.numpy() == approx(clicks.numpy(), abs=0.1)
assert props_expected.numpy() == approx(props.numpy(), abs=0.1)
def test_position_clicks_cutoff_3():
rankings, ys, n = _generate_test_data()
def click_fn(rankings, ys, n):
return simulate_position(rankings, ys, n, cutoff=3)
clicks, props = _monte_carlo_simulation(rankings, ys, n, click_fn)
rel_expected = torch.FloatTensor([
[0.1, 0.1, 1.0, 0.1, 0.1],
[1.0, 1.0, 0.1, 0.1, 0.1]
])
props_expected = torch.FloatTensor([
[1/4.0, 0.0, 0.0, 1/2.0, 1/3.0],
[1/3.0, 1/2.0, 1/4.0, 0.0, 0.0]
])
clicks_expected = rel_expected * props_expected
assert clicks_expected.numpy() == approx(clicks.numpy(), abs=0.1)
assert props_expected.numpy() == approx(props.numpy(), abs=0.1)
def test_nearrandom_clicks():
rankings, ys, n = _generate_test_data()
clicks, props = _monte_carlo_simulation(
rankings, ys, n, simulate_nearrandom)
rel_expected = torch.FloatTensor([
[0.45, 0.4, 0.6, 0.4, 0.5],
[0.6, 0.55, 0.4, 0.4, 0.4]
])
props_expected = torch.FloatTensor([
[1/4.0, 1/6.0, 1/5.0, 1/2.0, 1/3.0],
[1/3.0, 1/2.0, 1/4.0, 0.0, 0.0]
])
clicks_expected = rel_expected * props_expected
assert clicks_expected.numpy() == approx(clicks.numpy(), abs=0.1)
assert props_expected.numpy() == approx(props.numpy(), abs=0.1)
def test_nearrandom_clicks_eta_2():
rankings, ys, n = _generate_test_data()
def click_fn(rankings, ys, n):
return simulate_nearrandom(rankings, ys, n, eta=2.0)
clicks, props = _monte_carlo_simulation(rankings, ys, n, click_fn)
rel_expected = torch.FloatTensor([
[0.45, 0.4, 0.6, 0.4, 0.5],
[0.6, 0.55, 0.4, 0.4, 0.4]
])
props_expected = torch.FloatTensor([
[1/4.0, 1/6.0, 1/5.0, 1/2.0, 1/3.0],
[1/3.0, 1/2.0, 1/4.0, 0.0, 0.0]
]) ** 2.0
clicks_expected = rel_expected * props_expected
assert clicks_expected.numpy() == approx(clicks.numpy(), abs=0.1)
assert props_expected.numpy() == approx(props.numpy(), abs=0.1)
def test_nearrandom_clicks_eta_0():
rankings, ys, n = _generate_test_data()
def click_fn(rankings, ys, n):
return simulate_nearrandom(rankings, ys, n, eta=0.0)
clicks, props = _monte_carlo_simulation(rankings, ys, n, click_fn)
rel_expected = torch.FloatTensor([
[0.45, 0.4, 0.6, 0.4, 0.5],
[0.6, 0.55, 0.4, 0.4, 0.4]
])
props_expected = torch.FloatTensor([
[1/4.0, 1/6.0, 1/5.0, 1/2.0, 1/3.0],
[1/3.0, 1/2.0, 1/4.0, 0.0, 0.0]
]) ** 0.0
props_expected[1, 3] = 0.0
props_expected[1, 4] = 0.0
clicks_expected = rel_expected * props_expected
assert clicks_expected.numpy() == approx(clicks.numpy(), abs=0.1)
assert props_expected.numpy() == approx(props.numpy(), abs=0.1)
def test_nearrandom_clicks_cutoff_3():
rankings, ys, n = _generate_test_data()
def click_fn(rankings, ys, n):
return simulate_nearrandom(rankings, ys, n, cutoff=3)
clicks, props = _monte_carlo_simulation(rankings, ys, n, click_fn)
rel_expected = torch.FloatTensor([
[0.45, 0.4, 0.6, 0.4, 0.5],
[0.6, 0.55, 0.4, 0.4, 0.4]
])
props_expected = torch.FloatTensor([
[1/4.0, 0.0, 0.0, 1/2.0, 1/3.0],
[1/3.0, 1/2.0, 1/4.0, 0.0, 0.0]
])
clicks_expected = rel_expected * props_expected
assert clicks_expected.numpy() == approx(clicks.numpy(), abs=0.1)
assert props_expected.numpy() == approx(props.numpy(), abs=0.1)
| 35.477912 | 79 | 0.614897 | 1,462 | 8,834 | 3.552668 | 0.059508 | 0.048132 | 0.041009 | 0.037736 | 0.865614 | 0.845976 | 0.845784 | 0.819214 | 0.811898 | 0.811898 | 0 | 0.0912 | 0.221757 | 8,834 | 248 | 80 | 35.620968 | 0.664291 | 0.045166 | 0 | 0.746269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109453 | 1 | 0.104478 | false | 0 | 0.024876 | 0.039801 | 0.179104 | 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 |
e4516d988d8d3e3b9f1fafa60c2023be332d3336 | 140 | py | Python | run.py | ArioShaman/portfolio | de27281221f70784eb417143dc2329fa5de189f3 | [
"BSD-3-Clause"
] | null | null | null | run.py | ArioShaman/portfolio | de27281221f70784eb417143dc2329fa5de189f3 | [
"BSD-3-Clause"
] | null | null | null | run.py | ArioShaman/portfolio | de27281221f70784eb417143dc2329fa5de189f3 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from app import app
app.run(debug = True,threaded=True)
from flask.ext.mail import Message
from app import app, mail
| 20 | 35 | 0.764286 | 25 | 140 | 4.28 | 0.6 | 0.130841 | 0.242991 | 0.299065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135714 | 140 | 6 | 36 | 23.333333 | 0.884298 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
e45ea78f1ed6d7926d027f9a2ddc9bf2fb7e5113 | 132 | py | Python | tp/ftp/__init__.py | chinapnr/agbot | 9739ce1c2198e50111629db2d1de785edd06876e | [
"MIT"
] | 2 | 2018-06-23T06:48:46.000Z | 2018-06-23T10:11:50.000Z | tp/ftp/__init__.py | chinapnr/agbot | 9739ce1c2198e50111629db2d1de785edd06876e | [
"MIT"
] | 5 | 2020-01-03T09:33:02.000Z | 2021-06-02T00:49:52.000Z | tp/ftp/__init__.py | chinapnr/agbot | 9739ce1c2198e50111629db2d1de785edd06876e | [
"MIT"
] | 1 | 2021-07-07T07:17:27.000Z | 2021-07-07T07:17:27.000Z | from .tp_ftp import FtpTestPoint
def run(tp_conf_dict, vertical_context):
return FtpTestPoint(tp_conf_dict, vertical_context)
| 22 | 55 | 0.818182 | 19 | 132 | 5.315789 | 0.631579 | 0.118812 | 0.19802 | 0.356436 | 0.49505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 132 | 5 | 56 | 26.4 | 0.87069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 7 |
e49492a921900000b506ff621ffebc7c216aef8e | 10,487 | py | Python | create-files/FastCreateBatchFiles.py | Oscarshu0719/tools | 9ae9c7da3db76e2086e9abc8ed00b34a6534dc98 | [
"MIT"
] | null | null | null | create-files/FastCreateBatchFiles.py | Oscarshu0719/tools | 9ae9c7da3db76e2086e9abc8ed00b34a6534dc98 | [
"MIT"
] | null | null | null | create-files/FastCreateBatchFiles.py | Oscarshu0719/tools | 9ae9c7da3db76e2086e9abc8ed00b34a6534dc98 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Author: Zi Jun, Xu.
import os
import sys
def CreateBatchFiles(argv):
not_create_file = []
create_file = []
arg_list = argv[1:]
print('------------------------------------------------------------')
if len(arg_list) == 4:
print('Format (1)')
if arg_list[3][0] != '.':
print('------------------------------'
'------------------------------')
print('Error: The filename extension'
'must be started with a dot (.).')
print('------------------------------'
'------------------------------')
sys.exit(1)
elif not (arg_list[1].isdigit() or arg_list[2].isdigit()):
print('------------------------------'
'------------------------------')
print('Error: <StartNo> or <EndNo> is NOT a number.')
print('------------------------------'
'------------------------------')
sys.exit(1)
elif int(arg_list[1]) > int(arg_list[2]):
print('------------------------------'
'------------------------------')
print('Error: <StartNo> is larger than <EndNo>.')
print('------------------------------'
'------------------------------')
sys.exit(1)
print('------------------------------------------------------------')
print('Prefix: {}.'.format(arg_list[0]))
print('StartNo: {}.'.format(arg_list[1]))
print('EndNo: {}.'.format(arg_list[2]))
print('FilenameExt: {}.'.format(arg_list[3]))
print('--------------------------------------------------\n')
for i in range(int(arg_list[1]), int(arg_list[2]) + 1):
filename = arg_list[0] + str(i) + arg_list[3]
if os.path.isfile(filename):
print('Warning: The file {} exists.'.format(filename))
not_create_file.append(filename)
continue
else:
# Create the file.
with open(filename, 'w') as file:
create_file.append(filename)
file.close()
elif len(arg_list) == 3:
if arg_list[2][0] == '.':
print('Format (2)')
if not (arg_list[0].isdigit() or arg_list[1].isdigit()):
print('------------------------------'
'------------------------------')
print('Error: <StartNo> or <EndNo> is NOT a number.')
print('------------------------------'
'------------------------------')
sys.exit(1)
elif int(arg_list[0]) > int(arg_list[1]):
print('------------------------------'
'------------------------------')
print('Error: <StartNo> is larger than <EndNo>.')
print('------------------------------'
'------------------------------')
sys.exit(1)
print('------------------------------'
'------------------------------')
print('StartNo: {}.'.format(arg_list[0]))
print('EndNo: {}.'.format(arg_list[1]))
print('FilenameExt: {}.'.format(arg_list[2]))
print('--------------------------------------------------\n')
for i in range(int(arg_list[0]), int(arg_list[1]) + 1):
filename = str(i) + arg_list[2]
if os.path.isfile(filename):
print('Warning: The file {} exists.'.format(filename))
not_create_file.append(filename)
continue
else:
# Create the file.
with open(filename, 'w') as file:
create_file.append(filename)
file.close()
else:
print('Format (3)')
if not (arg_list[1].isdigit() or arg_list[2].isdigit()):
print('------------------------------'
'------------------------------')
print('Error: <StartNo> or <EndNo> is NOT a number.')
print('------------------------------'
'------------------------------')
sys.exit(1)
elif int(arg_list[1]) > int(arg_list[2]):
print('------------------------------'
'------------------------------')
print('Error: <StartNo> is larger than <EndNo>.')
print('------------------------------'
'------------------------------')
sys.exit(1)
print('------------------------------'
'------------------------------')
print('Prefix: {}.'.format(arg_list[0]))
print('StartNo: {}.'.format(arg_list[1]))
print('EndNo: {}.'.format(arg_list[2]))
print('--------------------------------------------------\n')
for i in range(int(arg_list[1]), int(arg_list[2]) + 1):
filename = arg_list[0] + str(i)
if os.path.isfile(filename):
print('Warning: The file {} exists.'.format(filename))
not_create_file.append(filename)
continue
else:
# Create the file.
with open(filename, 'w') as file:
create_file.append(filename)
file.close()
else:
print('Format (4)')
if not (arg_list[0].isdigit() or arg_list[1].isdigit()):
print('------------------------------'
'------------------------------')
print('Error: <StartNo> or <EndNo> is NOT a number.')
print('------------------------------'
'------------------------------')
sys.exit(1)
elif int(arg_list[0]) > int(arg_list[1]):
print('------------------------------'
'------------------------------')
print('Error: <StartNo> is larger than <EndNo>.')
print('------------------------------'
'------------------------------')
sys.exit(1)
print('------------------------------------------------------------')
print('StartNo: {}.'.format(arg_list[0]))
print('EndNo: {}.'.format(arg_list[1]))
print('------------------------------------------------------------\n')
for i in range(int(arg_list[0]), int(arg_list[1]) + 1):
filename = str(i)
if os.path.isfile(filename):
print('Warning: The file {} exists.'.format(filename))
not_create_file.append(filename)
continue
else:
# Create the file.
with open(filename, 'w') as file:
create_file.append(filename)
file.close()
return create_file, not_create_file
if __name__ == '__main__':
print('------------------------------------------------------------')
print('Format can be: ')
print('------------------------------------------------------------')
print('1. <Prefix> <StartNo> <EndNo> <FilenameExt>')
print('2. <StartNo> <EndNo> <FilenameExt>')
print('3. <Prefix> <StartNo> <EndNo>')
print('4. <StartNo> <EndNo>')
print('------------------------------------------------------------\n')
if len(sys.argv) > 5 or len(sys.argv) < 3:
print('------------------------------'
'------------------------------')
print('Error: The number of parameters is {}, and it\' wrong.'.format(
len(sys.argv)))
print('------------------------------'
'------------------------------')
sys.exit(1)
else:
created, not_created = CreateBatchFiles(sys.argv)
print('\n--------------------------------------------------')
if len(created) == 0:
if len(not_created) > 1:
print('The files below were NOT created: ')
else:
print('The file below was NOT created: ')
print('------------------------------'
'------------------------------')
for n in not_created:
print(n)
print('------------------------------'
'------------------------------')
print('* None of the files was created.')
elif len(not_created) == 0:
if len(created) > 1:
print('The files below were created: ')
else:
print('The file below was created: ')
print('------------------------------'
'------------------------------')
for c in created:
print(c)
print('------------------------------'
'------------------------------')
print('* All the files were created.')
else:
if len(created) > 1:
print('The files below were created: ')
else:
print('The file below was created: ')
print('------------------------------'
'------------------------------')
for c in created:
print(c)
print('------------------------------'
'------------------------------')
if len(created) > 1:
print('The files below were NOT created: ')
else:
print('The file below was NOT created: ')
print('------------------------------'
'------------------------------')
for n in not_created:
print(n)
print('------------------------------'
'------------------------------')
if len(created) > 1:
print('* {} files were created,'.format(len(created)),
end='\0')
else:
print('* Only 1 file was created,', end='\0')
if len(not_created) > 1:
print('and {} files were NOT created.'.
format(len(not_created)))
else:
print('and only 1 file was NOT created.')
print('------------------------------------------------------------')
| 42.979508 | 79 | 0.316296 | 806 | 10,487 | 4.01861 | 0.10794 | 0.097252 | 0.039518 | 0.040136 | 0.746527 | 0.730472 | 0.724915 | 0.715344 | 0.715344 | 0.713801 | 0 | 0.012116 | 0.338896 | 10,487 | 243 | 80 | 43.156379 | 0.45507 | 0.010489 | 0 | 0.789954 | 0 | 0 | 0.367213 | 0.240309 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004566 | false | 0 | 0.009132 | 0 | 0.018265 | 0.43379 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 8 |
e4c55cd1458c3910802e08772086c1b5c88b906b | 13,046 | py | Python | tests/unit/agent/agent_test.py | AndreMaz/transformer-pointer-critic | 97cfa1e667514a5651d855d6ffd498ac49339c00 | [
"MIT"
] | 5 | 2021-12-11T20:51:16.000Z | 2021-12-16T06:10:03.000Z | tests/unit/agent/agent_test.py | AndreMaz/transformer-pointer-critic | 97cfa1e667514a5651d855d6ffd498ac49339c00 | [
"MIT"
] | 1 | 2021-12-12T21:25:38.000Z | 2021-12-12T21:25:38.000Z | tests/unit/agent/agent_test.py | AndreMaz/transformer-pointer-critic | 97cfa1e667514a5651d855d6ffd498ac49339c00 | [
"MIT"
] | null | null | null | import sys
sys.path.append('.')
import unittest
import numpy as np
# Custom Imports
from environment.custom.resource_v3.env import ResourceEnvironmentV3
from agents.agent import Agent
import tensorflow as tf
# Disable tf.function decorator to avoid rebuilding the graph
tf.config.run_functions_eagerly(True)
class TestResourceGreedyReward(unittest.TestCase):
def setUp(self) -> None:
ENV_CONFIG = {
"description": "Environment configs.",
"generate_decoder_input": True,
"mask_nodes_in_mha": False,
"generate_request_on_the_fly": True,
"batch_size": 2,
"seed_value": 1234,
"normalization_factor": 100,
"decimal_precision": 2,
"num_features": 3,
"num_profiles": 20,
"profiles_sample_size": 2,
"node_sample_size": 3,
"EOS_CODE": -2,
"req_min_val": 1,
"req_max_val": 30,
"node_min_val": 80,
"node_max_val": 100,
"reward": {
"type": "greedy",
"greedy": {},
"fair": {},
"gini": {}
}
}
AGENT_CONFIG = {
"single_actor": True,
"gamma": 0.99,
"values_loss_coefficient": 1.0,
"entropy_coefficient": 0.1,
"stochastic_action_selection": True,
"use_mha_mask": True,
"actor": {
"use_default_initializer": False,
"num_layers": 1,
"dim_model": 128,
"num_heads": 8,
"inner_layer_dim": 128,
"SOS_CODE": -1,
"encoder_embedding_time_distributed": True,
"attention_dense_units": 128,
"dropout_rate": 0.0,
"logit_clipping_C": 10.0,
"learning_rate": 0.0001,
"clipnorm": None
},
"critic": {
"use_default_initializer": False,
"num_layers": 3,
"dim_model": 128,
"num_heads": 8,
"inner_layer_dim": 128,
"encoder_embedding_time_distributed": True,
"last_layer_units": 128,
"last_layer_activation": "linear",
"dropout_rate": 0.0,
"learning_rate": 0.0001,
"clipnorm": None
}
}
self.env = ResourceEnvironmentV3('ResourceV3', ENV_CONFIG)
config = self.env.add_stats_to_agent_config(AGENT_CONFIG)
self.agent = Agent('transformer', config)
def tearDown(self) -> None:
self.env = None
self.agent = None
def test_act(self) -> None:
current_state,\
decoder_input,\
bin_net_mask,\
mha_used_mask = self.env.reset()
self.assertEqual(
current_state.shape, (2, 6, 3)
)
self.assertEqual(
decoder_input.shape, (2, 1, 3)
)
bin_ids, \
bins_mask, \
bins_probs = self.agent.act(
current_state,
decoder_input,
bin_net_mask,
mha_used_mask,
self.env.build_feasible_mask
)
self.assertEqual(
len(bin_ids), 2
)
self.assertTrue(
np.all(bin_ids <= 3)
)
self.assertEqual(
bins_mask.shape, (2, 6)
)
self.assertEqual(bins_probs.shape, (2, 6))
def test_loss_compute(self):
# Probabilities from which the actions will sampled
probs = []
# Initial vars for the initial episode
isDone = False
current_state,\
dec_input,\
bin_net_mask,\
mha_used_mask = self.env.reset()
training_step = 0
while not isDone:
# Select an action
bin_id, bin_net_mask, bin_probs = self.agent.act(
current_state,
dec_input,
bin_net_mask,
mha_used_mask,
self.env.build_feasible_mask
)
probs.append(bin_probs)
next_state, next_dec_input, reward, isDone, info = self.env.step(
bin_id,
bin_net_mask
)
# Store in memory
self.agent.store(
current_state.copy(),
dec_input.copy(), # Resource fed to actor decoder
bin_net_mask.copy(),
mha_used_mask.copy(),
bin_id.numpy().copy(),
reward.numpy().copy(),
training_step
)
# Update for next iteration
current_state = next_state
dec_input = next_dec_input.copy()
bin_net_mask = info['bin_net_mask']
mha_used_mask = info['mha_used_mask']
training_step += 1
bootstrap_state_value = np.zeros(
[self.agent.batch_size, 1],dtype="float32")
discounted_rewards = self.agent.compute_discounted_rewards(
bootstrap_state_value
)
value_loss, state_values, advantages = self.agent.compute_value_loss(
discounted_rewards
)
bin_loss,\
decoded_bins,\
bin_entropy,\
bin_policy_loss,\
pointers_probs = self.agent.compute_actor_loss(
self.agent.bin_actor,
self.agent.bin_masks,
self.agent.bins,
self.agent.actor_decoder_input,
advantages
)
self.assertEqual(
pointers_probs.shape,
(4, 6)
)
# Probabilities should be the same during act() and while computing the loss
np.testing.assert_almost_equal(
pointers_probs, np.concatenate(probs, axis=0), decimal = 5
)
self.assertEqual(len(self.agent.states), 2)
self.assertEqual(len(self.agent.actor_decoder_input), 2)
self.assertEqual(len(self.agent.bin_masks), 2)
self.assertEqual(len(self.agent.mha_masks), 2)
self.assertEqual(len(self.agent.bins), 2)
self.agent.clear_memory()
self.assertEqual(len(self.agent.states), 0)
self.assertEqual(len(self.agent.actor_decoder_input), 0)
self.assertEqual(len(self.agent.bin_masks), 0)
self.assertEqual(len(self.agent.mha_masks), 0)
self.assertEqual(len(self.agent.bins), 0)
class TestResourceReduceNodeReward(unittest.TestCase):
def setUp(self) -> None:
ENV_CONFIG = {
"description": "Environment configs.",
"generate_decoder_input": True,
"mask_nodes_in_mha": False,
"generate_request_on_the_fly": True,
"batch_size": 2,
"seed_value": 1234,
"normalization_factor": 100,
"decimal_precision": 2,
"num_features": 3,
"num_profiles": 20,
"profiles_sample_size": 2,
"node_sample_size": 3,
"EOS_CODE": -2,
"req_min_val": 1,
"req_max_val": 30,
"node_min_val": 80,
"node_max_val": 100,
"reward": {
"type": "reduced_node_usage",
"greedy": {},
"fair": {},
"gini": {},
"reduced_node_usage": {
"rejection_penalty": -2,
"use_new_node_penalty": -1
}
}
}
AGENT_CONFIG = {
"single_actor": True,
"gamma": 0.99,
"values_loss_coefficient": 1.0,
"entropy_coefficient": 0.1,
"stochastic_action_selection": True,
"use_mha_mask": True,
"actor": {
"use_default_initializer": False,
"num_layers": 1,
"dim_model": 128,
"num_heads": 8,
"inner_layer_dim": 128,
"SOS_CODE": -1,
"encoder_embedding_time_distributed": True,
"attention_dense_units": 128,
"dropout_rate": 0.0,
"logit_clipping_C": 10.0,
"learning_rate": 0.0001,
"clipnorm": None
},
"critic": {
"use_default_initializer": False,
"num_layers": 3,
"dim_model": 128,
"num_heads": 8,
"inner_layer_dim": 128,
"encoder_embedding_time_distributed": True,
"last_layer_units": 128,
"last_layer_activation": "linear",
"dropout_rate": 0.0,
"learning_rate": 0.0001,
"clipnorm": None
}
}
self.env = ResourceEnvironmentV3('ResourceV3', ENV_CONFIG)
config = self.env.add_stats_to_agent_config(AGENT_CONFIG)
self.agent = Agent('transformer', config)
def tearDown(self) -> None:
self.env = None
self.agent = None
def test_act(self) -> None:
current_state,\
decoder_input,\
bin_net_mask,\
mha_used_mask = self.env.reset()
self.assertEqual(
current_state.shape, (2, 6, 4)
)
self.assertEqual(
decoder_input.shape, (2, 1, 3)
)
bin_ids, \
bins_mask, \
bins_probs = self.agent.act(
current_state,
decoder_input,
bin_net_mask,
mha_used_mask,
self.env.build_feasible_mask
)
self.assertEqual(
len(bin_ids), 2
)
self.assertTrue(
np.all(bin_ids <= 3)
)
self.assertEqual(
bins_mask.shape, (2, 6)
)
self.assertEqual(bins_probs.shape, (2, 6))
def test_loss_compute(self):
# Probabilities from which the actions will sampled
probs = []
# Initial vars for the initial episode
isDone = False
current_state,\
dec_input,\
bin_net_mask,\
mha_used_mask = self.env.reset()
training_step = 0
while not isDone:
# Select an action
bin_id, bin_net_mask, bin_probs = self.agent.act(
current_state,
dec_input,
bin_net_mask,
mha_used_mask,
self.env.build_feasible_mask
)
probs.append(bin_probs)
next_state, next_dec_input, reward, isDone, info = self.env.step(
bin_id,
bin_net_mask
)
# Store in memory
self.agent.store(
current_state.copy(),
dec_input.copy(), # Resource fed to actor decoder
bin_net_mask.copy(),
mha_used_mask.copy(),
bin_id.numpy().copy(),
reward.numpy().copy(),
training_step
)
# Update for next iteration
current_state = next_state
dec_input = next_dec_input.copy()
bin_net_mask = info['bin_net_mask']
mha_used_mask = info['mha_used_mask']
training_step += 1
bootstrap_state_value = np.zeros(
[self.agent.batch_size, 1],dtype="float32")
discounted_rewards = self.agent.compute_discounted_rewards(
bootstrap_state_value
)
value_loss, state_values, advantages = self.agent.compute_value_loss(
discounted_rewards
)
bin_loss,\
decoded_bins,\
bin_entropy,\
bin_policy_loss,\
pointers_probs = self.agent.compute_actor_loss(
self.agent.bin_actor,
self.agent.bin_masks,
self.agent.bins,
self.agent.actor_decoder_input,
advantages
)
self.assertEqual(
pointers_probs.shape,
(4, 6)
)
# Probabilities should be the same during act() and while computing the loss
np.testing.assert_almost_equal(
pointers_probs, np.concatenate(probs, axis=0), decimal = 5
)
self.assertEqual(len(self.agent.states), 2)
self.assertEqual(len(self.agent.actor_decoder_input), 2)
self.assertEqual(len(self.agent.bin_masks), 2)
self.assertEqual(len(self.agent.mha_masks), 2)
self.assertEqual(len(self.agent.bins), 2)
self.agent.clear_memory()
self.assertEqual(len(self.agent.states), 0)
self.assertEqual(len(self.agent.actor_decoder_input), 0)
self.assertEqual(len(self.agent.bin_masks), 0)
self.assertEqual(len(self.agent.mha_masks), 0)
self.assertEqual(len(self.agent.bins), 0) | 28.238095 | 84 | 0.513951 | 1,340 | 13,046 | 4.713433 | 0.158955 | 0.068398 | 0.062698 | 0.069664 | 0.933819 | 0.933819 | 0.933819 | 0.933819 | 0.933819 | 0.933819 | 0 | 0.026336 | 0.388778 | 13,046 | 462 | 85 | 28.238095 | 0.765739 | 0.044151 | 0 | 0.835227 | 0 | 0 | 0.136181 | 0.040951 | 0 | 0 | 0 | 0 | 0.102273 | 1 | 0.022727 | false | 0 | 0.017045 | 0 | 0.045455 | 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 |
e4e7062f56261f8ed8b855a1bf575f66af64dd22 | 29,688 | py | Python | swagger_client/api/templates_api.py | klaviyo/klaviyo-python | 8f95cdaf1469711ab99ecfbfb64ce743451c490d | [
"MIT"
] | 10 | 2021-12-21T02:08:00.000Z | 2022-02-24T05:37:20.000Z | swagger_client/api/templates_api.py | klaviyo/klaviyo-python | 8f95cdaf1469711ab99ecfbfb64ce743451c490d | [
"MIT"
] | 3 | 2022-02-02T09:07:40.000Z | 2022-03-04T15:31:11.000Z | swagger_client/api/templates_api.py | klaviyo/klaviyo-python | 8f95cdaf1469711ab99ecfbfb64ce743451c490d | [
"MIT"
] | 2 | 2021-12-21T02:07:53.000Z | 2022-02-22T08:05:41.000Z | # coding: utf-8
"""
Klaviyo API
Empowering creators to own their destiny # noqa: E501
OpenAPI spec version: 2022.03.29
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from swagger_client.api_client import ApiClient
class TemplatesApi(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
self.warned = []
def clone_template(self, template_id, **kwargs): # noqa: E501
"""Clone Template # noqa: E501
Creates a copy of a given template with a new name. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.clone_template(template_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str template_id: (required)
:param str name:
:return: Template
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.clone_template_with_http_info(template_id, **kwargs) # noqa: E501
else:
(data) = self.clone_template_with_http_info(template_id, **kwargs) # noqa: E501
return data
def clone_template_with_http_info(self, template_id, **kwargs): # noqa: E501
"""Clone Template # noqa: E501
Creates a copy of a given template with a new name. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.clone_template_with_http_info(template_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str template_id: (required)
:param str name:
:return: Template
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['template_id', 'name'] # 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 clone_template" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'template_id' is set
if ('template_id' not in params or
params['template_id'] is None):
raise ValueError("Missing the required parameter `template_id` when calling `clone_template`") # noqa: E501
collection_formats = {}
path_params = {}
if 'template_id' in params:
path_params['template_id'] = params['template_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
if 'name' in params:
form_params.append(('name', params['name'])) # noqa: E501
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/x-www-form-urlencoded']) # noqa: E501
# Authentication setting
auth_settings = ['ApiKeyAuth'] # noqa: E501
return self.api_client.call_api(
'/v1/email-template/{template_id}/clone', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Template', # 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 create_template(self, **kwargs): # noqa: E501
"""Create New Template # noqa: E501
Creates a new email template. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_template(async_req=True)
>>> result = thread.get()
:param async_req bool
:param str name:
:param str html:
:return: Template
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_template_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.create_template_with_http_info(**kwargs) # noqa: E501
return data
def create_template_with_http_info(self, **kwargs): # noqa: E501
"""Create New Template # noqa: E501
Creates a new email template. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_template_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:param str name:
:param str html:
:return: Template
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['name', 'html'] # 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 create_template" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
if 'name' in params:
form_params.append(('name', params['name'])) # noqa: E501
if 'html' in params:
form_params.append(('html', params['html'])) # noqa: E501
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/x-www-form-urlencoded']) # noqa: E501
# Authentication setting
auth_settings = ['ApiKeyAuth'] # noqa: E501
return self.api_client.call_api(
'/v1/email-templates', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Template', # 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 delete_template(self, template_id, **kwargs): # noqa: E501
"""Delete Template # noqa: E501
Deletes a given template. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_template(template_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str template_id: (required)
:return: InlineResponse20013
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.delete_template_with_http_info(template_id, **kwargs) # noqa: E501
else:
(data) = self.delete_template_with_http_info(template_id, **kwargs) # noqa: E501
return data
def delete_template_with_http_info(self, template_id, **kwargs): # noqa: E501
"""Delete Template # noqa: E501
Deletes a given template. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_template_with_http_info(template_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str template_id: (required)
:return: InlineResponse20013
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['template_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_template" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'template_id' is set
if ('template_id' not in params or
params['template_id'] is None):
raise ValueError("Missing the required parameter `template_id` when calling `delete_template`") # noqa: E501
collection_formats = {}
path_params = {}
if 'template_id' in params:
path_params['template_id'] = params['template_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['ApiKeyAuth'] # noqa: E501
return self.api_client.call_api(
'/v1/email-template/{template_id}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='InlineResponse20013', # 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 get_templates(self, **kwargs): # noqa: E501
"""Get All Templates # noqa: E501
Returns a list of all the email templates you've created. The templates are returned in sorted order by `name`. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_templates(async_req=True)
>>> result = thread.get()
:param async_req bool
:param int page: For pagination, which page of results to return. Default = 0
:param int count: For pagination, the number of results to return. Max = 100
:return: InlineResponse20012
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_templates_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_templates_with_http_info(**kwargs) # noqa: E501
return data
def get_templates_with_http_info(self, **kwargs): # noqa: E501
"""Get All Templates # noqa: E501
Returns a list of all the email templates you've created. The templates are returned in sorted order by `name`. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_templates_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:param int page: For pagination, which page of results to return. Default = 0
:param int count: For pagination, the number of results to return. Max = 100
:return: InlineResponse20012
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['page', 'count'] # 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 get_templates" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
if 'page' in params:
query_params.append(('page', params['page'])) # noqa: E501
if 'count' in params:
query_params.append(('count', params['count'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['ApiKeyAuth'] # noqa: E501
return self.api_client.call_api(
'/v1/email-templates', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='InlineResponse20012', # 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 render_template(self, template_id, **kwargs): # noqa: E501
"""Render Template # noqa: E501
Renders the specified template with the provided data and return HTML and text versions of the email. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.render_template(template_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str template_id: (required)
:param str context:
:return: RenderedTemplate
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.render_template_with_http_info(template_id, **kwargs) # noqa: E501
else:
(data) = self.render_template_with_http_info(template_id, **kwargs) # noqa: E501
return data
def render_template_with_http_info(self, template_id, **kwargs): # noqa: E501
"""Render Template # noqa: E501
Renders the specified template with the provided data and return HTML and text versions of the email. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.render_template_with_http_info(template_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str template_id: (required)
:param str context:
:return: RenderedTemplate
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['template_id', 'context'] # 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 render_template" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'template_id' is set
if ('template_id' not in params or
params['template_id'] is None):
raise ValueError("Missing the required parameter `template_id` when calling `render_template`") # noqa: E501
collection_formats = {}
path_params = {}
if 'template_id' in params:
path_params['template_id'] = params['template_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
if 'context' in params:
form_params.append(('context', params['context'])) # noqa: E501
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/x-www-form-urlencoded']) # noqa: E501
# Authentication setting
auth_settings = ['ApiKeyAuth'] # noqa: E501
return self.api_client.call_api(
'/v1/email-template/{template_id}/render', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='RenderedTemplate', # 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 send_template(self, template_id, **kwargs): # noqa: E501
"""Render and Send Template # noqa: E501
Renders the specified template with the provided data and send the contents in an email via the service specified. This API is intended to test templates only, and is rate limited to the following thresholds: 100/hour, 1,000/day. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.send_template(template_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str template_id: (required)
:param str from_email:
:param str from_name:
:param str subject:
:param str to:
:param str context:
:return: RenderedTemplate
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.send_template_with_http_info(template_id, **kwargs) # noqa: E501
else:
(data) = self.send_template_with_http_info(template_id, **kwargs) # noqa: E501
return data
def send_template_with_http_info(self, template_id, **kwargs): # noqa: E501
"""Render and Send Template # noqa: E501
Renders the specified template with the provided data and send the contents in an email via the service specified. This API is intended to test templates only, and is rate limited to the following thresholds: 100/hour, 1,000/day. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.send_template_with_http_info(template_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str template_id: (required)
:param str from_email:
:param str from_name:
:param str subject:
:param str to:
:param str context:
:return: RenderedTemplate
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['template_id', 'from_email', 'from_name', 'subject', 'to', 'context'] # 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 send_template" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'template_id' is set
if ('template_id' not in params or
params['template_id'] is None):
raise ValueError("Missing the required parameter `template_id` when calling `send_template`") # noqa: E501
collection_formats = {}
path_params = {}
if 'template_id' in params:
path_params['template_id'] = params['template_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
if 'from_email' in params:
form_params.append(('from_email', params['from_email'])) # noqa: E501
if 'from_name' in params:
form_params.append(('from_name', params['from_name'])) # noqa: E501
if 'subject' in params:
form_params.append(('subject', params['subject'])) # noqa: E501
if 'to' in params:
form_params.append(('to', params['to'])) # noqa: E501
if 'context' in params:
form_params.append(('context', params['context'])) # noqa: E501
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/x-www-form-urlencoded']) # noqa: E501
# Authentication setting
auth_settings = ['ApiKeyAuth'] # noqa: E501
return self.api_client.call_api(
'/v1/email-template/{template_id}/send', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='RenderedTemplate', # 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 update_template(self, template_id, **kwargs): # noqa: E501
"""Update Template # noqa: E501
Updates the name and/or HTML content of a template. Only updates imported HTML templates; does not currently update drag & drop templates. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_template(template_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str template_id: (required)
:param str name:
:param str html:
:return: Template
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.update_template_with_http_info(template_id, **kwargs) # noqa: E501
else:
(data) = self.update_template_with_http_info(template_id, **kwargs) # noqa: E501
return data
def update_template_with_http_info(self, template_id, **kwargs): # noqa: E501
"""Update Template # noqa: E501
Updates the name and/or HTML content of a template. Only updates imported HTML templates; does not currently update drag & drop templates. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_template_with_http_info(template_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str template_id: (required)
:param str name:
:param str html:
:return: Template
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['template_id', 'name', 'html'] # 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 update_template" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'template_id' is set
if ('template_id' not in params or
params['template_id'] is None):
raise ValueError("Missing the required parameter `template_id` when calling `update_template`") # noqa: E501
collection_formats = {}
path_params = {}
if 'template_id' in params:
path_params['template_id'] = params['template_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
if 'name' in params:
form_params.append(('name', params['name'])) # noqa: E501
if 'html' in params:
form_params.append(('html', params['html'])) # noqa: E501
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/x-www-form-urlencoded']) # noqa: E501
# Authentication setting
auth_settings = ['ApiKeyAuth'] # noqa: E501
return self.api_client.call_api(
'/v1/email-template/{template_id}', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Template', # 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)
| 38.555844 | 251 | 0.607249 | 3,431 | 29,688 | 5.02186 | 0.063247 | 0.054788 | 0.022751 | 0.029251 | 0.950493 | 0.94173 | 0.938247 | 0.93105 | 0.929658 | 0.917702 | 0 | 0.020559 | 0.300391 | 29,688 | 769 | 252 | 38.605982 | 0.809003 | 0.33751 | 0 | 0.7875 | 1 | 0 | 0.189065 | 0.044685 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0375 | false | 0 | 0.01 | 0 | 0.1025 | 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 |
90156b1d6b6b78f6f86abcd715a618f0cd3f57ae | 10,786 | py | Python | src/main/tests/api_tests.py | kirillismad/django_blog | 9c5d1549ca415e02c8705e4797b55b1272c44428 | [
"MIT"
] | null | null | null | src/main/tests/api_tests.py | kirillismad/django_blog | 9c5d1549ca415e02c8705e4797b55b1272c44428 | [
"MIT"
] | 12 | 2020-01-09T09:22:30.000Z | 2022-03-11T23:43:55.000Z | src/main/tests/api_tests.py | kirillismad/django_blog | 9c5d1549ca415e02c8705e4797b55b1272c44428 | [
"MIT"
] | null | null | null | from pprint import pprint
from blog.tests_utils import BaseTestCase, patch_storage, ProfileAPITestCase
MULTIPART = 'multipart'
class TestSignUpView(BaseTestCase):
VIEW = 'api:sign_up'
@patch_storage
def test_post(self):
password = self.main_factory.get_password()
data = {
'email': self.main_factory.get_email(),
'password': password,
'confirm_password': password,
'first_name': self.main_factory.get_name(),
'last_name': self.main_factory.get_name(),
'birthday': self.primitive_factory.get_date()
}
r = self.client.post(self.url, data)
self.assert201(r)
class TestSignInView(BaseTestCase):
VIEW = 'api:sign_in'
def test_post(self):
password = self.main_factory.get_password()
profile = self.main_factory.get_profile(user=self.main_factory.get_user(password=password))
data = {
'email': profile.user.email,
'password': password,
}
r = self.client.post(self.url, data=data)
self.assert200(r)
class TestPostView(ProfileAPITestCase):
VIEW = 'api:posts'
LEN = 2
def arrange(self):
result = list()
for _a in range(self.LEN):
author = self.main_factory.get_profile()
for _p in range(self.LEN):
post = self.main_factory.get_post(author=author, tags_count=self.LEN)
result.append(post)
for _c in range(self.LEN):
self.main_factory.get_comment(post=post)
return result
def test_get(self):
self.arrange()
r = self.client.get(self.url)
self.assert200(r)
def test_get_as_anon(self):
self.arrange()
self.client.logout()
r = self.client.get(self.url)
self.assert200(r)
def test_get_query_param_title(self):
self.main_factory.get_post(title='abc')
self.main_factory.get_post(title='zxc')
r = self.client.get(self.url, data={'title': 'x'})
self.assert200(r)
@patch_storage
def test_post(self):
data = {
'tags': [self.main_factory.get_tag().pk for _ in range(self.LEN)],
'title': self.primitive_factory.get_title(),
'image': self.primitive_factory.get_image(),
'text': self.primitive_factory.get_text(5),
}
r = self.client.post(self.url, data, format=MULTIPART)
self.assert201(r)
class TestPostDetailViewAsAuthor(ProfileAPITestCase):
VIEW = 'api:posts_detail'
LEN = 2
def setUp(self):
super().setUp()
self.post = self.main_factory.get_post(author=self.profile, tags_count=self.LEN)
def get_reverse_kwargs(self):
return {'id': self.post.pk}
def test_get(self):
r = self.client.get(self.url)
self.assert200(r)
@patch_storage
def test_put(self):
data = {
'tags': [self.main_factory.get_tag().pk for _ in range(self.LEN)],
'title': self.primitive_factory.get_title(),
'image': self.primitive_factory.get_image(),
'text': self.primitive_factory.get_text(10),
}
r = self.client.put(self.url, data, format=MULTIPART)
self.assert200(r)
def test_patch(self):
data = {
'title': self.primitive_factory.get_title(),
'text': self.primitive_factory.get_text(5),
}
r = self.client.patch(self.url, data)
self.assert200(r)
self.post.refresh_from_db(fields=['title', 'text'])
self.assertEqual(self.post.title, data['title'])
self.assertEqual(self.post.text, data['text'])
class TestPostDetailViewAsProfile(ProfileAPITestCase):
VIEW = 'api:posts_detail'
LEN = 2
def setUp(self):
super().setUp()
self.post = self.main_factory.get_post(tags_count=self.LEN)
def get_reverse_kwargs(self):
return {'id': self.post.pk}
def test_get(self):
r = self.client.get(self.url)
self.assert200(r)
def test_put(self):
r = self.client.put(self.url, {})
self.assert403(r)
def test_patch(self):
r = self.client.put(self.url, {})
self.assert403(r)
class TestCommentView(ProfileAPITestCase):
VIEW = 'api:comments'
LEN = 2
def get_reverse_kwargs(self):
return {'id': self.post.pk}
def setUp(self):
super().setUp()
self.post = self.main_factory.get_post()
def test_get(self):
for _ in range(self.LEN):
self.main_factory.get_comment(post=self.post)
r = self.client.get(self.url)
self.assert200(r)
def test_post(self):
data = {
'message': self.primitive_factory.get_text(3)
}
r = self.client.post(self.url, data)
self.assert201(r)
class TestCommentDetailViewAsPostAuthor(ProfileAPITestCase):
VIEW = 'api:comments_detail'
def get_reverse_kwargs(self):
return {'id': self.post.pk, 'comment_id': self.comment.pk}
def setUp(self):
super().setUp()
self.post = self.main_factory.get_post(author=self.profile)
self.comment = self.main_factory.get_comment(post=self.post)
def test_get(self):
r = self.client.get(self.url)
self.assert200(r)
def test_put(self):
r = self.client.put(self.url, {})
self.assert403(r)
def test_patch(self):
r = self.client.put(self.url, {})
self.assert403(r)
def test_delete(self):
r = self.client.delete(self.url)
self.assert204(r)
class TestCommentDetailViewAsCommentAuthor(ProfileAPITestCase):
VIEW = 'api:comments_detail'
def get_reverse_kwargs(self):
return {'id': self.post.pk, 'comment_id': self.comment.pk}
def setUp(self):
super().setUp()
self.post = self.main_factory.get_post()
self.comment = self.main_factory.get_comment(post=self.post, author=self.profile)
def test_get(self):
r = self.client.get(self.url)
self.assert200(r)
def test_put(self):
data = {
'message': self.primitive_factory.get_text(4)
}
r = self.client.put(self.url, data)
self.assert200(r)
def test_patch(self):
data = {
'message': self.primitive_factory.get_text(4)
}
r = self.client.patch(self.url, data)
self.assert200(r)
def test_delete(self):
r = self.client.delete(self.url)
self.assert204(r)
class TestCommentDetailViewAsProfile(ProfileAPITestCase):
VIEW = 'api:comments_detail'
def get_reverse_kwargs(self):
return {'id': self.post.pk, 'comment_id': self.comment.pk}
def setUp(self):
super().setUp()
self.post = self.main_factory.get_post()
self.comment = self.main_factory.get_comment(post=self.post)
def test_get(self):
r = self.client.get(self.url)
self.assert200(r)
def test_put(self):
r = self.client.put(self.url, {})
self.assert403(r)
def test_patch(self):
r = self.client.patch(self.url, {})
self.assert403(r)
def test_delete(self):
r = self.client.delete(self.url)
self.assert403(r)
class TestTagView(ProfileAPITestCase):
VIEW = 'api:tags'
LEN = 2
def test_get(self):
for _ in range(self.LEN):
self.main_factory.get_post(tags_count=self.LEN)
r = self.client.get(self.url)
self.assert200(r)
class TestTagPostsView(ProfileAPITestCase):
VIEW = 'api:tags_detail_posts'
LEN = 2
def get_reverse_kwargs(self):
return {'id': self.tag.pk}
def setUp(self):
super().setUp()
self.tag = self.main_factory.get_tag()
def test_get(self):
for _ in range(self.LEN):
post = self.main_factory.get_post()
post.tags.add(self.tag)
r = self.client.get(self.url)
self.assert200(r)
class TestProfileView(ProfileAPITestCase):
VIEW = 'api:profiles'
LEN = 2
def test_get(self):
for _ in range(self.LEN):
self.main_factory.get_profile()
r = self.client.get(self.url)
self.assert200(r)
class TestProfileDetailView(ProfileAPITestCase):
VIEW = 'api:profiles_detail'
def get_reverse_kwargs(self):
return {'id': self.target_profile.pk}
def setUp(self):
super().setUp()
self.target_profile = self.main_factory.get_profile()
def test_get(self):
r = self.client.get(self.url)
self.assert200(r)
@patch_storage
def test_put(self):
data = {
'first_name': self.primitive_factory.get_title(),
'last_name': self.primitive_factory.get_title(),
'avatar': self.primitive_factory.get_image(),
'wallpaper': self.primitive_factory.get_image(),
}
r = self.client.put(self.url, data, format=MULTIPART)
self.assert403(r)
@patch_storage
def test_patch(self):
data = {
'first_name': self.primitive_factory.get_title(),
'avatar': self.primitive_factory.get_image(),
}
r = self.client.patch(self.url, data, format=MULTIPART)
self.assert403(r)
class TestTestProfileDetailViewAsSelf(ProfileAPITestCase):
VIEW = 'api:profiles_detail'
def get_reverse_kwargs(self):
return {'id': self.profile.pk}
def test_get(self):
r = self.client.get(self.url)
self.assert200(r)
@patch_storage
def test_put(self):
data = {
'first_name': self.primitive_factory.get_title(),
'last_name': self.primitive_factory.get_title(),
'avatar': self.primitive_factory.get_image(),
'wallpaper': self.primitive_factory.get_image(),
}
r = self.client.put(self.url, data, format=MULTIPART)
self.assert200(r)
@patch_storage
def test_patch(self):
data = {
'first_name': self.primitive_factory.get_title(),
'avatar': self.primitive_factory.get_image(),
}
r = self.client.patch(self.url, data, format=MULTIPART)
self.assert200(r)
class TestProfilePostView(ProfileAPITestCase):
VIEW = 'api:profiles_detail_posts'
LEN = 2
def get_reverse_kwargs(self):
return {'id': self.target_profile.pk}
def setUp(self):
super().setUp()
self.target_profile = self.main_factory.get_profile()
def test_get(self):
for _ in range(self.LEN):
self.main_factory.get_post(author=self.target_profile, tags_count=self.LEN)
r = self.client.get(self.url)
self.assert200(r)
| 26.436275 | 99 | 0.608659 | 1,339 | 10,786 | 4.733383 | 0.083645 | 0.086778 | 0.06248 | 0.08804 | 0.801988 | 0.786684 | 0.746923 | 0.727832 | 0.706374 | 0.703692 | 0 | 0.015528 | 0.265622 | 10,786 | 407 | 100 | 26.501229 | 0.784623 | 0 | 0 | 0.718644 | 0 | 0 | 0.051919 | 0.004265 | 0 | 0 | 0 | 0 | 0.128814 | 1 | 0.189831 | false | 0.020339 | 0.00678 | 0.033898 | 0.362712 | 0.00339 | 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 |
5f4473b7d41e3c34b96c38ee49ebb9da0da67d24 | 5,459 | py | Python | guillotina_rediscache/tests/test_cache.py | jordic/guillotina_rediscache | 69287c21eeb49e5361c2ecb3785868979ecc721e | [
"BSD-2-Clause"
] | null | null | null | guillotina_rediscache/tests/test_cache.py | jordic/guillotina_rediscache | 69287c21eeb49e5361c2ecb3785868979ecc721e | [
"BSD-2-Clause"
] | null | null | null | guillotina_rediscache/tests/test_cache.py | jordic/guillotina_rediscache | 69287c21eeb49e5361c2ecb3785868979ecc721e | [
"BSD-2-Clause"
] | 1 | 2018-03-30T20:26:53.000Z | 2018-03-30T20:26:53.000Z | from guillotina import app_settings
from guillotina.component import getUtility
from guillotina.tests import mocks
from guillotina.tests.utils import create_content
from guillotina_rediscache import cache
from guillotina_rediscache import serialize
from guillotina_rediscache.cache_strategy import RedisCache
from guillotina_rediscache.interfaces import CACHE_PREFIX
from guillotina_rediscache.interfaces import IRedisChannelUtility
import asyncio
async def test_cache_set(redis_container, dummy_guillotina, loop):
await cache.close_redis_pool()
trns = mocks.MockTransaction(mocks.MockTransactionManager())
trns.added = trns.deleted = {}
rcache = RedisCache(trns, loop=loop)
await rcache.clear()
await rcache.set('bar', oid='foo')
# make sure it is in redis
assert serialize.loads(
await rcache._redis.get(CACHE_PREFIX + 'foo')) == "bar"
# but also in memory
assert rcache._memory_cache.get('foo') == 'bar'
# and api matches..
assert await rcache.get(oid='foo') == 'bar'
await cache.close_redis_pool()
async def test_cache_delete(redis_container, dummy_guillotina, loop):
await cache.close_redis_pool()
trns = mocks.MockTransaction(mocks.MockTransactionManager())
trns.added = trns.deleted = {}
rcache = RedisCache(trns, loop=loop)
await rcache.clear()
await rcache.set('bar', oid='foo')
# make sure it is in redis
assert serialize.loads(
await rcache._redis.get(CACHE_PREFIX + 'foo')) == "bar"
assert rcache._memory_cache.get('foo') == 'bar'
assert await rcache.get(oid='foo') == 'bar'
# now delete
await rcache.delete('foo')
assert await rcache.get(oid='foo') is None
await cache.close_redis_pool()
async def test_cache_clear(redis_container, dummy_guillotina, loop):
await cache.close_redis_pool()
trns = mocks.MockTransaction(mocks.MockTransactionManager())
trns.added = trns.deleted = {}
rcache = RedisCache(trns, loop=loop)
await rcache.clear()
await rcache.set('bar', oid='foo')
# make sure it is in redis
assert serialize.loads(
await rcache._redis.get(CACHE_PREFIX + 'foo')) == "bar"
assert rcache._memory_cache.get('foo') == 'bar'
assert await rcache.get(oid='foo') == 'bar'
await rcache.clear()
assert await rcache.get(oid='foo') is None
await cache.close_redis_pool()
async def test_invalidate_object(redis_container, dummy_guillotina, loop):
await cache.close_redis_pool()
trns = mocks.MockTransaction(mocks.MockTransactionManager())
trns.added = trns.deleted = {}
content = create_content()
trns.modified = {content._p_oid: content}
rcache = RedisCache(trns, loop=loop)
await rcache.clear()
await rcache.set('foobar', oid=content._p_oid)
assert serialize.loads(
await rcache._redis.get(CACHE_PREFIX + content._p_oid)) == "foobar"
assert rcache._memory_cache.get(content._p_oid) == 'foobar'
assert await rcache.get(oid=content._p_oid) == 'foobar'
await rcache.close(invalidate=True)
assert await rcache.get(oid=content._p_oid) is None
await cache.close_redis_pool()
async def test_subscriber_invalidates(redis_container, dummy_guillotina, loop):
await cache.close_redis_pool()
trns = mocks.MockTransaction(mocks.MockTransactionManager())
trns.added = trns.deleted = {}
content = create_content()
trns.modified = {content._p_oid: content}
rcache = RedisCache(trns, loop=loop)
await rcache.clear()
await rcache.set('foobar', oid=content._p_oid)
assert serialize.loads(
await rcache._redis.get(CACHE_PREFIX + content._p_oid)) == "foobar"
assert rcache._memory_cache.get(content._p_oid) == 'foobar'
assert await rcache.get(oid=content._p_oid) == 'foobar'
assert content._p_oid in rcache._memory_cache
await rcache._redis.publish(
app_settings['redis']['updates_channel'], serialize.dumps({
'tid': 32423,
'keys': [content._p_oid]
}))
await asyncio.sleep(1) # should be enough for pub/sub to finish
assert content._p_oid not in rcache._memory_cache
await cache.close_redis_pool()
async def test_subscriber_ignores_trsn_on_invalidate(
redis_container, dummy_guillotina, loop):
await cache.close_redis_pool()
trns = mocks.MockTransaction(mocks.MockTransactionManager())
trns.added = trns.deleted = {}
content = create_content()
trns.modified = {content._p_oid: content}
rcache = RedisCache(trns, loop=loop)
await rcache.clear()
await rcache.set('foobar', oid=content._p_oid)
assert serialize.loads(
await rcache._redis.get(CACHE_PREFIX + content._p_oid)) == "foobar"
assert rcache._memory_cache.get(content._p_oid) == 'foobar'
assert await rcache.get(oid=content._p_oid) == 'foobar'
assert content._p_oid in rcache._memory_cache
utility = getUtility(IRedisChannelUtility)
utility.ignore_tid(5555)
await rcache._redis.publish(
app_settings['redis']['updates_channel'], serialize.dumps({
'tid': 5555,
'keys': [content._p_oid]
}))
await asyncio.sleep(1) # should be enough for pub/sub to finish
# should still be there because we set to ignore this tid
assert content._p_oid in rcache._memory_cache
# tid should also now be removed from ignored list
assert 5555 not in utility._ignored_tids
await cache.close_redis_pool()
| 34.99359 | 79 | 0.709654 | 706 | 5,459 | 5.27762 | 0.140227 | 0.094471 | 0.064949 | 0.064412 | 0.812936 | 0.779925 | 0.779925 | 0.771337 | 0.743425 | 0.716049 | 0 | 0.004254 | 0.181901 | 5,459 | 155 | 80 | 35.219355 | 0.830049 | 0.055871 | 0 | 0.77193 | 0 | 0 | 0.040249 | 0 | 0 | 0 | 0 | 0 | 0.22807 | 1 | 0 | false | 0 | 0.087719 | 0 | 0.087719 | 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 |
5f77b5c29134dcc8212c3a0da8fe3cb75434fd34 | 8,978 | py | Python | tests/externals/mysql/test_data_source_repository.py | hohihohi/flask_ddd_sample | 34bd1af4614577be0a6b410250f2d58d2c6f3b93 | [
"MIT"
] | null | null | null | tests/externals/mysql/test_data_source_repository.py | hohihohi/flask_ddd_sample | 34bd1af4614577be0a6b410250f2d58d2c6f3b93 | [
"MIT"
] | null | null | null | tests/externals/mysql/test_data_source_repository.py | hohihohi/flask_ddd_sample | 34bd1af4614577be0a6b410250f2d58d2c6f3b93 | [
"MIT"
] | null | null | null | from flaskd3.externals.mysql import DataSourceRepository, ObjectRepository
from tests.externals.mysql import *
def test_find_by_id(ormapper, valid_data_source, valid_object, valid_bucket):
with ormapper.create_session() as session:
delete_record_from_database(session)
object_repository = ObjectRepository(session)
data_source_repository = DataSourceRepository(session)
# save data
bucket = object_repository.save_bucket(valid_bucket)
obj = valid_object.copy()
obj.bucket = bucket
obj = object_repository.save(obj)
data_source = valid_data_source.copy()
data_source.object = obj
expect = data_source_repository.save(data_source)
# call method to test
actual = data_source_repository.find_by_id(expect.id)
data_source_assertions(expect, actual)
def test_find_by_name(ormapper, valid_data_source, valid_object, valid_bucket):
with ormapper.create_session() as session:
delete_record_from_database(session)
object_repository = ObjectRepository(session)
data_source_repository = DataSourceRepository(session)
# save data
bucket = object_repository.save_bucket(valid_bucket)
obj = valid_object.copy()
obj.bucket = bucket
obj = object_repository.save(obj)
data_source = valid_data_source.copy()
data_source.object = obj
expect = data_source_repository.save(data_source)
# call method to test
actual = data_source_repository.find_by_name(expect.name)
data_source_assertions(expect, actual)
def test_find_by_user_id(ormapper, valid_data_source, valid_object, valid_bucket):
with ormapper.create_session() as session:
delete_record_from_database(session)
object_repository = ObjectRepository(session)
data_source_repository = DataSourceRepository(session)
# save data
bucket = object_repository.save_bucket(valid_bucket)
obj_1 = valid_object.copy()
obj_1.bucket = bucket
obj_1 = object_repository.save(obj_1)
obj_2 = valid_object.copy()
obj_2.bucket = bucket
obj_2.name = 'test_data_source2'
obj_2 = object_repository.save(obj_2)
ds_1 = valid_data_source.copy()
ds_1.object = obj_1
ds_1 = data_source_repository.save(ds_1)
ds_2 = valid_data_source.copy()
ds_2.object = obj_2
ds_2.name = obj_2.name
ds_2 = data_source_repository.save(ds_2)
expect = [ds_2, ds_1]
# call method to test
actual = data_source_repository.find_by_user_id(valid_object.user_id)
data_source_list_assertions(expect, actual)
def test_save(ormapper, valid_data_source, valid_object, valid_bucket):
with ormapper.create_session() as session:
delete_record_from_database(session)
object_repository = ObjectRepository(session)
data_source_repository = DataSourceRepository(session)
# save data
bucket = object_repository.save_bucket(valid_bucket)
obj = valid_object.copy()
obj.bucket = bucket
obj = object_repository.save(obj)
expect = valid_data_source.copy()
expect.object = obj
# call method to test
actual = data_source_repository.save(expect)
assert actual.id is not None and actual.id >= 0
assert expect.user_id == actual.user_id
assert expect.name == actual.name
object_assertions(expect.object, actual.object)
assert expect.data_type == actual.data_type
assert expect.created_at < actual.created_at
assert expect.updated_at < actual.updated_at
def test_save_with_duplicate_error(ormapper, valid_data_source, valid_object, valid_bucket):
with ormapper.create_session() as session:
delete_record_from_database(session)
object_repository = ObjectRepository(session)
data_source_repository = DataSourceRepository(session)
# save data
bucket = object_repository.save_bucket(valid_bucket)
obj_1 = valid_object.copy()
obj_1.bucket = bucket
obj_1 = object_repository.save(obj_1)
obj_2 = valid_object.copy()
obj_2.bucket = bucket
obj_2.name = 'test_data_source2'
obj_2 = object_repository.save(obj_2)
ds_1 = valid_data_source.copy()
ds_1.object = obj_1
_ = data_source_repository.save(ds_1)
ds_2 = valid_data_source.copy()
ds_2.object = obj_2
# call method to test
expect = 'Invalid parameter duplicate error occurred: DataSource'
actual = data_source_repository.save(ds_2)
assert expect == str(actual)
def test_delete(ormapper, valid_data_source, valid_object, valid_bucket):
with ormapper.create_session() as session:
delete_record_from_database(session)
object_repository = ObjectRepository(session)
data_source_repository = DataSourceRepository(session)
# save data
bucket = object_repository.save_bucket(valid_bucket)
obj = valid_object.copy()
obj.bucket = bucket
obj = object_repository.save(obj)
data_source = valid_data_source.copy()
data_source.object = obj
expect = data_source_repository.save(data_source)
# call method to test
actual = data_source_repository.delete(expect)
data_source_assertions(expect, actual)
def test_delete_with_non_exist_data_source(ormapper, valid_data_source, valid_object, valid_bucket):
with ormapper.create_session() as session:
delete_record_from_database(session)
object_repository = ObjectRepository(session)
data_source_repository = DataSourceRepository(session)
# save data
bucket = object_repository.save_bucket(valid_bucket)
obj = valid_object.copy()
obj.bucket = bucket
obj = object_repository.save(obj)
data_source = valid_data_source.copy()
data_source.object = obj
# call method to test
expect = f'Cannot delete data source because it was not found: {data_source.name}'
actual = data_source_repository.delete(data_source)
assert expect == str(actual)
def test_update(ormapper, valid_data_source, valid_object, valid_bucket):
with ormapper.create_session() as session:
delete_record_from_database(session)
object_repository = ObjectRepository(session)
data_source_repository = DataSourceRepository(session)
# save data
bucket = object_repository.save_bucket(valid_bucket)
obj = valid_object.copy()
obj.bucket = bucket
obj = object_repository.save(obj)
data_source = valid_data_source.copy()
data_source.object = obj
expect = data_source_repository.save(data_source)
expect.name = 'test_data_source2'
# call method to test
actual = data_source_repository.update(expect)
data_source_assertions(expect, actual)
def test_update_with_unique_restriction_error(ormapper, valid_data_source, valid_object, valid_bucket):
with ormapper.create_session() as session:
delete_record_from_database(session)
object_repository = ObjectRepository(session)
data_source_repository = DataSourceRepository(session)
# save data
bucket = object_repository.save_bucket(valid_bucket)
obj_1 = valid_object.copy()
obj_1.bucket = bucket
obj_1 = object_repository.save(obj_1)
obj_2 = valid_object.copy()
obj_2.bucket = bucket
obj_2.name = 'test_data_source2'
obj_2 = object_repository.save(obj_2)
ds_1 = valid_data_source.copy()
ds_1.object = obj_1
_ = data_source_repository.save(ds_1)
ds_2 = valid_data_source.copy()
ds_2.object = obj_2
ds_2.name = obj_2.name
ds_2 = data_source_repository.save(ds_2)
ds_2.name = ds_1.name
# call method to test
expect = 'Invalid parameter duplicate error occurred: DataSource'
actual = data_source_repository.update(ds_2)
assert expect == str(actual)
def test_update_with_non_exist_data_source(ormapper, valid_data_source, valid_object, valid_bucket):
with ormapper.create_session() as session:
delete_record_from_database(session)
object_repository = ObjectRepository(session)
data_source_repository = DataSourceRepository(session)
# save data
bucket = object_repository.save_bucket(valid_bucket)
obj = valid_object.copy()
obj.bucket = bucket
obj = object_repository.save(obj)
data_source = valid_data_source.copy()
data_source.object = obj
# call method to test
expect = f'Cannot update data source because it was not found: {data_source.name}'
actual = data_source_repository.update(data_source)
assert expect == str(actual)
| 41.75814 | 103 | 0.695812 | 1,109 | 8,978 | 5.284941 | 0.064022 | 0.138202 | 0.098959 | 0.039925 | 0.902064 | 0.889609 | 0.880396 | 0.873571 | 0.833305 | 0.817949 | 0 | 0.010016 | 0.23268 | 8,978 | 214 | 104 | 41.953271 | 0.840761 | 0.033304 | 0 | 0.781609 | 0 | 0 | 0.036498 | 0 | 0 | 0 | 0 | 0 | 0.091954 | 1 | 0.057471 | false | 0 | 0.011494 | 0 | 0.068966 | 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 |
5fc0ae10837c23e2cf20df5ca8fa7f260e3fc009 | 31,157 | py | Python | src/objectives_old.py | yizhe-ang/vi-lab | 65a46e41845982def17e553a46be849d948f9f45 | [
"MIT"
] | 1 | 2022-02-19T17:03:18.000Z | 2022-02-19T17:03:18.000Z | src/objectives_old.py | lemonwaffle/vi-lab | 65a46e41845982def17e553a46be849d948f9f45 | [
"MIT"
] | null | null | null | src/objectives_old.py | lemonwaffle/vi-lab | 65a46e41845982def17e553a46be849d948f9f45 | [
"MIT"
] | null | null | null | """Most objectives require:
Reconstruction Term
- Samples from q(z|x)
- log p(x|z)
KL Term
- KL[q(z|x) | p(z)]
- log q(z|x)
- log p(z)
KL Annealing?
Pathwise derivative
Dreg
"""
from typing import List, Union, Optional, Any
import torch
import torch.nn as nn
from src.utils import set_default_tensor_type
from nflows.utils import torchutils
# FIXME Test this function!!
# FIXME Any way to vectorize this?
@set_default_tensor_type(torch.cuda.FloatTensor)
def vaevae_elbo(
model,
inputs: List[torch.Tensor],
likelihood_weights: List[float],
num_samples=1,
kl_multiplier=1.0,
) -> torch.Tensor:
# FIXME Get rid of num_samples?
# FIXME Add kl and likelihood weights?
# Compute kl analytically?
x, y = inputs
x_likelihood, y_likelihood = model.likelihood
# Compute unimodal components
elbo_sum, contexts = unimodal_elbos(
model,
inputs,
likelihood_weights,
num_samples=num_samples,
kl_multiplier=kl_multiplier,
)
# Parameters for q(z|x) and q(z|y)
x_context, y_context = contexts
x_weight, y_weight = likelihood_weights
# Compute bimodal components
xy_context = model.inputs_encoder(inputs)
z, log_q_z_xy = model.approximate_posterior.sample_and_log_prob(
num_samples, context=xy_context
)
z = torchutils.merge_leading_dims(z, num_dims=2)
log_q_z_xy = torchutils.merge_leading_dims(log_q_z_xy, num_dims=2)
# HACK hardcode
log_q_z_x = model.approximate_posterior.log_prob(z, context=x_context)
log_q_z_y = model.approximate_posterior.log_prob(z, context=y_context)
kl_1 = log_q_z_xy - log_q_z_x
kl_2 = log_q_z_xy - log_q_z_y
x = torchutils.repeat_rows(x, num_reps=num_samples)
y = torchutils.repeat_rows(y, num_reps=num_samples)
log_p_x_z = x_likelihood.log_prob(x, context=z)
log_p_x_y = y_likelihood.log_prob(y, context=z)
# FIXME Minus or plus KL??
# FIXME How to weigh these terms?
elbo = (
(x_weight * log_p_x_z)
+ (y_weight * log_p_x_y)
- (kl_multiplier * kl_1)
- (kl_multiplier * kl_2)
)
elbo = torchutils.split_leading_dim(elbo, [-1, num_samples])
elbo = elbo.mean(dim=1) # Average across number of samples
elbo_sum += elbo
return elbo_sum
@set_default_tensor_type(torch.cuda.FloatTensor)
def mvae_elbo(
model,
inputs: List[torch.Tensor],
likelihood_weights: List[float],
num_samples=1,
kl_multiplier=1.0,
) -> torch.Tensor:
"""ELBO(x, y) + ELBO(x) + ELBO(y)"""
# Marginal ELBOs
elbo_sum, _ = unimodal_elbos(
model,
inputs,
likelihood_weights,
num_samples=num_samples,
kl_multiplier=kl_multiplier,
)
# Joint ELBO
elbo_sum += stochastic_elbo(
model,
inputs,
num_samples=num_samples,
kl_multiplier=kl_multiplier,
likelihood_weight=likelihood_weights,
)
return elbo_sum
@set_default_tensor_type(torch.cuda.FloatTensor)
def stochastic_elbo(
model: nn.Module,
inputs: Union[torch.Tensor, List[torch.Tensor]],
num_samples=1,
kl_multiplier=1.0,
likelihood_weight: Union[float, List[float]] = 1.0,
keepdim=False,
) -> torch.Tensor:
"""Calculates an unbiased Monte-Carlo estimate of the evidence lower bound.
Supports multimodal inputs.
Note: the KL term is also estimated via Monte Carlo
Parameters
----------
model : nn.Module
VAE model
inputs : torch.Tensor | List[torch.Tensor]
[B, D], Supports multimodal inputs
num_samples : int, optional
Number of samples to use for the Monte-Carlo estimate, by default 1
kl_multiplier : float, optional
, by default 1.0
likelihood_weight: float | List[float], optional
How much to weigh the reconstruction term, by default 1.0
Supports multimodal inputs
keepdim : bool, optional
, by default False
Returns
-------
torch.Tensor
An ELBO estimate for each input
[B, K] if keepdim
[B] otherwise
"""
# Sample latents and calculate their log prob under the encoder
if model.inputs_encoder is None:
posterior_context = inputs
else:
posterior_context = model.inputs_encoder(inputs)
# Compute log prob of latents under the posterior
latents, log_q_z = model.approximate_posterior.sample_and_log_prob(
num_samples, context=posterior_context
)
latents = torchutils.merge_leading_dims(latents, num_dims=2)
log_q_z = torchutils.merge_leading_dims(log_q_z, num_dims=2)
# Compute log prob of latents under the prior
log_p_z = model.prior.log_prob(latents)
# Compute log prob of inputs under the decoder
# If inputs are multimodal
if isinstance(inputs, List):
if likelihood_weight == 1.0:
likelihood_weight = [1.0] * len(inputs)
# Compute log prob of inputs under each decoder
log_p_x = torch.zeros_like(log_p_z)
for x, l, w in zip(inputs, model.likelihood, likelihood_weight):
x = torchutils.repeat_rows(x, num_reps=num_samples)
log_p_x += w * l.log_prob(x, context=latents)
else:
inputs = torchutils.repeat_rows(inputs, num_reps=num_samples)
log_p_x = likelihood_weight * model.likelihood.log_prob(inputs, context=latents)
# Compute ELBO
elbo = log_p_x + (kl_multiplier * (log_p_z - log_q_z))
elbo = torchutils.split_leading_dim(elbo, [-1, num_samples])
if keepdim:
return elbo
else:
return torch.sum(elbo, dim=1) / num_samples # Average ELBO across samples
def unimodal_elbos(
model: nn.Module,
inputs: List[torch.Tensor],
likelihood_weights=List[float],
num_samples=1,
kl_multiplier=1.0,
) -> torch.Tensor:
batch_size = inputs[0].shape[0]
# Compute the ELBO for each modality
elbo_sum = torch.zeros(batch_size, device=inputs[0].device)
# Cache the posterior context of each modality
contexts = []
for i, (x, likelihood, weight) in enumerate(
zip(inputs, model.likelihood, likelihood_weights)
):
unimodal_inputs = [None] * len(inputs)
unimodal_inputs[i] = x
posterior_context = model.inputs_encoder(unimodal_inputs)
# Compute log prob of latents under the posterior
latents, log_q_z = model.approximate_posterior.sample_and_log_prob(
num_samples, context=posterior_context
)
latents = torchutils.merge_leading_dims(latents, num_dims=2)
log_q_z = torchutils.merge_leading_dims(log_q_z, num_dims=2)
# Compute log prob of latents under the prior
log_p_z = model.prior.log_prob(latents)
# Compute log prob of inputs under the decoder
x = torchutils.repeat_rows(x, num_reps=num_samples)
log_p_x = likelihood.log_prob(x, context=latents)
# Compute ELBO
elbo = (weight * log_p_x) + (kl_multiplier * (log_p_z - log_q_z))
elbo = torchutils.split_leading_dim(elbo, [-1, num_samples])
# Average across number of samples
elbo_sum += elbo.mean(dim=1)
contexts.append(posterior_context)
return elbo_sum, contexts
# PARTITIONED ##################################################################
def partitioned_unimodal_elbos(
model: nn.Module,
inputs: List[torch.Tensor],
likelihood_weights=List[float],
num_samples=1,
kl_multiplier=1.0,
) -> torch.Tensor:
num_samples = int(num_samples)
batch_size = inputs[0].shape[0]
# Compute the ELBO for each modality
elbo_sum = torch.zeros(batch_size, device=inputs[0].device)
# Cache the posterior context of each modality
s_contexts = []
# Cache the sampled modality-specific latents
m_latents = []
for i, (x, likelihood, weight, m_prior, m_posterior) in enumerate(
zip(
inputs,
model.likelihoods,
likelihood_weights,
model.m_priors,
model.m_posteriors,
)
):
unimodal_inputs = [None] * len(inputs)
unimodal_inputs[i] = x
posterior_context = model.inputs_encoder(unimodal_inputs)
m_context = posterior_context["m"][i]
s_context = posterior_context["s"]
# Compute log prob of latents under the posterior
m_latent, log_q_z_m = m_posterior.sample_and_log_prob(
num_samples, context=m_context
)
m_latent = torchutils.merge_leading_dims(m_latent, num_dims=2)
log_q_z_m = torchutils.merge_leading_dims(log_q_z_m, num_dims=2)
s_latent, log_q_z_s = model.s_posterior.sample_and_log_prob(
num_samples, context=s_context
)
s_latent = torchutils.merge_leading_dims(s_latent, num_dims=2)
log_q_z_s = torchutils.merge_leading_dims(log_q_z_s, num_dims=2)
# Compute log prob of latents under the prior
log_p_z_m = m_prior.log_prob(m_latent)
log_p_z_s = model.s_prior.log_prob(s_latent)
# Compute log prob of inputs under the decoder
concat_latent = torch.cat([m_latent, s_latent], dim=-1)
log_p_x = likelihood.log_prob(x, context=concat_latent)
# Compute ELBO
elbo = (weight * log_p_x) + (
kl_multiplier * (log_p_z_m + log_p_z_s - log_q_z_m - log_q_z_s)
)
elbo_sum += elbo
s_contexts.append(s_context)
m_latents.append(m_latent)
return elbo_sum, s_contexts, m_latents
def pmvaevae_elbo(
model: nn.Module,
inputs: List[torch.Tensor],
likelihood_weights=List[float],
num_samples=1,
kl_multiplier=1.0,
) -> torch.Tensor:
"""PMVAE modified objective"""
num_samples = int(num_samples)
x, y = inputs
x_likelihood, y_likelihood = model.likelihoods
# Compute unimodal components
elbo_sum, s_contexts, m_latents = partitioned_unimodal_elbos(
model,
inputs,
likelihood_weights,
num_samples=num_samples,
kl_multiplier=kl_multiplier,
)
# Parameters for q(z_s|x) and q(z_s|y)
x_s_context, y_s_context = s_contexts
x_weight, y_weight = likelihood_weights
# Compute bimodal components
xy_s_context = model.inputs_encoder(inputs)["s"]
s_latent, log_q_z_xy = model.s_posterior.sample_and_log_prob(
num_samples, context=xy_s_context
)
s_latent = torchutils.merge_leading_dims(s_latent, num_dims=2)
log_q_z_xy = torchutils.merge_leading_dims(log_q_z_xy, num_dims=2)
# HACK hardcode
log_q_z_x = model.s_posterior.log_prob(s_latent, context=x_s_context)
log_q_z_y = model.s_posterior.log_prob(s_latent, context=y_s_context)
kl_1 = log_q_z_xy - log_q_z_x
kl_2 = log_q_z_xy - log_q_z_y
log_p_x_z = x_likelihood.log_prob(
x, context=torch.cat([m_latents[0], s_latent], dim=-1)
)
log_p_x_y = y_likelihood.log_prob(
y, context=torch.cat([m_latents[1], s_latent], dim=-1)
)
elbo = (
(x_weight * log_p_x_z)
+ (y_weight * log_p_x_y)
- (kl_multiplier * kl_1)
- (kl_multiplier * kl_2)
)
elbo_sum += elbo
return elbo_sum
def pmvae_elbo(
model: nn.Module,
inputs: List[torch.Tensor],
num_samples=1,
kl_multiplier=1.0,
keepdim=False,
):
"""PMVAE ELBO"""
posterior_context = model.inputs_encoder(inputs)
m_contexts = posterior_context["m"]
s_context = posterior_context["s"]
# Compute log prob of latents under the posterior
m_latents = []
log_q_z_ms = []
for posterior, context in zip(model.m_posteriors, m_contexts):
m_latent, log_q_z_m = posterior.sample_and_log_prob(
num_samples, context=context
)
m_latent = torchutils.merge_leading_dims(m_latent, num_dims=2)
log_q_z_m = torchutils.merge_leading_dims(log_q_z_m, num_dims=2)
m_latents.append(m_latent)
log_q_z_ms.append(log_q_z_m)
s_latent, log_q_z_s = model.s_posterior.sample_and_log_prob(
num_samples, context=s_context
)
s_latent = torchutils.merge_leading_dims(s_latent, num_dims=2)
log_q_z_s = torchutils.merge_leading_dims(log_q_z_s, num_dims=2)
# Compute log prob of latents under the prior
log_p_z_ms = [
prior.log_prob(latent) for prior, latent in zip(model.m_priors, m_latents)
]
log_p_z_s = model.s_prior.log_prob(s_latent)
# Compute log prob of inputs under the decoder
log_p_x = torch.zeros_like(log_p_z_s)
for x, m_latent, likelihood in zip(inputs, m_latents, model.likelihoods):
x = torchutils.repeat_rows(x, num_reps=num_samples)
concat_latent = torch.cat([m_latent, s_latent], dim=-1)
log_p_x += likelihood.log_prob(x, context=concat_latent)
# Compute ELBO
log_p_z = torch.stack(log_p_z_ms).sum(0) + log_p_z_s
log_q_z = torch.stack(log_q_z_ms).sum(0) + log_q_z_s
elbo = log_p_x + (kl_multiplier * (log_p_z - log_q_z))
elbo = torchutils.split_leading_dim(elbo, [-1, num_samples])
if keepdim:
return elbo
else:
return torch.sum(elbo, dim=1) / num_samples # Average ELBO across samples
# HIERARCHICAL PARTITIONED ######################################################
def hier_partitioned_unimodal_elbos(
model: nn.Module,
inputs: List[torch.Tensor],
likelihood_weights=List[float],
num_samples=1,
kl_multiplier=1.0,
) -> torch.Tensor:
num_samples = int(num_samples)
batch_size = inputs[0].shape[0]
# Compute the ELBO for each modality
elbo_sum = torch.zeros(batch_size, device=inputs[0].device)
# Cache the posterior context of each modality
s_contexts = []
# Cache the sampled modality-specific latents
m_latents = []
for i, (x, likelihood, weight, m_prior, m_posterior) in enumerate(
zip(
inputs,
model.likelihoods,
likelihood_weights,
model.m_priors,
model.m_posteriors,
)
):
unimodal_inputs = [None] * len(inputs)
unimodal_inputs[i] = x
posterior_context = model.inputs_encoder(unimodal_inputs)
m_context = posterior_context["m"][i]
s_context = posterior_context["s"]
# Compute log prob of latents under the posterior
m_latent, log_q_z_m = m_posterior.sample_and_log_prob(
num_samples, context=m_context
)
m_latent = torchutils.merge_leading_dims(m_latent, num_dims=2)
log_q_z_m = torchutils.merge_leading_dims(log_q_z_m, num_dims=2)
s_latent, log_q_z_s = model.s_posterior.sample_and_log_prob(
num_samples, context=s_context
)
s_latent = torchutils.merge_leading_dims(s_latent, num_dims=2)
log_q_z_s = torchutils.merge_leading_dims(log_q_z_s, num_dims=2)
# Compute log prob of latents under the prior
# Condition on s_latent
log_p_z_m = m_prior.log_prob(m_latent, context=s_latent)
log_p_z_s = model.s_prior.log_prob(s_latent)
# Compute log prob of inputs under the decoder
concat_latent = torch.cat([m_latent, s_latent], dim=-1)
log_p_x = likelihood.log_prob(x, context=concat_latent)
# Compute ELBO
elbo = (weight * log_p_x) + (
kl_multiplier * (log_p_z_m + log_p_z_s - log_q_z_m - log_q_z_s)
)
elbo_sum += elbo
s_contexts.append(s_context)
m_latents.append(m_latent)
return elbo_sum, s_contexts, m_latents
def hier_pmvaevae_elbo(
model: nn.Module,
inputs: List[torch.Tensor],
likelihood_weights=List[float],
num_samples=1,
kl_multiplier=1.0,
) -> torch.Tensor:
"""PMVAE modified objective"""
num_samples = int(num_samples)
x, y = inputs
x_likelihood, y_likelihood = model.likelihoods
# Compute unimodal components
elbo_sum, s_contexts, m_latents = hier_partitioned_unimodal_elbos(
model,
inputs,
likelihood_weights,
num_samples=num_samples,
kl_multiplier=kl_multiplier,
)
# Parameters for q(z_s|x) and q(z_s|y)
x_s_context, y_s_context = s_contexts
x_weight, y_weight = likelihood_weights
# Compute bimodal components
xy_s_context = model.inputs_encoder(inputs)["s"]
s_latent, log_q_z_xy = model.s_posterior.sample_and_log_prob(
num_samples, context=xy_s_context
)
s_latent = torchutils.merge_leading_dims(s_latent, num_dims=2)
log_q_z_xy = torchutils.merge_leading_dims(log_q_z_xy, num_dims=2)
# HACK hardcode
log_q_z_x = model.s_posterior.log_prob(s_latent, context=x_s_context)
log_q_z_y = model.s_posterior.log_prob(s_latent, context=y_s_context)
kl_1 = log_q_z_xy - log_q_z_x
kl_2 = log_q_z_xy - log_q_z_y
log_p_x_z = x_likelihood.log_prob(
x, context=torch.cat([m_latents[0], s_latent], dim=-1)
)
log_p_x_y = y_likelihood.log_prob(
y, context=torch.cat([m_latents[1], s_latent], dim=-1)
)
elbo = (
(x_weight * log_p_x_z)
+ (y_weight * log_p_x_y)
- (kl_multiplier * kl_1)
- (kl_multiplier * kl_2)
)
elbo_sum += elbo
return elbo_sum
def mvae_elbo(
model: nn.Module,
inputs: List[torch.Tensor],
likelihood_weights=List[float],
kl_multiplier=1.0,
) -> torch.Tensor:
# To collate all elbo terms
elbo_list = []
# Compute unimodal / marginal elbos
for i, x in enumerate(inputs):
# Create input list (containing only one modality)
xs = [None] * len(inputs)
xs[i] = x
elbo, _ = compute_elbo(
model,
xs,
likelihood_weights=likelihood_weights,
kl_multiplier=kl_multiplier,
)
elbo_list.append(elbo)
# Compute multimodal / joint elbo
joint_elbo, _ = compute_elbo(
model,
inputs,
likelihood_weights=likelihood_weights,
kl_multiplier=kl_multiplier,
)
elbo_list.append(joint_elbo)
# Sum up all elbo terms
return torch.stack(elbo_list).sum(0)
def vaevae_elbo(
model: nn.Module,
inputs: List[torch.Tensor],
likelihood_weights=List[float],
kl_multiplier=1.0,
) -> torch.Tensor:
# To collate all elbo terms
elbo_list = []
# To cache unimodal posterior parameters (for computing multimodal terms)
unimodal_q_contexts = []
# Compute unimodal elbos
for i, x in enumerate(inputs):
# Create input list (containing only one modality)
xs = [None] * len(inputs)
xs[i] = x
elbo, q_context = compute_elbo(
model,
xs,
likelihood_weights=likelihood_weights,
kl_multiplier=kl_multiplier,
)
elbo_list.append(elbo)
unimodal_q_contexts.append(q_context)
# Compute multimodal elbo terms
elbo_list.append(
compute_multimodal_elbo(
model,
inputs,
unimodal_q_contexts,
likelihood_weights=likelihood_weights,
kl_multiplier=kl_multiplier,
)
)
# Sum up all elbo terms
return torch.stack(elbo_list).sum(0)
def compute_multimodal_elbo(
model: nn.Module,
inputs: List[Optional[torch.Tensor]],
unimodal_q_contexts: List[Any],
likelihood_weights=None,
kl_multiplier=1.0,
):
# Multimodal reconstruction term
# + multimodal <-> unimodal posterior regularization terms
num_samples = 1
# Compute log prob of latents under the multimodal posterior
log_q_z_multi, latents, _ = model.log_q_z_x(inputs, num_samples=num_samples)
elbo = torch.zeros_like(log_q_z_multi)
# Compute log prob of latents under the unimodal posteriors
for q_context in unimodal_q_contexts:
log_q_z_uni = model.log_q_z_x(latent=latents, context=q_context)
# Compute multimodal <-> unimodal posterior regularization term
kl = log_q_z_multi - log_q_z_uni
elbo -= kl_multiplier * kl
# Compute likelihood term for all modalities
# Weight for each likelihood term
weights = likelihood_weights if likelihood_weights else [1.0] * len(inputs)
log_p_x_z = model.log_p_x_z(inputs, latents, weights, num_samples=num_samples)
elbo += log_p_x_z
return elbo
def compute_elbo(
model: nn.Module,
inputs: List[Optional[torch.Tensor]],
likelihood_weights=None,
num_samples=1,
kl_multiplier=1.0,
keepdim=False,
):
# Compute log prob of latents under the posterior
log_q_z_x, latents, q_context = model.log_q_z_x(inputs, num_samples=num_samples)
# Compute log prob of latents under the prior
log_p_z = model.log_p_z(latents)
# Compute log prob of inputs under the decoder
# Weight for each likelihood term
weights = likelihood_weights if likelihood_weights else [1.0] * len(inputs)
log_p_x_z = model.log_p_x_z(inputs, latents, weights, num_samples=num_samples)
# Compute ELBO
elbo = log_p_x_z + (kl_multiplier * (log_p_z - log_q_z_x))
elbo = torchutils.split_leading_dim(elbo, [-1, num_samples])
if not keepdim:
elbo = elbo.mean(1) # Average ELBO across samples
return elbo, q_context
def stochastic_elbo(
model: nn.Module,
inputs: List[torch.Tensor],
num_samples=1,
keepdim=False,
):
elbo, _ = compute_elbo(model, inputs, num_samples=num_samples, keepdim=keepdim)
return elbo
# HIERARCHICAL PARTITIONED v2 ######################################################
def hier_partitioned_v2_unimodal_elbos(
model: nn.Module,
inputs: List[torch.Tensor],
likelihood_weights=List[float],
num_samples=1,
kl_multiplier=1.0,
) -> torch.Tensor:
num_samples = int(num_samples)
batch_size = inputs[0].shape[0]
# Compute the ELBO for each modality
elbo_sum = torch.zeros(batch_size, device=inputs[0].device)
# Cache the posterior context of each modality
s_contexts = []
# Cache the sampled modality-specific latents
m_latents = []
for i, (x, likelihood, weight, m_prior, m_posterior) in enumerate(
zip(
inputs,
model.likelihoods,
likelihood_weights,
model.m_priors,
model.m_posteriors,
)
):
unimodal_inputs = [None] * len(inputs)
unimodal_inputs[i] = x
posterior_context = model.inputs_encoder(unimodal_inputs)
m_context = posterior_context["m"][i]
s_context = posterior_context["s"]
# Compute log prob of latents under the posterior
m_latent, log_q_z_m = m_posterior.sample_and_log_prob(
num_samples, context=m_context
)
m_latent = torchutils.merge_leading_dims(m_latent, num_dims=2)
log_q_z_m = torchutils.merge_leading_dims(log_q_z_m, num_dims=2)
s_latent, log_q_z_s = model.s_posterior.sample_and_log_prob(
num_samples, context=s_context
)
s_latent = torchutils.merge_leading_dims(s_latent, num_dims=2)
log_q_z_s = torchutils.merge_leading_dims(log_q_z_s, num_dims=2)
# Compute log prob of latents under the prior
# Condition on s_latent
log_p_z_m = m_prior.log_prob(m_latent, context=s_latent)
log_p_z_s = model.s_prior.log_prob(s_latent)
# Compute log prob of inputs under the decoder
# No need to concat
log_p_x = likelihood.log_prob(x, context=m_latent)
# Compute ELBO
elbo = (weight * log_p_x) + (
kl_multiplier * (log_p_z_m + log_p_z_s - log_q_z_m - log_q_z_s)
)
elbo_sum += elbo
s_contexts.append(s_context)
m_latents.append(m_latent)
return elbo_sum, s_contexts, m_latents
def hier_pmvaevae_v2_elbo(
model: nn.Module,
inputs: List[torch.Tensor],
likelihood_weights=List[float],
num_samples=1,
kl_multiplier=1.0,
) -> torch.Tensor:
"""PMVAE modified objective"""
num_samples = int(num_samples)
x, y = inputs
x_likelihood, y_likelihood = model.likelihoods
# Compute unimodal components
elbo_sum, s_contexts, m_latents = hier_partitioned_v2_unimodal_elbos(
model,
inputs,
likelihood_weights,
num_samples=num_samples,
kl_multiplier=kl_multiplier,
)
# Parameters for q(z_s|x) and q(z_s|y)
x_s_context, y_s_context = s_contexts
x_weight, y_weight = likelihood_weights
# Compute bimodal components
xy_s_context = model.inputs_encoder(inputs)["s"]
s_latent, log_q_z_xy = model.s_posterior.sample_and_log_prob(
num_samples, context=xy_s_context
)
s_latent = torchutils.merge_leading_dims(s_latent, num_dims=2)
log_q_z_xy = torchutils.merge_leading_dims(log_q_z_xy, num_dims=2)
# HACK hardcode
log_q_z_x = model.s_posterior.log_prob(s_latent, context=x_s_context)
log_q_z_y = model.s_posterior.log_prob(s_latent, context=y_s_context)
kl_1 = log_q_z_xy - log_q_z_x
kl_2 = log_q_z_xy - log_q_z_y
# FIXME Extra log p(x) terms?
# Same m_latent used to generate unimodal terms
log_p_x_z = x_likelihood.log_prob(x, context=m_latents[0])
log_p_x_y = y_likelihood.log_prob(y, context=m_latents[1])
elbo = (
(x_weight * log_p_x_z)
+ (y_weight * log_p_x_y)
- (kl_multiplier * kl_1)
- (kl_multiplier * kl_2)
)
elbo_sum += elbo
return elbo_sum
def hier_pmvae_v2_elbo(
model: nn.Module,
inputs: List[torch.Tensor],
num_samples=1,
kl_multiplier=1.0,
keepdim=False,
):
posterior_context = model.inputs_encoder(inputs)
m_contexts = posterior_context["m"]
s_context = posterior_context["s"]
# Compute log prob of latents under the posterior
m_latents = []
log_q_z_ms = []
for posterior, context in zip(model.m_posteriors, m_contexts):
m_latent, log_q_z_m = posterior.sample_and_log_prob(
num_samples, context=context
)
m_latent = torchutils.merge_leading_dims(m_latent, num_dims=2)
log_q_z_m = torchutils.merge_leading_dims(log_q_z_m, num_dims=2)
m_latents.append(m_latent)
log_q_z_ms.append(log_q_z_m)
s_latent, log_q_z_s = model.s_posterior.sample_and_log_prob(
num_samples, context=s_context
)
s_latent = torchutils.merge_leading_dims(s_latent, num_dims=2)
log_q_z_s = torchutils.merge_leading_dims(log_q_z_s, num_dims=2)
# Compute log prob of latents under the prior
# Condition on s_latent
log_p_z_ms = [
prior.log_prob(latent, context=s_latent)
for prior, latent in zip(model.m_priors, m_latents)
]
log_p_z_s = model.s_prior.log_prob(s_latent)
# Compute log prob of inputs under the decoder
log_p_x = torch.zeros_like(log_p_z_s)
for x, m_latent, likelihood in zip(inputs, m_latents, model.likelihoods):
x = torchutils.repeat_rows(x, num_reps=num_samples)
# Don't concat
log_p_x += likelihood.log_prob(x, context=m_latent)
# Compute ELBO
log_p_z = torch.stack(log_p_z_ms).sum(0) + log_p_z_s
log_q_z = torch.stack(log_q_z_ms).sum(0) + log_q_z_s
elbo = log_p_x + (kl_multiplier * (log_p_z - log_q_z))
elbo = torchutils.split_leading_dim(elbo, [-1, num_samples])
if keepdim:
return elbo
else:
return torch.sum(elbo, dim=1) / num_samples # Average ELBO across samples
# MISC #########################################################################
@set_default_tensor_type(torch.cuda.FloatTensor)
def log_prob_lower_bound(model, inputs: torch.Tensor, num_samples=100) -> torch.Tensor:
# FIXME change stochastic_elbo to something else?
elbo = stochastic_elbo(model, inputs, num_samples=num_samples, keepdim=True)
log_prob_lower_bound = torch.logsumexp(elbo, dim=1) - torch.log(
torch.Tensor([num_samples])
)
return log_prob_lower_bound
# @set_default_tensor_type(torch.cuda.FloatTensor)
# def path_derivative_elbo(
# model, inputs: torch.Tensor, num_samples=1, kl_multiplier=1, keepdim=False
# ):
# # Sample latents and calculate their log prob under the encoder
# # Get posterior mean and std parameters
# if model.inputs_encoder is None:
# posterior_context = inputs
# else:
# posterior_context = model.inputs_encoder(inputs)
# latents = model.approximate_posterior.sample(num_samples, context=posterior_context)
# latents = torchutils.merge_leading_dims(latents, num_dims=2)
# # Stop gradient on approx posterior parameters
# posterior_context_sg = posterior_context.detach()
# log_q_z = model.approximate_posterior.log_prob(
# latents, context=posterior_context_sg
# )
# # log_q_z = torchutils.merge_leading_dims(log_q_z, num_dims=2)
# # Compute log prob of latents under the prior
# log_p_z = model.prior.log_prob(latents)
# # Compute log prob of inputs under the decoder,
# inputs = torchutils.repeat_rows(inputs, num_reps=num_samples)
# log_p_x = model.likelihood.log_prob(inputs, context=latents)
# # Compute ELBO
# elbo = log_p_x + kl_multiplier * (log_p_z - log_q_z)
# elbo = torchutils.split_leading_dim(elbo, [-1, num_samples])
# if keepdim:
# return elbo
# else:
# return torch.sum(elbo, dim=1) / num_samples # Average ELBO across samples
# @set_default_tensor_type(torch.cuda.FloatTensor)
# def langevin_elbo(
# model,
# inputs: torch.Tensor,
# cached_latents: torch.Tensor,
# num_samples=1,
# kl_multiplier=1,
# keepdim=False,
# ):
# # Sample latents and calculate their log prob under the encoder
# # Get posterior mean and std parameters
# if model.inputs_encoder is None:
# posterior_context = inputs
# else:
# posterior_context = model.inputs_encoder(inputs)
# latents = model.approximate_posterior._sample(
# num_samples, posterior_context, cached_latents
# )
# # latents = torchutils.merge_leading_dims(latents, num_dims=2)
# log_q_z = model.approximate_posterior.log_prob(latents, context=posterior_context)
# # means, log_stds = model.approximate_posterior._compute_params(posterior_context)
# # log_q_z = Normal(means, log_stds.exp()).log_prob(latents).sum(-1)
# with torch.no_grad():
# print(log_q_z.mean())
# # Compute log prob of latents under the prior
# log_p_z = model.prior.log_prob(latents)
# # Compute log prob of inputs under the decoder,
# inputs = torchutils.repeat_rows(inputs, num_reps=num_samples)
# log_p_x = model.likelihood.log_prob(inputs, context=latents)
# # Examine all components
# print(f"log q(z|x): {log_q_z.mean()}")
# print(f"log p(z): {log_p_z.mean()}")
# print(f"log p(x|z): {log_p_x.mean()}")
# # Compute ELBO
# elbo = log_p_x + kl_multiplier * (log_p_z - log_q_z)
# # Filter out bad samples
# # elbo = elbo[log_q_z < -10_000]
# elbo = torchutils.split_leading_dim(elbo, [-1, num_samples])
# if keepdim:
# return elbo, latents
# else:
# return (
# torch.sum(elbo, dim=1) / num_samples,
# latents,
# ) # Average ELBO across samples
| 30.60609 | 90 | 0.665886 | 4,488 | 31,157 | 4.292558 | 0.053476 | 0.013081 | 0.030106 | 0.047236 | 0.844952 | 0.824708 | 0.816351 | 0.805917 | 0.772852 | 0.757591 | 0 | 0.007524 | 0.236416 | 31,157 | 1,017 | 91 | 30.636185 | 0.802236 | 0.251115 | 0 | 0.765306 | 0 | 0 | 0.000571 | 0 | 0 | 0 | 0 | 0.001967 | 0 | 1 | 0.030612 | false | 0 | 0.008503 | 0 | 0.07483 | 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 |
39874c7c15131fb0af0fbb4912da16c422239b4c | 5,282 | py | Python | coh_metrix_get.py | LincLabUCCS/Jack_RNN_Chatbot | 6daf450802d1328942f1ec34a2c3a01eaf3c9581 | [
"MIT"
] | null | null | null | coh_metrix_get.py | LincLabUCCS/Jack_RNN_Chatbot | 6daf450802d1328942f1ec34a2c3a01eaf3c9581 | [
"MIT"
] | null | null | null | coh_metrix_get.py | LincLabUCCS/Jack_RNN_Chatbot | 6daf450802d1328942f1ec34a2c3a01eaf3c9581 | [
"MIT"
] | null | null | null | def get(input_file, output_file):
f = open(input_file, "r")
o = open(output_file, "w")
for line in f:
if line[0] == "6" and line[1] not in ['0','1','2','3','4','5','6','7','8','9']:
list = line.split('\t')
o.write(
list[3] + '\t' + list[4] + '\t' + list[5] + '\t' + list[6] + '\t' + list[7] + '\t' + list[8] + '\t' +
list[9] + '\t' + list[10] + '\t' + list[11] + '\t' + list[12] + '\t' + list[13] + '\t' + list[
14] + '\t' + list[15] + '\t' + list[16] + '\t' + list[17] + '\t' + list[18] + '\n')
if line[0:2] == "13":
list = line.split('\t')
o.write(
list[3] + '\t' + list[4] + '\t' + list[5] + '\t' + list[6] + '\t' + list[7] + '\t' + list[8] + '\t' +
list[9] + '\t' + list[10] + '\t' + list[11] + '\t' + list[12] + '\t' + list[13] + '\t' + list[
14] + '\t' + list[15] + '\t' + list[16] + '\t' + list[17] + '\t' + list[18] + '\n')
if line[0:2] == "15":
list = line.split('\t')
o.write(
list[3] + '\t' + list[4] + '\t' + list[5] + '\t' + list[6] + '\t' + list[7] + '\t' + list[8] + '\t' +
list[9] + '\t' + list[10] + '\t' + list[11] + '\t' + list[12] + '\t' + list[13] + '\t' + list[
14] + '\t' + list[15] + '\t' + list[16] + '\t' + list[17] + '\t' + list[18] + '\n')
if line[0:2] == "19":
list = line.split('\t')
o.write(
list[3] + '\t' + list[4] + '\t' + list[5] + '\t' + list[6] + '\t' + list[7] + '\t' + list[8] + '\t' +
list[9] + '\t' + list[10] + '\t' + list[11] + '\t' + list[12] + '\t' + list[13] + '\t' + list[
14] + '\t' + list[15] + '\t' + list[16] + '\t' + list[17] + '\t' + list[18] + '\n')
if line[0:2] == "44":
list = line.split('\t')
o.write(
list[3] + '\t' + list[4] + '\t' + list[5] + '\t' + list[6] + '\t' + list[7] + '\t' + list[8] + '\t' +
list[9] + '\t' + list[10] + '\t' + list[11] + '\t' + list[12] + '\t' + list[13] + '\t' + list[
14] + '\t' + list[15] + '\t' + list[16] + '\t' + list[17] + '\t' + list[18] + '\n')
if line[0:2] == "47":
list = line.split('\t')
o.write(
list[3] + '\t' + list[4] + '\t' + list[5] + '\t' + list[6] + '\t' + list[7] + '\t' + list[8] + '\t' +
list[9] + '\t' + list[10] + '\t' + list[11] + '\t' + list[12] + '\t' + list[13] + '\t' + list[
14] + '\t' + list[15] + '\t' + list[16] + '\t' + list[17] + '\t' + list[18] + '\n')
if line[0:2] == "50":
list = line.split('\t')
o.write(
list[3] + '\t' + list[4] + '\t' + list[5] + '\t' + list[6] + '\t' + list[7] + '\t' + list[8] + '\t' +
list[9] + '\t' + list[10] + '\t' + list[11] + '\t' + list[12] + '\t' + list[13] + '\t' + list[
14] + '\t' + list[15] + '\t' + list[16] + '\t' + list[17] + '\t' + list[18] + '\n')
if line[0:2] == "68":
list = line.split('\t')
o.write(
list[3] + '\t' + list[4] + '\t' + list[5] + '\t' + list[6] + '\t' + list[7] + '\t' + list[8] + '\t' +
list[9] + '\t' + list[10] + '\t' + list[11] + '\t' + list[12] + '\t' + list[13] + '\t' + list[
14] + '\t' + list[15] + '\t' + list[16] + '\t' + list[17] + '\t' + list[18] + '\n')
if line[0:2] == "73":
list = line.split('\t')
o.write(
list[3] + '\t' + list[4] + '\t' + list[5] + '\t' + list[6] + '\t' + list[7] + '\t' + list[8] + '\t' +
list[9] + '\t' + list[10] + '\t' + list[11] + '\t' + list[12] + '\t' + list[13] + '\t' + list[
14] + '\t' + list[15] + '\t' + list[16] + '\t' + list[17] + '\t' + list[18] + '\n')
if line[0:2] == "92":
list = line.split('\t')
o.write(
list[3] + '\t' + list[4] + '\t' + list[5] + '\t' + list[6] + '\t' + list[7] + '\t' + list[8] + '\t' +
list[9] + '\t' + list[10] + '\t' + list[11] + '\t' + list[12] + '\t' + list[13] + '\t' + list[
14] + '\t' + list[15] + '\t' + list[16] + '\t' + list[17] + '\t' + list[18] + '\n')
if line[0:2] == "96":
list = line.split('\t')
o.write(
list[3] + '\t' + list[4] + '\t' + list[5] + '\t' + list[6] + '\t' + list[7] + '\t' + list[8] + '\t' +
list[9] + '\t' + list[10] + '\t' + list[11] + '\t' + list[12] + '\t' + list[13] + '\t' + list[
14] + '\t' + list[15] + '\t' + list[16] + '\t' + list[17] + '\t' + list[18] + '\n')
if line[0:3] == "104":
list = line.split('\t')
o.write(
list[3] + '\t' + list[4] + '\t' + list[5] + '\t' + list[6] + '\t' + list[7] + '\t' + list[8] + '\t' +
list[9] + '\t' + list[10] + '\t' + list[11] + '\t' + list[12] + '\t' + list[13] + '\t' + list[
14] + '\t' + list[15] + '\t' + list[16] + '\t' + list[17] + '\t' + list[18])
f.close()
o.close()
get('CohMetrixOutput.txt','norm-2chat-sco.txt') | 66.025 | 117 | 0.333018 | 752 | 5,282 | 2.333777 | 0.073138 | 0.512821 | 0.047863 | 0.095727 | 0.903704 | 0.903704 | 0.903704 | 0.903704 | 0.903704 | 0.903704 | 0 | 0.10656 | 0.362173 | 5,282 | 80 | 118 | 66.025 | 0.414366 | 0 | 0 | 0.746835 | 0 | 0 | 0.090668 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012658 | false | 0 | 0 | 0 | 0.012658 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
39a32425ca065e775140dcd2c81073a3167e6ccd | 55,952 | py | Python | src/larksuiteoapi/service/contact/v3/api.py | keeperlibofan/oapi-sdk-python | 5743dd34eb0bfc30693e9b6e6f5cf35ac82edb26 | [
"Apache-2.0"
] | null | null | null | src/larksuiteoapi/service/contact/v3/api.py | keeperlibofan/oapi-sdk-python | 5743dd34eb0bfc30693e9b6e6f5cf35ac82edb26 | [
"Apache-2.0"
] | null | null | null | src/larksuiteoapi/service/contact/v3/api.py | keeperlibofan/oapi-sdk-python | 5743dd34eb0bfc30693e9b6e6f5cf35ac82edb26 | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
# Code generated by lark suite oapi sdk gen
from typing import *
from ....api import Request, Response, set_timeout, set_tenant_key, set_user_access_token, set_path_params, \
set_query_params, set_response_stream, set_is_response_stream, FormData, FormDataFile
from ....config import Config
from ....consts import ACCESS_TOKEN_TYPE_TENANT, ACCESS_TOKEN_TYPE_USER, ACCESS_TOKEN_TYPE_APP
from .model import *
class Service(object):
def __init__(self, conf):
# type: (Config) -> None
self.conf = conf
self.department_units = DepartmentUnitService(self)
self.users = UserService(self)
self.user_groups = UserGroupService(self)
self.user_group_members = UserGroupMemberService(self)
self.departments = DepartmentService(self)
self.scopes = ScopeService(self)
self.custom_attr_events = CustomAttrEventService(self)
self.employee_type_enums = EmployeeTypeEnumService(self)
class DepartmentUnitService(object):
def __init__(self, service):
# type: (Service) -> None
self.service = service
def delete(self, tenant_key=None, timeout=None):
# type: (str, int) -> DepartmentUnitDeleteReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
return DepartmentUnitDeleteReqCall(self, request_opts=request_opts)
def patch(self, body, tenant_key=None, timeout=None):
# type: (DepartmentUnitPatchReqBody, str, int) -> DepartmentUnitPatchReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
return DepartmentUnitPatchReqCall(self, body, request_opts=request_opts)
def create(self, body, tenant_key=None, timeout=None):
# type: (DepartmentUnit, str, int) -> DepartmentUnitCreateReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
return DepartmentUnitCreateReqCall(self, body, request_opts=request_opts)
class UserService(object):
def __init__(self, service):
# type: (Service) -> None
self.service = service
def delete(self, body, tenant_key=None, timeout=None):
# type: (UserDeleteReqBody, str, int) -> UserDeleteReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
return UserDeleteReqCall(self, body, request_opts=request_opts)
def update(self, body, tenant_key=None, timeout=None):
# type: (User, str, int) -> UserUpdateReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
return UserUpdateReqCall(self, body, request_opts=request_opts)
def create(self, body, tenant_key=None, timeout=None):
# type: (User, str, int) -> UserCreateReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
return UserCreateReqCall(self, body, request_opts=request_opts)
def patch(self, body, tenant_key=None, user_access_token=None, timeout=None):
# type: (User, str, str, int) -> UserPatchReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
if user_access_token is not None:
request_opts += [set_user_access_token(user_access_token)]
return UserPatchReqCall(self, body, request_opts=request_opts)
def update_user_id(self, body, tenant_key=None, timeout=None):
# type: (UserUpdateUserIdReqBody, str, int) -> UserUpdateUserIdReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
return UserUpdateUserIdReqCall(self, body, request_opts=request_opts)
def get(self, tenant_key=None, user_access_token=None, timeout=None):
# type: (str, str, int) -> UserGetReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
if user_access_token is not None:
request_opts += [set_user_access_token(user_access_token)]
return UserGetReqCall(self, request_opts=request_opts)
def list(self, tenant_key=None, user_access_token=None, timeout=None):
# type: (str, str, int) -> UserListReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
if user_access_token is not None:
request_opts += [set_user_access_token(user_access_token)]
return UserListReqCall(self, request_opts=request_opts)
class UserGroupService(object):
def __init__(self, service):
# type: (Service) -> None
self.service = service
def update_user_group_id(self, body, tenant_key=None, timeout=None):
# type: (UserGroupUpdateUserGroupIdReqBody, str, int) -> UserGroupUpdateUserGroupIdReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
return UserGroupUpdateUserGroupIdReqCall(self, body, request_opts=request_opts)
def delete(self, tenant_key=None, timeout=None):
# type: (str, int) -> UserGroupDeleteReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
return UserGroupDeleteReqCall(self, request_opts=request_opts)
def patch(self, body, tenant_key=None, timeout=None):
# type: (UserGroup, str, int) -> UserGroupPatchReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
return UserGroupPatchReqCall(self, body, request_opts=request_opts)
def create(self, body, tenant_key=None, timeout=None):
# type: (UserGroup, str, int) -> UserGroupCreateReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
return UserGroupCreateReqCall(self, body, request_opts=request_opts)
def list(self, tenant_key=None, timeout=None):
# type: (str, int) -> UserGroupListReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
return UserGroupListReqCall(self, request_opts=request_opts)
def get(self, tenant_key=None, timeout=None):
# type: (str, int) -> UserGroupGetReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
return UserGroupGetReqCall(self, request_opts=request_opts)
class UserGroupMemberService(object):
def __init__(self, service):
# type: (Service) -> None
self.service = service
def create(self, body, tenant_key=None, timeout=None):
# type: (UserGroupMemberCreateReqBody, str, int) -> UserGroupMemberCreateReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
return UserGroupMemberCreateReqCall(self, body, request_opts=request_opts)
def list(self, tenant_key=None, timeout=None):
# type: (str, int) -> UserGroupMemberListReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
return UserGroupMemberListReqCall(self, request_opts=request_opts)
def delete(self, tenant_key=None, timeout=None):
# type: (str, int) -> UserGroupMemberDeleteReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
return UserGroupMemberDeleteReqCall(self, request_opts=request_opts)
class DepartmentService(object):
def __init__(self, service):
# type: (Service) -> None
self.service = service
def get(self, tenant_key=None, user_access_token=None, timeout=None):
# type: (str, str, int) -> DepartmentGetReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
if user_access_token is not None:
request_opts += [set_user_access_token(user_access_token)]
return DepartmentGetReqCall(self, request_opts=request_opts)
def list(self, tenant_key=None, user_access_token=None, timeout=None):
# type: (str, str, int) -> DepartmentListReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
if user_access_token is not None:
request_opts += [set_user_access_token(user_access_token)]
return DepartmentListReqCall(self, request_opts=request_opts)
def patch(self, body, tenant_key=None, timeout=None):
# type: (Department, str, int) -> DepartmentPatchReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
return DepartmentPatchReqCall(self, body, request_opts=request_opts)
def create(self, body, tenant_key=None, timeout=None):
# type: (Department, str, int) -> DepartmentCreateReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
return DepartmentCreateReqCall(self, body, request_opts=request_opts)
def delete(self, tenant_key=None, timeout=None):
# type: (str, int) -> DepartmentDeleteReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
return DepartmentDeleteReqCall(self, request_opts=request_opts)
def update(self, body, tenant_key=None, timeout=None):
# type: (Department, str, int) -> DepartmentUpdateReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
return DepartmentUpdateReqCall(self, body, request_opts=request_opts)
def parent(self, tenant_key=None, user_access_token=None, timeout=None):
# type: (str, str, int) -> DepartmentParentReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
if user_access_token is not None:
request_opts += [set_user_access_token(user_access_token)]
return DepartmentParentReqCall(self, request_opts=request_opts)
def update_department_id(self, body, tenant_key=None, timeout=None):
# type: (DepartmentUpdateDepartmentIdReqBody, str, int) -> DepartmentUpdateDepartmentIdReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
return DepartmentUpdateDepartmentIdReqCall(self, body, request_opts=request_opts)
def unbind_department_chat(self, body, tenant_key=None, timeout=None):
# type: (DepartmentUnbindDepartmentChatReqBody, str, int) -> DepartmentUnbindDepartmentChatReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
return DepartmentUnbindDepartmentChatReqCall(self, body, request_opts=request_opts)
def search(self, body, user_access_token=None, timeout=None):
# type: (DepartmentSearchReqBody, str, int) -> DepartmentSearchReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if user_access_token is not None:
request_opts += [set_user_access_token(user_access_token)]
return DepartmentSearchReqCall(self, body, request_opts=request_opts)
class ScopeService(object):
def __init__(self, service):
# type: (Service) -> None
self.service = service
class CustomAttrEventService(object):
def __init__(self, service):
# type: (Service) -> None
self.service = service
class EmployeeTypeEnumService(object):
def __init__(self, service):
# type: (Service) -> None
self.service = service
def list(self, tenant_key=None, timeout=None):
# type: (str, int) -> EmployeeTypeEnumListReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
return EmployeeTypeEnumListReqCall(self, request_opts=request_opts)
class DepartmentGetReqCall(object):
def __init__(self, service, request_opts=None):
# type: (DepartmentService, List[Any]) -> None
self.service = service
self.path_params = {} # type: Dict[str, Any]
self.query_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_department_id(self, department_id):
# type: (str) -> DepartmentGetReqCall
self.path_params['department_id'] = department_id
return self
def set_user_id_type(self, user_id_type):
# type: (str) -> DepartmentGetReqCall
self.query_params['user_id_type'] = user_id_type
return self
def set_department_id_type(self, department_id_type):
# type: (str) -> DepartmentGetReqCall
self.query_params['department_id_type'] = department_id_type
return self
def do(self):
# type: () -> Response[DepartmentGetResult]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_path_params(self.path_params)]
self.request_opts += [set_query_params(self.query_params)]
req = Request('contact/v3/departments/:department_id', 'GET', [ACCESS_TOKEN_TYPE_TENANT, ACCESS_TOKEN_TYPE_USER],
None, output_class=DepartmentGetResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class UserDeleteReqCall(object):
def __init__(self, service, body, request_opts=None):
# type: (UserService, UserDeleteReqBody, List[Any]) -> None
self.service = service
self.body = body
self.path_params = {} # type: Dict[str, Any]
self.query_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_user_id(self, user_id):
# type: (str) -> UserDeleteReqCall
self.path_params['user_id'] = user_id
return self
def set_user_id_type(self, user_id_type):
# type: (str) -> UserDeleteReqCall
self.query_params['user_id_type'] = user_id_type
return self
def do(self):
# type: () -> Response[None]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_path_params(self.path_params)]
self.request_opts += [set_query_params(self.query_params)]
req = Request('contact/v3/users/:user_id', 'DELETE', [ACCESS_TOKEN_TYPE_TENANT],
self.body, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class DepartmentListReqCall(object):
def __init__(self, service, request_opts=None):
# type: (DepartmentService, List[Any]) -> None
self.service = service
self.query_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_user_id_type(self, user_id_type):
# type: (str) -> DepartmentListReqCall
self.query_params['user_id_type'] = user_id_type
return self
def set_department_id_type(self, department_id_type):
# type: (str) -> DepartmentListReqCall
self.query_params['department_id_type'] = department_id_type
return self
def set_parent_department_id(self, parent_department_id):
# type: (str) -> DepartmentListReqCall
self.query_params['parent_department_id'] = parent_department_id
return self
def set_fetch_child(self, fetch_child):
# type: (bool) -> DepartmentListReqCall
self.query_params['fetch_child'] = fetch_child
return self
def set_page_token(self, page_token):
# type: (str) -> DepartmentListReqCall
self.query_params['page_token'] = page_token
return self
def set_page_size(self, page_size):
# type: (int) -> DepartmentListReqCall
self.query_params['page_size'] = page_size
return self
def do(self):
# type: () -> Response[DepartmentListResult]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_query_params(self.query_params)]
req = Request('contact/v3/departments', 'GET', [ACCESS_TOKEN_TYPE_TENANT, ACCESS_TOKEN_TYPE_USER],
None, output_class=DepartmentListResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class UserGroupUpdateUserGroupIdReqCall(object):
def __init__(self, service, body, request_opts=None):
# type: (UserGroupService, UserGroupUpdateUserGroupIdReqBody, List[Any]) -> None
self.service = service
self.body = body
self.path_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_user_group_id(self, user_group_id):
# type: (str) -> UserGroupUpdateUserGroupIdReqCall
self.path_params['user_group_id'] = user_group_id
return self
def do(self):
# type: () -> Response[None]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_path_params(self.path_params)]
req = Request('contact/v3/user_groups/:user_group_id/update_user_group_id', 'PATCH', [ACCESS_TOKEN_TYPE_TENANT],
self.body, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class DepartmentUnitDeleteReqCall(object):
def __init__(self, service, request_opts=None):
# type: (DepartmentUnitService, List[Any]) -> None
self.service = service
self.path_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_unit_id(self, unit_id):
# type: (str) -> DepartmentUnitDeleteReqCall
self.path_params['unit_id'] = unit_id
return self
def do(self):
# type: () -> Response[None]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_path_params(self.path_params)]
req = Request('contact/v3/department_units/:unit_id', 'DELETE', [ACCESS_TOKEN_TYPE_TENANT],
None, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class DepartmentPatchReqCall(object):
def __init__(self, service, body, request_opts=None):
# type: (DepartmentService, Department, List[Any]) -> None
self.service = service
self.body = body
self.path_params = {} # type: Dict[str, Any]
self.query_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_department_id(self, department_id):
# type: (str) -> DepartmentPatchReqCall
self.path_params['department_id'] = department_id
return self
def set_user_id_type(self, user_id_type):
# type: (str) -> DepartmentPatchReqCall
self.query_params['user_id_type'] = user_id_type
return self
def set_department_id_type(self, department_id_type):
# type: (str) -> DepartmentPatchReqCall
self.query_params['department_id_type'] = department_id_type
return self
def do(self):
# type: () -> Response[DepartmentPatchResult]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_path_params(self.path_params)]
self.request_opts += [set_query_params(self.query_params)]
req = Request('contact/v3/departments/:department_id', 'PATCH', [ACCESS_TOKEN_TYPE_TENANT],
self.body, output_class=DepartmentPatchResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class UserUpdateReqCall(object):
def __init__(self, service, body, request_opts=None):
# type: (UserService, User, List[Any]) -> None
self.service = service
self.body = body
self.path_params = {} # type: Dict[str, Any]
self.query_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_user_id(self, user_id):
# type: (str) -> UserUpdateReqCall
self.path_params['user_id'] = user_id
return self
def set_user_id_type(self, user_id_type):
# type: (str) -> UserUpdateReqCall
self.query_params['user_id_type'] = user_id_type
return self
def set_department_id_type(self, department_id_type):
# type: (str) -> UserUpdateReqCall
self.query_params['department_id_type'] = department_id_type
return self
def do(self):
# type: () -> Response[UserUpdateResult]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_path_params(self.path_params)]
self.request_opts += [set_query_params(self.query_params)]
req = Request('contact/v3/users/:user_id', 'PUT', [ACCESS_TOKEN_TYPE_TENANT],
self.body, output_class=UserUpdateResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class UserCreateReqCall(object):
def __init__(self, service, body, request_opts=None):
# type: (UserService, User, List[Any]) -> None
self.service = service
self.body = body
self.query_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_user_id_type(self, user_id_type):
# type: (str) -> UserCreateReqCall
self.query_params['user_id_type'] = user_id_type
return self
def set_department_id_type(self, department_id_type):
# type: (str) -> UserCreateReqCall
self.query_params['department_id_type'] = department_id_type
return self
def set_client_token(self, client_token):
# type: (str) -> UserCreateReqCall
self.query_params['client_token'] = client_token
return self
def do(self):
# type: () -> Response[UserCreateResult]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_query_params(self.query_params)]
req = Request('contact/v3/users', 'POST', [ACCESS_TOKEN_TYPE_TENANT],
self.body, output_class=UserCreateResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class UserPatchReqCall(object):
def __init__(self, service, body, request_opts=None):
# type: (UserService, User, List[Any]) -> None
self.service = service
self.body = body
self.path_params = {} # type: Dict[str, Any]
self.query_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_user_id(self, user_id):
# type: (str) -> UserPatchReqCall
self.path_params['user_id'] = user_id
return self
def set_user_id_type(self, user_id_type):
# type: (str) -> UserPatchReqCall
self.query_params['user_id_type'] = user_id_type
return self
def set_department_id_type(self, department_id_type):
# type: (str) -> UserPatchReqCall
self.query_params['department_id_type'] = department_id_type
return self
def do(self):
# type: () -> Response[UserPatchResult]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_path_params(self.path_params)]
self.request_opts += [set_query_params(self.query_params)]
req = Request('contact/v3/users/:user_id', 'PATCH', [ACCESS_TOKEN_TYPE_TENANT, ACCESS_TOKEN_TYPE_USER],
self.body, output_class=UserPatchResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class UserUpdateUserIdReqCall(object):
def __init__(self, service, body, request_opts=None):
# type: (UserService, UserUpdateUserIdReqBody, List[Any]) -> None
self.service = service
self.body = body
self.path_params = {} # type: Dict[str, Any]
self.query_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_user_id(self, user_id):
# type: (str) -> UserUpdateUserIdReqCall
self.path_params['user_id'] = user_id
return self
def set_user_id_type(self, user_id_type):
# type: (str) -> UserUpdateUserIdReqCall
self.query_params['user_id_type'] = user_id_type
return self
def do(self):
# type: () -> Response[None]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_path_params(self.path_params)]
self.request_opts += [set_query_params(self.query_params)]
req = Request('contact/v3/users/:user_id/update_user_id', 'PATCH', [ACCESS_TOKEN_TYPE_TENANT],
self.body, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class UserGroupMemberCreateReqCall(object):
def __init__(self, service, body, request_opts=None):
# type: (UserGroupMemberService, UserGroupMemberCreateReqBody, List[Any]) -> None
self.service = service
self.body = body
self.path_params = {} # type: Dict[str, Any]
self.query_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_user_group_id(self, user_group_id):
# type: (str) -> UserGroupMemberCreateReqCall
self.path_params['user_group_id'] = user_group_id
return self
def set_user_id_type(self, user_id_type):
# type: (str) -> UserGroupMemberCreateReqCall
self.query_params['user_id_type'] = user_id_type
return self
def do(self):
# type: () -> Response[None]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_path_params(self.path_params)]
self.request_opts += [set_query_params(self.query_params)]
req = Request('contact/v3/user_groups/:user_group_id/members', 'POST', [ACCESS_TOKEN_TYPE_TENANT],
self.body, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class UserGroupDeleteReqCall(object):
def __init__(self, service, request_opts=None):
# type: (UserGroupService, List[Any]) -> None
self.service = service
self.path_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_user_group_id(self, user_group_id):
# type: (str) -> UserGroupDeleteReqCall
self.path_params['user_group_id'] = user_group_id
return self
def do(self):
# type: () -> Response[None]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_path_params(self.path_params)]
req = Request('contact/v3/user_groups/:user_group_id', 'DELETE', [ACCESS_TOKEN_TYPE_TENANT],
None, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class DepartmentCreateReqCall(object):
def __init__(self, service, body, request_opts=None):
# type: (DepartmentService, Department, List[Any]) -> None
self.service = service
self.body = body
self.query_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_user_id_type(self, user_id_type):
# type: (str) -> DepartmentCreateReqCall
self.query_params['user_id_type'] = user_id_type
return self
def set_department_id_type(self, department_id_type):
# type: (str) -> DepartmentCreateReqCall
self.query_params['department_id_type'] = department_id_type
return self
def set_client_token(self, client_token):
# type: (str) -> DepartmentCreateReqCall
self.query_params['client_token'] = client_token
return self
def do(self):
# type: () -> Response[DepartmentCreateResult]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_query_params(self.query_params)]
req = Request('contact/v3/departments', 'POST', [ACCESS_TOKEN_TYPE_TENANT],
self.body, output_class=DepartmentCreateResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class UserGroupPatchReqCall(object):
def __init__(self, service, body, request_opts=None):
# type: (UserGroupService, UserGroup, List[Any]) -> None
self.service = service
self.body = body
self.path_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_user_group_id(self, user_group_id):
# type: (str) -> UserGroupPatchReqCall
self.path_params['user_group_id'] = user_group_id
return self
def do(self):
# type: () -> Response[UserGroupPatchResult]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_path_params(self.path_params)]
req = Request('contact/v3/user_groups/:user_group_id', 'PATCH', [ACCESS_TOKEN_TYPE_TENANT],
self.body, output_class=UserGroupPatchResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class DepartmentUnitPatchReqCall(object):
def __init__(self, service, body, request_opts=None):
# type: (DepartmentUnitService, DepartmentUnitPatchReqBody, List[Any]) -> None
self.service = service
self.body = body
self.path_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_unit_id(self, unit_id):
# type: (str) -> DepartmentUnitPatchReqCall
self.path_params['unit_id'] = unit_id
return self
def do(self):
# type: () -> Response[DepartmentUnitPatchResult]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_path_params(self.path_params)]
req = Request('contact/v3/department_units/:unit_id', 'PATCH', [ACCESS_TOKEN_TYPE_TENANT],
self.body, output_class=DepartmentUnitPatchResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class UserGroupCreateReqCall(object):
def __init__(self, service, body, request_opts=None):
# type: (UserGroupService, UserGroup, List[Any]) -> None
self.service = service
self.body = body
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def do(self):
# type: () -> Response[UserGroupCreateResult]
root_service = self.service.service
conf = root_service.conf
req = Request('contact/v3/user_groups', 'POST', [ACCESS_TOKEN_TYPE_TENANT],
self.body, output_class=UserGroupCreateResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class UserGroupListReqCall(object):
def __init__(self, service, request_opts=None):
# type: (UserGroupService, List[Any]) -> None
self.service = service
self.query_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_page_size(self, page_size):
# type: (int) -> UserGroupListReqCall
self.query_params['page_size'] = page_size
return self
def set_page_token(self, page_token):
# type: (str) -> UserGroupListReqCall
self.query_params['page_token'] = page_token
return self
def do(self):
# type: () -> Response[UserGroupListResult]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_query_params(self.query_params)]
req = Request('contact/v3/user_groups', 'GET', [ACCESS_TOKEN_TYPE_TENANT],
None, output_class=UserGroupListResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class DepartmentDeleteReqCall(object):
def __init__(self, service, request_opts=None):
# type: (DepartmentService, List[Any]) -> None
self.service = service
self.path_params = {} # type: Dict[str, Any]
self.query_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_department_id(self, department_id):
# type: (str) -> DepartmentDeleteReqCall
self.path_params['department_id'] = department_id
return self
def set_user_id_type(self, user_id_type):
# type: (str) -> DepartmentDeleteReqCall
self.query_params['user_id_type'] = user_id_type
return self
def set_department_id_type(self, department_id_type):
# type: (str) -> DepartmentDeleteReqCall
self.query_params['department_id_type'] = department_id_type
return self
def do(self):
# type: () -> Response[None]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_path_params(self.path_params)]
self.request_opts += [set_query_params(self.query_params)]
req = Request('contact/v3/departments/:department_id', 'DELETE', [ACCESS_TOKEN_TYPE_TENANT],
None, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class UserGetReqCall(object):
def __init__(self, service, request_opts=None):
# type: (UserService, List[Any]) -> None
self.service = service
self.path_params = {} # type: Dict[str, Any]
self.query_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_user_id(self, user_id):
# type: (str) -> UserGetReqCall
self.path_params['user_id'] = user_id
return self
def set_user_id_type(self, user_id_type):
# type: (str) -> UserGetReqCall
self.query_params['user_id_type'] = user_id_type
return self
def set_department_id_type(self, department_id_type):
# type: (str) -> UserGetReqCall
self.query_params['department_id_type'] = department_id_type
return self
def do(self):
# type: () -> Response[UserGetResult]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_path_params(self.path_params)]
self.request_opts += [set_query_params(self.query_params)]
req = Request('contact/v3/users/:user_id', 'GET', [ACCESS_TOKEN_TYPE_TENANT, ACCESS_TOKEN_TYPE_USER],
None, output_class=UserGetResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class UserGroupMemberListReqCall(object):
def __init__(self, service, request_opts=None):
# type: (UserGroupMemberService, List[Any]) -> None
self.service = service
self.path_params = {} # type: Dict[str, Any]
self.query_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_user_group_id(self, user_group_id):
# type: (str) -> UserGroupMemberListReqCall
self.path_params['user_group_id'] = user_group_id
return self
def set_user_id_type(self, user_id_type):
# type: (str) -> UserGroupMemberListReqCall
self.query_params['user_id_type'] = user_id_type
return self
def set_department_id_type(self, department_id_type):
# type: (str) -> UserGroupMemberListReqCall
self.query_params['department_id_type'] = department_id_type
return self
def set_page_token(self, page_token):
# type: (str) -> UserGroupMemberListReqCall
self.query_params['page_token'] = page_token
return self
def set_page_size(self, page_size):
# type: (int) -> UserGroupMemberListReqCall
self.query_params['page_size'] = page_size
return self
def do(self):
# type: () -> Response[UserGroupMemberListResult]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_path_params(self.path_params)]
self.request_opts += [set_query_params(self.query_params)]
req = Request('contact/v3/user_groups/:user_group_id/members', 'GET', [ACCESS_TOKEN_TYPE_TENANT],
None, output_class=UserGroupMemberListResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class UserGroupMemberDeleteReqCall(object):
def __init__(self, service, request_opts=None):
# type: (UserGroupMemberService, List[Any]) -> None
self.service = service
self.path_params = {} # type: Dict[str, Any]
self.query_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_user_group_id(self, user_group_id):
# type: (str) -> UserGroupMemberDeleteReqCall
self.path_params['user_group_id'] = user_group_id
return self
def set_user_id(self, user_id):
# type: (str) -> UserGroupMemberDeleteReqCall
self.path_params['user_id'] = user_id
return self
def set_user_id_type(self, user_id_type):
# type: (str) -> UserGroupMemberDeleteReqCall
self.query_params['user_id_type'] = user_id_type
return self
def do(self):
# type: () -> Response[None]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_path_params(self.path_params)]
self.request_opts += [set_query_params(self.query_params)]
req = Request('contact/v3/user_groups/:user_group_id/members/:user_id', 'DELETE', [ACCESS_TOKEN_TYPE_TENANT],
None, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class DepartmentUpdateReqCall(object):
def __init__(self, service, body, request_opts=None):
# type: (DepartmentService, Department, List[Any]) -> None
self.service = service
self.body = body
self.path_params = {} # type: Dict[str, Any]
self.query_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_department_id(self, department_id):
# type: (str) -> DepartmentUpdateReqCall
self.path_params['department_id'] = department_id
return self
def set_user_id_type(self, user_id_type):
# type: (str) -> DepartmentUpdateReqCall
self.query_params['user_id_type'] = user_id_type
return self
def set_department_id_type(self, department_id_type):
# type: (str) -> DepartmentUpdateReqCall
self.query_params['department_id_type'] = department_id_type
return self
def do(self):
# type: () -> Response[DepartmentUpdateResult]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_path_params(self.path_params)]
self.request_opts += [set_query_params(self.query_params)]
req = Request('contact/v3/departments/:department_id', 'PUT', [ACCESS_TOKEN_TYPE_TENANT],
self.body, output_class=DepartmentUpdateResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class DepartmentUnitCreateReqCall(object):
def __init__(self, service, body, request_opts=None):
# type: (DepartmentUnitService, DepartmentUnit, List[Any]) -> None
self.service = service
self.body = body
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def do(self):
# type: () -> Response[DepartmentUnitCreateResult]
root_service = self.service.service
conf = root_service.conf
req = Request('contact/v3/department_units', 'POST', [ACCESS_TOKEN_TYPE_TENANT],
self.body, output_class=DepartmentUnitCreateResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class UserListReqCall(object):
def __init__(self, service, request_opts=None):
# type: (UserService, List[Any]) -> None
self.service = service
self.query_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_user_id_type(self, user_id_type):
# type: (str) -> UserListReqCall
self.query_params['user_id_type'] = user_id_type
return self
def set_department_id_type(self, department_id_type):
# type: (str) -> UserListReqCall
self.query_params['department_id_type'] = department_id_type
return self
def set_department_id(self, department_id):
# type: (str) -> UserListReqCall
self.query_params['department_id'] = department_id
return self
def set_page_token(self, page_token):
# type: (str) -> UserListReqCall
self.query_params['page_token'] = page_token
return self
def set_page_size(self, page_size):
# type: (int) -> UserListReqCall
self.query_params['page_size'] = page_size
return self
def do(self):
# type: () -> Response[UserListResult]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_query_params(self.query_params)]
req = Request('contact/v3/users', 'GET', [ACCESS_TOKEN_TYPE_TENANT, ACCESS_TOKEN_TYPE_USER],
None, output_class=UserListResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class UserGroupGetReqCall(object):
def __init__(self, service, request_opts=None):
# type: (UserGroupService, List[Any]) -> None
self.service = service
self.path_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_user_group_id(self, user_group_id):
# type: (str) -> UserGroupGetReqCall
self.path_params['user_group_id'] = user_group_id
return self
def do(self):
# type: () -> Response[UserGroupGetResult]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_path_params(self.path_params)]
req = Request('contact/v3/user_groups/:user_group_id', 'GET', [ACCESS_TOKEN_TYPE_TENANT],
None, output_class=UserGroupGetResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class DepartmentParentReqCall(object):
def __init__(self, service, request_opts=None):
# type: (DepartmentService, List[Any]) -> None
self.service = service
self.query_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_user_id_type(self, user_id_type):
# type: (str) -> DepartmentParentReqCall
self.query_params['user_id_type'] = user_id_type
return self
def set_department_id_type(self, department_id_type):
# type: (str) -> DepartmentParentReqCall
self.query_params['department_id_type'] = department_id_type
return self
def set_department_id(self, department_id):
# type: (str) -> DepartmentParentReqCall
self.query_params['department_id'] = department_id
return self
def set_page_token(self, page_token):
# type: (str) -> DepartmentParentReqCall
self.query_params['page_token'] = page_token
return self
def set_page_size(self, page_size):
# type: (int) -> DepartmentParentReqCall
self.query_params['page_size'] = page_size
return self
def do(self):
# type: () -> Response[DepartmentParentResult]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_query_params(self.query_params)]
req = Request('contact/v3/departments/parent', 'GET', [ACCESS_TOKEN_TYPE_TENANT, ACCESS_TOKEN_TYPE_USER],
None, output_class=DepartmentParentResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class DepartmentUpdateDepartmentIdReqCall(object):
def __init__(self, service, body, request_opts=None):
# type: (DepartmentService, DepartmentUpdateDepartmentIdReqBody, List[Any]) -> None
self.service = service
self.body = body
self.path_params = {} # type: Dict[str, Any]
self.query_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_department_id(self, department_id):
# type: (str) -> DepartmentUpdateDepartmentIdReqCall
self.path_params['department_id'] = department_id
return self
def set_department_id_type(self, department_id_type):
# type: (str) -> DepartmentUpdateDepartmentIdReqCall
self.query_params['department_id_type'] = department_id_type
return self
def do(self):
# type: () -> Response[None]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_path_params(self.path_params)]
self.request_opts += [set_query_params(self.query_params)]
req = Request('contact/v3/departments/:department_id/update_department_id', 'PATCH', [ACCESS_TOKEN_TYPE_TENANT],
self.body, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class DepartmentUnbindDepartmentChatReqCall(object):
def __init__(self, service, body, request_opts=None):
# type: (DepartmentService, DepartmentUnbindDepartmentChatReqBody, List[Any]) -> None
self.service = service
self.body = body
self.query_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_department_id_type(self, department_id_type):
# type: (str) -> DepartmentUnbindDepartmentChatReqCall
self.query_params['department_id_type'] = department_id_type
return self
def do(self):
# type: () -> Response[None]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_query_params(self.query_params)]
req = Request('contact/v3/departments/unbind_department_chat', 'POST', [ACCESS_TOKEN_TYPE_TENANT],
self.body, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class DepartmentSearchReqCall(object):
def __init__(self, service, body, request_opts=None):
# type: (DepartmentService, DepartmentSearchReqBody, List[Any]) -> None
self.service = service
self.body = body
self.query_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_user_id_type(self, user_id_type):
# type: (str) -> DepartmentSearchReqCall
self.query_params['user_id_type'] = user_id_type
return self
def set_department_id_type(self, department_id_type):
# type: (str) -> DepartmentSearchReqCall
self.query_params['department_id_type'] = department_id_type
return self
def set_page_token(self, page_token):
# type: (str) -> DepartmentSearchReqCall
self.query_params['page_token'] = page_token
return self
def set_page_size(self, page_size):
# type: (int) -> DepartmentSearchReqCall
self.query_params['page_size'] = page_size
return self
def do(self):
# type: () -> Response[DepartmentSearchResult]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_query_params(self.query_params)]
req = Request('contact/v3/departments/search', 'POST', [ACCESS_TOKEN_TYPE_USER],
self.body, output_class=DepartmentSearchResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class EmployeeTypeEnumListReqCall(object):
def __init__(self, service, request_opts=None):
# type: (EmployeeTypeEnumService, List[Any]) -> None
self.service = service
self.query_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_page_token(self, page_token):
# type: (str) -> EmployeeTypeEnumListReqCall
self.query_params['page_token'] = page_token
return self
def set_page_size(self, page_size):
# type: (int) -> EmployeeTypeEnumListReqCall
self.query_params['page_size'] = page_size
return self
def do(self):
# type: () -> Response[EmployeeTypeEnumListResult]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_query_params(self.query_params)]
req = Request('contact/v3/employee_type_enums', 'GET', [ACCESS_TOKEN_TYPE_TENANT],
None, output_class=EmployeeTypeEnumListResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
| 34.389674 | 121 | 0.639155 | 6,477 | 55,952 | 5.234831 | 0.025166 | 0.132042 | 0.063706 | 0.031145 | 0.849289 | 0.842063 | 0.830767 | 0.822598 | 0.790568 | 0.776647 | 0 | 0.000746 | 0.257775 | 55,952 | 1,626 | 122 | 34.410824 | 0.815695 | 0.17708 | 0 | 0.85259 | 1 | 0 | 0.045165 | 0.021391 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172311 | false | 0 | 0.00498 | 0 | 0.349602 | 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 |
39bb8da745839bdc1de6f6a33eef18c53e3efd7b | 316 | py | Python | errors.py | DF-thangld/simulated-data-generator | 9ffacb471d534fea4737df1da49cf9f72fb9eb35 | [
"Apache-2.0"
] | 2 | 2020-01-03T16:06:48.000Z | 2020-01-03T16:06:52.000Z | errors.py | DF-thangld/simulated-data-generator | 9ffacb471d534fea4737df1da49cf9f72fb9eb35 | [
"Apache-2.0"
] | null | null | null | errors.py | DF-thangld/simulated-data-generator | 9ffacb471d534fea4737df1da49cf9f72fb9eb35 | [
"Apache-2.0"
] | null | null | null | class ConfigurationError(Exception):
def __init__(self, message=''):
super().__init__(message)
class ExporterError(Exception):
def __init__(self, message=''):
super().__init__(message)
class SchedulingError(Exception):
def __init__(self, message=''):
super().__init__(message) | 24.307692 | 36 | 0.677215 | 30 | 316 | 6.333333 | 0.333333 | 0.189474 | 0.252632 | 0.315789 | 0.731579 | 0.731579 | 0.731579 | 0.731579 | 0.505263 | 0 | 0 | 0 | 0.18038 | 316 | 13 | 37 | 24.307692 | 0.733591 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
39cda224a3d0f363a26ff1d966d109b44970624b | 144 | py | Python | fitment/nuke_fitment/menu.py | phenom-films/dayu_custom_nuke_plugins | 98d7817e2cd63bf4f8eae2b42f6fd1d3b706ef19 | [
"MIT"
] | 7 | 2019-03-10T05:55:22.000Z | 2020-08-20T05:48:32.000Z | fitment/nuke_fitment/menu.py | muyr/dayu_custom_nuke_plugins | 9bd93c0a5368ec07d27be2388f38b29698137e55 | [
"MIT"
] | null | null | null | fitment/nuke_fitment/menu.py | muyr/dayu_custom_nuke_plugins | 9bd93c0a5368ec07d27be2388f38b29698137e55 | [
"MIT"
] | 6 | 2019-01-11T14:20:25.000Z | 2022-03-14T02:50:42.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import add_callbacks
import add_fitment
add_fitment.add_fitment()
add_callbacks.add_callbacks()
| 16 | 29 | 0.756944 | 21 | 144 | 4.904762 | 0.52381 | 0.349515 | 0.378641 | 0.38835 | 0.320388 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007752 | 0.104167 | 144 | 8 | 30 | 18 | 0.790698 | 0.291667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 |
f2e08c4175fa2968086130fdf9c0c4af95db57a6 | 5,608 | py | Python | date_converter_test.py | MikkLaur/cv.ee-scraper | 2659abb47f00c003c696be5a76e7489bf124ce31 | [
"MIT"
] | 1 | 2018-03-11T20:03:38.000Z | 2018-03-11T20:03:38.000Z | date_converter_test.py | MikkLaur/cv.ee-scraper | 2659abb47f00c003c696be5a76e7489bf124ce31 | [
"MIT"
] | null | null | null | date_converter_test.py | MikkLaur/cv.ee-scraper | 2659abb47f00c003c696be5a76e7489bf124ce31 | [
"MIT"
] | null | null | null | import unittest
import date_converter
from datetime import datetime, timedelta
class Test_Date_Converter(unittest.TestCase):
test_date = test_date_format = test_datetime = 0
def setUp(self):
self.test_date = "2021.02.14-14:45"
self.test_date_format = "%Y.%m.%d-%H:%M"
self.test_datetime = datetime.strptime(self.test_date, self.test_date_format)
def test_seconds_numeric(self):
self.assertEqual(date_converter.convert_postdate("Avaldatud umbes 30 sekundit tagasi", current_date = self.test_datetime), "2021.02.14")
def test_seconds_alphabetic(self):
self.assertEqual(date_converter.convert_postdate("Avaldatud umbes üks sekund tagasi", current_date = self.test_datetime), "2021.02.14")
def test_minutes_numeric(self):
self.assertEqual(date_converter.convert_postdate("Avaldatud umbes 30 minutit tagasi", current_date = self.test_datetime), "2021.02.14")
self.assertEqual(date_converter.convert_postdate("Uuendatud umbes 30 minutit tagasi", current_date = self.test_datetime), "2021.02.14")
self.assertEqual(date_converter.convert_postdate("Avaldatud umbes 45 minutit tagasi", current_date = self.test_datetime), "2021.02.14")
self.assertEqual(date_converter.convert_postdate("Uuendatud umbes 45 minutit tagasi", current_date = self.test_datetime), "2021.02.14")
def test_minutes_alphabetic(self):
self.assertEqual(date_converter.convert_postdate("Avaldatud umbes üks minut tagasi", current_date = self.test_datetime), "2021.02.14")
self.assertEqual(date_converter.convert_postdate("Uuendatud umbes üks minut tagasi", current_date = self.test_datetime), "2021.02.14")
def test_hours_numeric(self):
self.assertEqual(date_converter.convert_postdate("Avaldatud umbes 14 tundi tagasi", current_date = self.test_datetime), "2021.02.14")
self.assertEqual(date_converter.convert_postdate("Uuendatud umbes 14 tundi tagasi", current_date = self.test_datetime), "2021.02.14")
self.assertEqual(date_converter.convert_postdate("Avaldatud umbes 20 tundi tagasi", current_date = self.test_datetime), "2021.02.13")
self.assertEqual(date_converter.convert_postdate("Uuendatud umbes 20 tundi tagasi", current_date = self.test_datetime), "2021.02.13")
def test_hours_alphabetic(self):
self.assertEqual(date_converter.convert_postdate("Avaldatud umbes üks tund tagasi", current_date = self.test_datetime), "2021.02.14")
self.assertEqual(date_converter.convert_postdate("Uuendatud umbes üks tund tagasi", current_date = self.test_datetime), "2021.02.14")
def test_days_numeric(self):
self.assertEqual(date_converter.convert_postdate("Avaldatud 2 päeva tagasi", current_date = self.test_datetime), "2021.02.12")
self.assertEqual(date_converter.convert_postdate("Uuendatud 2 päeva tagasi", current_date = self.test_datetime), "2021.02.12")
self.assertEqual(date_converter.convert_postdate("Avaldatud 3 päeva tagasi", current_date = self.test_datetime), "2021.02.11")
self.assertEqual(date_converter.convert_postdate("Uuendatud 3 päeva tagasi", current_date = self.test_datetime), "2021.02.11")
self.assertEqual(date_converter.convert_postdate("Avaldatud 12 päeva tagasi", current_date = self.test_datetime), "2021.02.02")
self.assertEqual(date_converter.convert_postdate("Uuendatud 12 päeva tagasi", current_date = self.test_datetime), "2021.02.02")
self.assertEqual(date_converter.convert_postdate("Avaldatud 14 päeva tagasi", current_date = self.test_datetime), "2021.01.31")
self.assertEqual(date_converter.convert_postdate("Uuendatud 14 päeva tagasi", current_date = self.test_datetime), "2021.01.31")
self.assertEqual(date_converter.convert_postdate("Avaldatud 30 päeva tagasi", current_date = self.test_datetime), "2021.01.15")
self.assertEqual(date_converter.convert_postdate("Uuendatud 30 päeva tagasi", current_date = self.test_datetime), "2021.01.15")
def test_days_alphabetic(self):
self.assertEqual(date_converter.convert_postdate("Avaldatud üks päev tagasi", current_date = self.test_datetime), "2021.02.13")
self.assertEqual(date_converter.convert_postdate("Uuendatud üks päev tagasi", current_date = self.test_datetime), "2021.02.13")
def test_month_numeric(self):
self.assertEqual(date_converter.convert_postdate("Avaldatud 2 kuud tagasi", current_date = self.test_datetime), "2020.12.16") # subtract 60 days
self.assertEqual(date_converter.convert_postdate("Uuendatud 2 kuud tagasi", current_date = self.test_datetime), "2020.12.16")
self.assertEqual(date_converter.convert_postdate("Avaldatud 3 kuud tagasi", current_date = self.test_datetime), "2020.11.16") # subtract 90 days
self.assertEqual(date_converter.convert_postdate("Uuendatud 3 kuud tagasi", current_date = self.test_datetime), "2020.11.16")
self.assertEqual(date_converter.convert_postdate("Avaldatud 5 kuud tagasi", current_date = self.test_datetime), "2020.09.17") # subtract
self.assertEqual(date_converter.convert_postdate("Uuendatud 5 kuud tagasi", current_date = self.test_datetime), "2020.09.17")
def test_month_alphabetic(self):
self.assertEqual(date_converter.convert_postdate("Avaldatud umbes üks kuu tagasi", current_date = self.test_datetime), "2020.12.31") # subtract 45 days
self.assertEqual(date_converter.convert_postdate("Uuendatud umbes üks kuu tagasi", current_date = self.test_datetime), "2020.12.31")
if __name__ == "__main__":
unittest.main() | 77.888889 | 159 | 0.756063 | 749 | 5,608 | 5.423231 | 0.094793 | 0.076809 | 0.137863 | 0.234367 | 0.901773 | 0.901773 | 0.901773 | 0.865091 | 0.804284 | 0.775234 | 0 | 0.068023 | 0.132311 | 5,608 | 72 | 160 | 77.888889 | 0.766749 | 0.010521 | 0 | 0 | 0 | 0 | 0.238233 | 0 | 0 | 0 | 0 | 0 | 0.618182 | 1 | 0.2 | false | 0 | 0.054545 | 0 | 0.327273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
8405e3c4b00846bba87f4735c2fccc51af1c47ad | 89,698 | py | Python | brainscore/benchmarks/majajhong2015_combined.py | arjunsinghrathore/brain-score | 4cacdc38d30fc41580d364059e6ae26fb21020e4 | [
"MIT"
] | null | null | null | brainscore/benchmarks/majajhong2015_combined.py | arjunsinghrathore/brain-score | 4cacdc38d30fc41580d364059e6ae26fb21020e4 | [
"MIT"
] | null | null | null | brainscore/benchmarks/majajhong2015_combined.py | arjunsinghrathore/brain-score | 4cacdc38d30fc41580d364059e6ae26fb21020e4 | [
"MIT"
] | null | null | null | import brainscore
from brainscore.benchmarks._neural_common import NeuralBenchmark, average_repetition
from brainscore.benchmarks._neural_common_extra import NeuralBenchmarkCovariate, ToleranceCeiling, NeuralBenchmarkCeiling, NeuralBenchmarkImageDir, \
NeuralBenchmarkCovariateGram, CacheFeaturesCovariate
from brainscore.metrics.ceiling import InternalConsistency, RDMConsistency, ToleranceConsistency
from brainscore.metrics.rdm import RDMCrossValidated
from brainscore.metrics.regression import CrossRegressedCorrelation, mask_regression, ScaledCrossRegressedCorrelation, \
pls_regression, pearsonr_correlation
from brainscore.metrics.regression_extra import CrossRegressedCorrelationCovariate, semipartial_regression, semipartial_pls, \
ToleranceCrossValidation, CrossRegressedCorrelationDrew, old_gram_control_regression, old_gram_control_pls
from brainscore.utils import LazyLoad
VISUAL_DEGREES = 8
NUMBER_OF_TRIALS = 50
BIBTEX = """@article {Majaj13402,
author = {Majaj, Najib J. and Hong, Ha and Solomon, Ethan A. and DiCarlo, James J.},
title = {Simple Learned Weighted Sums of Inferior Temporal Neuronal Firing Rates Accurately Predict Human Core Object Recognition Performance},
volume = {35},
number = {39},
pages = {13402--13418},
year = {2015},
doi = {10.1523/JNEUROSCI.5181-14.2015},
publisher = {Society for Neuroscience},
abstract = {To go beyond qualitative models of the biological substrate of object recognition, we ask: can a single ventral stream neuronal linking hypothesis quantitatively account for core object recognition performance over a broad range of tasks? We measured human performance in 64 object recognition tests using thousands of challenging images that explore shape similarity and identity preserving object variation. We then used multielectrode arrays to measure neuronal population responses to those same images in visual areas V4 and inferior temporal (IT) cortex of monkeys and simulated V1 population responses. We tested leading candidate linking hypotheses and control hypotheses, each postulating how ventral stream neuronal responses underlie object recognition behavior. Specifically, for each hypothesis, we computed the predicted performance on the 64 tests and compared it with the measured pattern of human performance. All tested hypotheses based on low- and mid-level visually evoked activity (pixels, V1, and V4) were very poor predictors of the human behavioral pattern. However, simple learned weighted sums of distributed average IT firing rates exactly predicted the behavioral pattern. More elaborate linking hypotheses relying on IT trial-by-trial correlational structure, finer IT temporal codes, or ones that strictly respect the known spatial substructures of IT ({\textquotedblleft}face patches{\textquotedblright}) did not improve predictive power. Although these results do not reject those more elaborate hypotheses, they suggest a simple, sufficient quantitative model: each object recognition task is learned from the spatially distributed mean firing rates (100 ms) of \~{}60,000 IT neurons and is executed as a simple weighted sum of those firing rates.SIGNIFICANCE STATEMENT We sought to go beyond qualitative models of visual object recognition and determine whether a single neuronal linking hypothesis can quantitatively account for core object recognition behavior. To achieve this, we designed a database of images for evaluating object recognition performance. We used multielectrode arrays to characterize hundreds of neurons in the visual ventral stream of nonhuman primates and measured the object recognition performance of \>100 human observers. Remarkably, we found that simple learned weighted sums of firing rates of neurons in monkey inferior temporal (IT) cortex accurately predicted human performance. Although previous work led us to expect that IT would outperform V4, we were surprised by the quantitative precision with which simple IT-based linking hypotheses accounted for human behavior.},
issn = {0270-6474},
URL = {https://www.jneurosci.org/content/35/39/13402},
eprint = {https://www.jneurosci.org/content/35/39/13402.full.pdf},
journal = {Journal of Neuroscience}}"""
def load_assembly(average_repetitions,region, name='dicarlo.MajajHong2015'):
assembly = brainscore.get_assembly(name=name)
assembly = assembly.sel(region=region)
assembly['region'] = 'neuroid', [region] * len(assembly['neuroid'])
assembly = assembly.squeeze("time_bin")
assembly.load()
assembly = assembly.transpose('presentation', 'neuroid')
if average_repetitions:
assembly = average_repetition(assembly)
return assembly
def _Ceiling(region, ceiler, assembly_name='dicarlo.MajajHong2015'):
assembly_repetition = LazyLoad(lambda region=region: load_assembly(average_repetitions=False, region=region, name=assembly_name))
assembly = LazyLoad(lambda region=region: load_assembly(average_repetitions=True, region=region, name=assembly_name))
return NeuralBenchmarkCeiling(identifier=f'{assembly_name}.{region}', version='3',
assembly=assembly,
number_of_trials=NUMBER_OF_TRIALS,
ceiling_func=lambda: ceiler(assembly_repetition))
def _DicarloMajajHong2015Region_lmh(region, identifier_metric_suffix, similarity_metric, ceiler, assembly_name='dicarlo.MajajHong2015'):
assembly_repetition = LazyLoad(lambda region=region: load_assembly(average_repetitions=False, region=region, name=assembly_name))
assembly = LazyLoad(lambda region=region: load_assembly(average_repetitions=True, region=region, name=assembly_name))
return NeuralBenchmark(identifier=f'{assembly_name}.{region}-{identifier_metric_suffix}', version=3,
assembly=assembly, similarity_metric=similarity_metric,
visual_degrees=VISUAL_DEGREES, number_of_trials=NUMBER_OF_TRIALS,
ceiling_func=lambda: ceiler(assembly_repetition),
parent=region,
bibtex=BIBTEX)
def _DicarloMajajHong2015Region_lmh_imagedir(image_dir, region, identifier_metric_suffix, similarity_metric, ceiler, assembly_name='dicarlo.MajajHong2015'):
assembly_repetition = LazyLoad(lambda region=region: load_assembly(average_repetitions=False, region=region, name=assembly_name))
assembly = LazyLoad(lambda region=region: load_assembly(average_repetitions=True, region=region, name=assembly_name))
return NeuralBenchmarkImageDir(identifier=f'{assembly_name}.{region}-{identifier_metric_suffix}', version=3,
assembly=assembly, similarity_metric=similarity_metric,
image_dir=image_dir,
visual_degrees=VISUAL_DEGREES, number_of_trials=NUMBER_OF_TRIALS,
ceiling_func=lambda: ceiler(assembly_repetition),
parent=region,
bibtex=BIBTEX)
def _DicarloMajajHong2015Region_lmh_toleranceceiling(region, identifier_metric_suffix, similarity_metric, benchmark_identifier='dicarlo.MajajHong2015'):
assembly_repetition = LazyLoad(lambda region=region: load_assembly(average_repetitions=False, region=region))
return ToleranceCeiling(identifier=benchmark_identifier, version=3,
assembly=assembly_repetition, similarity_metric=similarity_metric,
visual_degrees=VISUAL_DEGREES, number_of_trials=NUMBER_OF_TRIALS,
parent=region,
bibtex=BIBTEX)
# def _DicarloMajajHong2015Region_lmh_masked(region, identifier_metric_suffix, similarity_metric, ceiler, benchmark_identifier='dicarlo.MajajHong2015'):
# assembly_repetition = LazyLoad(lambda region=region: load_assembly(average_repetitions=False, region=region, masked=True))
# assembly = LazyLoad(lambda region=region: load_assembly(average_repetitions=True, region=region, masked=True))
# return NeuralBenchmark(identifier=benchmark_identifier, version=3,
# assembly=assembly, similarity_metric=similarity_metric,
# visual_degrees=VISUAL_DEGREES, number_of_trials=NUMBER_OF_TRIALS,
# ceiling_func=lambda: ceiler(assembly_repetition),
# parent=region,
# bibtex=BIBTEX)
def _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir, region, identifier_metric_suffix, similarity_metric, ceiler, assembly_name='dicarlo.MajajHong2015'):
assembly_repetition = LazyLoad(lambda region=region: load_assembly(average_repetitions=False, region=region, name=assembly_name))
assembly = LazyLoad(lambda region=region: load_assembly(average_repetitions=True, region=region, name=assembly_name))
return NeuralBenchmarkCovariate(identifier=f'{assembly_name}.{region}-{identifier_metric_suffix}', version=3,
assembly=assembly, similarity_metric=similarity_metric,
covariate_image_dir=covariate_image_dir,
visual_degrees=VISUAL_DEGREES, number_of_trials=NUMBER_OF_TRIALS,
ceiling_func=lambda: ceiler(assembly_repetition),
parent=region,
bibtex=BIBTEX)
def _DicarloMajajHong2015Region_lmh_covariate_cache_features(covariate_image_dir, region, identifier_metric_suffix, similarity_metric, ceiler, assembly_name='dicarlo.MajajHong2015'):
assembly_repetition = LazyLoad(lambda region=region: load_assembly(average_repetitions=False, region=region, name=assembly_name))
assembly = LazyLoad(lambda region=region: load_assembly(average_repetitions=True, region=region, name=assembly_name))
return CacheFeaturesCovariate(identifier=f'{assembly_name}.{region}-{identifier_metric_suffix}', version=3,
assembly=assembly, similarity_metric=similarity_metric,
covariate_image_dir=covariate_image_dir,
visual_degrees=VISUAL_DEGREES, number_of_trials=NUMBER_OF_TRIALS,
ceiling_func=lambda: ceiler(assembly_repetition),
parent=region,
bibtex=BIBTEX)
def _DicarloMajajHong2015Region_lmh_covariate_gram(covariate_image_dir, gram, region, identifier_metric_suffix, similarity_metric, ceiler, benchmark_identifier='dicarlo.MajajHong2015'):
assembly_repetition = LazyLoad(lambda region=region: load_assembly(average_repetitions=False, region=region, name=benchmark_identifier))
assembly = LazyLoad(lambda region=region: load_assembly(average_repetitions=True, region=region))
return NeuralBenchmarkCovariateGram(identifier=benchmark_identifier, version=3,
assembly=assembly, similarity_metric=similarity_metric,
covariate_image_dir=covariate_image_dir,
visual_degrees=VISUAL_DEGREES, number_of_trials=NUMBER_OF_TRIALS,
ceiling_func=lambda: ceiler(assembly_repetition),
parent=region,
bibtex=BIBTEX,
gram=gram)
def DicarloMajajHong2015V4PLS_lmh():
return _DicarloMajajHong2015Region_lmh('V4', identifier_metric_suffix='pls',
similarity_metric=CrossRegressedCorrelation(
regression=pls_regression(), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITPLS_lmh():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='pls',
similarity_metric=CrossRegressedCorrelation(
regression=pls_regression(), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITPLS_lmh_ty_01_neg():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='pls',
similarity_metric=CrossRegressedCorrelation(
regression=pls_regression(), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
csv_file='__majajhonglocal_halves_ty_0.1_neg.csv',
parent_folder='./data/splits/')),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITPLS_lmh_ty_01_pos():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='pls',
similarity_metric=CrossRegressedCorrelation(
regression=pls_regression(), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
csv_file='__majajhonglocal_halves_ty_0.1_pos.csv',
parent_folder='./data/splits/')),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITPLS_lmh_tz_01_neg():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='pls',
similarity_metric=CrossRegressedCorrelation(
regression=pls_regression(), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
csv_file='__majajhonglocal_halves_tz_0.1_neg.csv',
parent_folder='./data/splits/')),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITPLS_lmh_tz_01_pos():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='pls',
similarity_metric=CrossRegressedCorrelation(
regression=pls_regression(), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
csv_file='__majajhonglocal_halves_tz_0.1_pos.csv',
parent_folder='./data/splits/')),
ceiler=InternalConsistency())
#######
# SPR
########
def DicarloMajajHong2015V4SPR_c_lmh():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='V4', identifier_metric_suffix='covr_control',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_regression(covariate_control =True),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPR_c_lmh():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covr_control',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_regression(covariate_control =True),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPR_c_lmh_ty_01_neg():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covr_control',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_regression(covariate_control=True),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_ty_0.1_neg.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPR_c_lmh_ty_01_pos():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covr_control',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_regression(covariate_control=True),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_ty_0.1_pos.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPR_c_lmh_tz_01_pos():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covr_control',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_regression(covariate_control=True),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_tz_0.1_pos.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPR_c_lmh_tz_01_neg():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covr_control',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_regression(covariate_control=True),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_tz_0.1_neg.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPR_c_lmh_s_01_pos():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covr_control',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_regression(covariate_control=True),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_s_0.1_pos.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPR_c_lmh_s_01_neg():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covr_control',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_regression(covariate_control=True),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_s_0.1_neg.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015V4SPR_nc_lmh():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='V4', identifier_metric_suffix='covr_nocontrol',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_regression(covariate_control=False),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPR_nc_lmh():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covr_nocontrol',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_regression(covariate_control=False),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPR_nc_lmh_ty_01_neg():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covr_nocontrol',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_regression(covariate_control=False),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_ty_0.1_neg.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPR_nc_lmh_ty_01_pos():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covr_nocontrol',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_regression(covariate_control=False),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_ty_0.1_pos.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPR_nc_lmh_tz_01_pos():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covr_nocontrol',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_regression(covariate_control=False),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_tz_0.1_pos.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPR_nc_lmh_tz_01_neg():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covr_nocontrol',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_regression(covariate_control=False),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_tz_0.1_neg.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPR_nc_lmh_s_01_pos():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covr_control',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_regression(covariate_control=False),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_s_0.1_pos.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPR_nc_lmh_s_01_neg():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covr_control',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_regression(covariate_control=False),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_s_0.1_neg.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
#########
# SPPLS
#########
def DicarloMajajHong2015V4SPPLS_c_lmh():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='V4', identifier_metric_suffix='covpls_control',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_pls(covariate_control =True),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPPLS_c_lmh():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covpls_control',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_pls(covariate_control =True),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPPLS_c_lmh_ty_01_neg():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covpls_control',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_pls(covariate_control=True),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_ty_0.1_neg.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPPLS_c_lmh_ty_01_pos():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covpls_control',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_pls(covariate_control=True),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_ty_0.1_pos.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPPLS_c_lmh_tz_01_pos():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covpls_control',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_pls(covariate_control=True),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_tz_0.1_pos.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPPLS_c_lmh_tz_01_neg():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covpls_control',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_pls(covariate_control=True),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_tz_0.1_neg.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPPLS_c_lmh_s_01_pos():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covpls_control',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_pls(covariate_control=True),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_s_0.1_pos.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPPLS_c_lmh_s_01_neg():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covpls_control',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_pls(covariate_control=True),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_s_0.1_neg.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015V4SPPLS_nc_lmh():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='V4', identifier_metric_suffix='covpls_nocontrol',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_pls(covariate_control=False),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPPLS_nc_lmh():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covpls_nocontrol',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_pls(covariate_control=False),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPPLS_nc_lmh_ty_01_neg():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covpls_nocontrol',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_pls(covariate_control=False),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_ty_0.1_neg.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPPLS_nc_lmh_ty_01_pos():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covpls_nocontrol',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_pls(covariate_control=False),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_ty_0.1_pos.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPPLS_nc_lmh_tz_01_pos():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covpls_nocontrol',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_pls(covariate_control=False),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_tz_0.1_pos.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPPLS_nc_lmh_tz_01_neg():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covpls_nocontrol',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_pls(covariate_control=False),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_tz_0.1_neg.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPPLS_nc_lmh_s_01_pos():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covpls_control',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_pls(covariate_control=False),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_s_0.1_pos.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITSPPLS_nc_lmh_s_01_neg():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='covpls_control',
similarity_metric=CrossRegressedCorrelationCovariate(
regression=semipartial_pls(covariate_control=False),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_s_0.1_neg.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
#########
# Drew
#########
def DicarloMajajHong2015V4Drew_c_lmh():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='V4', identifier_metric_suffix='Drew',
similarity_metric=CrossRegressedCorrelationDrew(
covariate_control=True,
regression=pls_regression(),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITDrew_c_lmh():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='Drew',
similarity_metric=CrossRegressedCorrelationDrew(
covariate_control=True,
regression=pls_regression(),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITDrew_c_lmh_ty_01_neg():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='Drew',
similarity_metric=CrossRegressedCorrelationDrew(
covariate_control=True,
regression=pls_regression(),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_ty_0.1_neg.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITDrew_c_lmh_ty_01_pos():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='Drew',
similarity_metric=CrossRegressedCorrelationDrew(
covariate_control=True,
regression=pls_regression(),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_ty_0.1_pos.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITDrew_c_lmh_tz_01_pos():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='Drew',
similarity_metric=CrossRegressedCorrelationDrew(
covariate_control=True,
regression=pls_regression(),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_tz_0.1_pos.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITDrew_c_lmh_tz_01_neg():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='Drew',
similarity_metric=CrossRegressedCorrelationDrew(
covariate_control=True,
regression=pls_regression(),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_tz_0.1_neg.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITDrew_c_lmh_s_01_pos():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='Drew',
similarity_metric=CrossRegressedCorrelationDrew(
covariate_control=True,
regression=pls_regression(),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_s_0.1_pos.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITDrew_c_lmh_s_01_neg():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='Drew',
similarity_metric=CrossRegressedCorrelationDrew(
covariate_control=True,
regression=pls_regression(),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_s_0.1_neg.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015V4Drew_nc_lmh():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='V4', identifier_metric_suffix='Drew',
similarity_metric=CrossRegressedCorrelationDrew(
covariate_control=False,
regression=pls_regression(),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITDrew_nc_lmh():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='Drew',
similarity_metric=CrossRegressedCorrelationDrew(
covariate_control=False,
regression=pls_regression(),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITDrew_nc_lmh_ty_01_neg():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='Drew',
similarity_metric=CrossRegressedCorrelationDrew(
covariate_control=False,
regression=pls_regression(),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_ty_0.1_neg.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITDrew_nc_lmh_ty_01_pos():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='Drew',
similarity_metric=CrossRegressedCorrelationDrew(
covariate_control=False,
regression=pls_regression(),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_ty_0.1_pos.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITDrew_nc_lmh_tz_01_pos():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='Drew',
similarity_metric=CrossRegressedCorrelationDrew(
covariate_control=False,
regression=pls_regression(),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_tz_0.1_pos.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITDrew_nc_lmh_tz_01_neg():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='Drew',
similarity_metric=CrossRegressedCorrelationDrew(
covariate_control=False,
regression=pls_regression(),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_tz_0.1_neg.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITDrew_nc_lmh_s_01_pos():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='Drew',
similarity_metric=CrossRegressedCorrelationDrew(
covariate_control=False,
regression=pls_regression(),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_s_0.1_pos.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITDrew_nc_lmh_s_01_neg():
return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir='image_dicarlo_hvm_bg',
region='IT', identifier_metric_suffix='Drew',
similarity_metric=CrossRegressedCorrelationDrew(
covariate_control=False,
regression=pls_regression(),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(
stratification_coord='object_name',
csv_file='__majajhonglocal_halves_s_0.1_neg.csv',
parent_folder='./data/splits/')
),
ceiler=InternalConsistency())
######
# GCR
######
def DicarloMajajHong2015V4GCR_c_lmh():
return _DicarloMajajHong2015Region_lmh('V4', identifier_metric_suffix='gcr',
similarity_metric=CrossRegressedCorrelation(
regression=gram_c_regression(gram_control=True), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name', train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITGCR_c_lmh():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='gcr',
similarity_metric=CrossRegressedCorrelation(
regression=gram_c_regression(gram_control=True), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name', train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITGCR_c_lmh_ty_01_neg():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='gcr',
similarity_metric=CrossRegressedCorrelation(
regression=gram_c_regression(gram_control=True), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
csv_file ='__majajhonglocal_halves_ty_0.1_neg.csv',
parent_folder = './data/splits/')),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITGCR_c_lmh_ty_01_pos():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='gcr',
similarity_metric=CrossRegressedCorrelation(
regression=gram_c_regression(gram_control=True), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
csv_file ='__majajhonglocal_halves_ty_0.1_pos.csv',
parent_folder = './data/splits/')),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITGCR_c_lmh_tz_01_pos():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='gcr',
similarity_metric=CrossRegressedCorrelation(
regression=gram_c_regression(gram_control=True), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
csv_file ='__majajhonglocal_halves_tz_0.1_pos.csv',
parent_folder = './data/splits/')),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITGCR_c_lmh_tz_01_neg():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='gcr',
similarity_metric=CrossRegressedCorrelation(
regression=old_gram_control_regression(gram_control=True), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
csv_file ='__majajhonglocal_halves_tz_0.1_neg.csv',
parent_folder = './data/splits/')),
ceiler=InternalConsistency())
def DicarloMajajHong2015V4GCR_nc_lmh():
return _DicarloMajajHong2015Region_lmh('V4', identifier_metric_suffix='gcr',
similarity_metric=CrossRegressedCorrelation(
regression=old_gram_control_regression(gram_control=False), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name', train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITGCR_nc_lmh():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='gcr',
similarity_metric=CrossRegressedCorrelation(
regression=old_gram_control_regression(gram_control=False), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name', train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITGCR_nc_lmh_ty_01_neg():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='gcr',
similarity_metric=CrossRegressedCorrelation(
regression=old_gram_control_regression(gram_control=False), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
csv_file ='__majajhonglocal_halves_ty_0.1_neg.csv',
parent_folder = './data/splits/')),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITGCR_nc_lmh_ty_01_pos():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='gcr',
similarity_metric=CrossRegressedCorrelation(
regression=old_gram_control_regression(gram_control=False), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
csv_file ='__majajhonglocal_halves_ty_0.1_pos.csv',
parent_folder = './data/splits/')),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITGCR_nc_lmh_tz_01_pos():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='gcr',
similarity_metric=CrossRegressedCorrelation(
regression=old_gram_control_regression(gram_control=False), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
csv_file ='__majajhonglocal_halves_tz_0.1_pos.csv',
parent_folder = './data/splits/')),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITGCR_nc_lmh_tz_01_neg():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='gcr',
similarity_metric=CrossRegressedCorrelation(
regression=old_gram_control_regression(gram_control=False), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
csv_file ='__majajhonglocal_halves_tz_0.1_neg.csv',
parent_folder = './data/splits/')),
ceiler=InternalConsistency())
def DicarloMajajHong2015V4GCR_c_lmh():
return _DicarloMajajHong2015Region_lmh('V4', identifier_metric_suffix='gcr',
similarity_metric=CrossRegressedCorrelation(
regression=old_gram_control_regression(gram_control=True), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name', train_size=0.5)),
ceiler=InternalConsistency())
########
# GCPLS
########
def DicarloMajajHong2015V4GCPLS_c_lmh():
return _DicarloMajajHong2015Region_lmh('V4', identifier_metric_suffix='gcpls',
similarity_metric=CrossRegressedCorrelation(
regression=old_gram_control_pls(gram_control=True), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name', train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITGCPLS_c_lmh():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='gcpls',
similarity_metric=CrossRegressedCorrelation(
regression=old_gram_control_pls(gram_control=True), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name', train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITGCPLS_c_lmh_ty_01_neg():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='gcpls',
similarity_metric=CrossRegressedCorrelation(
regression=old_gram_control_pls(gram_control=True), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
csv_file ='__majajhonglocal_halves_ty_0.1_neg.csv',
parent_folder = './data/splits/')),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITGCPLS_c_lmh_ty_01_pos():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='gcpls',
similarity_metric=CrossRegressedCorrelation(
regression=old_gram_control_pls(gram_control=True), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
csv_file ='__majajhonglocal_halves_ty_0.1_pos.csv',
parent_folder = './data/splits/')),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITGCPLS_c_lmh_tz_01_pos():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='gcpls',
similarity_metric=CrossRegressedCorrelation(
regression=old_gram_control_pls(gram_control=True), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
csv_file ='__majajhonglocal_halves_tz_0.1_pos.csv',
parent_folder = './data/splits/')),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITGCPLS_c_lmh_tz_01_neg():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='gcpls',
similarity_metric=CrossRegressedCorrelation(
regression=old_gram_control_pls(gram_control=True), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
csv_file ='__majajhonglocal_halves_tz_0.1_neg.csv',
parent_folder = './data/splits/')),
ceiler=InternalConsistency())
def DicarloMajajHong2015V4GCPLS_nc_lmh():
return _DicarloMajajHong2015Region_lmh('V4', identifier_metric_suffix='gcpls',
similarity_metric=CrossRegressedCorrelation(
regression=old_gram_control_pls(gram_control=False), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name', train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITGCPLS_nc_lmh():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='gcpls',
similarity_metric=CrossRegressedCorrelation(
regression=old_gram_control_pls(gram_control=False), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name', train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITGCPLS_nc_lmh_ty_01_neg():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='gcpls',
similarity_metric=CrossRegressedCorrelation(
regression=old_gram_control_pls(gram_control=False), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
csv_file ='__majajhonglocal_halves_ty_0.1_neg.csv',
parent_folder = './data/splits/')),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITGCPLS_nc_lmh_ty_01_pos():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='gcpls',
similarity_metric=CrossRegressedCorrelation(
regression=old_gram_control_pls(gram_control=False), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
csv_file ='__majajhonglocal_halves_ty_0.1_pos.csv',
parent_folder = './data/splits/')),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITGCPLS_nc_lmh_tz_01_pos():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='gcpls',
similarity_metric=CrossRegressedCorrelation(
regression=old_gram_control_pls(gram_control=False), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
csv_file ='__majajhonglocal_halves_tz_0.1_pos.csv',
parent_folder = './data/splits/')),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITGCPLS_nc_lmh_tz_01_neg():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='gcpls',
similarity_metric=CrossRegressedCorrelation(
regression=old_gram_control_pls(gram_control=False), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name',
csv_file ='__majajhonglocal_halves_tz_0.1_neg.csv',
parent_folder = './data/splits/')),
ceiler=InternalConsistency())
########
# Other
########
# def Lore():
# return _DicarloMajajHong2015Region_lmh_covariate(covariate_image_dir = 'image_dicarlo_hvm_masked', region='IT', identifier_metric_suffix='gcr',
# similarity_metric=CrossRegressedCorrelationCovariate(
# regression=covariate_regression(), correlation=pearsonr_correlation(),
# crossvalidation_kwargs=dict(stratification_coord='object_name', train_size=0.5)),
# # ceiler=ToleranceConsistency(regression=pls_regression(),
# # correlation=pearsonr_correlation()),
# ceiler=InternalConsistency(),
# benchmark_identifier='Lore')
def Lore():
return _DicarloMajajHong2015Region_lmh_toleranceceiling(region='IT', identifier_metric_suffix='toleranceceiling',
similarity_metric=ToleranceCrossValidation(
regression=pls_regression(),
correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(stratification_coord='object_name')
))
def DicarloMajajHong2015V4Mask_lmh():
return _DicarloMajajHong2015Region_lmh('V4', identifier_metric_suffix='mask',
similarity_metric=ScaledCrossRegressedCorrelation(
regression=mask_regression(), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(splits=2, stratification_coord='object_name',
train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015ITMask_lmh():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='mask',
similarity_metric=ScaledCrossRegressedCorrelation(
regression=mask_regression(), correlation=pearsonr_correlation(),
crossvalidation_kwargs=dict(splits=2, stratification_coord='object_name', train_size=0.5)),
ceiler=InternalConsistency())
def DicarloMajajHong2015V4RDM_lmh():
return _DicarloMajajHong2015Region_lmh('V4', identifier_metric_suffix='rdm',
similarity_metric=RDMCrossValidated(
crossvalidation_kwargs=dict(stratification_coord='object_name',
train_size=0.5)),
ceiler=RDMConsistency())
def DicarloMajajHong2015ITRDM_lmh():
return _DicarloMajajHong2015Region_lmh('IT', identifier_metric_suffix='rdm',
similarity_metric=RDMCrossValidated(
crossvalidation_kwargs=dict(stratification_coord='object_name',
train_size=0.5)),
ceiler=RDMConsistency())
| 81.174661 | 2,669 | 0.469464 | 5,531 | 89,698 | 7.191285 | 0.066172 | 0.04264 | 0.053099 | 0.061974 | 0.890383 | 0.882992 | 0.876832 | 0.873011 | 0.866172 | 0.866047 | 0 | 0.02431 | 0.476287 | 89,698 | 1,104 | 2,670 | 81.248188 | 0.822399 | 0.019231 | 0 | 0.828074 | 0 | 0.004353 | 0.108814 | 0.029942 | 0 | 0 | 0 | 0 | 0 | 1 | 0.100109 | false | 0 | 0.008705 | 0.091404 | 0.208923 | 0.001088 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
8438b36bbc77a43676be9f6bf4d5f24d4520e046 | 25,189 | py | Python | arch.py | oskarnatan/RGBDVS-fusion | 5e560f54442d387a86e3a469107cf65859693987 | [
"MIT"
] | 1 | 2022-01-30T13:07:50.000Z | 2022-01-30T13:07:50.000Z | arch.py | oskarnatan/RGBDVS-fusion | 5e560f54442d387a86e3a469107cf65859693987 | [
"MIT"
] | null | null | null | arch.py | oskarnatan/RGBDVS-fusion | 5e560f54442d387a86e3a469107cf65859693987 | [
"MIT"
] | null | null | null |
import sys
from torch import cat, add, nn
def kaiming_w_init(layer):
nn.init.kaiming_normal_(layer.weight)
class mVGGBlock(nn.Module):
def __init__(self, in_channels, mid_channels, out_channels):
super().__init__()
self.relu = nn.ReLU()
self.conv1 = nn.Conv2d(in_channels, mid_channels, kernel_size=3, stride=1, padding=1, padding_mode='zeros')
self.bn1 = nn.BatchNorm2d(mid_channels)
self.conv2 = nn.Conv2d(mid_channels, out_channels, kernel_size=3, stride=1, padding=1, padding_mode='zeros')
self.bn2 = nn.BatchNorm2d(out_channels)
kaiming_w_init(self.conv1)
kaiming_w_init(self.conv2)
def forward(self, x):
x = self.conv1(x)
x = self.bn1(x)
x = self.relu(x)
x = self.conv2(x)
x = self.bn2(x)
x = self.relu(x)
return x
class VGGBlock(nn.Module):
def __init__(self, in_channels, mid_channels, out_channels):
super().__init__()
self.relu = nn.ReLU()
self.conv1 = nn.Conv2d(in_channels, mid_channels, kernel_size=3, stride=1, padding=1, padding_mode='zeros')
self.bn1 = nn.BatchNorm2d(mid_channels)
self.conv2 = nn.Conv2d(mid_channels, mid_channels, kernel_size=3, stride=1, padding=1, padding_mode='zeros')
self.bn2 = nn.BatchNorm2d(mid_channels)
self.conv3 = nn.Conv2d(mid_channels, out_channels, kernel_size=3, stride=1, padding=1, padding_mode='zeros')
self.bn3 = nn.BatchNorm2d(out_channels)
kaiming_w_init(self.conv1)
kaiming_w_init(self.conv2)
kaiming_w_init(self.conv3)
def forward(self, x):
x = self.conv1(x)
x = self.bn1(x)
x = self.relu(x)
x = self.conv2(x)
x = self.bn2(x)
x = self.relu(x)
x = self.conv3(x)
x = self.bn3(x)
x = self.relu(x)
return x
class A0(nn.Module):
def __init__(self, n_class=6, n_fmap_ch=[8, 16, 32, 64, 128], in_channel_dim=[2,3]):
super().__init__()
self.drop = nn.Dropout(p=0.5)
self.pool = nn.MaxPool2d(kernel_size=2, stride=2, padding=0)
self.up = nn.Upsample(scale_factor=2, mode='bilinear', align_corners=True)
#DVS
self.conv0_0_bgr_f = mVGGBlock(in_channel_dim[1], n_fmap_ch[0], n_fmap_ch[0])
self.conv0_0_bgr_l = mVGGBlock(in_channel_dim[1], n_fmap_ch[0], n_fmap_ch[0])
self.conv0_0_bgr_ri = mVGGBlock(in_channel_dim[1], n_fmap_ch[0], n_fmap_ch[0])
self.conv0_0_bgr_r = mVGGBlock(in_channel_dim[1], n_fmap_ch[0], n_fmap_ch[0])
self.conv1_0_bgr_f = mVGGBlock(n_fmap_ch[0], n_fmap_ch[1], n_fmap_ch[1])
self.conv1_0_bgr_l = mVGGBlock(n_fmap_ch[0], n_fmap_ch[1], n_fmap_ch[1])
self.conv1_0_bgr_ri = mVGGBlock(n_fmap_ch[0], n_fmap_ch[1], n_fmap_ch[1])
self.conv1_0_bgr_r = mVGGBlock(n_fmap_ch[0], n_fmap_ch[1], n_fmap_ch[1])
self.conv2_0_bgr_f = mVGGBlock(n_fmap_ch[1], n_fmap_ch[2], n_fmap_ch[2])
self.conv2_0_bgr_l = mVGGBlock(n_fmap_ch[1], n_fmap_ch[2], n_fmap_ch[2])
self.conv2_0_bgr_ri = mVGGBlock(n_fmap_ch[1], n_fmap_ch[2], n_fmap_ch[2])
self.conv2_0_bgr_r = mVGGBlock(n_fmap_ch[1], n_fmap_ch[2], n_fmap_ch[2])
#BOTTLENECK
self.conv3_0_bgr = VGGBlock(4*n_fmap_ch[2], n_fmap_ch[3], n_fmap_ch[3])
self.conv_neck = VGGBlock(n_fmap_ch[3], n_fmap_ch[4], n_fmap_ch[4])
self.conv3_0_dep = VGGBlock(n_fmap_ch[3]+n_fmap_ch[4], n_fmap_ch[3], n_fmap_ch[3])
self.conv3_0_seg = VGGBlock(n_fmap_ch[3]+n_fmap_ch[4], n_fmap_ch[3], n_fmap_ch[3])
#DE
self.conv2_1_dep_f = mVGGBlock(n_fmap_ch[2]+n_fmap_ch[3], n_fmap_ch[2], n_fmap_ch[2])
self.conv2_1_dep_l = mVGGBlock(n_fmap_ch[2]+n_fmap_ch[3], n_fmap_ch[2], n_fmap_ch[2])
self.conv2_1_dep_ri = mVGGBlock(n_fmap_ch[2]+n_fmap_ch[3], n_fmap_ch[2], n_fmap_ch[2])
self.conv2_1_dep_r = mVGGBlock(n_fmap_ch[2]+n_fmap_ch[3], n_fmap_ch[2], n_fmap_ch[2])
self.conv1_2_dep_f = mVGGBlock(n_fmap_ch[1]+n_fmap_ch[2], n_fmap_ch[1], n_fmap_ch[1])
self.conv1_2_dep_l = mVGGBlock(n_fmap_ch[1]+n_fmap_ch[2], n_fmap_ch[1], n_fmap_ch[1])
self.conv1_2_dep_ri = mVGGBlock(n_fmap_ch[1]+n_fmap_ch[2], n_fmap_ch[1], n_fmap_ch[1])
self.conv1_2_dep_r = mVGGBlock(n_fmap_ch[1]+n_fmap_ch[2], n_fmap_ch[1], n_fmap_ch[1])
self.conv0_3_dep_f = mVGGBlock(n_fmap_ch[0]+n_fmap_ch[1], n_fmap_ch[0], n_fmap_ch[0])
self.conv0_3_dep_l = mVGGBlock(n_fmap_ch[0]+n_fmap_ch[1], n_fmap_ch[0], n_fmap_ch[0])
self.conv0_3_dep_ri = mVGGBlock(n_fmap_ch[0]+n_fmap_ch[1], n_fmap_ch[0], n_fmap_ch[0])
self.conv0_3_dep_r = mVGGBlock(n_fmap_ch[0]+n_fmap_ch[1], n_fmap_ch[0], n_fmap_ch[0])
#SS
self.conv2_1_seg_f = mVGGBlock(n_fmap_ch[2]+n_fmap_ch[3], n_fmap_ch[2], n_fmap_ch[2])
self.conv2_1_seg_l = mVGGBlock(n_fmap_ch[2]+n_fmap_ch[3], n_fmap_ch[2], n_fmap_ch[2])
self.conv2_1_seg_ri = mVGGBlock(n_fmap_ch[2]+n_fmap_ch[3], n_fmap_ch[2], n_fmap_ch[2])
self.conv2_1_seg_r = mVGGBlock(n_fmap_ch[2]+n_fmap_ch[3], n_fmap_ch[2], n_fmap_ch[2])
self.conv1_2_seg_f = mVGGBlock(n_fmap_ch[1]+n_fmap_ch[2], n_fmap_ch[1], n_fmap_ch[1])
self.conv1_2_seg_l = mVGGBlock(n_fmap_ch[1]+n_fmap_ch[2], n_fmap_ch[1], n_fmap_ch[1])
self.conv1_2_seg_ri = mVGGBlock(n_fmap_ch[1]+n_fmap_ch[2], n_fmap_ch[1], n_fmap_ch[1])
self.conv1_2_seg_r = mVGGBlock(n_fmap_ch[1]+n_fmap_ch[2], n_fmap_ch[1], n_fmap_ch[1])
self.conv0_3_seg_f = mVGGBlock(n_fmap_ch[0]+n_fmap_ch[1], n_fmap_ch[0], n_fmap_ch[0])
self.conv0_3_seg_l = mVGGBlock(n_fmap_ch[0]+n_fmap_ch[1], n_fmap_ch[0], n_fmap_ch[0])
self.conv0_3_seg_ri = mVGGBlock(n_fmap_ch[0]+n_fmap_ch[1], n_fmap_ch[0], n_fmap_ch[0])
self.conv0_3_seg_r = mVGGBlock(n_fmap_ch[0]+n_fmap_ch[1], n_fmap_ch[0], n_fmap_ch[0])
#final 1x1 conv
self.final_dep_f = nn.Conv2d(n_fmap_ch[0], 1, kernel_size=1)
self.final_dep_l = nn.Conv2d(n_fmap_ch[0], 1, kernel_size=1)
self.final_dep_ri = nn.Conv2d(n_fmap_ch[0], 1, kernel_size=1)
self.final_dep_r = nn.Conv2d(n_fmap_ch[0], 1, kernel_size=1)
self.final_seg_f = nn.Conv2d(n_fmap_ch[0], n_class, kernel_size=1)
self.final_seg_l = nn.Conv2d(n_fmap_ch[0], n_class, kernel_size=1)
self.final_seg_ri = nn.Conv2d(n_fmap_ch[0], n_class, kernel_size=1)
self.final_seg_r = nn.Conv2d(n_fmap_ch[0], n_class, kernel_size=1)
kaiming_w_init(self.final_dep_f)
kaiming_w_init(self.final_dep_l)
kaiming_w_init(self.final_dep_ri)
kaiming_w_init(self.final_dep_r)
kaiming_w_init(self.final_seg_f)
kaiming_w_init(self.final_seg_l)
kaiming_w_init(self.final_seg_ri)
kaiming_w_init(self.final_seg_r)
#final activation
self.act_dep = nn.ReLU()
self.act_seg = nn.Sigmoid()
def forward(self, input):
#down
bgr_f_0_0 = self.conv0_0_bgr_f(input[4])
bgr_l_0_0 = self.conv0_0_bgr_l(input[5])
bgr_ri_0_0 = self.conv0_0_bgr_ri(input[6])
bgr_r_0_0 = self.conv0_0_bgr_r(input[7])
down_bgr_f_0_0 = self.pool(bgr_f_0_0)
down_bgr_l_0_0 = self.pool(bgr_l_0_0)
down_bgr_ri_0_0 = self.pool(bgr_ri_0_0)
down_bgr_r_0_0 = self.pool(bgr_r_0_0)
bgr_f_1_0 = self.conv1_0_bgr_f(down_bgr_f_0_0)
bgr_l_1_0 = self.conv1_0_bgr_l(down_bgr_l_0_0)
bgr_ri_1_0 = self.conv1_0_bgr_ri(down_bgr_ri_0_0)
bgr_r_1_0 = self.conv1_0_bgr_r(down_bgr_r_0_0)
down_bgr_f_1_0 = self.pool(bgr_f_1_0)
down_bgr_l_1_0 = self.pool(bgr_l_1_0)
down_bgr_ri_1_0 = self.pool(bgr_ri_1_0)
down_bgr_r_1_0 = self.pool(bgr_r_1_0)
bgr_f_2_0 = self.conv2_0_bgr_f(down_bgr_f_1_0)
bgr_l_2_0 = self.conv2_0_bgr_l(down_bgr_l_1_0)
bgr_ri_2_0 = self.conv2_0_bgr_ri(down_bgr_ri_1_0)
bgr_r_2_0 = self.conv2_0_bgr_r(down_bgr_r_1_0)
down_bgr_f_2_0 = self.pool(bgr_f_2_0)
down_bgr_l_2_0 = self.pool(bgr_l_2_0)
down_bgr_ri_2_0 = self.pool(bgr_ri_2_0)
down_bgr_r_2_0 = self.pool(bgr_r_2_0)
#neck
cat_in_bgr = cat([down_bgr_f_2_0, down_bgr_l_2_0, down_bgr_ri_2_0, down_bgr_r_2_0], dim=1)
bgr_3_0 = self.drop(self.conv3_0_bgr(cat_in_bgr))
down_bgr_3_0 = self.pool(bgr_3_0)
neckfm = self.drop(self.conv_neck(down_bgr_3_0))
up_neck = self.up(neckfm)
dep_3_0 = self.drop(self.conv3_0_dep(cat([up_neck, bgr_3_0], dim=1)))
seg_3_0 = self.drop(self.conv3_0_seg(cat([up_neck, bgr_3_0], dim=1)))
up_dep_3_0 = self.up(dep_3_0)
up_seg_3_0 = self.up(seg_3_0)
#up
dep_f_2_1 = self.conv2_1_dep_f(cat([up_dep_3_0, bgr_f_2_0], dim=1))
dep_l_2_1 = self.conv2_1_dep_l(cat([up_dep_3_0, bgr_l_2_0], dim=1))
dep_ri_2_1 = self.conv2_1_dep_ri(cat([up_dep_3_0, bgr_ri_2_0], dim=1))
dep_r_2_1 = self.conv2_1_dep_r(cat([up_dep_3_0, bgr_r_2_0], dim=1))
seg_f_2_1 = self.conv2_1_seg_f(cat([up_seg_3_0, bgr_f_2_0], dim=1))
seg_l_2_1 = self.conv2_1_seg_l(cat([up_seg_3_0, bgr_l_2_0], dim=1))
seg_ri_2_1 = self.conv2_1_seg_ri(cat([up_seg_3_0, bgr_ri_2_0], dim=1))
seg_r_2_1 = self.conv2_1_seg_r(cat([up_seg_3_0, bgr_r_2_0], dim=1))
up_dep_f_2_1 = self.up(dep_f_2_1)
up_dep_l_2_1 = self.up(dep_l_2_1)
up_dep_ri_2_1 = self.up(dep_ri_2_1)
up_dep_r_2_1 = self.up(dep_r_2_1)
up_seg_f_2_1 = self.up(seg_f_2_1)
up_seg_l_2_1 = self.up(seg_l_2_1)
up_seg_ri_2_1 = self.up(seg_ri_2_1)
up_seg_r_2_1 = self.up(seg_r_2_1)
dep_f_1_2 = self.conv1_2_dep_f(cat([up_dep_f_2_1, bgr_f_1_0], dim=1))
dep_l_1_2 = self.conv1_2_dep_l(cat([up_dep_l_2_1, bgr_l_1_0], dim=1))
dep_ri_1_2 = self.conv1_2_dep_ri(cat([up_dep_ri_2_1, bgr_ri_1_0], dim=1))
dep_r_1_2 = self.conv1_2_dep_r(cat([up_dep_r_2_1, bgr_r_1_0], dim=1))
seg_f_1_2 = self.conv1_2_seg_f(cat([up_seg_f_2_1, bgr_f_1_0], dim=1))
seg_l_1_2 = self.conv1_2_seg_l(cat([up_seg_l_2_1, bgr_l_1_0], dim=1))
seg_ri_1_2 = self.conv1_2_seg_ri(cat([up_seg_ri_2_1, bgr_ri_1_0], dim=1))
seg_r_1_2 = self.conv1_2_seg_r(cat([up_seg_r_2_1, bgr_r_1_0], dim=1))
up_dep_f_1_2 = self.up(dep_f_1_2)
up_dep_l_1_2 = self.up(dep_l_1_2)
up_dep_ri_1_2 = self.up(dep_ri_1_2)
up_dep_r_1_2 = self.up(dep_r_1_2)
up_seg_f_1_2 = self.up(seg_f_1_2)
up_seg_l_1_2 = self.up(seg_l_1_2)
up_seg_ri_1_2 = self.up(seg_ri_1_2)
up_seg_r_1_2 = self.up(seg_r_1_2)
dep_f_0_3 = self.conv0_3_dep_f(cat([up_dep_f_1_2, bgr_f_0_0], dim=1))
dep_l_0_3 = self.conv0_3_dep_l(cat([up_dep_l_1_2, bgr_l_0_0], dim=1))
dep_ri_0_3 = self.conv0_3_dep_ri(cat([up_dep_ri_1_2, bgr_ri_0_0], dim=1))
dep_r_0_3 = self.conv0_3_dep_r(cat([up_dep_r_1_2, bgr_r_0_0], dim=1))
seg_f_0_3 = self.conv0_3_seg_f(cat([up_seg_f_1_2, bgr_f_0_0], dim=1))
seg_l_0_3 = self.conv0_3_seg_l(cat([up_seg_l_1_2, bgr_l_0_0], dim=1))
seg_ri_0_3 = self.conv0_3_seg_ri(cat([up_seg_ri_1_2, bgr_ri_0_0], dim=1))
seg_r_0_3 = self.conv0_3_seg_r(cat([up_seg_r_1_2, bgr_r_0_0], dim=1))
#final
out_dep_f = self.act_dep(self.final_dep_f(dep_f_0_3))
out_dep_l = self.act_dep(self.final_dep_l(dep_l_0_3))
out_dep_ri = self.act_dep(self.final_dep_ri(dep_ri_0_3))
out_dep_r = self.act_dep(self.final_dep_r(dep_r_0_3))
out_seg_f = self.act_seg(self.final_seg_f(seg_f_0_3))
out_seg_l = self.act_seg(self.final_seg_l(seg_l_0_3))
out_seg_ri = self.act_seg(self.final_seg_ri(seg_ri_0_3))
out_seg_r = self.act_seg(self.final_seg_r(seg_r_0_3))
return [out_dep_f, out_dep_l, out_dep_ri, out_dep_r, out_seg_f, out_seg_l, out_seg_ri, out_seg_r]
class A1(nn.Module):
def __init__(self, n_class=6, n_fmap_ch=[8, 16, 32, 64, 128], in_channel_dim=[2,3]):
super().__init__()
self.drop = nn.Dropout(p=0.5)
self.pool = nn.MaxPool2d(kernel_size=2, stride=2, padding=0)
self.up = nn.Upsample(scale_factor=2, mode='bilinear', align_corners=True)
#DVS
self.conv0_0_dvs_f = mVGGBlock(in_channel_dim[0], n_fmap_ch[0], n_fmap_ch[0])
self.conv0_0_dvs_l = mVGGBlock(in_channel_dim[0], n_fmap_ch[0], n_fmap_ch[0])
self.conv0_0_dvs_ri = mVGGBlock(in_channel_dim[0], n_fmap_ch[0], n_fmap_ch[0])
self.conv0_0_dvs_r = mVGGBlock(in_channel_dim[0], n_fmap_ch[0], n_fmap_ch[0])
self.conv1_0_dvs_f = mVGGBlock(n_fmap_ch[0], n_fmap_ch[1], n_fmap_ch[1])
self.conv1_0_dvs_l = mVGGBlock(n_fmap_ch[0], n_fmap_ch[1], n_fmap_ch[1])
self.conv1_0_dvs_ri = mVGGBlock(n_fmap_ch[0], n_fmap_ch[1], n_fmap_ch[1])
self.conv1_0_dvs_r = mVGGBlock(n_fmap_ch[0], n_fmap_ch[1], n_fmap_ch[1])
self.conv2_0_dvs_f = mVGGBlock(n_fmap_ch[1], n_fmap_ch[2], n_fmap_ch[2])
self.conv2_0_dvs_l = mVGGBlock(n_fmap_ch[1], n_fmap_ch[2], n_fmap_ch[2])
self.conv2_0_dvs_ri = mVGGBlock(n_fmap_ch[1], n_fmap_ch[2], n_fmap_ch[2])
self.conv2_0_dvs_r = mVGGBlock(n_fmap_ch[1], n_fmap_ch[2], n_fmap_ch[2])
#BGR
self.conv0_0_bgr_f = mVGGBlock(in_channel_dim[1], n_fmap_ch[0], n_fmap_ch[0])
self.conv0_0_bgr_l = mVGGBlock(in_channel_dim[1], n_fmap_ch[0], n_fmap_ch[0])
self.conv0_0_bgr_ri = mVGGBlock(in_channel_dim[1], n_fmap_ch[0], n_fmap_ch[0])
self.conv0_0_bgr_r = mVGGBlock(in_channel_dim[1], n_fmap_ch[0], n_fmap_ch[0])
self.conv1_0_bgr_f = mVGGBlock(n_fmap_ch[0], n_fmap_ch[1], n_fmap_ch[1])
self.conv1_0_bgr_l = mVGGBlock(n_fmap_ch[0], n_fmap_ch[1], n_fmap_ch[1])
self.conv1_0_bgr_ri = mVGGBlock(n_fmap_ch[0], n_fmap_ch[1], n_fmap_ch[1])
self.conv1_0_bgr_r = mVGGBlock(n_fmap_ch[0], n_fmap_ch[1], n_fmap_ch[1])
self.conv2_0_bgr_f = mVGGBlock(n_fmap_ch[1], n_fmap_ch[2], n_fmap_ch[2])
self.conv2_0_bgr_l = mVGGBlock(n_fmap_ch[1], n_fmap_ch[2], n_fmap_ch[2])
self.conv2_0_bgr_ri = mVGGBlock(n_fmap_ch[1], n_fmap_ch[2], n_fmap_ch[2])
self.conv2_0_bgr_r = mVGGBlock(n_fmap_ch[1], n_fmap_ch[2], n_fmap_ch[2])
#BOTTLENECK
self.conv3_0_dvs = catall_Block((4*n_fmap_ch[2]), n_fmap_ch[3], n_fmap_ch[3])
self.conv3_0_bgr = VGGBlock(4*n_fmap_ch[2], n_fmap_ch[3], n_fmap_ch[3])
self.conv_neck = VGGBlock(2*n_fmap_ch[3], n_fmap_ch[4], n_fmap_ch[4])
self.conv3_0_dep = VGGBlock(n_fmap_ch[3]+n_fmap_ch[4], n_fmap_ch[3], n_fmap_ch[3])
self.conv3_0_seg = VGGBlock(n_fmap_ch[3]+n_fmap_ch[4], n_fmap_ch[3], n_fmap_ch[3])
#DE
self.conv2_1_dep_f = mVGGBlock(n_fmap_ch[2]+n_fmap_ch[3], n_fmap_ch[2], n_fmap_ch[2])
self.conv2_1_dep_l = mVGGBlock(n_fmap_ch[2]+n_fmap_ch[3], n_fmap_ch[2], n_fmap_ch[2])
self.conv2_1_dep_ri = mVGGBlock(n_fmap_ch[2]+n_fmap_ch[3], n_fmap_ch[2], n_fmap_ch[2])
self.conv2_1_dep_r = mVGGBlock(n_fmap_ch[2]+n_fmap_ch[3], n_fmap_ch[2], n_fmap_ch[2])
self.conv1_2_dep_f = mVGGBlock(n_fmap_ch[1]+n_fmap_ch[2], n_fmap_ch[1], n_fmap_ch[1])
self.conv1_2_dep_l = mVGGBlock(n_fmap_ch[1]+n_fmap_ch[2], n_fmap_ch[1], n_fmap_ch[1])
self.conv1_2_dep_ri = mVGGBlock(n_fmap_ch[1]+n_fmap_ch[2], n_fmap_ch[1], n_fmap_ch[1])
self.conv1_2_dep_r = mVGGBlock(n_fmap_ch[1]+n_fmap_ch[2], n_fmap_ch[1], n_fmap_ch[1])
self.conv0_3_dep_f = mVGGBlock(n_fmap_ch[0]+n_fmap_ch[1], n_fmap_ch[0], n_fmap_ch[0])
self.conv0_3_dep_l = mVGGBlock(n_fmap_ch[0]+n_fmap_ch[1], n_fmap_ch[0], n_fmap_ch[0])
self.conv0_3_dep_ri = mVGGBlock(n_fmap_ch[0]+n_fmap_ch[1], n_fmap_ch[0], n_fmap_ch[0])
self.conv0_3_dep_r = mVGGBlock(n_fmap_ch[0]+n_fmap_ch[1], n_fmap_ch[0], n_fmap_ch[0])
#SS
self.conv2_1_seg_f = mVGGBlock(n_fmap_ch[2]+n_fmap_ch[3], n_fmap_ch[2], n_fmap_ch[2])
self.conv2_1_seg_l = mVGGBlock(n_fmap_ch[2]+n_fmap_ch[3], n_fmap_ch[2], n_fmap_ch[2])
self.conv2_1_seg_ri = mVGGBlock(n_fmap_ch[2]+n_fmap_ch[3], n_fmap_ch[2], n_fmap_ch[2])
self.conv2_1_seg_r = mVGGBlock(n_fmap_ch[2]+n_fmap_ch[3], n_fmap_ch[2], n_fmap_ch[2])
self.conv1_2_seg_f = mVGGBlock(n_fmap_ch[1]+n_fmap_ch[2], n_fmap_ch[1], n_fmap_ch[1])
self.conv1_2_seg_l = mVGGBlock(n_fmap_ch[1]+n_fmap_ch[2], n_fmap_ch[1], n_fmap_ch[1])
self.conv1_2_seg_ri = mVGGBlock(n_fmap_ch[1]+n_fmap_ch[2], n_fmap_ch[1], n_fmap_ch[1])
self.conv1_2_seg_r = mVGGBlock(n_fmap_ch[1]+n_fmap_ch[2], n_fmap_ch[1], n_fmap_ch[1])
self.conv0_3_seg_f = mVGGBlock(n_fmap_ch[0]+n_fmap_ch[1], n_fmap_ch[0], n_fmap_ch[0])
self.conv0_3_seg_l = mVGGBlock(n_fmap_ch[0]+n_fmap_ch[1], n_fmap_ch[0], n_fmap_ch[0])
self.conv0_3_seg_ri = mVGGBlock(n_fmap_ch[0]+n_fmap_ch[1], n_fmap_ch[0], n_fmap_ch[0])
self.conv0_3_seg_r = mVGGBlock(n_fmap_ch[0]+n_fmap_ch[1], n_fmap_ch[0], n_fmap_ch[0])
#final 1x1 conv
self.final_dep_f = nn.Conv2d(n_fmap_ch[0], 1, kernel_size=1)
self.final_dep_l = nn.Conv2d(n_fmap_ch[0], 1, kernel_size=1)
self.final_dep_ri = nn.Conv2d(n_fmap_ch[0], 1, kernel_size=1)
self.final_dep_r = nn.Conv2d(n_fmap_ch[0], 1, kernel_size=1)
self.final_seg_f = nn.Conv2d(n_fmap_ch[0], n_class, kernel_size=1)
self.final_seg_l = nn.Conv2d(n_fmap_ch[0], n_class, kernel_size=1)
self.final_seg_ri = nn.Conv2d(n_fmap_ch[0], n_class, kernel_size=1)
self.final_seg_r = nn.Conv2d(n_fmap_ch[0], n_class, kernel_size=1)
kaiming_w_init(self.final_dep_f)
kaiming_w_init(self.final_dep_l)
kaiming_w_init(self.final_dep_ri)
kaiming_w_init(self.final_dep_r)
kaiming_w_init(self.final_seg_f)
kaiming_w_init(self.final_seg_l)
kaiming_w_init(self.final_seg_ri)
kaiming_w_init(self.final_seg_r)
#final activation
self.act_dep = nn.ReLU()
self.act_seg = nn.Sigmoid()
def forward(self, input):
#down
dvs_f_0_0 = self.conv0_0_dvs_f(input[0])
dvs_l_0_0 = self.conv0_0_dvs_l(input[1])
dvs_ri_0_0 = self.conv0_0_dvs_ri(input[2])
dvs_r_0_0 = self.conv0_0_dvs_r(input[3])
bgr_f_0_0 = self.conv0_0_bgr_f(input[4])
bgr_l_0_0 = self.conv0_0_bgr_l(input[5])
bgr_ri_0_0 = self.conv0_0_bgr_ri(input[6])
bgr_r_0_0 = self.conv0_0_bgr_r(input[7])
down_dvs_f_0_0 = self.pool(dvs_f_0_0)
down_dvs_l_0_0 = self.pool(dvs_l_0_0)
down_dvs_ri_0_0 = self.pool(dvs_ri_0_0)
down_dvs_r_0_0 = self.pool(dvs_r_0_0)
down_bgr_f_0_0 = self.pool(bgr_f_0_0)
down_bgr_l_0_0 = self.pool(bgr_l_0_0)
down_bgr_ri_0_0 = self.pool(bgr_ri_0_0)
down_bgr_r_0_0 = self.pool(bgr_r_0_0)
dvs_f_1_0 = self.conv1_0_dvs_f(down_dvs_f_0_0)
dvs_l_1_0 = self.conv1_0_dvs_l(down_dvs_l_0_0)
dvs_ri_1_0 = self.conv1_0_dvs_ri(down_dvs_ri_0_0)
dvs_r_1_0 = self.conv1_0_dvs_r(down_dvs_r_0_0)
bgr_f_1_0 = self.conv1_0_bgr_f(down_bgr_f_0_0)
bgr_l_1_0 = self.conv1_0_bgr_l(down_bgr_l_0_0)
bgr_ri_1_0 = self.conv1_0_bgr_ri(down_bgr_ri_0_0)
bgr_r_1_0 = self.conv1_0_bgr_r(down_bgr_r_0_0)
down_dvs_f_1_0 = self.pool(dvs_f_1_0)
down_dvs_l_1_0 = self.pool(dvs_l_1_0)
down_dvs_ri_1_0 = self.pool(dvs_ri_1_0)
down_dvs_r_1_0 = self.pool(dvs_r_1_0)
down_bgr_f_1_0 = self.pool(bgr_f_1_0)
down_bgr_l_1_0 = self.pool(bgr_l_1_0)
down_bgr_ri_1_0 = self.pool(bgr_ri_1_0)
down_bgr_r_1_0 = self.pool(bgr_r_1_0)
dvs_f_2_0 = self.conv2_0_dvs_f(down_dvs_f_1_0)
dvs_l_2_0 = self.conv2_0_dvs_l(down_dvs_l_1_0)
dvs_ri_2_0 = self.conv2_0_dvs_ri(down_dvs_ri_1_0)
dvs_r_2_0 = self.conv2_0_dvs_r(down_dvs_r_1_0)
bgr_f_2_0 = self.conv2_0_bgr_f(down_bgr_f_1_0)
bgr_l_2_0 = self.conv2_0_bgr_l(down_bgr_l_1_0)
bgr_ri_2_0 = self.conv2_0_bgr_ri(down_bgr_ri_1_0)
bgr_r_2_0 = self.conv2_0_bgr_r(down_bgr_r_1_0)
down_dvs_f_2_0 = self.pool(dvs_f_2_0)
down_dvs_l_2_0 = self.pool(dvs_l_2_0)
down_dvs_ri_2_0 = self.pool(dvs_ri_2_0)
down_dvs_r_2_0 = self.pool(dvs_r_2_0)
down_bgr_f_2_0 = self.pool(bgr_f_2_0)
down_bgr_l_2_0 = self.pool(bgr_l_2_0)
down_bgr_ri_2_0 = self.pool(bgr_ri_2_0)
down_bgr_r_2_0 = self.pool(bgr_r_2_0)
#NECK
cat_in_dvs = cat([down_dvs_f_2_0, down_dvs_l_2_0, down_dvs_ri_2_0, down_dvs_r_2_0], dim=1)
cat_in_bgr = cat([down_bgr_f_2_0, down_bgr_l_2_0, down_bgr_ri_2_0, down_bgr_r_2_0], dim=1)
dvs_3_0 = self.drop(self.conv3_0_dvs(cat_in_dvs))
bgr_3_0 = self.drop(self.conv3_0_bgr(cat_in_bgr))
down_dvs_3_0 = self.pool(dvs_3_0)
down_bgr_3_0 = self.pool(bgr_3_0)
cat_in_dvsbgr = cat([down_dvs_3_0, down_bgr_3_0], dim=1)
neckfm = self.drop(self.conv_neck(cat_in_dvsbgr))
up_neck = self.up(neckfm)
dep_3_0 = self.drop(self.conv3_0_dep(cat([up_neck, dvs_3_0, bgr_3_0], dim=1)))
seg_3_0 = self.drop(self.conv3_0_seg(cat([up_neck, dvs_3_0, bgr_3_0], dim=1)))
up_dep_3_0 = self.up(dep_3_0)
up_seg_3_0 = self.up(seg_3_0)
#up
dep_f_2_1 = self.conv2_1_dep_f(cat([up_dep_3_0, dvs_f_2_0, bgr_f_2_0], dim=1))
dep_l_2_1 = self.conv2_1_dep_l(cat([up_dep_3_0, dvs_l_2_0, bgr_l_2_0], dim=1))
dep_ri_2_1 = self.conv2_1_dep_ri(cat([up_dep_3_0, dvs_ri_2_0, bgr_ri_2_0], dim=1))
dep_r_2_1 = self.conv2_1_dep_r(cat([up_dep_3_0, dvs_r_2_0, bgr_r_2_0], dim=1))
seg_f_2_1 = self.conv2_1_seg_f(cat([up_seg_3_0, dvs_f_2_0, bgr_f_2_0], dim=1))
seg_l_2_1 = self.conv2_1_seg_l(cat([up_seg_3_0, dvs_l_2_0, bgr_l_2_0], dim=1))
seg_ri_2_1 = self.conv2_1_seg_ri(cat([up_seg_3_0, dvs_ri_2_0, bgr_ri_2_0], dim=1))
seg_r_2_1 = self.conv2_1_seg_r(cat([up_seg_3_0, dvs_r_2_0, bgr_r_2_0], dim=1))
up_dep_f_2_1 = self.up(dep_f_2_1)
up_dep_l_2_1 = self.up(dep_l_2_1)
up_dep_ri_2_1 = self.up(dep_ri_2_1)
up_dep_r_2_1 = self.up(dep_r_2_1)
up_seg_f_2_1 = self.up(seg_f_2_1)
up_seg_l_2_1 = self.up(seg_l_2_1)
up_seg_ri_2_1 = self.up(seg_ri_2_1)
up_seg_r_2_1 = self.up(seg_r_2_1)
dep_f_1_2 = self.conv1_2_dep_f(cat([up_dep_f_2_1, dvs_f_1_0, bgr_f_1_0], dim=1))
dep_l_1_2 = self.conv1_2_dep_l(cat([up_dep_l_2_1, dvs_l_1_0, bgr_l_1_0], dim=1))
dep_ri_1_2 = self.conv1_2_dep_ri(cat([up_dep_ri_2_1, dvs_ri_1_0, bgr_ri_1_0], dim=1))
dep_r_1_2 = self.conv1_2_dep_r(cat([up_dep_r_2_1, dvs_r_1_0, bgr_r_1_0], dim=1))
seg_f_1_2 = self.conv1_2_seg_f(cat([up_seg_f_2_1, dvs_f_1_0, bgr_f_1_0], dim=1))
seg_l_1_2 = self.conv1_2_seg_l(cat([up_seg_l_2_1, dvs_l_1_0, bgr_l_1_0], dim=1))
seg_ri_1_2 = self.conv1_2_seg_ri(cat([up_seg_ri_2_1, dvs_ri_1_0, bgr_ri_1_0], dim=1))
seg_r_1_2 = self.conv1_2_seg_r(cat([up_seg_r_2_1, dvs_r_1_0, bgr_r_1_0], dim=1))
up_dep_f_1_2 = self.up(dep_f_1_2)
up_dep_l_1_2 = self.up(dep_l_1_2)
up_dep_ri_1_2 = self.up(dep_ri_1_2)
up_dep_r_1_2 = self.up(dep_r_1_2)
up_seg_f_1_2 = self.up(seg_f_1_2)
up_seg_l_1_2 = self.up(seg_l_1_2)
up_seg_ri_1_2 = self.up(seg_ri_1_2)
up_seg_r_1_2 = self.up(seg_r_1_2)
dep_f_0_3 = self.conv0_3_dep_f(cat([up_dep_f_1_2, dvs_f_0_0, bgr_f_0_0], dim=1))
dep_l_0_3 = self.conv0_3_dep_l(cat([up_dep_l_1_2, dvs_l_0_0, bgr_l_0_0], dim=1))
dep_ri_0_3 = self.conv0_3_dep_ri(cat([up_dep_ri_1_2, dvs_ri_0_0, bgr_ri_0_0], dim=1))
dep_r_0_3 = self.conv0_3_dep_r(cat([up_dep_r_1_2, dvs_r_0_0, bgr_r_0_0], dim=1))
seg_f_0_3 = self.conv0_3_seg_f(cat([up_seg_f_1_2, dvs_f_0_0, bgr_f_0_0], dim=1))
seg_l_0_3 = self.conv0_3_seg_l(cat([up_seg_l_1_2, dvs_l_0_0, bgr_l_0_0], dim=1))
seg_ri_0_3 = self.conv0_3_seg_ri(cat([up_seg_ri_1_2, dvs_ri_0_0, bgr_ri_0_0], dim=1))
seg_r_0_3 = self.conv0_3_seg_r(cat([up_seg_r_1_2, dvs_r_0_0, bgr_r_0_0], dim=1))
#final
out_dep_f = self.act_dep(self.final_dep_f(dep_f_0_3))
out_dep_l = self.act_dep(self.final_dep_l(dep_l_0_3))
out_dep_ri = self.act_dep(self.final_dep_ri(dep_ri_0_3))
out_dep_r = self.act_dep(self.final_dep_r(dep_r_0_3))
out_seg_f = self.act_seg(self.final_seg_f(seg_f_0_3))
out_seg_l = self.act_seg(self.final_seg_l(seg_l_0_3))
out_seg_ri = self.act_seg(self.final_seg_ri(seg_ri_0_3))
out_seg_r = self.act_seg(self.final_seg_r(seg_r_0_3))
return [out_dep_f, out_dep_l, out_dep_ri, out_dep_r, out_seg_f, out_seg_l, out_seg_ri, out_seg_r]
| 58.443155 | 117 | 0.668863 | 5,531 | 25,189 | 2.510215 | 0.01808 | 0.121363 | 0.169908 | 0.05762 | 0.979833 | 0.959666 | 0.934673 | 0.931072 | 0.928479 | 0.919332 | 0 | 0.088053 | 0.205129 | 25,189 | 430 | 118 | 58.57907 | 0.605384 | 0.005042 | 0 | 0.700787 | 0 | 0 | 0.001666 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023622 | false | 0 | 0.005249 | 0 | 0.049869 | 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 |
846356631dc1fde12f14ebdcfd35177bd7fec148 | 3,203 | py | Python | loginpage.py | nycrecords/openrecords-selenium | b12220e3d4a1877161ddfe0caddd7ac0d698712c | [
"Apache-2.0"
] | null | null | null | loginpage.py | nycrecords/openrecords-selenium | b12220e3d4a1877161ddfe0caddd7ac0d698712c | [
"Apache-2.0"
] | null | null | null | loginpage.py | nycrecords/openrecords-selenium | b12220e3d4a1877161ddfe0caddd7ac0d698712c | [
"Apache-2.0"
] | null | null | null | import time
import unittest
class LoginPage(unittest.TestCase):
admin_user = 'bwaite@records.nyc.gov'
admin_pwd = 'Change4doris'
agency_user = 'testthree@records.nyc.gov'
agency_pwd = 'change4doris'
public_user = 'john.doris0860@gmail.com'
public_pwd = '31Ch@mbers'
def __init__(self, driver):
super().__init__()
self.driver = driver
def login(self, user_type):
if user_type == "admin":
self.driver.find_element_by_link_text("Log In").click()
time.sleep(1)
##driver.find_element_by_id("Ecom_User_ID").clear()
self.driver.find_element_by_id("employeeForm").submit()
time.sleep(1)
##add email
self.driver.find_element_by_id("Ecom_User_ID").send_keys(self.admin_user)
time.sleep(1)
##add password
self.driver.find_element_by_id("Ecom_Password").send_keys(self.admin_pwd)
time.sleep(1)
form = self.driver.find_element_by_name("IDPLogin")
time.sleep(1)
form.submit()
#check if user is currently logged on
if self.driver.find_element_by_id("continue-current-session").is_displayed():
self.driver.find_element_by_id("continue-current-session").click()
else:
pass
elif user_type == "user":
self.driver.find_element_by_link_text("Log In").click()
time.sleep(1)
##driver.find_element_by_id("Ecom_User_ID").clear()
self.driver.find_element_by_id("employeeForm").submit()
time.sleep(1)
##add email
self.driver.find_element_by_id("Ecom_User_ID").send_keys(self.agency_user)
time.sleep(1)
##add password
self.driver.find_element_by_id("Ecom_Password").send_keys(self.agency_pwd)
time.sleep(1)
form = self.driver.find_element_by_name("IDPLogin")
time.sleep(1)
form.submit()
#check if user is currently logged on
if self.driver.find_element_by_id("continue-current-session").is_displayed():
self.driver.find_element_by_id("continue-current-session").click()
else:
pass
elif user_type == "public":
self.driver.find_element_by_link_text("Log In").click()
time.sleep(1)
##add email
self.driver.find_element_by_id("Ecom_User_ID").send_keys(self.public_user)
time.sleep(1)
##add password
self.driver.find_element_by_id("Ecom_Password").send_keys(self.public_pwd)
time.sleep(1)
form = self.driver.find_element_by_name("IDPLogin")
time.sleep(1)
form.submit()
#check if user is currently logged on
if self.driver.find_element_by_id("continue-current-session").is_displayed():
self.driver.find_element_by_id("continue-current-session").click()
else:
pass
else:
pass
| 37.244186 | 90 | 0.579457 | 386 | 3,203 | 4.510363 | 0.170984 | 0.126364 | 0.214819 | 0.240092 | 0.808731 | 0.808731 | 0.808731 | 0.808731 | 0.808731 | 0.808731 | 0 | 0.009986 | 0.312207 | 3,203 | 85 | 91 | 37.682353 | 0.7803 | 0.083984 | 0 | 0.639344 | 0 | 0 | 0.14311 | 0.075972 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032787 | false | 0.114754 | 0.032787 | 0 | 0.180328 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 9 |
08357a9369374da01e0eff132d6b4b4cefa7dda4 | 68,890 | py | Python | cohesivenet/api/vns3/overlay_network_api.py | cohesive/python-cohesivenet-sdk | 5620acfa669ff97c94d9aa04a16facda37d648c1 | [
"MIT"
] | null | null | null | cohesivenet/api/vns3/overlay_network_api.py | cohesive/python-cohesivenet-sdk | 5620acfa669ff97c94d9aa04a16facda37d648c1 | [
"MIT"
] | null | null | null | cohesivenet/api/vns3/overlay_network_api.py | cohesive/python-cohesivenet-sdk | 5620acfa669ff97c94d9aa04a16facda37d648c1 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
VNS3 Controller API
Cohesive networks VNS3 API providing complete control of your network's addresses, routes, rules and edge # noqa: E501
The version of the OpenAPI document: 4.8
Contact: solutions@cohesive.net
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import re # noqa: F401
from cohesivenet.api_builder import VersionRouter
from cohesivenet.exceptions import ApiValueError
def get_clientpack(api_client, clientpack_name, **kwargs): # noqa: E501
"""get_clientpack # noqa: E501
Returns detailed information about all of the clientpacks in the topology.
If controllers's are properly peered, this information can come from any of the controllers. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.get_clientpack(client, clientpack_name, async_req=True)
:param async_req bool: execute request asynchronously
:param str clientpack_name: name of clientpack (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
collection_formats = {}
path_params = {"clientpack_name": clientpack_name}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["application/json"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/clientpacks/{clientpack_name}",
"GET",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="object", # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
def get_clientpacks(api_client, sorted=None, **kwargs): # noqa: E501
"""get_clientpacks # noqa: E501
Returns detailed information about all of the clientpacks in the topology.
If controllers's are properly peered, this information can come from any of the controllers. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.get_clientpacks(client, async_req=True)
:param async_req bool: execute request asynchronously
:param bool sorted: Sort resources
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
request_params = ["sorted"] # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
for param in [p for p in request_params if local_var_params.get(p) is not None]:
query_params.append((param, local_var_params[param])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["application/json"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/clientpacks",
"GET",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="object", # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
def get_clients_status(api_client, **kwargs): # noqa: E501
"""get_clients_status # noqa: E501
Describe overlay clients # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.get_clients_status(client, async_req=True)
:param async_req bool: execute request asynchronously
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["application/json"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/status/clients",
"GET",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="object", # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
def get_connected_subnets(api_client, extended_output=None, **kwargs): # noqa: E501
"""get_connected_subnets # noqa: E501
Provides information about any connected subnets. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.get_connected_subnets(async_req=True)
:param async_req bool: execute request asynchronously
:param bool extended_output: Receive verbose information about resources
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
request_params = ["extended_output"] # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
for param in [p for p in request_params if local_var_params.get(p) is not None]:
query_params.append((param, local_var_params[param])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["application/json"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/status/connected_subnets",
"GET",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="object", # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
def get_download_clientpack(
api_client, name=None, fileformat=None, fileFormat=None, **kwargs
): # noqa: E501
"""get_download_clientpack # noqa: E501
Returns clientpack file. Clientpacks are files with the necessary information and credentials for an overlay client to be connected to the VNS3 topology # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.get_download_clientpack(client, name="100.171.10.1", fileformat="conf", async_req=True)
:param async_req bool: execute request asynchronously
:param name str: name of clientpack
:param fileformat str: format for file (ovpn, conf, zip or tarball)
:param format str: format for file (ovpn, conf, zip or tarball) (alias for fileformat)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
request_params = ["name", "fileformat", "format", "fileFormat"] # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
for param in [p for p in request_params if local_var_params.get(p) is not None]:
query_params.append((param, local_var_params[param])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["text/plain", "application/octet-stream"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/clientpack",
"GET",
path_params,
query_params,
header_params,
body={},
post_params=form_params,
files=local_var_files,
response_type="file:%s" % (fileFormat or fileformat),
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
def get_download_named_clientpack(api_client, name, **kwargs): # noqa: E501
"""get_download_named_clientpack # noqa: E501
Returns clientpack file. Clientpacks are files with the necessary information and credentials for an overlay client to be connected to the VNS3 topology # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.get_download_named_clientpack(client, "100.171.10.1.ovpn", async_req=True)
:param async_req bool: execute request asynchronously
:param name str: name of clientpack with a suffic indicating file format e.g. ovpn, zip (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
request_params = [] # noqa: E501
collection_formats = {}
path_params = {"name": name}
file_parts = name.split('.')
if len(file_parts) != 2 or file_parts[1] not in ['ovpn', 'zip', 'conf', 'tarball']:
raise ApiValueError('name must have file type suffix: ovpn, zip, conf or tarball. e.g. 102_100_100_100.conf')
query_params = []
for param in [p for p in request_params if local_var_params.get(p) is not None]:
query_params.append((param, local_var_params[param])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["text/plain", "application/octet-stream"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/clientpack/{name}",
"GET",
path_params,
query_params,
header_params,
body={},
post_params=form_params,
files=local_var_files,
response_type="file:%s" % file_parts[1],
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
def post_checkout_next_clientpack(
api_client, low_ip=None, high_ip=None, include_disabled=None, **kwargs
): # noqa: E501
"""post_checkout_next_clientpack # noqa: E501
Get next sequential client pack. Provides sufficient information to call GET /clientpack.
Note, Using this resource against multiple controllers in the same topology could cause distribution of the
same clientpack to multiple overlay devices which is not allowed. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.post_checkout_next_clientpack(client, async_req=True)
:param low_ip str: Set the lower bound for the resulting IP
:param high_ip str: Set the upper bound for the resulting IP
:param include_disabled bool: Allows clientpack allocation from the disabled pool, for workflows where all clientpacks are disabled at the start.
:param async_req bool: execute request asynchronously
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
request_params = ["low_ip", "high_ip", "include_disabled"]
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = {}
for param in [p for p in request_params if local_var_params.get(p) is not None]:
body_params[param] = local_var_params[param]
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["application/json"]
) # noqa: E501
# HTTP header `Content-Type`
header_params["Content-Type"] = api_client.select_header_content_type( # noqa: E501
["application/json"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/clientpacks/next_available",
"POST",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="object", # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
def post_create_clientpack_tag(
api_client, clientpack_name, key=None, value=None, **kwargs
): # noqa: E501
"""post_create_clientpack_tag # noqa: E501
For tagging individual clientpacks. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.post_create_clientpack_tag(clientpack_name, create_clientpack_tag_request, async_req=True)
:param async_req bool: execute request asynchronously
:param str clientpack_name: name of clientpack (required)
:param str key: (required)
:param str value: (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
request_params = ["key", "value"] # noqa: E501
collection_formats = {}
path_params = {"clientpack_name": clientpack_name}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = {}
for param in [p for p in request_params if local_var_params.get(p) is not None]:
body_params[param] = local_var_params[param]
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["application/json"]
) # noqa: E501
# HTTP header `Content-Type`
header_params["Content-Type"] = api_client.select_header_content_type( # noqa: E501
["application/json"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/clientpack/{clientpack_name}",
"POST",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="object", # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
def delete_clientpack_tag(
api_client, clientpack_name, key=None, **kwargs
): # noqa: E501
"""delete_clientpack_tag # noqa: E501
For deleting individual clientpack tags # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.delete_clientpack_tag(clientpack_name, clientpack_tag_key_request, async_req=True)
:param str clientpack_name: name of clientpack (required)
:param str key: (required)
:param async_req bool: execute request asynchronously
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
request_params = ["key"] # noqa: E501
collection_formats = {}
path_params = {"clientpack_name": clientpack_name}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = {}
for param in [p for p in request_params if local_var_params.get(p) is not None]:
body_params[param] = local_var_params[param]
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["application/json"]
) # noqa: E501
# HTTP header `Content-Type`
header_params["Content-Type"] = api_client.select_header_content_type( # noqa: E501
["application/json"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/clientpack/{clientpack_name}",
"DELETE",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="object", # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
def post_reset_all_clients(api_client, **kwargs): # noqa: E501
"""post_reset_all_clients # noqa: E501
For resetting all of the connections of clients connected to the VNS3 Controller # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.post_reset_all_clients(async_req=True)
:param async_req bool: execute request asynchronously
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["application/json"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/clients/reset_all",
"POST",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="object", # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
def post_reset_client(api_client, name=None, disconnect=True, **kwargs): # noqa: E501
"""post_reset_client # noqa: E501
For resetting the connection of a client to a VNS3 Controller # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.post_reset_client(reset_overlay_client_request, async_req=True)
:param async_req bool: execute request asynchronously
:param name str: name of clientpack (required)
:param disconnect bool: true to disconnect
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
request_params = ["name", "disconnect"] # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = {}
for param in [p for p in request_params if local_var_params.get(p) is not None]:
body_params[param] = local_var_params[param]
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["application/json"]
) # noqa: E501
# HTTP header `Content-Type`
header_params["Content-Type"] = api_client.select_header_content_type( # noqa: E501
["application/json"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/client/reset",
"POST",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="object", # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
def post_add_clientpacks(api_client, requested_ips=None, **kwargs): # noqa: E501
"""put_add_clientpacks # noqa: E501
Incrementally add new clientpacks for use # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.put_add_clientpacks(client, requested_ips=requested_ips, async_req=True)
:param requested_ips str: CSV of IP addresses to be used for new clientpacks (required)
:param async_req bool: execute request asynchronously
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
request_params = ["requested_ips"] # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = {}
for param in [p for p in request_params if local_var_params.get(p) is not None]:
body_params[param] = local_var_params[param]
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["application/json"]
) # noqa: E501
# HTTP header `Content-Type`
header_params["Content-Type"] = api_client.select_header_content_type( # noqa: E501
["application/json"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/clientpacks/add_clientpacks",
"POST",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="object", # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
# TODO one of checked_out regenerated enabled
def put_update_clientpack(
api_client,
name=None,
enabled=None,
checked_out=None,
regenerate=None,
compression=None,
**kwargs
): # noqa: E501
"""put_clientpack # noqa: E501
Change properties of clientpacks; enabling or disabling, checking in or out,
regenerating, turning on compression # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.put_clientpack(client, name, checked_out=True,async_req=True)
:param name str: name of clientpack (required)
:param enabled bool: Enable or disable clientpacks.
:param checked_out bool: Update whether clientpacks are checked out and thus unavailable
:param regenerate bool: Regenerate this clientpack
:param compression str: Turn compression on or off. Can be "on" or "off" currently.
:param async_req bool: execute request asynchronously
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
request_params = [
"name",
"enabled",
"checked_out",
"regenerate",
"compression",
] # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = {}
for param in [p for p in request_params if local_var_params.get(p) is not None]:
body_params[param] = local_var_params[param]
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["application/json"]
) # noqa: E501
# HTTP header `Content-Type`
header_params["Content-Type"] = api_client.select_header_content_type( # noqa: E501
["application/json"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/clientpack",
"PUT",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="object", # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
def put_disconnect_clientpack(
api_client, clientpack_name, disconnect=True, **kwargs
): # noqa: E501
"""put_disconnect_clientpack # noqa: E501
Force disconnect client for named clientpack # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.put_disconnect_clientpack(client, clientpack_name, disconnect=True, async_req=True)
:param async_req bool: execute request asynchronously
:param str clientpack_name: name of clientpack (required)
:param disconnect bool: (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
request_params = ["disconnect"] # noqa: E501
collection_formats = {}
path_params = {"clientpack_name": clientpack_name}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = {}
for param in [p for p in request_params if local_var_params.get(p) is not None]:
body_params[param] = local_var_params[param]
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["application/json"]
) # noqa: E501
# HTTP header `Content-Type`
header_params["Content-Type"] = api_client.select_header_content_type( # noqa: E501
["application/json"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/clientpack/{clientpack_name}",
"PUT",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="object", # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
def put_update_all_clientpacks(
api_client, enabled=None, checked_out=None, compression=None, **kwargs
): # noqa: E501
"""put_update_clientpacks # noqa: E501
For bulk set of the enabled (true/false) state for all clientpacks and the checked_out (true/false) state for all clientpacks.
This enables a variety of work flows by calling these functions after key generation,
but before general provisioning of addresses to devivces # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.put_update_clientpacks(update_config_clientpack_request, async_req=True)
:param enabled bool: Enable all clientpacks
:param checked_out bool: Mark all clientpacks checked out
:param compression str: Turn compression on or off. Can be "on" or "off" currently.
:param async_req bool: execute request asynchronously
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
request_params = ["enabled", "checked_out", "compression"] # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = {}
for param in [p for p in request_params if local_var_params.get(p) is not None]:
body_params[param] = local_var_params[param]
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["application/json"]
) # noqa: E501
# HTTP header `Content-Type`
header_params["Content-Type"] = api_client.select_header_content_type( # noqa: E501
["application/json"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/clientpacks",
"PUT",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="object", # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
def get_global_link_policies(api_client, **kwargs): # noqa: E501
"""get_global_link_policies # noqa: E501
Get policies that apply to all Links at creation time.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.get_global_link_policies(client, async_req=True)
:param async_req bool: execute request asynchronously
:param bool sorted: Sort resources
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
request_params = [] # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
for param in [p for p in request_params if local_var_params.get(p) is not None]:
query_params.append((param, local_var_params[param])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["application/json"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/links/global-policies",
"GET",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="object", # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
def put_global_link_policies(api_client, policies=None, **kwargs): # noqa: E501
"""put_global_link_policies # noqa: E501
Update policies that apply to all Links at creation time.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.put_global_link_policies(client, policies="" async_req=True)
:param policies str or list[str]: newline delimited string or list of strings (lines) (required)
:param async_req bool: execute request asynchronously
:param bool sorted: Sort resources
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
collection_formats = {}
path_params = {}
request_params = ["policies"]
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = {}
for param in [p for p in request_params if local_var_params.get(p) is not None]:
body_params[param] = local_var_params[param]
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["application/json"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/links/global-policies",
"PUT",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="object", # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
def get_links(api_client, **kwargs): # noqa: E501
"""get_links # noqa: E501
Get all links
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.get_links(client, async_req=True)
:param async_req bool: execute request asynchronously
:param bool sorted: Sort resources
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
request_params = [] # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
for param in [p for p in request_params if local_var_params.get(p) is not None]:
query_params.append((param, local_var_params[param])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["application/json"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/links",
"GET",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="object", # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
def create_link(
api_client, id=None, name=None, description=None, conf=None, policies=None, **kwargs
): # noqa: E501
"""create_link # noqa: E501
Create link # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.create_link(async_req=True, **data)
:param id int: required. Creates interface of the form 'lnk{id}'
:param name str: required
:param description str:
:param conf str: Conf file for connection required
:param policies str or list[str]: optional additional policies to insert for connection
:param async_req bool: execute request asynchronously
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
collection_formats = {}
path_params = {}
request_params = ["id", "name", "description", "conf", "policies"]
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = {}
for param in [p for p in request_params if local_var_params.get(p) is not None]:
body_params[param] = local_var_params[param]
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["application/json"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/links",
"POST",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="object", # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
def get_link(api_client, link_id, **kwargs): # noqa: E501
"""get_link # noqa: E501
Retrieve link details
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.get_link(client, link_id, async_req=True)
:param link_id str: str of link. e.g. lnk0
:param async_req bool: execute request asynchronously
:param bool sorted: Sort resources
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
request_params = [] # noqa: E501
collection_formats = {}
path_params = {"link_id": link_id}
query_params = []
for param in [p for p in request_params if local_var_params.get(p) is not None]:
query_params.append((param, local_var_params[param])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["application/json"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/links/{link_id}",
"GET",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="object", # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
def put_update_link(
api_client,
link_id,
name=None,
description=None,
connected=None,
policies=None,
**kwargs
): # noqa: E501
"""put_update_link # noqa: E501
Update link details and state # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.put_update_link(link_id, async_req=True, **data)
:param link_id int: ID of link
:param name str:
:param description str:
:param connected bool:
:param policies str or list[str]:
:param async_req bool: execute request asynchronously
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
collection_formats = {}
path_params = {"link_id": link_id}
request_params = ["name", "description", "connected", "policies"]
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = {}
for param in [p for p in request_params if local_var_params.get(p) is not None]:
body_params[param] = local_var_params[param]
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["application/json"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/links/{link_id}",
"PUT",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="object", # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
def delete_link(api_client, link_id, **kwargs): # noqa: E501
"""delete_link # noqa: E501
Delete link
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.delete_link(client, link_id, async_req=True)
:param link_id str: str of link. e.g. lnk0
:param async_req bool: execute request asynchronously
:param bool sorted: Sort resources
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
request_params = [] # noqa: E501
collection_formats = {}
path_params = {"link_id": link_id}
query_params = []
for param in [p for p in request_params if local_var_params.get(p) is not None]:
query_params.append((param, local_var_params[param])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["application/json"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/links/{link_id}",
"DELETE",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="object", # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
def get_link_logs(api_client, link_id, lines=None, sort=None, **kwargs): # noqa: E501
"""get_link_logs # noqa: E501
Retrieve link logs
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.get_link_logs(client, link_id, async_req=True)
:param link_id str: str of link. e.g. lnk0
:param lines int: number of lines to return. default: 25
:param sort str: asc or desc, default asc
:param async_req bool: execute request asynchronously
:param bool sorted: Sort resources
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
request_params = ["lines", "sort"] # noqa: E501
collection_formats = {}
path_params = {"link_id": link_id}
query_params = []
for param in [p for p in request_params if local_var_params.get(p) is not None]:
query_params.append((param, local_var_params[param])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["application/json"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/links/{link_id}/logs",
"GET",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="object", # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
def create_link_tag(api_client, link_id, key=None, value=None, **kwargs): # noqa: E501
"""create_link_tag # noqa: E501
Create link tag # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.create_link_tag(link_id, async_req=True, **data)
:param link_id str: str of link. e.g. lnk0
:param key str: required
:param value str: required
:param async_req bool: execute request asynchronously
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
collection_formats = {}
path_params = {}
request_params = ["key", "value"]
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = {}
for param in [p for p in request_params if local_var_params.get(p) is not None]:
body_params[param] = local_var_params[param]
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["application/json"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/links/{link_id}/tags",
"POST",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="object", # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
def delete_link_tag(api_client, link_id, tag_key, **kwargs): # noqa: E501
"""delete_link_tag # noqa: E501
Delete link tag by key
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> response = await api.delete_link_tag(client, link_id, tag_key, async_req=True)
:param link_id str: str of link. e.g. lnk0
:param tag_key str: key of tag
:param async_req bool: execute request asynchronously
:param bool sorted: Sort resources
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: APIResponse or awaitable if async
"""
local_var_params = locals()
request_params = [] # noqa: E501
collection_formats = {}
path_params = {"link_id": link_id, "tag_key": tag_key}
query_params = []
for param in [p for p in request_params if local_var_params.get(p) is not None]:
query_params.append((param, local_var_params[param])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params["Accept"] = api_client.select_header_accept(
["application/json"]
) # noqa: E501
# Authentication setting
auth_settings = ["ApiTokenAuth", "basicAuth"] # noqa: E501
return api_client.call_api(
"/links/{link_id}/tags/{tag_key}",
"DELETE",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="object", # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get("async_req"),
_return_http_data_only=local_var_params.get(
"_return_http_data_only"
), # noqa: E501
_preload_content=local_var_params.get("_preload_content", True),
_request_timeout=local_var_params.get("_request_timeout"),
collection_formats=collection_formats,
)
class OverlayNetworkApiRouter(VersionRouter):
function_library = {
"delete_clientpack_tag": {"4.8.4-5.1.5": delete_clientpack_tag},
"get_clientpack": {"4.8.4-5.1.5": get_clientpack},
"get_clientpacks": {"4.8.4-5.1.5": get_clientpacks},
"get_clients_status": {"4.8.4-5.1.5": get_clients_status},
"get_connected_subnets": {"4.8.4-5.1.5": get_connected_subnets},
"get_download_clientpack": {"4.8.4-5.1.5": get_download_clientpack},
"get_download_named_clientpack": {"5.0.2-5.1.5": get_download_named_clientpack},
"post_checkout_next_clientpack": {"4.8.4-5.1.5": post_checkout_next_clientpack},
"post_create_clientpack_tag": {"4.8.4-5.1.5": post_create_clientpack_tag},
"post_reset_all_clients": {"4.8.4-5.1.5": post_reset_all_clients},
"post_reset_client": {"4.8.4-5.1.5": post_reset_client},
"post_add_clientpacks": {"4.8.4-5.1.5": post_add_clientpacks},
"put_update_clientpack": {"4.8.4-5.1.5": put_update_clientpack},
"put_disconnect_clientpack": {"4.8.4-5.1.5": put_disconnect_clientpack},
"put_update_all_clientpacks": {"4.8.4-5.1.5": put_update_all_clientpacks},
"get_global_link_policies": {"5.1.1-5.1.5": get_global_link_policies},
"put_global_link_policies": {"5.1.1-5.1.5": put_global_link_policies},
"get_links": {"5.1.1-5.1.5": get_links},
"create_link": {"5.1.1-5.1.5": create_link},
"get_link": {"5.1.1-5.1.5": get_link},
"put_update_link": {"5.1.1-5.1.5": put_update_link},
"delete_link": {"5.1.1-5.1.5": delete_link},
"get_link_logs": {"5.1.1-5.1.5": get_link_logs},
"create_link_tag": {"5.1.1-5.1.5": create_link_tag},
"delete_link_tag": {"5.1.1-5.1.5": delete_link_tag},
}
| 35.842872 | 172 | 0.641617 | 8,246 | 68,890 | 5.08586 | 0.041353 | 0.041776 | 0.056417 | 0.049454 | 0.892794 | 0.870619 | 0.860198 | 0.852067 | 0.840646 | 0.836282 | 0 | 0.017179 | 0.275846 | 68,890 | 1,921 | 173 | 35.86153 | 0.823481 | 0.453927 | 0 | 0.825182 | 0 | 0.001041 | 0.138026 | 0.034019 | 0 | 0 | 0 | 0.000521 | 0 | 1 | 0.026015 | false | 0 | 0.004162 | 0 | 0.058273 | 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 |
f278b545643ebcc259f7680c7eec30d5be0b4600 | 120 | py | Python | tensordata/report/__init__.py | Hourout/tensordata | cbef6742ee0d3bfc4b886358fc01618bb5b63603 | [
"Apache-2.0"
] | 13 | 2019-01-08T10:22:39.000Z | 2020-06-17T10:02:47.000Z | tensordata/report/__init__.py | Hourout/tensordata | cbef6742ee0d3bfc4b886358fc01618bb5b63603 | [
"Apache-2.0"
] | null | null | null | tensordata/report/__init__.py | Hourout/tensordata | cbef6742ee0d3bfc4b886358fc01618bb5b63603 | [
"Apache-2.0"
] | 1 | 2020-06-17T10:02:49.000Z | 2020-06-17T10:02:49.000Z | from tensordata.report import p2peye
from tensordata.report import weather_china
from tensordata.report._china import *
| 30 | 43 | 0.858333 | 16 | 120 | 6.3125 | 0.4375 | 0.415842 | 0.594059 | 0.514851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0.1 | 120 | 3 | 44 | 40 | 0.925926 | 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 |
299188e8f3810943995130e1609114067af40e65 | 1,255 | py | Python | custom_components/fpl/sensor_DailyUsageSensor.py | Dominic7/hass-fpl | fa5ba8a1b6f2e0b0c812edfe5568074c7c42a764 | [
"MIT"
] | 12 | 2020-10-16T15:13:03.000Z | 2022-03-23T15:16:00.000Z | custom_components/fpl/sensor_DailyUsageSensor.py | Dominic7/hass-fpl | fa5ba8a1b6f2e0b0c812edfe5568074c7c42a764 | [
"MIT"
] | 27 | 2020-01-18T19:30:32.000Z | 2022-03-28T22:27:33.000Z | custom_components/fpl/sensor_DailyUsageSensor.py | Dominic7/hass-fpl | fa5ba8a1b6f2e0b0c812edfe5568074c7c42a764 | [
"MIT"
] | 16 | 2020-06-16T16:45:37.000Z | 2022-03-24T03:26:03.000Z | from .fplEntity import FplEntity
class FplDailyUsageSensor(FplEntity):
def __init__(self, coordinator, config, account):
super().__init__(coordinator, config, account, "Daily Usage")
@property
def state(self):
data = self.getData("daily_usage")
if len(data) > 0:
return data[-1]["cost"]
return None
def defineAttributes(self):
"""Return the state attributes."""
data = self.getData("daily_usage")
if len(data) > 0:
return {"date": data[-1]["date"]}
return {}
@property
def icon(self):
return "mdi:currency-usd"
class FplDailyUsageKWHSensor(FplEntity):
def __init__(self, coordinator, config, account):
super().__init__(coordinator, config, account, "Daily Usage KWH")
@property
def state(self):
data = self.getData("daily_usage")
if len(data) > 0:
return data[-1]["usage"]
return None
def defineAttributes(self):
"""Return the state attributes."""
data = self.getData("daily_usage")
if len(data) > 0:
return {"date": data[-1]["date"]}
return {}
@property
def icon(self):
return "mdi:currency-usd"
| 22.410714 | 73 | 0.580876 | 135 | 1,255 | 5.251852 | 0.259259 | 0.084626 | 0.135402 | 0.112835 | 0.87165 | 0.87165 | 0.87165 | 0.87165 | 0.87165 | 0.87165 | 0 | 0.008949 | 0.287649 | 1,255 | 55 | 74 | 22.818182 | 0.784116 | 0.045418 | 0 | 0.8 | 0 | 0 | 0.106992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0 | 0.028571 | 0.057143 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 9 |
d9c09449150d606ffbe8895030df4b2c34cbb170 | 227 | py | Python | my_classes/.history/ModulesPackages_PackageNamespaces/example3a/main_20210726120418.py | minefarmer/deep-Dive-1 | b0675b853180c5b5781888266ea63a3793b8d855 | [
"Unlicense"
] | null | null | null | my_classes/.history/ModulesPackages_PackageNamespaces/example3a/main_20210726120418.py | minefarmer/deep-Dive-1 | b0675b853180c5b5781888266ea63a3793b8d855 | [
"Unlicense"
] | null | null | null | my_classes/.history/ModulesPackages_PackageNamespaces/example3a/main_20210726120418.py | minefarmer/deep-Dive-1 | b0675b853180c5b5781888266ea63a3793b8d855 | [
"Unlicense"
] | null | null | null |
print('======================================')
print('Running main.py - module name:'.format())
print('======================================')
print('Running module1.py')
def hello():
print('module1 says Hello!')
| 15.133333 | 48 | 0.414097 | 19 | 227 | 4.947368 | 0.578947 | 0.212766 | 0.361702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00995 | 0.114537 | 227 | 14 | 49 | 16.214286 | 0.457711 | 0 | 0 | 0.333333 | 0 | 0 | 0.635556 | 0.337778 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0 | 0 | 0.166667 | 0.833333 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
d9c1291971fdb88583a958ce6258ab25e556b154 | 164 | py | Python | tweet_classifier/__init__.py | amr-amr/CrisisTweetMap | 007a32cd23dc0ff5156f6271fbd49198c34077f6 | [
"MIT"
] | 2 | 2020-02-01T19:11:09.000Z | 2020-08-02T13:10:41.000Z | tweet_classifier/__init__.py | mirandrom/CrisisTweetMap | 007a32cd23dc0ff5156f6271fbd49198c34077f6 | [
"MIT"
] | null | null | null | tweet_classifier/__init__.py | mirandrom/CrisisTweetMap | 007a32cd23dc0ff5156f6271fbd49198c34077f6 | [
"MIT"
] | null | null | null | from tweet_classifier.dataset_readers import *
from tweet_classifier.layers import *
from tweet_classifier.models import *
from tweet_classifier.predictors import * | 41 | 46 | 0.859756 | 21 | 164 | 6.47619 | 0.428571 | 0.264706 | 0.558824 | 0.551471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091463 | 164 | 4 | 47 | 41 | 0.912752 | 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 |
8a30975bbc487543808b4287a31dc96eeedb3249 | 14,007 | py | Python | utils/quaternion_layers.py | eleGAN23/QVAE | 7315aae7a03637dcc2e2226644d591c4f034527e | [
"MIT"
] | 10 | 2021-03-25T11:56:37.000Z | 2021-12-25T19:40:29.000Z | utils/quaternion_layers.py | eleGAN23/QVAE | 7315aae7a03637dcc2e2226644d591c4f034527e | [
"MIT"
] | null | null | null | utils/quaternion_layers.py | eleGAN23/QVAE | 7315aae7a03637dcc2e2226644d591c4f034527e | [
"MIT"
] | 1 | 2021-12-28T10:39:57.000Z | 2021-12-28T10:39:57.000Z | ##########################################################
# pytorch-qnn v1.0
# Titouan Parcollet
# LIA, Université d'Avignon et des Pays du Vaucluse
# ORKIS, Aix-en-provence
# October 2018
##########################################################
import numpy as np
from numpy.random import RandomState
import torch
from torch.autograd import Variable
import torch.nn.functional as F
import torch.nn as nn
from torch.nn.parameter import Parameter
from torch.nn import Module
from quaternion_ops import *
import math
import sys
class QuaternionTransposeConv(Module):
r"""Applies a Quaternion Transposed Convolution (or Deconvolution) to the incoming data.
"""
def __init__(self, in_channels, out_channels, kernel_size, stride,
dilatation=1, padding=0, output_padding=0, groups=1, bias=True, init_criterion='he',
weight_init='quaternion', seed=None, operation='convolution2d', rotation=False,
quaternion_format=False):
super(QuaternionTransposeConv, self).__init__()
self.in_channels = in_channels // 4
self.out_channels = out_channels // 4
self.stride = stride
self.padding = padding
self.output_padding = output_padding
self.groups = groups
self.dilatation = dilatation
self.init_criterion = init_criterion
self.weight_init = weight_init
self.seed = seed if seed is not None else np.random.randint(0,1234)
self.rng = RandomState(self.seed)
self.operation = operation
self.rotation = rotation
self.quaternion_format = quaternion_format
self.winit = {'quaternion': quaternion_init,
'unitary' : unitary_init,
'random' : random_init}[self.weight_init]
(self.kernel_size, self.w_shape) = get_kernel_and_weight_shape( self.operation,
self.out_channels, self.in_channels, kernel_size )
self.r_weight = Parameter(torch.Tensor(*self.w_shape))
self.i_weight = Parameter(torch.Tensor(*self.w_shape))
self.j_weight = Parameter(torch.Tensor(*self.w_shape))
self.k_weight = Parameter(torch.Tensor(*self.w_shape))
if bias:
self.bias = Parameter(torch.Tensor(out_channels))
else:
self.register_parameter('bias', None)
self.reset_parameters()
def reset_parameters(self):
affect_init_conv(self.r_weight, self.i_weight, self.j_weight, self.k_weight,
self.kernel_size, self.winit, self.rng, self.init_criterion)
if self.bias is not None:
self.bias.data.zero_()
def forward(self, input):
if self.rotation:
return quaternion_tranpose_conv_rotation(input, self.r_weight, self.i_weight,
self.j_weight, self.k_weight, self.bias, self.stride, self.padding,
self.output_padding, self.groups, self.dilatation, self.quaternion_format)
else:
return quaternion_transpose_conv(input, self.r_weight, self.i_weight, self.j_weight,
self.k_weight, self.bias, self.stride, self.padding, self.output_padding,
self.groups, self.dilatation)
def __repr__(self):
return self.__class__.__name__ + '(' \
+ 'in_channels=' + str(self.in_channels) \
+ ', out_channels=' + str(self.out_channels) \
+ ', bias=' + str(self.bias is not None) \
+ ', kernel_size=' + str(self.kernel_size) \
+ ', stride=' + str(self.stride) \
+ ', padding=' + str(self.padding) \
+ ', dilation=' + str(self.dilation) \
+ ', init_criterion=' + str(self.init_criterion) \
+ ', weight_init=' + str(self.weight_init) \
+ ', seed=' + str(self.seed) \
+ ', operation=' + str(self.operation) + ')'
class QuaternionConv(Module):
r"""Applies a Quaternion Convolution to the incoming data.
"""
def __init__(self, in_channels, out_channels, kernel_size, stride,
dilatation=1, padding=0, groups=1, bias=True, init_criterion='glorot',
weight_init='quaternion', seed=None, operation='convolution2d', rotation=False, quaternion_format=True, scale=False):
super(QuaternionConv, self).__init__()
self.in_channels = in_channels // 4
self.out_channels = out_channels // 4
self.stride = stride
self.padding = padding
self.groups = groups
self.dilatation = dilatation
self.init_criterion = init_criterion
self.weight_init = weight_init
self.seed = seed if seed is not None else np.random.randint(0,1234)
self.rng = RandomState(self.seed)
self.operation = operation
self.rotation = rotation
self.quaternion_format = quaternion_format
self.winit = {'quaternion': quaternion_init,
'unitary' : unitary_init,
'random' : random_init}[self.weight_init]
self.scale = scale
(self.kernel_size, self.w_shape) = get_kernel_and_weight_shape(self.operation,
self.in_channels, self.out_channels, kernel_size)
self.r_weight = Parameter(torch.Tensor(*self.w_shape))
self.i_weight = Parameter(torch.Tensor(*self.w_shape))
self.j_weight = Parameter(torch.Tensor(*self.w_shape))
self.k_weight = Parameter(torch.Tensor(*self.w_shape))
# print("QuaternionConv_init")
# print(in_channels)
# print(self.in_channels)
# print("out channels")
# print(out_channels)
# print(self.out_channels)
if self.scale:
self.scale_param = Parameter(torch.Tensor(self.r_weight.shape))
else:
self.scale_param = None
if self.rotation:
self.zero_kernel = Parameter(torch.zeros(self.r_weight.shape), requires_grad=False)
if bias:
self.bias = Parameter(torch.Tensor(out_channels))
else:
self.register_parameter('bias', None)
self.reset_parameters()
def reset_parameters(self):
affect_init_conv(self.r_weight, self.i_weight, self.j_weight, self.k_weight,
self.kernel_size, self.winit, self.rng, self.init_criterion)
if self.scale_param is not None:
torch.nn.init.xavier_uniform_(self.scale_param.data)
if self.bias is not None:
self.bias.data.zero_()
def forward(self, input):
if self.rotation:
return quaternion_conv_rotation(input, self.zero_kernel, self.r_weight, self.i_weight, self.j_weight,
self.k_weight, self.bias, self.stride, self.padding, self.groups, self.dilatation,
self.quaternion_format, self.scale_param)
else:
return quaternion_conv(input, self.r_weight, self.i_weight, self.j_weight,
self.k_weight, self.bias, self.stride, self.padding, self.groups, self.dilatation)
def __repr__(self):
return self.__class__.__name__ + '(' \
+ 'in_channels=' + str(self.in_channels) \
+ ', out_channels=' + str(self.out_channels) \
+ ', bias=' + str(self.bias is not None) \
+ ', kernel_size=' + str(self.kernel_size) \
+ ', stride=' + str(self.stride) \
+ ', padding=' + str(self.padding) \
+ ', init_criterion=' + str(self.init_criterion) \
+ ', weight_init=' + str(self.weight_init) \
+ ', seed=' + str(self.seed) \
+ ', rotation=' + str(self.rotation) \
+ ', q_format=' + str(self.quaternion_format) \
+ ', operation=' + str(self.operation) + ')'
class QuaternionLinearAutograd(Module):
r"""Applies a quaternion linear transformation to the incoming data. A custom
Autograd function is call to drastically reduce the VRAM consumption. Nonetheless, computing
time is also slower compared to QuaternionLinear().
"""
def __init__(self, in_features, out_features, bias=True,
init_criterion='glorot', weight_init='quaternion',
seed=None, rotation=False, quaternion_format=True, scale=False):
super(QuaternionLinearAutograd, self).__init__()
self.in_features = in_features//4
self.out_features = out_features//4
self.rotation = rotation
self.quaternion_format = quaternion_format
self.r_weight = Parameter(torch.Tensor(self.in_features, self.out_features))
self.i_weight = Parameter(torch.Tensor(self.in_features, self.out_features))
self.j_weight = Parameter(torch.Tensor(self.in_features, self.out_features))
self.k_weight = Parameter(torch.Tensor(self.in_features, self.out_features))
self.scale = scale
if self.scale:
self.scale_param = Parameter(torch.Tensor(self.in_features, self.out_features))
else:
self.scale_param = None
if self.rotation:
self.zero_kernel = Parameter(torch.zeros(self.r_weight.shape), requires_grad=False)
if bias:
self.bias = Parameter(torch.Tensor(self.out_features*4))
else:
self.register_parameter('bias', None)
self.init_criterion = init_criterion
self.weight_init = weight_init
self.seed = seed if seed is not None else np.random.randint(0,1234)
self.rng = RandomState(self.seed)
self.reset_parameters()
def reset_parameters(self):
winit = {'quaternion': quaternion_init, 'unitary': unitary_init, 'random': random_init}[self.weight_init]
if self.scale_param is not None:
torch.nn.init.xavier_uniform_(self.scale_param.data)
if self.bias is not None:
self.bias.data.fill_(0)
affect_init(self.r_weight, self.i_weight, self.j_weight, self.k_weight, winit,
self.rng, self.init_criterion)
def forward(self, input):
# See the autograd section for explanation of what happens here.
if self.rotation:
return quaternion_linear_rotation(input, self.zero_kernel, self.r_weight, self.i_weight, self.j_weight, self.k_weight, self.bias, self.quaternion_format, self.scale_param)
else:
return quaternion_linear(input, self.r_weight, self.i_weight, self.j_weight, self.k_weight, self.bias)
def __repr__(self):
return self.__class__.__name__ + '(' \
+ 'in_features=' + str(self.in_features) \
+ ', out_features=' + str(self.out_features) \
+ ', bias=' + str(self.bias is not None) \
+ ', init_criterion=' + str(self.init_criterion) \
+ ', weight_init=' + str(self.weight_init) \
+ ', rotation=' + str(self.rotation) \
+ ', seed=' + str(self.seed) + ')'
class QuaternionLinear(Module):
r"""Applies a quaternion linear transformation to the incoming data.
"""
def __init__(self, in_features, out_features, bias=True,
init_criterion='he', weight_init='quaternion',
seed=None):
super(QuaternionLinear, self).__init__()
self.in_features = in_features//4
self.out_features = out_features//4
self.r_weight = Parameter(torch.Tensor(self.in_features, self.out_features))
self.i_weight = Parameter(torch.Tensor(self.in_features, self.out_features))
self.j_weight = Parameter(torch.Tensor(self.in_features, self.out_features))
self.k_weight = Parameter(torch.Tensor(self.in_features, self.out_features))
if bias:
self.bias = Parameter(torch.Tensor(self.out_features*4))
else:
self.register_parameter('bias', None)
self.init_criterion = init_criterion
self.weight_init = weight_init
self.seed = seed if seed is not None else np.random.randint(0,1234)
self.rng = RandomState(self.seed)
self.reset_parameters()
def reset_parameters(self):
winit = {'quaternion': quaternion_init,
'unitary': unitary_init}[self.weight_init]
if self.bias is not None:
self.bias.data.fill_(0)
affect_init(self.r_weight, self.i_weight, self.j_weight, self.k_weight, winit,
self.rng, self.init_criterion)
def forward(self, input):
# See the autograd section for explanation of what happens here.
if input.dim() == 3:
T, N, C = input.size()
input = input.view(T * N, C)
output = QuaternionLinearFunction.apply(input, self.r_weight, self.i_weight, self.j_weight, self.k_weight, self.bias)
output = output.view(T, N, output.size(1))
elif input.dim() == 2:
output = QuaternionLinearFunction.apply(input, self.r_weight, self.i_weight, self.j_weight, self.k_weight, self.bias)
else:
raise NotImplementedError
return output
def __repr__(self):
return self.__class__.__name__ + '(' \
+ 'in_features=' + str(self.in_features) \
+ ', out_features=' + str(self.out_features) \
+ ', bias=' + str(self.bias is not None) \
+ ', init_criterion=' + str(self.init_criterion) \
+ ', weight_init=' + str(self.weight_init) \
+ ', seed=' + str(self.seed) + ')'
| 44.60828 | 183 | 0.597059 | 1,615 | 14,007 | 4.943034 | 0.100929 | 0.057622 | 0.055117 | 0.060128 | 0.857447 | 0.834523 | 0.83277 | 0.83277 | 0.819116 | 0.796442 | 0 | 0.005022 | 0.289141 | 14,007 | 313 | 184 | 44.750799 | 0.796726 | 0.058899 | 0 | 0.742739 | 0 | 0 | 0.047158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06639 | false | 0 | 0.045643 | 0.016598 | 0.174274 | 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 |
8a63aef46929639cfe26931d44a78de2bcdfd49a | 7,121 | py | Python | lib/fpn/proposal_assignments/proposal_assignments_gtbox.py | ivalab/Scene_Graph_Parsing | 179b1653defe615de98165784ae3a527f822bf3a | [
"MIT"
] | null | null | null | lib/fpn/proposal_assignments/proposal_assignments_gtbox.py | ivalab/Scene_Graph_Parsing | 179b1653defe615de98165784ae3a527f822bf3a | [
"MIT"
] | null | null | null | lib/fpn/proposal_assignments/proposal_assignments_gtbox.py | ivalab/Scene_Graph_Parsing | 179b1653defe615de98165784ae3a527f822bf3a | [
"MIT"
] | null | null | null | from lib.pytorch_misc import enumerate_by_image, gather_nd, random_choose
from lib.fpn.box_utils import bbox_preds, center_size, bbox_overlaps
import torch
from lib.pytorch_misc import diagonal_inds, to_variable
from config import RELS_PER_IMG, REL_FG_FRACTION
@to_variable
def proposal_assignments_gtbox(rois, gt_boxes, gt_classes, gt_rels, image_offset, fg_thresh=0.5):
"""
Assign object detection proposals to ground-truth targets. Produces proposal
classification labels and bounding-box regression targets.
:param rpn_rois: [img_ind, x1, y1, x2, y2]
:param gt_boxes: [num_boxes, 4] array of x0, y0, x1, y1]. Not needed it seems
:param gt_classes: [num_boxes, 2] array of [img_ind, class]
Note, the img_inds here start at image_offset
:param gt_rels [num_boxes, 4] array of [img_ind, box_0, box_1, rel type].
Note, the img_inds here start at image_offset
:param Overlap threshold for a ROI to be considered foreground (if >= FG_THRESH)
:return:
rois: [num_rois, 5]
labels: [num_rois] array of labels
bbox_targets [num_rois, 4] array of targets for the labels.
rel_labels: [num_rels, 4] (img ind, box0 ind, box1ind, rel type)
"""
im_inds = rois[:, 0].long()
num_im = im_inds[-1] + 1
# Offset the image indices in fg_rels to refer to absolute indices (not just within img i)
fg_rels = gt_rels.clone()
fg_rels[:,0] -= image_offset
offset = {}
for i, s, e in enumerate_by_image(im_inds):
offset[i] = s
for i, s, e in enumerate_by_image(fg_rels[:, 0]):
fg_rels[s:e, 1:3] += offset[i]
# Try ALL things, not just intersections.
is_cand = (im_inds[:, None] == im_inds[None])
is_cand.view(-1)[diagonal_inds(is_cand)] = 0
# # Compute salience
# gt_inds = fg_rels[:, 1:3].contiguous().view(-1)
# labels_arange = labels.data.new(labels.size(0))
# torch.arange(0, labels.size(0), out=labels_arange)
# salience_labels = ((gt_inds[:, None] == labels_arange[None]).long().sum(0) > 0).long()
# labels = torch.stack((labels, salience_labels), 1)
# Add in some BG labels
# NOW WE HAVE TO EXCLUDE THE FGs.
# TODO: check if this causes an error if many duplicate GTs havent been filtered out
is_cand.view(-1)[fg_rels[:,1]*im_inds.size(0) + fg_rels[:,2]] = 0
is_bgcand = is_cand.nonzero()
# TODO: make this sample on a per image case
# If too many then sample
num_fg = min(fg_rels.size(0), int(RELS_PER_IMG * REL_FG_FRACTION * num_im))
if num_fg < fg_rels.size(0):
fg_rels = random_choose(fg_rels, num_fg)
# If too many then sample
num_bg = min(is_bgcand.size(0) if is_bgcand.dim() > 0 else 0,
int(RELS_PER_IMG * num_im) - num_fg)
if num_bg > 0:
bg_rels = torch.cat((
im_inds[is_bgcand[:, 0]][:, None],
is_bgcand,
(is_bgcand[:, 0, None] < -10).long(),
), 1)
if num_bg < is_bgcand.size(0):
bg_rels = random_choose(bg_rels, num_bg)
rel_labels = torch.cat((fg_rels, bg_rels), 0)
else:
rel_labels = fg_rels
# last sort by rel.
_, perm = torch.sort(rel_labels[:, 0]*(gt_boxes.size(0)**2) +
rel_labels[:,1]*gt_boxes.size(0) + rel_labels[:,2])
rel_labels = rel_labels[perm].contiguous()
labels = gt_classes[:,1].contiguous()
return rois, labels, rel_labels
@to_variable
def proposal_assignments_gtbox_3labels(rois, gt_boxes, gt_classes, gt_aff_classes, gt_att_classes,
gt_rels, image_offset, fg_thresh=0.5):
"""
Assign object detection proposals to ground-truth targets. Produces proposal
classification labels and bounding-box regression targets.
:param rpn_rois: [img_ind, x1, y1, x2, y2]
:param gt_boxes: [num_boxes, 4] array of x0, y0, x1, y1]. Not needed it seems
:param gt_classes: [num_boxes, 2] array of [img_ind, class]
Note, the img_inds here start at image_offset
:param gt_aff_classes: [num_boxes, 5] array of [img_ind, aff_class(4 wo bg)]
Note, the img_inds here start at image_offset
:param gt_att_classes: [num_boxes, 6] array of [img_ind, att_class(5 wo bg)]
Note, the img_inds here start at image_offset
:param gt_rels [num_boxes, 4] array of [img_ind, box_0, box_1, rel type].
Note, the img_inds here start at image_offset
:param Overlap threshold for a ROI to be considered foreground (if >= FG_THRESH)
:return:
rois: [num_rois, 5]
labels: [num_rois] array of labels
bbox_targets [num_rois, 4] array of targets for the labels.
rel_labels: [num_rels, 4] (img ind, box0 ind, box1ind, rel type)
"""
im_inds = rois[:,0].long()
num_im = im_inds[-1] + 1
# Offset the image indices in fg_rels to refer to absolute indices (not just within img i)
fg_rels = gt_rels.clone()
fg_rels[:,0] -= image_offset
offset = {}
for i, s, e in enumerate_by_image(im_inds):
offset[i] = s
for i, s, e in enumerate_by_image(fg_rels[:, 0]):
fg_rels[s:e, 1:3] += offset[i]
# Try ALL things, not just intersections.
is_cand = (im_inds[:, None] == im_inds[None])
is_cand.view(-1)[diagonal_inds(is_cand)] = 0
# # Compute salience
# gt_inds = fg_rels[:, 1:3].contiguous().view(-1)
# labels_arange = labels.data.new(labels.size(0))
# torch.arange(0, labels.size(0), out=labels_arange)
# salience_labels = ((gt_inds[:, None] == labels_arange[None]).long().sum(0) > 0).long()
# labels = torch.stack((labels, salience_labels), 1)
# Add in some BG labels
# NOW WE HAVE TO EXCLUDE THE FGs.
# TODO: check if this causes an error if many duplicate GTs havent been filtered out
is_cand.view(-1)[fg_rels[:,1]*im_inds.size(0) + fg_rels[:,2]] = 0
is_bgcand = is_cand.nonzero()
# TODO: make this sample on a per image case
# If too many then sample
num_fg = min(fg_rels.size(0), int(RELS_PER_IMG * REL_FG_FRACTION * num_im))
if num_fg < fg_rels.size(0):
fg_rels = random_choose(fg_rels, num_fg)
# If too many then sample
num_bg = min(is_bgcand.size(0) if is_bgcand.dim() > 0 else 0,
int(RELS_PER_IMG * num_im) - num_fg)
if num_bg > 0:
bg_rels = torch.cat((
im_inds[is_bgcand[:, 0]][:, None],
is_bgcand,
torch.zeros((is_bgcand.size(0), fg_rels.size(1)-3), device='cuda').long(),
), 1)
if num_bg < is_bgcand.size(0):
bg_rels = random_choose(bg_rels, num_bg)
rel_labels = torch.cat((fg_rels, bg_rels), 0)
else:
rel_labels = fg_rels
# last sort by rel.
_, perm = torch.sort(rel_labels[:, 0]*(gt_boxes.size(0)**2) +
rel_labels[:,1]*gt_boxes.size(0) + rel_labels[:,2])
rel_labels = rel_labels[perm].contiguous()
labels = gt_classes[:,1].contiguous()
aff_labels = gt_aff_classes[:, 1:].contiguous()
att_labels = gt_att_classes[:, 1:].contiguous()
return rois, labels, aff_labels, att_labels, rel_labels | 40.460227 | 98 | 0.641483 | 1,141 | 7,121 | 3.766871 | 0.148992 | 0.040484 | 0.011401 | 0.018148 | 0.910191 | 0.899023 | 0.856678 | 0.856678 | 0.856678 | 0.856678 | 0 | 0.024476 | 0.236905 | 7,121 | 176 | 99 | 40.460227 | 0.76647 | 0.446005 | 0 | 0.825 | 0 | 0 | 0.001063 | 0 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.025 | false | 0 | 0.0625 | 0 | 0.1125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
8a7bd5b7f0931c60c762be8a9c4b34dfb9c20625 | 22,727 | py | Python | sdk/python/pulumi_docker/remote_image.py | gadic-ci/pulumi-docker | 85ad3fb932be77b8e0d3a29306ac1f2e50ec9111 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_docker/remote_image.py | gadic-ci/pulumi-docker | 85ad3fb932be77b8e0d3a29306ac1f2e50ec9111 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_docker/remote_image.py | gadic-ci/pulumi-docker | 85ad3fb932be77b8e0d3a29306ac1f2e50ec9111 | [
"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__ = ['RemoteImageArgs', 'RemoteImage']
@pulumi.input_type
class RemoteImageArgs:
def __init__(__self__, *,
name: pulumi.Input[str],
build: Optional[pulumi.Input['RemoteImageBuildArgs']] = None,
force_remove: Optional[pulumi.Input[bool]] = None,
keep_locally: Optional[pulumi.Input[bool]] = None,
pull_trigger: Optional[pulumi.Input[str]] = None,
pull_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
"""
The set of arguments for constructing a RemoteImage resource.
:param pulumi.Input[str] name: The name of the Docker image, including any tags or SHA256 repo digests.
:param pulumi.Input['RemoteImageBuildArgs'] build: See Build below for details.
:param pulumi.Input[bool] force_remove: Force remove the image when the resource is destroyed
:param pulumi.Input[bool] keep_locally: If true, then the Docker image won't be
deleted on destroy operation. If this is false, it will delete the image from
the docker local storage on destroy operation.
:param pulumi.Input[str] pull_trigger: **Deprecated**, use `pull_triggers` instead.
:param pulumi.Input[Sequence[pulumi.Input[str]]] pull_triggers: List of values which cause an
image pull when changed. This is used to store the image digest from the
registry when using the `RegistryImage` [data source](https://www.terraform.io/docs/providers/docker/d/registry_image.html)
to trigger an image update.
"""
pulumi.set(__self__, "name", name)
if build is not None:
pulumi.set(__self__, "build", build)
if force_remove is not None:
pulumi.set(__self__, "force_remove", force_remove)
if keep_locally is not None:
pulumi.set(__self__, "keep_locally", keep_locally)
if pull_trigger is not None:
warnings.warn("""Use field pull_triggers instead""", DeprecationWarning)
pulumi.log.warn("""pull_trigger is deprecated: Use field pull_triggers instead""")
if pull_trigger is not None:
pulumi.set(__self__, "pull_trigger", pull_trigger)
if pull_triggers is not None:
pulumi.set(__self__, "pull_triggers", pull_triggers)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
The name of the Docker image, including any tags or SHA256 repo digests.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def build(self) -> Optional[pulumi.Input['RemoteImageBuildArgs']]:
"""
See Build below for details.
"""
return pulumi.get(self, "build")
@build.setter
def build(self, value: Optional[pulumi.Input['RemoteImageBuildArgs']]):
pulumi.set(self, "build", value)
@property
@pulumi.getter(name="forceRemove")
def force_remove(self) -> Optional[pulumi.Input[bool]]:
"""
Force remove the image when the resource is destroyed
"""
return pulumi.get(self, "force_remove")
@force_remove.setter
def force_remove(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "force_remove", value)
@property
@pulumi.getter(name="keepLocally")
def keep_locally(self) -> Optional[pulumi.Input[bool]]:
"""
If true, then the Docker image won't be
deleted on destroy operation. If this is false, it will delete the image from
the docker local storage on destroy operation.
"""
return pulumi.get(self, "keep_locally")
@keep_locally.setter
def keep_locally(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "keep_locally", value)
@property
@pulumi.getter(name="pullTrigger")
def pull_trigger(self) -> Optional[pulumi.Input[str]]:
"""
**Deprecated**, use `pull_triggers` instead.
"""
return pulumi.get(self, "pull_trigger")
@pull_trigger.setter
def pull_trigger(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "pull_trigger", value)
@property
@pulumi.getter(name="pullTriggers")
def pull_triggers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
List of values which cause an
image pull when changed. This is used to store the image digest from the
registry when using the `RegistryImage` [data source](https://www.terraform.io/docs/providers/docker/d/registry_image.html)
to trigger an image update.
"""
return pulumi.get(self, "pull_triggers")
@pull_triggers.setter
def pull_triggers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "pull_triggers", value)
@pulumi.input_type
class _RemoteImageState:
def __init__(__self__, *,
build: Optional[pulumi.Input['RemoteImageBuildArgs']] = None,
force_remove: Optional[pulumi.Input[bool]] = None,
keep_locally: Optional[pulumi.Input[bool]] = None,
latest: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
output: Optional[pulumi.Input[str]] = None,
pull_trigger: Optional[pulumi.Input[str]] = None,
pull_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
"""
Input properties used for looking up and filtering RemoteImage resources.
:param pulumi.Input['RemoteImageBuildArgs'] build: See Build below for details.
:param pulumi.Input[bool] force_remove: Force remove the image when the resource is destroyed
:param pulumi.Input[bool] keep_locally: If true, then the Docker image won't be
deleted on destroy operation. If this is false, it will delete the image from
the docker local storage on destroy operation.
:param pulumi.Input[str] name: The name of the Docker image, including any tags or SHA256 repo digests.
:param pulumi.Input[str] pull_trigger: **Deprecated**, use `pull_triggers` instead.
:param pulumi.Input[Sequence[pulumi.Input[str]]] pull_triggers: List of values which cause an
image pull when changed. This is used to store the image digest from the
registry when using the `RegistryImage` [data source](https://www.terraform.io/docs/providers/docker/d/registry_image.html)
to trigger an image update.
"""
if build is not None:
pulumi.set(__self__, "build", build)
if force_remove is not None:
pulumi.set(__self__, "force_remove", force_remove)
if keep_locally is not None:
pulumi.set(__self__, "keep_locally", keep_locally)
if latest is not None:
pulumi.set(__self__, "latest", latest)
if name is not None:
pulumi.set(__self__, "name", name)
if output is not None:
pulumi.set(__self__, "output", output)
if pull_trigger is not None:
warnings.warn("""Use field pull_triggers instead""", DeprecationWarning)
pulumi.log.warn("""pull_trigger is deprecated: Use field pull_triggers instead""")
if pull_trigger is not None:
pulumi.set(__self__, "pull_trigger", pull_trigger)
if pull_triggers is not None:
pulumi.set(__self__, "pull_triggers", pull_triggers)
@property
@pulumi.getter
def build(self) -> Optional[pulumi.Input['RemoteImageBuildArgs']]:
"""
See Build below for details.
"""
return pulumi.get(self, "build")
@build.setter
def build(self, value: Optional[pulumi.Input['RemoteImageBuildArgs']]):
pulumi.set(self, "build", value)
@property
@pulumi.getter(name="forceRemove")
def force_remove(self) -> Optional[pulumi.Input[bool]]:
"""
Force remove the image when the resource is destroyed
"""
return pulumi.get(self, "force_remove")
@force_remove.setter
def force_remove(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "force_remove", value)
@property
@pulumi.getter(name="keepLocally")
def keep_locally(self) -> Optional[pulumi.Input[bool]]:
"""
If true, then the Docker image won't be
deleted on destroy operation. If this is false, it will delete the image from
the docker local storage on destroy operation.
"""
return pulumi.get(self, "keep_locally")
@keep_locally.setter
def keep_locally(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "keep_locally", value)
@property
@pulumi.getter
def latest(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "latest")
@latest.setter
def latest(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "latest", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the Docker image, including any tags or SHA256 repo digests.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def output(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "output")
@output.setter
def output(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "output", value)
@property
@pulumi.getter(name="pullTrigger")
def pull_trigger(self) -> Optional[pulumi.Input[str]]:
"""
**Deprecated**, use `pull_triggers` instead.
"""
return pulumi.get(self, "pull_trigger")
@pull_trigger.setter
def pull_trigger(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "pull_trigger", value)
@property
@pulumi.getter(name="pullTriggers")
def pull_triggers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
List of values which cause an
image pull when changed. This is used to store the image digest from the
registry when using the `RegistryImage` [data source](https://www.terraform.io/docs/providers/docker/d/registry_image.html)
to trigger an image update.
"""
return pulumi.get(self, "pull_triggers")
@pull_triggers.setter
def pull_triggers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "pull_triggers", value)
class RemoteImage(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
build: Optional[pulumi.Input[pulumi.InputType['RemoteImageBuildArgs']]] = None,
force_remove: Optional[pulumi.Input[bool]] = None,
keep_locally: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
pull_trigger: Optional[pulumi.Input[str]] = None,
pull_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
__props__=None):
"""
Pulls a Docker image to a given Docker host from a Docker Registry.
This resource will *not* pull new layers of the image automatically unless used in
conjunction with [`RegistryImage`](https://www.terraform.io/docs/providers/docker/d/registry_image.html)
data source to update the `pull_triggers` field.
## Example Usage
```python
import pulumi
import pulumi_docker as docker
# Find the latest Ubuntu precise image.
ubuntu = docker.RemoteImage("ubuntu", name="ubuntu:precise")
```
### Dynamic image
```python
import pulumi
import pulumi_docker as docker
ubuntu_registry_image = docker.get_registry_image(name="ubuntu:precise")
ubuntu_remote_image = docker.RemoteImage("ubuntuRemoteImage",
name=ubuntu_registry_image.name,
pull_triggers=[ubuntu_registry_image.sha256_digest])
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[pulumi.InputType['RemoteImageBuildArgs']] build: See Build below for details.
:param pulumi.Input[bool] force_remove: Force remove the image when the resource is destroyed
:param pulumi.Input[bool] keep_locally: If true, then the Docker image won't be
deleted on destroy operation. If this is false, it will delete the image from
the docker local storage on destroy operation.
:param pulumi.Input[str] name: The name of the Docker image, including any tags or SHA256 repo digests.
:param pulumi.Input[str] pull_trigger: **Deprecated**, use `pull_triggers` instead.
:param pulumi.Input[Sequence[pulumi.Input[str]]] pull_triggers: List of values which cause an
image pull when changed. This is used to store the image digest from the
registry when using the `RegistryImage` [data source](https://www.terraform.io/docs/providers/docker/d/registry_image.html)
to trigger an image update.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: RemoteImageArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Pulls a Docker image to a given Docker host from a Docker Registry.
This resource will *not* pull new layers of the image automatically unless used in
conjunction with [`RegistryImage`](https://www.terraform.io/docs/providers/docker/d/registry_image.html)
data source to update the `pull_triggers` field.
## Example Usage
```python
import pulumi
import pulumi_docker as docker
# Find the latest Ubuntu precise image.
ubuntu = docker.RemoteImage("ubuntu", name="ubuntu:precise")
```
### Dynamic image
```python
import pulumi
import pulumi_docker as docker
ubuntu_registry_image = docker.get_registry_image(name="ubuntu:precise")
ubuntu_remote_image = docker.RemoteImage("ubuntuRemoteImage",
name=ubuntu_registry_image.name,
pull_triggers=[ubuntu_registry_image.sha256_digest])
```
:param str resource_name: The name of the resource.
:param RemoteImageArgs 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(RemoteImageArgs, 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,
build: Optional[pulumi.Input[pulumi.InputType['RemoteImageBuildArgs']]] = None,
force_remove: Optional[pulumi.Input[bool]] = None,
keep_locally: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
pull_trigger: Optional[pulumi.Input[str]] = None,
pull_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = RemoteImageArgs.__new__(RemoteImageArgs)
__props__.__dict__["build"] = build
__props__.__dict__["force_remove"] = force_remove
__props__.__dict__["keep_locally"] = keep_locally
if name is None and not opts.urn:
raise TypeError("Missing required property 'name'")
__props__.__dict__["name"] = name
if pull_trigger is not None and not opts.urn:
warnings.warn("""Use field pull_triggers instead""", DeprecationWarning)
pulumi.log.warn("""pull_trigger is deprecated: Use field pull_triggers instead""")
__props__.__dict__["pull_trigger"] = pull_trigger
__props__.__dict__["pull_triggers"] = pull_triggers
__props__.__dict__["latest"] = None
__props__.__dict__["output"] = None
super(RemoteImage, __self__).__init__(
'docker:index/remoteImage:RemoteImage',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
build: Optional[pulumi.Input[pulumi.InputType['RemoteImageBuildArgs']]] = None,
force_remove: Optional[pulumi.Input[bool]] = None,
keep_locally: Optional[pulumi.Input[bool]] = None,
latest: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
output: Optional[pulumi.Input[str]] = None,
pull_trigger: Optional[pulumi.Input[str]] = None,
pull_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'RemoteImage':
"""
Get an existing RemoteImage resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[pulumi.InputType['RemoteImageBuildArgs']] build: See Build below for details.
:param pulumi.Input[bool] force_remove: Force remove the image when the resource is destroyed
:param pulumi.Input[bool] keep_locally: If true, then the Docker image won't be
deleted on destroy operation. If this is false, it will delete the image from
the docker local storage on destroy operation.
:param pulumi.Input[str] name: The name of the Docker image, including any tags or SHA256 repo digests.
:param pulumi.Input[str] pull_trigger: **Deprecated**, use `pull_triggers` instead.
:param pulumi.Input[Sequence[pulumi.Input[str]]] pull_triggers: List of values which cause an
image pull when changed. This is used to store the image digest from the
registry when using the `RegistryImage` [data source](https://www.terraform.io/docs/providers/docker/d/registry_image.html)
to trigger an image update.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _RemoteImageState.__new__(_RemoteImageState)
__props__.__dict__["build"] = build
__props__.__dict__["force_remove"] = force_remove
__props__.__dict__["keep_locally"] = keep_locally
__props__.__dict__["latest"] = latest
__props__.__dict__["name"] = name
__props__.__dict__["output"] = output
__props__.__dict__["pull_trigger"] = pull_trigger
__props__.__dict__["pull_triggers"] = pull_triggers
return RemoteImage(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter
def build(self) -> pulumi.Output[Optional['outputs.RemoteImageBuild']]:
"""
See Build below for details.
"""
return pulumi.get(self, "build")
@property
@pulumi.getter(name="forceRemove")
def force_remove(self) -> pulumi.Output[Optional[bool]]:
"""
Force remove the image when the resource is destroyed
"""
return pulumi.get(self, "force_remove")
@property
@pulumi.getter(name="keepLocally")
def keep_locally(self) -> pulumi.Output[Optional[bool]]:
"""
If true, then the Docker image won't be
deleted on destroy operation. If this is false, it will delete the image from
the docker local storage on destroy operation.
"""
return pulumi.get(self, "keep_locally")
@property
@pulumi.getter
def latest(self) -> pulumi.Output[str]:
return pulumi.get(self, "latest")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
"""
The name of the Docker image, including any tags or SHA256 repo digests.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter
def output(self) -> pulumi.Output[str]:
return pulumi.get(self, "output")
@property
@pulumi.getter(name="pullTrigger")
def pull_trigger(self) -> pulumi.Output[Optional[str]]:
"""
**Deprecated**, use `pull_triggers` instead.
"""
return pulumi.get(self, "pull_trigger")
@property
@pulumi.getter(name="pullTriggers")
def pull_triggers(self) -> pulumi.Output[Optional[Sequence[str]]]:
"""
List of values which cause an
image pull when changed. This is used to store the image digest from the
registry when using the `RegistryImage` [data source](https://www.terraform.io/docs/providers/docker/d/registry_image.html)
to trigger an image update.
"""
return pulumi.get(self, "pull_triggers")
| 43.705769 | 138 | 0.643992 | 2,706 | 22,727 | 5.219512 | 0.077236 | 0.080218 | 0.079368 | 0.035826 | 0.860804 | 0.844378 | 0.824625 | 0.815845 | 0.806854 | 0.778533 | 0 | 0.001651 | 0.253883 | 22,727 | 519 | 139 | 43.789981 | 0.831279 | 0.35834 | 0 | 0.729242 | 1 | 0 | 0.110968 | 0.004545 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155235 | false | 0.00361 | 0.025271 | 0.01444 | 0.274368 | 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 |
8ac444b869093f5ac1cfcbb88e0eb7b278b056cc | 4,148 | py | Python | loss.py | prrao87/pytorch-openai-transformer-lm | 2ab3e0ee72d72b10065c896e03a599e9574fbd15 | [
"MIT"
] | null | null | null | loss.py | prrao87/pytorch-openai-transformer-lm | 2ab3e0ee72d72b10065c896e03a599e9574fbd15 | [
"MIT"
] | null | null | null | loss.py | prrao87/pytorch-openai-transformer-lm | 2ab3e0ee72d72b10065c896e03a599e9574fbd15 | [
"MIT"
] | null | null | null | import torch
class MultipleChoiceLossCompute:
"A Loss compute and train function for multiple choice tasks."
def __init__(self, lm_criterion, clf_criterion, lm_coef, opt=None):
self.lm_criterion = lm_criterion
self.clf_criterion = clf_criterion
self.lm_coef = lm_coef
self.opt = opt
def __call__(self, X, Y, M, clf_logits, lm_logits=None, only_return_losses=False):
# Language modeling loss
if lm_logits is not None:
x_shifted = X[:, :, 1:, 0].contiguous().view(-1) # Shape: 252
M = M.view(-1, M.size(2))
lm_losses = self.lm_criterion(lm_logits, x_shifted)
lm_losses = lm_losses.view(X.size(0) * X.size(1), X.size(2) - 1)
lm_losses = lm_losses * M[:, 1:]
lm_losses = lm_losses.sum(1) / torch.sum(M[:, 1:], 1)
# Classification loss
clf_losses = self.clf_criterion(clf_logits, Y)
if only_return_losses:
return (clf_losses, lm_losses) if lm_logits is not None else clf_losses
if self.lm_coef > 0 and lm_logits is not None:
train_loss = clf_losses.sum() + self.lm_coef * lm_losses.sum()
else:
train_loss = clf_losses.sum()
train_loss.backward()
if self.opt is not None:
self.opt.step()
self.opt.zero_grad()
return train_loss.item()
class ClassificationLossCompute:
"A Loss compute and train function for classification tasks."
def __init__(self, lm_criterion, clf_criterion, lm_coef, opt=None):
self.lm_criterion = lm_criterion
self.clf_criterion = clf_criterion
self.lm_coef = lm_coef
self.opt = opt
def __call__(self, X, Y, M, clf_logits, lm_logits=None, only_return_losses=False):
# Language modeling loss
if lm_logits is not None:
x_shifted = X[:, 1:, 0].contiguous().view(-1)
M = M.view(-1, M.size(-1))
lm_losses = self.lm_criterion(lm_logits, x_shifted)
lm_losses = lm_losses.view(X.size(0), X.size(-2) - 1)
lm_losses = lm_losses * M[:, 1:]
lm_losses = lm_losses.sum(1) / torch.sum(M[:, 1:], 1)
# Classification loss
clf_losses = self.clf_criterion(clf_logits, Y)
if only_return_losses:
return (clf_losses, lm_losses) if lm_logits is not None else clf_losses
if self.lm_coef > 0 and lm_logits is not None:
train_loss = clf_losses.sum() + self.lm_coef * lm_losses.sum()
else:
train_loss = clf_losses.sum()
train_loss.backward()
if self.opt is not None:
self.opt.step()
self.opt.zero_grad()
return train_loss.item()
class SimilarityLossCompute:
"A Loss compute and train function for classification tasks."
def __init__(self, lm_criterion, clf_criterion, lm_coef, opt=None):
self.lm_criterion = lm_criterion
self.clf_criterion = clf_criterion
self.lm_coef = lm_coef
self.opt = opt
def __call__(self, X, Y, M, clf_logits, lm_logits=None, only_return_losses=False):
# Language modeling loss
if lm_logits is not None:
x_shifted = X[:, :, 1:, 0].contiguous().view(-1) # Shape: 252
M = M.view(-1, M.size(2))
lm_losses = self.lm_criterion(lm_logits, x_shifted)
lm_losses = lm_losses.view(X.size(0) * X.size(1), X.size(2) - 1)
lm_losses = lm_losses * M[:, 1:]
lm_losses = lm_losses.sum(1) / torch.sum(M[:, 1:], 1)
# Similarity loss
clf_losses = self.clf_criterion(clf_logits, Y)
if only_return_losses:
return (clf_losses, lm_losses) if lm_logits is not None else clf_losses
if self.lm_coef > 0 and lm_logits is not None:
train_loss = clf_losses.sum() + self.lm_coef * lm_losses.sum()
else:
train_loss = clf_losses.sum()
train_loss.backward()
if self.opt is not None:
self.opt.step()
self.opt.zero_grad()
return train_loss.item()
| 40.666667 | 86 | 0.601254 | 592 | 4,148 | 3.944257 | 0.096284 | 0.092505 | 0.046253 | 0.050107 | 0.952034 | 0.952034 | 0.946895 | 0.933619 | 0.933619 | 0.933619 | 0 | 0.016063 | 0.2946 | 4,148 | 101 | 87 | 41.069307 | 0.781955 | 0.079074 | 0 | 0.902439 | 0 | 0 | 0.044589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0 | 0.012195 | 0 | 0.195122 | 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 |
0a0d4f76baa74a2e177896b98b5c4712e54f1c80 | 3,276 | py | Python | plugins/MuteMember/program.py | tageerBOY/discord_py | 3b779199552aae9908791f6ac806dbf69ae16e0c | [
"MIT"
] | null | null | null | plugins/MuteMember/program.py | tageerBOY/discord_py | 3b779199552aae9908791f6ac806dbf69ae16e0c | [
"MIT"
] | null | null | null | plugins/MuteMember/program.py | tageerBOY/discord_py | 3b779199552aae9908791f6ac806dbf69ae16e0c | [
"MIT"
] | null | null | null | @bot.command()
async def mt(ctx):
user_admin = False
for i in range(len(ctx.message.author.roles)):
if ctx.message.author.roles[i].name == 'Старейшина' or ctx.message.author.roles[i].name == 'Верховный жрец':
user_admin = True
if user_admin and ctx.message.channel.name == 'команды' and len(ctx.message.content.split()) > 1:
user_name, f = ctx.message.content.split(), open('plugins/MuteMember/blacklist.txt').readlines()
del user_name[0]
user_name, user_exist, user, user_bklt = ' '.join(user_name), False, None, False
for member in ctx.guild.members:
if str(member) == user_name:
user_exist = True
user = member
for i in range(len(f)):
if user_name in f[i]:
user_bklt = True
if not user_exist:
await ctx.send('**:x: Данного пользователя нет на сервере!**')
elif user_bklt:
await ctx.send('**:x: Данный участник уже получил ограничение!**')
elif user_exist and not user_bklt:
for i in range(len(ctx.message.guild.text_channels)):
await ctx.message.guild.text_channels[i].set_permissions(user, send_messages=False)
await ctx.send('**:white_check_mark: Участник `' + str(user) + '` получил мут от администратора `' +
str(ctx.message.author) + '`**')
f.append(str(user) + '\n')
os.remove('plugins/MuteMember/blacklist.txt')
open('plugins/MuteMember/blacklist.txt', 'w').writelines(f)
await ctx.message.delete()
@bot.command()
async def nmt(ctx):
user_admin = False
for i in range(len(ctx.message.author.roles)):
if ctx.message.author.roles[i].name == 'Старейшина' or ctx.message.author.roles[i].name == 'Верховный жрец':
user_admin = True
if user_admin and ctx.message.channel.name == 'команды' and len(ctx.message.content.split()) > 1:
user_name, f = ctx.message.content.split(), open('plugins/MuteMember/blacklist.txt').readlines()
del user_name[0]
user_name, user_exist, user, user_bklt = ' '.join(user_name), False, None, False
for member in ctx.guild.members:
if str(member) == user_name:
user_exist = True
user = member
for i in range(len(f)):
if user_name in f[i]:
user_bklt = True
del f[i]
if not user_exist:
await ctx.send('**:x: Данного пользователя нет на сервере!**')
elif not user_bklt:
await ctx.send('**:x: Данный участник еще не получил ограничение!**')
elif user_exist and user_bklt:
for i in range(len(ctx.message.guild.text_channels)):
await ctx.message.guild.text_channels[i].set_permissions(user, overwrite=None)
await ctx.send('**:white_check_mark: Участник `' + str(user) + '` освобожден от мута администратором `' +
str(ctx.message.author) + '`**')
os.remove('plugins/MuteMember/blacklist.txt')
open('plugins/MuteMember/blacklist.txt', 'w').writelines(f)
await ctx.message.delete() | 52.83871 | 118 | 0.586996 | 418 | 3,276 | 4.492823 | 0.208134 | 0.106496 | 0.068158 | 0.035144 | 0.893504 | 0.893504 | 0.857295 | 0.857295 | 0.820021 | 0.776358 | 0 | 0.001708 | 0.285104 | 3,276 | 62 | 119 | 52.83871 | 0.800171 | 0 | 0 | 0.766667 | 0 | 0 | 0.182214 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0a1b4bdbda345f7b08c47505f678d15c7a904fd3 | 26,790 | py | Python | tests/test_crawler_scrape_all.py | HobnobMancer/cazy_webscraper | 3f74492f46db2093f7e6cd91fffcb8347694e54e | [
"MIT"
] | 3 | 2020-10-22T08:31:29.000Z | 2021-05-19T13:13:12.000Z | tests/test_crawler_scrape_all.py | HobnobMancer/cazy_webscraper | 3f74492f46db2093f7e6cd91fffcb8347694e54e | [
"MIT"
] | 62 | 2020-11-30T11:29:20.000Z | 2022-03-28T13:50:30.000Z | tests/test_crawler_scrape_all.py | HobnobMancer/cazy_webscraper | 3f74492f46db2093f7e6cd91fffcb8347694e54e | [
"MIT"
] | 1 | 2021-03-10T16:30:11.000Z | 2021-03-10T16:30:11.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# (c) University of St Andrews 2020-2021
# (c) University of Strathclyde 2020-2021
# (c) James Hutton Institute 2020-2021
#
# Author:
# Emma E. M. Hobbs
#
# Contact
# eemh1@st-andrews.ac.uk
#
# Emma E. M. Hobbs,
# Biomolecular Sciences Building,
# University of St Andrews,
# North Haugh Campus,
# St Andrews,
# KY16 9ST
# Scotland,
# UK
#
# The MIT License
#
# 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.
"""Tests the module for scrapping proteins from the 'all' pages of CAZy families.
The functions tested in the is script are located in scraper.crawler.parse_cazy_families.scrape_all
These test are intened to be run from the root of the repository using:
pytest -v
"""
import pytest
from argparse import Namespace
from bs4 import BeautifulSoup
from scraper import crawler
from scraper.crawler import Family
from scraper.crawler.parse_cazy_families import scrape_all
from scraper.sql import sql_interface
@pytest.fixture
def fam_url():
url = "http://www.cazy.org/GH14_all.html"
return url
@pytest.fixture
def args():
dict_ = {'args': Namespace(retries=2, timeout=10)}
return dict_
@pytest.fixture
def fam_template():
fam = Family("famName", "CAZyClass", fam_url)
return fam
@pytest.fixture
def input_dir(test_dir):
path_ = test_dir / "test_inputs" / "test_inputs_crawler" / "scrape_all_inputs"
return path_
@pytest.fixture
def protein_gen():
result_list = [
{"url": None, "format": None, "sql": None, "error": None},
{"url": "www.cazy.org/GH1.html", "format": "no internet connection", "sql": None, "error": "error message"},
{"url": None, "format": "sql error", "sql": "protein_name", "error": "error message"},
{"url": "www.cazy.org/GH3.html", "format": "sql error", "sql": "protein_name", "error": "error message"},
]
return (_ for _ in result_list)
# test parse_family_via_all_pages()
def test_all_parse_family_first_parse(cazy_home_url, monkeypatch):
"""Test parse_family_via_all_pages() when it's the first time."""
fam = Family("testFam", "testClass", "testURL")
def mock_parse_pagination_page(*args, **kwargs):
return fam, None, None, None, "session"
monkeypatch.setattr(scrape_all, "parse_first_paginiation_page", mock_parse_pagination_page)
scrape_all.parse_family_via_all_pages(
family=fam,
cazy_home=cazy_home_url,
taxonomy_filters=None,
ec_filters=None,
args=None,
session="session",
)
def test_all_parse_family_retry_paginiation(cazy_home_url, monkeypatch):
"""Test parse_family_via_all_pages() when need to retry parsing the first paginiation page."""
fam = Family(
"testFam",
"testClass",
"testURL",
failed_pages={"url.com": ["first_pagination", 1]},
)
def mock_parse_pagination_page(*args, **kwargs):
return fam, None, None, None, "session"
monkeypatch.setattr(scrape_all, "parse_first_paginiation_page", mock_parse_pagination_page)
scrape_all.parse_family_via_all_pages(
family=fam,
cazy_home=cazy_home_url,
taxonomy_filters=None,
ec_filters=None,
args=None,
session="session",
)
def test_all_parse_family_one_rescrape(cazy_home_url, monkeypatch):
"""Test parse_family_via_all_pages when there's one page to rescrape."""
family = Family("testFam", "testClass", "testURL", failed_pages={"url.com": 1})
def mock_parse_proteins(*args, **kwargs):
return family, None, None, None
monkeypatch.setattr(scrape_all, "parse_proteins", mock_parse_proteins)
scrape_all.parse_family_via_all_pages(
family=family,
cazy_home=cazy_home_url,
taxonomy_filters=None,
ec_filters=None,
args=None,
session="session",
)
def test_all_parse_family_multiple_rescrapes(cazy_home_url, monkeypatch):
"""Test parse_family_via_all_pages when there are multiple fams to rescrape."""
family = Family(
"testFam",
"testClass",
"testURL",
failed_pages={
"url.com": 1,
"www.com": 2,
"com.com": 3
},
)
def mock_parse_proteins(*args, **kwargs):
return family, None, None, None
monkeypatch.setattr(scrape_all, "parse_proteins", mock_parse_proteins)
scrape_all.parse_family_via_all_pages(
family=family,
cazy_home=cazy_home_url,
taxonomy_filters=None,
ec_filters=None,
args=None,
session="session",
)
# test parse_first_paginiation_page
def test_all_parse_first_pag_incorrect_format(cazy_home_url):
"""Test parse_first_paginiation_page when the URL is incorrectly formatted."""
fam = Family("famName", "CAZyClass", "url")
scrape_all.parse_first_paginiation_page(
first_pagination_url="url.url.url",
family=fam,
failed_scrapes=[],
sql_failures=[],
format_failures=[],
cazy_home=cazy_home_url,
args="args",
taxonomy_filters=set(),
ec_filters=[],
session="session",
)
def test_all_parse_first_pag_no_protein_total(fam_url, cazy_home_url, args, monkeypatch):
"""Test parse_first_paginiation_page when no number of total proteins is retrurned."""
fam = Family("famName", "CAZyClass", fam_url)
def mock_get_pag_data(*args, **kwargs):
return None, "total"
def mock_parse_error(*args, **kwargs):
return fam, None, None, None
monkeypatch.setattr(scrape_all, "get_paginiation_data", mock_get_pag_data)
monkeypatch.setattr(scrape_all, "parse_total_proteins_error", mock_parse_error)
scrape_all.parse_first_paginiation_page(
first_pagination_url=fam_url,
family=fam,
failed_scrapes=[],
sql_failures=[],
format_failures=[],
cazy_home=cazy_home_url,
args=args["args"],
taxonomy_filters=set(),
ec_filters=[],
session="session",
)
def test_all_parse_first_pag_success(fam_url, cazy_home_url, args, monkeypatch):
"""Test parse_first_paginiation_page when successful."""
fam = Family("famName", "CAZyClass", fam_url)
def mock_get_pag_data(*args, **kwargs):
return None, 1256
def mock_parse_proteins(*args, **kwargs):
return fam, None, None, None
monkeypatch.setattr(scrape_all, "get_paginiation_data", mock_get_pag_data)
monkeypatch.setattr(scrape_all, "parse_proteins", mock_parse_proteins)
scrape_all.parse_first_paginiation_page(
first_pagination_url=fam_url,
family=fam,
failed_scrapes=[],
sql_failures=[],
format_failures=[],
cazy_home=cazy_home_url,
args=args["args"],
taxonomy_filters=set(),
ec_filters=[],
session="session",
)
# test get_pagination_data
def test_all_get_pag_no_page(fam_url, fam_template, cazy_home_url, args, monkeypatch):
"""Test get_pagination_data when no page is retrieved from CAZy."""
def mock_get_page(*args, **kwargs):
return None, "error"
monkeypatch.setattr(scrape_all, "get_page", mock_get_page)
res1, res2 = scrape_all.get_paginiation_data(
first_pagination_url=fam_url,
family=fam_template,
cazy_home=cazy_home_url,
args=args["args"],
session="session",
)
# assert type(res1) is dict
# assert res2 is None
def test_all_get_pag_deleted_fam(fam_url, fam_template, cazy_home_url, args, monkeypatch):
"""Test get_pagination_data when parsing a 'deteled' family."""
def mock_get_page(*args, **kwargs):
return "page", None
def mock_get_urls(*args, **kwargs):
return ['url'], 'Deleted family!'
def mock_add_sql(*args, **kwargs):
return
monkeypatch.setattr(scrape_all, "get_page", mock_get_page)
monkeypatch.setattr(scrape_all, "get_paginiation_page_urls", mock_get_urls)
monkeypatch.setattr(sql_interface, "add_deleted_cazy_family", mock_add_sql)
res1, res2 = scrape_all.get_paginiation_data(
first_pagination_url=fam_url,
family=fam_template,
cazy_home=cazy_home_url,
args=args["args"],
session="session",
)
# assert type(res1) is dict
# assert res2 is None
def test_all_get_pag_empty_fam(fam_url, fam_template, cazy_home_url, args, monkeypatch):
"""Test get_pagination_data when parsing an 'empty' family."""
def mock_get_page(*args, **kwargs):
return "page", None
def mock_get_urls(*args, **kwargs):
return ['url'], 'Empty family'
def mock_add_sql(*args, **kwargs):
return
monkeypatch.setattr(scrape_all, "get_page", mock_get_page)
monkeypatch.setattr(scrape_all, "get_paginiation_page_urls", mock_get_urls)
monkeypatch.setattr(sql_interface, "add_deleted_cazy_family", mock_add_sql)
res1, res2 = scrape_all.get_paginiation_data(
first_pagination_url=fam_url,
family=fam_template,
cazy_home=cazy_home_url,
args=args["args"],
session="session",
)
# assert type(res1) is dict
# assert res2 is None
def test_all_get_pag_failed(fam_url, fam_template, cazy_home_url, args, monkeypatch):
"""Test get_pagination_data when failed to retrieve the total protein count."""
def mock_get_page(*args, **kwargs):
return "page", None
def mock_get_urls(*args, **kwargs):
return ['url'], 'Failed Retrieval'
def mock_add_sql(*args, **kwargs):
return
monkeypatch.setattr(scrape_all, "get_page", mock_get_page)
monkeypatch.setattr(scrape_all, "get_paginiation_page_urls", mock_get_urls)
monkeypatch.setattr(sql_interface, "add_deleted_cazy_family", mock_add_sql)
res1, res2 = scrape_all.get_paginiation_data(
first_pagination_url=fam_url,
family=fam_template,
cazy_home=cazy_home_url,
args=args["args"],
session="session",
)
# assert type(res1) is dict
# assert res2 is None
def test_all_get_pag_zero(fam_url, fam_template, cazy_home_url, args, monkeypatch):
"""Test get_pagination_data when no page urls are retrieved."""
def mock_get_page(*args, **kwargs):
return "page", None
def mock_get_urls(*args, **kwargs):
return [], 200
def mock_add_sql(*args, **kwargs):
return
monkeypatch.setattr(scrape_all, "get_page", mock_get_page)
monkeypatch.setattr(scrape_all, "get_paginiation_page_urls", mock_get_urls)
monkeypatch.setattr(sql_interface, "add_deleted_cazy_family", mock_add_sql)
res1, res2 = scrape_all.get_paginiation_data(
first_pagination_url=fam_url,
family=fam_template,
cazy_home=cazy_home_url,
args=args["args"],
session="session",
)
# assert type(res1) is dict
# assert res2 is None
def test_all_get_pag_success(fam_url, fam_template, cazy_home_url, args, monkeypatch):
"""Test get_pagination_data when all is successful."""
def mock_get_page(*args, **kwargs):
return "page", None
def mock_get_urls(*args, **kwargs):
return ['url'], 1000
def mock_add_sql(*args, **kwargs):
return
monkeypatch.setattr(scrape_all, "get_page", mock_get_page)
monkeypatch.setattr(scrape_all, "get_paginiation_page_urls", mock_get_urls)
monkeypatch.setattr(sql_interface, "add_deleted_cazy_family", mock_add_sql)
res1, res2 = scrape_all.get_paginiation_data(
first_pagination_url=fam_url,
family=fam_template,
cazy_home=cazy_home_url,
args=args["args"],
session="session",
)
# assert type(res1) is list
# assert type(res2) is int
# test get_pagination_page_urls()
def test_all_get_urls_no_pag(fam_url, cazy_home_url, input_dir):
"""Test get_pagination_page_urls when family is not paginated."""
test_input_path = input_dir / "test_get_pagination_urls" / "no_pagination_pag.html"
with open(test_input_path) as fp:
soup = BeautifulSoup(fp, features="lxml")
scrape_all.get_paginiation_page_urls(
fam_url,
soup,
cazy_home_url,
"fam_template",
)
def test_all_get_urls_pag(fam_url, cazy_home_url, input_dir):
"""Test get_pagination_page_urls when the family has pagination."""
test_input_path = input_dir / "test_get_pagination_urls" / "pag_page.html"
with open(test_input_path) as fp:
soup = BeautifulSoup(fp, features="lxml")
scrape_all.get_paginiation_page_urls(
fam_url,
soup,
cazy_home_url,
"fam_template",
)
def test_all_get_urls_deleted_fam(fam_url, cazy_home_url, input_dir):
"""test get_paginiation_page_urls when parsing a deleted family."""
test_input_path = input_dir / "test_get_pagination_urls" / "deleted_fam.html"
with open(test_input_path) as fp:
soup = BeautifulSoup(fp, features="lxml")
scrape_all.get_paginiation_page_urls(
fam_url,
soup,
cazy_home_url,
"fam_template",
)
def test_all_get_urls_empty_error(fam_url, cazy_home_url, input_dir):
"""test get_paginiation_page_urls when parsing an empty family."""
test_input_path = input_dir / "test_get_pagination_urls" / "empty_fam.html"
with open(test_input_path) as fp:
soup = BeautifulSoup(fp, features="lxml")
scrape_all.get_paginiation_page_urls(
fam_url,
soup,
cazy_home_url,
"fam_template",
)
def test_all_get_urls_double_error(fam_url, cazy_home_url, input_dir):
"""test get_paginiation_page_urls when cannot retrieve the total protein count."""
test_input_path = input_dir / "test_get_pagination_urls" / "no_protein_total.html"
with open(test_input_path) as fp:
soup = BeautifulSoup(fp, features="lxml")
scrape_all.get_paginiation_page_urls(
fam_url,
soup,
cazy_home_url,
"fam_template",
)
# test parse_total_proteins_error()
def test_all_parse_total_proteins_error_first_pag(fam_url, fam_template, args):
"""Test parse_total_proteins_error() when it's the first failure for the pagination page."""
errors = {
"url": fam_url,
"format": "error message",
}
family, failed_scrapes, sql_failures, format_failures = scrape_all.parse_total_proteins_error(
first_pagination_url=fam_url,
family=fam_template,
failed_scrapes=[],
sql_failures=[],
format_failures=[],
errors=errors,
args=args["args"],
)
# assert format_failures == ['http://www.cazy.org/GH14_all.html\terror message']
# assert failed_scrapes == []
# assert sql_failures == []
def test_all_parse_total_proteins_error_final_pag(fam_url, fam_template, args):
"""Test parse_total_proteins_error() when it's NOT the first failure for the pagination page."""
fam = fam_template
fam.failed_pages = {fam_url: ["first_pagination", 2]}
errors = {
"url": fam_url,
"format": "error message",
}
family, failed_scrapes, sql_failures, format_failures = scrape_all.parse_total_proteins_error(
first_pagination_url=fam_url,
family=fam,
failed_scrapes=[],
sql_failures=[],
format_failures=[],
errors=errors,
args=args["args"],
)
# assert format_failures == ['http://www.cazy.org/GH14_all.html\terror message']
# assert failed_scrapes == [
# (
# 'http://www.cazy.org/GH14_all.html\tCAZyClass\tFailed to connect to this '
# 'page of proteins for famName, and raised the following error message:\n'
# 'http://www.cazy.org/GH14_all.html'
# ),
# ]
# assert sql_failures == []
# test parse_proteins()
def test_all_parse_proteins_s_all(protein_gen, fam_template, args, monkeypatch):
"""Test parse_proteins from scrape_all.py in the crawler module."""
fam = fam_template
fam.failed_pages = {"www.cazy.org/GH3.html": 3}
def mock_parse_protein_tables(*args, **kwargs):
return protein_gen
monkeypatch.setattr(scrape_all, "parse_protein_table", mock_parse_protein_tables)
family, failed_scrapes, sql_failures, format_failures = scrape_all.parse_proteins(
protein_page_urls=[1, 2, 3, 4],
total_proteins=100,
family=fam,
taxonomy_filters=set(),
ec_filters=set(),
session="session",
args=args["args"],
failed_scrapes=[],
sql_failures=[],
format_failures=[],
)
# assert failed_scrapes == ['w\tCAZyClass\tFailed to connect to this page of proteins for famName, and raised the following error message:\nw']
# assert sql_failures == ['protein_name was not added to the database\tand raised the following error when atempting to do so:\nerror message', 'protein_name was not added to the database\tand raised the following error when atempting to do so:\nerror message']
# assert format_failures == ['no internet connection was inconsistently formated\traised the following error:\nerror message', 'sql error was inconsistently formated\traised the following error:\nerror message', 'sql error was inconsistently formated\traised the following error:\nerror message']
# test parse_protein_table()
def test_all_parse_table_no_page(fam_url, args, monkeypatch):
"""Test parse_protein_table when no page is retrieved from CAZy."""
def mock_get_page(*args, **kwargs):
return None, "error message"
monkeypatch.setattr(scrape_all, "get_page", mock_get_page)
scrape_all.parse_protein_table(
protein_page_url=fam_url,
family_name="testFam",
taxonomy_filters=set(),
ec_filters=set(),
session="session",
args=args["args"],
)
def test_all_parse_table_deleted_fam(fam_url, args, input_dir, monkeypatch):
"""Test parse_protein_table when it is a deleted family."""
test_input_path = input_dir / "test_get_pagination_urls" / "deleted_fam.html"
with open(test_input_path) as fp:
soup = BeautifulSoup(fp, features="lxml")
def mock_get_page(*args, **kwargs):
return soup, None
monkeypatch.setattr(scrape_all, "get_page", mock_get_page)
scrape_all.parse_protein_table(
protein_page_url=fam_url,
family_name="testFam",
taxonomy_filters=set(),
ec_filters=set(),
session="session",
args=args["args"],
)
def test_all_parse_table_empty_fam(fam_url, args, input_dir, monkeypatch):
"""Test parse_protein_table when it is an empty family."""
test_input_path = input_dir / "test_get_pagination_urls" / "empty_fam.html"
with open(test_input_path) as fp:
soup = BeautifulSoup(fp, features="lxml")
def mock_get_page(*args, **kwargs):
return soup, None
monkeypatch.setattr(scrape_all, "get_page", mock_get_page)
scrape_all.parse_protein_table(
protein_page_url=fam_url,
family_name="testFam",
taxonomy_filters=set(),
ec_filters=set(),
session="session",
args=args["args"],
)
def test_all_parse_table_no_protein_total(fam_url, args, input_dir, monkeypatch):
"""Test parse_protein_table when no protein total can be retrieved to check if an empty fam."""
test_input_path = input_dir / "test_get_pagination_urls" / "no_protein_total.html"
with open(test_input_path) as fp:
soup = BeautifulSoup(fp, features="lxml")
def mock_get_page(*args, **kwargs):
return soup, None
monkeypatch.setattr(scrape_all, "get_page", mock_get_page)
scrape_all.parse_protein_table(
protein_page_url=fam_url,
family_name="testFam",
taxonomy_filters=set(),
ec_filters=set(),
session="session",
args=args["args"],
)
def test_all_parse_table_no_table(fam_url, args, input_dir, monkeypatch):
"""Test parse_protein_table when no CAZyme table is retrieved and there should be one."""
test_input_path = input_dir / "test_parsing_proteins" / "no_cazyme_table.html"
with open(test_input_path) as fp:
soup = BeautifulSoup(fp, features="lxml")
def mock_get_page(*args, **kwargs):
return soup, None
monkeypatch.setattr(scrape_all, "get_page", mock_get_page)
scrape_all.parse_protein_table(
protein_page_url=fam_url,
family_name="testFam",
taxonomy_filters=set(),
ec_filters=set(),
session="session",
args=args["args"],
)
def test_all_parse_table_successful(fam_url, args, input_dir, protein_gen, monkeypatch):
"""Test parse_protein_table when all is successful."""
test_input_path = input_dir / "test_get_pagination_urls" / "no_pagination_pag.html"
with open(test_input_path) as fp:
soup = BeautifulSoup(fp, features="lxml")
def mock_get_page(*args, **kwargs):
return soup, None
def mock_row_to_protein(*args, **kwargs):
return protein_gen
monkeypatch.setattr(scrape_all, "get_page", mock_get_page)
monkeypatch.setattr(crawler, "row_to_protein", mock_row_to_protein)
scrape_all.parse_protein_table(
protein_page_url=fam_url,
family_name="testFam",
taxonomy_filters=set(),
ec_filters=set(),
session="session",
args=args["args"],
)
# test parse_protein_table_dict()
def test_all_parse_page_dict_no_page(monkeypatch, fam_template, args):
"""Test scrape_all.parse_protein_table_dict() when no page is returned"""
def mock_get_page(*args, **kwargs):
return None, "error"
monkeypatch.setattr(scrape_all, "get_page", mock_get_page)
scrape_all.parse_protein_table_dict(
family=fam_template,
protein_page_urls=["test_url"],
taxonomy_filters=set(),
ec_filters=set(),
failed_scrapes=[],
session={},
args=args["args"],
)
def test_all_parse_page_dict_no_table(monkeypatch, fam_template, args, input_dir):
"""Test scrape_all.parse_protein_table_dict() when there is no CAZyme table"""
test_input_path = input_dir / "test_parsing_proteins" / "no_table.html"
with open(test_input_path) as fp:
soup = BeautifulSoup(fp, features="lxml")
def mock_get_page(*args, **kwargs):
return soup, None
monkeypatch.setattr(scrape_all, "get_page", mock_get_page)
scrape_all.parse_protein_table_dict(
family=fam_template,
protein_page_urls=["test_url"],
taxonomy_filters=set(),
ec_filters=set(),
failed_scrapes=[],
session={},
args=args["args"],
)
def test_all_parse_page_dict_deleted(monkeypatch, fam_template, args, input_dir):
"""Test scrape_all.parse_protein_table_dict() when it is a deleted family"""
test_input_path = input_dir / "test_get_pagination_urls" / "deleted_fam.html"
with open(test_input_path) as fp:
soup = BeautifulSoup(fp, features="lxml")
def mock_get_page(*args, **kwargs):
return soup, None
monkeypatch.setattr(scrape_all, "get_page", mock_get_page)
scrape_all.parse_protein_table_dict(
family=fam_template,
protein_page_urls=["test_url"],
taxonomy_filters=set(),
ec_filters=set(),
failed_scrapes=[],
session={},
args=args["args"],
)
def test_all_parse_page_dict_empty(monkeypatch, fam_template, args, input_dir):
"""Test scrape_all.parse_protein_table_dict() when it is a empty family"""
test_input_path = input_dir / "test_get_pagination_urls" / "empty_fam.html"
with open(test_input_path) as fp:
soup = BeautifulSoup(fp, features="lxml")
def mock_get_page(*args, **kwargs):
return soup, None
monkeypatch.setattr(scrape_all, "get_page", mock_get_page)
scrape_all.parse_protein_table_dict(
family=fam_template,
protein_page_urls=["test_url"],
taxonomy_filters=set(),
ec_filters=set(),
failed_scrapes=[],
session={},
args=args["args"],
)
def test_all_parse_page_dict_empty_table(monkeypatch, fam_template, args, input_dir):
"""Test scrape_all.parse_protein_table_dict() when there the CAZyme table is not populated with
entries and it should be"""
test_input_path = input_dir / "test_parsing_proteins" / "no_cazyme_table.html"
with open(test_input_path) as fp:
soup = BeautifulSoup(fp, features="lxml")
def mock_get_page(*args, **kwargs):
return soup, None
monkeypatch.setattr(scrape_all, "get_page", mock_get_page)
scrape_all.parse_protein_table_dict(
family=fam_template,
protein_page_urls=["test_url"],
taxonomy_filters=set(),
ec_filters=set(),
failed_scrapes=[],
session={},
args=args["args"],
)
def test_all_parse_page_dict_success(monkeypatch, fam_template, args, input_dir):
"""Test scrape_all.parse_protein_table_dict() when all is successful"""
test_input_path = input_dir / "test_get_pagination_urls" / "pag_page.html"
with open(test_input_path) as fp:
soup = BeautifulSoup(fp, features="lxml")
def mock_get_page(*args, **kwargs):
return soup, None
def mock_row_to_dict(*args, **kwargs):
return {"error": "error message", "protein": "protein name and or accession"}, {}
monkeypatch.setattr(scrape_all, "get_page", mock_get_page)
monkeypatch.setattr(scrape_all, "row_to_protein_in_dict", mock_row_to_dict)
scrape_all.parse_protein_table_dict(
family=fam_template,
protein_page_urls=["test_url"],
taxonomy_filters=set(),
ec_filters=set(),
failed_scrapes=[],
session={},
args=args["args"],
) | 30.828539 | 300 | 0.684173 | 3,566 | 26,790 | 4.803421 | 0.08581 | 0.039932 | 0.036429 | 0.052017 | 0.811139 | 0.78732 | 0.77074 | 0.753809 | 0.748438 | 0.733084 | 0 | 0.004536 | 0.209929 | 26,790 | 869 | 301 | 30.828539 | 0.804734 | 0.209929 | 0 | 0.75188 | 0 | 0 | 0.115934 | 0.04035 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144737 | false | 0 | 0.013158 | 0.073308 | 0.240602 | 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 |
0a5a388f510261ba4984c04b7c9168d3ee20816a | 5,973 | py | Python | tests/draw/svg/test_text.py | LikuraGong/WeasyPrint | 5fe7ef6b22ae1265a52dee422e1c3b6777519ca3 | [
"BSD-3-Clause"
] | null | null | null | tests/draw/svg/test_text.py | LikuraGong/WeasyPrint | 5fe7ef6b22ae1265a52dee422e1c3b6777519ca3 | [
"BSD-3-Clause"
] | null | null | null | tests/draw/svg/test_text.py | LikuraGong/WeasyPrint | 5fe7ef6b22ae1265a52dee422e1c3b6777519ca3 | [
"BSD-3-Clause"
] | null | null | null | """
weasyprint.tests.test_draw.svg.test_text
----------------------------------------
Test how SVG text is drawn.
"""
from ...testing_utils import assert_no_logs
from .. import assert_pixels
@assert_no_logs
def test_text_fill():
assert_pixels('text_fill', 20, 2, '''
BBBBBB__BBBBBB______
BBBBBB__BBBBBB______
''', '''
<style>
@font-face { src: url(weasyprint.otf); font-family: weasyprint }
@page { size: 20px 2px }
svg { display: block }
</style>
<svg width="20px" height="2px" xmlns="http://www.w3.org/2000/svg">
<text x="0" y="1.5" font-family="weasyprint" font-size="2" fill="blue">
ABC DEF
</text>
</svg>
''')
@assert_no_logs
def test_text_stroke():
assert_pixels('text_stroke', 20, 4, '''
_BBBBBBBBBBBB_______
_BBBBBBBBBBBB_______
_BBBBBBBBBBBB_______
_BBBBBBBBBBBB_______
''', '''
<style>
@font-face { src: url(weasyprint.otf); font-family: weasyprint }
@page { size: 20px 4px }
svg { display: block }
</style>
<svg width="20px" height="4px" xmlns="http://www.w3.org/2000/svg">
<text x="2" y="2.5" font-family="weasyprint" font-size="2"
fill="transparent" stroke="blue" stroke-width="2">
A B C
</text>
</svg>
''')
@assert_no_logs
def test_text_x():
assert_pixels('text_x', 20, 2, '''
BB__BB_BBBB_________
BB__BB_BBBB_________
''', '''
<style>
@font-face { src: url(weasyprint.otf); font-family: weasyprint }
@page { size: 20px 2px }
svg { display: block }
</style>
<svg width="20px" height="2px" xmlns="http://www.w3.org/2000/svg">
<text x="0 4 7" y="1.5" font-family="weasyprint" font-size="2"
fill="blue">
ABCD
</text>
</svg>
''')
@assert_no_logs
def test_text_y():
assert_pixels('text_y', 30, 10, '''
__________BBBBB_____BBBBBBBBBB
__________BBBBB_____BBBBBBBBBB
__________BBBBB_____BBBBBBBBBB
__________BBBBB_____BBBBBBBBBB
__________BBBBB_____BBBBBBBBBB
BBBBBBBBBB_____BBBBB__________
BBBBBBBBBB_____BBBBB__________
BBBBBBBBBB_____BBBBB__________
BBBBBBBBBB_____BBBBB__________
BBBBBBBBBB_____BBBBB__________
''', '''
<style>
@font-face { src: url(weasyprint.otf); font-family: weasyprint }
@page { size: 30px 10px }
svg { display: block }
</style>
<svg width="30px" height="10px" xmlns="http://www.w3.org/2000/svg">
<text x="0" y="9 9 4 9 4" font-family="weasyprint" font-size="5"
fill="blue">
ABCDEF
</text>
</svg>
''')
@assert_no_logs
def test_text_xy():
assert_pixels('text_xy', 30, 10, '''
__________BBBBB_____BBBBBBBBBB
__________BBBBB_____BBBBBBBBBB
__________BBBBB_____BBBBBBBBBB
__________BBBBB_____BBBBBBBBBB
__________BBBBB_____BBBBBBBBBB
BBBBB__________BBBBB__________
BBBBB__________BBBBB__________
BBBBB__________BBBBB__________
BBBBB__________BBBBB__________
BBBBB__________BBBBB__________
''', '''
<style>
@font-face { src: url(weasyprint.otf); font-family: weasyprint }
@page { size: 30px 10px }
svg { display: block }
</style>
<svg width="30px" height="10px" xmlns="http://www.w3.org/2000/svg">
<text x="0 10" y="9 4 9 4" font-family="weasyprint" font-size="5"
fill="blue">
ABCDE
</text>
</svg>
''')
@assert_no_logs
def test_text_dx():
assert_pixels('text_dx', 20, 2, '''
BB__BB_BBBB_________
BB__BB_BBBB_________
''', '''
<style>
@font-face { src: url(weasyprint.otf); font-family: weasyprint }
@page { size: 20px 2px }
svg { display: block }
</style>
<svg width="20px" height="2px" xmlns="http://www.w3.org/2000/svg">
<text dx="0 2 1" y="1.5" font-family="weasyprint" font-size="2"
fill="blue">
ABCD
</text>
</svg>
''')
@assert_no_logs
def test_text_dy():
assert_pixels('text_dy', 30, 10, '''
__________BBBBB_____BBBBBBBBBB
__________BBBBB_____BBBBBBBBBB
__________BBBBB_____BBBBBBBBBB
__________BBBBB_____BBBBBBBBBB
__________BBBBB_____BBBBBBBBBB
BBBBBBBBBB_____BBBBB__________
BBBBBBBBBB_____BBBBB__________
BBBBBBBBBB_____BBBBB__________
BBBBBBBBBB_____BBBBB__________
BBBBBBBBBB_____BBBBB__________
''', '''
<style>
@font-face { src: url(weasyprint.otf); font-family: weasyprint }
@page { size: 30px 10px }
svg { display: block }
</style>
<svg width="30px" height="10px" xmlns="http://www.w3.org/2000/svg">
<text x="0" dy="9 0 -5 5 -5" font-family="weasyprint" font-size="5"
fill="blue">
ABCDEF
</text>
</svg>
''')
@assert_no_logs
def test_text_dx_dy():
assert_pixels('text_dx_dy', 30, 10, '''
__________BBBBB_____BBBBBBBBBB
__________BBBBB_____BBBBBBBBBB
__________BBBBB_____BBBBBBBBBB
__________BBBBB_____BBBBBBBBBB
__________BBBBB_____BBBBBBBBBB
BBBBB__________BBBBB__________
BBBBB__________BBBBB__________
BBBBB__________BBBBB__________
BBBBB__________BBBBB__________
BBBBB__________BBBBB__________
''', '''
<style>
@font-face { src: url(weasyprint.otf); font-family: weasyprint }
@page { size: 30px 10px }
svg { display: block }
</style>
<svg width="30px" height="10px" xmlns="http://www.w3.org/2000/svg">
<text dx="0 5" dy="9 -5 5 -5" font-family="weasyprint" font-size="5"
fill="blue">
ABCDE
</text>
</svg>
''')
| 29.279412 | 79 | 0.590658 | 630 | 5,973 | 4.326984 | 0.11746 | 0.154072 | 0.190756 | 0.242113 | 0.845928 | 0.845928 | 0.837491 | 0.837491 | 0.789068 | 0.768525 | 0 | 0.040287 | 0.276913 | 5,973 | 203 | 80 | 29.423645 | 0.590878 | 0.018416 | 0 | 0.832402 | 0 | 0.089385 | 0.871619 | 0.238275 | 0 | 0 | 0 | 0 | 0.100559 | 1 | 0.044693 | true | 0 | 0.011173 | 0 | 0.055866 | 0.089385 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
0a5f06f8fea0f675c893ef06f133713ea30dc0bd | 16,507 | py | Python | src/command_modules/azure-cli-policyinsights/azure/cli/command_modules/policyinsights/custom.py | stefanb995/azure-cli | d1c0c406d3ec42e496770fc3f81f53de06e4b18c | [
"MIT"
] | null | null | null | src/command_modules/azure-cli-policyinsights/azure/cli/command_modules/policyinsights/custom.py | stefanb995/azure-cli | d1c0c406d3ec42e496770fc3f81f53de06e4b18c | [
"MIT"
] | null | null | null | src/command_modules/azure-cli-policyinsights/azure/cli/command_modules/policyinsights/custom.py | stefanb995/azure-cli | d1c0c406d3ec42e496770fc3f81f53de06e4b18c | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
from msrestazure.tools import is_valid_resource_id, resource_id
from azure.cli.core.commands.client_factory import get_subscription_id
from knack.util import CLIError
def list_policy_events(
cmd,
client,
management_group_name=None,
resource_group_name=None,
resource=None,
namespace=None,
resource_type_parent=None,
resource_type=None,
policy_set_definition_name=None,
policy_definition_name=None,
policy_assignment_name=None,
from_value=None,
to_value=None,
order_by_clause=None,
select_clause=None,
top_value=None,
filter_clause=None,
apply_clause=None):
from azure.mgmt.policyinsights.models import QueryOptions
query_options = QueryOptions(
top=top_value,
order_by=order_by_clause,
select=select_clause,
from_property=from_value,
to=to_value,
filter=filter_clause,
apply=apply_clause)
subscription_id = get_subscription_id(cmd.cli_ctx)
if policy_assignment_name:
if resource_group_name:
events = client.list_query_results_for_resource_group_level_policy_assignment(
subscription_id,
resource_group_name,
policy_assignment_name,
query_options)
else:
events = client.list_query_results_for_subscription_level_policy_assignment(
subscription_id,
policy_assignment_name,
query_options)
elif policy_definition_name:
events = client.list_query_results_for_policy_definition(
subscription_id,
policy_definition_name,
query_options)
elif policy_set_definition_name:
events = client.list_query_results_for_policy_set_definition(
subscription_id,
policy_set_definition_name,
query_options)
elif resource:
if not is_valid_resource_id(resource):
if resource_type_parent:
resource_type_parent = _remove_leading_and_trailing_slash(resource_type_parent)
resource_type = "{}/{}".format(resource_type_parent, resource_type)
resource = resource_id(
subscription=subscription_id,
resource_group=resource_group_name,
namespace=namespace,
type=resource_type,
name=resource)
events = client.list_query_results_for_resource(
resource,
query_options)
elif resource_group_name:
events = client.list_query_results_for_resource_group(
subscription_id,
resource_group_name,
query_options)
elif management_group_name:
events = client.list_query_results_for_management_group(
management_group_name,
query_options)
else:
events = client.list_query_results_for_subscription(
subscription_id,
query_options)
return events.value
def list_policy_states(
cmd,
client,
all_results=False,
management_group_name=None,
resource_group_name=None,
resource=None,
namespace=None,
resource_type_parent=None,
resource_type=None,
policy_set_definition_name=None,
policy_definition_name=None,
policy_assignment_name=None,
from_value=None,
to_value=None,
order_by_clause=None,
select_clause=None,
top_value=None,
filter_clause=None,
apply_clause=None):
from azure.mgmt.policyinsights.models import QueryOptions
query_options = QueryOptions(
top=top_value,
order_by=order_by_clause,
select=select_clause,
from_property=from_value,
to=to_value,
filter=filter_clause,
apply=apply_clause)
policy_states_resource = 'latest'
if all_results is True:
policy_states_resource = 'default'
subscription_id = get_subscription_id(cmd.cli_ctx)
if policy_assignment_name:
if resource_group_name:
states = client.list_query_results_for_resource_group_level_policy_assignment(
policy_states_resource,
subscription_id,
resource_group_name,
policy_assignment_name,
query_options)
else:
states = client.list_query_results_for_subscription_level_policy_assignment(
policy_states_resource,
subscription_id,
policy_assignment_name,
query_options)
elif policy_definition_name:
states = client.list_query_results_for_policy_definition(
policy_states_resource,
subscription_id,
policy_definition_name,
query_options)
elif policy_set_definition_name:
states = client.list_query_results_for_policy_set_definition(
policy_states_resource,
subscription_id,
policy_set_definition_name,
query_options)
elif resource:
if not is_valid_resource_id(resource):
if resource_type_parent:
resource_type_parent = _remove_leading_and_trailing_slash(resource_type_parent)
resource_type = "{}/{}".format(resource_type_parent, resource_type)
resource = resource_id(
subscription=subscription_id,
resource_group=resource_group_name,
namespace=namespace,
type=resource_type,
name=resource)
states = client.list_query_results_for_resource(
policy_states_resource,
resource,
query_options)
elif resource_group_name:
states = client.list_query_results_for_resource_group(
policy_states_resource,
subscription_id,
resource_group_name,
query_options)
elif management_group_name:
states = client.list_query_results_for_management_group(
policy_states_resource,
management_group_name,
query_options)
else:
states = client.list_query_results_for_subscription(
policy_states_resource,
subscription_id,
query_options)
return states.value
def summarize_policy_states(
cmd,
client,
management_group_name=None,
resource_group_name=None,
resource=None,
namespace=None,
resource_type_parent=None,
resource_type=None,
policy_set_definition_name=None,
policy_definition_name=None,
policy_assignment_name=None,
from_value=None,
to_value=None,
top_value=None,
filter_clause=None):
from azure.mgmt.policyinsights.models import QueryOptions
query_options = QueryOptions(
top=top_value,
from_property=from_value,
to=to_value,
filter=filter_clause)
subscription_id = get_subscription_id(cmd.cli_ctx)
if policy_assignment_name:
if resource_group_name:
summary = client.summarize_for_resource_group_level_policy_assignment(
subscription_id,
resource_group_name,
policy_assignment_name,
query_options)
else:
summary = client.summarize_for_subscription_level_policy_assignment(
subscription_id,
policy_assignment_name,
query_options)
elif policy_definition_name:
summary = client.summarize_for_policy_definition(
subscription_id,
policy_definition_name,
query_options)
elif policy_set_definition_name:
summary = client.summarize_for_policy_set_definition(
subscription_id,
policy_set_definition_name,
query_options)
elif resource:
resource = _build_resource_id(
subscription_id,
resource,
resource_group_name,
namespace,
resource_type_parent,
resource_type)
summary = client.summarize_for_resource(
resource,
query_options)
elif resource_group_name:
summary = client.summarize_for_resource_group(
subscription_id,
resource_group_name,
query_options)
elif management_group_name:
summary = client.summarize_for_management_group(
management_group_name,
query_options)
else:
summary = client.summarize_for_subscription(
subscription_id,
query_options)
return summary.value[0]
def get_policy_remediation(
cmd,
client,
remediation_name,
management_group_name=None,
resource_group_name=None,
resource=None,
namespace=None,
resource_type_parent=None,
resource_type=None):
return _execute_remediation_operation(
cmd,
client,
"get_at_resource",
management_group_name,
resource_group_name,
resource,
namespace,
resource_type_parent,
resource_type,
remediation_name)
def list_policy_remediations(
cmd,
client,
management_group_name=None,
resource_group_name=None,
resource=None,
namespace=None,
resource_type_parent=None,
resource_type=None):
return _execute_remediation_operation(
cmd,
client,
"list_for_resource",
management_group_name,
resource_group_name,
resource,
namespace,
resource_type_parent,
resource_type)
def delete_policy_remediation(
cmd,
client,
remediation_name,
management_group_name=None,
resource_group_name=None,
resource=None,
namespace=None,
resource_type_parent=None,
resource_type=None):
return _execute_remediation_operation(
cmd,
client,
"delete_at_resource",
management_group_name,
resource_group_name,
resource,
namespace,
resource_type_parent,
resource_type,
remediation_name)
def cancel_policy_remediation(
cmd,
client,
remediation_name,
management_group_name=None,
resource_group_name=None,
resource=None,
namespace=None,
resource_type_parent=None,
resource_type=None):
return _execute_remediation_operation(
cmd,
client,
"cancel_at_resource",
management_group_name,
resource_group_name,
resource,
namespace,
resource_type_parent,
resource_type,
remediation_name)
def list_policy_remediation_deployments(
cmd,
client,
remediation_name,
management_group_name=None,
resource_group_name=None,
resource=None,
namespace=None,
resource_type_parent=None,
resource_type=None):
return _execute_remediation_operation(
cmd,
client,
"list_deployments_at_resource",
management_group_name,
resource_group_name,
resource,
namespace,
resource_type_parent,
resource_type,
remediation_name)
def create_policy_remediation(
cmd,
client,
remediation_name,
policy_assignment,
definition_reference_id=None,
location_filters=None,
management_group_name=None,
resource_group_name=None,
resource=None,
namespace=None,
resource_type_parent=None,
resource_type=None):
subscription_id = get_subscription_id(cmd.cli_ctx)
scope = _build_remediation_scope(
management_group_name,
subscription_id,
resource_group_name,
resource,
resource_type_parent,
resource_type,
namespace)
from azure.mgmt.policyinsights.models import Remediation
remediation = Remediation(policy_definition_reference_id=definition_reference_id)
# Get the full resource ID of the referenced policy assignment
if (not is_valid_resource_id(policy_assignment) and
not policy_assignment.lower().startswith("/providers/microsoft.management/managementgroups/")):
from ._client_factory import cf_policy
policy_assignment_client = cf_policy(cmd.cli_ctx).policy_assignments
policy_assignments = policy_assignment_client.list()
policy_assignment_ids = [p.id for p in policy_assignments if p.name.lower() == policy_assignment.lower()]
if not policy_assignment_ids:
raise CLIError("No policy assignment with the name '{}' found.".format(policy_assignment))
if len(policy_assignment_ids) > 1:
raise CLIError("Multiple policy assignment with the name '{}' found. "
"Specify the policy assignment ID.".format(policy_assignment))
policy_assignment = policy_assignment_ids[0]
remediation.policy_assignment_id = policy_assignment
# Ensure locations in the location filters are using their short name
if location_filters:
locations_list = []
for location_arg in location_filters:
locations_list.append(location_arg.replace(' ', ''))
from azure.mgmt.policyinsights.models import RemediationFilters
remediation.filters = RemediationFilters(locations=locations_list)
return client.create_or_update_at_resource(
resource_id=_remove_leading_and_trailing_slash(scope),
remediation_name=remediation_name,
parameters=remediation)
def _execute_remediation_operation(
cmd,
client,
operation_name,
management_group_name=None,
resource_group_name=None,
resource=None,
namespace=None,
resource_type_parent=None,
resource_type=None,
remediation_name=None):
subscription_id = get_subscription_id(cmd.cli_ctx)
scope = _build_remediation_scope(
management_group_name,
subscription_id,
resource_group_name,
resource,
resource_type_parent,
resource_type,
namespace)
operation = getattr(client, operation_name)
if remediation_name is None:
return operation(resource_id=_remove_leading_and_trailing_slash(scope))
return operation(resource_id=_remove_leading_and_trailing_slash(scope), remediation_name=remediation_name)
def _build_resource_id(
subscription_id,
resource,
resource_group_name=None,
namespace=None,
resource_type_parent=None,
resource_type=None):
if not is_valid_resource_id(resource):
if resource_type_parent:
resource_type_parent = _remove_leading_and_trailing_slash(resource_type_parent)
resource_type = "{}/{}".format(resource_type_parent, resource_type)
resource = resource_id(
subscription=subscription_id,
resource_group=resource_group_name,
namespace=namespace,
type=resource_type,
name=resource)
return resource
def _build_remediation_scope(
management_group=None,
subscription=None,
resource_group_name=None,
resource=None,
resource_type_parent=None,
resource_type=None,
namespace=None):
if management_group:
return "/providers/Microsoft.Management/managementGroups/{}".format(management_group)
if resource:
return _build_resource_id(subscription, resource, resource_group_name,
namespace, resource_type_parent, resource_type)
return resource_id(subscription=subscription, resource_group=resource_group_name)
def _remove_leading_and_trailing_slash(s):
if s:
if s.startswith('/'):
s = s[1:]
if s.endswith('/'):
s = s[:-1]
return s
| 31.441905 | 113 | 0.644272 | 1,682 | 16,507 | 5.882878 | 0.083234 | 0.076402 | 0.063567 | 0.044568 | 0.80475 | 0.781506 | 0.757049 | 0.72764 | 0.706822 | 0.65528 | 0 | 0.000426 | 0.289756 | 16,507 | 524 | 114 | 31.501908 | 0.843569 | 0.02817 | 0 | 0.769737 | 0 | 0 | 0.022389 | 0.007983 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028509 | false | 0 | 0.019737 | 0.010965 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0a6414e21ba9dfbeeed36bcb4327fb3af2fa7988 | 56,751 | py | Python | python/foglamp/plugins/south/mqtt_sparkplug/sparkplug_b/sparkplug_b_pb2.py | foglamp/foglamp-south-mqtt-sparkplug | 63c664bb2762170af94913a4282fad6b3e478cef | [
"Apache-2.0"
] | 1 | 2022-03-29T08:54:58.000Z | 2022-03-29T08:54:58.000Z | python/fledge/plugins/south/mqtt_sparkplug/sparkplug_b/sparkplug_b_pb2.py | fledge-iot/fledge-south-mqtt-sparkplug | 3459cf20fbb9e50644365e4ab463d96f031ae743 | [
"Apache-2.0"
] | null | null | null | python/fledge/plugins/south/mqtt_sparkplug/sparkplug_b/sparkplug_b_pb2.py | fledge-iot/fledge-south-mqtt-sparkplug | 3459cf20fbb9e50644365e4ab463d96f031ae743 | [
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: sparkplug_b.proto
import sys
_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor(
name='sparkplug_b.proto',
package='com.cirruslink.sparkplug.protobuf',
syntax='proto2',
serialized_pb=_b('\n\x11sparkplug_b.proto\x12!com.cirruslink.sparkplug.protobuf\"\xf6\x16\n\x07Payload\x12\x11\n\ttimestamp\x18\x01 \x01(\x04\x12\x42\n\x07metrics\x18\x02 \x03(\x0b\x32\x31.com.cirruslink.sparkplug.protobuf.Payload.Metric\x12\x0b\n\x03seq\x18\x03 \x01(\x04\x12\x0c\n\x04uuid\x18\x04 \x01(\t\x12\x0c\n\x04\x62ody\x18\x05 \x01(\x0c\x1a\xbe\x04\n\x08Template\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x42\n\x07metrics\x18\x02 \x03(\x0b\x32\x31.com.cirruslink.sparkplug.protobuf.Payload.Metric\x12Q\n\nparameters\x18\x03 \x03(\x0b\x32=.com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter\x12\x14\n\x0ctemplate_ref\x18\x04 \x01(\t\x12\x15\n\ris_definition\x18\x05 \x01(\x08\x1a\xd2\x02\n\tParameter\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\r\x12\x13\n\tint_value\x18\x03 \x01(\rH\x00\x12\x14\n\nlong_value\x18\x04 \x01(\x04H\x00\x12\x15\n\x0b\x66loat_value\x18\x05 \x01(\x02H\x00\x12\x16\n\x0c\x64ouble_value\x18\x06 \x01(\x01H\x00\x12\x17\n\rboolean_value\x18\x07 \x01(\x08H\x00\x12\x16\n\x0cstring_value\x18\x08 \x01(\tH\x00\x12p\n\x0f\x65xtension_value\x18\t \x01(\x0b\x32U.com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter.ParameterValueExtensionH\x00\x1a#\n\x17ParameterValueExtension*\x08\x08\x01\x10\x80\x80\x80\x80\x02\x42\x07\n\x05value*\x08\x08\x06\x10\x80\x80\x80\x80\x02\x1a\xaf\x04\n\x07\x44\x61taSet\x12\x16\n\x0enum_of_columns\x18\x01 \x01(\x04\x12\x0f\n\x07\x63olumns\x18\x02 \x03(\t\x12\r\n\x05types\x18\x03 \x03(\r\x12\x44\n\x04rows\x18\x04 \x03(\x0b\x32\x36.com.cirruslink.sparkplug.protobuf.Payload.DataSet.Row\x1a\xb7\x02\n\x0c\x44\x61taSetValue\x12\x13\n\tint_value\x18\x01 \x01(\rH\x00\x12\x14\n\nlong_value\x18\x02 \x01(\x04H\x00\x12\x15\n\x0b\x66loat_value\x18\x03 \x01(\x02H\x00\x12\x16\n\x0c\x64ouble_value\x18\x04 \x01(\x01H\x00\x12\x17\n\rboolean_value\x18\x05 \x01(\x08H\x00\x12\x16\n\x0cstring_value\x18\x06 \x01(\tH\x00\x12p\n\x0f\x65xtension_value\x18\x07 \x01(\x0b\x32U.com.cirruslink.sparkplug.protobuf.Payload.DataSet.DataSetValue.DataSetValueExtensionH\x00\x1a!\n\x15\x44\x61taSetValueExtension*\x08\x08\x01\x10\x80\x80\x80\x80\x02\x42\x07\n\x05value\x1a\x62\n\x03Row\x12Q\n\x08\x65lements\x18\x01 \x03(\x0b\x32?.com.cirruslink.sparkplug.protobuf.Payload.DataSet.DataSetValue*\x08\x08\x02\x10\x80\x80\x80\x80\x02*\x08\x08\x05\x10\x80\x80\x80\x80\x02\x1a\x81\x04\n\rPropertyValue\x12\x0c\n\x04type\x18\x01 \x01(\r\x12\x0f\n\x07is_null\x18\x02 \x01(\x08\x12\x13\n\tint_value\x18\x03 \x01(\rH\x00\x12\x14\n\nlong_value\x18\x04 \x01(\x04H\x00\x12\x15\n\x0b\x66loat_value\x18\x05 \x01(\x02H\x00\x12\x16\n\x0c\x64ouble_value\x18\x06 \x01(\x01H\x00\x12\x17\n\rboolean_value\x18\x07 \x01(\x08H\x00\x12\x16\n\x0cstring_value\x18\x08 \x01(\tH\x00\x12S\n\x11propertyset_value\x18\t \x01(\x0b\x32\x36.com.cirruslink.sparkplug.protobuf.Payload.PropertySetH\x00\x12X\n\x12propertysets_value\x18\n \x01(\x0b\x32:.com.cirruslink.sparkplug.protobuf.Payload.PropertySetListH\x00\x12j\n\x0f\x65xtension_value\x18\x0b \x01(\x0b\x32O.com.cirruslink.sparkplug.protobuf.Payload.PropertyValue.PropertyValueExtensionH\x00\x1a\"\n\x16PropertyValueExtension*\x08\x08\x01\x10\x80\x80\x80\x80\x02\x42\x07\n\x05value\x1ao\n\x0bPropertySet\x12\x0c\n\x04keys\x18\x01 \x03(\t\x12H\n\x06values\x18\x02 \x03(\x0b\x32\x38.com.cirruslink.sparkplug.protobuf.Payload.PropertyValue*\x08\x08\x03\x10\x80\x80\x80\x80\x02\x1ah\n\x0fPropertySetList\x12K\n\x0bpropertyset\x18\x01 \x03(\x0b\x32\x36.com.cirruslink.sparkplug.protobuf.Payload.PropertySet*\x08\x08\x02\x10\x80\x80\x80\x80\x02\x1a\xa4\x01\n\x08MetaData\x12\x15\n\ris_multi_part\x18\x01 \x01(\x08\x12\x14\n\x0c\x63ontent_type\x18\x02 \x01(\t\x12\x0c\n\x04size\x18\x03 \x01(\x04\x12\x0b\n\x03seq\x18\x04 \x01(\x04\x12\x11\n\tfile_name\x18\x05 \x01(\t\x12\x11\n\tfile_type\x18\x06 \x01(\t\x12\x0b\n\x03md5\x18\x07 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x08 \x01(\t*\x08\x08\t\x10\x80\x80\x80\x80\x02\x1a\xe7\x05\n\x06Metric\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05\x61lias\x18\x02 \x01(\x04\x12\x11\n\ttimestamp\x18\x03 \x01(\x04\x12\x10\n\x08\x64\x61tatype\x18\x04 \x01(\r\x12\x15\n\ris_historical\x18\x05 \x01(\x08\x12\x14\n\x0cis_transient\x18\x06 \x01(\x08\x12\x0f\n\x07is_null\x18\x07 \x01(\x08\x12\x45\n\x08metadata\x18\x08 \x01(\x0b\x32\x33.com.cirruslink.sparkplug.protobuf.Payload.MetaData\x12J\n\nproperties\x18\t \x01(\x0b\x32\x36.com.cirruslink.sparkplug.protobuf.Payload.PropertySet\x12\x13\n\tint_value\x18\n \x01(\rH\x00\x12\x14\n\nlong_value\x18\x0b \x01(\x04H\x00\x12\x15\n\x0b\x66loat_value\x18\x0c \x01(\x02H\x00\x12\x16\n\x0c\x64ouble_value\x18\r \x01(\x01H\x00\x12\x17\n\rboolean_value\x18\x0e \x01(\x08H\x00\x12\x16\n\x0cstring_value\x18\x0f \x01(\tH\x00\x12\x15\n\x0b\x62ytes_value\x18\x10 \x01(\x0cH\x00\x12K\n\rdataset_value\x18\x11 \x01(\x0b\x32\x32.com.cirruslink.sparkplug.protobuf.Payload.DataSetH\x00\x12M\n\x0etemplate_value\x18\x12 \x01(\x0b\x32\x33.com.cirruslink.sparkplug.protobuf.Payload.TemplateH\x00\x12\x61\n\x0f\x65xtension_value\x18\x13 \x01(\x0b\x32\x46.com.cirruslink.sparkplug.protobuf.Payload.Metric.MetricValueExtensionH\x00\x1a \n\x14MetricValueExtension*\x08\x08\x01\x10\x80\x80\x80\x80\x02\x42\x07\n\x05value*\x08\x08\x06\x10\x80\x80\x80\x80\x02\x42\x34\n!com.cirruslink.sparkplug.protobufB\x0fSparkplugBProto')
)
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
_PAYLOAD_TEMPLATE_PARAMETER_PARAMETERVALUEEXTENSION = _descriptor.Descriptor(
name='ParameterValueExtension',
full_name='com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter.ParameterValueExtension',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=True,
syntax='proto2',
extension_ranges=[(1, 536870912), ],
oneofs=[
],
serialized_start=717,
serialized_end=752,
)
_PAYLOAD_TEMPLATE_PARAMETER = _descriptor.Descriptor(
name='Parameter',
full_name='com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter.name', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='type', full_name='com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter.type', index=1,
number=2, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='int_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter.int_value', index=2,
number=3, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='long_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter.long_value', index=3,
number=4, type=4, cpp_type=4, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='float_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter.float_value', index=4,
number=5, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='double_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter.double_value', index=5,
number=6, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='boolean_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter.boolean_value', index=6,
number=7, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='string_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter.string_value', index=7,
number=8, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='extension_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter.extension_value', index=8,
number=9, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[_PAYLOAD_TEMPLATE_PARAMETER_PARAMETERVALUEEXTENSION, ],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
_descriptor.OneofDescriptor(
name='value', full_name='com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter.value',
index=0, containing_type=None, fields=[]),
],
serialized_start=423,
serialized_end=761,
)
_PAYLOAD_TEMPLATE = _descriptor.Descriptor(
name='Template',
full_name='com.cirruslink.sparkplug.protobuf.Payload.Template',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='version', full_name='com.cirruslink.sparkplug.protobuf.Payload.Template.version', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='metrics', full_name='com.cirruslink.sparkplug.protobuf.Payload.Template.metrics', index=1,
number=2, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='parameters', full_name='com.cirruslink.sparkplug.protobuf.Payload.Template.parameters', index=2,
number=3, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='template_ref', full_name='com.cirruslink.sparkplug.protobuf.Payload.Template.template_ref', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='is_definition', full_name='com.cirruslink.sparkplug.protobuf.Payload.Template.is_definition', index=4,
number=5, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[_PAYLOAD_TEMPLATE_PARAMETER, ],
enum_types=[
],
options=None,
is_extendable=True,
syntax='proto2',
extension_ranges=[(6, 536870912), ],
oneofs=[
],
serialized_start=197,
serialized_end=771,
)
_PAYLOAD_DATASET_DATASETVALUE_DATASETVALUEEXTENSION = _descriptor.Descriptor(
name='DataSetValueExtension',
full_name='com.cirruslink.sparkplug.protobuf.Payload.DataSet.DataSetValue.DataSetValueExtension',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=True,
syntax='proto2',
extension_ranges=[(1, 536870912), ],
oneofs=[
],
serialized_start=1181,
serialized_end=1214,
)
_PAYLOAD_DATASET_DATASETVALUE = _descriptor.Descriptor(
name='DataSetValue',
full_name='com.cirruslink.sparkplug.protobuf.Payload.DataSet.DataSetValue',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='int_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.DataSet.DataSetValue.int_value', index=0,
number=1, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='long_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.DataSet.DataSetValue.long_value', index=1,
number=2, type=4, cpp_type=4, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='float_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.DataSet.DataSetValue.float_value', index=2,
number=3, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='double_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.DataSet.DataSetValue.double_value', index=3,
number=4, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='boolean_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.DataSet.DataSetValue.boolean_value', index=4,
number=5, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='string_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.DataSet.DataSetValue.string_value', index=5,
number=6, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='extension_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.DataSet.DataSetValue.extension_value', index=6,
number=7, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[_PAYLOAD_DATASET_DATASETVALUE_DATASETVALUEEXTENSION, ],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
_descriptor.OneofDescriptor(
name='value', full_name='com.cirruslink.sparkplug.protobuf.Payload.DataSet.DataSetValue.value',
index=0, containing_type=None, fields=[]),
],
serialized_start=912,
serialized_end=1223,
)
_PAYLOAD_DATASET_ROW = _descriptor.Descriptor(
name='Row',
full_name='com.cirruslink.sparkplug.protobuf.Payload.DataSet.Row',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='elements', full_name='com.cirruslink.sparkplug.protobuf.Payload.DataSet.Row.elements', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=True,
syntax='proto2',
extension_ranges=[(2, 536870912), ],
oneofs=[
],
serialized_start=1225,
serialized_end=1323,
)
_PAYLOAD_DATASET = _descriptor.Descriptor(
name='DataSet',
full_name='com.cirruslink.sparkplug.protobuf.Payload.DataSet',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='num_of_columns', full_name='com.cirruslink.sparkplug.protobuf.Payload.DataSet.num_of_columns', index=0,
number=1, type=4, cpp_type=4, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='columns', full_name='com.cirruslink.sparkplug.protobuf.Payload.DataSet.columns', index=1,
number=2, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='types', full_name='com.cirruslink.sparkplug.protobuf.Payload.DataSet.types', index=2,
number=3, type=13, cpp_type=3, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='rows', full_name='com.cirruslink.sparkplug.protobuf.Payload.DataSet.rows', index=3,
number=4, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[_PAYLOAD_DATASET_DATASETVALUE, _PAYLOAD_DATASET_ROW, ],
enum_types=[
],
options=None,
is_extendable=True,
syntax='proto2',
extension_ranges=[(5, 536870912), ],
oneofs=[
],
serialized_start=774,
serialized_end=1333,
)
_PAYLOAD_PROPERTYVALUE_PROPERTYVALUEEXTENSION = _descriptor.Descriptor(
name='PropertyValueExtension',
full_name='com.cirruslink.sparkplug.protobuf.Payload.PropertyValue.PropertyValueExtension',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=True,
syntax='proto2',
extension_ranges=[(1, 536870912), ],
oneofs=[
],
serialized_start=1806,
serialized_end=1840,
)
_PAYLOAD_PROPERTYVALUE = _descriptor.Descriptor(
name='PropertyValue',
full_name='com.cirruslink.sparkplug.protobuf.Payload.PropertyValue',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='type', full_name='com.cirruslink.sparkplug.protobuf.Payload.PropertyValue.type', index=0,
number=1, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='is_null', full_name='com.cirruslink.sparkplug.protobuf.Payload.PropertyValue.is_null', index=1,
number=2, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='int_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.PropertyValue.int_value', index=2,
number=3, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='long_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.PropertyValue.long_value', index=3,
number=4, type=4, cpp_type=4, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='float_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.PropertyValue.float_value', index=4,
number=5, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='double_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.PropertyValue.double_value', index=5,
number=6, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='boolean_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.PropertyValue.boolean_value', index=6,
number=7, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='string_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.PropertyValue.string_value', index=7,
number=8, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='propertyset_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.PropertyValue.propertyset_value', index=8,
number=9, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='propertysets_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.PropertyValue.propertysets_value', index=9,
number=10, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='extension_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.PropertyValue.extension_value', index=10,
number=11, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[_PAYLOAD_PROPERTYVALUE_PROPERTYVALUEEXTENSION, ],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
_descriptor.OneofDescriptor(
name='value', full_name='com.cirruslink.sparkplug.protobuf.Payload.PropertyValue.value',
index=0, containing_type=None, fields=[]),
],
serialized_start=1336,
serialized_end=1849,
)
_PAYLOAD_PROPERTYSET = _descriptor.Descriptor(
name='PropertySet',
full_name='com.cirruslink.sparkplug.protobuf.Payload.PropertySet',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='keys', full_name='com.cirruslink.sparkplug.protobuf.Payload.PropertySet.keys', index=0,
number=1, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='values', full_name='com.cirruslink.sparkplug.protobuf.Payload.PropertySet.values', index=1,
number=2, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=True,
syntax='proto2',
extension_ranges=[(3, 536870912), ],
oneofs=[
],
serialized_start=1851,
serialized_end=1962,
)
_PAYLOAD_PROPERTYSETLIST = _descriptor.Descriptor(
name='PropertySetList',
full_name='com.cirruslink.sparkplug.protobuf.Payload.PropertySetList',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='propertyset', full_name='com.cirruslink.sparkplug.protobuf.Payload.PropertySetList.propertyset', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=True,
syntax='proto2',
extension_ranges=[(2, 536870912), ],
oneofs=[
],
serialized_start=1964,
serialized_end=2068,
)
_PAYLOAD_METADATA = _descriptor.Descriptor(
name='MetaData',
full_name='com.cirruslink.sparkplug.protobuf.Payload.MetaData',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='is_multi_part', full_name='com.cirruslink.sparkplug.protobuf.Payload.MetaData.is_multi_part', index=0,
number=1, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='content_type', full_name='com.cirruslink.sparkplug.protobuf.Payload.MetaData.content_type', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='size', full_name='com.cirruslink.sparkplug.protobuf.Payload.MetaData.size', index=2,
number=3, type=4, cpp_type=4, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='seq', full_name='com.cirruslink.sparkplug.protobuf.Payload.MetaData.seq', index=3,
number=4, type=4, cpp_type=4, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='file_name', full_name='com.cirruslink.sparkplug.protobuf.Payload.MetaData.file_name', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='file_type', full_name='com.cirruslink.sparkplug.protobuf.Payload.MetaData.file_type', index=5,
number=6, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='md5', full_name='com.cirruslink.sparkplug.protobuf.Payload.MetaData.md5', index=6,
number=7, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='description', full_name='com.cirruslink.sparkplug.protobuf.Payload.MetaData.description', index=7,
number=8, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=True,
syntax='proto2',
extension_ranges=[(9, 536870912), ],
oneofs=[
],
serialized_start=2071,
serialized_end=2235,
)
_PAYLOAD_METRIC_METRICVALUEEXTENSION = _descriptor.Descriptor(
name='MetricValueExtension',
full_name='com.cirruslink.sparkplug.protobuf.Payload.Metric.MetricValueExtension',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=True,
syntax='proto2',
extension_ranges=[(1, 536870912), ],
oneofs=[
],
serialized_start=2940,
serialized_end=2972,
)
_PAYLOAD_METRIC = _descriptor.Descriptor(
name='Metric',
full_name='com.cirruslink.sparkplug.protobuf.Payload.Metric',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='com.cirruslink.sparkplug.protobuf.Payload.Metric.name', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='alias', full_name='com.cirruslink.sparkplug.protobuf.Payload.Metric.alias', index=1,
number=2, type=4, cpp_type=4, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='timestamp', full_name='com.cirruslink.sparkplug.protobuf.Payload.Metric.timestamp', index=2,
number=3, type=4, cpp_type=4, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='datatype', full_name='com.cirruslink.sparkplug.protobuf.Payload.Metric.datatype', index=3,
number=4, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='is_historical', full_name='com.cirruslink.sparkplug.protobuf.Payload.Metric.is_historical', index=4,
number=5, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='is_transient', full_name='com.cirruslink.sparkplug.protobuf.Payload.Metric.is_transient', index=5,
number=6, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='is_null', full_name='com.cirruslink.sparkplug.protobuf.Payload.Metric.is_null', index=6,
number=7, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='metadata', full_name='com.cirruslink.sparkplug.protobuf.Payload.Metric.metadata', index=7,
number=8, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='properties', full_name='com.cirruslink.sparkplug.protobuf.Payload.Metric.properties', index=8,
number=9, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='int_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.Metric.int_value', index=9,
number=10, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='long_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.Metric.long_value', index=10,
number=11, type=4, cpp_type=4, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='float_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.Metric.float_value', index=11,
number=12, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='double_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.Metric.double_value', index=12,
number=13, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='boolean_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.Metric.boolean_value', index=13,
number=14, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='string_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.Metric.string_value', index=14,
number=15, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='bytes_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.Metric.bytes_value', index=15,
number=16, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='dataset_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.Metric.dataset_value', index=16,
number=17, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='template_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.Metric.template_value', index=17,
number=18, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='extension_value', full_name='com.cirruslink.sparkplug.protobuf.Payload.Metric.extension_value', index=18,
number=19, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[_PAYLOAD_METRIC_METRICVALUEEXTENSION, ],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
_descriptor.OneofDescriptor(
name='value', full_name='com.cirruslink.sparkplug.protobuf.Payload.Metric.value',
index=0, containing_type=None, fields=[]),
],
serialized_start=2238,
serialized_end=2981,
)
_PAYLOAD = _descriptor.Descriptor(
name='Payload',
full_name='com.cirruslink.sparkplug.protobuf.Payload',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='timestamp', full_name='com.cirruslink.sparkplug.protobuf.Payload.timestamp', index=0,
number=1, type=4, cpp_type=4, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='metrics', full_name='com.cirruslink.sparkplug.protobuf.Payload.metrics', index=1,
number=2, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='seq', full_name='com.cirruslink.sparkplug.protobuf.Payload.seq', index=2,
number=3, type=4, cpp_type=4, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='uuid', full_name='com.cirruslink.sparkplug.protobuf.Payload.uuid', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='body', full_name='com.cirruslink.sparkplug.protobuf.Payload.body', index=4,
number=5, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[_PAYLOAD_TEMPLATE, _PAYLOAD_DATASET, _PAYLOAD_PROPERTYVALUE, _PAYLOAD_PROPERTYSET, _PAYLOAD_PROPERTYSETLIST, _PAYLOAD_METADATA, _PAYLOAD_METRIC, ],
enum_types=[
],
options=None,
is_extendable=True,
syntax='proto2',
extension_ranges=[(6, 536870912), ],
oneofs=[
],
serialized_start=57,
serialized_end=2991,
)
_PAYLOAD_TEMPLATE_PARAMETER_PARAMETERVALUEEXTENSION.containing_type = _PAYLOAD_TEMPLATE_PARAMETER
_PAYLOAD_TEMPLATE_PARAMETER.fields_by_name['extension_value'].message_type = _PAYLOAD_TEMPLATE_PARAMETER_PARAMETERVALUEEXTENSION
_PAYLOAD_TEMPLATE_PARAMETER.containing_type = _PAYLOAD_TEMPLATE
_PAYLOAD_TEMPLATE_PARAMETER.oneofs_by_name['value'].fields.append(
_PAYLOAD_TEMPLATE_PARAMETER.fields_by_name['int_value'])
_PAYLOAD_TEMPLATE_PARAMETER.fields_by_name['int_value'].containing_oneof = _PAYLOAD_TEMPLATE_PARAMETER.oneofs_by_name['value']
_PAYLOAD_TEMPLATE_PARAMETER.oneofs_by_name['value'].fields.append(
_PAYLOAD_TEMPLATE_PARAMETER.fields_by_name['long_value'])
_PAYLOAD_TEMPLATE_PARAMETER.fields_by_name['long_value'].containing_oneof = _PAYLOAD_TEMPLATE_PARAMETER.oneofs_by_name['value']
_PAYLOAD_TEMPLATE_PARAMETER.oneofs_by_name['value'].fields.append(
_PAYLOAD_TEMPLATE_PARAMETER.fields_by_name['float_value'])
_PAYLOAD_TEMPLATE_PARAMETER.fields_by_name['float_value'].containing_oneof = _PAYLOAD_TEMPLATE_PARAMETER.oneofs_by_name['value']
_PAYLOAD_TEMPLATE_PARAMETER.oneofs_by_name['value'].fields.append(
_PAYLOAD_TEMPLATE_PARAMETER.fields_by_name['double_value'])
_PAYLOAD_TEMPLATE_PARAMETER.fields_by_name['double_value'].containing_oneof = _PAYLOAD_TEMPLATE_PARAMETER.oneofs_by_name['value']
_PAYLOAD_TEMPLATE_PARAMETER.oneofs_by_name['value'].fields.append(
_PAYLOAD_TEMPLATE_PARAMETER.fields_by_name['boolean_value'])
_PAYLOAD_TEMPLATE_PARAMETER.fields_by_name['boolean_value'].containing_oneof = _PAYLOAD_TEMPLATE_PARAMETER.oneofs_by_name['value']
_PAYLOAD_TEMPLATE_PARAMETER.oneofs_by_name['value'].fields.append(
_PAYLOAD_TEMPLATE_PARAMETER.fields_by_name['string_value'])
_PAYLOAD_TEMPLATE_PARAMETER.fields_by_name['string_value'].containing_oneof = _PAYLOAD_TEMPLATE_PARAMETER.oneofs_by_name['value']
_PAYLOAD_TEMPLATE_PARAMETER.oneofs_by_name['value'].fields.append(
_PAYLOAD_TEMPLATE_PARAMETER.fields_by_name['extension_value'])
_PAYLOAD_TEMPLATE_PARAMETER.fields_by_name['extension_value'].containing_oneof = _PAYLOAD_TEMPLATE_PARAMETER.oneofs_by_name['value']
_PAYLOAD_TEMPLATE.fields_by_name['metrics'].message_type = _PAYLOAD_METRIC
_PAYLOAD_TEMPLATE.fields_by_name['parameters'].message_type = _PAYLOAD_TEMPLATE_PARAMETER
_PAYLOAD_TEMPLATE.containing_type = _PAYLOAD
_PAYLOAD_DATASET_DATASETVALUE_DATASETVALUEEXTENSION.containing_type = _PAYLOAD_DATASET_DATASETVALUE
_PAYLOAD_DATASET_DATASETVALUE.fields_by_name['extension_value'].message_type = _PAYLOAD_DATASET_DATASETVALUE_DATASETVALUEEXTENSION
_PAYLOAD_DATASET_DATASETVALUE.containing_type = _PAYLOAD_DATASET
_PAYLOAD_DATASET_DATASETVALUE.oneofs_by_name['value'].fields.append(
_PAYLOAD_DATASET_DATASETVALUE.fields_by_name['int_value'])
_PAYLOAD_DATASET_DATASETVALUE.fields_by_name['int_value'].containing_oneof = _PAYLOAD_DATASET_DATASETVALUE.oneofs_by_name['value']
_PAYLOAD_DATASET_DATASETVALUE.oneofs_by_name['value'].fields.append(
_PAYLOAD_DATASET_DATASETVALUE.fields_by_name['long_value'])
_PAYLOAD_DATASET_DATASETVALUE.fields_by_name['long_value'].containing_oneof = _PAYLOAD_DATASET_DATASETVALUE.oneofs_by_name['value']
_PAYLOAD_DATASET_DATASETVALUE.oneofs_by_name['value'].fields.append(
_PAYLOAD_DATASET_DATASETVALUE.fields_by_name['float_value'])
_PAYLOAD_DATASET_DATASETVALUE.fields_by_name['float_value'].containing_oneof = _PAYLOAD_DATASET_DATASETVALUE.oneofs_by_name['value']
_PAYLOAD_DATASET_DATASETVALUE.oneofs_by_name['value'].fields.append(
_PAYLOAD_DATASET_DATASETVALUE.fields_by_name['double_value'])
_PAYLOAD_DATASET_DATASETVALUE.fields_by_name['double_value'].containing_oneof = _PAYLOAD_DATASET_DATASETVALUE.oneofs_by_name['value']
_PAYLOAD_DATASET_DATASETVALUE.oneofs_by_name['value'].fields.append(
_PAYLOAD_DATASET_DATASETVALUE.fields_by_name['boolean_value'])
_PAYLOAD_DATASET_DATASETVALUE.fields_by_name['boolean_value'].containing_oneof = _PAYLOAD_DATASET_DATASETVALUE.oneofs_by_name['value']
_PAYLOAD_DATASET_DATASETVALUE.oneofs_by_name['value'].fields.append(
_PAYLOAD_DATASET_DATASETVALUE.fields_by_name['string_value'])
_PAYLOAD_DATASET_DATASETVALUE.fields_by_name['string_value'].containing_oneof = _PAYLOAD_DATASET_DATASETVALUE.oneofs_by_name['value']
_PAYLOAD_DATASET_DATASETVALUE.oneofs_by_name['value'].fields.append(
_PAYLOAD_DATASET_DATASETVALUE.fields_by_name['extension_value'])
_PAYLOAD_DATASET_DATASETVALUE.fields_by_name['extension_value'].containing_oneof = _PAYLOAD_DATASET_DATASETVALUE.oneofs_by_name['value']
_PAYLOAD_DATASET_ROW.fields_by_name['elements'].message_type = _PAYLOAD_DATASET_DATASETVALUE
_PAYLOAD_DATASET_ROW.containing_type = _PAYLOAD_DATASET
_PAYLOAD_DATASET.fields_by_name['rows'].message_type = _PAYLOAD_DATASET_ROW
_PAYLOAD_DATASET.containing_type = _PAYLOAD
_PAYLOAD_PROPERTYVALUE_PROPERTYVALUEEXTENSION.containing_type = _PAYLOAD_PROPERTYVALUE
_PAYLOAD_PROPERTYVALUE.fields_by_name['propertyset_value'].message_type = _PAYLOAD_PROPERTYSET
_PAYLOAD_PROPERTYVALUE.fields_by_name['propertysets_value'].message_type = _PAYLOAD_PROPERTYSETLIST
_PAYLOAD_PROPERTYVALUE.fields_by_name['extension_value'].message_type = _PAYLOAD_PROPERTYVALUE_PROPERTYVALUEEXTENSION
_PAYLOAD_PROPERTYVALUE.containing_type = _PAYLOAD
_PAYLOAD_PROPERTYVALUE.oneofs_by_name['value'].fields.append(
_PAYLOAD_PROPERTYVALUE.fields_by_name['int_value'])
_PAYLOAD_PROPERTYVALUE.fields_by_name['int_value'].containing_oneof = _PAYLOAD_PROPERTYVALUE.oneofs_by_name['value']
_PAYLOAD_PROPERTYVALUE.oneofs_by_name['value'].fields.append(
_PAYLOAD_PROPERTYVALUE.fields_by_name['long_value'])
_PAYLOAD_PROPERTYVALUE.fields_by_name['long_value'].containing_oneof = _PAYLOAD_PROPERTYVALUE.oneofs_by_name['value']
_PAYLOAD_PROPERTYVALUE.oneofs_by_name['value'].fields.append(
_PAYLOAD_PROPERTYVALUE.fields_by_name['float_value'])
_PAYLOAD_PROPERTYVALUE.fields_by_name['float_value'].containing_oneof = _PAYLOAD_PROPERTYVALUE.oneofs_by_name['value']
_PAYLOAD_PROPERTYVALUE.oneofs_by_name['value'].fields.append(
_PAYLOAD_PROPERTYVALUE.fields_by_name['double_value'])
_PAYLOAD_PROPERTYVALUE.fields_by_name['double_value'].containing_oneof = _PAYLOAD_PROPERTYVALUE.oneofs_by_name['value']
_PAYLOAD_PROPERTYVALUE.oneofs_by_name['value'].fields.append(
_PAYLOAD_PROPERTYVALUE.fields_by_name['boolean_value'])
_PAYLOAD_PROPERTYVALUE.fields_by_name['boolean_value'].containing_oneof = _PAYLOAD_PROPERTYVALUE.oneofs_by_name['value']
_PAYLOAD_PROPERTYVALUE.oneofs_by_name['value'].fields.append(
_PAYLOAD_PROPERTYVALUE.fields_by_name['string_value'])
_PAYLOAD_PROPERTYVALUE.fields_by_name['string_value'].containing_oneof = _PAYLOAD_PROPERTYVALUE.oneofs_by_name['value']
_PAYLOAD_PROPERTYVALUE.oneofs_by_name['value'].fields.append(
_PAYLOAD_PROPERTYVALUE.fields_by_name['propertyset_value'])
_PAYLOAD_PROPERTYVALUE.fields_by_name['propertyset_value'].containing_oneof = _PAYLOAD_PROPERTYVALUE.oneofs_by_name['value']
_PAYLOAD_PROPERTYVALUE.oneofs_by_name['value'].fields.append(
_PAYLOAD_PROPERTYVALUE.fields_by_name['propertysets_value'])
_PAYLOAD_PROPERTYVALUE.fields_by_name['propertysets_value'].containing_oneof = _PAYLOAD_PROPERTYVALUE.oneofs_by_name['value']
_PAYLOAD_PROPERTYVALUE.oneofs_by_name['value'].fields.append(
_PAYLOAD_PROPERTYVALUE.fields_by_name['extension_value'])
_PAYLOAD_PROPERTYVALUE.fields_by_name['extension_value'].containing_oneof = _PAYLOAD_PROPERTYVALUE.oneofs_by_name['value']
_PAYLOAD_PROPERTYSET.fields_by_name['values'].message_type = _PAYLOAD_PROPERTYVALUE
_PAYLOAD_PROPERTYSET.containing_type = _PAYLOAD
_PAYLOAD_PROPERTYSETLIST.fields_by_name['propertyset'].message_type = _PAYLOAD_PROPERTYSET
_PAYLOAD_PROPERTYSETLIST.containing_type = _PAYLOAD
_PAYLOAD_METADATA.containing_type = _PAYLOAD
_PAYLOAD_METRIC_METRICVALUEEXTENSION.containing_type = _PAYLOAD_METRIC
_PAYLOAD_METRIC.fields_by_name['metadata'].message_type = _PAYLOAD_METADATA
_PAYLOAD_METRIC.fields_by_name['properties'].message_type = _PAYLOAD_PROPERTYSET
_PAYLOAD_METRIC.fields_by_name['dataset_value'].message_type = _PAYLOAD_DATASET
_PAYLOAD_METRIC.fields_by_name['template_value'].message_type = _PAYLOAD_TEMPLATE
_PAYLOAD_METRIC.fields_by_name['extension_value'].message_type = _PAYLOAD_METRIC_METRICVALUEEXTENSION
_PAYLOAD_METRIC.containing_type = _PAYLOAD
_PAYLOAD_METRIC.oneofs_by_name['value'].fields.append(
_PAYLOAD_METRIC.fields_by_name['int_value'])
_PAYLOAD_METRIC.fields_by_name['int_value'].containing_oneof = _PAYLOAD_METRIC.oneofs_by_name['value']
_PAYLOAD_METRIC.oneofs_by_name['value'].fields.append(
_PAYLOAD_METRIC.fields_by_name['long_value'])
_PAYLOAD_METRIC.fields_by_name['long_value'].containing_oneof = _PAYLOAD_METRIC.oneofs_by_name['value']
_PAYLOAD_METRIC.oneofs_by_name['value'].fields.append(
_PAYLOAD_METRIC.fields_by_name['float_value'])
_PAYLOAD_METRIC.fields_by_name['float_value'].containing_oneof = _PAYLOAD_METRIC.oneofs_by_name['value']
_PAYLOAD_METRIC.oneofs_by_name['value'].fields.append(
_PAYLOAD_METRIC.fields_by_name['double_value'])
_PAYLOAD_METRIC.fields_by_name['double_value'].containing_oneof = _PAYLOAD_METRIC.oneofs_by_name['value']
_PAYLOAD_METRIC.oneofs_by_name['value'].fields.append(
_PAYLOAD_METRIC.fields_by_name['boolean_value'])
_PAYLOAD_METRIC.fields_by_name['boolean_value'].containing_oneof = _PAYLOAD_METRIC.oneofs_by_name['value']
_PAYLOAD_METRIC.oneofs_by_name['value'].fields.append(
_PAYLOAD_METRIC.fields_by_name['string_value'])
_PAYLOAD_METRIC.fields_by_name['string_value'].containing_oneof = _PAYLOAD_METRIC.oneofs_by_name['value']
_PAYLOAD_METRIC.oneofs_by_name['value'].fields.append(
_PAYLOAD_METRIC.fields_by_name['bytes_value'])
_PAYLOAD_METRIC.fields_by_name['bytes_value'].containing_oneof = _PAYLOAD_METRIC.oneofs_by_name['value']
_PAYLOAD_METRIC.oneofs_by_name['value'].fields.append(
_PAYLOAD_METRIC.fields_by_name['dataset_value'])
_PAYLOAD_METRIC.fields_by_name['dataset_value'].containing_oneof = _PAYLOAD_METRIC.oneofs_by_name['value']
_PAYLOAD_METRIC.oneofs_by_name['value'].fields.append(
_PAYLOAD_METRIC.fields_by_name['template_value'])
_PAYLOAD_METRIC.fields_by_name['template_value'].containing_oneof = _PAYLOAD_METRIC.oneofs_by_name['value']
_PAYLOAD_METRIC.oneofs_by_name['value'].fields.append(
_PAYLOAD_METRIC.fields_by_name['extension_value'])
_PAYLOAD_METRIC.fields_by_name['extension_value'].containing_oneof = _PAYLOAD_METRIC.oneofs_by_name['value']
_PAYLOAD.fields_by_name['metrics'].message_type = _PAYLOAD_METRIC
DESCRIPTOR.message_types_by_name['Payload'] = _PAYLOAD
Payload = _reflection.GeneratedProtocolMessageType('Payload', (_message.Message,), dict(
Template=_reflection.GeneratedProtocolMessageType('Template', (_message.Message,), dict(
Parameter=_reflection.GeneratedProtocolMessageType('Parameter', (_message.Message,), dict(
ParameterValueExtension=_reflection.GeneratedProtocolMessageType('ParameterValueExtension', (_message.Message,), dict(
DESCRIPTOR=_PAYLOAD_TEMPLATE_PARAMETER_PARAMETERVALUEEXTENSION,
__module__='sparkplug_b_pb2'
# @@protoc_insertion_point(class_scope:com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter.ParameterValueExtension)
))
,
DESCRIPTOR=_PAYLOAD_TEMPLATE_PARAMETER,
__module__='sparkplug_b_pb2'
# @@protoc_insertion_point(class_scope:com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter)
))
,
DESCRIPTOR=_PAYLOAD_TEMPLATE,
__module__='sparkplug_b_pb2'
# @@protoc_insertion_point(class_scope:com.cirruslink.sparkplug.protobuf.Payload.Template)
))
,
DataSet=_reflection.GeneratedProtocolMessageType('DataSet', (_message.Message,), dict(
DataSetValue=_reflection.GeneratedProtocolMessageType('DataSetValue', (_message.Message,), dict(
DataSetValueExtension=_reflection.GeneratedProtocolMessageType('DataSetValueExtension', (_message.Message,), dict(
DESCRIPTOR=_PAYLOAD_DATASET_DATASETVALUE_DATASETVALUEEXTENSION,
__module__='sparkplug_b_pb2'
# @@protoc_insertion_point(class_scope:com.cirruslink.sparkplug.protobuf.Payload.DataSet.DataSetValue.DataSetValueExtension)
))
,
DESCRIPTOR=_PAYLOAD_DATASET_DATASETVALUE,
__module__='sparkplug_b_pb2'
# @@protoc_insertion_point(class_scope:com.cirruslink.sparkplug.protobuf.Payload.DataSet.DataSetValue)
))
,
Row=_reflection.GeneratedProtocolMessageType('Row', (_message.Message,), dict(
DESCRIPTOR=_PAYLOAD_DATASET_ROW,
__module__='sparkplug_b_pb2'
# @@protoc_insertion_point(class_scope:com.cirruslink.sparkplug.protobuf.Payload.DataSet.Row)
))
,
DESCRIPTOR=_PAYLOAD_DATASET,
__module__='sparkplug_b_pb2'
# @@protoc_insertion_point(class_scope:com.cirruslink.sparkplug.protobuf.Payload.DataSet)
))
,
PropertyValue=_reflection.GeneratedProtocolMessageType('PropertyValue', (_message.Message,), dict(
PropertyValueExtension=_reflection.GeneratedProtocolMessageType('PropertyValueExtension', (_message.Message,), dict(
DESCRIPTOR=_PAYLOAD_PROPERTYVALUE_PROPERTYVALUEEXTENSION,
__module__='sparkplug_b_pb2'
# @@protoc_insertion_point(class_scope:com.cirruslink.sparkplug.protobuf.Payload.PropertyValue.PropertyValueExtension)
))
,
DESCRIPTOR=_PAYLOAD_PROPERTYVALUE,
__module__='sparkplug_b_pb2'
# @@protoc_insertion_point(class_scope:com.cirruslink.sparkplug.protobuf.Payload.PropertyValue)
))
,
PropertySet=_reflection.GeneratedProtocolMessageType('PropertySet', (_message.Message,), dict(
DESCRIPTOR=_PAYLOAD_PROPERTYSET,
__module__='sparkplug_b_pb2'
# @@protoc_insertion_point(class_scope:com.cirruslink.sparkplug.protobuf.Payload.PropertySet)
))
,
PropertySetList=_reflection.GeneratedProtocolMessageType('PropertySetList', (_message.Message,), dict(
DESCRIPTOR=_PAYLOAD_PROPERTYSETLIST,
__module__='sparkplug_b_pb2'
# @@protoc_insertion_point(class_scope:com.cirruslink.sparkplug.protobuf.Payload.PropertySetList)
))
,
MetaData=_reflection.GeneratedProtocolMessageType('MetaData', (_message.Message,), dict(
DESCRIPTOR=_PAYLOAD_METADATA,
__module__='sparkplug_b_pb2'
# @@protoc_insertion_point(class_scope:com.cirruslink.sparkplug.protobuf.Payload.MetaData)
))
,
Metric=_reflection.GeneratedProtocolMessageType('Metric', (_message.Message,), dict(
MetricValueExtension=_reflection.GeneratedProtocolMessageType('MetricValueExtension', (_message.Message,), dict(
DESCRIPTOR=_PAYLOAD_METRIC_METRICVALUEEXTENSION,
__module__='sparkplug_b_pb2'
# @@protoc_insertion_point(class_scope:com.cirruslink.sparkplug.protobuf.Payload.Metric.MetricValueExtension)
))
,
DESCRIPTOR=_PAYLOAD_METRIC,
__module__='sparkplug_b_pb2'
# @@protoc_insertion_point(class_scope:com.cirruslink.sparkplug.protobuf.Payload.Metric)
))
,
DESCRIPTOR=_PAYLOAD,
__module__='sparkplug_b_pb2'
# @@protoc_insertion_point(class_scope:com.cirruslink.sparkplug.protobuf.Payload)
))
_sym_db.RegisterMessage(Payload)
_sym_db.RegisterMessage(Payload.Template)
_sym_db.RegisterMessage(Payload.Template.Parameter)
_sym_db.RegisterMessage(Payload.Template.Parameter.ParameterValueExtension)
_sym_db.RegisterMessage(Payload.DataSet)
_sym_db.RegisterMessage(Payload.DataSet.DataSetValue)
_sym_db.RegisterMessage(Payload.DataSet.DataSetValue.DataSetValueExtension)
_sym_db.RegisterMessage(Payload.DataSet.Row)
_sym_db.RegisterMessage(Payload.PropertyValue)
_sym_db.RegisterMessage(Payload.PropertyValue.PropertyValueExtension)
_sym_db.RegisterMessage(Payload.PropertySet)
_sym_db.RegisterMessage(Payload.PropertySetList)
_sym_db.RegisterMessage(Payload.MetaData)
_sym_db.RegisterMessage(Payload.Metric)
_sym_db.RegisterMessage(Payload.Metric.MetricValueExtension)
DESCRIPTOR.has_options = True
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.cirruslink.sparkplug.protobufB\017SparkplugBProto'))
# @@protoc_insertion_point(module_scope)
| 49.869069 | 5,277 | 0.767053 | 7,325 | 56,751 | 5.624437 | 0.044642 | 0.045632 | 0.067817 | 0.091022 | 0.840991 | 0.800408 | 0.776597 | 0.74611 | 0.676788 | 0.622102 | 0 | 0.03983 | 0.109002 | 56,751 | 1,137 | 5,278 | 49.912929 | 0.774943 | 0.028775 | 0 | 0.650046 | 1 | 0.000923 | 0.251225 | 0.200915 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.00554 | 0 | 0.00554 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6a7fd70a0c88f053846dd91d66a2bee52cd1f917 | 132 | py | Python | python_examples/comment_example.py | NunchakusLei/python-basic | 7bbdcaf37574597e65952472a969a47ce6513ba8 | [
"MIT"
] | null | null | null | python_examples/comment_example.py | NunchakusLei/python-basic | 7bbdcaf37574597e65952472a969a47ce6513ba8 | [
"MIT"
] | null | null | null | python_examples/comment_example.py | NunchakusLei/python-basic | 7bbdcaf37574597e65952472a969a47ce6513ba8 | [
"MIT"
] | null | null | null | # This is a line to print a value
print("This is a value")
# This is a line to print another value
#print("This is another value")
| 22 | 39 | 0.712121 | 26 | 132 | 3.615385 | 0.307692 | 0.255319 | 0.223404 | 0.234043 | 0.382979 | 0.382979 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204545 | 132 | 5 | 40 | 26.4 | 0.895238 | 0.75 | 0 | 0 | 0 | 0 | 0.517241 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
6a87f93f717aaa7b67821a75fe3b7cbc87c0252a | 32,187 | py | Python | tests/fixtures/__init__.py | nonsleepr/python-eufy-security | 8909f274d641d3894c7f91b9db5bb3fab49e5d09 | [
"MIT"
] | 1 | 2020-11-28T23:22:48.000Z | 2020-11-28T23:22:48.000Z | tests/fixtures/__init__.py | nonsleepr/python-eufy-security | 8909f274d641d3894c7f91b9db5bb3fab49e5d09 | [
"MIT"
] | null | null | null | tests/fixtures/__init__.py | nonsleepr/python-eufy-security | 8909f274d641d3894c7f91b9db5bb3fab49e5d09 | [
"MIT"
] | null | null | null | """Define fixtures for the base API."""
from datetime import datetime, timedelta
import pytest
from ..const import TEST_ACCESS_TOKEN, TEST_EMAIL
@pytest.fixture()
def devices_list_json():
"""Define a successful response to POST /api/v1/app/get_devs_list."""
return {
"code": 0,
"msg": "Succeed.",
"data": [
{
"device_id": 14907,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"device_name": "Driveway",
"device_model": "T8111",
"time_zone": "",
"device_type": 1,
"device_channel": 0,
"station_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"schedule": "",
"schedulex": "",
"wifi_mac": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"sub1g_mac": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"main_sw_version": "1.9.3",
"main_hw_version": "HAIYI-IMX323",
"sec_sw_version": "2.0.6.3-0627-us",
"sec_hw_version": "P1",
"sector_id": 0,
"event_num": 1,
"wifi_ssid": "",
"ip_addr": "",
"main_sw_time": 1565008299,
"sec_sw_time": 1563582100,
"bind_time": 1546718435,
"cover_path": "https://path/to/image.jpg",
"cover_time": 1572460903,
"local_ip": "",
"create_time": 1539179003,
"update_time": 1572460903,
"status": 1,
"svr_domain": "",
"svr_port": 0,
"station_conn": {
"station_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"station_name": "Home",
"station_model": "T8001",
"main_sw_version": "1.1.1.5",
"main_hw_version": "P1",
"p2p_did": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"push_did": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"ndt_did": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"p2p_conn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"app_conn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"binded": False,
"setup_code": "",
"setup_id": "",
},
"family_num": 0,
"member": {
"family_id": 18456,
"station_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"admin_user_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"member_user_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"member_type": 2,
"permissions": 0,
"member_nick": "",
"action_user_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"fence_state": 0,
"create_time": 1546717990,
"update_time": 1546717990,
"status": 1,
"email": TEST_EMAIL,
"nick_name": "",
"avatar": "",
"action_user_name": "",
},
"permission": None,
"params": [
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 1015,
"param_value": "0",
"create_time": 1546718455,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 1239,
"param_value": "9",
"create_time": 1546718454,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 1243,
"param_value": "2",
"create_time": 1546718455,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 1210,
"param_value": "50",
"create_time": 1546718455,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 1101,
"param_value": "80",
"create_time": 1546718454,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 1246,
"param_value": "0",
"create_time": 1546718455,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 1134,
"param_value": "0",
"create_time": 1546718454,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 1204,
"param_value": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"create_time": 1553318596,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 1145,
"param_value": "0",
"create_time": 1546722865,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 1229,
"param_value": "100",
"create_time": 1546718455,
"update_time": 0,
"status": 1,
},
{
"param_id": 615122,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 99901,
"param_value": "0",
"create_time": 1546718451,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 1141,
"param_value": "-89",
"create_time": 1546718454,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 1013,
"param_value": "1",
"create_time": 1546718455,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 1230,
"param_value": "100",
"create_time": 1546718455,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 1142,
"param_value": "-64",
"create_time": 1546718454,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 1011,
"param_value": "1",
"create_time": 1546718454,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 1225,
"param_value": "1",
"create_time": 1546718454,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 1252,
"param_value": "0",
"create_time": 1572355417,
"update_time": 1572355417,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 1146,
"param_value": "0",
"create_time": 1547260362,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 2111,
"param_value": "2",
"create_time": 1546718454,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 1241,
"param_value": "1",
"create_time": 1546718455,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 1131,
"param_value": "1",
"create_time": 1546718454,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 99904,
"param_value": "0",
"create_time": 1546718454,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 1045,
"param_value": "0",
"create_time": 1546718455,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 1240,
"param_value": "1",
"create_time": 1546718455,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"param_type": 1138,
"param_value": "-5",
"create_time": 1546718454,
"update_time": 0,
"status": 1,
},
],
"pir_total": 40,
"pir_none": 8,
"week_pir_total": 159,
"week_pir_none": 90,
"month_pir_total": 1067,
"month_pir_none": 831,
},
{
"device_id": 14920,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"device_name": "Patio",
"device_model": "T8111",
"time_zone": "",
"device_type": 1,
"device_channel": 1,
"station_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"schedule": "",
"schedulex": "",
"wifi_mac": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"sub1g_mac": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"main_sw_version": "1.9.3",
"main_hw_version": "HAIYI-IMX323",
"sec_sw_version": "2.0.6.3-0627-us",
"sec_hw_version": "P1",
"sector_id": 0,
"event_num": 0,
"wifi_ssid": "",
"ip_addr": "",
"main_sw_time": 1565008350,
"sec_sw_time": 1563582129,
"bind_time": 1546718602,
"cover_path": "https://path/to/image.jpg",
"cover_time": 1572455103,
"local_ip": "",
"create_time": 1539179631,
"update_time": 1572460765,
"status": 1,
"svr_domain": "",
"svr_port": 0,
"station_conn": {
"station_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"station_name": "Home",
"station_model": "T8001",
"main_sw_version": "1.1.1.5",
"main_hw_version": "P1",
"p2p_did": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"push_did": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"ndt_did": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"p2p_conn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"app_conn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"binded": False,
"setup_code": "",
"setup_id": "",
},
"family_num": 0,
"member": {
"family_id": 18456,
"station_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"admin_user_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"member_user_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"member_type": 2,
"permissions": 0,
"member_nick": "",
"action_user_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"fence_state": 0,
"create_time": 1546717990,
"update_time": 1546717990,
"status": 1,
"email": TEST_EMAIL,
"nick_name": "",
"avatar": "",
"action_user_name": "",
},
"permission": None,
"params": [
{
"param_id": 615148,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 1015,
"param_value": "0",
"create_time": 1546718622,
"update_time": 0,
"status": 1,
},
{
"param_id": 615155,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 1239,
"param_value": "9",
"create_time": 1546718622,
"update_time": 0,
"status": 1,
},
{
"param_id": 615147,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 1243,
"param_value": "2",
"create_time": 1546718622,
"update_time": 0,
"status": 1,
},
{
"param_id": 615145,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 1210,
"param_value": "30",
"create_time": 1546718622,
"update_time": 0,
"status": 1,
},
{
"param_id": 615158,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 1101,
"param_value": "95",
"create_time": 1546718622,
"update_time": 0,
"status": 1,
},
{
"param_id": 615146,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 1246,
"param_value": "0",
"create_time": 1546718622,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 1134,
"param_value": "0",
"create_time": 1546718642,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 1204,
"param_value": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"create_time": 1553318600,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 1145,
"param_value": "0",
"create_time": 1546722873,
"update_time": 0,
"status": 1,
},
{
"param_id": 615151,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 1229,
"param_value": "100",
"create_time": 1546718622,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 99901,
"param_value": "0",
"create_time": 1546718629,
"update_time": 0,
"status": 1,
},
{
"param_id": 615150,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 1013,
"param_value": "1",
"create_time": 1546718622,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 1141,
"param_value": "-57",
"create_time": 1546718642,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 1142,
"param_value": "-45",
"create_time": 1546718642,
"update_time": 0,
"status": 1,
},
{
"param_id": 615153,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 1230,
"param_value": "100",
"create_time": 1546718622,
"update_time": 0,
"status": 1,
},
{
"param_id": 615144,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 1011,
"param_value": "1",
"create_time": 1546718622,
"update_time": 0,
"status": 1,
},
{
"param_id": 615156,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 1225,
"param_value": "1",
"create_time": 1546718622,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 1252,
"param_value": "0",
"create_time": 1572357260,
"update_time": 1572357260,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 1146,
"param_value": "0",
"create_time": 1547260787,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 2111,
"param_value": "2",
"create_time": 1546718642,
"update_time": 0,
"status": 1,
},
{
"param_id": 615154,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 1241,
"param_value": "1",
"create_time": 1546718622,
"update_time": 0,
"status": 1,
},
{
"param_id": 615157,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 1131,
"param_value": "1",
"create_time": 1546718622,
"update_time": 0,
"status": 1,
},
{
"param_id": 615159,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 99904,
"param_value": "0",
"create_time": 1546718622,
"update_time": 0,
"status": 1,
},
{
"param_id": 615149,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 1045,
"param_value": "0",
"create_time": 1546718622,
"update_time": 0,
"status": 1,
},
{
"param_id": 615152,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 1240,
"param_value": "1",
"create_time": 1546718622,
"update_time": 0,
"status": 1,
},
{
"param_id": 0,
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2",
"param_type": 1138,
"param_value": "-11",
"create_time": 1546718642,
"update_time": 0,
"status": 1,
},
],
"pir_total": 37,
"pir_none": 28,
"week_pir_total": 124,
"week_pir_none": 82,
"month_pir_total": 1119,
"month_pir_none": 603,
},
],
}
@pytest.fixture()
def empty_response():
"""Define a fixture that returns an empty response."""
return None
@pytest.fixture()
def history_json():
"""Define a successful response to POST api/v1/event/app/get_all_history_record."""
return {
"code": 0,
"msg": "Succeed.",
"data": [
{
"monitor_id": 128428371,
"station_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"storage_type": 1,
"storage_path": "/media/mmcblk0p1/Camera00/20191028123014.dat",
"hevc_storage_path": "",
"cloud_path": "",
"frame_num": 119,
"thumb_path": "https://path/to/image.jpg",
"thumb_data": "",
"start_time": 1572287416088,
"end_time": 1572287426100,
"cipher_id": 158,
"cipher_user_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"has_human": 0,
"volume": "Anker_HmQx0Cp_g",
"vision": 0,
"device_name": "Driveway",
"device_type": 1,
"video_type": 0,
"extra": "",
"viewed": False,
"create_time": 1572287430,
"update_time": 1572287430,
"status": 1,
"station_name": "",
"p2p_did": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"push_did": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"p2p_license": "WPMWQK",
"push_license": "BDYNMB",
"ndt_did": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"ndt_license": "DKUIYX",
"p2p_conn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"app_conn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"wipn_enc_dec_key": "ZXSecurity17Cam@",
"wipn_ndt_aes128key": "ZXSecurity17Cam@",
"query_server_did": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"prefix": "",
"ai_faces": None,
"is_favorite": False,
},
{
"monitor_id": 128340343,
"station_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"device_sn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"storage_type": 1,
"storage_path": "/media/mmcblk0p1/Camera00/20191028100453.dat",
"hevc_storage_path": "",
"cloud_path": "",
"frame_num": 113,
"thumb_path": "https://path/to/image.jpg",
"thumb_data": "",
"start_time": 1572278695752,
"end_time": 1572278702140,
"cipher_id": 158,
"cipher_user_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"has_human": 1,
"volume": "Anker_HmQx0Cp_g",
"vision": 0,
"device_name": "Driveway",
"device_type": 1,
"video_type": 0,
"extra": "",
"viewed": False,
"create_time": 1572278710,
"update_time": 1572278710,
"status": 1,
"station_name": "",
"p2p_did": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"push_did": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"p2p_license": "WPMWQK",
"push_license": "BDYNMB",
"ndt_did": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"ndt_license": "DKUIYX",
"p2p_conn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"app_conn": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"wipn_enc_dec_key": "ZXSecurity17Cam@",
"wipn_ndt_aes128key": "ZXSecurity17Cam@",
"query_server_did": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"prefix": "",
"ai_faces": None,
"is_favorite": False,
},
],
}
@pytest.fixture()
def login_invalid_email_json():
"""
Define a "failure" response to POST /api/v1/passport/login.
This failure is because of an invalid email address.
"""
return {"code": 26006, "msg": "This email address does not exist.", "data": None}
@pytest.fixture()
def login_invalid_password_json():
"""
Define a "failure" response to POST /api/v1/passport/login.
This failure is because of an invalid email address/password combination.
"""
return {"code": 26006, "msg": "Email address or password incorrect.", "data": None}
@pytest.fixture()
def login_success_json():
"""Define a successful response to POST /api/v1/passport/login."""
return {
"code": 0,
"msg": "Succeed.",
"data": {
"user_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"email": TEST_EMAIL,
"nick_name": "",
"auth_token": TEST_ACCESS_TOKEN,
"token_expires_at": int((datetime.now() + timedelta(days=1)).timestamp()),
"avatar": "",
"invitation_code": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"inviter_code": "",
"mac_addr": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"domain": "security-app.eufylife.com",
"ab_code": "US",
"geo_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"privilege": 0,
"params": [
{"param_type": 10000, "param_value": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}
],
},
}
| 40.950382 | 88 | 0.377792 | 1,960 | 32,187 | 5.905612 | 0.157143 | 0.050108 | 0.047516 | 0.073434 | 0.850454 | 0.771663 | 0.760173 | 0.749201 | 0.675508 | 0.647862 | 0 | 0.104632 | 0.517787 | 32,187 | 785 | 89 | 41.002548 | 0.641131 | 0.016591 | 0 | 0.695767 | 0 | 0 | 0.3153 | 0.111653 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007937 | true | 0.002646 | 0.003968 | 0 | 0.019841 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6ac9ba99fdfe500847d497bb358d841df071df92 | 7,969 | py | Python | tests/integration/api/v2010/account/incoming_phone_number/test_mobile.py | ashish-s/twilio-python | 5462b05af0906a1464b1e95a56a1f15afddc3b8c | [
"MIT"
] | 1 | 2020-10-29T19:28:25.000Z | 2020-10-29T19:28:25.000Z | tests/integration/api/v2010/account/incoming_phone_number/test_mobile.py | CostantiniMatteo/twilio-python | 9eee1ca9e73790b12678e9a5660206ea44948d00 | [
"MIT"
] | 1 | 2021-08-21T22:54:01.000Z | 2021-08-23T19:39:42.000Z | tests/integration/api/v2010/account/incoming_phone_number/test_mobile.py | team-telnyx/twexit-python | 69e11c5c2b5681f9bc410795dda0cf8942219e6f | [
"MIT"
] | null | null | null | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from tests import IntegrationTestCase
from tests.holodeck import Request
from twilio.base.exceptions import TwilioException
from twilio.http.response import Response
class MobileTestCase(IntegrationTestCase):
def test_list_request(self):
self.holodeck.mock(Response(500, ''))
with self.assertRaises(TwilioException):
self.client.api.v2010.accounts("ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
.incoming_phone_numbers \
.mobile.list()
self.holodeck.assert_has_request(Request(
'get',
'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/IncomingPhoneNumbers/Mobile.json',
))
def test_read_full_response(self):
self.holodeck.mock(Response(
200,
'''
{
"end": 0,
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Mobile.json?Page=0&PageSize=50",
"incoming_phone_numbers": [
{
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"address_requirements": "none",
"address_sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"api_version": "2010-04-01",
"beta": null,
"capabilities": {
"mms": false,
"sms": true,
"voice": false
},
"date_created": "Tue, 08 Sep 2015 16:21:16 +0000",
"date_updated": "Tue, 08 Sep 2015 16:21:16 +0000",
"friendly_name": "61429099450",
"identity_sid": "RIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"phone_number": "+61429099450",
"origin": "origin",
"sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"sms_application_sid": "",
"sms_fallback_method": "POST",
"sms_fallback_url": "",
"sms_method": "POST",
"sms_url": "",
"status_callback": "",
"status_callback_method": "POST",
"trunk_sid": null,
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
"voice_application_sid": "",
"voice_caller_id_lookup": false,
"voice_fallback_method": "POST",
"voice_fallback_url": null,
"voice_method": "POST",
"voice_url": null,
"emergency_status": "Active",
"emergency_address_sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"bundle_sid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
],
"last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Mobile.json?Page=0&PageSize=50",
"next_page_uri": null,
"num_pages": 1,
"page": 0,
"page_size": 50,
"previous_page_uri": null,
"start": 0,
"total": 1,
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Mobile.json"
}
'''
))
actual = self.client.api.v2010.accounts("ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
.incoming_phone_numbers \
.mobile.list()
self.assertIsNotNone(actual)
def test_read_empty_response(self):
self.holodeck.mock(Response(
200,
'''
{
"end": 0,
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Mobile.json?Page=0&PageSize=50",
"incoming_phone_numbers": [],
"last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Mobile.json?Page=0&PageSize=50",
"next_page_uri": null,
"num_pages": 1,
"page": 0,
"page_size": 50,
"previous_page_uri": null,
"start": 0,
"total": 1,
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Mobile.json"
}
'''
))
actual = self.client.api.v2010.accounts("ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
.incoming_phone_numbers \
.mobile.list()
self.assertIsNotNone(actual)
def test_create_request(self):
self.holodeck.mock(Response(500, ''))
with self.assertRaises(TwilioException):
self.client.api.v2010.accounts("ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
.incoming_phone_numbers \
.mobile.create(phone_number="+15017122661")
values = {'PhoneNumber': "+15017122661", }
self.holodeck.assert_has_request(Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/IncomingPhoneNumbers/Mobile.json',
data=values,
))
def test_create_response(self):
self.holodeck.mock(Response(
201,
'''
{
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"address_requirements": "none",
"address_sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"api_version": "2010-04-01",
"beta": false,
"capabilities": {
"mms": true,
"sms": false,
"voice": true
},
"date_created": "Thu, 30 Jul 2015 23:19:04 +0000",
"date_updated": "Thu, 30 Jul 2015 23:19:04 +0000",
"identity_sid": "RIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"friendly_name": "(808) 925-5327",
"phone_number": "+18089255327",
"origin": "origin",
"sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"sms_application_sid": "",
"sms_fallback_method": "POST",
"sms_fallback_url": "",
"sms_method": "POST",
"sms_url": "",
"status_callback": "",
"status_callback_method": "POST",
"trunk_sid": null,
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
"voice_application_sid": "",
"voice_caller_id_lookup": false,
"voice_fallback_method": "POST",
"voice_fallback_url": null,
"voice_method": "POST",
"voice_url": null,
"emergency_status": "Active",
"emergency_address_sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"bundle_sid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
'''
))
actual = self.client.api.v2010.accounts("ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
.incoming_phone_numbers \
.mobile.create(phone_number="+15017122661")
self.assertIsNotNone(actual)
| 42.614973 | 150 | 0.507592 | 584 | 7,969 | 6.69863 | 0.234589 | 0.018405 | 0.02454 | 0.0409 | 0.833333 | 0.833333 | 0.80726 | 0.80726 | 0.784765 | 0.784765 | 0 | 0.061229 | 0.38311 | 7,969 | 186 | 151 | 42.844086 | 0.73454 | 0.013678 | 0 | 0.692308 | 1 | 0.038462 | 0.178242 | 0.068246 | 0 | 0 | 0 | 0 | 0.134615 | 1 | 0.096154 | false | 0 | 0.076923 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6ae259538be8e4214ce298872d86c2ee35628d65 | 158 | py | Python | coding/merge_intervals/starter.py | skumaravelan/tech-interview-questions | 637dfbf131123c77a8e2e4e45ba420355dcb381f | [
"MIT"
] | 14 | 2022-02-08T17:29:29.000Z | 2022-03-27T17:22:14.000Z | coding/merge_intervals/starter.py | skumaravelan/tech-interview-questions | 637dfbf131123c77a8e2e4e45ba420355dcb381f | [
"MIT"
] | 18 | 2022-01-27T17:37:26.000Z | 2022-03-29T15:16:18.000Z | coding/merge_intervals/starter.py | skumaravelan/tech-interview-questions | 637dfbf131123c77a8e2e4e45ba420355dcb381f | [
"MIT"
] | 9 | 2022-02-08T16:03:10.000Z | 2022-03-19T03:26:30.000Z | class Solution:
# @params:
# - intervals: List[List[int]
# @return: List[List[int]]
def merge(self, intervals: List[List[int]]):
pass
| 22.571429 | 48 | 0.582278 | 19 | 158 | 4.842105 | 0.578947 | 0.26087 | 0.358696 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253165 | 158 | 6 | 49 | 26.333333 | 0.779661 | 0.386076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 8 |
6ae6781b13a373df151ee10a7560eef8f1ed1ae4 | 9,547 | py | Python | generated/azure-cli/vmwarecs/_params.py | audevbot/autorest.devops.debug | a507fb6e2dd7826212537f27d583f203aac1c28f | [
"MIT"
] | null | null | null | generated/azure-cli/vmwarecs/_params.py | audevbot/autorest.devops.debug | a507fb6e2dd7826212537f27d583f203aac1c28f | [
"MIT"
] | null | null | null | generated/azure-cli/vmwarecs/_params.py | audevbot/autorest.devops.debug | a507fb6e2dd7826212537f27d583f203aac1c28f | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# pylint: disable=line-too-long
# pylint: disable=too-many-lines
# pylint: disable=too-many-statements
from knack.arguments import CLIArgumentType
from azure.cli.core.commands.parameters import (
tags_type,
get_three_state_flag,
get_enum_type,
resource_group_name_type,
get_location_type
)
from azure.cli.core.commands.validators import get_default_location_from_resource_group
def load_arguments(self, _):
name_arg_type = CLIArgumentType(options_list=('--name', '-n'), metavar='NAME')
with self.argument_context('vmwarecs create') as c:
c.argument('resource_group', resource_group_name_type)
c.argument('referer', id_part=None, help='referer url')
c.argument('name', id_part=None, help='dedicated cloud node name')
c.argument('location', arg_type=get_location_type(self.cli_ctx))
c.argument('availability_zone_id', id_part=None, help='Availability Zone id, e.g. "az1"')
c.argument('nodes_count', id_part=None, help='count of nodes to create')
c.argument('placement_group_id', id_part=None, help='Placement Group id, e.g. "n1"')
c.argument('purchase_id', id_part=None, help='purchase id')
c.argument('sku_description', id_part=None, help='Dedicated Cloud Nodes SKU\'s description')
c.argument('sku_capacity', id_part=None, help='The capacity of the SKU')
c.argument('sku_family', id_part=None, help='If the service has different generations of hardware, for the same SKU, then that can be captured here')
c.argument('sku_name', id_part=None, help='The name of the SKU for VMWare CloudSimple Node')
c.argument('sku_tier', id_part=None, help='The tier of the SKU')
c.argument('tags', tags_type)
with self.argument_context('vmwarecs update') as c:
c.argument('resource_group', resource_group_name_type)
c.argument('referer', id_part=None, help='referer url')
c.argument('name', id_part=None, help='dedicated cloud node name')
c.argument('location', arg_type=get_location_type(self.cli_ctx))
c.argument('availability_zone_id', id_part=None, help='Availability Zone id, e.g. "az1"')
c.argument('nodes_count', id_part=None, help='count of nodes to create')
c.argument('placement_group_id', id_part=None, help='Placement Group id, e.g. "n1"')
c.argument('purchase_id', id_part=None, help='purchase id')
c.argument('sku_description', id_part=None, help='Dedicated Cloud Nodes SKU\'s description')
c.argument('sku_capacity', id_part=None, help='The capacity of the SKU')
c.argument('sku_family', id_part=None, help='If the service has different generations of hardware, for the same SKU, then that can be captured here')
c.argument('sku_name', id_part=None, help='The name of the SKU for VMWare CloudSimple Node')
c.argument('sku_tier', id_part=None, help='The tier of the SKU')
c.argument('tags', tags_type)
with self.argument_context('vmwarecs delete') as c:
c.argument('resource_group', resource_group_name_type)
c.argument('name', id_part=None, help='dedicated cloud node name')
with self.argument_context('vmwarecs list') as c:
c.argument('resource_group', resource_group_name_type)
with self.argument_context('vmwarecs show') as c:
c.argument('resource_group', resource_group_name_type)
c.argument('name', id_part=None, help='dedicated cloud node name')
with self.argument_context('vmwarecs create') as c:
c.argument('resource_group', resource_group_name_type)
c.argument('name', id_part=None, help='dedicated cloud Service name')
c.argument('location', arg_type=get_location_type(self.cli_ctx))
c.argument('gateway_subnet', id_part=None, help='gateway Subnet for the account. It will collect the subnet address and always treat it as /28')
c.argument('nodes', id_part=None, help='total nodes purchased')
c.argument('service_url', id_part=None, help='link to a service management web portal')
c.argument('tags', tags_type)
with self.argument_context('vmwarecs update') as c:
c.argument('resource_group', resource_group_name_type)
c.argument('name', id_part=None, help='dedicated cloud Service name')
c.argument('location', arg_type=get_location_type(self.cli_ctx))
c.argument('gateway_subnet', id_part=None, help='gateway Subnet for the account. It will collect the subnet address and always treat it as /28')
c.argument('nodes', id_part=None, help='total nodes purchased')
c.argument('service_url', id_part=None, help='link to a service management web portal')
c.argument('tags', tags_type)
with self.argument_context('vmwarecs delete') as c:
c.argument('resource_group', resource_group_name_type)
c.argument('name', id_part=None, help='dedicated cloud Service name')
with self.argument_context('vmwarecs list') as c:
c.argument('resource_group', resource_group_name_type)
with self.argument_context('vmwarecs show') as c:
c.argument('resource_group', resource_group_name_type)
c.argument('name', id_part=None, help='dedicated cloud Service name')
with self.argument_context('vmwarecs create') as c:
c.argument('resource_group', resource_group_name_type)
c.argument('referer', id_part=None, help='referer url')
c.argument('name', id_part=None, help='virtual machine name')
c.argument('location', arg_type=get_location_type(self.cli_ctx))
c.argument('amount_of_ram', id_part=None, help='The amount of memory')
c.argument('disks', id_part=None, help='The list of Virtual Disks')
c.argument('expose_to_guest_vm', arg_type=get_three_state_flag(), id_part=None, help='Expose Guest OS or not')
c.argument('guest_os', id_part=None, help='The name of Guest OS')
c.argument('guest_ostype', arg_type=get_enum_type(['linux', 'windows', 'other']), id_part=None, help='The Guest OS type')
c.argument('nics', id_part=None, help='The list of Virtual NICs')
c.argument('number_of_cores', id_part=None, help='The number of CPU cores')
c.argument('password', id_part=None, help='Password for login')
c.argument('private_cloud_id', id_part=None, help='Private Cloud Id')
c.argument('resource_pool', id_part=None, help='Virtual Machines Resource Pool')
c.argument('template_id', id_part=None, help='Virtual Machine Template Id')
c.argument('username', id_part=None, help='Username for login')
c.argument('v_sphere_networks', id_part=None, help='The list of Virtual VSphere Networks')
c.argument('tags', tags_type)
with self.argument_context('vmwarecs update') as c:
c.argument('resource_group', resource_group_name_type)
c.argument('referer', id_part=None, help='referer url')
c.argument('name', id_part=None, help='virtual machine name')
c.argument('location', arg_type=get_location_type(self.cli_ctx))
c.argument('amount_of_ram', id_part=None, help='The amount of memory')
c.argument('disks', id_part=None, help='The list of Virtual Disks')
c.argument('expose_to_guest_vm', arg_type=get_three_state_flag(), id_part=None, help='Expose Guest OS or not')
c.argument('guest_os', id_part=None, help='The name of Guest OS')
c.argument('guest_ostype', arg_type=get_enum_type(['linux', 'windows', 'other']), id_part=None, help='The Guest OS type')
c.argument('nics', id_part=None, help='The list of Virtual NICs')
c.argument('number_of_cores', id_part=None, help='The number of CPU cores')
c.argument('password', id_part=None, help='Password for login')
c.argument('private_cloud_id', id_part=None, help='Private Cloud Id')
c.argument('resource_pool', id_part=None, help='Virtual Machines Resource Pool')
c.argument('template_id', id_part=None, help='Virtual Machine Template Id')
c.argument('username', id_part=None, help='Username for login')
c.argument('v_sphere_networks', id_part=None, help='The list of Virtual VSphere Networks')
c.argument('tags', tags_type)
with self.argument_context('vmwarecs delete') as c:
c.argument('resource_group', resource_group_name_type)
c.argument('referer', id_part=None, help='referer url')
c.argument('name', id_part=None, help='virtual machine name')
with self.argument_context('vmwarecs list') as c:
c.argument('resource_group', resource_group_name_type)
with self.argument_context('vmwarecs show') as c:
c.argument('resource_group', resource_group_name_type)
c.argument('name', id_part=None, help='virtual machine name')
with self.argument_context('apimanagement') as c:
c.argument('tags', tags_type)
c.argument('location', validator=get_default_location_from_resource_group)
c.argument('apimanagement_name', name_arg_type, options_list=['--name', '-n'])
| 63.225166 | 158 | 0.677281 | 1,358 | 9,547 | 4.559647 | 0.118557 | 0.140988 | 0.108204 | 0.151486 | 0.921189 | 0.906654 | 0.895349 | 0.895349 | 0.895349 | 0.895349 | 0 | 0.001022 | 0.179742 | 9,547 | 150 | 159 | 63.646667 | 0.789682 | 0.045355 | 0 | 0.887097 | 0 | 0 | 0.349263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008065 | false | 0.016129 | 0.024194 | 0 | 0.032258 | 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 |
0a74513f15220474cc1041fb7dd135773644e3b8 | 42,358 | py | Python | hvac/api/secrets_engines/identity.py | CiscoM31/hvac | d7133ac8af76d0c5a9f9626af640af0e2be65e77 | [
"Apache-2.0"
] | null | null | null | hvac/api/secrets_engines/identity.py | CiscoM31/hvac | d7133ac8af76d0c5a9f9626af640af0e2be65e77 | [
"Apache-2.0"
] | null | null | null | hvac/api/secrets_engines/identity.py | CiscoM31/hvac | d7133ac8af76d0c5a9f9626af640af0e2be65e77 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Identity secret engine module."""
from hvac import exceptions
from hvac.api.vault_api_base import VaultApiBase
from hvac.constants.identity import ALLOWED_GROUP_TYPES
DEFAULT_MOUNT_POINT = 'identity'
class Identity(VaultApiBase):
"""Identity Secrets Engine (API).
Reference: https://www.vaultproject.io/api/secret/identity/entity.html
"""
def create_or_update_entity(self, name, entity_id=None, metadata=None, policies=None, disabled=False,
mount_point=DEFAULT_MOUNT_POINT):
"""Create or update an Entity.
Supported methods:
POST: /{mount_point}/entity. Produces: 200 application/json
:param entity_id: ID of the entity. If set, updates the corresponding existing entity.
:type entity_id: str | unicode
:param name: Name of the entity.
:type name: str | unicode
:param metadata: Metadata to be associated with the entity.
:type metadata: dict
:param policies: Policies to be tied to the entity.
:type policies: str | unicode
:param disabled: Whether the entity is disabled. Disabled entities' associated tokens cannot be used, but are
not revoked.
:type disabled: bool
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The JSON response for creates, the generic response object for updates, of the request.
:rtype: dict | requests.Response
"""
if metadata is None:
metadata = {}
if not isinstance(metadata, dict):
error_msg = 'unsupported metadata argument provided "{arg}" ({arg_type}), required type: dict"'
raise exceptions.ParamValidationError(error_msg.format(
arg=metadata,
arg_type=type(metadata),
))
params = {
'name': name,
'metadata': metadata,
'policies': policies,
'disabled': disabled,
}
if entity_id is not None:
params['id'] = entity_id
api_path = '/v1/{mount_point}/entity'.format(mount_point=mount_point)
response = self._adapter.post(
url=api_path,
json=params,
)
if response.status_code == 204:
return response
else:
return response.json()
def create_or_update_entity_by_name(self, name, metadata=None, policies=None, disabled=False,
mount_point=DEFAULT_MOUNT_POINT):
"""Create or update an entity by a given name.
Supported methods:
POST: /{mount_point}/entity/name/{name}. Produces: 200 application/json
:param name: Name of the entity.
:type name: str | unicode
:param metadata: Metadata to be associated with the entity.
:type metadata: dict
:param policies: Policies to be tied to the entity.
:type policies: str | unicode
:param disabled: Whether the entity is disabled. Disabled
entities' associated tokens cannot be used, but are not revoked.
:type disabled: bool
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The JSON response for creates, the generic response of the request for updates.
:rtype: requests.Response | dict
"""
if metadata is None:
metadata = {}
if not isinstance(metadata, dict):
error_msg = 'unsupported metadata argument provided "{arg}" ({arg_type}), required type: dict"'
raise exceptions.ParamValidationError(error_msg.format(
arg=metadata,
arg_type=type(metadata),
))
params = {
'metadata': metadata,
'policies': policies,
'disabled': disabled,
}
api_path = '/v1/{mount_point}/entity/name/{name}'.format(
mount_point=mount_point,
name=name,
)
response = self._adapter.post(
url=api_path,
json=params,
)
if response.status_code == 204:
return response
else:
return response.json()
def read_entity(self, entity_id, mount_point=DEFAULT_MOUNT_POINT):
"""Query an entity by its identifier.
Supported methods:
GET: /auth/{mount_point}/entity/id/{id}. Produces: 200 application/json
:param entity_id: Identifier of the entity.
:type entity_id: str
:param mount_point: The "path" the secret engine was mounted on.
:type mount_point: str | unicode
:return: The JSON response of the request.
:rtype: dict
"""
api_path = '/v1/{mount_point}//entity/id/{id}'.format(
mount_point=mount_point,
id=entity_id,
)
response = self._adapter.get(url=api_path)
return response.json()
def read_entity_by_name(self, name, mount_point=DEFAULT_MOUNT_POINT):
"""Query an entity by its name.
Supported methods:
GET: /{mount_point}/entity/name/{name}. Produces: 200 application/json
:param name: Name of the entity.
:type name: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The JSON response of the request.
:rtype: requests.Response
"""
api_path = '/v1/{mount_point}/entity/name/{name}'.format(
mount_point=mount_point,
name=name,
)
response = self._adapter.get(
url=api_path,
)
return response.json()
def update_entity(self, entity_id, name=None, metadata=None, policies=None, disabled=False,
mount_point=DEFAULT_MOUNT_POINT):
"""Update an existing entity.
Supported methods:
POST: /{mount_point}/entity/id/{id}. Produces: 200 application/json
:param entity_id: Identifier of the entity.
:type entity_id: str | unicode
:param name: Name of the entity.
:type name: str | unicode
:param metadata: Metadata to be associated with the entity.
:type metadata: dict
:param policies: Policies to be tied to the entity.
:type policies: str | unicode
:param disabled: Whether the entity is disabled. Disabled entities' associated tokens cannot be used, but
are not revoked.
:type disabled: bool
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The JSON response where available, otherwise the generic response object, of the request.
:rtype: dict | requests.Response
"""
if metadata is None:
metadata = {}
if not isinstance(metadata, dict):
error_msg = 'unsupported metadata argument provided "{arg}" ({arg_type}), required type: dict"'
raise exceptions.ParamValidationError(error_msg.format(
arg=metadata,
arg_type=type(metadata),
))
params = {
'name': name,
'metadata': metadata,
'policies': policies,
'disabled': disabled,
}
api_path = '/v1/{mount_point}/entity/id/{id}'.format(
mount_point=mount_point,
id=entity_id,
)
response = self._adapter.post(
url=api_path,
json=params,
)
if response.status_code == 204:
return response
else:
return response.json()
def delete_entity(self, entity_id, mount_point=DEFAULT_MOUNT_POINT):
"""Delete an entity and all its associated aliases.
Supported methods:
DELETE: /{mount_point}/entity/id/:id. Produces: 204 (empty body)
:param entity_id: Identifier of the entity.
:type entity_id: str
:param mount_point: The "path" the secret engine was mounted on.
:type mount_point: str | unicode
:return: The response of the request.
:rtype: requests.Response
"""
api_path = '/v1/{mount_point}/entity/id/{id}'.format(
mount_point=mount_point,
id=entity_id,
)
return self._adapter.delete(
url=api_path,
)
def delete_entity_by_name(self, name, mount_point=DEFAULT_MOUNT_POINT):
"""Delete an entity and all its associated aliases, given the entity name.
Supported methods:
DELETE: /{mount_point}/entity/name/{name}. Produces: 204 (empty body)
:param name: Name of the entity.
:type name: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The response of the request.
:rtype: requests.Response
"""
api_path = '/v1/{mount_point}/entity/name/{name}'.format(
mount_point=mount_point,
name=name,
)
return self._adapter.delete(
url=api_path,
)
def list_entities(self, method='LIST', mount_point=DEFAULT_MOUNT_POINT):
"""List available entities entities by their identifiers.
:param method: Supported methods:
LIST: /{mount_point}/entity/id. Produces: 200 application/json
GET: /{mount_point}/entity/id?list=true. Produces: 200 application/json
:type method: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The JSON response of the request.
:rtype: dict
"""
if method == 'LIST':
api_path = '/v1/{mount_point}/entity/id'.format(mount_point=mount_point)
response = self._adapter.list(
url=api_path,
)
elif method == 'GET':
api_path = '/v1/{mount_point}/entity/id?list=true'.format(mount_point=mount_point)
response = self._adapter.get(
url=api_path,
)
else:
error_message = '"method" parameter provided invalid value; LIST or GET allowed, "{method}" provided'.format(method=method)
raise exceptions.ParamValidationError(error_message)
return response.json()
def list_entities_by_name(self, method='LIST', mount_point=DEFAULT_MOUNT_POINT):
"""List available entities by their names.
:param method: Supported methods:
LIST: /{mount_point}/entity/name. Produces: 200 application/json
GET: /{mount_point}/entity/name?list=true. Produces: 200 application/json
:type method: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The JSON response of the request.
:rtype: dict
"""
if method == 'LIST':
api_path = '/v1/{mount_point}/entity/name'.format(mount_point=mount_point)
response = self._adapter.list(
url=api_path,
)
elif method == 'GET':
api_path = '/v1/{mount_point}/entity/name'.format(mount_point=mount_point)
response = self._adapter.list(
url=api_path,
)
else:
error_message = '"method" parameter provided invalid value; LIST or GET allowed, "{method}" provided'.format(method=method)
raise exceptions.ParamValidationError(error_message)
return response.json()
def merge_entities(self, from_entity_ids, to_entity_id, force=False, mount_point=DEFAULT_MOUNT_POINT):
"""Merge many entities into one entity.
Supported methods:
POST: /{mount_point}/entity/merge. Produces: 204 (empty body)
:param from_entity_ids: Entity IDs which needs to get merged.
:type from_entity_ids: array
:param to_entity_id: Entity ID into which all the other entities need to get merged.
:type to_entity_id: str | unicode
:param force: Setting this will follow the 'mine' strategy for merging MFA secrets. If there are secrets of the
same type both in entities that are merged from and in entity into which all others are getting merged,
secrets in the destination will be unaltered. If not set, this API will throw an error containing all the
conflicts.
:type force: bool
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The response of the request.
:rtype: requests.Response
"""
params = {
'from_entity_ids': from_entity_ids,
'to_entity_id': to_entity_id,
'force': force,
}
api_path = '/v1/{mount_point}/entity/merge'.format(mount_point=mount_point)
return self._adapter.post(
url=api_path,
json=params,
)
def create_or_update_entity_alias(self, name, canonical_id, mount_accessor, alias_id=None, mount_point=DEFAULT_MOUNT_POINT):
"""Create a new alias for an entity.
Supported methods:
POST: /{mount_point}/entity-alias. Produces: 200 application/json
:param name: Name of the alias. Name should be the identifier of the client in the authentication source. For
example, if the alias belongs to userpass backend, the name should be a valid username within userpass
backend. If alias belongs to GitHub, it should be the GitHub username.
:type name: str | unicode
:param alias_id: ID of the entity alias. If set, updates the corresponding entity alias.
:type alias_id: str | unicode
:param canonical_id: Entity ID to which this alias belongs to.
:type canonical_id: str | unicode
:param mount_accessor: Accessor of the mount to which the alias should belong to.
:type mount_accessor: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The JSON response of the request.
:rtype: requests.Response
"""
params = {
'name': name,
'canonical_id': canonical_id,
'mount_accessor': mount_accessor,
}
if alias_id is not None:
params['id'] = alias_id
api_path = '/v1/{mount_point}/entity-alias'.format(mount_point=mount_point)
response = self._adapter.post(
url=api_path,
json=params,
)
return response.json()
def read_entity_alias(self, alias_id, mount_point=DEFAULT_MOUNT_POINT):
"""Query the entity alias by its identifier.
Supported methods:
GET: /{mount_point}/entity-alias/id/{id}. Produces: 200 application/json
:param alias_id: Identifier of entity alias.
:type alias_id: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The JSON response of the request.
:rtype: dict
"""
api_path = '/v1/{mount_point}/entity-alias/id/{id}'.format(
mount_point=mount_point,
id=alias_id,
)
response = self._adapter.get(
url=api_path,
)
return response.json()
def update_entity_alias(self, alias_id, name, canonical_id, mount_accessor, mount_point=DEFAULT_MOUNT_POINT):
"""Update an existing entity alias.
Supported methods:
POST: /{mount_point}/entity-alias/id/{id}. Produces: 200 application/json
:param alias_id: Identifier of the entity alias.
:type alias_id: str | unicode
:param name: Name of the alias. Name should be the identifier of the client in the authentication source. For
example, if the alias belongs to userpass backend, the name should be a valid username within userpass
backend. If alias belongs to GitHub, it should be the GitHub username.
:type name: str | unicode
:param canonical_id: Entity ID to which this alias belongs to.
:type canonical_id: str | unicode
:param mount_accessor: Accessor of the mount to which the alias should belong to.
:type mount_accessor: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The JSON response where available, otherwise the generic response object, of the request.
:rtype: dict | requests.Response
"""
params = {
'name': name,
'canonical_id': canonical_id,
'mount_accessor': mount_accessor,
}
api_path = '/v1/{mount_point}/entity-alias/id/{id}'.format(
mount_point=mount_point,
id=alias_id,
)
response = self._adapter.post(
url=api_path,
json=params,
)
if response.status_code == 204:
return response
else:
return response.json()
def list_entity_aliases(self, method='LIST', mount_point=DEFAULT_MOUNT_POINT):
"""List available entity aliases by their identifiers.
:param method: Supported methods:
LIST: /{mount_point}/entity-alias/id. Produces: 200 application/json
GET: /{mount_point}/entity-alias/id?list=true. Produces: 200 application/json
:type method: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The the JSON response of the request.
:rtype: dict
"""
if method == 'LIST':
api_path = '/v1/{mount_point}/entity-alias/id'.format(mount_point=mount_point)
response = self._adapter.list(
url=api_path,
)
elif method == 'GET':
api_path = '/v1/{mount_point}/entity-alias/id?list=true'.format(mount_point=mount_point)
response = self._adapter.get(
url=api_path,
)
else:
error_message = '"method" parameter provided invalid value; LIST or GET allowed, "{method}" provided'.format(method=method)
raise exceptions.ParamValidationError(error_message)
return response.json()
def delete_entity_alias(self, alias_id, mount_point=DEFAULT_MOUNT_POINT):
"""Delete a entity alias.
Supported methods:
DELETE: /{mount_point}/entity-alias/id/{alias_id}. Produces: 204 (empty body)
:param alias_id: Identifier of the entity.
:type alias_id: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The response of the request.
:rtype: requests.Response
"""
api_path = '/v1/{mount_point}/entity-alias/id/{id}'.format(
mount_point=mount_point,
id=alias_id,
)
return self._adapter.delete(
url=api_path,
)
def create_or_update_group(self, name, group_id=None, group_type='internal', metadata=None, policies=None,
member_group_ids=None, member_entity_ids=None, mount_point=DEFAULT_MOUNT_POINT):
"""Create or update a Group.
Supported methods:
POST: /{mount_point}/group. Produces: 200 application/json
:param group_id: ID of the group. If set, updates the corresponding existing group.
:type group_id: str | unicode
:param name: Name of the group.
:type name: str | unicode
:param group_type: Type of the group, internal or external. Defaults to internal.
:type group_type: str | unicode
:param metadata: Metadata to be associated with the group.
:type metadata: dict
:param policies: Policies to be tied to the group.
:type policies: str | unicode
:param member_group_ids: Group IDs to be assigned as group members.
:type member_group_ids: str | unicode
:param member_entity_ids: Entity IDs to be assigned as group members.
:type member_entity_ids: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The JSON response where available, otherwise the generic response object, of the request.
:rtype: dict | requests.Response
"""
if metadata is None:
metadata = {}
if not isinstance(metadata, dict):
error_msg = 'unsupported metadata argument provided "{arg}" ({arg_type}), required type: dict"'
raise exceptions.ParamValidationError(error_msg.format(
arg=metadata,
arg_type=type(metadata),
))
if group_type not in ALLOWED_GROUP_TYPES:
error_msg = 'unsupported group_type argument provided "{arg}", allowed values: ({allowed_values})'
raise exceptions.ParamValidationError(error_msg.format(
arg=group_type,
allowed_values=ALLOWED_GROUP_TYPES,
))
params = {
'name': name,
'type': group_type,
'metadata': metadata,
'policies': policies,
}
if group_id is not None:
params['id'] = group_id
if group_type == 'external' and member_entity_ids is not None:
# InvalidRequest: member entities can't be set manually for external groups
params['member_entity_ids'] = member_entity_ids
if group_type == 'external' and member_group_ids is not None:
# InvalidRequest: member groups can't be set for external groups
params['member_group_ids'] = member_group_ids
api_path = '/v1/{mount_point}/group'.format(mount_point=mount_point)
response = self._adapter.post(
url=api_path,
json=params,
)
if response.status_code == 204:
return response
else:
return response.json()
def read_group(self, group_id, mount_point=DEFAULT_MOUNT_POINT):
"""Query the group by its identifier.
Supported methods:
GET: /{mount_point}/group/id/{id}. Produces: 200 application/json
:param group_id: Identifier of the group.
:type group_id: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The JSON response of the request.
:rtype: requests.Response
"""
api_path = '/v1/{mount_point}/group/id/{id}'.format(
mount_point=mount_point,
id=group_id,
)
response = self._adapter.get(
url=api_path,
)
return response.json()
def update_group(self, group_id, name, group_type="internal", metadata=None, policies=None, member_group_ids=None,
member_entity_ids=None, mount_point=DEFAULT_MOUNT_POINT):
"""Update an existing group.
Supported methods:
POST: /{mount_point}/group/id/{id}. Produces: 200 application/json
:param group_id: Identifier of the entity.
:type group_id: str | unicode
:param name: Name of the group.
:type name: str | unicode
:param group_type: Type of the group, internal or external. Defaults to internal.
:type group_type: str | unicode
:param metadata: Metadata to be associated with the group.
:type metadata: dict
:param policies: Policies to be tied to the group.
:type policies: str | unicode
:param member_group_ids: Group IDs to be assigned as group members.
:type member_group_ids: str | unicode
:param member_entity_ids: Entity IDs to be assigned as group members.
:type member_entity_ids: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The JSON response where available, otherwise the generic response object, of the request.
:rtype: dict | requests.Response
"""
if metadata is None:
metadata = {}
if not isinstance(metadata, dict):
error_msg = 'unsupported metadata argument provided "{arg}" ({arg_type}), required type: dict"'
raise exceptions.ParamValidationError(error_msg.format(
arg=metadata,
arg_type=type(metadata),
))
if group_type not in ALLOWED_GROUP_TYPES:
error_msg = 'unsupported group_type argument provided "{arg}", allowed values: ({allowed_values})'
raise exceptions.ParamValidationError(error_msg.format(
arg=group_type,
allowed_values=ALLOWED_GROUP_TYPES,
))
params = {
'name': name,
'type': group_type,
'metadata': metadata,
'policies': policies,
}
if group_type == 'external' and member_entity_ids is not None:
# InvalidRequest: member entities can't be set manually for external groups
params['member_entity_ids'] = member_entity_ids
if group_type == 'external' and member_group_ids is not None:
# InvalidRequest: member groups can't be set for external groups
params['member_group_ids'] = member_group_ids
api_path = '/v1/{mount_point}/group/id/{id}'.format(
mount_point=mount_point,
id=group_id,
)
response = self._adapter.post(
url=api_path,
json=params,
)
if response.status_code == 204:
return response
else:
return response.json()
def delete_group(self, group_id, mount_point=DEFAULT_MOUNT_POINT):
"""Delete a group.
Supported methods:
DELETE: /{mount_point}/group/id/{id}. Produces: 204 (empty body)
:param group_id: Identifier of the entity.
:type group_id: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The response of the request.
:rtype: requests.Response
"""
api_path = '/v1/{mount_point}/group/id/{id}'.format(
mount_point=mount_point,
id=group_id,
)
return self._adapter.delete(
url=api_path,
)
def list_groups(self, method='LIST', mount_point=DEFAULT_MOUNT_POINT):
"""List available groups by their identifiers.
:param method: Supported methods:
LIST: /{mount_point}/group/id. Produces: 200 application/json
GET: /{mount_point}/group/id?list=true. Produces: 200 application/json
:type method: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The JSON response of the request.
:rtype: dict
"""
if method == 'LIST':
api_path = '/v1/{mount_point}/group/id'.format(mount_point=mount_point)
response = self._adapter.list(
url=api_path,
)
elif method == 'GET':
api_path = '/v1/{mount_point}/group/id?list=true'.format(mount_point=mount_point)
response = self._adapter.get(
url=api_path,
)
else:
error_message = '"method" parameter provided invalid value; LIST or GET allowed, "{method}" provided'.format(method=method)
raise exceptions.ParamValidationError(error_message)
return response.json()
def list_groups_by_name(self, method='LIST', mount_point=DEFAULT_MOUNT_POINT):
"""List available groups by their names.
:param method: Supported methods:
LIST: /{mount_point}/group/name. Produces: 200 application/json
GET: /{mount_point}/group/name?list=true. Produces: 200 application/json
:type method: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The JSON response of the request.
:rtype: dict
"""
if method == 'LIST':
api_path = '/v1/{mount_point}/group/name'.format(mount_point=mount_point)
response = self._adapter.list(
url=api_path,
)
elif method == 'GET':
api_path = '/v1/{mount_point}/group/name?list-true'.format(mount_point=mount_point)
response = self._adapter.list(
url=api_path,
)
else:
error_message = '"method" parameter provided invalid value; LIST or GET allowed, "{method}" provided'.format(method=method)
raise exceptions.ParamValidationError(error_message)
return response.json()
def create_or_update_group_by_name(self, name, group_type="internal", metadata=None, policies=None, member_group_ids=None,
member_entity_ids=None, mount_point=DEFAULT_MOUNT_POINT):
"""Create or update a group by its name.
Supported methods:
POST: /{mount_point}/group/name/{name}. Produces: 200 application/json
:param name: Name of the group.
:type name: str | unicode
:param group_type: Type of the group, internal or external. Defaults to internal.
:type group_type: str | unicode
:param metadata: Metadata to be associated with the group.
:type metadata: dict
:param policies: Policies to be tied to the group.
:type policies: str | unicode
:param member_group_ids: Group IDs to be assigned as group members.
:type member_group_ids: str | unicode
:param member_entity_ids: Entity IDs to be assigned as group members.
:type member_entity_ids: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The response of the request.
:rtype: requests.Response
"""
if metadata is None:
metadata = {}
if not isinstance(metadata, dict):
error_msg = 'unsupported metadata argument provided "{arg}" ({arg_type}), required type: dict"'
raise exceptions.ParamValidationError(error_msg.format(
arg=metadata,
arg_type=type(metadata),
))
if group_type not in ALLOWED_GROUP_TYPES:
error_msg = 'unsupported group_type argument provided "{arg}", allowed values: ({allowed_values})'
raise exceptions.ParamValidationError(error_msg.format(
arg=group_type,
allowed_values=ALLOWED_GROUP_TYPES,
))
params = {
'type': group_type,
'metadata': metadata,
'policies': policies,
'member_group_ids': member_group_ids,
'member_entity_ids': member_entity_ids,
}
api_path = '/v1/{mount_point}/group/name/{name}'.format(
mount_point=mount_point,
name=name,
)
response = self._adapter.post(
url=api_path,
json=params,
)
return response
def read_group_by_name(self, name, mount_point=DEFAULT_MOUNT_POINT):
"""Query a group by its name.
Supported methods:
GET: /{mount_point}/group/name/{name}. Produces: 200 application/json
:param name: Name of the group.
:type name: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The JSON response of the request.
:rtype: dict
"""
api_path = '/v1/{mount_point}/group/name/{name}'.format(
mount_point=mount_point,
name=name,
)
response = self._adapter.get(
url=api_path,
)
return response.json()
def delete_group_by_name(self, name, mount_point=DEFAULT_MOUNT_POINT):
"""Delete a group, given its name.
Supported methods:
DELETE: /{mount_point}/group/name/{name}. Produces: 204 (empty body)
:param name: Name of the group.
:type name: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The response of the request.
:rtype: requests.Response
"""
api_path = '/v1/{mount_point}/group/name/{name}'.format(
mount_point=mount_point,
name=name,
)
return self._adapter.delete(
url=api_path,
)
def create_or_update_group_alias(self, name, alias_id=None, mount_accessor=None, canonical_id=None, mount_point=DEFAULT_MOUNT_POINT):
"""Creates or update a group alias.
Supported methods:
POST: /{mount_point}/group-alias. Produces: 200 application/json
:param alias_id: ID of the group alias. If set, updates the corresponding existing group alias.
:type alias_id: str | unicode
:param name: Name of the group alias.
:type name: str | unicode
:param mount_accessor: Mount accessor to which this alias belongs to
:type mount_accessor: str | unicode
:param canonical_id: ID of the group to which this is an alias.
:type canonical_id: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The JSON response of the request.
:rtype: requests.Response
"""
params = {
'name': name,
'mount_accessor': mount_accessor,
'canonical_id': canonical_id,
}
if alias_id is not None:
params['id'] = alias_id
api_path = '/v1/{mount_point}/group-alias'.format(mount_point=mount_point)
response = self._adapter.post(
url=api_path,
json=params,
)
return response.json()
def update_group_alias(self, entity_id, name, mount_accessor="", canonical_id="", mount_point=DEFAULT_MOUNT_POINT):
"""Update an existing group alias.
Supported methods:
POST: /{mount_point}/group-alias/id/{id}. Produces: 200 application/json
:param entity_id: ID of the group alias.
:type entity_id: str | unicode
:param name: Name of the group alias.
:type name: str | unicode
:param mount_accessor: Mount accessor to which this alias belongs
toMount accessor to which this alias belongs to.
:type mount_accessor: str | unicode
:param canonical_id: ID of the group to which this is an alias.
:type canonical_id: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The response of the request.
:rtype: requests.Response
"""
params = {
'name': name,
'mount_accessor': mount_accessor,
'canonical_id': canonical_id,
}
api_path = '/v1/{mount_point}/group-alias/id/{id}'.format(
mount_point=mount_point,
id=entity_id,
)
return self._adapter.post(
url=api_path,
json=params,
)
def read_group_alias(self, alias_id, mount_point=DEFAULT_MOUNT_POINT):
"""Query the group alias by its identifier.
Supported methods:
GET: /{mount_point}/group-alias/id/:id. Produces: 200 application/json
:param alias_id: ID of the group alias.
:type alias_id: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The JSON response of the request.
:rtype: dict
"""
api_path = '/v1/{mount_point}/group-alias/id/{id}'.format(
mount_point=mount_point,
id=alias_id,
)
response = self._adapter.get(
url=api_path,
)
return response.json()
def delete_group_alias(self, entity_id, mount_point=DEFAULT_MOUNT_POINT):
"""Delete a group alias.
Supported methods:
DELETE: /{mount_point}/group-alias/id/{id}. Produces: 204 (empty body)
:param entity_id: ID of the group alias.
:type entity_id: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The response of the request.
:rtype: requests.Response
"""
api_path = '/v1/{mount_point}/group-alias/id/{id}'.format(
mount_point=mount_point,
id=entity_id,
)
return self._adapter.delete(
url=api_path,
)
def list_group_aliases(self, method='LIST', mount_point=DEFAULT_MOUNT_POINT):
"""List available group aliases by their identifiers.
:param method: Supported methods:
LIST: /{mount_point}/group-alias/id. Produces: 200 application/json
GET: /{mount_point}/group-alias/id?list=true. Produces: 200 application/json
:type method: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The "data" key from the JSON response of the request.
:rtype: dict
"""
if method == 'LIST':
api_path = '/v1/{mount_point}/group-alias/id'.format(mount_point=mount_point)
response = self._adapter.list(
url=api_path,
)
elif method == 'GET':
api_path = '/v1/{mount_point}/group-alias/id'.format(mount_point=mount_point)
response = self._adapter.list(
url=api_path,
)
else:
error_message = '"method" parameter provided invalid value; LIST or GET allowed, "{method}" provided'.format(method=method)
raise exceptions.ParamValidationError(error_message)
return response.json()
def lookup_entity(self, name=None, entity_id=None, alias_id=None, alias_name=None, alias_mount_accessor=None, mount_point=DEFAULT_MOUNT_POINT):
"""Query an entity based on the given criteria.
The criteria can be name, id, alias_id, or a combination of alias_name and alias_mount_accessor.
Supported methods:
POST: /{mount_point}/lookup/entity. Produces: 200 application/json
:param name: Name of the entity.
:type name: str | unicode
:param entity_id: ID of the entity.
:type entity_id: str | unicode
:param alias_id: ID of the alias.
:type alias_id: str | unicode
:param alias_name: Name of the alias. This should be supplied in conjunction with alias_mount_accessor.
:type alias_name: str | unicode
:param alias_mount_accessor: Accessor of the mount to which the alias belongs to. This should be supplied in conjunction with alias_name.
:type alias_mount_accessor: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The JSON response of the request.
:rtype: dict
"""
params = {}
if name is not None:
params['name'] = name
elif entity_id is not None:
params['id'] = entity_id
elif alias_id is not None:
params['alias_id'] = alias_id
elif alias_name is not None and alias_mount_accessor is not None:
params['alias_name'] = alias_name
params['alias_mount_accessor'] = alias_mount_accessor
api_path = '/v1/{mount_point}/lookup/entity'.format(mount_point=mount_point)
response = self._adapter.post(
url=api_path,
json=params,
)
return response.json()
def lookup_group(self, name=None, group_id=None, alias_id=None, alias_name=None, alias_mount_accessor=None, mount_point=DEFAULT_MOUNT_POINT):
"""Query a group based on the given criteria.
The criteria can be name, id, alias_id, or a combination of alias_name and alias_mount_accessor.
Supported methods:
POST: /{mount_point}/lookup/group. Produces: 200 application/json
:param name: Name of the group.
:type name: str | unicode
:param group_id: ID of the group.
:type group_id: str | unicode
:param alias_id: ID of the alias.
:type alias_id: str | unicode
:param alias_name: Name of the alias. This should be supplied in conjunction with alias_mount_accessor.
:type alias_name: str | unicode
:param alias_mount_accessor: Accessor of the mount to which the alias belongs to. This should be supplied in conjunction with alias_name.
:type alias_mount_accessor: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The JSON response of the request.
:rtype: dict
"""
params = {}
if name is not None:
params['name'] = name
elif group_id is not None:
params['id'] = group_id
elif alias_id is not None:
params['alias_id'] = alias_id
elif alias_name is not None and alias_mount_accessor is not None:
params['alias_name'] = alias_name
params['alias_mount_accessor'] = alias_mount_accessor
api_path = '/v1/{mount_point}/lookup/group'.format(mount_point=mount_point)
response = self._adapter.post(
url=api_path,
json=params,
)
return response.json()
| 41.044574 | 147 | 0.613178 | 5,120 | 42,358 | 4.907031 | 0.042188 | 0.108661 | 0.040599 | 0.020618 | 0.951003 | 0.940018 | 0.916852 | 0.894125 | 0.880791 | 0.842262 | 0 | 0.005615 | 0.297866 | 42,358 | 1,031 | 148 | 41.084384 | 0.839145 | 0.433259 | 0 | 0.738241 | 0 | 0 | 0.148894 | 0.058812 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063395 | false | 0 | 0.006135 | 0 | 0.147239 | 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 |
0a7ed4727bcc7c77203e17432e1e74ac5d815856 | 139 | py | Python | jivago/wsgi/routing/exception/method_not_allowed_exception.py | keotl/jivago | 892dfb0cae773e36245083c3e56f0f8523145523 | [
"MIT"
] | 12 | 2018-03-19T20:57:44.000Z | 2020-01-27T14:11:24.000Z | jivago/wsgi/routing/exception/method_not_allowed_exception.py | keotl/jivago | 892dfb0cae773e36245083c3e56f0f8523145523 | [
"MIT"
] | 73 | 2018-04-20T22:26:00.000Z | 2021-12-01T14:17:37.000Z | jivago/wsgi/routing/exception/method_not_allowed_exception.py | keotl/jivago | 892dfb0cae773e36245083c3e56f0f8523145523 | [
"MIT"
] | 1 | 2019-02-28T13:33:45.000Z | 2019-02-28T13:33:45.000Z | from jivago.wsgi.routing.exception.routing_exception import RoutingException
class MethodNotAllowedException(RoutingException):
pass
| 23.166667 | 76 | 0.856115 | 13 | 139 | 9.076923 | 0.769231 | 0.271186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093525 | 139 | 5 | 77 | 27.8 | 0.936508 | 0 | 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 |
0ac0da7722f9c5ca6fffa9ad2dbb9df716de57b1 | 111 | py | Python | tests/basics/builtin_hex_intbig.py | geowor01/micropython | 7fb13eeef4a85f21cae36f1d502bcc53880e1815 | [
"MIT"
] | 7 | 2019-10-18T13:41:39.000Z | 2022-03-15T17:27:57.000Z | tests/basics/builtin_hex_intbig.py | geowor01/micropython | 7fb13eeef4a85f21cae36f1d502bcc53880e1815 | [
"MIT"
] | null | null | null | tests/basics/builtin_hex_intbig.py | geowor01/micropython | 7fb13eeef4a85f21cae36f1d502bcc53880e1815 | [
"MIT"
] | 2 | 2020-06-23T09:10:15.000Z | 2020-12-22T06:42:14.000Z | # test builtin hex function
print(hex(12345678901234567890))
print(hex(0x12345678901234567890))
print("PASS") | 18.5 | 34 | 0.801802 | 12 | 111 | 7.416667 | 0.666667 | 0.179775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.401961 | 0.081081 | 111 | 6 | 35 | 18.5 | 0.470588 | 0.225225 | 0 | 0 | 0 | 0 | 0.047059 | 0 | 0 | 0 | 0.258824 | 0 | 0 | 1 | 0 | true | 0.333333 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 7 |
7c30584ece8da54287be6d67a528fd0df99fd470 | 7,099 | py | Python | test/programytest/services/test_config.py | RonKhondji/program-y | 422c5dea440e569469d7512d80315a731c5e35d6 | [
"MIT"
] | 345 | 2016-11-23T22:37:04.000Z | 2022-03-30T20:44:44.000Z | test/programytest/services/test_config.py | sofi2305/Nik | e8bb4a6614c16c334cd0df3a16b30a9daac0070d | [
"MIT"
] | 275 | 2016-12-07T10:30:28.000Z | 2022-02-08T21:28:33.000Z | test/programytest/services/test_config.py | sofi2305/Nik | e8bb4a6614c16c334cd0df3a16b30a9daac0070d | [
"MIT"
] | 159 | 2016-11-28T18:59:30.000Z | 2022-03-20T18:02:44.000Z | import unittest
from unittest.mock import Mock
import yaml
from programy.services.config import ServiceConfiguration
from programy.services.config import ServiceLibraryConfiguration
from programy.services.config import ServiceRESTConfiguration
class ServiceConfigurationTests(unittest.TestCase):
def test_init(self):
config = ServiceConfiguration(service_type='generic')
self.assertIsNotNone(config)
self.assertEqual(config.service_type, 'generic')
self.assertIsNone(config.name)
self.assertIsNone(config.category)
self.assertIsNone(config.service_class)
self.assertIsNone(config.storage)
self.assertIsNone(config.default_aiml)
self.assertIsNone(config.default_response)
self.assertIsNone(config.default_srai)
def test_from_yaml(self):
yaml_data = yaml.load("""
service:
name: test
category: test_category
service_class: service.TestService
default_response: Default Response
default_srai: DEFAULT_SRAI
default_aiml: test.aiml
""", Loader=yaml.FullLoader)
config = ServiceConfiguration.new_from_yaml(yaml_data, "test.yaml")
self.assertIsNotNone(config)
self.assertIsInstance(config, ServiceConfiguration)
self.assertEqual(config.service_type, 'generic')
self.assertEqual("test", config.name)
self.assertEqual("test_category", config.category)
self.assertEqual("test.yaml", config.storage)
self.assertEqual("service.TestService", config.service_class)
self.assertEqual(config.default_response, "Default Response")
self.assertEqual(config.default_srai, "DEFAULT_SRAI")
self.assertEqual(config.default_aiml, "test.aiml")
def test_from_yaml_with_rest(self):
yaml_data = yaml.load("""
service:
type: rest
name: test
category: test_category
service_class: service.TestService
default_response: Default Response
default_srai: DEFAULT_SRAI
default_aiml: test.aiml
rest:
retries: [10, 50, 100]
timeout: 900
""", Loader=yaml.FullLoader)
config = ServiceConfiguration.new_from_yaml(yaml_data, "test.yaml")
self.assertIsNotNone(config)
self.assertIsInstance(config, ServiceRESTConfiguration)
self.assertEqual("test", config.name)
self.assertEqual("test_category", config.category)
self.assertEqual("test.yaml", config.storage)
self.assertEqual("service.TestService", config.service_class)
self.assertEqual(config.default_response, "Default Response")
self.assertEqual(config.default_srai, "DEFAULT_SRAI")
self.assertEqual(config.default_aiml, "test.aiml")
self.assertEqual(config.retries, [10, 50, 100])
self.assertEqual(config.timeout, 900)
def test_from_sql(self):
mock_dao = Mock()
mock_dao.name = "test"
mock_dao.type = 'generic'
mock_dao.category = "test_category"
mock_dao.service_class = "service.TestService"
mock_dao.default_response = "Default Response"
mock_dao.default_srai = "DEFAULT_SRAI"
mock_dao.default_aiml = "test.aiml"
mock_dao.rest_retries = None
mock_dao.rest_timeout = None
config = ServiceConfiguration.from_sql(mock_dao)
self.assertIsNotNone(config)
self.assertIsInstance(config, ServiceConfiguration)
self.assertEqual("test", config.name)
self.assertEqual("test_category", config.category)
self.assertEqual("sql", config.storage)
self.assertEqual("service.TestService", config.service_class)
self.assertEqual(config.default_response, "Default Response")
self.assertEqual(config.default_srai, "DEFAULT_SRAI")
self.assertEqual(config.default_aiml, "test.aiml")
def test_from_sql_with_rest(self):
mock_dao = Mock()
mock_dao.type = 'rest'
mock_dao.name = "test"
mock_dao.category = "test_category"
mock_dao.service_class = "service.TestService"
mock_dao.default_response = "Default Response"
mock_dao.default_srai = "DEFAULT_SRAI"
mock_dao.default_aiml = "test.aiml"
mock_dao.rest_retries = [10, 50, 100]
mock_dao.rest_timeout = 900
config = ServiceConfiguration.from_sql(mock_dao)
self.assertIsNotNone(config)
self.assertIsInstance(config, ServiceRESTConfiguration)
self.assertEqual("test", config.name)
self.assertEqual("test_category", config.category)
self.assertEqual("sql", config.storage)
self.assertEqual("service.TestService", config.service_class)
self.assertEqual(config.default_response, "Default Response")
self.assertEqual(config.default_srai, "DEFAULT_SRAI")
self.assertEqual(config.default_aiml, "test.aiml")
def test_from_mongo(self):
service = {
"type": 'library',
"name": "test",
"category": "test_category",
"service_class": "service.TestService",
"default_response": "Default Response",
"default_srai": "DEFAULT_SRAI",
"default_aiml": "test.aiml"
}
config = ServiceConfiguration.from_mongo(service)
self.assertIsNotNone(config)
self.assertIsInstance(config, ServiceLibraryConfiguration)
self.assertEqual("test", config.name)
self.assertEqual("test_category", config.category)
self.assertEqual("mongo", config.storage)
self.assertEqual("service.TestService", config.service_class)
self.assertEqual(config.default_response, "Default Response")
self.assertEqual(config.default_srai, "DEFAULT_SRAI")
self.assertEqual(config.default_aiml, "test.aiml")
def test_from_mongo_with_rest(self):
service = {
"type": 'rest',
"name": "test",
"category": "test_category",
"service_class": "service.TestService",
"default_response": "Default Response",
"default_srai": "DEFAULT_SRAI",
"default_aiml": "test.aiml",
"rest": {
"timeout": 900,
"retries": [10, 50, 100]
}
}
config = ServiceConfiguration.from_mongo(service)
self.assertIsNotNone(config)
self.assertIsInstance(config, ServiceRESTConfiguration)
self.assertEqual("test", config.name)
self.assertEqual("test_category", config.category)
self.assertEqual("mongo", config.storage)
self.assertEqual("service.TestService", config.service_class)
self.assertEqual(config.default_response, "Default Response")
self.assertEqual(config.default_srai, "DEFAULT_SRAI")
self.assertEqual(config.default_aiml, "test.aiml")
self.assertEqual(config.retries, [10, 50, 100])
self.assertEqual(config.timeout, 900)
| 36.219388 | 75 | 0.659811 | 719 | 7,099 | 6.325452 | 0.070932 | 0.158311 | 0.110818 | 0.110818 | 0.850044 | 0.824318 | 0.797713 | 0.782982 | 0.782982 | 0.770888 | 0 | 0.009232 | 0.237076 | 7,099 | 195 | 76 | 36.405128 | 0.830502 | 0 | 0 | 0.718954 | 0 | 0 | 0.225102 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.045752 | false | 0 | 0.039216 | 0 | 0.091503 | 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 |
7c431e0fea898f9f7c769308f1940ae1d5bb58c6 | 156,808 | py | Python | src/oci/blockchain/blockchain_platform_client.py | pabs3/oci-python-sdk | 437ba18ce39af2d1090e277c4bb8750c89f83021 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/blockchain/blockchain_platform_client.py | pabs3/oci-python-sdk | 437ba18ce39af2d1090e277c4bb8750c89f83021 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/blockchain/blockchain_platform_client.py | pabs3/oci-python-sdk | 437ba18ce39af2d1090e277c4bb8750c89f83021 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
from __future__ import absolute_import
from oci._vendor import requests # noqa: F401
from oci._vendor import six
from oci import retry, circuit_breaker # noqa: F401
from oci.base_client import BaseClient
from oci.config import get_config_value_or_default, validate_config
from oci.signer import Signer
from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME
from .models import blockchain_type_mapping
missing = Sentinel("Missing")
class BlockchainPlatformClient(object):
"""
Blockchain Platform Control Plane API
"""
def __init__(self, config, **kwargs):
"""
Creates a new service client
:param dict config:
Configuration keys and values as per `SDK and Tool Configuration <https://docs.cloud.oracle.com/Content/API/Concepts/sdkconfig.htm>`__.
The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config
the dict using :py:meth:`~oci.config.validate_config`
:param str service_endpoint: (optional)
The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is
not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit
need to specify a service endpoint.
:param timeout: (optional)
The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided
as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If
a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
:type timeout: float or tuple(float, float)
:param signer: (optional)
The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values
provided in the config parameter.
One use case for this parameter is for `Instance Principals authentication <https://docs.cloud.oracle.com/Content/Identity/Tasks/callingservicesfrominstances.htm>`__
by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument
:type signer: :py:class:`~oci.signer.AbstractBaseSigner`
:param obj retry_strategy: (optional)
A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default.
Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation.
Any value provided at the operation level will override whatever is specified at the client level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
is also available. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
:param obj circuit_breaker_strategy: (optional)
A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level).
This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided.
The specifics of circuit breaker strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/circuit_breakers.html>`__.
:param function circuit_breaker_callback: (optional)
Callback function to receive any exceptions triggerred by the circuit breaker.
:param allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not
allow control characters to be in the response object.
"""
validate_config(config, signer=kwargs.get('signer'))
if 'signer' in kwargs:
signer = kwargs['signer']
elif AUTHENTICATION_TYPE_FIELD_NAME in config:
signer = get_signer_from_authentication_type(config)
else:
signer = Signer(
tenancy=config["tenancy"],
user=config["user"],
fingerprint=config["fingerprint"],
private_key_file_location=config.get("key_file"),
pass_phrase=get_config_value_or_default(config, "pass_phrase"),
private_key_content=config.get("key_content")
)
base_client_init_kwargs = {
'regional_client': True,
'service_endpoint': kwargs.get('service_endpoint'),
'base_path': '/20191010',
'service_endpoint_template': 'https://blockchain.{region}.oci.{secondLevelDomain}',
'skip_deserialization': kwargs.get('skip_deserialization', False),
'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY)
}
if 'timeout' in kwargs:
base_client_init_kwargs['timeout'] = kwargs.get('timeout')
if base_client_init_kwargs.get('circuit_breaker_strategy') is None:
base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY
if 'allow_control_chars' in kwargs:
base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars')
self.base_client = BaseClient("blockchain_platform", config, signer, blockchain_type_mapping, **base_client_init_kwargs)
self.retry_strategy = kwargs.get('retry_strategy')
self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
def change_blockchain_platform_compartment(self, blockchain_platform_id, change_blockchain_platform_compartment_details, **kwargs):
"""
Change Blockchain Platform Compartment
:param str blockchain_platform_id: (required)
Unique service identifier.
:param oci.blockchain.models.ChangeBlockchainPlatformCompartmentDetails change_blockchain_platform_compartment_details: (required)
Input payload to move the resource to a different compartment.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call
for a resource, set the `if-match` parameter to the value of the
etag from a previous GET or POST response for that resource.
The resource will be updated or deleted only if the etag you
provide matches the resource's current etag value.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
might be rejected.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/change_blockchain_platform_compartment.py.html>`__ to see an example of how to use change_blockchain_platform_compartment API.
"""
resource_path = "/blockchainPlatforms/{blockchainPlatformId}/actions/changeCompartment"
method = "POST"
operation_name = "change_blockchain_platform_compartment"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/ChangeBlockchainPlatformCompartment"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"if_match",
"opc_request_id",
"opc_retry_token"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"change_blockchain_platform_compartment got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"blockchainPlatformId": blockchain_platform_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"if-match": kwargs.get("if_match", missing),
"opc-request-id": kwargs.get("opc_request_id", missing),
"opc-retry-token": kwargs.get("opc_retry_token", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_retry_token_if_needed(header_params)
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=change_blockchain_platform_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=change_blockchain_platform_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def create_blockchain_platform(self, create_blockchain_platform_details, **kwargs):
"""
Creates a new Blockchain Platform.
:param oci.blockchain.models.CreateBlockchainPlatformDetails create_blockchain_platform_details: (required)
Details for the new service.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
might be rejected.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/create_blockchain_platform.py.html>`__ to see an example of how to use create_blockchain_platform API.
"""
resource_path = "/blockchainPlatforms"
method = "POST"
operation_name = "create_blockchain_platform"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/CreateBlockchainPlatform"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_retry_token",
"opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"create_blockchain_platform got unknown kwargs: {!r}".format(extra_kwargs))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-retry-token": kwargs.get("opc_retry_token", missing),
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_retry_token_if_needed(header_params)
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
header_params=header_params,
body=create_blockchain_platform_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
header_params=header_params,
body=create_blockchain_platform_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def create_osn(self, blockchain_platform_id, create_osn_details, **kwargs):
"""
Create Blockchain Platform Osn
:param str blockchain_platform_id: (required)
Unique service identifier.
:param oci.blockchain.models.CreateOsnDetails create_osn_details: (required)
Input payload to create blockchain platform OSN. The payload cannot be empty.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call
for a resource, set the `if-match` parameter to the value of the
etag from a previous GET or POST response for that resource.
The resource will be updated or deleted only if the etag you
provide matches the resource's current etag value.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
might be rejected.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/create_osn.py.html>`__ to see an example of how to use create_osn API.
"""
resource_path = "/blockchainPlatforms/{blockchainPlatformId}/osns"
method = "POST"
operation_name = "create_osn"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/CreateOsn"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"if_match",
"opc_request_id",
"opc_retry_token"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"create_osn got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"blockchainPlatformId": blockchain_platform_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"if-match": kwargs.get("if_match", missing),
"opc-request-id": kwargs.get("opc_request_id", missing),
"opc-retry-token": kwargs.get("opc_retry_token", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_retry_token_if_needed(header_params)
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=create_osn_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=create_osn_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def create_peer(self, blockchain_platform_id, create_peer_details, **kwargs):
"""
Create Blockchain Platform Peer
:param str blockchain_platform_id: (required)
Unique service identifier.
:param oci.blockchain.models.CreatePeerDetails create_peer_details: (required)
Input payload to create a blockchain platform peer. The payload cannot be empty.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
might be rejected.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/create_peer.py.html>`__ to see an example of how to use create_peer API.
"""
resource_path = "/blockchainPlatforms/{blockchainPlatformId}/peers"
method = "POST"
operation_name = "create_peer"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/CreatePeer"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_request_id",
"opc_retry_token"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"create_peer got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"blockchainPlatformId": blockchain_platform_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing),
"opc-retry-token": kwargs.get("opc_retry_token", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_retry_token_if_needed(header_params)
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=create_peer_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=create_peer_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def delete_blockchain_platform(self, blockchain_platform_id, **kwargs):
"""
Delete a particular of a Blockchain Platform
:param str blockchain_platform_id: (required)
Unique service identifier.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call
for a resource, set the `if-match` parameter to the value of the
etag from a previous GET or POST response for that resource.
The resource will be updated or deleted only if the etag you
provide matches the resource's current etag value.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
might be rejected.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/delete_blockchain_platform.py.html>`__ to see an example of how to use delete_blockchain_platform API.
"""
resource_path = "/blockchainPlatforms/{blockchainPlatformId}"
method = "DELETE"
operation_name = "delete_blockchain_platform"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/DeleteBlockchainPlatform"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_request_id",
"if_match",
"opc_retry_token"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"delete_blockchain_platform got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"blockchainPlatformId": blockchain_platform_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing),
"if-match": kwargs.get("if_match", missing),
"opc-retry-token": kwargs.get("opc_retry_token", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_retry_token_if_needed(header_params)
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def delete_osn(self, blockchain_platform_id, osn_id, **kwargs):
"""
Delete a particular OSN of a Blockchain Platform
:param str blockchain_platform_id: (required)
Unique service identifier.
:param str osn_id: (required)
OSN identifier.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call
for a resource, set the `if-match` parameter to the value of the
etag from a previous GET or POST response for that resource.
The resource will be updated or deleted only if the etag you
provide matches the resource's current etag value.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/delete_osn.py.html>`__ to see an example of how to use delete_osn API.
"""
resource_path = "/blockchainPlatforms/{blockchainPlatformId}/osns/{osnId}"
method = "DELETE"
operation_name = "delete_osn"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/DeleteOsn"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_request_id",
"if_match"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"delete_osn got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"blockchainPlatformId": blockchain_platform_id,
"osnId": osn_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing),
"if-match": kwargs.get("if_match", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def delete_peer(self, blockchain_platform_id, peer_id, **kwargs):
"""
Delete a particular peer of a Blockchain Platform
:param str blockchain_platform_id: (required)
Unique service identifier.
:param str peer_id: (required)
Peer identifier.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call
for a resource, set the `if-match` parameter to the value of the
etag from a previous GET or POST response for that resource.
The resource will be updated or deleted only if the etag you
provide matches the resource's current etag value.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
might be rejected.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/delete_peer.py.html>`__ to see an example of how to use delete_peer API.
"""
resource_path = "/blockchainPlatforms/{blockchainPlatformId}/peers/{peerId}"
method = "DELETE"
operation_name = "delete_peer"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/DeletePeer"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_request_id",
"if_match",
"opc_retry_token"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"delete_peer got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"blockchainPlatformId": blockchain_platform_id,
"peerId": peer_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing),
"if-match": kwargs.get("if_match", missing),
"opc-retry-token": kwargs.get("opc_retry_token", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_retry_token_if_needed(header_params)
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def delete_work_request(self, work_request_id, **kwargs):
"""
Attempts to cancel the work request with the given ID.
:param str work_request_id: (required)
The ID of the asynchronous request.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call
for a resource, set the `if-match` parameter to the value of the
etag from a previous GET or POST response for that resource.
The resource will be updated or deleted only if the etag you
provide matches the resource's current etag value.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/delete_work_request.py.html>`__ to see an example of how to use delete_work_request API.
"""
resource_path = "/workRequests/{workRequestId}"
method = "DELETE"
operation_name = "delete_work_request"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/WorkRequest/DeleteWorkRequest"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_request_id",
"if_match"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"delete_work_request got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"workRequestId": work_request_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing),
"if-match": kwargs.get("if_match", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def get_blockchain_platform(self, blockchain_platform_id, **kwargs):
"""
Gets information about a Blockchain Platform identified by the specific id
:param str blockchain_platform_id: (required)
Unique service identifier.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.blockchain.models.BlockchainPlatform`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/get_blockchain_platform.py.html>`__ to see an example of how to use get_blockchain_platform API.
"""
resource_path = "/blockchainPlatforms/{blockchainPlatformId}"
method = "GET"
operation_name = "get_blockchain_platform"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/GetBlockchainPlatform"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"get_blockchain_platform got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"blockchainPlatformId": blockchain_platform_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
response_type="BlockchainPlatform",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
response_type="BlockchainPlatform",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def get_osn(self, blockchain_platform_id, osn_id, **kwargs):
"""
Gets information about an OSN identified by the specific id
:param str blockchain_platform_id: (required)
Unique service identifier.
:param str osn_id: (required)
OSN identifier.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.blockchain.models.Osn`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/get_osn.py.html>`__ to see an example of how to use get_osn API.
"""
resource_path = "/blockchainPlatforms/{blockchainPlatformId}/osns/{osnId}"
method = "GET"
operation_name = "get_osn"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/Osn/GetOsn"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"get_osn got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"blockchainPlatformId": blockchain_platform_id,
"osnId": osn_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
response_type="Osn",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
response_type="Osn",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def get_peer(self, blockchain_platform_id, peer_id, **kwargs):
"""
Gets information about a peer identified by the specific id
:param str blockchain_platform_id: (required)
Unique service identifier.
:param str peer_id: (required)
Peer identifier.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.blockchain.models.Peer`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/get_peer.py.html>`__ to see an example of how to use get_peer API.
"""
resource_path = "/blockchainPlatforms/{blockchainPlatformId}/peers/{peerId}"
method = "GET"
operation_name = "get_peer"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/Peer/GetPeer"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"get_peer got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"blockchainPlatformId": blockchain_platform_id,
"peerId": peer_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
response_type="Peer",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
response_type="Peer",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def get_work_request(self, work_request_id, **kwargs):
"""
Gets the status of the work request with the given ID.
:param str work_request_id: (required)
The ID of the asynchronous request.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.blockchain.models.WorkRequest`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
"""
resource_path = "/workRequests/{workRequestId}"
method = "GET"
operation_name = "get_work_request"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/WorkRequest/GetWorkRequest"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"get_work_request got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"workRequestId": work_request_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
response_type="WorkRequest",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
response_type="WorkRequest",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def list_blockchain_platform_patches(self, blockchain_platform_id, **kwargs):
"""
List Blockchain Platform Patches
:param str blockchain_platform_id: (required)
Unique service identifier.
:param str page: (optional)
The page at which to start retrieving results.
:param int limit: (optional)
The maximum number of items to return.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.blockchain.models.BlockchainPlatformPatchCollection`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/list_blockchain_platform_patches.py.html>`__ to see an example of how to use list_blockchain_platform_patches API.
"""
resource_path = "/blockchainPlatforms/{blockchainPlatformId}/patches"
method = "GET"
operation_name = "list_blockchain_platform_patches"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/ListBlockchainPlatformPatches"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"page",
"limit",
"opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"list_blockchain_platform_patches got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"blockchainPlatformId": blockchain_platform_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
query_params = {
"page": kwargs.get("page", missing),
"limit": kwargs.get("limit", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="BlockchainPlatformPatchCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="BlockchainPlatformPatchCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def list_blockchain_platforms(self, compartment_id, **kwargs):
"""
Returns a list Blockchain Platform Instances in a compartment
:param str compartment_id: (required)
The ID of the compartment in which to list resources.
:param str display_name: (optional)
A user-friendly name. Does not have to be unique, and it's changeable.
Example: `My new resource`
:param str page: (optional)
The page at which to start retrieving results.
:param int limit: (optional)
The maximum number of items to return.
:param str sort_order: (optional)
The sort order to use, either 'asc' or 'desc'.
Allowed values are: "ASC", "DESC"
:param str sort_by: (optional)
The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default.
Allowed values are: "timeCreated", "displayName"
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str lifecycle_state: (optional)
A filter to only return resources that match the given lifecycle state.
The state value is case-insensitive.
Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "SCALING", "INACTIVE", "FAILED"
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.blockchain.models.BlockchainPlatformCollection`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/list_blockchain_platforms.py.html>`__ to see an example of how to use list_blockchain_platforms API.
"""
resource_path = "/blockchainPlatforms"
method = "GET"
operation_name = "list_blockchain_platforms"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/ListBlockchainPlatforms"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"display_name",
"page",
"limit",
"sort_order",
"sort_by",
"opc_request_id",
"lifecycle_state"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"list_blockchain_platforms got unknown kwargs: {!r}".format(extra_kwargs))
if 'sort_order' in kwargs:
sort_order_allowed_values = ["ASC", "DESC"]
if kwargs['sort_order'] not in sort_order_allowed_values:
raise ValueError(
"Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
)
if 'sort_by' in kwargs:
sort_by_allowed_values = ["timeCreated", "displayName"]
if kwargs['sort_by'] not in sort_by_allowed_values:
raise ValueError(
"Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
)
if 'lifecycle_state' in kwargs:
lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "SCALING", "INACTIVE", "FAILED"]
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
raise ValueError(
"Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
)
query_params = {
"compartmentId": compartment_id,
"displayName": kwargs.get("display_name", missing),
"page": kwargs.get("page", missing),
"limit": kwargs.get("limit", missing),
"sortOrder": kwargs.get("sort_order", missing),
"sortBy": kwargs.get("sort_by", missing),
"lifecycleState": kwargs.get("lifecycle_state", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
response_type="BlockchainPlatformCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
response_type="BlockchainPlatformCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def list_osns(self, blockchain_platform_id, **kwargs):
"""
List Blockchain Platform OSNs
:param str blockchain_platform_id: (required)
Unique service identifier.
:param str display_name: (optional)
A user-friendly name. Does not have to be unique, and it's changeable.
Example: `My new resource`
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
might be rejected.
:param str sort_order: (optional)
The sort order to use, either 'asc' or 'desc'.
Allowed values are: "ASC", "DESC"
:param str sort_by: (optional)
The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default.
Allowed values are: "timeCreated", "displayName"
:param str page: (optional)
The page at which to start retrieving results.
:param int limit: (optional)
The maximum number of items to return.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.blockchain.models.OsnCollection`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/list_osns.py.html>`__ to see an example of how to use list_osns API.
"""
resource_path = "/blockchainPlatforms/{blockchainPlatformId}/osns"
method = "GET"
operation_name = "list_osns"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/Osn/ListOsns"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"display_name",
"opc_request_id",
"opc_retry_token",
"sort_order",
"sort_by",
"page",
"limit"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"list_osns got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"blockchainPlatformId": blockchain_platform_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
if 'sort_order' in kwargs:
sort_order_allowed_values = ["ASC", "DESC"]
if kwargs['sort_order'] not in sort_order_allowed_values:
raise ValueError(
"Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
)
if 'sort_by' in kwargs:
sort_by_allowed_values = ["timeCreated", "displayName"]
if kwargs['sort_by'] not in sort_by_allowed_values:
raise ValueError(
"Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
)
query_params = {
"displayName": kwargs.get("display_name", missing),
"sortOrder": kwargs.get("sort_order", missing),
"sortBy": kwargs.get("sort_by", missing),
"page": kwargs.get("page", missing),
"limit": kwargs.get("limit", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing),
"opc-retry-token": kwargs.get("opc_retry_token", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_retry_token_if_needed(header_params)
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="OsnCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="OsnCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def list_peers(self, blockchain_platform_id, **kwargs):
"""
List Blockchain Platform Peers
:param str blockchain_platform_id: (required)
Unique service identifier.
:param str display_name: (optional)
A user-friendly name. Does not have to be unique, and it's changeable.
Example: `My new resource`
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
might be rejected.
:param str sort_order: (optional)
The sort order to use, either 'asc' or 'desc'.
Allowed values are: "ASC", "DESC"
:param str sort_by: (optional)
The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default.
Allowed values are: "timeCreated", "displayName"
:param str page: (optional)
The page at which to start retrieving results.
:param int limit: (optional)
The maximum number of items to return.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.blockchain.models.PeerCollection`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/list_peers.py.html>`__ to see an example of how to use list_peers API.
"""
resource_path = "/blockchainPlatforms/{blockchainPlatformId}/peers"
method = "GET"
operation_name = "list_peers"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/Peer/ListPeers"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"display_name",
"opc_request_id",
"opc_retry_token",
"sort_order",
"sort_by",
"page",
"limit"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"list_peers got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"blockchainPlatformId": blockchain_platform_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
if 'sort_order' in kwargs:
sort_order_allowed_values = ["ASC", "DESC"]
if kwargs['sort_order'] not in sort_order_allowed_values:
raise ValueError(
"Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
)
if 'sort_by' in kwargs:
sort_by_allowed_values = ["timeCreated", "displayName"]
if kwargs['sort_by'] not in sort_by_allowed_values:
raise ValueError(
"Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
)
query_params = {
"displayName": kwargs.get("display_name", missing),
"sortOrder": kwargs.get("sort_order", missing),
"sortBy": kwargs.get("sort_by", missing),
"page": kwargs.get("page", missing),
"limit": kwargs.get("limit", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing),
"opc-retry-token": kwargs.get("opc_retry_token", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_retry_token_if_needed(header_params)
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="PeerCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="PeerCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def list_work_request_errors(self, work_request_id, **kwargs):
"""
Return a (paginated) list of errors for a given work request.
:param str work_request_id: (required)
The ID of the asynchronous request.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str page: (optional)
The page at which to start retrieving results.
:param int limit: (optional)
The maximum number of items to return.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.blockchain.models.WorkRequestErrorCollection`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
"""
resource_path = "/workRequests/{workRequestId}/errors"
method = "GET"
operation_name = "list_work_request_errors"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/WorkRequestError/ListWorkRequestErrors"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_request_id",
"page",
"limit"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"list_work_request_errors got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"workRequestId": work_request_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
query_params = {
"page": kwargs.get("page", missing),
"limit": kwargs.get("limit", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="WorkRequestErrorCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="WorkRequestErrorCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def list_work_request_logs(self, work_request_id, **kwargs):
"""
Return a (paginated) list of logs for a given work request.
:param str work_request_id: (required)
The ID of the asynchronous request.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str page: (optional)
The page at which to start retrieving results.
:param int limit: (optional)
The maximum number of items to return.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.blockchain.models.WorkRequestLogEntryCollection`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
"""
resource_path = "/workRequests/{workRequestId}/logs"
method = "GET"
operation_name = "list_work_request_logs"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/WorkRequestLogEntry/ListWorkRequestLogs"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_request_id",
"page",
"limit"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"list_work_request_logs got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"workRequestId": work_request_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
query_params = {
"page": kwargs.get("page", missing),
"limit": kwargs.get("limit", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="WorkRequestLogEntryCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="WorkRequestLogEntryCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def list_work_requests(self, compartment_id, blockchain_platform_id, **kwargs):
"""
Lists the work requests in a compartment.
:param str compartment_id: (required)
The ID of the compartment in which to list resources.
:param str blockchain_platform_id: (required)
Unique service identifier.
:param str sort_order: (optional)
The sort order to use, either 'asc' or 'desc'.
Allowed values are: "ASC", "DESC"
:param str sort_by: (optional)
The field to sort by. Only one sort order may be provided. Default order for TIMESTARTED is descending. Default order for WORKREQUESTID is ascending. If no value is specified TIMESTARTED is default.
Allowed values are: "timeStarted", "workRequestId"
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str page: (optional)
The page at which to start retrieving results.
:param int limit: (optional)
The maximum number of items to return.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.blockchain.models.WorkRequestCollection`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
"""
resource_path = "/workRequests"
method = "GET"
operation_name = "list_work_requests"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/WorkRequest/ListWorkRequests"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"sort_order",
"sort_by",
"opc_request_id",
"page",
"limit"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"list_work_requests got unknown kwargs: {!r}".format(extra_kwargs))
if 'sort_order' in kwargs:
sort_order_allowed_values = ["ASC", "DESC"]
if kwargs['sort_order'] not in sort_order_allowed_values:
raise ValueError(
"Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
)
if 'sort_by' in kwargs:
sort_by_allowed_values = ["timeStarted", "workRequestId"]
if kwargs['sort_by'] not in sort_by_allowed_values:
raise ValueError(
"Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
)
query_params = {
"compartmentId": compartment_id,
"blockchainPlatformId": blockchain_platform_id,
"sortOrder": kwargs.get("sort_order", missing),
"sortBy": kwargs.get("sort_by", missing),
"page": kwargs.get("page", missing),
"limit": kwargs.get("limit", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
response_type="WorkRequestCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
response_type="WorkRequestCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def preview_scale_blockchain_platform(self, blockchain_platform_id, scale_blockchain_platform_details, **kwargs):
"""
Preview Scale Blockchain Platform
:param str blockchain_platform_id: (required)
Unique service identifier.
:param oci.blockchain.models.ScaleBlockchainPlatformDetails scale_blockchain_platform_details: (required)
Input payload to scaleout blockchain platform. The payload cannot be empty.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.blockchain.models.ScaledBlockchainPlatformPreview`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/preview_scale_blockchain_platform.py.html>`__ to see an example of how to use preview_scale_blockchain_platform API.
"""
resource_path = "/blockchainPlatforms/{blockchainPlatformId}/actions/scale/preview"
method = "POST"
operation_name = "preview_scale_blockchain_platform"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/PreviewScaleBlockchainPlatform"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"preview_scale_blockchain_platform got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"blockchainPlatformId": blockchain_platform_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=scale_blockchain_platform_details,
response_type="ScaledBlockchainPlatformPreview",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=scale_blockchain_platform_details,
response_type="ScaledBlockchainPlatformPreview",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def scale_blockchain_platform(self, blockchain_platform_id, scale_blockchain_platform_details, **kwargs):
"""
Scale Blockchain Platform
:param str blockchain_platform_id: (required)
Unique service identifier.
:param oci.blockchain.models.ScaleBlockchainPlatformDetails scale_blockchain_platform_details: (required)
Input payload to scaleout blockchain platform. The payload cannot be empty.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call
for a resource, set the `if-match` parameter to the value of the
etag from a previous GET or POST response for that resource.
The resource will be updated or deleted only if the etag you
provide matches the resource's current etag value.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
might be rejected.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/scale_blockchain_platform.py.html>`__ to see an example of how to use scale_blockchain_platform API.
"""
resource_path = "/blockchainPlatforms/{blockchainPlatformId}/actions/scale"
method = "POST"
operation_name = "scale_blockchain_platform"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/ScaleBlockchainPlatform"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"if_match",
"opc_request_id",
"opc_retry_token"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"scale_blockchain_platform got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"blockchainPlatformId": blockchain_platform_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"if-match": kwargs.get("if_match", missing),
"opc-request-id": kwargs.get("opc_request_id", missing),
"opc-retry-token": kwargs.get("opc_retry_token", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_retry_token_if_needed(header_params)
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=scale_blockchain_platform_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=scale_blockchain_platform_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def start_blockchain_platform(self, blockchain_platform_id, **kwargs):
"""
Start a Blockchain Platform
:param str blockchain_platform_id: (required)
Unique service identifier.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call
for a resource, set the `if-match` parameter to the value of the
etag from a previous GET or POST response for that resource.
The resource will be updated or deleted only if the etag you
provide matches the resource's current etag value.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
might be rejected.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/start_blockchain_platform.py.html>`__ to see an example of how to use start_blockchain_platform API.
"""
resource_path = "/blockchainPlatforms/{blockchainPlatformId}/actions/start"
method = "POST"
operation_name = "start_blockchain_platform"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/StartBlockchainPlatform"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"if_match",
"opc_request_id",
"opc_retry_token"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"start_blockchain_platform got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"blockchainPlatformId": blockchain_platform_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"if-match": kwargs.get("if_match", missing),
"opc-request-id": kwargs.get("opc_request_id", missing),
"opc-retry-token": kwargs.get("opc_retry_token", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_retry_token_if_needed(header_params)
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def stop_blockchain_platform(self, blockchain_platform_id, **kwargs):
"""
Stop a Blockchain Platform
:param str blockchain_platform_id: (required)
Unique service identifier.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call
for a resource, set the `if-match` parameter to the value of the
etag from a previous GET or POST response for that resource.
The resource will be updated or deleted only if the etag you
provide matches the resource's current etag value.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
might be rejected.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/stop_blockchain_platform.py.html>`__ to see an example of how to use stop_blockchain_platform API.
"""
resource_path = "/blockchainPlatforms/{blockchainPlatformId}/actions/stop"
method = "POST"
operation_name = "stop_blockchain_platform"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/StopBlockchainPlatform"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"if_match",
"opc_request_id",
"opc_retry_token"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"stop_blockchain_platform got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"blockchainPlatformId": blockchain_platform_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"if-match": kwargs.get("if_match", missing),
"opc-request-id": kwargs.get("opc_request_id", missing),
"opc-retry-token": kwargs.get("opc_retry_token", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_retry_token_if_needed(header_params)
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def update_blockchain_platform(self, update_blockchain_platform_details, blockchain_platform_id, **kwargs):
"""
Update a particular of a Blockchain Platform
:param oci.blockchain.models.UpdateBlockchainPlatformDetails update_blockchain_platform_details: (required)
The Blockchain Platform fields to update. Fields that are not provided will not be updated.
:param str blockchain_platform_id: (required)
Unique service identifier.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call
for a resource, set the `if-match` parameter to the value of the
etag from a previous GET or POST response for that resource.
The resource will be updated or deleted only if the etag you
provide matches the resource's current etag value.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
might be rejected.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/update_blockchain_platform.py.html>`__ to see an example of how to use update_blockchain_platform API.
"""
resource_path = "/blockchainPlatforms/{blockchainPlatformId}"
method = "PUT"
operation_name = "update_blockchain_platform"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/UpdateBlockchainPlatform"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_request_id",
"if_match",
"opc_retry_token"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"update_blockchain_platform got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"blockchainPlatformId": blockchain_platform_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing),
"if-match": kwargs.get("if_match", missing),
"opc-retry-token": kwargs.get("opc_retry_token", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_retry_token_if_needed(header_params)
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=update_blockchain_platform_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=update_blockchain_platform_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def update_osn(self, blockchain_platform_id, osn_id, update_osn_details, **kwargs):
"""
Update Blockchain Platform OSN
:param str blockchain_platform_id: (required)
Unique service identifier.
:param str osn_id: (required)
OSN identifier.
:param oci.blockchain.models.UpdateOsnDetails update_osn_details: (required)
Input payload to update a blockchain platform OSN. The payload cannot be empty.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call
for a resource, set the `if-match` parameter to the value of the
etag from a previous GET or POST response for that resource.
The resource will be updated or deleted only if the etag you
provide matches the resource's current etag value.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
might be rejected.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/update_osn.py.html>`__ to see an example of how to use update_osn API.
"""
resource_path = "/blockchainPlatforms/{blockchainPlatformId}/osns/{osnId}"
method = "PUT"
operation_name = "update_osn"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/UpdateOsn"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"if_match",
"opc_request_id",
"opc_retry_token"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"update_osn got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"blockchainPlatformId": blockchain_platform_id,
"osnId": osn_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"if-match": kwargs.get("if_match", missing),
"opc-request-id": kwargs.get("opc_request_id", missing),
"opc-retry-token": kwargs.get("opc_retry_token", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_retry_token_if_needed(header_params)
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=update_osn_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=update_osn_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def update_peer(self, blockchain_platform_id, peer_id, update_peer_details, **kwargs):
"""
Update Blockchain Platform Peer
:param str blockchain_platform_id: (required)
Unique service identifier.
:param str peer_id: (required)
Peer identifier.
:param oci.blockchain.models.UpdatePeerDetails update_peer_details: (required)
Input payload to update a blockchain platform peer. The payload cannot be empty.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call
for a resource, set the `if-match` parameter to the value of the
etag from a previous GET or POST response for that resource.
The resource will be updated or deleted only if the etag you
provide matches the resource's current etag value.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
might be rejected.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/update_peer.py.html>`__ to see an example of how to use update_peer API.
"""
resource_path = "/blockchainPlatforms/{blockchainPlatformId}/peers/{peerId}"
method = "PUT"
operation_name = "update_peer"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/UpdatePeer"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"if_match",
"opc_request_id",
"opc_retry_token"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"update_peer got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"blockchainPlatformId": blockchain_platform_id,
"peerId": peer_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"if-match": kwargs.get("if_match", missing),
"opc-request-id": kwargs.get("opc_request_id", missing),
"opc-retry-token": kwargs.get("opc_retry_token", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_retry_token_if_needed(header_params)
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=update_peer_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=update_peer_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def upgrade_blockchain_platform(self, upgrade_blockchain_platform_details, blockchain_platform_id, **kwargs):
"""
Upgrade a Blockchain Platform version
:param oci.blockchain.models.UpgradeBlockchainPlatformDetails upgrade_blockchain_platform_details: (required)
Details for the new version to which it needs to be upgraded.
:param str blockchain_platform_id: (required)
Unique service identifier.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call
for a resource, set the `if-match` parameter to the value of the
etag from a previous GET or POST response for that resource.
The resource will be updated or deleted only if the etag you
provide matches the resource's current etag value.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
might be rejected.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/upgrade_blockchain_platform.py.html>`__ to see an example of how to use upgrade_blockchain_platform API.
"""
resource_path = "/blockchainPlatforms/{blockchainPlatformId}/actions/upgrade"
method = "POST"
operation_name = "upgrade_blockchain_platform"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/UpgradeBlockchainPlatform"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"if_match",
"opc_request_id",
"opc_retry_token"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"upgrade_blockchain_platform got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"blockchainPlatformId": blockchain_platform_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"if-match": kwargs.get("if_match", missing),
"opc-request-id": kwargs.get("opc_request_id", missing),
"opc-retry-token": kwargs.get("opc_retry_token", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_retry_token_if_needed(header_params)
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=upgrade_blockchain_platform_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=upgrade_blockchain_platform_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
| 50.17856 | 261 | 0.655413 | 19,421 | 156,808 | 5.089903 | 0.025745 | 0.057865 | 0.033363 | 0.005807 | 0.937472 | 0.924351 | 0.917168 | 0.906637 | 0.894963 | 0.888934 | 0 | 0.002728 | 0.268328 | 156,808 | 3,124 | 262 | 50.194622 | 0.858854 | 0.393417 | 0 | 0.830607 | 0 | 0.015771 | 0.174445 | 0.027546 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016355 | false | 0.000584 | 0.005257 | 0 | 0.053738 | 0.000584 | 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 |
7cdb5e4727c0fd0becddc090faaf80ac06d32548 | 558,950 | py | Python | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_freqsync_oper.py | Maikor/ydk-py | b86c4a7c570ae3b2c5557d098420446df5de4929 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_freqsync_oper.py | Maikor/ydk-py | b86c4a7c570ae3b2c5557d098420446df5de4929 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_freqsync_oper.py | Maikor/ydk-py | b86c4a7c570ae3b2c5557d098420446df5de4929 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | """ Cisco_IOS_XR_freqsync_oper
This module contains a collection of YANG definitions
for Cisco IOS\-XR freqsync package operational data.
This module contains definitions
for the following management objects\:
frequency\-synchronization\: Frequency Synchronization
operational data
Copyright (c) 2013\-2018 by Cisco Systems, Inc.
All rights reserved.
"""
from collections import OrderedDict
from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Empty, Decimal64
from ydk.filters import YFilter
from ydk.errors import YError, YModelError
from ydk.errors.error_handler import handle_type_error as _handle_type_error
class FsyncBagClockIntfClass(Enum):
"""
FsyncBagClockIntfClass (Enum Class)
Clock\-interface class
.. data:: clock_class_bitst1 = 0
BITS T1
.. data:: clock_class_bitse1 = 1
BITS E1
.. data:: clock_class_bits2m = 2
BITS 2M
.. data:: clock_class_bits6m = 3
BITS 6M
.. data:: clock_class_bits64k = 4
BITS 64K
.. data:: clock_class_dti = 5
DTI
.. data:: clock_class_gps = 6
GPS
.. data:: clock_class_chassis_sync = 7
Inter-Chassis Sync
.. data:: clock_class_bitsj1 = 8
Bits J1
.. data:: clock_class_unknown = 255
Unknown
"""
clock_class_bitst1 = Enum.YLeaf(0, "clock-class-bitst1")
clock_class_bitse1 = Enum.YLeaf(1, "clock-class-bitse1")
clock_class_bits2m = Enum.YLeaf(2, "clock-class-bits2m")
clock_class_bits6m = Enum.YLeaf(3, "clock-class-bits6m")
clock_class_bits64k = Enum.YLeaf(4, "clock-class-bits64k")
clock_class_dti = Enum.YLeaf(5, "clock-class-dti")
clock_class_gps = Enum.YLeaf(6, "clock-class-gps")
clock_class_chassis_sync = Enum.YLeaf(7, "clock-class-chassis-sync")
clock_class_bitsj1 = Enum.YLeaf(8, "clock-class-bitsj1")
clock_class_unknown = Enum.YLeaf(255, "clock-class-unknown")
class FsyncBagDampingState(Enum):
"""
FsyncBagDampingState (Enum Class)
Damping state
.. data:: damping_state_down = 0
Down
.. data:: damping_state_coming_up = 1
Coming up
.. data:: damping_state_up = 2
Up
.. data:: damping_state_going_down = 3
Going down
"""
damping_state_down = Enum.YLeaf(0, "damping-state-down")
damping_state_coming_up = Enum.YLeaf(1, "damping-state-coming-up")
damping_state_up = Enum.YLeaf(2, "damping-state-up")
damping_state_going_down = Enum.YLeaf(3, "damping-state-going-down")
class FsyncBagEsmcPeerState(Enum):
"""
FsyncBagEsmcPeerState (Enum Class)
ESMC peer state
.. data:: peer_down = 1808240398
Peer state down
.. data:: peer_up = 1808240399
Peer state up
.. data:: peer_timed_out = 1808240400
Peer state timed out
.. data:: peer_unknown = 1808240401
Peer state unknown
"""
peer_down = Enum.YLeaf(1808240398, "peer-down")
peer_up = Enum.YLeaf(1808240399, "peer-up")
peer_timed_out = Enum.YLeaf(1808240400, "peer-timed-out")
peer_unknown = Enum.YLeaf(1808240401, "peer-unknown")
class FsyncBagForwardtraceNode(Enum):
"""
FsyncBagForwardtraceNode (Enum Class)
Selection forwardtrace node information
.. data:: forward_trace_node_selection_point = 0
A selection point forwardtrace node
.. data:: forward_trace_node_source = 1
A timing source forwardtrace node
"""
forward_trace_node_selection_point = Enum.YLeaf(0, "forward-trace-node-selection-point")
forward_trace_node_source = Enum.YLeaf(1, "forward-trace-node-source")
class FsyncBagQlO1Value(Enum):
"""
FsyncBagQlO1Value (Enum Class)
Quality level option 1 values
.. data:: option1_invalid = 0
Invalid
.. data:: option1_do_not_use = 1
Do not use
.. data:: option1_failed = 2
Failed
.. data:: option1_none = 3
Interface does not support SSMs or no QL has
been received
.. data:: option1prc = 10
Primary reference clock
.. data:: option1ssu_a = 11
Type I or V slave clock
.. data:: option1ssu_b = 12
Type VI slave clock
.. data:: option1sec = 13
SONET equipment clock
"""
option1_invalid = Enum.YLeaf(0, "option1-invalid")
option1_do_not_use = Enum.YLeaf(1, "option1-do-not-use")
option1_failed = Enum.YLeaf(2, "option1-failed")
option1_none = Enum.YLeaf(3, "option1-none")
option1prc = Enum.YLeaf(10, "option1prc")
option1ssu_a = Enum.YLeaf(11, "option1ssu-a")
option1ssu_b = Enum.YLeaf(12, "option1ssu-b")
option1sec = Enum.YLeaf(13, "option1sec")
class FsyncBagQlO2G1Value(Enum):
"""
FsyncBagQlO2G1Value (Enum Class)
Quality level option 2, generation 1 values
.. data:: option2_generation1_invalid = 0
Invalid
.. data:: option2_generation1_do_not_use = 1
Do not use
.. data:: option2_generation1_failed = 2
Failed
.. data:: option2_generation1_none = 3
Interface does not support SSMs or no QL has
been received
.. data:: option2_generation1prs = 20
Primary reference source
.. data:: option2_generation1stu = 21
Synchronized - traceability unknown
.. data:: option2_generation1_stratum2 = 22
Stratum 2
.. data:: option2_generation1_stratum3 = 23
Stratum 3
.. data:: option2_generation1smc = 24
SONET clock self timed
.. data:: option2_generation1_stratum4 = 25
Stratum 4 freerun
"""
option2_generation1_invalid = Enum.YLeaf(0, "option2-generation1-invalid")
option2_generation1_do_not_use = Enum.YLeaf(1, "option2-generation1-do-not-use")
option2_generation1_failed = Enum.YLeaf(2, "option2-generation1-failed")
option2_generation1_none = Enum.YLeaf(3, "option2-generation1-none")
option2_generation1prs = Enum.YLeaf(20, "option2-generation1prs")
option2_generation1stu = Enum.YLeaf(21, "option2-generation1stu")
option2_generation1_stratum2 = Enum.YLeaf(22, "option2-generation1-stratum2")
option2_generation1_stratum3 = Enum.YLeaf(23, "option2-generation1-stratum3")
option2_generation1smc = Enum.YLeaf(24, "option2-generation1smc")
option2_generation1_stratum4 = Enum.YLeaf(25, "option2-generation1-stratum4")
class FsyncBagQlO2G2Value(Enum):
"""
FsyncBagQlO2G2Value (Enum Class)
Quality level option 2, generation 2 values
.. data:: option2_generation2_invalid = 0
Invalid
.. data:: option2_generation2_do_not_use = 1
Do not use
.. data:: option2_generation2_failed = 2
Failed
.. data:: option2_generation2_none = 3
Interface does not support SSMs or no QL has
been received
.. data:: option2_generation2prs = 30
Primary reference source
.. data:: option2_generation2stu = 31
Synchronized - traceability unknown
.. data:: option2_generation2_stratum2 = 32
Stratum 2
.. data:: option2_generation2_stratum3 = 33
Stratum 3
.. data:: option2_generation2tnc = 34
Transit node clock
.. data:: option2_generation2_stratum3e = 35
Stratum 3E
.. data:: option2_generation2smc = 36
SONET clock self timed
.. data:: option2_generation2_stratum4 = 37
Stratum 4 freerun
"""
option2_generation2_invalid = Enum.YLeaf(0, "option2-generation2-invalid")
option2_generation2_do_not_use = Enum.YLeaf(1, "option2-generation2-do-not-use")
option2_generation2_failed = Enum.YLeaf(2, "option2-generation2-failed")
option2_generation2_none = Enum.YLeaf(3, "option2-generation2-none")
option2_generation2prs = Enum.YLeaf(30, "option2-generation2prs")
option2_generation2stu = Enum.YLeaf(31, "option2-generation2stu")
option2_generation2_stratum2 = Enum.YLeaf(32, "option2-generation2-stratum2")
option2_generation2_stratum3 = Enum.YLeaf(33, "option2-generation2-stratum3")
option2_generation2tnc = Enum.YLeaf(34, "option2-generation2tnc")
option2_generation2_stratum3e = Enum.YLeaf(35, "option2-generation2-stratum3e")
option2_generation2smc = Enum.YLeaf(36, "option2-generation2smc")
option2_generation2_stratum4 = Enum.YLeaf(37, "option2-generation2-stratum4")
class FsyncBagQlOption(Enum):
"""
FsyncBagQlOption (Enum Class)
Quality level option
.. data:: no_quality_level_option = 0
Interface does not support SSMs or no QL has
been received
.. data:: option1 = 1
ITU-T Quality level option 1
.. data:: option2_generation1 = 2
ITU-T Quality level option 2, generation 1
.. data:: option2_generation2 = 3
ITU-T Quality level option 2, generation 2
.. data:: invalid_quality_level_option = 4
Invalid quality level option
"""
no_quality_level_option = Enum.YLeaf(0, "no-quality-level-option")
option1 = Enum.YLeaf(1, "option1")
option2_generation1 = Enum.YLeaf(2, "option2-generation1")
option2_generation2 = Enum.YLeaf(3, "option2-generation2")
invalid_quality_level_option = Enum.YLeaf(4, "invalid-quality-level-option")
class FsyncBagSourceClass(Enum):
"""
FsyncBagSourceClass (Enum Class)
Source class
.. data:: invalid_source = 0
Invalid source class
.. data:: ethernet_interface_source = 1
Ethernet interface
.. data:: sonet_interface_source = 2
SONET interface
.. data:: clock_interface_source = 3
Clock interface
.. data:: internal_clock_source = 4
Internal clock
.. data:: ptp_source = 5
PTP clock
.. data:: satellite_access_interface_source = 6
Satellite Access Interface
.. data:: ntp_source = 7
NTP clock
.. data:: gnss_receiver = 8
GNSS Receiver
"""
invalid_source = Enum.YLeaf(0, "invalid-source")
ethernet_interface_source = Enum.YLeaf(1, "ethernet-interface-source")
sonet_interface_source = Enum.YLeaf(2, "sonet-interface-source")
clock_interface_source = Enum.YLeaf(3, "clock-interface-source")
internal_clock_source = Enum.YLeaf(4, "internal-clock-source")
ptp_source = Enum.YLeaf(5, "ptp-source")
satellite_access_interface_source = Enum.YLeaf(6, "satellite-access-interface-source")
ntp_source = Enum.YLeaf(7, "ntp-source")
gnss_receiver = Enum.YLeaf(8, "gnss-receiver")
class FsyncBagSourceState(Enum):
"""
FsyncBagSourceState (Enum Class)
Source state
.. data:: source_state_unknown = 0
Unknown
.. data:: source_state_up = 1
Up
.. data:: source_state_down = 2
Down
.. data:: source_state_unavailable = 3
Unvailable
"""
source_state_unknown = Enum.YLeaf(0, "source-state-unknown")
source_state_up = Enum.YLeaf(1, "source-state-up")
source_state_down = Enum.YLeaf(2, "source-state-down")
source_state_unavailable = Enum.YLeaf(3, "source-state-unavailable")
class FsyncBagStreamInput(Enum):
"""
FsyncBagStreamInput (Enum Class)
Stream input type
.. data:: invalid_input = 0
Invalid stream input
.. data:: source_input = 1
Source stream input
.. data:: selection_point_input = 2
Selection point stream input
"""
invalid_input = Enum.YLeaf(0, "invalid-input")
source_input = Enum.YLeaf(1, "source-input")
selection_point_input = Enum.YLeaf(2, "selection-point-input")
class FsyncBagStreamState(Enum):
"""
FsyncBagStreamState (Enum Class)
Platform stream status
.. data:: stream_invalid = 0
Invalid stream
.. data:: stream_unqualified = 1
Unqualified stream
.. data:: stream_available = 2
Stream available
.. data:: stream_available_acquiring = 3
Stream available acquiring
.. data:: stream_locked = 4
Stream locked
.. data:: stream_holdover = 5
Stream in holdover
.. data:: stream_freerun = 6
Stream free running
.. data:: stream_failed = 7
Stream failed
.. data:: stream_unmonitored = 8
Unmonitored stream
.. data:: stream_error = 9
Stream error
"""
stream_invalid = Enum.YLeaf(0, "stream-invalid")
stream_unqualified = Enum.YLeaf(1, "stream-unqualified")
stream_available = Enum.YLeaf(2, "stream-available")
stream_available_acquiring = Enum.YLeaf(3, "stream-available-acquiring")
stream_locked = Enum.YLeaf(4, "stream-locked")
stream_holdover = Enum.YLeaf(5, "stream-holdover")
stream_freerun = Enum.YLeaf(6, "stream-freerun")
stream_failed = Enum.YLeaf(7, "stream-failed")
stream_unmonitored = Enum.YLeaf(8, "stream-unmonitored")
stream_error = Enum.YLeaf(9, "stream-error")
class FsyncSource(Enum):
"""
FsyncSource (Enum Class)
Fsync source
.. data:: ethernet = 1
An ethernet interface
.. data:: sonet = 2
A SONET interface
.. data:: clock = 3
A clock interface
.. data:: internal = 4
An internal clock
.. data:: ptp = 5
A PTP clock
.. data:: satellite_access = 6
A satellite access interface clock
.. data:: ntp = 7
An NTP clock
"""
ethernet = Enum.YLeaf(1, "ethernet")
sonet = Enum.YLeaf(2, "sonet")
clock = Enum.YLeaf(3, "clock")
internal = Enum.YLeaf(4, "internal")
ptp = Enum.YLeaf(5, "ptp")
satellite_access = Enum.YLeaf(6, "satellite-access")
ntp = Enum.YLeaf(7, "ntp")
class FsyncStream(Enum):
"""
FsyncStream (Enum Class)
Fsync stream
.. data:: local = 1
Stream input from a local source
.. data:: selection_point = 2
Stream input from a selection point on a remote
node
"""
local = Enum.YLeaf(1, "local")
selection_point = Enum.YLeaf(2, "selection-point")
class ImStateEnum(Enum):
"""
ImStateEnum (Enum Class)
Im state enum
.. data:: im_state_not_ready = 0
im state not ready
.. data:: im_state_admin_down = 1
im state admin down
.. data:: im_state_down = 2
im state down
.. data:: im_state_up = 3
im state up
.. data:: im_state_shutdown = 4
im state shutdown
.. data:: im_state_err_disable = 5
im state err disable
.. data:: im_state_down_immediate = 6
im state down immediate
.. data:: im_state_down_immediate_admin = 7
im state down immediate admin
.. data:: im_state_down_graceful = 8
im state down graceful
.. data:: im_state_begin_shutdown = 9
im state begin shutdown
.. data:: im_state_end_shutdown = 10
im state end shutdown
.. data:: im_state_begin_error_disable = 11
im state begin error disable
.. data:: im_state_end_error_disable = 12
im state end error disable
.. data:: im_state_begin_down_graceful = 13
im state begin down graceful
.. data:: im_state_reset = 14
im state reset
.. data:: im_state_operational = 15
im state operational
.. data:: im_state_not_operational = 16
im state not operational
.. data:: im_state_unknown = 17
im state unknown
.. data:: im_state_last = 18
im state last
"""
im_state_not_ready = Enum.YLeaf(0, "im-state-not-ready")
im_state_admin_down = Enum.YLeaf(1, "im-state-admin-down")
im_state_down = Enum.YLeaf(2, "im-state-down")
im_state_up = Enum.YLeaf(3, "im-state-up")
im_state_shutdown = Enum.YLeaf(4, "im-state-shutdown")
im_state_err_disable = Enum.YLeaf(5, "im-state-err-disable")
im_state_down_immediate = Enum.YLeaf(6, "im-state-down-immediate")
im_state_down_immediate_admin = Enum.YLeaf(7, "im-state-down-immediate-admin")
im_state_down_graceful = Enum.YLeaf(8, "im-state-down-graceful")
im_state_begin_shutdown = Enum.YLeaf(9, "im-state-begin-shutdown")
im_state_end_shutdown = Enum.YLeaf(10, "im-state-end-shutdown")
im_state_begin_error_disable = Enum.YLeaf(11, "im-state-begin-error-disable")
im_state_end_error_disable = Enum.YLeaf(12, "im-state-end-error-disable")
im_state_begin_down_graceful = Enum.YLeaf(13, "im-state-begin-down-graceful")
im_state_reset = Enum.YLeaf(14, "im-state-reset")
im_state_operational = Enum.YLeaf(15, "im-state-operational")
im_state_not_operational = Enum.YLeaf(16, "im-state-not-operational")
im_state_unknown = Enum.YLeaf(17, "im-state-unknown")
im_state_last = Enum.YLeaf(18, "im-state-last")
class FrequencySynchronization(Entity):
"""
Frequency Synchronization operational data
.. attribute:: global_nodes
Table for global node\-specific operational data
**type**\: :py:class:`GlobalNodes <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes>`
.. attribute:: global_interfaces
Table for global interface operational data
**type**\: :py:class:`GlobalInterfaces <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalInterfaces>`
.. attribute:: summary
Summary operational data
**type**\: :py:class:`Summary <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Summary>`
.. attribute:: interface_datas
Table for interface operational data
**type**\: :py:class:`InterfaceDatas <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.InterfaceDatas>`
.. attribute:: nodes
Table for node\-specific operational data
**type**\: :py:class:`Nodes <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization, self).__init__()
self._top_entity = None
self.yang_name = "frequency-synchronization"
self.yang_parent_name = "Cisco-IOS-XR-freqsync-oper"
self.is_top_level_class = True
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("global-nodes", ("global_nodes", FrequencySynchronization.GlobalNodes)), ("global-interfaces", ("global_interfaces", FrequencySynchronization.GlobalInterfaces)), ("summary", ("summary", FrequencySynchronization.Summary)), ("interface-datas", ("interface_datas", FrequencySynchronization.InterfaceDatas)), ("nodes", ("nodes", FrequencySynchronization.Nodes))])
self._leafs = OrderedDict()
self.global_nodes = FrequencySynchronization.GlobalNodes()
self.global_nodes.parent = self
self._children_name_map["global_nodes"] = "global-nodes"
self.global_interfaces = FrequencySynchronization.GlobalInterfaces()
self.global_interfaces.parent = self
self._children_name_map["global_interfaces"] = "global-interfaces"
self.summary = FrequencySynchronization.Summary()
self.summary.parent = self
self._children_name_map["summary"] = "summary"
self.interface_datas = FrequencySynchronization.InterfaceDatas()
self.interface_datas.parent = self
self._children_name_map["interface_datas"] = "interface-datas"
self.nodes = FrequencySynchronization.Nodes()
self.nodes.parent = self
self._children_name_map["nodes"] = "nodes"
self._segment_path = lambda: "Cisco-IOS-XR-freqsync-oper:frequency-synchronization"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization, [], name, value)
class GlobalNodes(Entity):
"""
Table for global node\-specific operational data
.. attribute:: global_node
Global node\-specific data for a particular node
**type**\: list of :py:class:`GlobalNode <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes, self).__init__()
self.yang_name = "global-nodes"
self.yang_parent_name = "frequency-synchronization"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("global-node", ("global_node", FrequencySynchronization.GlobalNodes.GlobalNode))])
self._leafs = OrderedDict()
self.global_node = YList(self)
self._segment_path = lambda: "global-nodes"
self._absolute_path = lambda: "Cisco-IOS-XR-freqsync-oper:frequency-synchronization/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes, [], name, value)
class GlobalNode(Entity):
"""
Global node\-specific data for a particular node
.. attribute:: node (key)
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: clock_interface_selection_back_traces
Selection backtrace operational data for clock\-interfaces
**type**\: :py:class:`ClockInterfaceSelectionBackTraces <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces>`
.. attribute:: clock_interface_selection_forward_traces
Selection forwardtrace operational data for clock\-interfaces
**type**\: :py:class:`ClockInterfaceSelectionForwardTraces <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces>`
.. attribute:: time_of_day_back_trace
Selection backtrace operational data for time\-of\-day on a particular node
**type**\: :py:class:`TimeOfDayBackTrace <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace>`
.. attribute:: ntp_selection_forward_trace
Selection forwardtrace operational data for a NTP clock
**type**\: :py:class:`NtpSelectionForwardTrace <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace>`
.. attribute:: ptp_selection_forward_trace
Selection forwardtrace operational data for a PTP clock
**type**\: :py:class:`PtpSelectionForwardTrace <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode, self).__init__()
self.yang_name = "global-node"
self.yang_parent_name = "global-nodes"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = ['node']
self._child_classes = OrderedDict([("clock-interface-selection-back-traces", ("clock_interface_selection_back_traces", FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces)), ("clock-interface-selection-forward-traces", ("clock_interface_selection_forward_traces", FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces)), ("time-of-day-back-trace", ("time_of_day_back_trace", FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace)), ("ntp-selection-forward-trace", ("ntp_selection_forward_trace", FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace)), ("ptp-selection-forward-trace", ("ptp_selection_forward_trace", FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace))])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
])
self.node = None
self.clock_interface_selection_back_traces = FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces()
self.clock_interface_selection_back_traces.parent = self
self._children_name_map["clock_interface_selection_back_traces"] = "clock-interface-selection-back-traces"
self.clock_interface_selection_forward_traces = FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces()
self.clock_interface_selection_forward_traces.parent = self
self._children_name_map["clock_interface_selection_forward_traces"] = "clock-interface-selection-forward-traces"
self.time_of_day_back_trace = FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace()
self.time_of_day_back_trace.parent = self
self._children_name_map["time_of_day_back_trace"] = "time-of-day-back-trace"
self.ntp_selection_forward_trace = FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace()
self.ntp_selection_forward_trace.parent = self
self._children_name_map["ntp_selection_forward_trace"] = "ntp-selection-forward-trace"
self.ptp_selection_forward_trace = FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace()
self.ptp_selection_forward_trace.parent = self
self._children_name_map["ptp_selection_forward_trace"] = "ptp-selection-forward-trace"
self._segment_path = lambda: "global-node" + "[node='" + str(self.node) + "']"
self._absolute_path = lambda: "Cisco-IOS-XR-freqsync-oper:frequency-synchronization/global-nodes/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode, ['node'], name, value)
class ClockInterfaceSelectionBackTraces(Entity):
"""
Selection backtrace operational data for
clock\-interfaces
.. attribute:: clock_interface_selection_back_trace
Selection backtrace operational data for a particular clock\-interface or GNSS receiver
**type**\: list of :py:class:`ClockInterfaceSelectionBackTrace <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces.ClockInterfaceSelectionBackTrace>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces, self).__init__()
self.yang_name = "clock-interface-selection-back-traces"
self.yang_parent_name = "global-node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("clock-interface-selection-back-trace", ("clock_interface_selection_back_trace", FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces.ClockInterfaceSelectionBackTrace))])
self._leafs = OrderedDict()
self.clock_interface_selection_back_trace = YList(self)
self._segment_path = lambda: "clock-interface-selection-back-traces"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces, [], name, value)
class ClockInterfaceSelectionBackTrace(Entity):
"""
Selection backtrace operational data for a
particular clock\-interface or GNSS receiver
.. attribute:: clock_type (key)
Clock type
**type**\: :py:class:`FsyncClock <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_datatypes.FsyncClock>`
.. attribute:: id (key)
Clock ID (port number for clock interfaces, receiver number for GNSS receivers
**type**\: int
**range:** 0..4294967295
.. attribute:: selected_source
Source which has been selected for output
**type**\: :py:class:`SelectedSource <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces.ClockInterfaceSelectionBackTrace.SelectedSource>`
.. attribute:: selection_point
List of selection points in the backtrace
**type**\: list of :py:class:`SelectionPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces.ClockInterfaceSelectionBackTrace.SelectionPoint>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces.ClockInterfaceSelectionBackTrace, self).__init__()
self.yang_name = "clock-interface-selection-back-trace"
self.yang_parent_name = "clock-interface-selection-back-traces"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = ['clock_type','id']
self._child_classes = OrderedDict([("selected-source", ("selected_source", FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces.ClockInterfaceSelectionBackTrace.SelectedSource)), ("selection-point", ("selection_point", FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces.ClockInterfaceSelectionBackTrace.SelectionPoint))])
self._leafs = OrderedDict([
('clock_type', (YLeaf(YType.enumeration, 'clock-type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_datatypes', 'FsyncClock', '')])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
])
self.clock_type = None
self.id = None
self.selected_source = FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces.ClockInterfaceSelectionBackTrace.SelectedSource()
self.selected_source.parent = self
self._children_name_map["selected_source"] = "selected-source"
self.selection_point = YList(self)
self._segment_path = lambda: "clock-interface-selection-back-trace" + "[clock-type='" + str(self.clock_type) + "']" + "[id='" + str(self.id) + "']"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces.ClockInterfaceSelectionBackTrace, ['clock_type', 'id'], name, value)
class SelectedSource(Entity):
"""
Source which has been selected for output
.. attribute:: clock_id
Clock ID
**type**\: :py:class:`ClockId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces.ClockInterfaceSelectionBackTrace.SelectedSource.ClockId>`
.. attribute:: gnss_receiver_id
GNSS Receiver ID
**type**\: :py:class:`GnssReceiverId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces.ClockInterfaceSelectionBackTrace.SelectedSource.GnssReceiverId>`
.. attribute:: source_class
SourceClass
**type**\: :py:class:`FsyncBagSourceClass <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagSourceClass>`
.. attribute:: ethernet_interface
Ethernet interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: sonet_interface
SONET interfaces
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: node
Internal Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: ptp_node
PTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: satellite_access_interface
Satellite Access Interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: ntp_node
NTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces.ClockInterfaceSelectionBackTrace.SelectedSource, self).__init__()
self.yang_name = "selected-source"
self.yang_parent_name = "clock-interface-selection-back-trace"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("clock-id", ("clock_id", FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces.ClockInterfaceSelectionBackTrace.SelectedSource.ClockId)), ("gnss-receiver-id", ("gnss_receiver_id", FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces.ClockInterfaceSelectionBackTrace.SelectedSource.GnssReceiverId))])
self._leafs = OrderedDict([
('source_class', (YLeaf(YType.enumeration, 'source-class'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagSourceClass', '')])),
('ethernet_interface', (YLeaf(YType.str, 'ethernet-interface'), ['str'])),
('sonet_interface', (YLeaf(YType.str, 'sonet-interface'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
('ptp_node', (YLeaf(YType.str, 'ptp-node'), ['str'])),
('satellite_access_interface', (YLeaf(YType.str, 'satellite-access-interface'), ['str'])),
('ntp_node', (YLeaf(YType.str, 'ntp-node'), ['str'])),
])
self.source_class = None
self.ethernet_interface = None
self.sonet_interface = None
self.node = None
self.ptp_node = None
self.satellite_access_interface = None
self.ntp_node = None
self.clock_id = FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces.ClockInterfaceSelectionBackTrace.SelectedSource.ClockId()
self.clock_id.parent = self
self._children_name_map["clock_id"] = "clock-id"
self.gnss_receiver_id = FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces.ClockInterfaceSelectionBackTrace.SelectedSource.GnssReceiverId()
self.gnss_receiver_id.parent = self
self._children_name_map["gnss_receiver_id"] = "gnss-receiver-id"
self._segment_path = lambda: "selected-source"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces.ClockInterfaceSelectionBackTrace.SelectedSource, [u'source_class', u'ethernet_interface', u'sonet_interface', u'node', u'ptp_node', u'satellite_access_interface', u'ntp_node'], name, value)
class ClockId(Entity):
"""
Clock ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces.ClockInterfaceSelectionBackTrace.SelectedSource.ClockId, self).__init__()
self.yang_name = "clock-id"
self.yang_parent_name = "selected-source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "clock-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces.ClockInterfaceSelectionBackTrace.SelectedSource.ClockId, [u'node', u'id', u'clock_name'], name, value)
class GnssReceiverId(Entity):
"""
GNSS Receiver ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces.ClockInterfaceSelectionBackTrace.SelectedSource.GnssReceiverId, self).__init__()
self.yang_name = "gnss-receiver-id"
self.yang_parent_name = "selected-source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "gnss-receiver-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces.ClockInterfaceSelectionBackTrace.SelectedSource.GnssReceiverId, [u'node', u'id', u'clock_name'], name, value)
class SelectionPoint(Entity):
"""
List of selection points in the backtrace
.. attribute:: selection_point_type
Selection point type
**type**\: int
**range:** 0..255
.. attribute:: selection_point_description
Selection point descrption
**type**\: str
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces.ClockInterfaceSelectionBackTrace.SelectionPoint, self).__init__()
self.yang_name = "selection-point"
self.yang_parent_name = "clock-interface-selection-back-trace"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('selection_point_type', (YLeaf(YType.uint8, 'selection-point-type'), ['int'])),
('selection_point_description', (YLeaf(YType.str, 'selection-point-description'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
])
self.selection_point_type = None
self.selection_point_description = None
self.node = None
self._segment_path = lambda: "selection-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionBackTraces.ClockInterfaceSelectionBackTrace.SelectionPoint, [u'selection_point_type', u'selection_point_description', u'node'], name, value)
class ClockInterfaceSelectionForwardTraces(Entity):
"""
Selection forwardtrace operational data for
clock\-interfaces
.. attribute:: clock_interface_selection_forward_trace
Selection forwardtrace operational data for a particular clock\-interface
**type**\: list of :py:class:`ClockInterfaceSelectionForwardTrace <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces, self).__init__()
self.yang_name = "clock-interface-selection-forward-traces"
self.yang_parent_name = "global-node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("clock-interface-selection-forward-trace", ("clock_interface_selection_forward_trace", FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace))])
self._leafs = OrderedDict()
self.clock_interface_selection_forward_trace = YList(self)
self._segment_path = lambda: "clock-interface-selection-forward-traces"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces, [], name, value)
class ClockInterfaceSelectionForwardTrace(Entity):
"""
Selection forwardtrace operational data for a
particular clock\-interface
.. attribute:: clock_type (key)
Clock type
**type**\: :py:class:`FsyncClock <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_datatypes.FsyncClock>`
.. attribute:: port (key)
Clock port
**type**\: int
**range:** 0..4294967295
.. attribute:: forward_trace
Selection ForwardTrace
**type**\: list of :py:class:`ForwardTrace <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace, self).__init__()
self.yang_name = "clock-interface-selection-forward-trace"
self.yang_parent_name = "clock-interface-selection-forward-traces"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = ['clock_type','port']
self._child_classes = OrderedDict([("forward-trace", ("forward_trace", FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace))])
self._leafs = OrderedDict([
('clock_type', (YLeaf(YType.enumeration, 'clock-type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_datatypes', 'FsyncClock', '')])),
('port', (YLeaf(YType.uint32, 'port'), ['int'])),
])
self.clock_type = None
self.port = None
self.forward_trace = YList(self)
self._segment_path = lambda: "clock-interface-selection-forward-trace" + "[clock-type='" + str(self.clock_type) + "']" + "[port='" + str(self.port) + "']"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace, ['clock_type', 'port'], name, value)
class ForwardTrace(Entity):
"""
Selection ForwardTrace
.. attribute:: forward_trace_node
The source or selection point at this point in the forwardtrace
**type**\: :py:class:`ForwardTraceNode <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace, self).__init__()
self.yang_name = "forward-trace"
self.yang_parent_name = "clock-interface-selection-forward-trace"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("forward-trace-node", ("forward_trace_node", FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode))])
self._leafs = OrderedDict()
self.forward_trace_node = FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode()
self.forward_trace_node.parent = self
self._children_name_map["forward_trace_node"] = "forward-trace-node"
self._segment_path = lambda: "forward-trace"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace, [], name, value)
class ForwardTraceNode(Entity):
"""
The source or selection point at this point in
the forwardtrace
.. attribute:: selection_point
Selection Point
**type**\: :py:class:`SelectionPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.SelectionPoint>`
.. attribute:: source
Timing Source
**type**\: :py:class:`Source <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source>`
.. attribute:: node_type
NodeType
**type**\: :py:class:`FsyncBagForwardtraceNode <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagForwardtraceNode>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode, self).__init__()
self.yang_name = "forward-trace-node"
self.yang_parent_name = "forward-trace"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("selection-point", ("selection_point", FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.SelectionPoint)), ("source", ("source", FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source))])
self._leafs = OrderedDict([
('node_type', (YLeaf(YType.enumeration, 'node-type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagForwardtraceNode', '')])),
])
self.node_type = None
self.selection_point = FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.SelectionPoint()
self.selection_point.parent = self
self._children_name_map["selection_point"] = "selection-point"
self.source = FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source()
self.source.parent = self
self._children_name_map["source"] = "source"
self._segment_path = lambda: "forward-trace-node"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode, [u'node_type'], name, value)
class SelectionPoint(Entity):
"""
Selection Point
.. attribute:: selection_point_type
Selection point type
**type**\: int
**range:** 0..255
.. attribute:: selection_point_description
Selection point descrption
**type**\: str
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.SelectionPoint, self).__init__()
self.yang_name = "selection-point"
self.yang_parent_name = "forward-trace-node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('selection_point_type', (YLeaf(YType.uint8, 'selection-point-type'), ['int'])),
('selection_point_description', (YLeaf(YType.str, 'selection-point-description'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
])
self.selection_point_type = None
self.selection_point_description = None
self.node = None
self._segment_path = lambda: "selection-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.SelectionPoint, [u'selection_point_type', u'selection_point_description', u'node'], name, value)
class Source(Entity):
"""
Timing Source
.. attribute:: clock_id
Clock ID
**type**\: :py:class:`ClockId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.ClockId>`
.. attribute:: gnss_receiver_id
GNSS Receiver ID
**type**\: :py:class:`GnssReceiverId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.GnssReceiverId>`
.. attribute:: source_class
SourceClass
**type**\: :py:class:`FsyncBagSourceClass <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagSourceClass>`
.. attribute:: ethernet_interface
Ethernet interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: sonet_interface
SONET interfaces
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: node
Internal Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: ptp_node
PTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: satellite_access_interface
Satellite Access Interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: ntp_node
NTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source, self).__init__()
self.yang_name = "source"
self.yang_parent_name = "forward-trace-node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("clock-id", ("clock_id", FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.ClockId)), ("gnss-receiver-id", ("gnss_receiver_id", FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.GnssReceiverId))])
self._leafs = OrderedDict([
('source_class', (YLeaf(YType.enumeration, 'source-class'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagSourceClass', '')])),
('ethernet_interface', (YLeaf(YType.str, 'ethernet-interface'), ['str'])),
('sonet_interface', (YLeaf(YType.str, 'sonet-interface'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
('ptp_node', (YLeaf(YType.str, 'ptp-node'), ['str'])),
('satellite_access_interface', (YLeaf(YType.str, 'satellite-access-interface'), ['str'])),
('ntp_node', (YLeaf(YType.str, 'ntp-node'), ['str'])),
])
self.source_class = None
self.ethernet_interface = None
self.sonet_interface = None
self.node = None
self.ptp_node = None
self.satellite_access_interface = None
self.ntp_node = None
self.clock_id = FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.ClockId()
self.clock_id.parent = self
self._children_name_map["clock_id"] = "clock-id"
self.gnss_receiver_id = FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.GnssReceiverId()
self.gnss_receiver_id.parent = self
self._children_name_map["gnss_receiver_id"] = "gnss-receiver-id"
self._segment_path = lambda: "source"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source, [u'source_class', u'ethernet_interface', u'sonet_interface', u'node', u'ptp_node', u'satellite_access_interface', u'ntp_node'], name, value)
class ClockId(Entity):
"""
Clock ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.ClockId, self).__init__()
self.yang_name = "clock-id"
self.yang_parent_name = "source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "clock-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.ClockId, [u'node', u'id', u'clock_name'], name, value)
class GnssReceiverId(Entity):
"""
GNSS Receiver ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.GnssReceiverId, self).__init__()
self.yang_name = "gnss-receiver-id"
self.yang_parent_name = "source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "gnss-receiver-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.ClockInterfaceSelectionForwardTraces.ClockInterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.GnssReceiverId, [u'node', u'id', u'clock_name'], name, value)
class TimeOfDayBackTrace(Entity):
"""
Selection backtrace operational data for
time\-of\-day on a particular node
.. attribute:: selected_source
Source which has been selected for output
**type**\: :py:class:`SelectedSource <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace.SelectedSource>`
.. attribute:: selection_point
List of selection points in the backtrace
**type**\: list of :py:class:`SelectionPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace.SelectionPoint>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace, self).__init__()
self.yang_name = "time-of-day-back-trace"
self.yang_parent_name = "global-node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("selected-source", ("selected_source", FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace.SelectedSource)), ("selection-point", ("selection_point", FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace.SelectionPoint))])
self._leafs = OrderedDict()
self.selected_source = FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace.SelectedSource()
self.selected_source.parent = self
self._children_name_map["selected_source"] = "selected-source"
self.selection_point = YList(self)
self._segment_path = lambda: "time-of-day-back-trace"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace, [], name, value)
class SelectedSource(Entity):
"""
Source which has been selected for output
.. attribute:: clock_id
Clock ID
**type**\: :py:class:`ClockId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace.SelectedSource.ClockId>`
.. attribute:: gnss_receiver_id
GNSS Receiver ID
**type**\: :py:class:`GnssReceiverId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace.SelectedSource.GnssReceiverId>`
.. attribute:: source_class
SourceClass
**type**\: :py:class:`FsyncBagSourceClass <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagSourceClass>`
.. attribute:: ethernet_interface
Ethernet interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: sonet_interface
SONET interfaces
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: node
Internal Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: ptp_node
PTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: satellite_access_interface
Satellite Access Interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: ntp_node
NTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace.SelectedSource, self).__init__()
self.yang_name = "selected-source"
self.yang_parent_name = "time-of-day-back-trace"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("clock-id", ("clock_id", FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace.SelectedSource.ClockId)), ("gnss-receiver-id", ("gnss_receiver_id", FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace.SelectedSource.GnssReceiverId))])
self._leafs = OrderedDict([
('source_class', (YLeaf(YType.enumeration, 'source-class'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagSourceClass', '')])),
('ethernet_interface', (YLeaf(YType.str, 'ethernet-interface'), ['str'])),
('sonet_interface', (YLeaf(YType.str, 'sonet-interface'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
('ptp_node', (YLeaf(YType.str, 'ptp-node'), ['str'])),
('satellite_access_interface', (YLeaf(YType.str, 'satellite-access-interface'), ['str'])),
('ntp_node', (YLeaf(YType.str, 'ntp-node'), ['str'])),
])
self.source_class = None
self.ethernet_interface = None
self.sonet_interface = None
self.node = None
self.ptp_node = None
self.satellite_access_interface = None
self.ntp_node = None
self.clock_id = FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace.SelectedSource.ClockId()
self.clock_id.parent = self
self._children_name_map["clock_id"] = "clock-id"
self.gnss_receiver_id = FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace.SelectedSource.GnssReceiverId()
self.gnss_receiver_id.parent = self
self._children_name_map["gnss_receiver_id"] = "gnss-receiver-id"
self._segment_path = lambda: "selected-source"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace.SelectedSource, [u'source_class', u'ethernet_interface', u'sonet_interface', u'node', u'ptp_node', u'satellite_access_interface', u'ntp_node'], name, value)
class ClockId(Entity):
"""
Clock ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace.SelectedSource.ClockId, self).__init__()
self.yang_name = "clock-id"
self.yang_parent_name = "selected-source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "clock-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace.SelectedSource.ClockId, [u'node', u'id', u'clock_name'], name, value)
class GnssReceiverId(Entity):
"""
GNSS Receiver ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace.SelectedSource.GnssReceiverId, self).__init__()
self.yang_name = "gnss-receiver-id"
self.yang_parent_name = "selected-source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "gnss-receiver-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace.SelectedSource.GnssReceiverId, [u'node', u'id', u'clock_name'], name, value)
class SelectionPoint(Entity):
"""
List of selection points in the backtrace
.. attribute:: selection_point_type
Selection point type
**type**\: int
**range:** 0..255
.. attribute:: selection_point_description
Selection point descrption
**type**\: str
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace.SelectionPoint, self).__init__()
self.yang_name = "selection-point"
self.yang_parent_name = "time-of-day-back-trace"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('selection_point_type', (YLeaf(YType.uint8, 'selection-point-type'), ['int'])),
('selection_point_description', (YLeaf(YType.str, 'selection-point-description'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
])
self.selection_point_type = None
self.selection_point_description = None
self.node = None
self._segment_path = lambda: "selection-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.TimeOfDayBackTrace.SelectionPoint, [u'selection_point_type', u'selection_point_description', u'node'], name, value)
class NtpSelectionForwardTrace(Entity):
"""
Selection forwardtrace operational data for a
NTP clock
.. attribute:: forward_trace
Selection ForwardTrace
**type**\: list of :py:class:`ForwardTrace <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace, self).__init__()
self.yang_name = "ntp-selection-forward-trace"
self.yang_parent_name = "global-node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("forward-trace", ("forward_trace", FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace))])
self._leafs = OrderedDict()
self.forward_trace = YList(self)
self._segment_path = lambda: "ntp-selection-forward-trace"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace, [], name, value)
class ForwardTrace(Entity):
"""
Selection ForwardTrace
.. attribute:: forward_trace_node
The source or selection point at this point in the forwardtrace
**type**\: :py:class:`ForwardTraceNode <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace, self).__init__()
self.yang_name = "forward-trace"
self.yang_parent_name = "ntp-selection-forward-trace"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("forward-trace-node", ("forward_trace_node", FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode))])
self._leafs = OrderedDict()
self.forward_trace_node = FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode()
self.forward_trace_node.parent = self
self._children_name_map["forward_trace_node"] = "forward-trace-node"
self._segment_path = lambda: "forward-trace"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace, [], name, value)
class ForwardTraceNode(Entity):
"""
The source or selection point at this point in
the forwardtrace
.. attribute:: selection_point
Selection Point
**type**\: :py:class:`SelectionPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.SelectionPoint>`
.. attribute:: source
Timing Source
**type**\: :py:class:`Source <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source>`
.. attribute:: node_type
NodeType
**type**\: :py:class:`FsyncBagForwardtraceNode <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagForwardtraceNode>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode, self).__init__()
self.yang_name = "forward-trace-node"
self.yang_parent_name = "forward-trace"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("selection-point", ("selection_point", FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.SelectionPoint)), ("source", ("source", FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source))])
self._leafs = OrderedDict([
('node_type', (YLeaf(YType.enumeration, 'node-type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagForwardtraceNode', '')])),
])
self.node_type = None
self.selection_point = FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.SelectionPoint()
self.selection_point.parent = self
self._children_name_map["selection_point"] = "selection-point"
self.source = FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source()
self.source.parent = self
self._children_name_map["source"] = "source"
self._segment_path = lambda: "forward-trace-node"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode, [u'node_type'], name, value)
class SelectionPoint(Entity):
"""
Selection Point
.. attribute:: selection_point_type
Selection point type
**type**\: int
**range:** 0..255
.. attribute:: selection_point_description
Selection point descrption
**type**\: str
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.SelectionPoint, self).__init__()
self.yang_name = "selection-point"
self.yang_parent_name = "forward-trace-node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('selection_point_type', (YLeaf(YType.uint8, 'selection-point-type'), ['int'])),
('selection_point_description', (YLeaf(YType.str, 'selection-point-description'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
])
self.selection_point_type = None
self.selection_point_description = None
self.node = None
self._segment_path = lambda: "selection-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.SelectionPoint, [u'selection_point_type', u'selection_point_description', u'node'], name, value)
class Source(Entity):
"""
Timing Source
.. attribute:: clock_id
Clock ID
**type**\: :py:class:`ClockId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.ClockId>`
.. attribute:: gnss_receiver_id
GNSS Receiver ID
**type**\: :py:class:`GnssReceiverId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.GnssReceiverId>`
.. attribute:: source_class
SourceClass
**type**\: :py:class:`FsyncBagSourceClass <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagSourceClass>`
.. attribute:: ethernet_interface
Ethernet interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: sonet_interface
SONET interfaces
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: node
Internal Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: ptp_node
PTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: satellite_access_interface
Satellite Access Interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: ntp_node
NTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source, self).__init__()
self.yang_name = "source"
self.yang_parent_name = "forward-trace-node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("clock-id", ("clock_id", FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.ClockId)), ("gnss-receiver-id", ("gnss_receiver_id", FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.GnssReceiverId))])
self._leafs = OrderedDict([
('source_class', (YLeaf(YType.enumeration, 'source-class'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagSourceClass', '')])),
('ethernet_interface', (YLeaf(YType.str, 'ethernet-interface'), ['str'])),
('sonet_interface', (YLeaf(YType.str, 'sonet-interface'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
('ptp_node', (YLeaf(YType.str, 'ptp-node'), ['str'])),
('satellite_access_interface', (YLeaf(YType.str, 'satellite-access-interface'), ['str'])),
('ntp_node', (YLeaf(YType.str, 'ntp-node'), ['str'])),
])
self.source_class = None
self.ethernet_interface = None
self.sonet_interface = None
self.node = None
self.ptp_node = None
self.satellite_access_interface = None
self.ntp_node = None
self.clock_id = FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.ClockId()
self.clock_id.parent = self
self._children_name_map["clock_id"] = "clock-id"
self.gnss_receiver_id = FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.GnssReceiverId()
self.gnss_receiver_id.parent = self
self._children_name_map["gnss_receiver_id"] = "gnss-receiver-id"
self._segment_path = lambda: "source"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source, [u'source_class', u'ethernet_interface', u'sonet_interface', u'node', u'ptp_node', u'satellite_access_interface', u'ntp_node'], name, value)
class ClockId(Entity):
"""
Clock ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.ClockId, self).__init__()
self.yang_name = "clock-id"
self.yang_parent_name = "source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "clock-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.ClockId, [u'node', u'id', u'clock_name'], name, value)
class GnssReceiverId(Entity):
"""
GNSS Receiver ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.GnssReceiverId, self).__init__()
self.yang_name = "gnss-receiver-id"
self.yang_parent_name = "source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "gnss-receiver-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.NtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.GnssReceiverId, [u'node', u'id', u'clock_name'], name, value)
class PtpSelectionForwardTrace(Entity):
"""
Selection forwardtrace operational data for a
PTP clock
.. attribute:: forward_trace
Selection ForwardTrace
**type**\: list of :py:class:`ForwardTrace <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace, self).__init__()
self.yang_name = "ptp-selection-forward-trace"
self.yang_parent_name = "global-node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("forward-trace", ("forward_trace", FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace))])
self._leafs = OrderedDict()
self.forward_trace = YList(self)
self._segment_path = lambda: "ptp-selection-forward-trace"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace, [], name, value)
class ForwardTrace(Entity):
"""
Selection ForwardTrace
.. attribute:: forward_trace_node
The source or selection point at this point in the forwardtrace
**type**\: :py:class:`ForwardTraceNode <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace, self).__init__()
self.yang_name = "forward-trace"
self.yang_parent_name = "ptp-selection-forward-trace"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("forward-trace-node", ("forward_trace_node", FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode))])
self._leafs = OrderedDict()
self.forward_trace_node = FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode()
self.forward_trace_node.parent = self
self._children_name_map["forward_trace_node"] = "forward-trace-node"
self._segment_path = lambda: "forward-trace"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace, [], name, value)
class ForwardTraceNode(Entity):
"""
The source or selection point at this point in
the forwardtrace
.. attribute:: selection_point
Selection Point
**type**\: :py:class:`SelectionPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.SelectionPoint>`
.. attribute:: source
Timing Source
**type**\: :py:class:`Source <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source>`
.. attribute:: node_type
NodeType
**type**\: :py:class:`FsyncBagForwardtraceNode <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagForwardtraceNode>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode, self).__init__()
self.yang_name = "forward-trace-node"
self.yang_parent_name = "forward-trace"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("selection-point", ("selection_point", FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.SelectionPoint)), ("source", ("source", FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source))])
self._leafs = OrderedDict([
('node_type', (YLeaf(YType.enumeration, 'node-type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagForwardtraceNode', '')])),
])
self.node_type = None
self.selection_point = FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.SelectionPoint()
self.selection_point.parent = self
self._children_name_map["selection_point"] = "selection-point"
self.source = FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source()
self.source.parent = self
self._children_name_map["source"] = "source"
self._segment_path = lambda: "forward-trace-node"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode, [u'node_type'], name, value)
class SelectionPoint(Entity):
"""
Selection Point
.. attribute:: selection_point_type
Selection point type
**type**\: int
**range:** 0..255
.. attribute:: selection_point_description
Selection point descrption
**type**\: str
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.SelectionPoint, self).__init__()
self.yang_name = "selection-point"
self.yang_parent_name = "forward-trace-node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('selection_point_type', (YLeaf(YType.uint8, 'selection-point-type'), ['int'])),
('selection_point_description', (YLeaf(YType.str, 'selection-point-description'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
])
self.selection_point_type = None
self.selection_point_description = None
self.node = None
self._segment_path = lambda: "selection-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.SelectionPoint, [u'selection_point_type', u'selection_point_description', u'node'], name, value)
class Source(Entity):
"""
Timing Source
.. attribute:: clock_id
Clock ID
**type**\: :py:class:`ClockId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.ClockId>`
.. attribute:: gnss_receiver_id
GNSS Receiver ID
**type**\: :py:class:`GnssReceiverId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.GnssReceiverId>`
.. attribute:: source_class
SourceClass
**type**\: :py:class:`FsyncBagSourceClass <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagSourceClass>`
.. attribute:: ethernet_interface
Ethernet interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: sonet_interface
SONET interfaces
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: node
Internal Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: ptp_node
PTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: satellite_access_interface
Satellite Access Interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: ntp_node
NTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source, self).__init__()
self.yang_name = "source"
self.yang_parent_name = "forward-trace-node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("clock-id", ("clock_id", FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.ClockId)), ("gnss-receiver-id", ("gnss_receiver_id", FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.GnssReceiverId))])
self._leafs = OrderedDict([
('source_class', (YLeaf(YType.enumeration, 'source-class'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagSourceClass', '')])),
('ethernet_interface', (YLeaf(YType.str, 'ethernet-interface'), ['str'])),
('sonet_interface', (YLeaf(YType.str, 'sonet-interface'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
('ptp_node', (YLeaf(YType.str, 'ptp-node'), ['str'])),
('satellite_access_interface', (YLeaf(YType.str, 'satellite-access-interface'), ['str'])),
('ntp_node', (YLeaf(YType.str, 'ntp-node'), ['str'])),
])
self.source_class = None
self.ethernet_interface = None
self.sonet_interface = None
self.node = None
self.ptp_node = None
self.satellite_access_interface = None
self.ntp_node = None
self.clock_id = FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.ClockId()
self.clock_id.parent = self
self._children_name_map["clock_id"] = "clock-id"
self.gnss_receiver_id = FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.GnssReceiverId()
self.gnss_receiver_id.parent = self
self._children_name_map["gnss_receiver_id"] = "gnss-receiver-id"
self._segment_path = lambda: "source"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source, [u'source_class', u'ethernet_interface', u'sonet_interface', u'node', u'ptp_node', u'satellite_access_interface', u'ntp_node'], name, value)
class ClockId(Entity):
"""
Clock ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.ClockId, self).__init__()
self.yang_name = "clock-id"
self.yang_parent_name = "source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "clock-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.ClockId, [u'node', u'id', u'clock_name'], name, value)
class GnssReceiverId(Entity):
"""
GNSS Receiver ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.GnssReceiverId, self).__init__()
self.yang_name = "gnss-receiver-id"
self.yang_parent_name = "source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "gnss-receiver-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalNodes.GlobalNode.PtpSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.GnssReceiverId, [u'node', u'id', u'clock_name'], name, value)
class GlobalInterfaces(Entity):
"""
Table for global interface operational data
.. attribute:: global_interface
Global interface information for a particular interface
**type**\: list of :py:class:`GlobalInterface <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalInterfaces.GlobalInterface>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalInterfaces, self).__init__()
self.yang_name = "global-interfaces"
self.yang_parent_name = "frequency-synchronization"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("global-interface", ("global_interface", FrequencySynchronization.GlobalInterfaces.GlobalInterface))])
self._leafs = OrderedDict()
self.global_interface = YList(self)
self._segment_path = lambda: "global-interfaces"
self._absolute_path = lambda: "Cisco-IOS-XR-freqsync-oper:frequency-synchronization/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalInterfaces, [], name, value)
class GlobalInterface(Entity):
"""
Global interface information for a particular
interface
.. attribute:: interface_name (key)
Interface name
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: interface_selection_forward_trace
Selection forwardtrace operational data for a particular interface
**type**\: :py:class:`InterfaceSelectionForwardTrace <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace>`
.. attribute:: interface_selection_back_trace
Selection backtrace operational data for a particular interface
**type**\: :py:class:`InterfaceSelectionBackTrace <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalInterfaces.GlobalInterface, self).__init__()
self.yang_name = "global-interface"
self.yang_parent_name = "global-interfaces"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = ['interface_name']
self._child_classes = OrderedDict([("interface-selection-forward-trace", ("interface_selection_forward_trace", FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace)), ("interface-selection-back-trace", ("interface_selection_back_trace", FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace))])
self._leafs = OrderedDict([
('interface_name', (YLeaf(YType.str, 'interface-name'), ['str'])),
])
self.interface_name = None
self.interface_selection_forward_trace = FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace()
self.interface_selection_forward_trace.parent = self
self._children_name_map["interface_selection_forward_trace"] = "interface-selection-forward-trace"
self.interface_selection_back_trace = FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace()
self.interface_selection_back_trace.parent = self
self._children_name_map["interface_selection_back_trace"] = "interface-selection-back-trace"
self._segment_path = lambda: "global-interface" + "[interface-name='" + str(self.interface_name) + "']"
self._absolute_path = lambda: "Cisco-IOS-XR-freqsync-oper:frequency-synchronization/global-interfaces/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalInterfaces.GlobalInterface, ['interface_name'], name, value)
class InterfaceSelectionForwardTrace(Entity):
"""
Selection forwardtrace operational data for a
particular interface
.. attribute:: forward_trace
Selection ForwardTrace
**type**\: list of :py:class:`ForwardTrace <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace, self).__init__()
self.yang_name = "interface-selection-forward-trace"
self.yang_parent_name = "global-interface"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("forward-trace", ("forward_trace", FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace))])
self._leafs = OrderedDict()
self.forward_trace = YList(self)
self._segment_path = lambda: "interface-selection-forward-trace"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace, [], name, value)
class ForwardTrace(Entity):
"""
Selection ForwardTrace
.. attribute:: forward_trace_node
The source or selection point at this point in the forwardtrace
**type**\: :py:class:`ForwardTraceNode <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace, self).__init__()
self.yang_name = "forward-trace"
self.yang_parent_name = "interface-selection-forward-trace"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("forward-trace-node", ("forward_trace_node", FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode))])
self._leafs = OrderedDict()
self.forward_trace_node = FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode()
self.forward_trace_node.parent = self
self._children_name_map["forward_trace_node"] = "forward-trace-node"
self._segment_path = lambda: "forward-trace"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace, [], name, value)
class ForwardTraceNode(Entity):
"""
The source or selection point at this point in
the forwardtrace
.. attribute:: selection_point
Selection Point
**type**\: :py:class:`SelectionPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.SelectionPoint>`
.. attribute:: source
Timing Source
**type**\: :py:class:`Source <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source>`
.. attribute:: node_type
NodeType
**type**\: :py:class:`FsyncBagForwardtraceNode <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagForwardtraceNode>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode, self).__init__()
self.yang_name = "forward-trace-node"
self.yang_parent_name = "forward-trace"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("selection-point", ("selection_point", FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.SelectionPoint)), ("source", ("source", FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source))])
self._leafs = OrderedDict([
('node_type', (YLeaf(YType.enumeration, 'node-type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagForwardtraceNode', '')])),
])
self.node_type = None
self.selection_point = FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.SelectionPoint()
self.selection_point.parent = self
self._children_name_map["selection_point"] = "selection-point"
self.source = FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source()
self.source.parent = self
self._children_name_map["source"] = "source"
self._segment_path = lambda: "forward-trace-node"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode, [u'node_type'], name, value)
class SelectionPoint(Entity):
"""
Selection Point
.. attribute:: selection_point_type
Selection point type
**type**\: int
**range:** 0..255
.. attribute:: selection_point_description
Selection point descrption
**type**\: str
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.SelectionPoint, self).__init__()
self.yang_name = "selection-point"
self.yang_parent_name = "forward-trace-node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('selection_point_type', (YLeaf(YType.uint8, 'selection-point-type'), ['int'])),
('selection_point_description', (YLeaf(YType.str, 'selection-point-description'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
])
self.selection_point_type = None
self.selection_point_description = None
self.node = None
self._segment_path = lambda: "selection-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.SelectionPoint, [u'selection_point_type', u'selection_point_description', u'node'], name, value)
class Source(Entity):
"""
Timing Source
.. attribute:: clock_id
Clock ID
**type**\: :py:class:`ClockId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.ClockId>`
.. attribute:: gnss_receiver_id
GNSS Receiver ID
**type**\: :py:class:`GnssReceiverId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.GnssReceiverId>`
.. attribute:: source_class
SourceClass
**type**\: :py:class:`FsyncBagSourceClass <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagSourceClass>`
.. attribute:: ethernet_interface
Ethernet interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: sonet_interface
SONET interfaces
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: node
Internal Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: ptp_node
PTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: satellite_access_interface
Satellite Access Interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: ntp_node
NTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source, self).__init__()
self.yang_name = "source"
self.yang_parent_name = "forward-trace-node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("clock-id", ("clock_id", FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.ClockId)), ("gnss-receiver-id", ("gnss_receiver_id", FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.GnssReceiverId))])
self._leafs = OrderedDict([
('source_class', (YLeaf(YType.enumeration, 'source-class'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagSourceClass', '')])),
('ethernet_interface', (YLeaf(YType.str, 'ethernet-interface'), ['str'])),
('sonet_interface', (YLeaf(YType.str, 'sonet-interface'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
('ptp_node', (YLeaf(YType.str, 'ptp-node'), ['str'])),
('satellite_access_interface', (YLeaf(YType.str, 'satellite-access-interface'), ['str'])),
('ntp_node', (YLeaf(YType.str, 'ntp-node'), ['str'])),
])
self.source_class = None
self.ethernet_interface = None
self.sonet_interface = None
self.node = None
self.ptp_node = None
self.satellite_access_interface = None
self.ntp_node = None
self.clock_id = FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.ClockId()
self.clock_id.parent = self
self._children_name_map["clock_id"] = "clock-id"
self.gnss_receiver_id = FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.GnssReceiverId()
self.gnss_receiver_id.parent = self
self._children_name_map["gnss_receiver_id"] = "gnss-receiver-id"
self._segment_path = lambda: "source"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source, [u'source_class', u'ethernet_interface', u'sonet_interface', u'node', u'ptp_node', u'satellite_access_interface', u'ntp_node'], name, value)
class ClockId(Entity):
"""
Clock ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.ClockId, self).__init__()
self.yang_name = "clock-id"
self.yang_parent_name = "source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "clock-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.ClockId, [u'node', u'id', u'clock_name'], name, value)
class GnssReceiverId(Entity):
"""
GNSS Receiver ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.GnssReceiverId, self).__init__()
self.yang_name = "gnss-receiver-id"
self.yang_parent_name = "source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "gnss-receiver-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionForwardTrace.ForwardTrace.ForwardTraceNode.Source.GnssReceiverId, [u'node', u'id', u'clock_name'], name, value)
class InterfaceSelectionBackTrace(Entity):
"""
Selection backtrace operational data for a
particular interface
.. attribute:: selected_source
Source which has been selected for output
**type**\: :py:class:`SelectedSource <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace.SelectedSource>`
.. attribute:: selection_point
List of selection points in the backtrace
**type**\: list of :py:class:`SelectionPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace.SelectionPoint>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace, self).__init__()
self.yang_name = "interface-selection-back-trace"
self.yang_parent_name = "global-interface"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("selected-source", ("selected_source", FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace.SelectedSource)), ("selection-point", ("selection_point", FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace.SelectionPoint))])
self._leafs = OrderedDict()
self.selected_source = FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace.SelectedSource()
self.selected_source.parent = self
self._children_name_map["selected_source"] = "selected-source"
self.selection_point = YList(self)
self._segment_path = lambda: "interface-selection-back-trace"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace, [], name, value)
class SelectedSource(Entity):
"""
Source which has been selected for output
.. attribute:: clock_id
Clock ID
**type**\: :py:class:`ClockId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace.SelectedSource.ClockId>`
.. attribute:: gnss_receiver_id
GNSS Receiver ID
**type**\: :py:class:`GnssReceiverId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace.SelectedSource.GnssReceiverId>`
.. attribute:: source_class
SourceClass
**type**\: :py:class:`FsyncBagSourceClass <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagSourceClass>`
.. attribute:: ethernet_interface
Ethernet interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: sonet_interface
SONET interfaces
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: node
Internal Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: ptp_node
PTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: satellite_access_interface
Satellite Access Interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: ntp_node
NTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace.SelectedSource, self).__init__()
self.yang_name = "selected-source"
self.yang_parent_name = "interface-selection-back-trace"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("clock-id", ("clock_id", FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace.SelectedSource.ClockId)), ("gnss-receiver-id", ("gnss_receiver_id", FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace.SelectedSource.GnssReceiverId))])
self._leafs = OrderedDict([
('source_class', (YLeaf(YType.enumeration, 'source-class'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagSourceClass', '')])),
('ethernet_interface', (YLeaf(YType.str, 'ethernet-interface'), ['str'])),
('sonet_interface', (YLeaf(YType.str, 'sonet-interface'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
('ptp_node', (YLeaf(YType.str, 'ptp-node'), ['str'])),
('satellite_access_interface', (YLeaf(YType.str, 'satellite-access-interface'), ['str'])),
('ntp_node', (YLeaf(YType.str, 'ntp-node'), ['str'])),
])
self.source_class = None
self.ethernet_interface = None
self.sonet_interface = None
self.node = None
self.ptp_node = None
self.satellite_access_interface = None
self.ntp_node = None
self.clock_id = FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace.SelectedSource.ClockId()
self.clock_id.parent = self
self._children_name_map["clock_id"] = "clock-id"
self.gnss_receiver_id = FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace.SelectedSource.GnssReceiverId()
self.gnss_receiver_id.parent = self
self._children_name_map["gnss_receiver_id"] = "gnss-receiver-id"
self._segment_path = lambda: "selected-source"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace.SelectedSource, [u'source_class', u'ethernet_interface', u'sonet_interface', u'node', u'ptp_node', u'satellite_access_interface', u'ntp_node'], name, value)
class ClockId(Entity):
"""
Clock ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace.SelectedSource.ClockId, self).__init__()
self.yang_name = "clock-id"
self.yang_parent_name = "selected-source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "clock-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace.SelectedSource.ClockId, [u'node', u'id', u'clock_name'], name, value)
class GnssReceiverId(Entity):
"""
GNSS Receiver ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace.SelectedSource.GnssReceiverId, self).__init__()
self.yang_name = "gnss-receiver-id"
self.yang_parent_name = "selected-source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "gnss-receiver-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace.SelectedSource.GnssReceiverId, [u'node', u'id', u'clock_name'], name, value)
class SelectionPoint(Entity):
"""
List of selection points in the backtrace
.. attribute:: selection_point_type
Selection point type
**type**\: int
**range:** 0..255
.. attribute:: selection_point_description
Selection point descrption
**type**\: str
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace.SelectionPoint, self).__init__()
self.yang_name = "selection-point"
self.yang_parent_name = "interface-selection-back-trace"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('selection_point_type', (YLeaf(YType.uint8, 'selection-point-type'), ['int'])),
('selection_point_description', (YLeaf(YType.str, 'selection-point-description'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
])
self.selection_point_type = None
self.selection_point_description = None
self.node = None
self._segment_path = lambda: "selection-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.GlobalInterfaces.GlobalInterface.InterfaceSelectionBackTrace.SelectionPoint, [u'selection_point_type', u'selection_point_description', u'node'], name, value)
class Summary(Entity):
"""
Summary operational data
.. attribute:: frequency_summary
Summary of sources selected for frequency
**type**\: list of :py:class:`FrequencySummary <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Summary.FrequencySummary>`
.. attribute:: time_of_day_summary
Summary of sources selected for time\-of\-day
**type**\: list of :py:class:`TimeOfDaySummary <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Summary.TimeOfDaySummary>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Summary, self).__init__()
self.yang_name = "summary"
self.yang_parent_name = "frequency-synchronization"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("frequency-summary", ("frequency_summary", FrequencySynchronization.Summary.FrequencySummary)), ("time-of-day-summary", ("time_of_day_summary", FrequencySynchronization.Summary.TimeOfDaySummary))])
self._leafs = OrderedDict()
self.frequency_summary = YList(self)
self.time_of_day_summary = YList(self)
self._segment_path = lambda: "summary"
self._absolute_path = lambda: "Cisco-IOS-XR-freqsync-oper:frequency-synchronization/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Summary, [], name, value)
class FrequencySummary(Entity):
"""
Summary of sources selected for frequency
.. attribute:: source
The source associated with this summary information
**type**\: :py:class:`Source <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Summary.FrequencySummary.Source>`
.. attribute:: clock_count
The number of clock\-interfaces being driven by the source
**type**\: int
**range:** 0..4294967295
.. attribute:: ethernet_count
The number of Ethernet interfaces being driven by the source
**type**\: int
**range:** 0..4294967295
.. attribute:: sonet_count
The number of SONET/SDH interfaces being driven by the source
**type**\: int
**range:** 0..4294967295
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Summary.FrequencySummary, self).__init__()
self.yang_name = "frequency-summary"
self.yang_parent_name = "summary"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("source", ("source", FrequencySynchronization.Summary.FrequencySummary.Source))])
self._leafs = OrderedDict([
('clock_count', (YLeaf(YType.uint32, 'clock-count'), ['int'])),
('ethernet_count', (YLeaf(YType.uint32, 'ethernet-count'), ['int'])),
('sonet_count', (YLeaf(YType.uint32, 'sonet-count'), ['int'])),
])
self.clock_count = None
self.ethernet_count = None
self.sonet_count = None
self.source = FrequencySynchronization.Summary.FrequencySummary.Source()
self.source.parent = self
self._children_name_map["source"] = "source"
self._segment_path = lambda: "frequency-summary"
self._absolute_path = lambda: "Cisco-IOS-XR-freqsync-oper:frequency-synchronization/summary/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Summary.FrequencySummary, [u'clock_count', u'ethernet_count', u'sonet_count'], name, value)
class Source(Entity):
"""
The source associated with this summary
information
.. attribute:: clock_id
Clock ID
**type**\: :py:class:`ClockId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Summary.FrequencySummary.Source.ClockId>`
.. attribute:: gnss_receiver_id
GNSS Receiver ID
**type**\: :py:class:`GnssReceiverId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Summary.FrequencySummary.Source.GnssReceiverId>`
.. attribute:: source_class
SourceClass
**type**\: :py:class:`FsyncBagSourceClass <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagSourceClass>`
.. attribute:: ethernet_interface
Ethernet interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: sonet_interface
SONET interfaces
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: node
Internal Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: ptp_node
PTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: satellite_access_interface
Satellite Access Interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: ntp_node
NTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Summary.FrequencySummary.Source, self).__init__()
self.yang_name = "source"
self.yang_parent_name = "frequency-summary"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("clock-id", ("clock_id", FrequencySynchronization.Summary.FrequencySummary.Source.ClockId)), ("gnss-receiver-id", ("gnss_receiver_id", FrequencySynchronization.Summary.FrequencySummary.Source.GnssReceiverId))])
self._leafs = OrderedDict([
('source_class', (YLeaf(YType.enumeration, 'source-class'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagSourceClass', '')])),
('ethernet_interface', (YLeaf(YType.str, 'ethernet-interface'), ['str'])),
('sonet_interface', (YLeaf(YType.str, 'sonet-interface'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
('ptp_node', (YLeaf(YType.str, 'ptp-node'), ['str'])),
('satellite_access_interface', (YLeaf(YType.str, 'satellite-access-interface'), ['str'])),
('ntp_node', (YLeaf(YType.str, 'ntp-node'), ['str'])),
])
self.source_class = None
self.ethernet_interface = None
self.sonet_interface = None
self.node = None
self.ptp_node = None
self.satellite_access_interface = None
self.ntp_node = None
self.clock_id = FrequencySynchronization.Summary.FrequencySummary.Source.ClockId()
self.clock_id.parent = self
self._children_name_map["clock_id"] = "clock-id"
self.gnss_receiver_id = FrequencySynchronization.Summary.FrequencySummary.Source.GnssReceiverId()
self.gnss_receiver_id.parent = self
self._children_name_map["gnss_receiver_id"] = "gnss-receiver-id"
self._segment_path = lambda: "source"
self._absolute_path = lambda: "Cisco-IOS-XR-freqsync-oper:frequency-synchronization/summary/frequency-summary/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Summary.FrequencySummary.Source, [u'source_class', u'ethernet_interface', u'sonet_interface', u'node', u'ptp_node', u'satellite_access_interface', u'ntp_node'], name, value)
class ClockId(Entity):
"""
Clock ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Summary.FrequencySummary.Source.ClockId, self).__init__()
self.yang_name = "clock-id"
self.yang_parent_name = "source"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "clock-id"
self._absolute_path = lambda: "Cisco-IOS-XR-freqsync-oper:frequency-synchronization/summary/frequency-summary/source/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Summary.FrequencySummary.Source.ClockId, [u'node', u'id', u'clock_name'], name, value)
class GnssReceiverId(Entity):
"""
GNSS Receiver ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Summary.FrequencySummary.Source.GnssReceiverId, self).__init__()
self.yang_name = "gnss-receiver-id"
self.yang_parent_name = "source"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "gnss-receiver-id"
self._absolute_path = lambda: "Cisco-IOS-XR-freqsync-oper:frequency-synchronization/summary/frequency-summary/source/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Summary.FrequencySummary.Source.GnssReceiverId, [u'node', u'id', u'clock_name'], name, value)
class TimeOfDaySummary(Entity):
"""
Summary of sources selected for time\-of\-day
.. attribute:: source
The source associated with this summary information
**type**\: :py:class:`Source <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Summary.TimeOfDaySummary.Source>`
.. attribute:: node_count
The number of cards having their time\-of\-day set by the source
**type**\: int
**range:** 0..4294967295
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Summary.TimeOfDaySummary, self).__init__()
self.yang_name = "time-of-day-summary"
self.yang_parent_name = "summary"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("source", ("source", FrequencySynchronization.Summary.TimeOfDaySummary.Source))])
self._leafs = OrderedDict([
('node_count', (YLeaf(YType.uint32, 'node-count'), ['int'])),
])
self.node_count = None
self.source = FrequencySynchronization.Summary.TimeOfDaySummary.Source()
self.source.parent = self
self._children_name_map["source"] = "source"
self._segment_path = lambda: "time-of-day-summary"
self._absolute_path = lambda: "Cisco-IOS-XR-freqsync-oper:frequency-synchronization/summary/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Summary.TimeOfDaySummary, [u'node_count'], name, value)
class Source(Entity):
"""
The source associated with this summary
information
.. attribute:: clock_id
Clock ID
**type**\: :py:class:`ClockId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Summary.TimeOfDaySummary.Source.ClockId>`
.. attribute:: gnss_receiver_id
GNSS Receiver ID
**type**\: :py:class:`GnssReceiverId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Summary.TimeOfDaySummary.Source.GnssReceiverId>`
.. attribute:: source_class
SourceClass
**type**\: :py:class:`FsyncBagSourceClass <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagSourceClass>`
.. attribute:: ethernet_interface
Ethernet interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: sonet_interface
SONET interfaces
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: node
Internal Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: ptp_node
PTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: satellite_access_interface
Satellite Access Interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: ntp_node
NTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Summary.TimeOfDaySummary.Source, self).__init__()
self.yang_name = "source"
self.yang_parent_name = "time-of-day-summary"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("clock-id", ("clock_id", FrequencySynchronization.Summary.TimeOfDaySummary.Source.ClockId)), ("gnss-receiver-id", ("gnss_receiver_id", FrequencySynchronization.Summary.TimeOfDaySummary.Source.GnssReceiverId))])
self._leafs = OrderedDict([
('source_class', (YLeaf(YType.enumeration, 'source-class'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagSourceClass', '')])),
('ethernet_interface', (YLeaf(YType.str, 'ethernet-interface'), ['str'])),
('sonet_interface', (YLeaf(YType.str, 'sonet-interface'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
('ptp_node', (YLeaf(YType.str, 'ptp-node'), ['str'])),
('satellite_access_interface', (YLeaf(YType.str, 'satellite-access-interface'), ['str'])),
('ntp_node', (YLeaf(YType.str, 'ntp-node'), ['str'])),
])
self.source_class = None
self.ethernet_interface = None
self.sonet_interface = None
self.node = None
self.ptp_node = None
self.satellite_access_interface = None
self.ntp_node = None
self.clock_id = FrequencySynchronization.Summary.TimeOfDaySummary.Source.ClockId()
self.clock_id.parent = self
self._children_name_map["clock_id"] = "clock-id"
self.gnss_receiver_id = FrequencySynchronization.Summary.TimeOfDaySummary.Source.GnssReceiverId()
self.gnss_receiver_id.parent = self
self._children_name_map["gnss_receiver_id"] = "gnss-receiver-id"
self._segment_path = lambda: "source"
self._absolute_path = lambda: "Cisco-IOS-XR-freqsync-oper:frequency-synchronization/summary/time-of-day-summary/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Summary.TimeOfDaySummary.Source, [u'source_class', u'ethernet_interface', u'sonet_interface', u'node', u'ptp_node', u'satellite_access_interface', u'ntp_node'], name, value)
class ClockId(Entity):
"""
Clock ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Summary.TimeOfDaySummary.Source.ClockId, self).__init__()
self.yang_name = "clock-id"
self.yang_parent_name = "source"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "clock-id"
self._absolute_path = lambda: "Cisco-IOS-XR-freqsync-oper:frequency-synchronization/summary/time-of-day-summary/source/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Summary.TimeOfDaySummary.Source.ClockId, [u'node', u'id', u'clock_name'], name, value)
class GnssReceiverId(Entity):
"""
GNSS Receiver ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Summary.TimeOfDaySummary.Source.GnssReceiverId, self).__init__()
self.yang_name = "gnss-receiver-id"
self.yang_parent_name = "source"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "gnss-receiver-id"
self._absolute_path = lambda: "Cisco-IOS-XR-freqsync-oper:frequency-synchronization/summary/time-of-day-summary/source/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Summary.TimeOfDaySummary.Source.GnssReceiverId, [u'node', u'id', u'clock_name'], name, value)
class InterfaceDatas(Entity):
"""
Table for interface operational data
.. attribute:: interface_data
Operational data for a particular interface
**type**\: list of :py:class:`InterfaceData <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.InterfaceDatas.InterfaceData>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.InterfaceDatas, self).__init__()
self.yang_name = "interface-datas"
self.yang_parent_name = "frequency-synchronization"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("interface-data", ("interface_data", FrequencySynchronization.InterfaceDatas.InterfaceData))])
self._leafs = OrderedDict()
self.interface_data = YList(self)
self._segment_path = lambda: "interface-datas"
self._absolute_path = lambda: "Cisco-IOS-XR-freqsync-oper:frequency-synchronization/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.InterfaceDatas, [], name, value)
class InterfaceData(Entity):
"""
Operational data for a particular interface
.. attribute:: interface_name (key)
Interface name
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: source
The source ID for the interface
**type**\: :py:class:`Source <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.InterfaceDatas.InterfaceData.Source>`
.. attribute:: selected_source
Timing source selected for interface output
**type**\: :py:class:`SelectedSource <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.InterfaceDatas.InterfaceData.SelectedSource>`
.. attribute:: quality_level_received
Received quality level
**type**\: :py:class:`QualityLevelReceived <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelReceived>`
.. attribute:: quality_level_damped
Quality level after damping has been applied
**type**\: :py:class:`QualityLevelDamped <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelDamped>`
.. attribute:: quality_level_effective_input
The effective input quality level
**type**\: :py:class:`QualityLevelEffectiveInput <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelEffectiveInput>`
.. attribute:: quality_level_effective_output
The effective output quality level
**type**\: :py:class:`QualityLevelEffectiveOutput <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelEffectiveOutput>`
.. attribute:: quality_level_selected_source
The quality level of the source driving this interface
**type**\: :py:class:`QualityLevelSelectedSource <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelSelectedSource>`
.. attribute:: ethernet_peer_information
Ethernet peer information
**type**\: :py:class:`EthernetPeerInformation <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.InterfaceDatas.InterfaceData.EthernetPeerInformation>`
.. attribute:: esmc_statistics
ESMC Statistics
**type**\: :py:class:`EsmcStatistics <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.InterfaceDatas.InterfaceData.EsmcStatistics>`
.. attribute:: name
Interface name
**type**\: str
.. attribute:: state
Interface state
**type**\: :py:class:`ImStateEnum <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.ImStateEnum>`
.. attribute:: ssm_enabled
SSM is enabled on the interface
**type**\: bool
.. attribute:: squelched
The interface output is squelched
**type**\: bool
.. attribute:: selection_input
The interface is an input for selection
**type**\: bool
.. attribute:: priority
Priority
**type**\: int
**range:** 0..255
.. attribute:: time_of_day_priority
Time\-of\-day priority
**type**\: int
**range:** 0..255
.. attribute:: damping_state
Damping state
**type**\: :py:class:`FsyncBagDampingState <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagDampingState>`
.. attribute:: damping_time
Time until damping state changes in ms
**type**\: int
**range:** 0..4294967295
.. attribute:: wait_to_restore_time
Wait\-to\-restore time for the interface
**type**\: int
**range:** 0..65535
.. attribute:: supports_frequency
The PTP clock supports frequency
**type**\: bool
.. attribute:: supports_time_of_day
The PTP clock supports time
**type**\: bool
.. attribute:: spa_selection_point
Spa selection points
**type**\: list of :py:class:`SpaSelectionPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.InterfaceDatas.InterfaceData.SpaSelectionPoint>`
.. attribute:: node_selection_point
Node selection points
**type**\: list of :py:class:`NodeSelectionPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.InterfaceDatas.InterfaceData.NodeSelectionPoint>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.InterfaceDatas.InterfaceData, self).__init__()
self.yang_name = "interface-data"
self.yang_parent_name = "interface-datas"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = ['interface_name']
self._child_classes = OrderedDict([("source", ("source", FrequencySynchronization.InterfaceDatas.InterfaceData.Source)), ("selected-source", ("selected_source", FrequencySynchronization.InterfaceDatas.InterfaceData.SelectedSource)), ("quality-level-received", ("quality_level_received", FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelReceived)), ("quality-level-damped", ("quality_level_damped", FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelDamped)), ("quality-level-effective-input", ("quality_level_effective_input", FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelEffectiveInput)), ("quality-level-effective-output", ("quality_level_effective_output", FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelEffectiveOutput)), ("quality-level-selected-source", ("quality_level_selected_source", FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelSelectedSource)), ("ethernet-peer-information", ("ethernet_peer_information", FrequencySynchronization.InterfaceDatas.InterfaceData.EthernetPeerInformation)), ("esmc-statistics", ("esmc_statistics", FrequencySynchronization.InterfaceDatas.InterfaceData.EsmcStatistics)), ("spa-selection-point", ("spa_selection_point", FrequencySynchronization.InterfaceDatas.InterfaceData.SpaSelectionPoint)), ("node-selection-point", ("node_selection_point", FrequencySynchronization.InterfaceDatas.InterfaceData.NodeSelectionPoint))])
self._leafs = OrderedDict([
('interface_name', (YLeaf(YType.str, 'interface-name'), ['str'])),
('name', (YLeaf(YType.str, 'name'), ['str'])),
('state', (YLeaf(YType.enumeration, 'state'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'ImStateEnum', '')])),
('ssm_enabled', (YLeaf(YType.boolean, 'ssm-enabled'), ['bool'])),
('squelched', (YLeaf(YType.boolean, 'squelched'), ['bool'])),
('selection_input', (YLeaf(YType.boolean, 'selection-input'), ['bool'])),
('priority', (YLeaf(YType.uint8, 'priority'), ['int'])),
('time_of_day_priority', (YLeaf(YType.uint8, 'time-of-day-priority'), ['int'])),
('damping_state', (YLeaf(YType.enumeration, 'damping-state'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagDampingState', '')])),
('damping_time', (YLeaf(YType.uint32, 'damping-time'), ['int'])),
('wait_to_restore_time', (YLeaf(YType.uint16, 'wait-to-restore-time'), ['int'])),
('supports_frequency', (YLeaf(YType.boolean, 'supports-frequency'), ['bool'])),
('supports_time_of_day', (YLeaf(YType.boolean, 'supports-time-of-day'), ['bool'])),
])
self.interface_name = None
self.name = None
self.state = None
self.ssm_enabled = None
self.squelched = None
self.selection_input = None
self.priority = None
self.time_of_day_priority = None
self.damping_state = None
self.damping_time = None
self.wait_to_restore_time = None
self.supports_frequency = None
self.supports_time_of_day = None
self.source = FrequencySynchronization.InterfaceDatas.InterfaceData.Source()
self.source.parent = self
self._children_name_map["source"] = "source"
self.selected_source = FrequencySynchronization.InterfaceDatas.InterfaceData.SelectedSource()
self.selected_source.parent = self
self._children_name_map["selected_source"] = "selected-source"
self.quality_level_received = FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelReceived()
self.quality_level_received.parent = self
self._children_name_map["quality_level_received"] = "quality-level-received"
self.quality_level_damped = FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelDamped()
self.quality_level_damped.parent = self
self._children_name_map["quality_level_damped"] = "quality-level-damped"
self.quality_level_effective_input = FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelEffectiveInput()
self.quality_level_effective_input.parent = self
self._children_name_map["quality_level_effective_input"] = "quality-level-effective-input"
self.quality_level_effective_output = FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelEffectiveOutput()
self.quality_level_effective_output.parent = self
self._children_name_map["quality_level_effective_output"] = "quality-level-effective-output"
self.quality_level_selected_source = FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelSelectedSource()
self.quality_level_selected_source.parent = self
self._children_name_map["quality_level_selected_source"] = "quality-level-selected-source"
self.ethernet_peer_information = FrequencySynchronization.InterfaceDatas.InterfaceData.EthernetPeerInformation()
self.ethernet_peer_information.parent = self
self._children_name_map["ethernet_peer_information"] = "ethernet-peer-information"
self.esmc_statistics = FrequencySynchronization.InterfaceDatas.InterfaceData.EsmcStatistics()
self.esmc_statistics.parent = self
self._children_name_map["esmc_statistics"] = "esmc-statistics"
self.spa_selection_point = YList(self)
self.node_selection_point = YList(self)
self._segment_path = lambda: "interface-data" + "[interface-name='" + str(self.interface_name) + "']"
self._absolute_path = lambda: "Cisco-IOS-XR-freqsync-oper:frequency-synchronization/interface-datas/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.InterfaceDatas.InterfaceData, ['interface_name', u'name', u'state', u'ssm_enabled', u'squelched', u'selection_input', u'priority', u'time_of_day_priority', u'damping_state', u'damping_time', u'wait_to_restore_time', u'supports_frequency', u'supports_time_of_day'], name, value)
class Source(Entity):
"""
The source ID for the interface
.. attribute:: clock_id
Clock ID
**type**\: :py:class:`ClockId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.InterfaceDatas.InterfaceData.Source.ClockId>`
.. attribute:: gnss_receiver_id
GNSS Receiver ID
**type**\: :py:class:`GnssReceiverId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.InterfaceDatas.InterfaceData.Source.GnssReceiverId>`
.. attribute:: source_class
SourceClass
**type**\: :py:class:`FsyncBagSourceClass <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagSourceClass>`
.. attribute:: ethernet_interface
Ethernet interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: sonet_interface
SONET interfaces
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: node
Internal Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: ptp_node
PTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: satellite_access_interface
Satellite Access Interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: ntp_node
NTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.InterfaceDatas.InterfaceData.Source, self).__init__()
self.yang_name = "source"
self.yang_parent_name = "interface-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("clock-id", ("clock_id", FrequencySynchronization.InterfaceDatas.InterfaceData.Source.ClockId)), ("gnss-receiver-id", ("gnss_receiver_id", FrequencySynchronization.InterfaceDatas.InterfaceData.Source.GnssReceiverId))])
self._leafs = OrderedDict([
('source_class', (YLeaf(YType.enumeration, 'source-class'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagSourceClass', '')])),
('ethernet_interface', (YLeaf(YType.str, 'ethernet-interface'), ['str'])),
('sonet_interface', (YLeaf(YType.str, 'sonet-interface'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
('ptp_node', (YLeaf(YType.str, 'ptp-node'), ['str'])),
('satellite_access_interface', (YLeaf(YType.str, 'satellite-access-interface'), ['str'])),
('ntp_node', (YLeaf(YType.str, 'ntp-node'), ['str'])),
])
self.source_class = None
self.ethernet_interface = None
self.sonet_interface = None
self.node = None
self.ptp_node = None
self.satellite_access_interface = None
self.ntp_node = None
self.clock_id = FrequencySynchronization.InterfaceDatas.InterfaceData.Source.ClockId()
self.clock_id.parent = self
self._children_name_map["clock_id"] = "clock-id"
self.gnss_receiver_id = FrequencySynchronization.InterfaceDatas.InterfaceData.Source.GnssReceiverId()
self.gnss_receiver_id.parent = self
self._children_name_map["gnss_receiver_id"] = "gnss-receiver-id"
self._segment_path = lambda: "source"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.InterfaceDatas.InterfaceData.Source, [u'source_class', u'ethernet_interface', u'sonet_interface', u'node', u'ptp_node', u'satellite_access_interface', u'ntp_node'], name, value)
class ClockId(Entity):
"""
Clock ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.InterfaceDatas.InterfaceData.Source.ClockId, self).__init__()
self.yang_name = "clock-id"
self.yang_parent_name = "source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "clock-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.InterfaceDatas.InterfaceData.Source.ClockId, [u'node', u'id', u'clock_name'], name, value)
class GnssReceiverId(Entity):
"""
GNSS Receiver ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.InterfaceDatas.InterfaceData.Source.GnssReceiverId, self).__init__()
self.yang_name = "gnss-receiver-id"
self.yang_parent_name = "source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "gnss-receiver-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.InterfaceDatas.InterfaceData.Source.GnssReceiverId, [u'node', u'id', u'clock_name'], name, value)
class SelectedSource(Entity):
"""
Timing source selected for interface output
.. attribute:: clock_id
Clock ID
**type**\: :py:class:`ClockId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.InterfaceDatas.InterfaceData.SelectedSource.ClockId>`
.. attribute:: gnss_receiver_id
GNSS Receiver ID
**type**\: :py:class:`GnssReceiverId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.InterfaceDatas.InterfaceData.SelectedSource.GnssReceiverId>`
.. attribute:: source_class
SourceClass
**type**\: :py:class:`FsyncBagSourceClass <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagSourceClass>`
.. attribute:: ethernet_interface
Ethernet interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: sonet_interface
SONET interfaces
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: node
Internal Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: ptp_node
PTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: satellite_access_interface
Satellite Access Interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: ntp_node
NTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.InterfaceDatas.InterfaceData.SelectedSource, self).__init__()
self.yang_name = "selected-source"
self.yang_parent_name = "interface-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("clock-id", ("clock_id", FrequencySynchronization.InterfaceDatas.InterfaceData.SelectedSource.ClockId)), ("gnss-receiver-id", ("gnss_receiver_id", FrequencySynchronization.InterfaceDatas.InterfaceData.SelectedSource.GnssReceiverId))])
self._leafs = OrderedDict([
('source_class', (YLeaf(YType.enumeration, 'source-class'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagSourceClass', '')])),
('ethernet_interface', (YLeaf(YType.str, 'ethernet-interface'), ['str'])),
('sonet_interface', (YLeaf(YType.str, 'sonet-interface'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
('ptp_node', (YLeaf(YType.str, 'ptp-node'), ['str'])),
('satellite_access_interface', (YLeaf(YType.str, 'satellite-access-interface'), ['str'])),
('ntp_node', (YLeaf(YType.str, 'ntp-node'), ['str'])),
])
self.source_class = None
self.ethernet_interface = None
self.sonet_interface = None
self.node = None
self.ptp_node = None
self.satellite_access_interface = None
self.ntp_node = None
self.clock_id = FrequencySynchronization.InterfaceDatas.InterfaceData.SelectedSource.ClockId()
self.clock_id.parent = self
self._children_name_map["clock_id"] = "clock-id"
self.gnss_receiver_id = FrequencySynchronization.InterfaceDatas.InterfaceData.SelectedSource.GnssReceiverId()
self.gnss_receiver_id.parent = self
self._children_name_map["gnss_receiver_id"] = "gnss-receiver-id"
self._segment_path = lambda: "selected-source"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.InterfaceDatas.InterfaceData.SelectedSource, [u'source_class', u'ethernet_interface', u'sonet_interface', u'node', u'ptp_node', u'satellite_access_interface', u'ntp_node'], name, value)
class ClockId(Entity):
"""
Clock ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.InterfaceDatas.InterfaceData.SelectedSource.ClockId, self).__init__()
self.yang_name = "clock-id"
self.yang_parent_name = "selected-source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "clock-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.InterfaceDatas.InterfaceData.SelectedSource.ClockId, [u'node', u'id', u'clock_name'], name, value)
class GnssReceiverId(Entity):
"""
GNSS Receiver ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.InterfaceDatas.InterfaceData.SelectedSource.GnssReceiverId, self).__init__()
self.yang_name = "gnss-receiver-id"
self.yang_parent_name = "selected-source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "gnss-receiver-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.InterfaceDatas.InterfaceData.SelectedSource.GnssReceiverId, [u'node', u'id', u'clock_name'], name, value)
class QualityLevelReceived(Entity):
"""
Received quality level
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelReceived, self).__init__()
self.yang_name = "quality-level-received"
self.yang_parent_name = "interface-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "quality-level-received"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelReceived, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
class QualityLevelDamped(Entity):
"""
Quality level after damping has been applied
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelDamped, self).__init__()
self.yang_name = "quality-level-damped"
self.yang_parent_name = "interface-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "quality-level-damped"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelDamped, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
class QualityLevelEffectiveInput(Entity):
"""
The effective input quality level
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelEffectiveInput, self).__init__()
self.yang_name = "quality-level-effective-input"
self.yang_parent_name = "interface-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "quality-level-effective-input"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelEffectiveInput, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
class QualityLevelEffectiveOutput(Entity):
"""
The effective output quality level
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelEffectiveOutput, self).__init__()
self.yang_name = "quality-level-effective-output"
self.yang_parent_name = "interface-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "quality-level-effective-output"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelEffectiveOutput, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
class QualityLevelSelectedSource(Entity):
"""
The quality level of the source driving this
interface
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelSelectedSource, self).__init__()
self.yang_name = "quality-level-selected-source"
self.yang_parent_name = "interface-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "quality-level-selected-source"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.InterfaceDatas.InterfaceData.QualityLevelSelectedSource, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
class EthernetPeerInformation(Entity):
"""
Ethernet peer information
.. attribute:: peer_state_time
Time of last peer state transition
**type**\: :py:class:`PeerStateTime <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.InterfaceDatas.InterfaceData.EthernetPeerInformation.PeerStateTime>`
.. attribute:: last_ssm
Time of last SSM received
**type**\: :py:class:`LastSsm <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.InterfaceDatas.InterfaceData.EthernetPeerInformation.LastSsm>`
.. attribute:: peer_state
Peer state
**type**\: :py:class:`FsyncBagEsmcPeerState <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagEsmcPeerState>`
.. attribute:: peer_up_count
Number of times the peer has come up
**type**\: int
**range:** 0..65535
.. attribute:: peer_timeout_count
Number of times the peer has timed out
**type**\: int
**range:** 0..65535
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.InterfaceDatas.InterfaceData.EthernetPeerInformation, self).__init__()
self.yang_name = "ethernet-peer-information"
self.yang_parent_name = "interface-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("peer-state-time", ("peer_state_time", FrequencySynchronization.InterfaceDatas.InterfaceData.EthernetPeerInformation.PeerStateTime)), ("last-ssm", ("last_ssm", FrequencySynchronization.InterfaceDatas.InterfaceData.EthernetPeerInformation.LastSsm))])
self._leafs = OrderedDict([
('peer_state', (YLeaf(YType.enumeration, 'peer-state'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagEsmcPeerState', '')])),
('peer_up_count', (YLeaf(YType.uint16, 'peer-up-count'), ['int'])),
('peer_timeout_count', (YLeaf(YType.uint16, 'peer-timeout-count'), ['int'])),
])
self.peer_state = None
self.peer_up_count = None
self.peer_timeout_count = None
self.peer_state_time = FrequencySynchronization.InterfaceDatas.InterfaceData.EthernetPeerInformation.PeerStateTime()
self.peer_state_time.parent = self
self._children_name_map["peer_state_time"] = "peer-state-time"
self.last_ssm = FrequencySynchronization.InterfaceDatas.InterfaceData.EthernetPeerInformation.LastSsm()
self.last_ssm.parent = self
self._children_name_map["last_ssm"] = "last-ssm"
self._segment_path = lambda: "ethernet-peer-information"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.InterfaceDatas.InterfaceData.EthernetPeerInformation, [u'peer_state', u'peer_up_count', u'peer_timeout_count'], name, value)
class PeerStateTime(Entity):
"""
Time of last peer state transition
.. attribute:: seconds
Seconds
**type**\: int
**range:** 0..4294967295
**units**\: second
.. attribute:: nanoseconds
Nanoseconds
**type**\: int
**range:** 0..4294967295
**units**\: nanosecond
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.InterfaceDatas.InterfaceData.EthernetPeerInformation.PeerStateTime, self).__init__()
self.yang_name = "peer-state-time"
self.yang_parent_name = "ethernet-peer-information"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('seconds', (YLeaf(YType.uint32, 'seconds'), ['int'])),
('nanoseconds', (YLeaf(YType.uint32, 'nanoseconds'), ['int'])),
])
self.seconds = None
self.nanoseconds = None
self._segment_path = lambda: "peer-state-time"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.InterfaceDatas.InterfaceData.EthernetPeerInformation.PeerStateTime, [u'seconds', u'nanoseconds'], name, value)
class LastSsm(Entity):
"""
Time of last SSM received
.. attribute:: seconds
Seconds
**type**\: int
**range:** 0..4294967295
**units**\: second
.. attribute:: nanoseconds
Nanoseconds
**type**\: int
**range:** 0..4294967295
**units**\: nanosecond
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.InterfaceDatas.InterfaceData.EthernetPeerInformation.LastSsm, self).__init__()
self.yang_name = "last-ssm"
self.yang_parent_name = "ethernet-peer-information"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('seconds', (YLeaf(YType.uint32, 'seconds'), ['int'])),
('nanoseconds', (YLeaf(YType.uint32, 'nanoseconds'), ['int'])),
])
self.seconds = None
self.nanoseconds = None
self._segment_path = lambda: "last-ssm"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.InterfaceDatas.InterfaceData.EthernetPeerInformation.LastSsm, [u'seconds', u'nanoseconds'], name, value)
class EsmcStatistics(Entity):
"""
ESMC Statistics
.. attribute:: esmc_events_sent
Number of event SSMs sent
**type**\: int
**range:** 0..65535
.. attribute:: esmc_events_received
Number of event SSMs received
**type**\: int
**range:** 0..65535
.. attribute:: esmc_infos_sent
Number of info SSMs sent
**type**\: int
**range:** 0..4294967295
.. attribute:: esmc_infos_received
Number of info SSms received
**type**\: int
**range:** 0..4294967295
.. attribute:: esmc_dn_us_sent
Number of SSMs with DNU QL sent
**type**\: int
**range:** 0..4294967295
.. attribute:: esmc_dn_us_received
Number of SSMs with DNU QL received
**type**\: int
**range:** 0..4294967295
.. attribute:: esmc_malformed_received
Number of malformed packets received
**type**\: int
**range:** 0..65535
.. attribute:: esmc_received_error
Number of received packets that failed to be handled
**type**\: int
**range:** 0..65535
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.InterfaceDatas.InterfaceData.EsmcStatistics, self).__init__()
self.yang_name = "esmc-statistics"
self.yang_parent_name = "interface-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('esmc_events_sent', (YLeaf(YType.uint16, 'esmc-events-sent'), ['int'])),
('esmc_events_received', (YLeaf(YType.uint16, 'esmc-events-received'), ['int'])),
('esmc_infos_sent', (YLeaf(YType.uint32, 'esmc-infos-sent'), ['int'])),
('esmc_infos_received', (YLeaf(YType.uint32, 'esmc-infos-received'), ['int'])),
('esmc_dn_us_sent', (YLeaf(YType.uint32, 'esmc-dn-us-sent'), ['int'])),
('esmc_dn_us_received', (YLeaf(YType.uint32, 'esmc-dn-us-received'), ['int'])),
('esmc_malformed_received', (YLeaf(YType.uint16, 'esmc-malformed-received'), ['int'])),
('esmc_received_error', (YLeaf(YType.uint16, 'esmc-received-error'), ['int'])),
])
self.esmc_events_sent = None
self.esmc_events_received = None
self.esmc_infos_sent = None
self.esmc_infos_received = None
self.esmc_dn_us_sent = None
self.esmc_dn_us_received = None
self.esmc_malformed_received = None
self.esmc_received_error = None
self._segment_path = lambda: "esmc-statistics"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.InterfaceDatas.InterfaceData.EsmcStatistics, [u'esmc_events_sent', u'esmc_events_received', u'esmc_infos_sent', u'esmc_infos_received', u'esmc_dn_us_sent', u'esmc_dn_us_received', u'esmc_malformed_received', u'esmc_received_error'], name, value)
class SpaSelectionPoint(Entity):
"""
Spa selection points
.. attribute:: selection_point
Selection point ID
**type**\: int
**range:** 0..255
.. attribute:: selection_point_description
Selection point description
**type**\: str
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.InterfaceDatas.InterfaceData.SpaSelectionPoint, self).__init__()
self.yang_name = "spa-selection-point"
self.yang_parent_name = "interface-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('selection_point', (YLeaf(YType.uint8, 'selection-point'), ['int'])),
('selection_point_description', (YLeaf(YType.str, 'selection-point-description'), ['str'])),
])
self.selection_point = None
self.selection_point_description = None
self._segment_path = lambda: "spa-selection-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.InterfaceDatas.InterfaceData.SpaSelectionPoint, [u'selection_point', u'selection_point_description'], name, value)
class NodeSelectionPoint(Entity):
"""
Node selection points
.. attribute:: selection_point
Selection point ID
**type**\: int
**range:** 0..255
.. attribute:: selection_point_description
Selection point description
**type**\: str
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.InterfaceDatas.InterfaceData.NodeSelectionPoint, self).__init__()
self.yang_name = "node-selection-point"
self.yang_parent_name = "interface-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('selection_point', (YLeaf(YType.uint8, 'selection-point'), ['int'])),
('selection_point_description', (YLeaf(YType.str, 'selection-point-description'), ['str'])),
])
self.selection_point = None
self.selection_point_description = None
self._segment_path = lambda: "node-selection-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.InterfaceDatas.InterfaceData.NodeSelectionPoint, [u'selection_point', u'selection_point_description'], name, value)
class Nodes(Entity):
"""
Table for node\-specific operational data
.. attribute:: node
Node\-specific data for a particular node
**type**\: list of :py:class:`Node <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes, self).__init__()
self.yang_name = "nodes"
self.yang_parent_name = "frequency-synchronization"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("node", ("node", FrequencySynchronization.Nodes.Node))])
self._leafs = OrderedDict()
self.node = YList(self)
self._segment_path = lambda: "nodes"
self._absolute_path = lambda: "Cisco-IOS-XR-freqsync-oper:frequency-synchronization/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes, [], name, value)
class Node(Entity):
"""
Node\-specific data for a particular node
.. attribute:: node (key)
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: ntp_data
NTP operational data
**type**\: :py:class:`NtpData <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.NtpData>`
.. attribute:: selection_point_datas
Selection point data table
**type**\: :py:class:`SelectionPointDatas <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.SelectionPointDatas>`
.. attribute:: configuration_errors
Configuration error operational data
**type**\: :py:class:`ConfigurationErrors <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ConfigurationErrors>`
.. attribute:: ptp_data
PTP operational data
**type**\: :py:class:`PtpData <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.PtpData>`
.. attribute:: ssm_summary
SSM operational data
**type**\: :py:class:`SsmSummary <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.SsmSummary>`
.. attribute:: detailed_clock_datas
Table for detailed clock operational data
**type**\: :py:class:`DetailedClockDatas <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.DetailedClockDatas>`
.. attribute:: clock_datas
Table for clock operational data
**type**\: :py:class:`ClockDatas <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ClockDatas>`
.. attribute:: selection_point_inputs
Table for selection point input operational data
**type**\: :py:class:`SelectionPointInputs <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.SelectionPointInputs>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node, self).__init__()
self.yang_name = "node"
self.yang_parent_name = "nodes"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = ['node']
self._child_classes = OrderedDict([("ntp-data", ("ntp_data", FrequencySynchronization.Nodes.Node.NtpData)), ("selection-point-datas", ("selection_point_datas", FrequencySynchronization.Nodes.Node.SelectionPointDatas)), ("configuration-errors", ("configuration_errors", FrequencySynchronization.Nodes.Node.ConfigurationErrors)), ("ptp-data", ("ptp_data", FrequencySynchronization.Nodes.Node.PtpData)), ("ssm-summary", ("ssm_summary", FrequencySynchronization.Nodes.Node.SsmSummary)), ("detailed-clock-datas", ("detailed_clock_datas", FrequencySynchronization.Nodes.Node.DetailedClockDatas)), ("clock-datas", ("clock_datas", FrequencySynchronization.Nodes.Node.ClockDatas)), ("selection-point-inputs", ("selection_point_inputs", FrequencySynchronization.Nodes.Node.SelectionPointInputs))])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
])
self.node = None
self.ntp_data = FrequencySynchronization.Nodes.Node.NtpData()
self.ntp_data.parent = self
self._children_name_map["ntp_data"] = "ntp-data"
self.selection_point_datas = FrequencySynchronization.Nodes.Node.SelectionPointDatas()
self.selection_point_datas.parent = self
self._children_name_map["selection_point_datas"] = "selection-point-datas"
self.configuration_errors = FrequencySynchronization.Nodes.Node.ConfigurationErrors()
self.configuration_errors.parent = self
self._children_name_map["configuration_errors"] = "configuration-errors"
self.ptp_data = FrequencySynchronization.Nodes.Node.PtpData()
self.ptp_data.parent = self
self._children_name_map["ptp_data"] = "ptp-data"
self.ssm_summary = FrequencySynchronization.Nodes.Node.SsmSummary()
self.ssm_summary.parent = self
self._children_name_map["ssm_summary"] = "ssm-summary"
self.detailed_clock_datas = FrequencySynchronization.Nodes.Node.DetailedClockDatas()
self.detailed_clock_datas.parent = self
self._children_name_map["detailed_clock_datas"] = "detailed-clock-datas"
self.clock_datas = FrequencySynchronization.Nodes.Node.ClockDatas()
self.clock_datas.parent = self
self._children_name_map["clock_datas"] = "clock-datas"
self.selection_point_inputs = FrequencySynchronization.Nodes.Node.SelectionPointInputs()
self.selection_point_inputs.parent = self
self._children_name_map["selection_point_inputs"] = "selection-point-inputs"
self._segment_path = lambda: "node" + "[node='" + str(self.node) + "']"
self._absolute_path = lambda: "Cisco-IOS-XR-freqsync-oper:frequency-synchronization/nodes/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node, ['node'], name, value)
class NtpData(Entity):
"""
NTP operational data
.. attribute:: quality_level_effective_input
The effective input quality level
**type**\: :py:class:`QualityLevelEffectiveInput <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.NtpData.QualityLevelEffectiveInput>`
.. attribute:: state
NTP state
**type**\: :py:class:`FsyncBagSourceState <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagSourceState>`
.. attribute:: supports_frequency
The NTP clock supports frequency
**type**\: bool
.. attribute:: supports_time_of_day
The NTP clock supports time
**type**\: bool
.. attribute:: frequency_priority
The priority of the NTP clock when selected between frequency sources
**type**\: int
**range:** 0..255
.. attribute:: time_of_day_priority
The priority of the NTP clock when selecting between time\-of\-day sources
**type**\: int
**range:** 0..255
.. attribute:: spa_selection_point
Spa selection points
**type**\: list of :py:class:`SpaSelectionPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.NtpData.SpaSelectionPoint>`
.. attribute:: node_selection_point
Node selection points
**type**\: list of :py:class:`NodeSelectionPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.NtpData.NodeSelectionPoint>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.NtpData, self).__init__()
self.yang_name = "ntp-data"
self.yang_parent_name = "node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("quality-level-effective-input", ("quality_level_effective_input", FrequencySynchronization.Nodes.Node.NtpData.QualityLevelEffectiveInput)), ("spa-selection-point", ("spa_selection_point", FrequencySynchronization.Nodes.Node.NtpData.SpaSelectionPoint)), ("node-selection-point", ("node_selection_point", FrequencySynchronization.Nodes.Node.NtpData.NodeSelectionPoint))])
self._leafs = OrderedDict([
('state', (YLeaf(YType.enumeration, 'state'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagSourceState', '')])),
('supports_frequency', (YLeaf(YType.boolean, 'supports-frequency'), ['bool'])),
('supports_time_of_day', (YLeaf(YType.boolean, 'supports-time-of-day'), ['bool'])),
('frequency_priority', (YLeaf(YType.uint8, 'frequency-priority'), ['int'])),
('time_of_day_priority', (YLeaf(YType.uint8, 'time-of-day-priority'), ['int'])),
])
self.state = None
self.supports_frequency = None
self.supports_time_of_day = None
self.frequency_priority = None
self.time_of_day_priority = None
self.quality_level_effective_input = FrequencySynchronization.Nodes.Node.NtpData.QualityLevelEffectiveInput()
self.quality_level_effective_input.parent = self
self._children_name_map["quality_level_effective_input"] = "quality-level-effective-input"
self.spa_selection_point = YList(self)
self.node_selection_point = YList(self)
self._segment_path = lambda: "ntp-data"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.NtpData, [u'state', u'supports_frequency', u'supports_time_of_day', u'frequency_priority', u'time_of_day_priority'], name, value)
class QualityLevelEffectiveInput(Entity):
"""
The effective input quality level
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.NtpData.QualityLevelEffectiveInput, self).__init__()
self.yang_name = "quality-level-effective-input"
self.yang_parent_name = "ntp-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "quality-level-effective-input"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.NtpData.QualityLevelEffectiveInput, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
class SpaSelectionPoint(Entity):
"""
Spa selection points
.. attribute:: selection_point
Selection point ID
**type**\: int
**range:** 0..255
.. attribute:: selection_point_description
Selection point description
**type**\: str
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.NtpData.SpaSelectionPoint, self).__init__()
self.yang_name = "spa-selection-point"
self.yang_parent_name = "ntp-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('selection_point', (YLeaf(YType.uint8, 'selection-point'), ['int'])),
('selection_point_description', (YLeaf(YType.str, 'selection-point-description'), ['str'])),
])
self.selection_point = None
self.selection_point_description = None
self._segment_path = lambda: "spa-selection-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.NtpData.SpaSelectionPoint, [u'selection_point', u'selection_point_description'], name, value)
class NodeSelectionPoint(Entity):
"""
Node selection points
.. attribute:: selection_point
Selection point ID
**type**\: int
**range:** 0..255
.. attribute:: selection_point_description
Selection point description
**type**\: str
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.NtpData.NodeSelectionPoint, self).__init__()
self.yang_name = "node-selection-point"
self.yang_parent_name = "ntp-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('selection_point', (YLeaf(YType.uint8, 'selection-point'), ['int'])),
('selection_point_description', (YLeaf(YType.str, 'selection-point-description'), ['str'])),
])
self.selection_point = None
self.selection_point_description = None
self._segment_path = lambda: "node-selection-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.NtpData.NodeSelectionPoint, [u'selection_point', u'selection_point_description'], name, value)
class SelectionPointDatas(Entity):
"""
Selection point data table
.. attribute:: selection_point_data
Operational data for a given selection point
**type**\: list of :py:class:`SelectionPointData <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.SelectionPointDatas, self).__init__()
self.yang_name = "selection-point-datas"
self.yang_parent_name = "node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("selection-point-data", ("selection_point_data", FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData))])
self._leafs = OrderedDict()
self.selection_point_data = YList(self)
self._segment_path = lambda: "selection-point-datas"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.SelectionPointDatas, [], name, value)
class SelectionPointData(Entity):
"""
Operational data for a given selection point
.. attribute:: selection_point (key)
Selection point ID
**type**\: int
**range:** 0..4294967295
.. attribute:: output
Information about the output of the selection point
**type**\: :py:class:`Output <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.Output>`
.. attribute:: last_programmed
Time the SP was last programmed
**type**\: :py:class:`LastProgrammed <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.LastProgrammed>`
.. attribute:: last_selection
Time the last selection was made
**type**\: :py:class:`LastSelection <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.LastSelection>`
.. attribute:: selection_point_type
Selection Point Type
**type**\: int
**range:** 0..255
.. attribute:: description
Description
**type**\: str
.. attribute:: inputs
Number of inputs
**type**\: int
**range:** 0..4294967295
.. attribute:: inputs_selected
Number of inputs that are selected
**type**\: int
**range:** 0..4294967295
.. attribute:: time_of_day_selection
The selection point is a time\-of\-day selection point
**type**\: bool
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData, self).__init__()
self.yang_name = "selection-point-data"
self.yang_parent_name = "selection-point-datas"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = ['selection_point']
self._child_classes = OrderedDict([("output", ("output", FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.Output)), ("last-programmed", ("last_programmed", FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.LastProgrammed)), ("last-selection", ("last_selection", FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.LastSelection))])
self._leafs = OrderedDict([
('selection_point', (YLeaf(YType.uint32, 'selection-point'), ['int'])),
('selection_point_type', (YLeaf(YType.uint8, 'selection-point-type'), ['int'])),
('description', (YLeaf(YType.str, 'description'), ['str'])),
('inputs', (YLeaf(YType.uint32, 'inputs'), ['int'])),
('inputs_selected', (YLeaf(YType.uint32, 'inputs-selected'), ['int'])),
('time_of_day_selection', (YLeaf(YType.boolean, 'time-of-day-selection'), ['bool'])),
])
self.selection_point = None
self.selection_point_type = None
self.description = None
self.inputs = None
self.inputs_selected = None
self.time_of_day_selection = None
self.output = FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.Output()
self.output.parent = self
self._children_name_map["output"] = "output"
self.last_programmed = FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.LastProgrammed()
self.last_programmed.parent = self
self._children_name_map["last_programmed"] = "last-programmed"
self.last_selection = FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.LastSelection()
self.last_selection.parent = self
self._children_name_map["last_selection"] = "last-selection"
self._segment_path = lambda: "selection-point-data" + "[selection-point='" + str(self.selection_point) + "']"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData, ['selection_point', u'selection_point_type', u'description', u'inputs', u'inputs_selected', u'time_of_day_selection'], name, value)
class Output(Entity):
"""
Information about the output of the selection
point
.. attribute:: local_clock_ouput
Used for local clock output
**type**\: bool
.. attribute:: local_line_output
Used for local line interface output
**type**\: bool
.. attribute:: local_time_of_day_output
Used for local time\-of\-day output
**type**\: bool
.. attribute:: spa_selection_point
SPA selection points
**type**\: list of :py:class:`SpaSelectionPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.Output.SpaSelectionPoint>`
.. attribute:: node_selection_point
Node selection points
**type**\: list of :py:class:`NodeSelectionPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.Output.NodeSelectionPoint>`
.. attribute:: chassis_selection_point
Chassis selection points
**type**\: list of :py:class:`ChassisSelectionPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.Output.ChassisSelectionPoint>`
.. attribute:: router_selection_point
Router selection points
**type**\: list of :py:class:`RouterSelectionPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.Output.RouterSelectionPoint>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.Output, self).__init__()
self.yang_name = "output"
self.yang_parent_name = "selection-point-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("spa-selection-point", ("spa_selection_point", FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.Output.SpaSelectionPoint)), ("node-selection-point", ("node_selection_point", FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.Output.NodeSelectionPoint)), ("chassis-selection-point", ("chassis_selection_point", FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.Output.ChassisSelectionPoint)), ("router-selection-point", ("router_selection_point", FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.Output.RouterSelectionPoint))])
self._leafs = OrderedDict([
('local_clock_ouput', (YLeaf(YType.boolean, 'local-clock-ouput'), ['bool'])),
('local_line_output', (YLeaf(YType.boolean, 'local-line-output'), ['bool'])),
('local_time_of_day_output', (YLeaf(YType.boolean, 'local-time-of-day-output'), ['bool'])),
])
self.local_clock_ouput = None
self.local_line_output = None
self.local_time_of_day_output = None
self.spa_selection_point = YList(self)
self.node_selection_point = YList(self)
self.chassis_selection_point = YList(self)
self.router_selection_point = YList(self)
self._segment_path = lambda: "output"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.Output, [u'local_clock_ouput', u'local_line_output', u'local_time_of_day_output'], name, value)
class SpaSelectionPoint(Entity):
"""
SPA selection points
.. attribute:: selection_point
Selection point ID
**type**\: int
**range:** 0..255
.. attribute:: selection_point_description
Selection point description
**type**\: str
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.Output.SpaSelectionPoint, self).__init__()
self.yang_name = "spa-selection-point"
self.yang_parent_name = "output"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('selection_point', (YLeaf(YType.uint8, 'selection-point'), ['int'])),
('selection_point_description', (YLeaf(YType.str, 'selection-point-description'), ['str'])),
])
self.selection_point = None
self.selection_point_description = None
self._segment_path = lambda: "spa-selection-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.Output.SpaSelectionPoint, [u'selection_point', u'selection_point_description'], name, value)
class NodeSelectionPoint(Entity):
"""
Node selection points
.. attribute:: selection_point
Selection point ID
**type**\: int
**range:** 0..255
.. attribute:: selection_point_description
Selection point description
**type**\: str
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.Output.NodeSelectionPoint, self).__init__()
self.yang_name = "node-selection-point"
self.yang_parent_name = "output"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('selection_point', (YLeaf(YType.uint8, 'selection-point'), ['int'])),
('selection_point_description', (YLeaf(YType.str, 'selection-point-description'), ['str'])),
])
self.selection_point = None
self.selection_point_description = None
self._segment_path = lambda: "node-selection-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.Output.NodeSelectionPoint, [u'selection_point', u'selection_point_description'], name, value)
class ChassisSelectionPoint(Entity):
"""
Chassis selection points
.. attribute:: selection_point
Selection point ID
**type**\: int
**range:** 0..255
.. attribute:: selection_point_description
Selection point description
**type**\: str
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.Output.ChassisSelectionPoint, self).__init__()
self.yang_name = "chassis-selection-point"
self.yang_parent_name = "output"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('selection_point', (YLeaf(YType.uint8, 'selection-point'), ['int'])),
('selection_point_description', (YLeaf(YType.str, 'selection-point-description'), ['str'])),
])
self.selection_point = None
self.selection_point_description = None
self._segment_path = lambda: "chassis-selection-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.Output.ChassisSelectionPoint, [u'selection_point', u'selection_point_description'], name, value)
class RouterSelectionPoint(Entity):
"""
Router selection points
.. attribute:: selection_point
Selection point ID
**type**\: int
**range:** 0..255
.. attribute:: selection_point_description
Selection point description
**type**\: str
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.Output.RouterSelectionPoint, self).__init__()
self.yang_name = "router-selection-point"
self.yang_parent_name = "output"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('selection_point', (YLeaf(YType.uint8, 'selection-point'), ['int'])),
('selection_point_description', (YLeaf(YType.str, 'selection-point-description'), ['str'])),
])
self.selection_point = None
self.selection_point_description = None
self._segment_path = lambda: "router-selection-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.Output.RouterSelectionPoint, [u'selection_point', u'selection_point_description'], name, value)
class LastProgrammed(Entity):
"""
Time the SP was last programmed
.. attribute:: seconds
Seconds
**type**\: int
**range:** 0..4294967295
**units**\: second
.. attribute:: nanoseconds
Nanoseconds
**type**\: int
**range:** 0..4294967295
**units**\: nanosecond
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.LastProgrammed, self).__init__()
self.yang_name = "last-programmed"
self.yang_parent_name = "selection-point-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('seconds', (YLeaf(YType.uint32, 'seconds'), ['int'])),
('nanoseconds', (YLeaf(YType.uint32, 'nanoseconds'), ['int'])),
])
self.seconds = None
self.nanoseconds = None
self._segment_path = lambda: "last-programmed"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.LastProgrammed, [u'seconds', u'nanoseconds'], name, value)
class LastSelection(Entity):
"""
Time the last selection was made
.. attribute:: seconds
Seconds
**type**\: int
**range:** 0..4294967295
**units**\: second
.. attribute:: nanoseconds
Nanoseconds
**type**\: int
**range:** 0..4294967295
**units**\: nanosecond
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.LastSelection, self).__init__()
self.yang_name = "last-selection"
self.yang_parent_name = "selection-point-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('seconds', (YLeaf(YType.uint32, 'seconds'), ['int'])),
('nanoseconds', (YLeaf(YType.uint32, 'nanoseconds'), ['int'])),
])
self.seconds = None
self.nanoseconds = None
self._segment_path = lambda: "last-selection"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.SelectionPointDatas.SelectionPointData.LastSelection, [u'seconds', u'nanoseconds'], name, value)
class ConfigurationErrors(Entity):
"""
Configuration error operational data
.. attribute:: error_source
Configuration errors
**type**\: list of :py:class:`ErrorSource <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ConfigurationErrors, self).__init__()
self.yang_name = "configuration-errors"
self.yang_parent_name = "node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("error-source", ("error_source", FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource))])
self._leafs = OrderedDict()
self.error_source = YList(self)
self._segment_path = lambda: "configuration-errors"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ConfigurationErrors, [], name, value)
class ErrorSource(Entity):
"""
Configuration errors
.. attribute:: source
Source
**type**\: :py:class:`Source <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.Source>`
.. attribute:: input_min_ql
Configured minimum input QL
**type**\: :py:class:`InputMinQl <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.InputMinQl>`
.. attribute:: input_exact_ql
Configured exact input QL
**type**\: :py:class:`InputExactQl <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.InputExactQl>`
.. attribute:: input_max_ql
Configured maximum input QL
**type**\: :py:class:`InputMaxQl <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.InputMaxQl>`
.. attribute:: output_min_ql
Configured mininum output QL
**type**\: :py:class:`OutputMinQl <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.OutputMinQl>`
.. attribute:: output_exact_ql
Configured exact output QL
**type**\: :py:class:`OutputExactQl <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.OutputExactQl>`
.. attribute:: output_max_ql
Configured exact maximum QL
**type**\: :py:class:`OutputMaxQl <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.OutputMaxQl>`
.. attribute:: enable_error
Frequency Synchronization enable error
**type**\: bool
.. attribute:: input_min_error
Minimum input QL config error
**type**\: bool
.. attribute:: input_exact_error
Exact input QL config error
**type**\: bool
.. attribute:: input_max_error
Maximum input Ql config error
**type**\: bool
.. attribute:: ouput_min_error
Minimum output QL config error
**type**\: bool
.. attribute:: output_exact_error
Exact output QL config error
**type**\: bool
.. attribute:: output_max_error
Maximum output QL config error
**type**\: bool
.. attribute:: input_output_mismatch
Input/Output mismatch error
**type**\: bool
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource, self).__init__()
self.yang_name = "error-source"
self.yang_parent_name = "configuration-errors"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("source", ("source", FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.Source)), ("input-min-ql", ("input_min_ql", FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.InputMinQl)), ("input-exact-ql", ("input_exact_ql", FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.InputExactQl)), ("input-max-ql", ("input_max_ql", FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.InputMaxQl)), ("output-min-ql", ("output_min_ql", FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.OutputMinQl)), ("output-exact-ql", ("output_exact_ql", FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.OutputExactQl)), ("output-max-ql", ("output_max_ql", FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.OutputMaxQl))])
self._leafs = OrderedDict([
('enable_error', (YLeaf(YType.boolean, 'enable-error'), ['bool'])),
('input_min_error', (YLeaf(YType.boolean, 'input-min-error'), ['bool'])),
('input_exact_error', (YLeaf(YType.boolean, 'input-exact-error'), ['bool'])),
('input_max_error', (YLeaf(YType.boolean, 'input-max-error'), ['bool'])),
('ouput_min_error', (YLeaf(YType.boolean, 'ouput-min-error'), ['bool'])),
('output_exact_error', (YLeaf(YType.boolean, 'output-exact-error'), ['bool'])),
('output_max_error', (YLeaf(YType.boolean, 'output-max-error'), ['bool'])),
('input_output_mismatch', (YLeaf(YType.boolean, 'input-output-mismatch'), ['bool'])),
])
self.enable_error = None
self.input_min_error = None
self.input_exact_error = None
self.input_max_error = None
self.ouput_min_error = None
self.output_exact_error = None
self.output_max_error = None
self.input_output_mismatch = None
self.source = FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.Source()
self.source.parent = self
self._children_name_map["source"] = "source"
self.input_min_ql = FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.InputMinQl()
self.input_min_ql.parent = self
self._children_name_map["input_min_ql"] = "input-min-ql"
self.input_exact_ql = FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.InputExactQl()
self.input_exact_ql.parent = self
self._children_name_map["input_exact_ql"] = "input-exact-ql"
self.input_max_ql = FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.InputMaxQl()
self.input_max_ql.parent = self
self._children_name_map["input_max_ql"] = "input-max-ql"
self.output_min_ql = FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.OutputMinQl()
self.output_min_ql.parent = self
self._children_name_map["output_min_ql"] = "output-min-ql"
self.output_exact_ql = FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.OutputExactQl()
self.output_exact_ql.parent = self
self._children_name_map["output_exact_ql"] = "output-exact-ql"
self.output_max_ql = FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.OutputMaxQl()
self.output_max_ql.parent = self
self._children_name_map["output_max_ql"] = "output-max-ql"
self._segment_path = lambda: "error-source"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource, [u'enable_error', u'input_min_error', u'input_exact_error', u'input_max_error', u'ouput_min_error', u'output_exact_error', u'output_max_error', u'input_output_mismatch'], name, value)
class Source(Entity):
"""
Source
.. attribute:: clock_id
Clock ID
**type**\: :py:class:`ClockId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.Source.ClockId>`
.. attribute:: gnss_receiver_id
GNSS Receiver ID
**type**\: :py:class:`GnssReceiverId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.Source.GnssReceiverId>`
.. attribute:: source_class
SourceClass
**type**\: :py:class:`FsyncBagSourceClass <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagSourceClass>`
.. attribute:: ethernet_interface
Ethernet interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: sonet_interface
SONET interfaces
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: node
Internal Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: ptp_node
PTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: satellite_access_interface
Satellite Access Interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: ntp_node
NTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.Source, self).__init__()
self.yang_name = "source"
self.yang_parent_name = "error-source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("clock-id", ("clock_id", FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.Source.ClockId)), ("gnss-receiver-id", ("gnss_receiver_id", FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.Source.GnssReceiverId))])
self._leafs = OrderedDict([
('source_class', (YLeaf(YType.enumeration, 'source-class'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagSourceClass', '')])),
('ethernet_interface', (YLeaf(YType.str, 'ethernet-interface'), ['str'])),
('sonet_interface', (YLeaf(YType.str, 'sonet-interface'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
('ptp_node', (YLeaf(YType.str, 'ptp-node'), ['str'])),
('satellite_access_interface', (YLeaf(YType.str, 'satellite-access-interface'), ['str'])),
('ntp_node', (YLeaf(YType.str, 'ntp-node'), ['str'])),
])
self.source_class = None
self.ethernet_interface = None
self.sonet_interface = None
self.node = None
self.ptp_node = None
self.satellite_access_interface = None
self.ntp_node = None
self.clock_id = FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.Source.ClockId()
self.clock_id.parent = self
self._children_name_map["clock_id"] = "clock-id"
self.gnss_receiver_id = FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.Source.GnssReceiverId()
self.gnss_receiver_id.parent = self
self._children_name_map["gnss_receiver_id"] = "gnss-receiver-id"
self._segment_path = lambda: "source"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.Source, [u'source_class', u'ethernet_interface', u'sonet_interface', u'node', u'ptp_node', u'satellite_access_interface', u'ntp_node'], name, value)
class ClockId(Entity):
"""
Clock ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.Source.ClockId, self).__init__()
self.yang_name = "clock-id"
self.yang_parent_name = "source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "clock-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.Source.ClockId, [u'node', u'id', u'clock_name'], name, value)
class GnssReceiverId(Entity):
"""
GNSS Receiver ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.Source.GnssReceiverId, self).__init__()
self.yang_name = "gnss-receiver-id"
self.yang_parent_name = "source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "gnss-receiver-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.Source.GnssReceiverId, [u'node', u'id', u'clock_name'], name, value)
class InputMinQl(Entity):
"""
Configured minimum input QL
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.InputMinQl, self).__init__()
self.yang_name = "input-min-ql"
self.yang_parent_name = "error-source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "input-min-ql"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.InputMinQl, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
class InputExactQl(Entity):
"""
Configured exact input QL
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.InputExactQl, self).__init__()
self.yang_name = "input-exact-ql"
self.yang_parent_name = "error-source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "input-exact-ql"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.InputExactQl, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
class InputMaxQl(Entity):
"""
Configured maximum input QL
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.InputMaxQl, self).__init__()
self.yang_name = "input-max-ql"
self.yang_parent_name = "error-source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "input-max-ql"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.InputMaxQl, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
class OutputMinQl(Entity):
"""
Configured mininum output QL
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.OutputMinQl, self).__init__()
self.yang_name = "output-min-ql"
self.yang_parent_name = "error-source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "output-min-ql"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.OutputMinQl, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
class OutputExactQl(Entity):
"""
Configured exact output QL
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.OutputExactQl, self).__init__()
self.yang_name = "output-exact-ql"
self.yang_parent_name = "error-source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "output-exact-ql"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.OutputExactQl, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
class OutputMaxQl(Entity):
"""
Configured exact maximum QL
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.OutputMaxQl, self).__init__()
self.yang_name = "output-max-ql"
self.yang_parent_name = "error-source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "output-max-ql"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ConfigurationErrors.ErrorSource.OutputMaxQl, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
class PtpData(Entity):
"""
PTP operational data
.. attribute:: quality_level_effective_input
The effective input quality level
**type**\: :py:class:`QualityLevelEffectiveInput <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.PtpData.QualityLevelEffectiveInput>`
.. attribute:: state
PTP state
**type**\: :py:class:`FsyncBagSourceState <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagSourceState>`
.. attribute:: supports_frequency
The PTP clock supports frequency
**type**\: bool
.. attribute:: supports_time_of_day
The PTP clock supports time
**type**\: bool
.. attribute:: frequency_priority
The priority of the PTP clock when selected between frequency sources
**type**\: int
**range:** 0..255
.. attribute:: time_of_day_priority
The priority of the PTP clock when selecting between time\-of\-day sources
**type**\: int
**range:** 0..255
.. attribute:: spa_selection_point
Spa selection points
**type**\: list of :py:class:`SpaSelectionPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.PtpData.SpaSelectionPoint>`
.. attribute:: node_selection_point
Node selection points
**type**\: list of :py:class:`NodeSelectionPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.PtpData.NodeSelectionPoint>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.PtpData, self).__init__()
self.yang_name = "ptp-data"
self.yang_parent_name = "node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("quality-level-effective-input", ("quality_level_effective_input", FrequencySynchronization.Nodes.Node.PtpData.QualityLevelEffectiveInput)), ("spa-selection-point", ("spa_selection_point", FrequencySynchronization.Nodes.Node.PtpData.SpaSelectionPoint)), ("node-selection-point", ("node_selection_point", FrequencySynchronization.Nodes.Node.PtpData.NodeSelectionPoint))])
self._leafs = OrderedDict([
('state', (YLeaf(YType.enumeration, 'state'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagSourceState', '')])),
('supports_frequency', (YLeaf(YType.boolean, 'supports-frequency'), ['bool'])),
('supports_time_of_day', (YLeaf(YType.boolean, 'supports-time-of-day'), ['bool'])),
('frequency_priority', (YLeaf(YType.uint8, 'frequency-priority'), ['int'])),
('time_of_day_priority', (YLeaf(YType.uint8, 'time-of-day-priority'), ['int'])),
])
self.state = None
self.supports_frequency = None
self.supports_time_of_day = None
self.frequency_priority = None
self.time_of_day_priority = None
self.quality_level_effective_input = FrequencySynchronization.Nodes.Node.PtpData.QualityLevelEffectiveInput()
self.quality_level_effective_input.parent = self
self._children_name_map["quality_level_effective_input"] = "quality-level-effective-input"
self.spa_selection_point = YList(self)
self.node_selection_point = YList(self)
self._segment_path = lambda: "ptp-data"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.PtpData, [u'state', u'supports_frequency', u'supports_time_of_day', u'frequency_priority', u'time_of_day_priority'], name, value)
class QualityLevelEffectiveInput(Entity):
"""
The effective input quality level
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.PtpData.QualityLevelEffectiveInput, self).__init__()
self.yang_name = "quality-level-effective-input"
self.yang_parent_name = "ptp-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "quality-level-effective-input"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.PtpData.QualityLevelEffectiveInput, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
class SpaSelectionPoint(Entity):
"""
Spa selection points
.. attribute:: selection_point
Selection point ID
**type**\: int
**range:** 0..255
.. attribute:: selection_point_description
Selection point description
**type**\: str
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.PtpData.SpaSelectionPoint, self).__init__()
self.yang_name = "spa-selection-point"
self.yang_parent_name = "ptp-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('selection_point', (YLeaf(YType.uint8, 'selection-point'), ['int'])),
('selection_point_description', (YLeaf(YType.str, 'selection-point-description'), ['str'])),
])
self.selection_point = None
self.selection_point_description = None
self._segment_path = lambda: "spa-selection-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.PtpData.SpaSelectionPoint, [u'selection_point', u'selection_point_description'], name, value)
class NodeSelectionPoint(Entity):
"""
Node selection points
.. attribute:: selection_point
Selection point ID
**type**\: int
**range:** 0..255
.. attribute:: selection_point_description
Selection point description
**type**\: str
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.PtpData.NodeSelectionPoint, self).__init__()
self.yang_name = "node-selection-point"
self.yang_parent_name = "ptp-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('selection_point', (YLeaf(YType.uint8, 'selection-point'), ['int'])),
('selection_point_description', (YLeaf(YType.str, 'selection-point-description'), ['str'])),
])
self.selection_point = None
self.selection_point_description = None
self._segment_path = lambda: "node-selection-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.PtpData.NodeSelectionPoint, [u'selection_point', u'selection_point_description'], name, value)
class SsmSummary(Entity):
"""
SSM operational data
.. attribute:: ethernet_sources
Number of ethernet interfaces in synchronous mode
**type**\: int
**range:** 0..4294967295
.. attribute:: ethernet_sources_select
Number of ethernet interfaces assigned for selection
**type**\: int
**range:** 0..4294967295
.. attribute:: ethernet_sources_enabled
Number of ethernet interfaces with SSM enabled
**type**\: int
**range:** 0..4294967295
.. attribute:: sonet_sources
Number of SONET interfaces in synchronous mode
**type**\: int
**range:** 0..4294967295
.. attribute:: sonet_sources_select
Number of SONET interfaces assigned for selection
**type**\: int
**range:** 0..4294967295
.. attribute:: sonet_sources_enabled
Number of SONET interfaces with SSM enabled
**type**\: int
**range:** 0..4294967295
.. attribute:: events_sent
Total event SSMs sent
**type**\: int
**range:** 0..4294967295
.. attribute:: events_received
Total event SSMs received
**type**\: int
**range:** 0..4294967295
.. attribute:: infos_sent
Total information SSMs sent
**type**\: int
**range:** 0..4294967295
.. attribute:: infos_received
Total information SSMs received
**type**\: int
**range:** 0..4294967295
.. attribute:: dn_us_sent
Total DNU SSMs sent
**type**\: int
**range:** 0..4294967295
.. attribute:: dn_us_received
Total DNU SSMs received
**type**\: int
**range:** 0..4294967295
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.SsmSummary, self).__init__()
self.yang_name = "ssm-summary"
self.yang_parent_name = "node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('ethernet_sources', (YLeaf(YType.uint32, 'ethernet-sources'), ['int'])),
('ethernet_sources_select', (YLeaf(YType.uint32, 'ethernet-sources-select'), ['int'])),
('ethernet_sources_enabled', (YLeaf(YType.uint32, 'ethernet-sources-enabled'), ['int'])),
('sonet_sources', (YLeaf(YType.uint32, 'sonet-sources'), ['int'])),
('sonet_sources_select', (YLeaf(YType.uint32, 'sonet-sources-select'), ['int'])),
('sonet_sources_enabled', (YLeaf(YType.uint32, 'sonet-sources-enabled'), ['int'])),
('events_sent', (YLeaf(YType.uint32, 'events-sent'), ['int'])),
('events_received', (YLeaf(YType.uint32, 'events-received'), ['int'])),
('infos_sent', (YLeaf(YType.uint32, 'infos-sent'), ['int'])),
('infos_received', (YLeaf(YType.uint32, 'infos-received'), ['int'])),
('dn_us_sent', (YLeaf(YType.uint32, 'dn-us-sent'), ['int'])),
('dn_us_received', (YLeaf(YType.uint32, 'dn-us-received'), ['int'])),
])
self.ethernet_sources = None
self.ethernet_sources_select = None
self.ethernet_sources_enabled = None
self.sonet_sources = None
self.sonet_sources_select = None
self.sonet_sources_enabled = None
self.events_sent = None
self.events_received = None
self.infos_sent = None
self.infos_received = None
self.dn_us_sent = None
self.dn_us_received = None
self._segment_path = lambda: "ssm-summary"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.SsmSummary, [u'ethernet_sources', u'ethernet_sources_select', u'ethernet_sources_enabled', u'sonet_sources', u'sonet_sources_select', u'sonet_sources_enabled', u'events_sent', u'events_received', u'infos_sent', u'infos_received', u'dn_us_sent', u'dn_us_received'], name, value)
class DetailedClockDatas(Entity):
"""
Table for detailed clock operational data
.. attribute:: detailed_clock_data
Detailed operational data for a particular clock
**type**\: list of :py:class:`DetailedClockData <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.DetailedClockDatas, self).__init__()
self.yang_name = "detailed-clock-datas"
self.yang_parent_name = "node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("detailed-clock-data", ("detailed_clock_data", FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData))])
self._leafs = OrderedDict()
self.detailed_clock_data = YList(self)
self._segment_path = lambda: "detailed-clock-datas"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.DetailedClockDatas, [], name, value)
class DetailedClockData(Entity):
"""
Detailed operational data for a particular
clock
.. attribute:: clock_type (key)
Clock type
**type**\: :py:class:`FsyncClock <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_datatypes.FsyncClock>`
.. attribute:: id (key)
Clock ID (port number for clock interfaces, receiver number for GNSS receivers
**type**\: int
**range:** 0..4294967295
.. attribute:: source
The source ID for the clock
**type**\: :py:class:`Source <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.Source>`
.. attribute:: selected_source
Timing source selected for clock output
**type**\: :py:class:`SelectedSource <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.SelectedSource>`
.. attribute:: quality_level_received
Received quality level
**type**\: :py:class:`QualityLevelReceived <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelReceived>`
.. attribute:: quality_level_damped
Quality level after damping has been applied
**type**\: :py:class:`QualityLevelDamped <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelDamped>`
.. attribute:: quality_level_effective_input
The effective input quality level
**type**\: :py:class:`QualityLevelEffectiveInput <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelEffectiveInput>`
.. attribute:: quality_level_effective_output
The effective output quality level
**type**\: :py:class:`QualityLevelEffectiveOutput <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelEffectiveOutput>`
.. attribute:: quality_level_selected_source
The quality level of the source driving this interface
**type**\: :py:class:`QualityLevelSelectedSource <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelSelectedSource>`
.. attribute:: state
Clock state
**type**\: :py:class:`FsyncBagSourceState <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagSourceState>`
.. attribute:: down_reason
Why the clock is down
**type**\: str
.. attribute:: description
Clock description
**type**\: str
.. attribute:: priority
Priority
**type**\: int
**range:** 0..255
.. attribute:: time_of_day_priority
Time\-of\-day priority
**type**\: int
**range:** 0..255
.. attribute:: ssm_support
The clock supports SSMs
**type**\: bool
.. attribute:: ssm_enabled
The clock output is squelched
**type**\: bool
.. attribute:: loopback
The clock is looped back
**type**\: bool
.. attribute:: selection_input
The clock is an input for selection
**type**\: bool
.. attribute:: squelched
The clock output is squelched
**type**\: bool
.. attribute:: damping_state
Damping state
**type**\: :py:class:`FsyncBagDampingState <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagDampingState>`
.. attribute:: damping_time
Time until damping state changes in ms
**type**\: int
**range:** 0..4294967295
.. attribute:: input_disabled
Timing input is disabled
**type**\: bool
.. attribute:: output_disabled
Timing output is disabled
**type**\: bool
.. attribute:: wait_to_restore_time
Wait\-to\-restore time for the clock
**type**\: int
**range:** 0..65535
.. attribute:: clock_type_xr
The type of clock
**type**\: :py:class:`FsyncBagClockIntfClass <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagClockIntfClass>`
.. attribute:: supports_frequency
The PTP clock supports frequency
**type**\: bool
.. attribute:: supports_time_of_day
The PTP clock supports time
**type**\: bool
.. attribute:: spa_selection_point
Spa selection points
**type**\: list of :py:class:`SpaSelectionPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.SpaSelectionPoint>`
.. attribute:: node_selection_point
Node selection points
**type**\: list of :py:class:`NodeSelectionPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.NodeSelectionPoint>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData, self).__init__()
self.yang_name = "detailed-clock-data"
self.yang_parent_name = "detailed-clock-datas"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = ['clock_type','id']
self._child_classes = OrderedDict([("source", ("source", FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.Source)), ("selected-source", ("selected_source", FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.SelectedSource)), ("quality-level-received", ("quality_level_received", FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelReceived)), ("quality-level-damped", ("quality_level_damped", FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelDamped)), ("quality-level-effective-input", ("quality_level_effective_input", FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelEffectiveInput)), ("quality-level-effective-output", ("quality_level_effective_output", FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelEffectiveOutput)), ("quality-level-selected-source", ("quality_level_selected_source", FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelSelectedSource)), ("spa-selection-point", ("spa_selection_point", FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.SpaSelectionPoint)), ("node-selection-point", ("node_selection_point", FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.NodeSelectionPoint))])
self._leafs = OrderedDict([
('clock_type', (YLeaf(YType.enumeration, 'clock-type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_datatypes', 'FsyncClock', '')])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('state', (YLeaf(YType.enumeration, 'state'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagSourceState', '')])),
('down_reason', (YLeaf(YType.str, 'down-reason'), ['str'])),
('description', (YLeaf(YType.str, 'description'), ['str'])),
('priority', (YLeaf(YType.uint8, 'priority'), ['int'])),
('time_of_day_priority', (YLeaf(YType.uint8, 'time-of-day-priority'), ['int'])),
('ssm_support', (YLeaf(YType.boolean, 'ssm-support'), ['bool'])),
('ssm_enabled', (YLeaf(YType.boolean, 'ssm-enabled'), ['bool'])),
('loopback', (YLeaf(YType.boolean, 'loopback'), ['bool'])),
('selection_input', (YLeaf(YType.boolean, 'selection-input'), ['bool'])),
('squelched', (YLeaf(YType.boolean, 'squelched'), ['bool'])),
('damping_state', (YLeaf(YType.enumeration, 'damping-state'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagDampingState', '')])),
('damping_time', (YLeaf(YType.uint32, 'damping-time'), ['int'])),
('input_disabled', (YLeaf(YType.boolean, 'input-disabled'), ['bool'])),
('output_disabled', (YLeaf(YType.boolean, 'output-disabled'), ['bool'])),
('wait_to_restore_time', (YLeaf(YType.uint16, 'wait-to-restore-time'), ['int'])),
('clock_type_xr', (YLeaf(YType.enumeration, 'clock-type-xr'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagClockIntfClass', '')])),
('supports_frequency', (YLeaf(YType.boolean, 'supports-frequency'), ['bool'])),
('supports_time_of_day', (YLeaf(YType.boolean, 'supports-time-of-day'), ['bool'])),
])
self.clock_type = None
self.id = None
self.state = None
self.down_reason = None
self.description = None
self.priority = None
self.time_of_day_priority = None
self.ssm_support = None
self.ssm_enabled = None
self.loopback = None
self.selection_input = None
self.squelched = None
self.damping_state = None
self.damping_time = None
self.input_disabled = None
self.output_disabled = None
self.wait_to_restore_time = None
self.clock_type_xr = None
self.supports_frequency = None
self.supports_time_of_day = None
self.source = FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.Source()
self.source.parent = self
self._children_name_map["source"] = "source"
self.selected_source = FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.SelectedSource()
self.selected_source.parent = self
self._children_name_map["selected_source"] = "selected-source"
self.quality_level_received = FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelReceived()
self.quality_level_received.parent = self
self._children_name_map["quality_level_received"] = "quality-level-received"
self.quality_level_damped = FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelDamped()
self.quality_level_damped.parent = self
self._children_name_map["quality_level_damped"] = "quality-level-damped"
self.quality_level_effective_input = FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelEffectiveInput()
self.quality_level_effective_input.parent = self
self._children_name_map["quality_level_effective_input"] = "quality-level-effective-input"
self.quality_level_effective_output = FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelEffectiveOutput()
self.quality_level_effective_output.parent = self
self._children_name_map["quality_level_effective_output"] = "quality-level-effective-output"
self.quality_level_selected_source = FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelSelectedSource()
self.quality_level_selected_source.parent = self
self._children_name_map["quality_level_selected_source"] = "quality-level-selected-source"
self.spa_selection_point = YList(self)
self.node_selection_point = YList(self)
self._segment_path = lambda: "detailed-clock-data" + "[clock-type='" + str(self.clock_type) + "']" + "[id='" + str(self.id) + "']"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData, ['clock_type', 'id', u'state', u'down_reason', u'description', u'priority', u'time_of_day_priority', u'ssm_support', u'ssm_enabled', u'loopback', u'selection_input', u'squelched', u'damping_state', u'damping_time', u'input_disabled', u'output_disabled', u'wait_to_restore_time', u'clock_type_xr', u'supports_frequency', u'supports_time_of_day'], name, value)
class Source(Entity):
"""
The source ID for the clock
.. attribute:: clock_id
Clock ID
**type**\: :py:class:`ClockId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.Source.ClockId>`
.. attribute:: gnss_receiver_id
GNSS Receiver ID
**type**\: :py:class:`GnssReceiverId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.Source.GnssReceiverId>`
.. attribute:: source_class
SourceClass
**type**\: :py:class:`FsyncBagSourceClass <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagSourceClass>`
.. attribute:: ethernet_interface
Ethernet interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: sonet_interface
SONET interfaces
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: node
Internal Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: ptp_node
PTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: satellite_access_interface
Satellite Access Interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: ntp_node
NTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.Source, self).__init__()
self.yang_name = "source"
self.yang_parent_name = "detailed-clock-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("clock-id", ("clock_id", FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.Source.ClockId)), ("gnss-receiver-id", ("gnss_receiver_id", FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.Source.GnssReceiverId))])
self._leafs = OrderedDict([
('source_class', (YLeaf(YType.enumeration, 'source-class'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagSourceClass', '')])),
('ethernet_interface', (YLeaf(YType.str, 'ethernet-interface'), ['str'])),
('sonet_interface', (YLeaf(YType.str, 'sonet-interface'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
('ptp_node', (YLeaf(YType.str, 'ptp-node'), ['str'])),
('satellite_access_interface', (YLeaf(YType.str, 'satellite-access-interface'), ['str'])),
('ntp_node', (YLeaf(YType.str, 'ntp-node'), ['str'])),
])
self.source_class = None
self.ethernet_interface = None
self.sonet_interface = None
self.node = None
self.ptp_node = None
self.satellite_access_interface = None
self.ntp_node = None
self.clock_id = FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.Source.ClockId()
self.clock_id.parent = self
self._children_name_map["clock_id"] = "clock-id"
self.gnss_receiver_id = FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.Source.GnssReceiverId()
self.gnss_receiver_id.parent = self
self._children_name_map["gnss_receiver_id"] = "gnss-receiver-id"
self._segment_path = lambda: "source"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.Source, [u'source_class', u'ethernet_interface', u'sonet_interface', u'node', u'ptp_node', u'satellite_access_interface', u'ntp_node'], name, value)
class ClockId(Entity):
"""
Clock ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.Source.ClockId, self).__init__()
self.yang_name = "clock-id"
self.yang_parent_name = "source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "clock-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.Source.ClockId, [u'node', u'id', u'clock_name'], name, value)
class GnssReceiverId(Entity):
"""
GNSS Receiver ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.Source.GnssReceiverId, self).__init__()
self.yang_name = "gnss-receiver-id"
self.yang_parent_name = "source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "gnss-receiver-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.Source.GnssReceiverId, [u'node', u'id', u'clock_name'], name, value)
class SelectedSource(Entity):
"""
Timing source selected for clock output
.. attribute:: clock_id
Clock ID
**type**\: :py:class:`ClockId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.SelectedSource.ClockId>`
.. attribute:: gnss_receiver_id
GNSS Receiver ID
**type**\: :py:class:`GnssReceiverId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.SelectedSource.GnssReceiverId>`
.. attribute:: source_class
SourceClass
**type**\: :py:class:`FsyncBagSourceClass <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagSourceClass>`
.. attribute:: ethernet_interface
Ethernet interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: sonet_interface
SONET interfaces
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: node
Internal Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: ptp_node
PTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: satellite_access_interface
Satellite Access Interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: ntp_node
NTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.SelectedSource, self).__init__()
self.yang_name = "selected-source"
self.yang_parent_name = "detailed-clock-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("clock-id", ("clock_id", FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.SelectedSource.ClockId)), ("gnss-receiver-id", ("gnss_receiver_id", FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.SelectedSource.GnssReceiverId))])
self._leafs = OrderedDict([
('source_class', (YLeaf(YType.enumeration, 'source-class'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagSourceClass', '')])),
('ethernet_interface', (YLeaf(YType.str, 'ethernet-interface'), ['str'])),
('sonet_interface', (YLeaf(YType.str, 'sonet-interface'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
('ptp_node', (YLeaf(YType.str, 'ptp-node'), ['str'])),
('satellite_access_interface', (YLeaf(YType.str, 'satellite-access-interface'), ['str'])),
('ntp_node', (YLeaf(YType.str, 'ntp-node'), ['str'])),
])
self.source_class = None
self.ethernet_interface = None
self.sonet_interface = None
self.node = None
self.ptp_node = None
self.satellite_access_interface = None
self.ntp_node = None
self.clock_id = FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.SelectedSource.ClockId()
self.clock_id.parent = self
self._children_name_map["clock_id"] = "clock-id"
self.gnss_receiver_id = FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.SelectedSource.GnssReceiverId()
self.gnss_receiver_id.parent = self
self._children_name_map["gnss_receiver_id"] = "gnss-receiver-id"
self._segment_path = lambda: "selected-source"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.SelectedSource, [u'source_class', u'ethernet_interface', u'sonet_interface', u'node', u'ptp_node', u'satellite_access_interface', u'ntp_node'], name, value)
class ClockId(Entity):
"""
Clock ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.SelectedSource.ClockId, self).__init__()
self.yang_name = "clock-id"
self.yang_parent_name = "selected-source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "clock-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.SelectedSource.ClockId, [u'node', u'id', u'clock_name'], name, value)
class GnssReceiverId(Entity):
"""
GNSS Receiver ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.SelectedSource.GnssReceiverId, self).__init__()
self.yang_name = "gnss-receiver-id"
self.yang_parent_name = "selected-source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "gnss-receiver-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.SelectedSource.GnssReceiverId, [u'node', u'id', u'clock_name'], name, value)
class QualityLevelReceived(Entity):
"""
Received quality level
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelReceived, self).__init__()
self.yang_name = "quality-level-received"
self.yang_parent_name = "detailed-clock-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "quality-level-received"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelReceived, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
class QualityLevelDamped(Entity):
"""
Quality level after damping has been applied
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelDamped, self).__init__()
self.yang_name = "quality-level-damped"
self.yang_parent_name = "detailed-clock-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "quality-level-damped"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelDamped, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
class QualityLevelEffectiveInput(Entity):
"""
The effective input quality level
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelEffectiveInput, self).__init__()
self.yang_name = "quality-level-effective-input"
self.yang_parent_name = "detailed-clock-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "quality-level-effective-input"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelEffectiveInput, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
class QualityLevelEffectiveOutput(Entity):
"""
The effective output quality level
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelEffectiveOutput, self).__init__()
self.yang_name = "quality-level-effective-output"
self.yang_parent_name = "detailed-clock-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "quality-level-effective-output"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelEffectiveOutput, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
class QualityLevelSelectedSource(Entity):
"""
The quality level of the source driving this
interface
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelSelectedSource, self).__init__()
self.yang_name = "quality-level-selected-source"
self.yang_parent_name = "detailed-clock-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "quality-level-selected-source"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.QualityLevelSelectedSource, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
class SpaSelectionPoint(Entity):
"""
Spa selection points
.. attribute:: selection_point
Selection point ID
**type**\: int
**range:** 0..255
.. attribute:: selection_point_description
Selection point description
**type**\: str
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.SpaSelectionPoint, self).__init__()
self.yang_name = "spa-selection-point"
self.yang_parent_name = "detailed-clock-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('selection_point', (YLeaf(YType.uint8, 'selection-point'), ['int'])),
('selection_point_description', (YLeaf(YType.str, 'selection-point-description'), ['str'])),
])
self.selection_point = None
self.selection_point_description = None
self._segment_path = lambda: "spa-selection-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.SpaSelectionPoint, [u'selection_point', u'selection_point_description'], name, value)
class NodeSelectionPoint(Entity):
"""
Node selection points
.. attribute:: selection_point
Selection point ID
**type**\: int
**range:** 0..255
.. attribute:: selection_point_description
Selection point description
**type**\: str
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.NodeSelectionPoint, self).__init__()
self.yang_name = "node-selection-point"
self.yang_parent_name = "detailed-clock-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('selection_point', (YLeaf(YType.uint8, 'selection-point'), ['int'])),
('selection_point_description', (YLeaf(YType.str, 'selection-point-description'), ['str'])),
])
self.selection_point = None
self.selection_point_description = None
self._segment_path = lambda: "node-selection-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.DetailedClockDatas.DetailedClockData.NodeSelectionPoint, [u'selection_point', u'selection_point_description'], name, value)
class ClockDatas(Entity):
"""
Table for clock operational data
.. attribute:: clock_data
Operational data for a particular clock
**type**\: list of :py:class:`ClockData <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ClockDatas.ClockData>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ClockDatas, self).__init__()
self.yang_name = "clock-datas"
self.yang_parent_name = "node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("clock-data", ("clock_data", FrequencySynchronization.Nodes.Node.ClockDatas.ClockData))])
self._leafs = OrderedDict()
self.clock_data = YList(self)
self._segment_path = lambda: "clock-datas"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ClockDatas, [], name, value)
class ClockData(Entity):
"""
Operational data for a particular clock
.. attribute:: clock_type (key)
Clock type
**type**\: :py:class:`FsyncClock <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_datatypes.FsyncClock>`
.. attribute:: id (key)
Clock ID (port number for clock interfaces, receiver number for GNSS receivers
**type**\: int
**range:** 0..4294967295
.. attribute:: source
The source ID for the clock
**type**\: :py:class:`Source <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.Source>`
.. attribute:: selected_source
Timing source selected for clock output
**type**\: :py:class:`SelectedSource <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.SelectedSource>`
.. attribute:: quality_level_received
Received quality level
**type**\: :py:class:`QualityLevelReceived <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelReceived>`
.. attribute:: quality_level_damped
Quality level after damping has been applied
**type**\: :py:class:`QualityLevelDamped <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelDamped>`
.. attribute:: quality_level_effective_input
The effective input quality level
**type**\: :py:class:`QualityLevelEffectiveInput <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelEffectiveInput>`
.. attribute:: quality_level_effective_output
The effective output quality level
**type**\: :py:class:`QualityLevelEffectiveOutput <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelEffectiveOutput>`
.. attribute:: quality_level_selected_source
The quality level of the source driving this interface
**type**\: :py:class:`QualityLevelSelectedSource <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelSelectedSource>`
.. attribute:: state
Clock state
**type**\: :py:class:`FsyncBagSourceState <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagSourceState>`
.. attribute:: down_reason
Why the clock is down
**type**\: str
.. attribute:: description
Clock description
**type**\: str
.. attribute:: priority
Priority
**type**\: int
**range:** 0..255
.. attribute:: time_of_day_priority
Time\-of\-day priority
**type**\: int
**range:** 0..255
.. attribute:: ssm_support
The clock supports SSMs
**type**\: bool
.. attribute:: ssm_enabled
The clock output is squelched
**type**\: bool
.. attribute:: loopback
The clock is looped back
**type**\: bool
.. attribute:: selection_input
The clock is an input for selection
**type**\: bool
.. attribute:: squelched
The clock output is squelched
**type**\: bool
.. attribute:: damping_state
Damping state
**type**\: :py:class:`FsyncBagDampingState <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagDampingState>`
.. attribute:: damping_time
Time until damping state changes in ms
**type**\: int
**range:** 0..4294967295
.. attribute:: input_disabled
Timing input is disabled
**type**\: bool
.. attribute:: output_disabled
Timing output is disabled
**type**\: bool
.. attribute:: wait_to_restore_time
Wait\-to\-restore time for the clock
**type**\: int
**range:** 0..65535
.. attribute:: clock_type_xr
The type of clock
**type**\: :py:class:`FsyncBagClockIntfClass <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagClockIntfClass>`
.. attribute:: supports_frequency
The PTP clock supports frequency
**type**\: bool
.. attribute:: supports_time_of_day
The PTP clock supports time
**type**\: bool
.. attribute:: spa_selection_point
Spa selection points
**type**\: list of :py:class:`SpaSelectionPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.SpaSelectionPoint>`
.. attribute:: node_selection_point
Node selection points
**type**\: list of :py:class:`NodeSelectionPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.NodeSelectionPoint>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData, self).__init__()
self.yang_name = "clock-data"
self.yang_parent_name = "clock-datas"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = ['clock_type','id']
self._child_classes = OrderedDict([("source", ("source", FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.Source)), ("selected-source", ("selected_source", FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.SelectedSource)), ("quality-level-received", ("quality_level_received", FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelReceived)), ("quality-level-damped", ("quality_level_damped", FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelDamped)), ("quality-level-effective-input", ("quality_level_effective_input", FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelEffectiveInput)), ("quality-level-effective-output", ("quality_level_effective_output", FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelEffectiveOutput)), ("quality-level-selected-source", ("quality_level_selected_source", FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelSelectedSource)), ("spa-selection-point", ("spa_selection_point", FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.SpaSelectionPoint)), ("node-selection-point", ("node_selection_point", FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.NodeSelectionPoint))])
self._leafs = OrderedDict([
('clock_type', (YLeaf(YType.enumeration, 'clock-type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_datatypes', 'FsyncClock', '')])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('state', (YLeaf(YType.enumeration, 'state'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagSourceState', '')])),
('down_reason', (YLeaf(YType.str, 'down-reason'), ['str'])),
('description', (YLeaf(YType.str, 'description'), ['str'])),
('priority', (YLeaf(YType.uint8, 'priority'), ['int'])),
('time_of_day_priority', (YLeaf(YType.uint8, 'time-of-day-priority'), ['int'])),
('ssm_support', (YLeaf(YType.boolean, 'ssm-support'), ['bool'])),
('ssm_enabled', (YLeaf(YType.boolean, 'ssm-enabled'), ['bool'])),
('loopback', (YLeaf(YType.boolean, 'loopback'), ['bool'])),
('selection_input', (YLeaf(YType.boolean, 'selection-input'), ['bool'])),
('squelched', (YLeaf(YType.boolean, 'squelched'), ['bool'])),
('damping_state', (YLeaf(YType.enumeration, 'damping-state'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagDampingState', '')])),
('damping_time', (YLeaf(YType.uint32, 'damping-time'), ['int'])),
('input_disabled', (YLeaf(YType.boolean, 'input-disabled'), ['bool'])),
('output_disabled', (YLeaf(YType.boolean, 'output-disabled'), ['bool'])),
('wait_to_restore_time', (YLeaf(YType.uint16, 'wait-to-restore-time'), ['int'])),
('clock_type_xr', (YLeaf(YType.enumeration, 'clock-type-xr'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagClockIntfClass', '')])),
('supports_frequency', (YLeaf(YType.boolean, 'supports-frequency'), ['bool'])),
('supports_time_of_day', (YLeaf(YType.boolean, 'supports-time-of-day'), ['bool'])),
])
self.clock_type = None
self.id = None
self.state = None
self.down_reason = None
self.description = None
self.priority = None
self.time_of_day_priority = None
self.ssm_support = None
self.ssm_enabled = None
self.loopback = None
self.selection_input = None
self.squelched = None
self.damping_state = None
self.damping_time = None
self.input_disabled = None
self.output_disabled = None
self.wait_to_restore_time = None
self.clock_type_xr = None
self.supports_frequency = None
self.supports_time_of_day = None
self.source = FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.Source()
self.source.parent = self
self._children_name_map["source"] = "source"
self.selected_source = FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.SelectedSource()
self.selected_source.parent = self
self._children_name_map["selected_source"] = "selected-source"
self.quality_level_received = FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelReceived()
self.quality_level_received.parent = self
self._children_name_map["quality_level_received"] = "quality-level-received"
self.quality_level_damped = FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelDamped()
self.quality_level_damped.parent = self
self._children_name_map["quality_level_damped"] = "quality-level-damped"
self.quality_level_effective_input = FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelEffectiveInput()
self.quality_level_effective_input.parent = self
self._children_name_map["quality_level_effective_input"] = "quality-level-effective-input"
self.quality_level_effective_output = FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelEffectiveOutput()
self.quality_level_effective_output.parent = self
self._children_name_map["quality_level_effective_output"] = "quality-level-effective-output"
self.quality_level_selected_source = FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelSelectedSource()
self.quality_level_selected_source.parent = self
self._children_name_map["quality_level_selected_source"] = "quality-level-selected-source"
self.spa_selection_point = YList(self)
self.node_selection_point = YList(self)
self._segment_path = lambda: "clock-data" + "[clock-type='" + str(self.clock_type) + "']" + "[id='" + str(self.id) + "']"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData, ['clock_type', 'id', u'state', u'down_reason', u'description', u'priority', u'time_of_day_priority', u'ssm_support', u'ssm_enabled', u'loopback', u'selection_input', u'squelched', u'damping_state', u'damping_time', u'input_disabled', u'output_disabled', u'wait_to_restore_time', u'clock_type_xr', u'supports_frequency', u'supports_time_of_day'], name, value)
class Source(Entity):
"""
The source ID for the clock
.. attribute:: clock_id
Clock ID
**type**\: :py:class:`ClockId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.Source.ClockId>`
.. attribute:: gnss_receiver_id
GNSS Receiver ID
**type**\: :py:class:`GnssReceiverId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.Source.GnssReceiverId>`
.. attribute:: source_class
SourceClass
**type**\: :py:class:`FsyncBagSourceClass <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagSourceClass>`
.. attribute:: ethernet_interface
Ethernet interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: sonet_interface
SONET interfaces
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: node
Internal Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: ptp_node
PTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: satellite_access_interface
Satellite Access Interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: ntp_node
NTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.Source, self).__init__()
self.yang_name = "source"
self.yang_parent_name = "clock-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("clock-id", ("clock_id", FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.Source.ClockId)), ("gnss-receiver-id", ("gnss_receiver_id", FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.Source.GnssReceiverId))])
self._leafs = OrderedDict([
('source_class', (YLeaf(YType.enumeration, 'source-class'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagSourceClass', '')])),
('ethernet_interface', (YLeaf(YType.str, 'ethernet-interface'), ['str'])),
('sonet_interface', (YLeaf(YType.str, 'sonet-interface'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
('ptp_node', (YLeaf(YType.str, 'ptp-node'), ['str'])),
('satellite_access_interface', (YLeaf(YType.str, 'satellite-access-interface'), ['str'])),
('ntp_node', (YLeaf(YType.str, 'ntp-node'), ['str'])),
])
self.source_class = None
self.ethernet_interface = None
self.sonet_interface = None
self.node = None
self.ptp_node = None
self.satellite_access_interface = None
self.ntp_node = None
self.clock_id = FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.Source.ClockId()
self.clock_id.parent = self
self._children_name_map["clock_id"] = "clock-id"
self.gnss_receiver_id = FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.Source.GnssReceiverId()
self.gnss_receiver_id.parent = self
self._children_name_map["gnss_receiver_id"] = "gnss-receiver-id"
self._segment_path = lambda: "source"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.Source, [u'source_class', u'ethernet_interface', u'sonet_interface', u'node', u'ptp_node', u'satellite_access_interface', u'ntp_node'], name, value)
class ClockId(Entity):
"""
Clock ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.Source.ClockId, self).__init__()
self.yang_name = "clock-id"
self.yang_parent_name = "source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "clock-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.Source.ClockId, [u'node', u'id', u'clock_name'], name, value)
class GnssReceiverId(Entity):
"""
GNSS Receiver ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.Source.GnssReceiverId, self).__init__()
self.yang_name = "gnss-receiver-id"
self.yang_parent_name = "source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "gnss-receiver-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.Source.GnssReceiverId, [u'node', u'id', u'clock_name'], name, value)
class SelectedSource(Entity):
"""
Timing source selected for clock output
.. attribute:: clock_id
Clock ID
**type**\: :py:class:`ClockId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.SelectedSource.ClockId>`
.. attribute:: gnss_receiver_id
GNSS Receiver ID
**type**\: :py:class:`GnssReceiverId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.SelectedSource.GnssReceiverId>`
.. attribute:: source_class
SourceClass
**type**\: :py:class:`FsyncBagSourceClass <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagSourceClass>`
.. attribute:: ethernet_interface
Ethernet interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: sonet_interface
SONET interfaces
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: node
Internal Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: ptp_node
PTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: satellite_access_interface
Satellite Access Interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: ntp_node
NTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.SelectedSource, self).__init__()
self.yang_name = "selected-source"
self.yang_parent_name = "clock-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("clock-id", ("clock_id", FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.SelectedSource.ClockId)), ("gnss-receiver-id", ("gnss_receiver_id", FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.SelectedSource.GnssReceiverId))])
self._leafs = OrderedDict([
('source_class', (YLeaf(YType.enumeration, 'source-class'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagSourceClass', '')])),
('ethernet_interface', (YLeaf(YType.str, 'ethernet-interface'), ['str'])),
('sonet_interface', (YLeaf(YType.str, 'sonet-interface'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
('ptp_node', (YLeaf(YType.str, 'ptp-node'), ['str'])),
('satellite_access_interface', (YLeaf(YType.str, 'satellite-access-interface'), ['str'])),
('ntp_node', (YLeaf(YType.str, 'ntp-node'), ['str'])),
])
self.source_class = None
self.ethernet_interface = None
self.sonet_interface = None
self.node = None
self.ptp_node = None
self.satellite_access_interface = None
self.ntp_node = None
self.clock_id = FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.SelectedSource.ClockId()
self.clock_id.parent = self
self._children_name_map["clock_id"] = "clock-id"
self.gnss_receiver_id = FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.SelectedSource.GnssReceiverId()
self.gnss_receiver_id.parent = self
self._children_name_map["gnss_receiver_id"] = "gnss-receiver-id"
self._segment_path = lambda: "selected-source"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.SelectedSource, [u'source_class', u'ethernet_interface', u'sonet_interface', u'node', u'ptp_node', u'satellite_access_interface', u'ntp_node'], name, value)
class ClockId(Entity):
"""
Clock ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.SelectedSource.ClockId, self).__init__()
self.yang_name = "clock-id"
self.yang_parent_name = "selected-source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "clock-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.SelectedSource.ClockId, [u'node', u'id', u'clock_name'], name, value)
class GnssReceiverId(Entity):
"""
GNSS Receiver ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.SelectedSource.GnssReceiverId, self).__init__()
self.yang_name = "gnss-receiver-id"
self.yang_parent_name = "selected-source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "gnss-receiver-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.SelectedSource.GnssReceiverId, [u'node', u'id', u'clock_name'], name, value)
class QualityLevelReceived(Entity):
"""
Received quality level
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelReceived, self).__init__()
self.yang_name = "quality-level-received"
self.yang_parent_name = "clock-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "quality-level-received"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelReceived, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
class QualityLevelDamped(Entity):
"""
Quality level after damping has been applied
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelDamped, self).__init__()
self.yang_name = "quality-level-damped"
self.yang_parent_name = "clock-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "quality-level-damped"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelDamped, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
class QualityLevelEffectiveInput(Entity):
"""
The effective input quality level
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelEffectiveInput, self).__init__()
self.yang_name = "quality-level-effective-input"
self.yang_parent_name = "clock-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "quality-level-effective-input"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelEffectiveInput, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
class QualityLevelEffectiveOutput(Entity):
"""
The effective output quality level
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelEffectiveOutput, self).__init__()
self.yang_name = "quality-level-effective-output"
self.yang_parent_name = "clock-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "quality-level-effective-output"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelEffectiveOutput, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
class QualityLevelSelectedSource(Entity):
"""
The quality level of the source driving this
interface
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelSelectedSource, self).__init__()
self.yang_name = "quality-level-selected-source"
self.yang_parent_name = "clock-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "quality-level-selected-source"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.QualityLevelSelectedSource, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
class SpaSelectionPoint(Entity):
"""
Spa selection points
.. attribute:: selection_point
Selection point ID
**type**\: int
**range:** 0..255
.. attribute:: selection_point_description
Selection point description
**type**\: str
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.SpaSelectionPoint, self).__init__()
self.yang_name = "spa-selection-point"
self.yang_parent_name = "clock-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('selection_point', (YLeaf(YType.uint8, 'selection-point'), ['int'])),
('selection_point_description', (YLeaf(YType.str, 'selection-point-description'), ['str'])),
])
self.selection_point = None
self.selection_point_description = None
self._segment_path = lambda: "spa-selection-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.SpaSelectionPoint, [u'selection_point', u'selection_point_description'], name, value)
class NodeSelectionPoint(Entity):
"""
Node selection points
.. attribute:: selection_point
Selection point ID
**type**\: int
**range:** 0..255
.. attribute:: selection_point_description
Selection point description
**type**\: str
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.NodeSelectionPoint, self).__init__()
self.yang_name = "node-selection-point"
self.yang_parent_name = "clock-data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('selection_point', (YLeaf(YType.uint8, 'selection-point'), ['int'])),
('selection_point_description', (YLeaf(YType.str, 'selection-point-description'), ['str'])),
])
self.selection_point = None
self.selection_point_description = None
self._segment_path = lambda: "node-selection-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.ClockDatas.ClockData.NodeSelectionPoint, [u'selection_point', u'selection_point_description'], name, value)
class SelectionPointInputs(Entity):
"""
Table for selection point input operational
data
.. attribute:: selection_point_input
Operational data for a particular selection point input
**type**\: list of :py:class:`SelectionPointInput <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.SelectionPointInputs, self).__init__()
self.yang_name = "selection-point-inputs"
self.yang_parent_name = "node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("selection-point-input", ("selection_point_input", FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput))])
self._leafs = OrderedDict()
self.selection_point_input = YList(self)
self._segment_path = lambda: "selection-point-inputs"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.SelectionPointInputs, [], name, value)
class SelectionPointInput(Entity):
"""
Operational data for a particular selection
point input
.. attribute:: selection_point
Selection point ID
**type**\: int
**range:** 0..4294967295
.. attribute:: stream_type
Type of stream
**type**\: :py:class:`FsyncStream <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncStream>`
.. attribute:: source_type
Type of source
**type**\: :py:class:`FsyncSource <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncSource>`
.. attribute:: interface
Interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: clock_port
Clock port
**type**\: int
**range:** 0..4294967295
.. attribute:: last_node
Last node for a selection point stream
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: last_selection_point
Last selection point for a selection point stream
**type**\: int
**range:** 0..4294967295
.. attribute:: output_id
Output ID for a selection point stream
**type**\: int
**range:** 0..4294967295
.. attribute:: input_selection_point
The selection point the input is for
**type**\: :py:class:`InputSelectionPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.InputSelectionPoint>`
.. attribute:: stream
Stream
**type**\: :py:class:`Stream <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream>`
.. attribute:: original_source
Original source
**type**\: :py:class:`OriginalSource <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.OriginalSource>`
.. attribute:: quality_level
Quality Level
**type**\: :py:class:`QualityLevel <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.QualityLevel>`
.. attribute:: supports_frequency
The selection point input supports frequency
**type**\: bool
.. attribute:: supports_time_of_day
The selection point input supports time\-of\-day
**type**\: bool
.. attribute:: priority
Priority
**type**\: int
**range:** 0..255
.. attribute:: time_of_day_priority
Time\-of\-day priority
**type**\: int
**range:** 0..255
.. attribute:: selected
The selection point input is selected
**type**\: bool
.. attribute:: output_id_xr
Platform output ID, if the input is selected
**type**\: int
**range:** 0..255
.. attribute:: platform_status
Platform status
**type**\: :py:class:`FsyncBagStreamState <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagStreamState>`
.. attribute:: platform_failed_reason
Why the stream has failed
**type**\: str
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput, self).__init__()
self.yang_name = "selection-point-input"
self.yang_parent_name = "selection-point-inputs"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("input-selection-point", ("input_selection_point", FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.InputSelectionPoint)), ("stream", ("stream", FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream)), ("original-source", ("original_source", FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.OriginalSource)), ("quality-level", ("quality_level", FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.QualityLevel))])
self._leafs = OrderedDict([
('selection_point', (YLeaf(YType.uint32, 'selection-point'), ['int'])),
('stream_type', (YLeaf(YType.enumeration, 'stream-type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncStream', '')])),
('source_type', (YLeaf(YType.enumeration, 'source-type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncSource', '')])),
('interface', (YLeaf(YType.str, 'interface'), ['str'])),
('clock_port', (YLeaf(YType.uint32, 'clock-port'), ['int'])),
('last_node', (YLeaf(YType.str, 'last-node'), ['str'])),
('last_selection_point', (YLeaf(YType.uint32, 'last-selection-point'), ['int'])),
('output_id', (YLeaf(YType.uint32, 'output-id'), ['int'])),
('supports_frequency', (YLeaf(YType.boolean, 'supports-frequency'), ['bool'])),
('supports_time_of_day', (YLeaf(YType.boolean, 'supports-time-of-day'), ['bool'])),
('priority', (YLeaf(YType.uint8, 'priority'), ['int'])),
('time_of_day_priority', (YLeaf(YType.uint8, 'time-of-day-priority'), ['int'])),
('selected', (YLeaf(YType.boolean, 'selected'), ['bool'])),
('output_id_xr', (YLeaf(YType.uint8, 'output-id-xr'), ['int'])),
('platform_status', (YLeaf(YType.enumeration, 'platform-status'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagStreamState', '')])),
('platform_failed_reason', (YLeaf(YType.str, 'platform-failed-reason'), ['str'])),
])
self.selection_point = None
self.stream_type = None
self.source_type = None
self.interface = None
self.clock_port = None
self.last_node = None
self.last_selection_point = None
self.output_id = None
self.supports_frequency = None
self.supports_time_of_day = None
self.priority = None
self.time_of_day_priority = None
self.selected = None
self.output_id_xr = None
self.platform_status = None
self.platform_failed_reason = None
self.input_selection_point = FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.InputSelectionPoint()
self.input_selection_point.parent = self
self._children_name_map["input_selection_point"] = "input-selection-point"
self.stream = FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream()
self.stream.parent = self
self._children_name_map["stream"] = "stream"
self.original_source = FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.OriginalSource()
self.original_source.parent = self
self._children_name_map["original_source"] = "original-source"
self.quality_level = FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.QualityLevel()
self.quality_level.parent = self
self._children_name_map["quality_level"] = "quality-level"
self._segment_path = lambda: "selection-point-input"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput, ['selection_point', 'stream_type', 'source_type', 'interface', 'clock_port', 'last_node', 'last_selection_point', 'output_id', u'supports_frequency', u'supports_time_of_day', u'priority', u'time_of_day_priority', u'selected', u'output_id_xr', u'platform_status', u'platform_failed_reason'], name, value)
class InputSelectionPoint(Entity):
"""
The selection point the input is for
.. attribute:: selection_point_type
Selection point type
**type**\: int
**range:** 0..255
.. attribute:: selection_point_description
Selection point descrption
**type**\: str
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.InputSelectionPoint, self).__init__()
self.yang_name = "input-selection-point"
self.yang_parent_name = "selection-point-input"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('selection_point_type', (YLeaf(YType.uint8, 'selection-point-type'), ['int'])),
('selection_point_description', (YLeaf(YType.str, 'selection-point-description'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
])
self.selection_point_type = None
self.selection_point_description = None
self.node = None
self._segment_path = lambda: "input-selection-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.InputSelectionPoint, [u'selection_point_type', u'selection_point_description', u'node'], name, value)
class Stream(Entity):
"""
Stream
.. attribute:: source_id
Source ID
**type**\: :py:class:`SourceId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SourceId>`
.. attribute:: selection_point_id
Selection point ID
**type**\: :py:class:`SelectionPointId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SelectionPointId>`
.. attribute:: stream_input
StreamInput
**type**\: :py:class:`FsyncBagStreamInput <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagStreamInput>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream, self).__init__()
self.yang_name = "stream"
self.yang_parent_name = "selection-point-input"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("source-id", ("source_id", FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SourceId)), ("selection-point-id", ("selection_point_id", FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SelectionPointId))])
self._leafs = OrderedDict([
('stream_input', (YLeaf(YType.enumeration, 'stream-input'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagStreamInput', '')])),
])
self.stream_input = None
self.source_id = FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SourceId()
self.source_id.parent = self
self._children_name_map["source_id"] = "source-id"
self.selection_point_id = FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SelectionPointId()
self.selection_point_id.parent = self
self._children_name_map["selection_point_id"] = "selection-point-id"
self._segment_path = lambda: "stream"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream, [u'stream_input'], name, value)
class SourceId(Entity):
"""
Source ID
.. attribute:: clock_id
Clock ID
**type**\: :py:class:`ClockId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SourceId.ClockId>`
.. attribute:: gnss_receiver_id
GNSS Receiver ID
**type**\: :py:class:`GnssReceiverId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SourceId.GnssReceiverId>`
.. attribute:: source_class
SourceClass
**type**\: :py:class:`FsyncBagSourceClass <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagSourceClass>`
.. attribute:: ethernet_interface
Ethernet interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: sonet_interface
SONET interfaces
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: node
Internal Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: ptp_node
PTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: satellite_access_interface
Satellite Access Interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: ntp_node
NTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SourceId, self).__init__()
self.yang_name = "source-id"
self.yang_parent_name = "stream"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("clock-id", ("clock_id", FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SourceId.ClockId)), ("gnss-receiver-id", ("gnss_receiver_id", FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SourceId.GnssReceiverId))])
self._leafs = OrderedDict([
('source_class', (YLeaf(YType.enumeration, 'source-class'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagSourceClass', '')])),
('ethernet_interface', (YLeaf(YType.str, 'ethernet-interface'), ['str'])),
('sonet_interface', (YLeaf(YType.str, 'sonet-interface'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
('ptp_node', (YLeaf(YType.str, 'ptp-node'), ['str'])),
('satellite_access_interface', (YLeaf(YType.str, 'satellite-access-interface'), ['str'])),
('ntp_node', (YLeaf(YType.str, 'ntp-node'), ['str'])),
])
self.source_class = None
self.ethernet_interface = None
self.sonet_interface = None
self.node = None
self.ptp_node = None
self.satellite_access_interface = None
self.ntp_node = None
self.clock_id = FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SourceId.ClockId()
self.clock_id.parent = self
self._children_name_map["clock_id"] = "clock-id"
self.gnss_receiver_id = FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SourceId.GnssReceiverId()
self.gnss_receiver_id.parent = self
self._children_name_map["gnss_receiver_id"] = "gnss-receiver-id"
self._segment_path = lambda: "source-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SourceId, [u'source_class', u'ethernet_interface', u'sonet_interface', u'node', u'ptp_node', u'satellite_access_interface', u'ntp_node'], name, value)
class ClockId(Entity):
"""
Clock ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SourceId.ClockId, self).__init__()
self.yang_name = "clock-id"
self.yang_parent_name = "source-id"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "clock-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SourceId.ClockId, [u'node', u'id', u'clock_name'], name, value)
class GnssReceiverId(Entity):
"""
GNSS Receiver ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SourceId.GnssReceiverId, self).__init__()
self.yang_name = "gnss-receiver-id"
self.yang_parent_name = "source-id"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "gnss-receiver-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SourceId.GnssReceiverId, [u'node', u'id', u'clock_name'], name, value)
class SelectionPointId(Entity):
"""
Selection point ID
.. attribute:: selection_point
Last selection point
**type**\: :py:class:`SelectionPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SelectionPointId.SelectionPoint>`
.. attribute:: output_id
Output ID
**type**\: int
**range:** 0..255
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SelectionPointId, self).__init__()
self.yang_name = "selection-point-id"
self.yang_parent_name = "stream"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("selection-point", ("selection_point", FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SelectionPointId.SelectionPoint))])
self._leafs = OrderedDict([
('output_id', (YLeaf(YType.uint8, 'output-id'), ['int'])),
])
self.output_id = None
self.selection_point = FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SelectionPointId.SelectionPoint()
self.selection_point.parent = self
self._children_name_map["selection_point"] = "selection-point"
self._segment_path = lambda: "selection-point-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SelectionPointId, [u'output_id'], name, value)
class SelectionPoint(Entity):
"""
Last selection point
.. attribute:: selection_point_type
Selection point type
**type**\: int
**range:** 0..255
.. attribute:: selection_point_description
Selection point descrption
**type**\: str
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SelectionPointId.SelectionPoint, self).__init__()
self.yang_name = "selection-point"
self.yang_parent_name = "selection-point-id"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('selection_point_type', (YLeaf(YType.uint8, 'selection-point-type'), ['int'])),
('selection_point_description', (YLeaf(YType.str, 'selection-point-description'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
])
self.selection_point_type = None
self.selection_point_description = None
self.node = None
self._segment_path = lambda: "selection-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.Stream.SelectionPointId.SelectionPoint, [u'selection_point_type', u'selection_point_description', u'node'], name, value)
class OriginalSource(Entity):
"""
Original source
.. attribute:: clock_id
Clock ID
**type**\: :py:class:`ClockId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.OriginalSource.ClockId>`
.. attribute:: gnss_receiver_id
GNSS Receiver ID
**type**\: :py:class:`GnssReceiverId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.OriginalSource.GnssReceiverId>`
.. attribute:: source_class
SourceClass
**type**\: :py:class:`FsyncBagSourceClass <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagSourceClass>`
.. attribute:: ethernet_interface
Ethernet interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: sonet_interface
SONET interfaces
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: node
Internal Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: ptp_node
PTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: satellite_access_interface
Satellite Access Interface
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
.. attribute:: ntp_node
NTP Clock Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.OriginalSource, self).__init__()
self.yang_name = "original-source"
self.yang_parent_name = "selection-point-input"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("clock-id", ("clock_id", FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.OriginalSource.ClockId)), ("gnss-receiver-id", ("gnss_receiver_id", FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.OriginalSource.GnssReceiverId))])
self._leafs = OrderedDict([
('source_class', (YLeaf(YType.enumeration, 'source-class'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagSourceClass', '')])),
('ethernet_interface', (YLeaf(YType.str, 'ethernet-interface'), ['str'])),
('sonet_interface', (YLeaf(YType.str, 'sonet-interface'), ['str'])),
('node', (YLeaf(YType.str, 'node'), ['str'])),
('ptp_node', (YLeaf(YType.str, 'ptp-node'), ['str'])),
('satellite_access_interface', (YLeaf(YType.str, 'satellite-access-interface'), ['str'])),
('ntp_node', (YLeaf(YType.str, 'ntp-node'), ['str'])),
])
self.source_class = None
self.ethernet_interface = None
self.sonet_interface = None
self.node = None
self.ptp_node = None
self.satellite_access_interface = None
self.ntp_node = None
self.clock_id = FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.OriginalSource.ClockId()
self.clock_id.parent = self
self._children_name_map["clock_id"] = "clock-id"
self.gnss_receiver_id = FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.OriginalSource.GnssReceiverId()
self.gnss_receiver_id.parent = self
self._children_name_map["gnss_receiver_id"] = "gnss-receiver-id"
self._segment_path = lambda: "original-source"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.OriginalSource, [u'source_class', u'ethernet_interface', u'sonet_interface', u'node', u'ptp_node', u'satellite_access_interface', u'ntp_node'], name, value)
class ClockId(Entity):
"""
Clock ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.OriginalSource.ClockId, self).__init__()
self.yang_name = "clock-id"
self.yang_parent_name = "original-source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "clock-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.OriginalSource.ClockId, [u'node', u'id', u'clock_name'], name, value)
class GnssReceiverId(Entity):
"""
GNSS Receiver ID
.. attribute:: node
Node
**type**\: str
**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
.. attribute:: id
ID (port number for clock interface, receiver number for GNSS receiver)
**type**\: int
**range:** 0..4294967295
.. attribute:: clock_name
Name
**type**\: str
**length:** 0..144
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.OriginalSource.GnssReceiverId, self).__init__()
self.yang_name = "gnss-receiver-id"
self.yang_parent_name = "original-source"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('node', (YLeaf(YType.str, 'node'), ['str'])),
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('clock_name', (YLeaf(YType.str, 'clock-name'), ['str'])),
])
self.node = None
self.id = None
self.clock_name = None
self._segment_path = lambda: "gnss-receiver-id"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.OriginalSource.GnssReceiverId, [u'node', u'id', u'clock_name'], name, value)
class QualityLevel(Entity):
"""
Quality Level
.. attribute:: quality_level_option
QualityLevelOption
**type**\: :py:class:`FsyncBagQlOption <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlOption>`
.. attribute:: option1_value
ITU\-T Option 1 QL value
**type**\: :py:class:`FsyncBagQlO1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO1Value>`
.. attribute:: option2_generation1_value
ITU\-T Option 2, generation 1 value
**type**\: :py:class:`FsyncBagQlO2G1Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G1Value>`
.. attribute:: option2_generation2_value
ITU\-T Option 2, generation 2 value
**type**\: :py:class:`FsyncBagQlO2G2Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper.FsyncBagQlO2G2Value>`
"""
_prefix = 'freqsync-oper'
_revision = '2017-10-20'
def __init__(self):
super(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.QualityLevel, self).__init__()
self.yang_name = "quality-level"
self.yang_parent_name = "selection-point-input"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('quality_level_option', (YLeaf(YType.enumeration, 'quality-level-option'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlOption', '')])),
('option1_value', (YLeaf(YType.enumeration, 'option1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO1Value', '')])),
('option2_generation1_value', (YLeaf(YType.enumeration, 'option2-generation1-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G1Value', '')])),
('option2_generation2_value', (YLeaf(YType.enumeration, 'option2-generation2-value'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_freqsync_oper', 'FsyncBagQlO2G2Value', '')])),
])
self.quality_level_option = None
self.option1_value = None
self.option2_generation1_value = None
self.option2_generation2_value = None
self._segment_path = lambda: "quality-level"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(FrequencySynchronization.Nodes.Node.SelectionPointInputs.SelectionPointInput.QualityLevel, [u'quality_level_option', u'option1_value', u'option2_generation1_value', u'option2_generation2_value'], name, value)
def clone_ptr(self):
self._top_entity = FrequencySynchronization()
return self._top_entity
| 51.30335 | 1,468 | 0.477472 | 42,582 | 558,950 | 5.983491 | 0.011413 | 0.027348 | 0.034185 | 0.031508 | 0.921249 | 0.901248 | 0.880533 | 0.861725 | 0.838926 | 0.818701 | 0 | 0.015777 | 0.427668 | 558,950 | 10,894 | 1,469 | 51.308059 | 0.780676 | 0.222446 | 0 | 0.755957 | 0 | 0.001444 | 0.161832 | 0.065941 | 0.000963 | 0 | 0 | 0 | 0 | 1 | 0.073406 | false | 0 | 0.001203 | 0 | 0.141757 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
6b45e56cd227a92f377c297837b01280ffad721d | 1,562 | py | Python | label_studio/io_storages/migrations/0007_auto_20210928_1252.py | mehdibenamorr/label-studio | 213252d360b028eb031ca127969fb35a897dc2b6 | [
"Apache-2.0"
] | 8,264 | 2019-06-25T23:08:05.000Z | 2022-03-31T18:48:34.000Z | label_studio/io_storages/migrations/0007_auto_20210928_1252.py | mehdibenamorr/label-studio | 213252d360b028eb031ca127969fb35a897dc2b6 | [
"Apache-2.0"
] | 1,446 | 2019-08-02T13:46:25.000Z | 2022-03-31T23:09:32.000Z | label_studio/io_storages/migrations/0007_auto_20210928_1252.py | mehdibenamorr/label-studio | 213252d360b028eb031ca127969fb35a897dc2b6 | [
"Apache-2.0"
] | 1,092 | 2019-07-02T16:36:35.000Z | 2022-03-31T20:01:19.000Z | # Generated by Django 3.1.13 on 2021-09-28 12:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('io_storages', '0006_auto_20210906_1323'),
]
operations = [
migrations.AddField(
model_name='azureblobexportstorage',
name='can_delete_objects',
field=models.BooleanField(blank=True, help_text='Deletion from storage enabled', null=True, verbose_name='can_delete_objects'),
),
migrations.AddField(
model_name='gcsexportstorage',
name='can_delete_objects',
field=models.BooleanField(blank=True, help_text='Deletion from storage enabled', null=True, verbose_name='can_delete_objects'),
),
migrations.AddField(
model_name='localfilesexportstorage',
name='can_delete_objects',
field=models.BooleanField(blank=True, help_text='Deletion from storage enabled', null=True, verbose_name='can_delete_objects'),
),
migrations.AddField(
model_name='redisexportstorage',
name='can_delete_objects',
field=models.BooleanField(blank=True, help_text='Deletion from storage enabled', null=True, verbose_name='can_delete_objects'),
),
migrations.AddField(
model_name='s3exportstorage',
name='can_delete_objects',
field=models.BooleanField(blank=True, help_text='Deletion from storage enabled', null=True, verbose_name='can_delete_objects'),
),
]
| 40.051282 | 139 | 0.65749 | 165 | 1,562 | 5.987879 | 0.29697 | 0.07085 | 0.131579 | 0.202429 | 0.72166 | 0.72166 | 0.72166 | 0.72166 | 0.72166 | 0.72166 | 0 | 0.027661 | 0.236236 | 1,562 | 38 | 140 | 41.105263 | 0.800503 | 0.029449 | 0 | 0.625 | 1 | 0 | 0.299207 | 0.044914 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
863c27fcaa00682d1dbfcb4905d48e133aafc77f | 137 | py | Python | ivy/array/reductions.py | saurbhc/ivy | 20b327b4fab543b26ad5a18acf4deddd6e3c804b | [
"Apache-2.0"
] | 161 | 2021-01-20T22:11:13.000Z | 2022-01-09T09:46:33.000Z | ivy/array/reductions.py | saurbhc/ivy | 20b327b4fab543b26ad5a18acf4deddd6e3c804b | [
"Apache-2.0"
] | 4 | 2021-11-10T17:04:36.000Z | 2021-11-26T06:40:43.000Z | ivy/array/reductions.py | saurbhc/ivy | 20b327b4fab543b26ad5a18acf4deddd6e3c804b | [
"Apache-2.0"
] | 8 | 2021-02-17T20:56:33.000Z | 2022-01-09T16:45:40.000Z | # global
import abc
# ToDo: implement all reduction methods here as public class methods
class ArrayWithReductions(abc.ABC):
pass
| 15.222222 | 68 | 0.766423 | 18 | 137 | 5.833333 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182482 | 137 | 8 | 69 | 17.125 | 0.9375 | 0.532847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
86923bc2a441d71aa73b94cbe191b1c59fbded89 | 6,731 | py | Python | hearthgen/__init__.py | h4x4d/hearthgen | 12a748af2580e56ae342bb961f1e3a40ee17c4b4 | [
"MIT"
] | null | null | null | hearthgen/__init__.py | h4x4d/hearthgen | 12a748af2580e56ae342bb961f1e3a40ee17c4b4 | [
"MIT"
] | null | null | null | hearthgen/__init__.py | h4x4d/hearthgen | 12a748af2580e56ae342bb961f1e3a40ee17c4b4 | [
"MIT"
] | null | null | null | import time
from warnings import warn
import requests
from .paths import *
from .url import hearthcards_url
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium.common.exceptions import NoSuchElementException, \
WebDriverException
class PathIsNotAbsolute(Warning):
pass
def create_card(
save_name: str = 'card.png',
card_type: str = 'minion',
card_name: str = '',
card_class: str = 'Neutral',
minion_type: str = '',
rarity: str = 'basic',
card_text: str = '',
card_image: str = '',
mana_cost: int = 0,
attack: int = 0,
health: int = 0,
hd: bool = False,
gold: bool = False,
addon: str = '',
wait_time: int = 5):
try:
chrome_options = Options()
chrome_options.add_argument('--headless')
chrome_options.add_argument('--no-sandbox')
driver = webdriver.Chrome(options=chrome_options)
driver.get(hearthcards_url)
CLASS = driver.find_element(By.CSS_SELECTOR, '#' + card_class)
driver.execute_script("arguments[0].checked = true;", CLASS)
if addon:
ADDON = driver.find_element(By.CSS_SELECTOR, '#swirl')
driver.execute_script(f"arguments[0].value = '{addon}';", ADDON)
driver.find_element(By.XPATH, MANA_FIELD).send_keys(mana_cost)
driver.find_element(By.XPATH, ATTACK_FIELD).send_keys(attack)
driver.find_element(By.XPATH, HEALTH_FIELD).send_keys(health)
driver.find_element(By.XPATH, TYPE).send_keys(minion_type)
if rarity != 'basic':
RARITY_BUTTON = RARITY_BUTTONS[rarity]
driver.find_element(By.CSS_SELECTOR, RARITY_BUTTON).click()
if card_image:
try:
driver.find_element(By.XPATH, ART_UPLOAD).send_keys(card_image)
except WebDriverException:
warn('Path is not absolute. THere will be no image',
PathIsNotAbsolute)
if hd:
driver.find_element(By.CSS_SELECTOR, HD).click()
driver.find_element(By.XPATH, HD_USE).click()
if gold:
driver.find_element(By.CSS_SELECTOR, GOLDEN).click()
driver.find_element(By.XPATH, TEXT_FIELD).send_keys(card_text)
if card_type != 'minion':
driver.find_element(By.CSS_SELECTOR,
TYPE_BUTTONS[card_type]).click()
driver.find_element(By.XPATH, NAME_FIELD).send_keys(card_name)
try:
driver.find_element(By.XPATH, SUBMIT_BTN).click()
except NoSuchElementException:
pass
time.sleep(wait_time)
ht = driver.page_source
ht = ht[ht.find('<a id="card-click" download="') + 29:]
ht = ht[:ht.find('"')]
link = 'https://www.hearthcards.net/' + ht
card = requests.get(link)
f = open(save_name, 'wb')
f.write(card.content)
f.close()
driver.stop_client()
driver.close()
driver.quit()
except:
driver.stop_client()
driver.close()
driver.quit()
raise Exception('Something went wrong')
class CardCreator:
def __init__(self, driver=None, wait_time: int = 10):
if not driver:
chrome_options = Options()
chrome_options.add_argument('--headless')
chrome_options.add_argument('--no-sandbox')
driver = webdriver.Chrome(options=chrome_options)
self.driver = driver
self.wait_time = wait_time
def create_card(self,
save_name: str = 'card.png',
card_type: str = 'minion',
card_name: str = '',
card_class: str = 'Neutral',
minion_type: str = '',
rarity: str = 'basic',
card_text: str = '',
card_image: str = '',
mana_cost: int = 0,
attack: int = 0,
health: int = 0,
hd: bool = False,
gold: bool = False,
addon: str = ''):
try:
driver = self.driver
driver.get(hearthcards_url)
CLASS = driver.find_element(By.CSS_SELECTOR, '#' + card_class)
driver.execute_script("arguments[0].checked = true;", CLASS)
if addon:
ADDON = driver.find_element(By.CSS_SELECTOR, '#swirl')
driver.execute_script(f"arguments[0].value = '{addon}';",
ADDON)
driver.find_element(By.XPATH, MANA_FIELD).send_keys(mana_cost)
driver.find_element(By.XPATH, ATTACK_FIELD).send_keys(attack)
driver.find_element(By.XPATH, HEALTH_FIELD).send_keys(health)
driver.find_element(By.XPATH, TYPE).send_keys(minion_type)
if rarity != 'basic':
RARITY_BUTTON = RARITY_BUTTONS[rarity]
driver.find_element(By.CSS_SELECTOR, RARITY_BUTTON).click()
if card_image:
try:
driver.find_element(By.XPATH, ART_UPLOAD).send_keys(
card_image)
except WebDriverException:
warn('Path is not absolute. THere will be no image',
PathIsNotAbsolute)
if hd:
driver.find_element(By.CSS_SELECTOR, HD).click()
driver.find_element(By.XPATH, HD_USE).click()
if gold:
driver.find_element(By.CSS_SELECTOR, GOLDEN).click()
driver.find_element(By.XPATH, TEXT_FIELD).send_keys(card_text)
if card_type != 'minion':
driver.find_element(By.CSS_SELECTOR,
TYPE_BUTTONS[card_type]).click()
driver.find_element(By.XPATH, NAME_FIELD).send_keys(card_name)
try:
driver.find_element(By.XPATH, SUBMIT_BTN).click()
except NoSuchElementException:
pass
time.sleep(self.wait_time)
ht = driver.page_source
ht = ht[ht.find('<a id="card-click" download="') + 29:]
ht = ht[:ht.find('"')]
link = 'https://www.hearthcards.net/' + ht
card = requests.get(link)
f = open(save_name, 'wb')
f.write(card.content)
f.close()
except:
raise Exception('Something went wrong')
def stop(self):
self.driver.stop_client()
self.driver.close()
self.driver.quit()
| 32.360577 | 79 | 0.558164 | 747 | 6,731 | 4.825971 | 0.161981 | 0.083218 | 0.14147 | 0.158114 | 0.849376 | 0.831623 | 0.831623 | 0.811096 | 0.811096 | 0.811096 | 0 | 0.003785 | 0.332789 | 6,731 | 207 | 80 | 32.516908 | 0.798931 | 0 | 0 | 0.786164 | 0 | 0 | 0.073986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025157 | false | 0.018868 | 0.056604 | 0 | 0.09434 | 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 |
8692fb2ec68311d24fed6f77395c4d426b9482ea | 32 | py | Python | flask_sencha/direct/message/common.py | rch/flask-extdirect | 9b874ef65ea9c3d69d526169118481f489c6017e | [
"MIT"
] | 1 | 2017-01-30T07:21:05.000Z | 2017-01-30T07:21:05.000Z | flask_sencha/direct/message/common.py | rch/flask-extdirect | 9b874ef65ea9c3d69d526169118481f489c6017e | [
"MIT"
] | null | null | null | flask_sencha/direct/message/common.py | rch/flask-extdirect | 9b874ef65ea9c3d69d526169118481f489c6017e | [
"MIT"
] | null | null | null |
def alert():
return '!!!'
| 6.4 | 16 | 0.4375 | 3 | 32 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 32 | 4 | 17 | 8 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
86a48cd87e8fb1eefcf9d3b79ee4b23deb929883 | 78 | py | Python | OnePy/strategy/__init__.py | sibuzu/OnePy | 464fca1c68a10f90ad128da3bfb03f05d2fc24bc | [
"MIT"
] | null | null | null | OnePy/strategy/__init__.py | sibuzu/OnePy | 464fca1c68a10f90ad128da3bfb03f05d2fc24bc | [
"MIT"
] | null | null | null | OnePy/strategy/__init__.py | sibuzu/OnePy | 464fca1c68a10f90ad128da3bfb03f05d2fc24bc | [
"MIT"
] | null | null | null | from OnePy.strategy.strategybase import *
from OnePy.strategy import examples | 26 | 41 | 0.846154 | 10 | 78 | 6.6 | 0.6 | 0.272727 | 0.515152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 78 | 3 | 42 | 26 | 0.942857 | 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 |
86ce1a0878af6fc833d491dea79d89d6477013d4 | 16,146 | py | Python | tests/integration/server/test_attributeserver.py | EricZLou/predictionserver | 5f9d4a6711f9941f3c221ef1dccf57418dd17306 | [
"MIT"
] | null | null | null | tests/integration/server/test_attributeserver.py | EricZLou/predictionserver | 5f9d4a6711f9941f3c221ef1dccf57418dd17306 | [
"MIT"
] | null | null | null | tests/integration/server/test_attributeserver.py | EricZLou/predictionserver | 5f9d4a6711f9941f3c221ef1dccf57418dd17306 | [
"MIT"
] | null | null | null | from predictionserver.servermixins.attributeserver import AttributeServer, AttributeGranularity, AttributeType
from predictionserver.set_config import MICRO_TEST_CONFIG
from predictionserver.futureconventions.activityconventions import Activity, ActivityContext
from predictionserver.futureconventions.memoconventions import Memo, MemoCategory, MemoGranularity
import pytest
BABLOH_CATTLE = MICRO_TEST_CONFIG['BABLOH_CATTLE']
PUBLIC_PROFILE = {AttributeType.homepage: 'https://www.savetrumble.com.au',
AttributeType.repository: 'https://pypi.org/project/microfilter/',
AttributeType.paper: 'https://arxiv.org/pdf/1512.01389.pdf',
AttributeType.topic: 'AutoMl',
AttributeType.description: 'Herding cattle using AutoMl'}
PRIVATE_PROFILE = {AttributeType.email: 'info@savetrundle.nsw.com.au',
AttributeType.description: 'private description'}
def test_init():
server = AttributeServer()
with pytest.raises(RuntimeError):
server.obscurity()
server.connect(**MICRO_TEST_CONFIG)
obs = server.obscurity()
def test_set_private_attribute_explicit():
server = AttributeServer()
server.connect(**MICRO_TEST_CONFIG)
EMAIL = 'me@private.com'
assert server.set_attribute(attribute_type=AttributeType.email, granularity=AttributeGranularity.write_key,
value=EMAIL, write_key=BABLOH_CATTLE, verbose=False)
value = server.get_attribute(attribute_type=AttributeType.email, granularity=AttributeGranularity.write_key,
write_key=BABLOH_CATTLE)
assert value == EMAIL
# Test that memos are created
user_memos = server.get_memos(category=MemoCategory.confirm, granularity=MemoGranularity.write_key,
write_key=BABLOH_CATTLE)
assert len(user_memos) > 0
memo = user_memos[0]
assert memo['activity'] == str(Activity.set)
assert memo['context'] == str(ActivityContext.attribute)
assert memo['attribute'] == str(AttributeType.email)
assert memo['success'] == 1
assert memo['allowed'] == 1
def test_set_private_attribute_explicit_verbose():
server = AttributeServer()
server.connect(**MICRO_TEST_CONFIG)
EMAIL = 'me@private.com'
memo = server.set_attribute(attribute_type=AttributeType.email, granularity=AttributeGranularity.write_key,
value=EMAIL, write_key=BABLOH_CATTLE, verbose=True)
value = server.get_attribute(attribute_type=AttributeType.email, granularity=AttributeGranularity.write_key,
write_key=BABLOH_CATTLE)
assert value == EMAIL
assert memo['activity'] == str(Activity.set)
assert memo['context'] == str(ActivityContext.attribute)
assert memo['success'] == 1
assert memo['allowed'] == 1
def test_set_private_attribute_explicit_error_key():
server = AttributeServer()
server.connect(**MICRO_TEST_CONFIG)
EMAIL = 'me@private.com'
bad_key = 'lkasjdf'
memo = server.set_attribute(attribute_type=AttributeType.email, granularity=AttributeGranularity.write_key,
value=EMAIL, write_key=bad_key, verbose=True)
assert memo['activity'] == str(Activity.set)
assert memo['context'] == str(ActivityContext.attribute)
assert memo['success'] == 0
assert memo['allowed'] == 0
def test_set_private_attribute_explicit_error_missing():
server = AttributeServer()
server.connect(**MICRO_TEST_CONFIG)
EMAIL = 'me@private.com'
memo = server.set_attribute(attribute_type=AttributeType.email, granularity=AttributeGranularity.name_and_delay,
value=EMAIL, write_key=BABLOH_CATTLE, verbose=True, name='bad name', delay=7)
# Manually retrieve error
user_errors = server.get_owner_errors(write_key=BABLOH_CATTLE)
assert len(user_errors)
memo = user_errors[0]
assert memo['activity'] == str(Activity.set)
assert memo['context'] == str(ActivityContext.attribute)
assert memo['attribute'] == str(AttributeType.email)
assert memo['success'] == 0
assert memo['allowed'] == 0
def test_set_private_attribute_implicit():
server = AttributeServer()
server.connect(**MICRO_TEST_CONFIG)
EMAIL = 'me@private.com'
server.set_attribute(attribute_type=AttributeType.email, value=EMAIL, write_key=BABLOH_CATTLE)
value = server.get_attribute(attribute_type=AttributeType.email, write_key=BABLOH_CATTLE)
assert value == EMAIL
value_again = server.get_owner_email(write_key=BABLOH_CATTLE)
assert value_again == EMAIL
def test_set_code_attribute_implicit():
server = AttributeServer()
server.connect(**MICRO_TEST_CONFIG)
code = server.shash(BABLOH_CATTLE)
for attribute, value in PUBLIC_PROFILE.items():
assert server.set_attribute(attribute_type=attribute, value=value, code=code, write_key=BABLOH_CATTLE,
verbose=False)
# Get back explicitly
for attribute, value in PUBLIC_PROFILE.items():
value_back = server.get_attribute(attribute_type=attribute, granularity=AttributeGranularity.code, code=code)
assert value == value_back
description = server.get_owner_description(code=code)
assert description == PUBLIC_PROFILE[AttributeType.description]
repo = server.get_owner_repository(code=code)
assert repo == PUBLIC_PROFILE[AttributeType.repository]
def test_set_stream_attribute_bad_name():
server = AttributeServer()
server.connect(**MICRO_TEST_CONFIG)
name = 'no_such_stream.json'
value = 'Electricity'
memo = server.set_attribute(attribute_type=AttributeType.description, granularity=AttributeGranularity.name,
value=value, name=name, verbose=True,
write_key=BABLOH_CATTLE)
assert memo['allowed'] == False
def test_delete_stream_attribute_bad_name():
server = AttributeServer()
server.connect(**MICRO_TEST_CONFIG)
name = 'no_such_stream.json'
memo = server.delete_attribute(attribute_type=AttributeType.description, granularity=AttributeGranularity.name,
name=name, verbose=True,
write_key=BABLOH_CATTLE)
assert memo['allowed'] == False
def test_delete_stream_attribute_manually():
server = AttributeServer()
server.connect(**MICRO_TEST_CONFIG)
# Create fake ownership for testing
# Should probably write a context manager for this as it can be dangerous if OWNERSHIP and NAMES gets out of whack
name = 'another_stream.json'
server.client.hset(name=server._OWNERSHIP(), key=name, value=BABLOH_CATTLE)
try:
value = 'Electricity'
assert server.set_attribute(attribute_type=AttributeType.description, granularity=AttributeGranularity.name,
value=value, name=name, verbose=False,
write_key=BABLOH_CATTLE)
description_back = server.get_attribute(attribute_type=AttributeType.description,
granularity=AttributeGranularity.name,
name=name, delay=server.DELAYS[0])
assert description_back == value
description_back_again = server.get_stream_description(name=name)
assert description_back_again == value
assert server.delete_attribute(attribute_type=AttributeType.description, granularity=AttributeGranularity.name,
write_key=BABLOH_CATTLE, verbose=False,
name=name, delay=server.DELAYS[0])
description_back_again = server.get_stream_description(name=name)
assert description_back_again is None
except Exception as e:
server.client.hdel(server._OWNERSHIP(), name)
raise e
server.client.hdel(server._OWNERSHIP(), name)
description_back_again = server.get_attribute(attribute_type=AttributeType.description,
granularity=AttributeGranularity.name,
name=name, delay=server.DELAYS[0])
assert description_back_again is None
and_again = server.get_horizon_description(name=name, delay=server.DELAYS[0])
assert and_again is None
def test_delete_horizon_attribute_manually():
server = AttributeServer()
server.connect(**MICRO_TEST_CONFIG)
# Create fake ownership for testing
# Should probably write a context manager for this as it can be dangerous if OWNERSHIP and NAMES gets out of whack
name = 'fake_stream.json'
server.client.hset(name=server._OWNERSHIP(), key=name, value=BABLOH_CATTLE)
try:
value = 'Electricity'
assert server.set_attribute(attribute_type=AttributeType.description,
granularity=AttributeGranularity.name_and_delay,
value=value, name=name, delay=server.DELAYS[0], verbose=False,
write_key=BABLOH_CATTLE)
description_back = server.get_attribute(attribute_type=AttributeType.description,
granularity=AttributeGranularity.name_and_delay,
name=name, delay=server.DELAYS[0])
assert description_back == value
description_back_again = server.get_horizon_description(name=name, delay=server.DELAYS[0])
assert description_back_again == value
assert server.delete_attribute(attribute_type=AttributeType.description,
granularity=AttributeGranularity.name_and_delay,
write_key=BABLOH_CATTLE, verbose=False,
name=name, delay=server.DELAYS[0])
except Exception as e:
server.client.hdel(server._OWNERSHIP(), name)
raise e
server.client.hdel(server._OWNERSHIP(), name)
description_back_again = server.get_attribute(attribute_type=AttributeType.description,
granularity=AttributeGranularity.name_and_delay,
name=name, delay=server.DELAYS[0])
assert description_back_again is None
and_again = server.get_horizon_description(name=name, delay=server.DELAYS[0])
assert and_again is None
def test_delete_horizon_attribute_manually_implicitly():
server = AttributeServer()
server.connect(**MICRO_TEST_CONFIG)
# Create fake ownership for testing
# Should probably write a context manager for this as it can be dangerous if OWNERSHIP and NAMES gets out of whack
name = 'fake_stream.json'
server.client.hset(name=server._OWNERSHIP(), key=name, value=BABLOH_CATTLE)
try:
value = 'Electricity'
assert server.set_attribute(attribute_type=AttributeType.description,
value=value, name=name, delay=server.DELAYS[0], verbose=False,
write_key=BABLOH_CATTLE)
description_back = server.get_attribute(attribute_type=AttributeType.description,
granularity=AttributeGranularity.name_and_delay,
name=name, delay=server.DELAYS[0])
assert description_back == value
description_back_again = server.get_horizon_description(name=name, delay=server.DELAYS[0])
assert description_back_again == value
assert server.delete_attribute(attribute_type=AttributeType.description,
write_key=BABLOH_CATTLE, verbose=False,
name=name, delay=server.DELAYS[0])
except Exception as e:
server.client.hdel(server._OWNERSHIP(), name)
raise e
server.client.hdel(server._OWNERSHIP(), name)
description_back_again = server.get_attribute(attribute_type=AttributeType.description,
name=name, delay=server.DELAYS[0])
assert description_back_again is None
and_again = server.get_horizon_description(name=name, delay=server.DELAYS[0])
assert and_again is None
# TODO: Test tripping of errors when attribute is not owned
# TODO: Test error memo generation
# TODO: Test confirm memo generation
# TODO: Test __delete_all_owner_attributes and ___delete_all_stream_attributes
STREAM_ATTRIBUTES = {AttributeType.description: 'COOL bananas',
AttributeType.homepage: 'www.mystream.com',
AttributeType.topic: 'Electricity',
AttributeType.article: 'www.linkedin.blah',
AttributeType.update: 'bankrupt'}
def test_delete_all_stream_attributes():
server = AttributeServer()
server.connect(**MICRO_TEST_CONFIG)
# Create fake ownership for testing
# Should probably write a context manager for this as it can be dangerous if OWNERSHIP and NAMES gets out of whack
name = 'fake_stream.json'
server.client.hset(name=server._OWNERSHIP(), key=name, value=BABLOH_CATTLE)
try:
for attribute, value in STREAM_ATTRIBUTES.items():
assert server.set_attribute(attribute_type=AttributeType.description, granularity=AttributeGranularity.name,
value=value, name=name, verbose=False, write_key=BABLOH_CATTLE)
value_back = server.get_attribute(attribute_type=AttributeType.description,
granularity=AttributeGranularity.name,
name=name, delay=server.DELAYS[0])
assert value_back == value
pipe = server.client.pipeline()
pipe = server._pipe_delete_all_stream_attributes(pipe=pipe, names=[name])
execution = pipe.execute()
except Exception as e:
server.client.hdel(server._OWNERSHIP(), name)
raise e
server.client.hdel(server._OWNERSHIP(), name)
for attribute, value in STREAM_ATTRIBUTES.items():
value_back = server.get_attribute(attribute_type=attribute, name=name)
assert value_back is None
def test_delete_all_public_owner_attributes():
server = AttributeServer()
server.connect(**MICRO_TEST_CONFIG)
code = server.shash(BABLOH_CATTLE)
for attribute, value in PUBLIC_PROFILE.items():
assert server.set_attribute(attribute_type=attribute, value=value, code=code, write_key=BABLOH_CATTLE,
verbose=False)
for attribute, value in PUBLIC_PROFILE.items():
value_back = server.get_attribute(attribute_type=attribute, code=code)
assert value_back == value
pipe = server.client.pipeline()
pipe = server._pipe_delete_all_public_owner_attributes(pipe=pipe, write_key=BABLOH_CATTLE)
execution = pipe.execute()
assert sum(ex == 1 for ex in execution) >= len(PUBLIC_PROFILE)
for attribute, value in PUBLIC_PROFILE.items():
assert server.get_attribute(attribute_type=attribute, code=code) is None
def test_delete_all_private_owner_attributes():
server = AttributeServer()
server.connect(**MICRO_TEST_CONFIG)
code = server.shash(BABLOH_CATTLE)
for attribute, value in PRIVATE_PROFILE.items():
assert server.set_attribute(attribute_type=attribute, value=value, write_key=BABLOH_CATTLE, verbose=False)
for attribute, value in PRIVATE_PROFILE.items():
value_back = server.get_attribute(attribute_type=attribute, write_key=BABLOH_CATTLE)
assert value_back == value
pipe = server.client.pipeline()
pipe = server._pipe_delete_all_private_owner_attributes(pipe=pipe, write_key=BABLOH_CATTLE)
execution = pipe.execute()
assert sum(ex == 1 for ex in execution) >= len(PRIVATE_PROFILE) # Other tests may confuse the issue
for attribute, value in PRIVATE_PROFILE.items():
assert server.get_attribute(attribute_type=attribute, code=code) is None
| 47.910979 | 120 | 0.677815 | 1,765 | 16,146 | 5.977337 | 0.099717 | 0.038673 | 0.068815 | 0.047393 | 0.820284 | 0.815166 | 0.801422 | 0.772038 | 0.760948 | 0.747962 | 0 | 0.003252 | 0.238139 | 16,146 | 336 | 121 | 48.053571 | 0.854402 | 0.055494 | 0 | 0.704545 | 0 | 0 | 0.04208 | 0.001772 | 0 | 0 | 0 | 0.002976 | 0.231061 | 1 | 0.056818 | false | 0 | 0.018939 | 0 | 0.075758 | 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 |
86ead6a56809e4b60344d9fd536bbdd20d654d00 | 22,252 | py | Python | sdk/python/pulumi_azure/servicebus/namespace_network_rule_set.py | aangelisc/pulumi-azure | 71dd9c75403146e16f7480e5a60b08bc0329660e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/servicebus/namespace_network_rule_set.py | aangelisc/pulumi-azure | 71dd9c75403146e16f7480e5a60b08bc0329660e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/servicebus/namespace_network_rule_set.py | aangelisc/pulumi-azure | 71dd9c75403146e16f7480e5a60b08bc0329660e | [
"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__ = ['NamespaceNetworkRuleSetArgs', 'NamespaceNetworkRuleSet']
@pulumi.input_type
class NamespaceNetworkRuleSetArgs:
def __init__(__self__, *,
namespace_name: pulumi.Input[str],
resource_group_name: pulumi.Input[str],
default_action: Optional[pulumi.Input[str]] = None,
ip_rules: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
network_rules: Optional[pulumi.Input[Sequence[pulumi.Input['NamespaceNetworkRuleSetNetworkRuleArgs']]]] = None):
"""
The set of arguments for constructing a NamespaceNetworkRuleSet resource.
:param pulumi.Input[str] namespace_name: Specifies the ServiceBus Namespace name to which to attach the ServiceBus Namespace Network Rule Set. Changing this forces a new resource to be created.
:param pulumi.Input[str] resource_group_name: Specifies the name of the Resource Group where the ServiceBus Namespace Network Rule Set should exist. Changing this forces a new resource to be created.
:param pulumi.Input[str] default_action: Specifies the default action for the ServiceBus Namespace Network Rule Set. Possible values are `Allow` and `Deny`. Defaults to `Deny`.
:param pulumi.Input[Sequence[pulumi.Input[str]]] ip_rules: One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
:param pulumi.Input[Sequence[pulumi.Input['NamespaceNetworkRuleSetNetworkRuleArgs']]] network_rules: One or more `network_rules` blocks as defined below.
"""
pulumi.set(__self__, "namespace_name", namespace_name)
pulumi.set(__self__, "resource_group_name", resource_group_name)
if default_action is not None:
pulumi.set(__self__, "default_action", default_action)
if ip_rules is not None:
pulumi.set(__self__, "ip_rules", ip_rules)
if network_rules is not None:
pulumi.set(__self__, "network_rules", network_rules)
@property
@pulumi.getter(name="namespaceName")
def namespace_name(self) -> pulumi.Input[str]:
"""
Specifies the ServiceBus Namespace name to which to attach the ServiceBus Namespace Network Rule Set. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "namespace_name")
@namespace_name.setter
def namespace_name(self, value: pulumi.Input[str]):
pulumi.set(self, "namespace_name", value)
@property
@pulumi.getter(name="resourceGroupName")
def resource_group_name(self) -> pulumi.Input[str]:
"""
Specifies the name of the Resource Group where the ServiceBus Namespace Network Rule Set should exist. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "resource_group_name")
@resource_group_name.setter
def resource_group_name(self, value: pulumi.Input[str]):
pulumi.set(self, "resource_group_name", value)
@property
@pulumi.getter(name="defaultAction")
def default_action(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the default action for the ServiceBus Namespace Network Rule Set. Possible values are `Allow` and `Deny`. Defaults to `Deny`.
"""
return pulumi.get(self, "default_action")
@default_action.setter
def default_action(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "default_action", value)
@property
@pulumi.getter(name="ipRules")
def ip_rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
"""
return pulumi.get(self, "ip_rules")
@ip_rules.setter
def ip_rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "ip_rules", value)
@property
@pulumi.getter(name="networkRules")
def network_rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NamespaceNetworkRuleSetNetworkRuleArgs']]]]:
"""
One or more `network_rules` blocks as defined below.
"""
return pulumi.get(self, "network_rules")
@network_rules.setter
def network_rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NamespaceNetworkRuleSetNetworkRuleArgs']]]]):
pulumi.set(self, "network_rules", value)
@pulumi.input_type
class _NamespaceNetworkRuleSetState:
def __init__(__self__, *,
default_action: Optional[pulumi.Input[str]] = None,
ip_rules: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
namespace_name: Optional[pulumi.Input[str]] = None,
network_rules: Optional[pulumi.Input[Sequence[pulumi.Input['NamespaceNetworkRuleSetNetworkRuleArgs']]]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None):
"""
Input properties used for looking up and filtering NamespaceNetworkRuleSet resources.
:param pulumi.Input[str] default_action: Specifies the default action for the ServiceBus Namespace Network Rule Set. Possible values are `Allow` and `Deny`. Defaults to `Deny`.
:param pulumi.Input[Sequence[pulumi.Input[str]]] ip_rules: One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
:param pulumi.Input[str] namespace_name: Specifies the ServiceBus Namespace name to which to attach the ServiceBus Namespace Network Rule Set. Changing this forces a new resource to be created.
:param pulumi.Input[Sequence[pulumi.Input['NamespaceNetworkRuleSetNetworkRuleArgs']]] network_rules: One or more `network_rules` blocks as defined below.
:param pulumi.Input[str] resource_group_name: Specifies the name of the Resource Group where the ServiceBus Namespace Network Rule Set should exist. Changing this forces a new resource to be created.
"""
if default_action is not None:
pulumi.set(__self__, "default_action", default_action)
if ip_rules is not None:
pulumi.set(__self__, "ip_rules", ip_rules)
if namespace_name is not None:
pulumi.set(__self__, "namespace_name", namespace_name)
if network_rules is not None:
pulumi.set(__self__, "network_rules", network_rules)
if resource_group_name is not None:
pulumi.set(__self__, "resource_group_name", resource_group_name)
@property
@pulumi.getter(name="defaultAction")
def default_action(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the default action for the ServiceBus Namespace Network Rule Set. Possible values are `Allow` and `Deny`. Defaults to `Deny`.
"""
return pulumi.get(self, "default_action")
@default_action.setter
def default_action(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "default_action", value)
@property
@pulumi.getter(name="ipRules")
def ip_rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
"""
return pulumi.get(self, "ip_rules")
@ip_rules.setter
def ip_rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "ip_rules", value)
@property
@pulumi.getter(name="namespaceName")
def namespace_name(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the ServiceBus Namespace name to which to attach the ServiceBus Namespace Network Rule Set. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "namespace_name")
@namespace_name.setter
def namespace_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "namespace_name", value)
@property
@pulumi.getter(name="networkRules")
def network_rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NamespaceNetworkRuleSetNetworkRuleArgs']]]]:
"""
One or more `network_rules` blocks as defined below.
"""
return pulumi.get(self, "network_rules")
@network_rules.setter
def network_rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NamespaceNetworkRuleSetNetworkRuleArgs']]]]):
pulumi.set(self, "network_rules", value)
@property
@pulumi.getter(name="resourceGroupName")
def resource_group_name(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the name of the Resource Group where the ServiceBus Namespace Network Rule Set should exist. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "resource_group_name")
@resource_group_name.setter
def resource_group_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "resource_group_name", value)
class NamespaceNetworkRuleSet(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
default_action: Optional[pulumi.Input[str]] = None,
ip_rules: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
namespace_name: Optional[pulumi.Input[str]] = None,
network_rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NamespaceNetworkRuleSetNetworkRuleArgs']]]]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
__props__=None):
"""
Manages a ServiceBus Namespace Network Rule Set Set.
## Example Usage
```python
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_namespace = azure.servicebus.Namespace("exampleNamespace",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
sku="Premium",
capacity=1)
example_virtual_network = azure.network.VirtualNetwork("exampleVirtualNetwork",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
address_spaces=["172.17.0.0/16"],
dns_servers=[
"10.0.0.4",
"10.0.0.5",
])
example_subnet = azure.network.Subnet("exampleSubnet",
resource_group_name=example_resource_group.name,
virtual_network_name=example_virtual_network.name,
address_prefixes=["172.17.0.0/24"],
service_endpoints=["Microsoft.ServiceBus"])
example_namespace_network_rule_set = azure.servicebus.NamespaceNetworkRuleSet("exampleNamespaceNetworkRuleSet",
namespace_name=example_namespace.name,
resource_group_name=example_resource_group.name,
default_action="Deny",
network_rules=[azure.servicebus.NamespaceNetworkRuleSetNetworkRuleArgs(
subnet_id=example_subnet.id,
ignore_missing_vnet_service_endpoint=False,
)],
ip_rules=["1.1.1.1"])
```
## Import
Service Bus Namespace can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:servicebus/namespaceNetworkRuleSet:NamespaceNetworkRuleSet example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Servicebus/namespaces/sbns1/networkrulesets/default
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] default_action: Specifies the default action for the ServiceBus Namespace Network Rule Set. Possible values are `Allow` and `Deny`. Defaults to `Deny`.
:param pulumi.Input[Sequence[pulumi.Input[str]]] ip_rules: One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
:param pulumi.Input[str] namespace_name: Specifies the ServiceBus Namespace name to which to attach the ServiceBus Namespace Network Rule Set. Changing this forces a new resource to be created.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NamespaceNetworkRuleSetNetworkRuleArgs']]]] network_rules: One or more `network_rules` blocks as defined below.
:param pulumi.Input[str] resource_group_name: Specifies the name of the Resource Group where the ServiceBus Namespace Network Rule Set should exist. Changing this forces a new resource to be created.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: NamespaceNetworkRuleSetArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Manages a ServiceBus Namespace Network Rule Set Set.
## Example Usage
```python
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_namespace = azure.servicebus.Namespace("exampleNamespace",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
sku="Premium",
capacity=1)
example_virtual_network = azure.network.VirtualNetwork("exampleVirtualNetwork",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
address_spaces=["172.17.0.0/16"],
dns_servers=[
"10.0.0.4",
"10.0.0.5",
])
example_subnet = azure.network.Subnet("exampleSubnet",
resource_group_name=example_resource_group.name,
virtual_network_name=example_virtual_network.name,
address_prefixes=["172.17.0.0/24"],
service_endpoints=["Microsoft.ServiceBus"])
example_namespace_network_rule_set = azure.servicebus.NamespaceNetworkRuleSet("exampleNamespaceNetworkRuleSet",
namespace_name=example_namespace.name,
resource_group_name=example_resource_group.name,
default_action="Deny",
network_rules=[azure.servicebus.NamespaceNetworkRuleSetNetworkRuleArgs(
subnet_id=example_subnet.id,
ignore_missing_vnet_service_endpoint=False,
)],
ip_rules=["1.1.1.1"])
```
## Import
Service Bus Namespace can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:servicebus/namespaceNetworkRuleSet:NamespaceNetworkRuleSet example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Servicebus/namespaces/sbns1/networkrulesets/default
```
:param str resource_name: The name of the resource.
:param NamespaceNetworkRuleSetArgs 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(NamespaceNetworkRuleSetArgs, 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,
default_action: Optional[pulumi.Input[str]] = None,
ip_rules: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
namespace_name: Optional[pulumi.Input[str]] = None,
network_rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NamespaceNetworkRuleSetNetworkRuleArgs']]]]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = NamespaceNetworkRuleSetArgs.__new__(NamespaceNetworkRuleSetArgs)
__props__.__dict__["default_action"] = default_action
__props__.__dict__["ip_rules"] = ip_rules
if namespace_name is None and not opts.urn:
raise TypeError("Missing required property 'namespace_name'")
__props__.__dict__["namespace_name"] = namespace_name
__props__.__dict__["network_rules"] = network_rules
if resource_group_name is None and not opts.urn:
raise TypeError("Missing required property 'resource_group_name'")
__props__.__dict__["resource_group_name"] = resource_group_name
super(NamespaceNetworkRuleSet, __self__).__init__(
'azure:servicebus/namespaceNetworkRuleSet:NamespaceNetworkRuleSet',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
default_action: Optional[pulumi.Input[str]] = None,
ip_rules: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
namespace_name: Optional[pulumi.Input[str]] = None,
network_rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NamespaceNetworkRuleSetNetworkRuleArgs']]]]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None) -> 'NamespaceNetworkRuleSet':
"""
Get an existing NamespaceNetworkRuleSet resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] default_action: Specifies the default action for the ServiceBus Namespace Network Rule Set. Possible values are `Allow` and `Deny`. Defaults to `Deny`.
:param pulumi.Input[Sequence[pulumi.Input[str]]] ip_rules: One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
:param pulumi.Input[str] namespace_name: Specifies the ServiceBus Namespace name to which to attach the ServiceBus Namespace Network Rule Set. Changing this forces a new resource to be created.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NamespaceNetworkRuleSetNetworkRuleArgs']]]] network_rules: One or more `network_rules` blocks as defined below.
:param pulumi.Input[str] resource_group_name: Specifies the name of the Resource Group where the ServiceBus Namespace Network Rule Set should exist. Changing this forces a new resource to be created.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _NamespaceNetworkRuleSetState.__new__(_NamespaceNetworkRuleSetState)
__props__.__dict__["default_action"] = default_action
__props__.__dict__["ip_rules"] = ip_rules
__props__.__dict__["namespace_name"] = namespace_name
__props__.__dict__["network_rules"] = network_rules
__props__.__dict__["resource_group_name"] = resource_group_name
return NamespaceNetworkRuleSet(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter(name="defaultAction")
def default_action(self) -> pulumi.Output[Optional[str]]:
"""
Specifies the default action for the ServiceBus Namespace Network Rule Set. Possible values are `Allow` and `Deny`. Defaults to `Deny`.
"""
return pulumi.get(self, "default_action")
@property
@pulumi.getter(name="ipRules")
def ip_rules(self) -> pulumi.Output[Optional[Sequence[str]]]:
"""
One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
"""
return pulumi.get(self, "ip_rules")
@property
@pulumi.getter(name="namespaceName")
def namespace_name(self) -> pulumi.Output[str]:
"""
Specifies the ServiceBus Namespace name to which to attach the ServiceBus Namespace Network Rule Set. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "namespace_name")
@property
@pulumi.getter(name="networkRules")
def network_rules(self) -> pulumi.Output[Optional[Sequence['outputs.NamespaceNetworkRuleSetNetworkRule']]]:
"""
One or more `network_rules` blocks as defined below.
"""
return pulumi.get(self, "network_rules")
@property
@pulumi.getter(name="resourceGroupName")
def resource_group_name(self) -> pulumi.Output[str]:
"""
Specifies the name of the Resource Group where the ServiceBus Namespace Network Rule Set should exist. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "resource_group_name")
| 51.990654 | 243 | 0.68641 | 2,546 | 22,252 | 5.778476 | 0.088374 | 0.07103 | 0.051387 | 0.044182 | 0.867999 | 0.857055 | 0.851142 | 0.838703 | 0.826536 | 0.804785 | 0 | 0.007797 | 0.221868 | 22,252 | 427 | 244 | 52.112412 | 0.841871 | 0.440994 | 0 | 0.679612 | 1 | 0 | 0.140548 | 0.048675 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15534 | false | 0.004854 | 0.033981 | 0 | 0.281553 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
81290db19686dc97b47698a416f66c308ade3aac | 94 | py | Python | src/mh_en_exec/resource/__init__.py | kkopus/ExternalNodes | 342f5e4151fc4b72839eef06c28ce20bf1746c0d | [
"MIT"
] | null | null | null | src/mh_en_exec/resource/__init__.py | kkopus/ExternalNodes | 342f5e4151fc4b72839eef06c28ce20bf1746c0d | [
"MIT"
] | null | null | null | src/mh_en_exec/resource/__init__.py | kkopus/ExternalNodes | 342f5e4151fc4b72839eef06c28ce20bf1746c0d | [
"MIT"
] | null | null | null | from .resource_manager_grpc import ResourceManager
from .resource_manager_grpc import Resource | 47 | 50 | 0.904255 | 12 | 94 | 6.75 | 0.5 | 0.296296 | 0.469136 | 0.567901 | 0.716049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074468 | 94 | 2 | 51 | 47 | 0.931034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
8130e71056fc0e68734b78ab3db68f64c62fcc3b | 183 | py | Python | froide/bounce/signals.py | kratz00/froide | f31e6dbe7f6d565058bde36461a6fa2d09e0388e | [
"MIT"
] | null | null | null | froide/bounce/signals.py | kratz00/froide | f31e6dbe7f6d565058bde36461a6fa2d09e0388e | [
"MIT"
] | null | null | null | froide/bounce/signals.py | kratz00/froide | f31e6dbe7f6d565058bde36461a6fa2d09e0388e | [
"MIT"
] | null | null | null | from django.dispatch import Signal
user_email_bounced = Signal(providing_args=['bounce', 'should_deactivate'])
email_bounced = Signal(providing_args=['bounce', 'should_deactivate'])
| 36.6 | 75 | 0.803279 | 22 | 183 | 6.363636 | 0.590909 | 0.171429 | 0.257143 | 0.385714 | 0.757143 | 0.757143 | 0.757143 | 0.757143 | 0 | 0 | 0 | 0 | 0.071038 | 183 | 4 | 76 | 45.75 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.251366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 8 |
d49ab8ebc7b796dc39241bde295f1e5d4a222355 | 2,295 | py | Python | pytorch_toolbelt/modules/encoders/timm/hrnet.py | mohitktanwr/toolkits | f3acfca5da05cd7ccdd85e8d343d75fa40fb44d9 | [
"MIT"
] | 2 | 2020-06-29T03:29:48.000Z | 2020-11-26T17:00:41.000Z | pytorch_toolbelt/modules/encoders/timm/hrnet.py | mohitktanwr/toolkits | f3acfca5da05cd7ccdd85e8d343d75fa40fb44d9 | [
"MIT"
] | null | null | null | pytorch_toolbelt/modules/encoders/timm/hrnet.py | mohitktanwr/toolkits | f3acfca5da05cd7ccdd85e8d343d75fa40fb44d9 | [
"MIT"
] | null | null | null | from ..common import EncoderModule, make_n_channel_input, _take
__all__ = [
"HRNetW18Encoder",
"HRNetW32Encoder",
"HRNetW48Encoder",
]
class HRNetW18Encoder(EncoderModule):
def __init__(self, pretrained=True, layers=None):
from timm.models import hrnet
if layers is None:
layers = [1, 2, 3, 4]
encoder = hrnet.hrnet_w18(pretrained=pretrained, features_only=True, out_indices=(0, 1, 2, 3, 4))
super().__init__([64, 128, 256, 512, 1024], [2, 4, 8, 16, 32], layers)
self.encoder = encoder
def forward(self, x):
y = self.encoder.forward(x)
return _take(y, self._layers)
def change_input_channels(self, input_channels: int, mode="auto", **kwargs):
self.encoder.conv1 = make_n_channel_input(self.encoder.conv1, input_channels, mode, **kwargs)
return self
class HRNetW32Encoder(EncoderModule):
def __init__(self, pretrained=True, layers=None):
from timm.models import hrnet
if layers is None:
layers = [1, 2, 3, 4]
encoder = hrnet.hrnet_w32(pretrained=pretrained, features_only=True, out_indices=(0, 1, 2, 3, 4))
super().__init__([64, 128, 256, 512, 1024], [2, 4, 8, 16, 32], layers)
self.encoder = encoder
def forward(self, x):
y = self.encoder.forward(x)
return _take(y, self._layers)
def change_input_channels(self, input_channels: int, mode="auto", **kwargs):
self.encoder.conv1 = make_n_channel_input(self.encoder.conv1, input_channels, mode, **kwargs)
return self
class HRNetW48Encoder(EncoderModule):
def __init__(self, pretrained=True, layers=None):
from timm.models import hrnet
if layers is None:
layers = [1, 2, 3, 4]
encoder = hrnet.hrnet_w48(pretrained=pretrained, features_only=True, out_indices=(0, 1, 2, 3, 4))
super().__init__([64, 128, 256, 512, 1024], [2, 4, 8, 16, 32], layers)
self.encoder = encoder
def forward(self, x):
y = self.encoder.forward(x)
return _take(y, self._layers)
def change_input_channels(self, input_channels: int, mode="auto", **kwargs):
self.encoder.conv1 = make_n_channel_input(self.encoder.conv1, input_channels, mode, **kwargs)
return self
| 34.253731 | 105 | 0.643573 | 304 | 2,295 | 4.634868 | 0.194079 | 0.093683 | 0.012775 | 0.017033 | 0.888573 | 0.888573 | 0.888573 | 0.888573 | 0.888573 | 0.888573 | 0 | 0.066251 | 0.230501 | 2,295 | 66 | 106 | 34.772727 | 0.731597 | 0 | 0 | 0.75 | 0 | 0 | 0.024837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.083333 | 0 | 0.458333 | 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 |
d4a170800c829751c8446bcddda8cab1b3f058cc | 2,603 | py | Python | 08.py | hendrikjeb/Euler | a9e62babcec4e4faef15b8e2d3db86790c9d59b8 | [
"MIT"
] | 1 | 2015-12-19T14:33:08.000Z | 2015-12-19T14:33:08.000Z | 08.py | hendrikjeb/Euler | a9e62babcec4e4faef15b8e2d3db86790c9d59b8 | [
"MIT"
] | null | null | null | 08.py | hendrikjeb/Euler | a9e62babcec4e4faef15b8e2d3db86790c9d59b8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
The four adjacent digits in the 1000-digit number that have the greatest product
are 9 × 9 × 8 × 9 = 5832.
73167176531330624919225119674426574742355349194934
96983520312774506326239578318016984801869478851843
85861560789112949495459501737958331952853208805511
12540698747158523863050715693290963295227443043557
66896648950445244523161731856403098711121722383113
62229893423380308135336276614282806444486645238749
30358907296290491560440772390713810515859307960866
70172427121883998797908792274921901699720888093776
65727333001053367881220235421809751254540594752243
52584907711670556013604839586446706324415722155397
53697817977846174064955149290862569321978468622482
83972241375657056057490261407972968652414535100474
82166370484403199890008895243450658541227588666881
16427171479924442928230863465674813919123162824586
17866458359124566529476545682848912883142607690042
24219022671055626321111109370544217506941658960408
07198403850962455444362981230987879927244284909188
84580156166097919133875499200524063689912560717606
05886116467109405077541002256983155200055935729725
71636269561882670428252483600823257530420752963450
Find the thirteen adjacent digits in the 1000-digit number
that have the greatest product. What is the value of this product?
"""
from time import time
start = time()
getal = '''
73167176531330624919225119674426574742355349194934
96983520312774506326239578318016984801869478851843
85861560789112949495459501737958331952853208805511
12540698747158523863050715693290963295227443043557
66896648950445244523161731856403098711121722383113
62229893423380308135336276614282806444486645238749
30358907296290491560440772390713810515859307960866
70172427121883998797908792274921901699720888093776
65727333001053367881220235421809751254540594752243
52584907711670556013604839586446706324415722155397
53697817977846174064955149290862569321978468622482
83972241375657056057490261407972968652414535100474
82166370484403199890008895243450658541227588666881
16427171479924442928230863465674813919123162824586
17866458359124566529476545682848912883142607690042
24219022671055626321111109370544217506941658960408
07198403850962455444362981230987879927244284909188
84580156166097919133875499200524063689912560717606
05886116467109405077541002256983155200055935729725
71636269561882670428252483600823257530420752963450
'''.replace('\n', '')
factor = 13
z = 0
for i in xrange(len(getal) - (factor - 1)):
k = 1
for j in getal[i:i+factor]:
k *= int(j)
# print j,
if k > z:
z = k
print z
# else:
# print ''
#print z
print 'Tijd: ', time() - start | 34.706667 | 81 | 0.900499 | 138 | 2,603 | 17.007246 | 0.5 | 0.01193 | 0.013634 | 0.016191 | 0.903281 | 0.903281 | 0.903281 | 0.903281 | 0.903281 | 0.903281 | 0 | 0.833471 | 0.067998 | 2,603 | 75 | 82 | 34.706667 | 0.132729 | 0.020361 | 0 | 0 | 0 | 0 | 0.805795 | 0.783085 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029412 | null | null | 0.058824 | 0 | 0 | 1 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 13 |
d4a8162d954721fe70257259bb11b5984482a9b2 | 45,597 | py | Python | tests/cli/test_suite.py | kyleaton/great_expectations | a856513859445cdb1b254e0d90022bab6257b6a2 | [
"Apache-2.0"
] | null | null | null | tests/cli/test_suite.py | kyleaton/great_expectations | a856513859445cdb1b254e0d90022bab6257b6a2 | [
"Apache-2.0"
] | null | null | null | tests/cli/test_suite.py | kyleaton/great_expectations | a856513859445cdb1b254e0d90022bab6257b6a2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import json
import os
import mock
from click.testing import CliRunner
from great_expectations import DataContext
from great_expectations.cli import cli
from great_expectations.core import ExpectationSuite
from tests.cli.utils import assert_no_logging_messages_or_tracebacks
def test_suite_help_output(caplog):
runner = CliRunner(mix_stderr=False)
result = runner.invoke(cli, ["suite"], catch_exceptions=False)
assert result.exit_code == 0
assert (
"""Commands:
demo Create a new demo Expectation Suite.
edit Generate a Jupyter notebook for editing an existing Expectation...
list Lists available Expectation Suites.
new Create a new Expectation Suite.
scaffold Scaffold a new Expectation Suite."""
in result.stdout
)
assert_no_logging_messages_or_tracebacks(caplog, result)
@mock.patch("subprocess.call", return_value=True, side_effect=None)
@mock.patch("webbrowser.open", return_value=True, side_effect=None)
def test_suite_demo_on_context_with_no_datasources(
mock_webbrowser, mock_subprocess, caplog, empty_data_context
):
"""
We call the "suite demo" command on a data context that has no datasources
configured.
The command should:
- exit with a clear error message
- NOT open Data Docs
- NOT open jupyter
"""
project_root_dir = empty_data_context.root_directory
root_dir = project_root_dir
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli, ["suite", "demo", "-d", root_dir], catch_exceptions=False,
)
stdout = result.stdout
assert result.exit_code == 1
assert "No datasources found in the context" in stdout
assert mock_webbrowser.call_count == 0
assert mock_subprocess.call_count == 0
assert_no_logging_messages_or_tracebacks(caplog, result)
@mock.patch("subprocess.call", return_value=True, side_effect=None)
@mock.patch("webbrowser.open", return_value=True, side_effect=None)
def test_suite_demo_enter_existing_suite_name_as_arg(
mock_webbrowser, mock_subprocess, caplog, data_context
):
"""
We call the "suite demo" command with the name of an existing expectation
suite in the --suite argument
The command should:
- exit with a clear error message
- NOT open Data Docs
- NOT open jupyter
"""
not_so_empty_data_context = data_context
project_root_dir = not_so_empty_data_context.root_directory
os.mkdir(os.path.join(project_root_dir, "uncommitted"))
context = DataContext(project_root_dir)
existing_suite_name = "my_dag_node.default"
assert context.list_expectation_suite_names() == [existing_suite_name]
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli,
[
"suite",
"demo",
"-d",
project_root_dir,
"--suite",
existing_suite_name,
"--no-view",
],
catch_exceptions=False,
)
stdout = result.stdout
assert result.exit_code == 1
assert (
f"An expectation suite named `{existing_suite_name}` already exists." in stdout
)
assert (
f"If you intend to edit the suite please use `great_expectations suite edit {existing_suite_name}`"
in stdout
)
assert mock_webbrowser.call_count == 0
assert mock_subprocess.call_count == 0
assert_no_logging_messages_or_tracebacks(caplog, result)
@mock.patch("subprocess.call", return_value=True, side_effect=None)
@mock.patch("webbrowser.open", return_value=True, side_effect=None)
def test_suite_demo_answer_suite_name_prompts_with_name_of_existing_suite(
mock_webbrowser, mock_subprocess, caplog, data_context, filesystem_csv_2
):
"""
We call the "suite demo" command without the suite name argument
The command should:
- prompt us to enter the name of the expectation suite that will be
created. We answer the prompt with the name of an existing expectation suite.
- display an error message and let us retry until we answer
with a name that is not "taken".
- create an example suite
- NOT open jupyter
- open DataDocs to the new example suite page
"""
not_so_empty_data_context = data_context
root_dir = not_so_empty_data_context.root_directory
os.mkdir(os.path.join(root_dir, "uncommitted"))
runner = CliRunner(mix_stderr=False)
csv_path = os.path.join(filesystem_csv_2, "f1.csv")
existing_suite_name = "my_dag_node.default"
context = DataContext(root_dir)
assert context.list_expectation_suite_names() == [existing_suite_name]
result = runner.invoke(
cli,
["suite", "demo", "-d", root_dir],
input=f"{csv_path}\n{existing_suite_name}\nmy_new_suite\n\n",
catch_exceptions=False,
)
stdout = result.stdout
assert result.exit_code == 0
assert (
f"An expectation suite named `{existing_suite_name}` already exists." in stdout
)
assert (
f"If you intend to edit the suite please use `great_expectations suite edit {existing_suite_name}`"
in stdout
)
assert "Enter the path" in stdout
assert "Name the new expectation suite [f1.warning]" in stdout
assert (
"Great Expectations will choose a couple of columns and generate expectations"
in stdout
)
assert "Generating example Expectation Suite..." in stdout
assert "Building" in stdout
assert "The following Data Docs sites were built" in stdout
assert "A new Expectation suite 'my_new_suite' was added to your project" in stdout
assert "open a notebook for you now" not in stdout
expected_suite_path = os.path.join(root_dir, "expectations", "my_new_suite.json")
assert os.path.isfile(expected_suite_path)
assert mock_subprocess.call_count == 0
assert mock_webbrowser.call_count == 1
foo = os.path.join(
root_dir, "uncommitted/data_docs/local_site/validations/my_new_suite/"
)
assert f"file://{foo}" in mock_webbrowser.call_args[0][0]
assert_no_logging_messages_or_tracebacks(caplog, result)
@mock.patch("subprocess.call", return_value=True, side_effect=None)
@mock.patch("webbrowser.open", return_value=True, side_effect=None)
def test_suite_new_creates_empty_suite(
mock_webbroser, mock_subprocess, caplog, data_context, filesystem_csv_2
):
"""
Running "suite new" should:
- make an empty suite
- open jupyter
- NOT open data docs
"""
project_root_dir = data_context.root_directory
os.mkdir(os.path.join(project_root_dir, "uncommitted"))
root_dir = project_root_dir
os.chdir(root_dir)
runner = CliRunner(mix_stderr=False)
csv = os.path.join(filesystem_csv_2, "f1.csv")
# TODO this test must be updated to remove the --empty flag in the next major release
result = runner.invoke(
cli,
["suite", "new", "-d", root_dir, "--empty", "--suite", "foo"],
input=f"{csv}\n",
catch_exceptions=False,
)
stdout = result.stdout
assert result.exit_code == 0
assert "Enter the path" in stdout
assert "Name the new expectation suite" not in stdout
assert (
"Great Expectations will choose a couple of columns and generate expectations"
not in stdout
)
assert "Generating example Expectation Suite..." not in stdout
assert "The following Data Docs sites were built" not in stdout
assert "A new Expectation suite 'foo' was added to your project" in stdout
assert (
"Because you requested an empty suite, we'll open a notebook for you now to edit it!"
in stdout
)
expected_suite_path = os.path.join(root_dir, "expectations", "foo.json")
assert os.path.isfile(expected_suite_path)
expected_notebook = os.path.join(root_dir, "uncommitted", "edit_foo.ipynb")
assert os.path.isfile(expected_notebook)
context = DataContext(root_dir)
assert "foo" in context.list_expectation_suite_names()
suite = context.get_expectation_suite("foo")
assert suite.expectations == []
citations = suite.get_citations()
citations[0].pop("citation_date")
assert citations[0] == {
"batch_kwargs": {
"datasource": "mydatasource",
"path": csv,
"reader_method": "read_csv",
},
"batch_markers": None,
"batch_parameters": None,
"comment": "New suite added via CLI",
}
assert mock_subprocess.call_count == 1
call_args = mock_subprocess.call_args[0][0]
assert call_args[0] == "jupyter"
assert call_args[1] == "notebook"
assert expected_notebook in call_args[2]
assert mock_webbroser.call_count == 0
assert_no_logging_messages_or_tracebacks(caplog, result)
@mock.patch("subprocess.call", return_value=True, side_effect=None)
@mock.patch("webbrowser.open", return_value=True, side_effect=None)
def test_suite_new_empty_with_no_jupyter(
mock_webbroser, mock_subprocess, caplog, data_context, filesystem_csv_2
):
"""
Running "suite new --no-jupyter" should:
- make an empty suite
- NOT open jupyter
- NOT open data docs
"""
os.mkdir(os.path.join(data_context.root_directory, "uncommitted"))
root_dir = data_context.root_directory
runner = CliRunner(mix_stderr=False)
csv = os.path.join(filesystem_csv_2, "f1.csv")
# TODO this test must be updated to remove the --empty flag in the next major release
result = runner.invoke(
cli,
["suite", "new", "-d", root_dir, "--empty", "--suite", "foo", "--no-jupyter"],
input=f"{csv}\n",
catch_exceptions=False,
)
stdout = result.stdout
assert result.exit_code == 0
assert "Enter the path" in stdout
assert "Name the new expectation suite" not in stdout
assert (
"Great Expectations will choose a couple of columns and generate expectations"
not in stdout
)
assert "Generating example Expectation Suite..." not in stdout
assert "The following Data Docs sites were built" not in stdout
assert "A new Expectation suite 'foo' was added to your project" in stdout
assert "open a notebook for you now" not in stdout
expected_suite_path = os.path.join(root_dir, "expectations", "foo.json")
assert os.path.isfile(expected_suite_path)
expected_notebook = os.path.join(root_dir, "uncommitted", "edit_foo.ipynb")
assert os.path.isfile(expected_notebook)
context = DataContext(root_dir)
assert "foo" in context.list_expectation_suite_names()
suite = context.get_expectation_suite("foo")
assert suite.expectations == []
citations = suite.get_citations()
citations[0].pop("citation_date")
assert citations[0] == {
"batch_kwargs": {
"datasource": "mydatasource",
"path": csv,
"reader_method": "read_csv",
},
"batch_markers": None,
"batch_parameters": None,
"comment": "New suite added via CLI",
}
assert mock_subprocess.call_count == 0
assert mock_webbroser.call_count == 0
assert_no_logging_messages_or_tracebacks(caplog, result)
@mock.patch("subprocess.call", return_value=True, side_effect=None)
@mock.patch("webbrowser.open", return_value=True, side_effect=None)
def test_suite_demo_one_datasource_without_generator_without_suite_name_argument(
mock_webbrowser, mock_subprocess, caplog, empty_data_context, filesystem_csv_2
):
"""
We call the "suite demo" command without the suite name argument
The command should:
- NOT prompt us to choose a datasource (because there is only one)
- prompt us only to enter the path (The datasource has no generator
configured and not to choose from the generator's list of available data
assets).
- We enter the path of the file we want the command to use as the batch to
create the expectation suite.
- prompt us to enter the name of the expectation suite that will be
created
- open Data Docs
- NOT open jupyter
"""
empty_data_context.add_datasource(
"my_datasource",
module_name="great_expectations.datasource",
class_name="PandasDatasource",
)
context = empty_data_context
root_dir = context.root_directory
context = DataContext(root_dir)
runner = CliRunner(mix_stderr=False)
csv_path = os.path.join(filesystem_csv_2, "f1.csv")
result = runner.invoke(
cli,
["suite", "demo", "-d", root_dir],
input=f"{csv_path}\nmy_new_suite\n\n",
catch_exceptions=False,
)
stdout = result.stdout
assert result.exit_code == 0
assert "Enter the path" in stdout
assert "Name the new expectation suite [f1.warning]" in stdout
assert (
"Great Expectations will choose a couple of columns and generate expectations"
in stdout
)
assert "Generating example Expectation Suite..." in stdout
assert "Building" in stdout
assert "The following Data Docs sites were built" in stdout
assert "A new Expectation suite 'my_new_suite' was added to your project" in stdout
obs_urls = context.get_docs_sites_urls()
assert len(obs_urls) == 1
assert (
"great_expectations/uncommitted/data_docs/local_site/index.html"
in obs_urls[0]["site_url"]
)
expected_index_path = os.path.join(
root_dir, "uncommitted", "data_docs", "local_site", "index.html"
)
assert os.path.isfile(expected_index_path)
expected_suite_path = os.path.join(root_dir, "expectations", "my_new_suite.json")
assert os.path.isfile(expected_suite_path)
assert mock_webbrowser.call_count == 1
assert mock_subprocess.call_count == 0
assert_no_logging_messages_or_tracebacks(caplog, result)
@mock.patch("subprocess.call", return_value=True, side_effect=None)
@mock.patch("webbrowser.open", return_value=True, side_effect=None)
def test_suite_demo_multiple_datasources_with_generator_without_suite_name_argument(
mock_webbrowser,
mock_subprocess,
caplog,
site_builder_data_context_with_html_store_titanic_random,
):
"""
We call the "suite demo" command without the suite name argument
- The data context has two datasources - we choose one of them.
- It has a generator configured. We choose to use the generator and select a
generator asset from the list.
- The command should prompt us to enter the name of the expectation suite
that will be created.
- open Data Docs
- NOT open jupyter
"""
root_dir = site_builder_data_context_with_html_store_titanic_random.root_directory
os.chdir(root_dir)
context = DataContext(root_dir)
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli,
["suite", "demo", "-d", root_dir],
input="1\n1\n1\nmy_new_suite\n\n",
catch_exceptions=False,
)
stdout = result.stdout
assert result.exit_code == 0
assert (
"""Select a datasource
1. random
2. titanic"""
in stdout
)
assert (
"""Which data would you like to use?
1. f1 (file)
2. f2 (file)"""
in stdout
)
assert "Name the new expectation suite [f1.warning]" in stdout
assert (
"Great Expectations will choose a couple of columns and generate expectations"
in stdout
)
assert "Generating example Expectation Suite..." in stdout
assert "Building" in stdout
assert "The following Data Docs sites were built" in stdout
assert "A new Expectation suite 'my_new_suite' was added to your project" in stdout
obs_urls = context.get_docs_sites_urls()
assert len(obs_urls) == 1
assert (
"great_expectations/uncommitted/data_docs/local_site/index.html"
in obs_urls[0]["site_url"]
)
expected_index_path = os.path.join(
root_dir, "uncommitted", "data_docs", "local_site", "index.html"
)
assert os.path.isfile(expected_index_path)
expected_suite_path = os.path.join(root_dir, "expectations", "my_new_suite.json")
assert os.path.isfile(expected_suite_path)
assert mock_webbrowser.call_count == 1
assert mock_subprocess.call_count == 0
assert_no_logging_messages_or_tracebacks(caplog, result)
@mock.patch("subprocess.call", return_value=True, side_effect=None)
@mock.patch("webbrowser.open", return_value=True, side_effect=None)
def test_suite_demo_multiple_datasources_with_generator_with_suite_name_argument(
mock_webbrowser,
mock_subprocess,
caplog,
site_builder_data_context_with_html_store_titanic_random,
):
"""
We call the "suite demo" command with the suite name argument
- The data context has two datasources - we choose one of them.
- It has a generator configured. We choose to use the generator and select
a generator asset from the list.
- open Data Docs
- NOT open jupyter
"""
root_dir = site_builder_data_context_with_html_store_titanic_random.root_directory
os.chdir(root_dir)
context = DataContext(root_dir)
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli,
["suite", "demo", "-d", root_dir, "--suite", "foo_suite"],
input="2\n1\n1\n\n",
catch_exceptions=False,
)
stdout = result.stdout
assert result.exit_code == 0
assert "Select a datasource" in stdout
assert "Which data would you like to use" in stdout
assert (
"Great Expectations will choose a couple of columns and generate expectations"
in stdout
)
assert "Generating example Expectation Suite..." in stdout
assert "Building" in stdout
assert "The following Data Docs sites were built" in stdout
assert "A new Expectation suite 'foo_suite' was added to your project" in stdout
obs_urls = context.get_docs_sites_urls()
assert len(obs_urls) == 1
assert (
"great_expectations/uncommitted/data_docs/local_site/index.html"
in obs_urls[0]["site_url"]
)
expected_index_path = os.path.join(
root_dir, "uncommitted", "data_docs", "local_site", "index.html"
)
assert os.path.isfile(expected_index_path)
expected_suite_path = os.path.join(root_dir, "expectations", "foo_suite.json")
assert os.path.isfile(expected_suite_path)
assert mock_webbrowser.call_count == 1
assert mock_subprocess.call_count == 0
assert_no_logging_messages_or_tracebacks(caplog, result)
def test_suite_edit_without_suite_name_raises_error():
"""This is really only testing click missing arguments"""
runner = CliRunner(mix_stderr=False)
result = runner.invoke(cli, "suite edit", catch_exceptions=False)
assert result.exit_code == 2
assert (
'Error: Missing argument "SUITE".' in result.stderr
or "Error: Missing argument 'SUITE'." in result.stderr
)
@mock.patch("subprocess.call", return_value=True, side_effect=None)
@mock.patch("webbrowser.open", return_value=True, side_effect=None)
def test_suite_edit_with_invalid_json_batch_kwargs_raises_helpful_error(
mock_webbrowser, mock_subprocess, caplog, empty_data_context
):
"""
The command should:
- exit with a clear error message
- NOT open Data Docs
- NOT open jupyter
"""
project_dir = empty_data_context.root_directory
context = DataContext(project_dir)
context.create_expectation_suite("foo")
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli,
["suite", "edit", "foo", "-d", project_dir, "--batch-kwargs", "'{foobar}'"],
catch_exceptions=False,
)
stdout = result.output
assert result.exit_code == 1
assert "Please check that your batch_kwargs are valid JSON." in stdout
assert mock_webbrowser.call_count == 0
assert mock_subprocess.call_count == 0
assert_no_logging_messages_or_tracebacks(caplog, result)
@mock.patch("subprocess.call", return_value=True, side_effect=None)
@mock.patch("webbrowser.open", return_value=True, side_effect=None)
def test_suite_edit_with_batch_kwargs_unable_to_load_a_batch_raises_helpful_error(
mock_webbrowser, mock_subprocess, caplog, empty_data_context
):
"""
The command should:
- exit with a clear error message
- NOT open Data Docs
- NOT open jupyter
"""
project_dir = empty_data_context.root_directory
context = DataContext(project_dir)
context.create_expectation_suite("foo")
context.add_datasource("source", class_name="PandasDatasource")
runner = CliRunner(mix_stderr=False)
batch_kwargs = '{"table": "fake", "datasource": "source"}'
result = runner.invoke(
cli,
["suite", "edit", "foo", "-d", project_dir, "--batch-kwargs", batch_kwargs],
catch_exceptions=False,
)
stdout = result.output
assert result.exit_code == 1
assert "To continue editing this suite" not in stdout
assert "Please check that your batch_kwargs are able to load a batch." in stdout
assert mock_webbrowser.call_count == 0
assert mock_subprocess.call_count == 0
assert_no_logging_messages_or_tracebacks(caplog, result)
@mock.patch("subprocess.call", return_value=True, side_effect=None)
@mock.patch("webbrowser.open", return_value=True, side_effect=None)
def test_suite_edit_with_non_existent_suite_name_raises_error(
mock_webbrowser, mock_subprocess, caplog, empty_data_context
):
"""
The command should:
- exit with a clear error message
- NOT open Data Docs
- NOT open jupyter
"""
project_dir = empty_data_context.root_directory
assert not empty_data_context.list_expectation_suites()
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli,
"suite edit not_a_real_suite -d {}".format(project_dir),
catch_exceptions=False,
)
assert result.exit_code == 1
assert "Could not find a suite named `not_a_real_suite`." in result.output
assert "by running `great_expectations suite list`" in result.output
assert mock_webbrowser.call_count == 0
assert mock_subprocess.call_count == 0
assert_no_logging_messages_or_tracebacks(caplog, result)
@mock.patch("subprocess.call", return_value=True, side_effect=None)
@mock.patch("webbrowser.open", return_value=True, side_effect=None)
def test_suite_edit_with_non_existent_datasource_shows_helpful_error_message(
mock_webbrowser, mock_subprocess, caplog, empty_data_context
):
"""
The command should:
- exit with a clear error message
- NOT open Data Docs
- NOT open jupyter
"""
project_dir = empty_data_context.root_directory
context = DataContext(project_dir)
context.create_expectation_suite("foo")
assert context.list_expectation_suites()[0].expectation_suite_name == "foo"
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli,
f"suite edit foo -d {project_dir} --datasource not_real",
catch_exceptions=False,
)
assert result.exit_code == 1
assert (
"Unable to load datasource `not_real` -- no configuration found or invalid configuration."
in result.output
)
assert mock_webbrowser.call_count == 0
assert mock_subprocess.call_count == 0
assert_no_logging_messages_or_tracebacks(caplog, result)
@mock.patch("subprocess.call", return_value=True, side_effect=None)
@mock.patch("webbrowser.open", return_value=True, side_effect=None)
def test_suite_edit_multiple_datasources_with_generator_with_no_additional_args_with_suite_without_citations(
mock_webbrowser,
mock_subprocess,
caplog,
site_builder_data_context_with_html_store_titanic_random,
):
"""
Here we verify that the "suite edit" command helps the user to specify the batch
kwargs when it is called without the optional arguments that specify the batch.
First, we call the "suite new" command to create the expectation suite our test
will edit - this step is a just a setup.
We call the "suite edit" command without any optional arguments. This means that
the command will help us specify the batch kwargs interactively.
The data context has two datasources - we choose one of them. It has a generator
configured. We choose to use the generator and select a generator asset from the list.
The command should:
- NOT open Data Docs
- open jupyter
"""
root_dir = site_builder_data_context_with_html_store_titanic_random.root_directory
os.chdir(root_dir)
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli,
["suite", "demo", "-d", root_dir, "--suite", "foo_suite"],
input="2\n1\n1\n\n",
catch_exceptions=False,
)
assert result.exit_code == 0
assert mock_webbrowser.call_count == 1
assert mock_subprocess.call_count == 0
mock_webbrowser.reset_mock()
mock_subprocess.reset_mock()
# remove the citations from the suite
context = DataContext(root_dir)
suite = context.get_expectation_suite("foo_suite")
assert isinstance(suite, ExpectationSuite)
suite.meta.pop("citations")
context.save_expectation_suite(suite)
# Actual testing really starts here
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli,
["suite", "edit", "foo_suite", "-d", root_dir,],
input="2\n1\n1\n\n",
catch_exceptions=False,
)
assert result.exit_code == 0
stdout = result.stdout
assert "A batch of data is required to edit the suite" in stdout
assert "Select a datasource" in stdout
assert "Which data would you like to use" in stdout
expected_notebook_path = os.path.join(
root_dir, "uncommitted", "edit_foo_suite.ipynb"
)
assert os.path.isfile(expected_notebook_path)
expected_suite_path = os.path.join(root_dir, "expectations", "foo_suite.json")
assert os.path.isfile(expected_suite_path)
assert mock_webbrowser.call_count == 0
assert mock_subprocess.call_count == 1
assert_no_logging_messages_or_tracebacks(caplog, result)
@mock.patch("subprocess.call", return_value=True, side_effect=None)
@mock.patch("webbrowser.open", return_value=True, side_effect=None)
def test_suite_edit_multiple_datasources_with_generator_with_no_additional_args_with_suite_containing_citations(
mock_webbrowser,
mock_subprocess,
caplog,
site_builder_data_context_with_html_store_titanic_random,
):
"""
Here we verify that the "suite edit" command uses the batch kwargs found in
citations in the existing suite when it is called without the optional
arguments that specify the batch.
First, we call the "suite new" command to create the expectation suite our
test will edit - this step is a just a setup.
We call the "suite edit" command without any optional arguments.
The command should:
- NOT open Data Docs
- NOT open jupyter
"""
root_dir = site_builder_data_context_with_html_store_titanic_random.root_directory
os.chdir(root_dir)
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli,
["suite", "demo", "-d", root_dir, "--suite", "foo_suite"],
input="2\n1\n1\n\n",
catch_exceptions=False,
)
assert mock_webbrowser.call_count == 1
assert mock_subprocess.call_count == 0
mock_subprocess.reset_mock()
mock_webbrowser.reset_mock()
assert result.exit_code == 0
context = DataContext(root_dir)
suite = context.get_expectation_suite("foo_suite")
assert isinstance(suite, ExpectationSuite)
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli,
["suite", "edit", "foo_suite", "-d", root_dir],
input="2\n1\n1\n\n",
catch_exceptions=False,
)
assert result.exit_code == 0
stdout = result.stdout
assert "Select a datasource" not in stdout
assert "Which data would you like to use" not in stdout
expected_notebook_path = os.path.join(
root_dir, "uncommitted", "edit_foo_suite.ipynb"
)
assert os.path.isfile(expected_notebook_path)
expected_suite_path = os.path.join(root_dir, "expectations", "foo_suite.json")
assert os.path.isfile(expected_suite_path)
assert mock_webbrowser.call_count == 0
assert mock_subprocess.call_count == 1
assert_no_logging_messages_or_tracebacks(caplog, result)
@mock.patch("subprocess.call", return_value=True, side_effect=None)
@mock.patch("webbrowser.open", return_value=True, side_effect=None)
def test_suite_edit_multiple_datasources_with_generator_with_batch_kwargs_arg(
mock_webbrowser,
mock_subprocess,
caplog,
site_builder_data_context_with_html_store_titanic_random,
):
"""
Here we verify that when the "suite edit" command is called with batch_kwargs arg
that specifies the batch that will be used as a sample for editing the suite,
the command processes the batch_kwargs correctly and skips all the prompts
that help users to specify the batch (when called without batch_kwargs).
First, we call the "suite new" command to create the expectation suite our test
will edit - this step is a just a setup.
We call the "suite edit" command without any optional arguments. This means that
the command will help us specify the batch kwargs interactively.
The data context has two datasources - we choose one of them. It has a generator
configured. We choose to use the generator and select a generator asset from the list.
The command should:
- NOT open Data Docs
- open jupyter
"""
root_dir = site_builder_data_context_with_html_store_titanic_random.root_directory
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli,
["suite", "demo", "-d", root_dir, "--suite", "foo_suite", "--no-view"],
input="2\n1\n1\n\n",
catch_exceptions=False,
)
stdout = result.stdout
assert result.exit_code == 0
assert mock_webbrowser.call_count == 0
assert mock_subprocess.call_count == 0
mock_subprocess.reset_mock()
mock_webbrowser.reset_mock()
assert "A new Expectation suite 'foo_suite' was added to your project" in stdout
batch_kwargs = {
"datasource": "random",
"path": str(
os.path.join(
os.path.abspath(os.path.join(root_dir, os.pardir)),
"data",
"random",
"f1.csv",
)
),
}
batch_kwargs_arg_str = json.dumps(batch_kwargs)
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli,
[
"suite",
"edit",
"foo_suite",
"-d",
root_dir,
"--batch-kwargs",
batch_kwargs_arg_str,
],
catch_exceptions=False,
)
stdout = result.stdout
assert result.exit_code == 0
assert "Select a datasource" not in stdout
assert "Which data would you like to use" not in stdout
expected_notebook_path = os.path.join(
root_dir, "uncommitted", "edit_foo_suite.ipynb"
)
assert os.path.isfile(expected_notebook_path)
expected_suite_path = os.path.join(root_dir, "expectations", "foo_suite.json")
assert os.path.isfile(expected_suite_path)
assert mock_webbrowser.call_count == 0
assert mock_subprocess.call_count == 1
assert_no_logging_messages_or_tracebacks(caplog, result)
@mock.patch("subprocess.call", return_value=True, side_effect=None)
@mock.patch("webbrowser.open", return_value=True, side_effect=None)
def test_suite_edit_on_exsiting_suite_one_datasources_with_batch_kwargs_without_datasource_raises_helpful_error(
mock_webbrowser, mock_subprocess, caplog, titanic_data_context,
):
"""
Given:
- the suite foo exists
- the a datasource exists
- and the users runs this
great_expectations suite edit foo --batch-kwargs '{"path": "data/10k.csv"}'
Then:
- The user should see a nice error and the program halts before notebook
compilation.
- NOT open Data Docs
- NOT open jupyter
'"""
project_dir = titanic_data_context.root_directory
context = DataContext(project_dir)
context.create_expectation_suite("foo")
runner = CliRunner(mix_stderr=False)
batch_kwargs = {"path": "../data/Titanic.csv"}
result = runner.invoke(
cli,
[
"suite",
"edit",
"foo",
"-d",
project_dir,
"--batch-kwargs",
json.dumps(batch_kwargs),
],
catch_exceptions=False,
)
stdout = result.output
assert result.exit_code == 1
assert "Please check that your batch_kwargs are able to load a batch." in stdout
assert "Unable to load datasource `None`" in stdout
assert mock_webbrowser.call_count == 0
assert mock_subprocess.call_count == 0
assert_no_logging_messages_or_tracebacks(caplog, result)
@mock.patch("subprocess.call", return_value=True, side_effect=None)
@mock.patch("webbrowser.open", return_value=True, side_effect=None)
def test_suite_edit_on_exsiting_suite_one_datasources_with_datasource_arg_and_batch_kwargs(
mock_webbrowser, mock_subprocess, caplog, titanic_data_context,
):
"""
Given:
- the suite foo exists
- the a datasource bar exists
- and the users runs this
great_expectations suite edit foo --datasource bar --batch-kwargs '{"path": "data/10k.csv"}'
Then:
- The user gets a working notebook
- NOT open Data Docs
- open jupyter
"""
project_dir = titanic_data_context.root_directory
context = DataContext(project_dir)
context.create_expectation_suite("foo")
runner = CliRunner(mix_stderr=False)
batch_kwargs = {"path": os.path.join(project_dir, "../", "data", "Titanic.csv")}
result = runner.invoke(
cli,
[
"suite",
"edit",
"foo",
"-d",
project_dir,
"--batch-kwargs",
json.dumps(batch_kwargs),
"--datasource",
"mydatasource",
],
catch_exceptions=False,
)
stdout = result.output
assert stdout == ""
assert result.exit_code == 0
expected_notebook_path = os.path.join(project_dir, "uncommitted", "edit_foo.ipynb")
assert os.path.isfile(expected_notebook_path)
expected_suite_path = os.path.join(project_dir, "expectations", "foo.json")
assert os.path.isfile(expected_suite_path)
assert mock_webbrowser.call_count == 0
assert mock_subprocess.call_count == 1
assert_no_logging_messages_or_tracebacks(caplog, result)
@mock.patch("subprocess.call", return_value=True, side_effect=None)
@mock.patch("webbrowser.open", return_value=True, side_effect=None)
def test_suite_edit_one_datasources_no_generator_with_no_additional_args_and_no_citations(
mock_webbrowser, mock_subprocess, caplog, empty_data_context, filesystem_csv_2
):
"""
Here we verify that the "suite edit" command helps the user to specify the batch
kwargs when it is called without the optional arguments that specify the batch.
First, we call the "suite new" command to create the expectation suite our test
will edit - this step is a just a setup.
We call the "suite edit" command without any optional arguments. This means that
the command will help us specify the batch kwargs interactively.
The data context has one datasource. The datasource has no generators
configured. The command prompts us to enter the file path.
"""
empty_data_context.add_datasource(
"my_datasource",
module_name="great_expectations.datasource",
class_name="PandasDatasource",
)
not_so_empty_data_context = empty_data_context
project_root_dir = not_so_empty_data_context.root_directory
root_dir = project_root_dir
os.chdir(root_dir)
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli,
["suite", "demo", "-d", root_dir],
input="{0:s}\nmy_new_suite\n\n".format(
os.path.join(filesystem_csv_2, "f1.csv")
),
catch_exceptions=False,
)
stdout = result.stdout
assert mock_webbrowser.call_count == 1
assert mock_subprocess.call_count == 0
mock_subprocess.reset_mock()
mock_webbrowser.reset_mock()
assert result.exit_code == 0
assert "A new Expectation suite 'my_new_suite' was added to your project" in stdout
# remove the citations from the suite
context = DataContext(project_root_dir)
suite = context.get_expectation_suite("my_new_suite")
suite.meta.pop("citations")
context.save_expectation_suite(suite)
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli,
["suite", "edit", "my_new_suite", "-d", root_dir],
input="{0:s}\n\n".format(os.path.join(filesystem_csv_2, "f1.csv")),
catch_exceptions=False,
)
assert result.exit_code == 0
stdout = result.stdout
assert "Select a datasource" not in stdout
assert "Which data would you like to use" not in stdout
assert "Enter the path" in stdout
expected_notebook_path = os.path.join(
root_dir, "uncommitted", "edit_my_new_suite.ipynb"
)
assert os.path.isfile(expected_notebook_path)
expected_suite_path = os.path.join(root_dir, "expectations", "my_new_suite.json")
assert os.path.isfile(expected_suite_path)
assert mock_webbrowser.call_count == 0
assert mock_subprocess.call_count == 1
assert_no_logging_messages_or_tracebacks(caplog, result)
def test_suite_list_with_zero_suites(caplog, empty_data_context):
project_dir = empty_data_context.root_directory
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli, "suite list -d {}".format(project_dir), catch_exceptions=False,
)
assert result.exit_code == 0
assert "No Expectation Suites found" in result.output
assert_no_logging_messages_or_tracebacks(caplog, result)
def test_suite_list_with_one_suite(caplog, empty_data_context):
project_dir = empty_data_context.root_directory
context = DataContext(project_dir)
context.create_expectation_suite("a.warning")
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli, "suite list -d {}".format(project_dir), catch_exceptions=False,
)
assert result.exit_code == 0
assert "1 Expectation Suite found" in result.output
assert "a.warning" in result.output
assert_no_logging_messages_or_tracebacks(caplog, result)
def test_suite_list_with_multiple_suites(caplog, empty_data_context):
project_dir = empty_data_context.root_directory
context = DataContext(project_dir)
context.create_expectation_suite("a.warning")
context.create_expectation_suite("b.warning")
context.create_expectation_suite("c.warning")
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli, "suite list -d {}".format(project_dir), catch_exceptions=False,
)
output = result.output
assert result.exit_code == 0
assert "3 Expectation Suites found:" in output
assert "a.warning" in output
assert "b.warning" in output
assert "c.warning" in output
assert_no_logging_messages_or_tracebacks(caplog, result)
@mock.patch(
"great_expectations.core.usage_statistics.usage_statistics.UsageStatisticsHandler.emit"
)
@mock.patch("subprocess.call", return_value=True, side_effect=None)
def test_suite_scaffold_on_context_with_no_datasource_raises_error(
mock_subprocess, mock_emit, caplog, empty_data_context
):
"""
We call the "suite scaffold" command on a context with no datasource
The command should:
- exit with a clear error message
- send a DataContext init success message
- send a scaffold fail message
"""
context = empty_data_context
root_dir = context.root_directory
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli, ["suite", "scaffold", "foop", "-d", root_dir], catch_exceptions=False,
)
stdout = result.output
assert result.exit_code == 1
assert (
"No datasources found in the context. To add a datasource, run `great_expectations datasource new`"
in stdout
)
assert mock_subprocess.call_count == 0
assert mock_emit.call_count == 2
assert mock_emit.call_args_list == [
mock.call(
{"event_payload": {}, "event": "data_context.__init__", "success": True}
),
mock.call(
{"event": "cli.suite.scaffold", "event_payload": {}, "success": False}
),
]
assert_no_logging_messages_or_tracebacks(caplog, result)
@mock.patch(
"great_expectations.core.usage_statistics.usage_statistics.UsageStatisticsHandler.emit"
)
def test_suite_scaffold_on_existing_suite_raises_error(
mock_emit, caplog, empty_data_context
):
"""
We call the "suite scaffold" command with an existing suite
The command should:
- exit with a clear error message
- send a DataContext init success message
- send a scaffold fail message
"""
context = empty_data_context
root_dir = context.root_directory
suite = context.create_expectation_suite("foop")
context.save_expectation_suite(suite)
assert context.list_expectation_suite_names() == ["foop"]
mock_emit.reset_mock()
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli, ["suite", "scaffold", "foop", "-d", root_dir], catch_exceptions=False,
)
stdout = result.output
assert result.exit_code == 1
assert "An expectation suite named `foop` already exists." in stdout
assert (
"If you intend to edit the suite please use `great_expectations suite edit foop`."
in stdout
)
assert mock_emit.call_count == 2
assert mock_emit.call_args_list == [
mock.call(
{"event_payload": {}, "event": "data_context.__init__", "success": True}
),
mock.call(
{"event": "cli.suite.scaffold", "event_payload": {}, "success": False}
),
]
assert_no_logging_messages_or_tracebacks(caplog, result)
@mock.patch(
"great_expectations.core.usage_statistics.usage_statistics.UsageStatisticsHandler.emit"
)
@mock.patch("subprocess.call", return_value=True, side_effect=None)
def test_suite_scaffold_creates_notebook_and_opens_jupyter(
mock_subprocess, mock_emit, caplog, titanic_data_context
):
"""
We call the "suite scaffold" command
The command should:
- create a new notebook
- open the notebook in jupyter
- send a DataContext init success message
- send a scaffold success message
"""
context = titanic_data_context
root_dir = context.root_directory
suite_name = "foop"
expected_notebook_path = os.path.join(
root_dir, context.GE_EDIT_NOTEBOOK_DIR, f"scaffold_{suite_name}.ipynb"
)
assert not os.path.isfile(expected_notebook_path)
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli,
["suite", "scaffold", suite_name, "-d", root_dir],
input="1\n1\n",
catch_exceptions=False,
)
stdout = result.output
assert result.exit_code == 0
assert os.path.isfile(expected_notebook_path)
assert mock_subprocess.call_count == 1
assert mock_subprocess.call_args_list == [
mock.call(["jupyter", "notebook", expected_notebook_path])
]
assert mock_emit.call_count == 2
assert mock_emit.call_args_list == [
mock.call(
{"event_payload": {}, "event": "data_context.__init__", "success": True}
),
mock.call(
{"event": "cli.suite.scaffold", "event_payload": {}, "success": True}
),
]
assert_no_logging_messages_or_tracebacks(caplog, result)
@mock.patch(
"great_expectations.core.usage_statistics.usage_statistics.UsageStatisticsHandler.emit"
)
@mock.patch("subprocess.call", return_value=True, side_effect=None)
def test_suite_scaffold_creates_notebook_with_no_jupyter_flag(
mock_subprocess, mock_emit, caplog, titanic_data_context
):
"""
We call the "suite scaffold --no-jupyter"
The command should:
- create a new notebook
- NOT open the notebook in jupyter
- tell the user to open the notebook
- send a DataContext init success message
- send a scaffold success message
"""
context = titanic_data_context
root_dir = context.root_directory
suite_name = "foop"
expected_notebook_path = os.path.join(
root_dir, context.GE_EDIT_NOTEBOOK_DIR, f"scaffold_{suite_name}.ipynb"
)
assert not os.path.isfile(expected_notebook_path)
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli,
["suite", "scaffold", suite_name, "-d", root_dir, "--no-jupyter"],
input="1\n1\n",
catch_exceptions=False,
)
stdout = result.output
assert result.exit_code == 0
assert os.path.isfile(expected_notebook_path)
assert (
f"To continue scaffolding this suite, run `jupyter notebook {expected_notebook_path}`"
in stdout
)
assert mock_subprocess.call_count == 0
assert mock_emit.call_count == 2
assert mock_emit.call_args_list == [
mock.call(
{"event_payload": {}, "event": "data_context.__init__", "success": True}
),
mock.call(
{"event": "cli.suite.scaffold", "event_payload": {}, "success": True}
),
]
assert_no_logging_messages_or_tracebacks(caplog, result)
| 34.129491 | 112 | 0.697787 | 6,052 | 45,597 | 5.011732 | 0.056015 | 0.019386 | 0.026771 | 0.02443 | 0.890904 | 0.867232 | 0.855791 | 0.836669 | 0.823184 | 0.806304 | 0 | 0.004473 | 0.210672 | 45,597 | 1,335 | 113 | 34.155056 | 0.838265 | 0.146567 | 0 | 0.760917 | 0 | 0 | 0.196291 | 0.027764 | 0 | 0 | 0 | 0.001498 | 0.267467 | 1 | 0.029476 | false | 0 | 0.008734 | 0 | 0.03821 | 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 |
d4e27293887866e1f7e58d56639b8d5f397b28a3 | 71,507 | py | Python | tests/test_sphericaldf.py | davidhendel/galpy | 9654e2e181d26abaac4a4fba49375887fb290d36 | [
"BSD-3-Clause"
] | null | null | null | tests/test_sphericaldf.py | davidhendel/galpy | 9654e2e181d26abaac4a4fba49375887fb290d36 | [
"BSD-3-Clause"
] | null | null | null | tests/test_sphericaldf.py | davidhendel/galpy | 9654e2e181d26abaac4a4fba49375887fb290d36 | [
"BSD-3-Clause"
] | null | null | null | # Tests of spherical distribution functions
import pytest
import numpy
from scipy import special
from galpy import potential
from galpy.df import isotropicHernquistdf, constantbetaHernquistdf, kingdf, \
isotropicPlummerdf, osipkovmerrittHernquistdf, isotropicNFWdf, \
eddingtondf, osipkovmerrittdf, osipkovmerrittNFWdf
from galpy.df import jeans
############################# ISOTROPIC HERNQUIST DF ##########################
# Note that we use the Hernquist case to check a bunch of code in the
# sphericaldf realm that doesn't need to be check for each new spherical DF
def test_isotropic_hernquist_dens_spherically_symmetric():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
dfh= isotropicHernquistdf(pot=pot)
numpy.random.seed(10)
samp= dfh.sample(n=100000)
# Check spherical symmetry for different harmonics l,m
tol= 1e-2
check_spherical_symmetry(samp,0,0,tol)
check_spherical_symmetry(samp,1,0,tol)
check_spherical_symmetry(samp,1,-1,tol)
check_spherical_symmetry(samp,1,1,tol)
check_spherical_symmetry(samp,2,0,tol)
check_spherical_symmetry(samp,2,-1,tol)
check_spherical_symmetry(samp,2,-2,tol)
check_spherical_symmetry(samp,2,1,tol)
check_spherical_symmetry(samp,2,2,tol)
# and some higher order ones
check_spherical_symmetry(samp,3,1,tol)
check_spherical_symmetry(samp,9,-6,tol)
return None
def test_isotropic_hernquist_dens_massprofile():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
dfh= isotropicHernquistdf(pot=pot)
numpy.random.seed(10)
samp= dfh.sample(n=100000)
tol= 5*1e-3
check_spherical_massprofile(samp,
lambda r: pot.mass(r)\
/pot.mass(numpy.amax(samp.r()),
),
tol,skip=1000)
return None
def test_isotropic_hernquist_singler_is_atsingler():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
dfh= isotropicHernquistdf(pot=pot)
numpy.random.seed(10)
samp= dfh.sample(R=1.3,z=0.,n=100000)
assert numpy.all(numpy.fabs(samp.r()-1.3) < 1e-8), 'Sampling a spherical distribution function at a single r does not produce orbits at a single r'
return None
def test_isotropic_hernquist_singler_is_atrandomphi():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
dfh= isotropicHernquistdf(pot=pot)
numpy.random.seed(10)
samp= dfh.sample(R=1.3,z=0.,n=100000)
tol= 1e-2
check_azimuthal_symmetry(samp,0,tol)
check_azimuthal_symmetry(samp,1,tol)
check_azimuthal_symmetry(samp,2,tol)
check_azimuthal_symmetry(samp,3,tol)
check_azimuthal_symmetry(samp,4,tol)
check_azimuthal_symmetry(samp,5,tol)
check_azimuthal_symmetry(samp,6,tol)
return None
def test_isotropic_hernquist_singlerphi_is_atsinglephi():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
dfh= isotropicHernquistdf(pot=pot)
numpy.random.seed(10)
samp= dfh.sample(R=1.3,z=0.,phi=numpy.pi-0.3,n=100000)
assert numpy.all(numpy.fabs(samp.phi()-numpy.pi+0.3) < 1e-8), 'Sampling a spherical distribution function at a single r and phi oes not produce orbits at a single phi'
return None
def test_isotropic_hernquist_givenr_are_atgivenr():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
dfh= isotropicHernquistdf(pot=pot)
numpy.random.seed(10)
r= numpy.linspace(0.1,10.,1001)
theta= numpy.random.uniform(size=len(r))*numpy.pi
# n should be ignored in the following
samp= dfh.sample(R=r*numpy.sin(theta),z=r*numpy.cos(theta),n=100000)
assert len(samp) == len(r), 'Length of sample with given r array is not equal to length of r'
assert numpy.all(numpy.fabs(samp.r()-r) < 1e-8), 'Sampling a spherical distribution function at given r does not produce orbits at these given r'
assert numpy.all(numpy.fabs(samp.R()-r*numpy.sin(theta)) < 1e-8), 'Sampling a spherical distribution function at given R does not produce orbits at these given R'
assert numpy.all(numpy.fabs(samp.z()-r*numpy.cos(theta)) < 1e-8), 'Sampling a spherical distribution function at given z does not produce orbits at these given z'
return None
def test_isotropic_hernquist_dens_massprofile_forcemassinterpolation():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
# Remove the inverse cumulative mass function to force its interpolation
class isotropicHernquistdfNoICMF(isotropicHernquistdf):
_icmf= property()
dfh= isotropicHernquistdfNoICMF(pot=pot)
numpy.random.seed(10)
samp= dfh.sample(n=100000)
tol= 5*1e-3
check_spherical_massprofile(samp,
lambda r: pot.mass(r)\
/pot.mass(numpy.amax(samp.r()),
),
tol,skip=1000)
return None
def test_isotropic_hernquist_sigmar():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
dfh= isotropicHernquistdf(pot=pot)
numpy.random.seed(10)
samp= dfh.sample(n=300000)
tol= 0.05
check_sigmar_against_jeans(samp,pot,tol,beta=0.,
rmin=pot._scale/10.,rmax=pot._scale*10.,bins=31)
return None
def test_isotropic_hernquist_singler_sigmar():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
dfh= isotropicHernquistdf(pot=pot)
numpy.random.seed(10)
for r in [0.3,1.3,2.3]:
samp= dfh.sample(R=r,z=0.,n=100000)
tol= 0.01
check_sigmar_against_jeans(samp,pot,tol,beta=0.,
rmin=r-0.1,rmax=r+0.1,bins=1)
return None
def test_isotropic_hernquist_beta():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
dfh= isotropicHernquistdf(pot=pot)
numpy.random.seed(10)
samp= dfh.sample(n=1000000)
tol= 6*1e-2
check_beta(samp,pot,tol,beta=0.,
rmin=pot._scale/10.,rmax=pot._scale*10.,bins=31)
return None
def test_isotropic_hernquist_dens_directint():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
dfh= isotropicHernquistdf(pot=pot)
tol= 1e-8
check_dens_directint(dfh,pot,tol,
lambda r: pot.dens(r,0),
rmin=pot._scale/10.,
rmax=pot._scale*10.,bins=31)
return None
def test_isotropic_hernquist_meanvr_directint():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
dfh= isotropicHernquistdf(pot=pot)
tol= 1e-8
check_meanvr_directint(dfh,pot,tol,beta=0.,rmin=pot._scale/10.,
rmax=pot._scale*10.,bins=31)
return None
def test_isotropic_hernquist_sigmar_directint():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
dfh= isotropicHernquistdf(pot=pot)
tol= 1e-5
check_sigmar_against_jeans_directint(dfh,pot,tol,beta=0.,
rmin=pot._scale/10.,
rmax=pot._scale*10.,
bins=31)
return None
def test_isotropic_hernquist_sigmar_directint_forcevmoment():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
dfh= isotropicHernquistdf(pot=pot)
tol= 1e-5
check_sigmar_against_jeans_directint_forcevmoment(dfh,pot,tol,beta=0.,
rmin=pot._scale/10.,
rmax=pot._scale*10.,
bins=31)
return None
def test_isotropic_hernquist_beta_directint():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
dfh= isotropicHernquistdf(pot=pot)
tol= 1e-8
check_beta_directint(dfh,tol,beta=0.,
rmin=pot._scale/10.,
rmax=pot._scale*10.,
bins=31)
return None
def test_isotropic_hernquist_energyoutofbounds():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
dfh= isotropicHernquistdf(pot=pot)
assert numpy.all(numpy.fabs(dfh((numpy.arange(0.1,10.,0.1),))) < 1e-8), 'Evaluating the isotropic Hernquist DF at E > 0 does not give zero'
assert numpy.all(numpy.fabs(dfh((pot(0,0)-1e-4,))) < 1e-8), 'Evaluating the isotropic Hernquist DF at E < -GM/a does not give zero'
return None
# Check that samples of R,vR,.. are the same as orbit samples
def test_isotropic_hernquist_phasespacesamples_vs_orbitsamples():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
dfh= isotropicHernquistdf(pot=pot)
numpy.random.seed(10)
samp_orbits= dfh.sample(n=1000)
# Reset seed such that we should get the same
numpy.random.seed(10)
samp_RvR= dfh.sample(n=1000,return_orbit=False)
assert numpy.all(numpy.fabs(samp_orbits.R()-samp_RvR[0]) < 1e-8), 'Sampling R,vR,... from spherical DF does not give the same as sampling equivalent orbits'
assert numpy.all(numpy.fabs(samp_orbits.vR()-samp_RvR[1]) < 1e-8), 'Sampling R,vR,... from spherical DF does not give the same as sampling equivalent orbits'
assert numpy.all(numpy.fabs(samp_orbits.vT()-samp_RvR[2]) < 1e-8), 'Sampling R,vR,... from spherical DF does not give the same as sampling equivalent orbits'
assert numpy.all(numpy.fabs(samp_orbits.z()-samp_RvR[3]) < 1e-8), 'Sampling R,vR,... from spherical DF does not give the same as sampling equivalent orbits'
assert numpy.all(numpy.fabs(samp_orbits.vz()-samp_RvR[4]) < 1e-8), 'Sampling R,vR,... from spherical DF does not give the same as sampling equivalent orbits'
assert numpy.all(numpy.fabs(samp_orbits.phi()-samp_RvR[5]) < 1e-8), 'Sampling R,vR,... from spherical DF does not give the same as sampling equivalent orbits'
return None
def test_isotropic_hernquist_diffcalls():
from galpy.orbit import Orbit
pot= potential.HernquistPotential(amp=2.3,a=1.3)
dfh= isotropicHernquistdf(pot=pot)
# R,vR... vs. E
R,vR,vT,z,vz,phi= 1.1,0.3,0.2,0.9,-0.2,2.4
# Calculate E directly
assert numpy.fabs(dfh(R,vR,vT,z,vz,phi)-dfh((pot(R,z)+0.5*(vR**2.+vT**2.+vz**2.),))) < 1e-8, 'Calling the isotropic Hernquist DF with R,vR,... or E[R,vR,...] does not give the same answer'
# Also L
assert numpy.fabs(dfh(R,vR,vT,z,vz,phi)-dfh((pot(R,z)+0.5*(vR**2.+vT**2.+vz**2.),numpy.sqrt(numpy.sum(Orbit([R,vR,vT,z,vz,phi]).L()**2.))))) < 1e-8, 'Calling the isotropic Hernquist DF with R,vR,... or E[R,vR,...] does not give the same answer'
# Also as orbit
assert numpy.fabs(dfh(R,vR,vT,z,vz,phi)-dfh(Orbit([R,vR,vT,z,vz,phi]))) < 1e-8, 'Calling the isotropic Hernquist DF with R,vR,... or E[R,vR,...] does not give the same answer'
return None
############################# ANISOTROPIC HERNQUIST DF ########################
def test_anisotropic_hernquist_dens_spherically_symmetric():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
betas= [-0.7,-0.5,-0.4,0.,0.3,0.5]
for beta in betas:
dfh= constantbetaHernquistdf(pot=pot,beta=beta)
numpy.random.seed(10)
samp= dfh.sample(n=100000)
# Check spherical symmetry for different harmonics l,m
tol= 1e-2
check_spherical_symmetry(samp,0,0,tol)
check_spherical_symmetry(samp,1,0,tol)
check_spherical_symmetry(samp,1,-1,tol)
check_spherical_symmetry(samp,1,1,tol)
check_spherical_symmetry(samp,2,0,tol)
check_spherical_symmetry(samp,2,-1,tol)
check_spherical_symmetry(samp,2,-2,tol)
check_spherical_symmetry(samp,2,1,tol)
check_spherical_symmetry(samp,2,2,tol)
# and some higher order ones
check_spherical_symmetry(samp,3,1,tol)
check_spherical_symmetry(samp,9,-6,tol)
return None
def test_anisotropic_hernquist_dens_massprofile():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
betas= [-0.7,-0.5,-0.4,0.,0.3,0.5]
for beta in betas:
dfh= constantbetaHernquistdf(pot=pot,beta=beta)
numpy.random.seed(10)
samp= dfh.sample(n=100000)
tol= 5*1e-3
check_spherical_massprofile(samp,lambda r: pot.mass(r)\
/pot.mass(numpy.amax(samp.r())),
tol,skip=1000)
return None
def test_anisotropic_hernquist_sigmar():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
betas= [-0.7,-0.5,-0.4,0.,0.3,0.5]
for beta in betas:
dfh= constantbetaHernquistdf(pot=pot,beta=beta)
numpy.random.seed(10)
samp= dfh.sample(n=300000)
tol= 0.05
check_sigmar_against_jeans(samp,pot,tol,beta=beta,
rmin=pot._scale/10.,rmax=pot._scale*10.,
bins=31)
return None
def test_anisotropic_hernquist_beta():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
betas= [-0.7,-0.5,-0.4,0.,0.3,0.5]
for beta in betas:
dfh= constantbetaHernquistdf(pot=pot,beta=beta)
numpy.random.seed(10)
samp= dfh.sample(n=1000000)
tol= 8*1e-2 * (beta > -0.7) + 0.12 * (beta == -0.7)
check_beta(samp,pot,tol,beta=beta,
rmin=pot._scale/10.,rmax=pot._scale*10.,bins=31)
return None
def test_anisotropic_hernquist_dens_directint():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
betas= [-0.7,-0.5,-0.4,0.,0.3,0.5]
for beta in betas:
dfh= constantbetaHernquistdf(pot=pot,beta=beta)
tol= 1e-7
check_dens_directint(dfh,pot,tol,
lambda r: pot.dens(r,0),
rmin=pot._scale/10.,
rmax=pot._scale*10.,bins=31)
return None
def test_anisotropic_hernquist_meanvr_directint():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
betas= [-0.7,-0.5,-0.4,0.,0.3,0.5]
for beta in betas:
dfh= constantbetaHernquistdf(pot=pot,beta=beta)
tol= 1e-8
check_meanvr_directint(dfh,pot,tol,beta=beta,rmin=pot._scale/10.,
rmax=pot._scale*10.,bins=31)
return None
def test_anisotropic_hernquist_sigmar_directint():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
betas= [-0.7,-0.5,-0.4,0.,0.3,0.5]
for beta in betas:
dfh= constantbetaHernquistdf(pot=pot,beta=beta)
tol= 1e-5
check_sigmar_against_jeans_directint(dfh,pot,tol,beta=beta,
rmin=pot._scale/10.,
rmax=pot._scale*10.,
bins=31)
return None
def test_anisotropic_hernquist_beta_directint():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
betas= [-0.7,-0.5,-0.4,0.,0.3,0.5]
for beta in betas:
dfh= constantbetaHernquistdf(pot=pot,beta=beta)
tol= 1e-8
check_beta_directint(dfh,tol,beta=beta,
rmin=pot._scale/10.,
rmax=pot._scale*10.,
bins=31)
return None
def test_anisotropic_hernquist_energyoutofbounds():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
betas= [-0.7,-0.5,-0.4,0.,0.3,0.5]
for beta in betas:
dfh= constantbetaHernquistdf(pot=pot,beta=beta)
assert numpy.all(numpy.fabs(dfh((numpy.arange(0.1,10.,0.1),1.1))) < 1e-8), 'Evaluating the anisotropic Hernquist DF at E > 0 does not give zero'
assert numpy.all(numpy.fabs(dfh((pot(0,0)-1e-4,1.1))) < 1e-8), 'Evaluating the anisotropic Hernquist DF at E < -GM/a does not give zero'
return None
def test_anisotropic_hernquist_diffcalls():
from galpy.orbit import Orbit
pot= potential.HernquistPotential(amp=2.3,a=1.3)
betas= [-0.7,-0.5,-0.4,0.,0.3,0.5]
for beta in betas:
dfh= constantbetaHernquistdf(pot=pot,beta=beta)
# R,vR... vs. E
R,vR,vT,z,vz,phi= 1.1,0.3,0.2,0.9,-0.2,2.4
# Calculate E directly and L from Orbit
assert numpy.fabs(dfh(R,vR,vT,z,vz,phi)-dfh((pot(R,z)+0.5*(vR**2.+vT**2.+vz**2.),numpy.sqrt(numpy.sum(Orbit([R,vR,vT,z,vz,phi]).L()**2.))))) < 1e-8, 'Calling the anisotropic Hernquist DF with R,vR,... or E[R,vR,...] does not give the same answer'
# Also as orbit
assert numpy.fabs(dfh(R,vR,vT,z,vz,phi)-dfh(Orbit([R,vR,vT,z,vz,phi]))) < 1e-8, 'Calling the anisotropic Hernquist DF with R,vR,... or E[R,vR,...] does not give the same answer'
return None
########################### OSIPKOV-MERRITT HERNQUIST DF ######################
def test_osipkovmerritt_hernquist_dens_spherically_symmetric():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
ras= [0.3,2.3,5.7]
for ra in ras:
dfh= osipkovmerrittHernquistdf(pot=pot,ra=ra)
numpy.random.seed(10)
samp= dfh.sample(n=100000)
# Check spherical symmetry for different harmonics l,m
tol= 1e-2
check_spherical_symmetry(samp,0,0,tol)
check_spherical_symmetry(samp,1,0,tol)
check_spherical_symmetry(samp,1,-1,tol)
check_spherical_symmetry(samp,1,1,tol)
check_spherical_symmetry(samp,2,0,tol)
check_spherical_symmetry(samp,2,-1,tol)
check_spherical_symmetry(samp,2,-2,tol)
check_spherical_symmetry(samp,2,1,tol)
check_spherical_symmetry(samp,2,2,tol)
# and some higher order ones
check_spherical_symmetry(samp,3,1,tol)
check_spherical_symmetry(samp,9,-6,tol)
return None
def test_osipkovmerritt_hernquist_dens_massprofile():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
ras= [0.3,2.3,5.7]
for ra in ras:
dfh= osipkovmerrittHernquistdf(pot=pot,ra=ra)
numpy.random.seed(10)
samp= dfh.sample(n=100000)
tol= 5*1e-3
check_spherical_massprofile(samp,lambda r: pot.mass(r)\
/pot.mass(numpy.amax(samp.r())),
tol,skip=1000)
return None
def test_osipkovmerritt_hernquist_sigmar():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
ras= [0.3,2.3,5.7]
for ra in ras:
dfh= osipkovmerrittHernquistdf(pot=pot,ra=ra)
numpy.random.seed(10)
samp= dfh.sample(n=100000)
tol= 0.05
check_sigmar_against_jeans(samp,pot,tol,
beta=lambda r: 1./(1.+ra**2./r**2.),
rmin=pot._scale/10.,rmax=pot._scale*10.,
bins=31)
return None
def test_osipkovmerritt_hernquist_beta():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
ras= [0.3,2.3,5.7]
for ra in ras:
dfh= osipkovmerrittHernquistdf(pot=pot,ra=ra)
numpy.random.seed(10)
samp= dfh.sample(n=1000000)
tol= 0.06
check_beta(samp,pot,tol,beta=lambda r: 1./(1.+ra**2./r**2.),
rmin=pot._scale/10.,rmax=pot._scale*10.,bins=31)
return None
def test_osipkovmerritt_hernquist_dens_directint():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
ras= [0.3,2.3,5.7]
for ra in ras:
dfh= osipkovmerrittHernquistdf(pot=pot,ra=ra)
tol= 1e-5
check_dens_directint(dfh,pot,tol,
lambda r: pot.dens(r,0),
rmin=pot._scale/10.,
rmax=pot._scale*10.,bins=6)
return None
def test_osipkovmerritt_hernquist_meanvr_directint():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
ras= [0.3,2.3,5.7]
for ra in ras:
dfh= osipkovmerrittHernquistdf(pot=pot,ra=ra)
tol= 1e-8
check_meanvr_directint(dfh,pot,tol,rmin=pot._scale/10.,
rmax=pot._scale*10.,bins=6)
return None
def test_osipkovmerritt_hernquist_sigmar_directint():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
ras= [0.3,2.3,5.7]
for ra in ras:
dfh= osipkovmerrittHernquistdf(pot=pot,ra=ra)
tol= 1e-4
check_sigmar_against_jeans_directint(dfh,pot,tol,
beta=lambda r: 1./(1.+ra**2./r**2.),
rmin=pot._scale/10.,
rmax=pot._scale*10.,
bins=6)
return None
def test_osipkovmerritt_hernquist_beta_directint():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
ras= [0.3,2.3,5.7]
for ra in ras:
dfh= osipkovmerrittHernquistdf(pot=pot,ra=ra)
tol= 1e-8
check_beta_directint(dfh,tol,beta=lambda r: 1./(1.+ra**2./r**2.),
rmin=pot._scale/10.,
rmax=pot._scale*10.,
bins=6)
return None
def test_osipkovmerritt_hernquist_Qoutofbounds():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
ras= [0.3,2.3,5.7]
for ra in ras:
dfh= osipkovmerrittHernquistdf(pot=pot,ra=ra)
assert numpy.all(numpy.fabs(dfh((numpy.arange(0.1,10.,0.1),1.1))) < 1e-8), 'Evaluating the Osipkov-Merritt Hernquist DF at E > 0 does not give zero'
# The next one is not actually a physical orbit...
assert numpy.all(numpy.fabs(dfh((pot(0,0)-1e-1,0.1))) < 1e-8), 'Evaluating the Osipkov-Merritt Hernquist DF at E < -GM/a does not give zero'
assert numpy.all(numpy.fabs(dfh((-1e-4,1.1))) < 1e-8), 'Evaluating the Osipkov-Merritt Hernquist DF at Q < 0 does not give zero'
return None
def test_osipkovmerritt_hernquist_diffcalls():
from galpy.orbit import Orbit
pot= potential.HernquistPotential(amp=2.3,a=1.3)
ras= [0.3,2.3,5.7]
for ra in ras:
dfh= osipkovmerrittHernquistdf(pot=pot,ra=ra)
# R,vR... vs. E
R,vR,vT,z,vz,phi= 1.1,0.3,0.2,0.9,-0.2,2.4
# Calculate E directly and L from Orbit
assert numpy.fabs(dfh(R,vR,vT,z,vz,phi)-dfh((pot(R,z)+0.5*(vR**2.+vT**2.+vz**2.),numpy.sqrt(numpy.sum(Orbit([R,vR,vT,z,vz,phi]).L()**2.))))) < 1e-8, 'Calling the Osipkov-Merritt anisotropic Hernquist DF with R,vR,... or E[R,vR,...] does not give the same answer'
# Also as orbit
assert numpy.fabs(dfh(R,vR,vT,z,vz,phi)-dfh(Orbit([R,vR,vT,z,vz,phi]))) < 1e-8, 'Calling the Osipkov-Merritt isotropic Hernquist DF with R,vR,... or E[R,vR,...] does not give the same answer'
return None
############################## OSIPKOV-MERRITT NFW DF #########################
def test_osipkovmerritt_nfw_dens_spherically_symmetric():
pot= potential.NFWPotential(amp=2.3,a=1.3)
ras= [2.3,5.7]
for ra in ras:
dfh= osipkovmerrittNFWdf(pot=pot,ra=ra)
numpy.random.seed(10)
samp= dfh.sample(n=100000)
# Check spherical symmetry for different harmonics l,m
tol= 1e-2
check_spherical_symmetry(samp,0,0,tol)
check_spherical_symmetry(samp,1,0,tol)
check_spherical_symmetry(samp,1,-1,tol)
check_spherical_symmetry(samp,1,1,tol)
check_spherical_symmetry(samp,2,0,tol)
check_spherical_symmetry(samp,2,-1,tol)
check_spherical_symmetry(samp,2,-2,tol)
check_spherical_symmetry(samp,2,1,tol)
check_spherical_symmetry(samp,2,2,tol)
# and some higher order ones
check_spherical_symmetry(samp,3,1,tol)
check_spherical_symmetry(samp,9,-6,tol)
return None
def test_osipkovmerritt_nfw_dens_massprofile():
pot= potential.NFWPotential(amp=2.3,a=1.3)
ras= [2.3,5.7]
for ra in ras:
dfh= osipkovmerrittNFWdf(pot=pot,ra=ra)
numpy.random.seed(10)
samp= dfh.sample(n=100000)
tol= 5*1e-3
check_spherical_massprofile(samp,lambda r: pot.mass(r)\
/pot.mass(numpy.amax(samp.r())),
tol,skip=1000)
return None
def test_osipkovmerritt_nfw_sigmar():
pot= potential.NFWPotential(amp=2.3,a=1.3)
ras= [2.3,5.7]
for ra in ras:
dfh= osipkovmerrittNFWdf(pot=pot,ra=ra)
numpy.random.seed(10)
samp= dfh.sample(n=1000000)
tol= 0.17
check_sigmar_against_jeans(samp,pot,tol,
beta=lambda r: 1./(1.+ra**2./r**2.),
rmin=pot._scale/10.,rmax=pot._scale*10.,
bins=31)
return None
def test_osipkovmerritt_nfw_beta():
pot= potential.NFWPotential(amp=2.3,a=1.3)
ras= [2.3,5.7]
for ra in ras:
dfh= osipkovmerrittNFWdf(pot=pot,ra=ra)
numpy.random.seed(10)
samp= dfh.sample(n=3000000)
tol= 0.15
check_beta(samp,pot,tol,beta=lambda r: 1./(1.+ra**2./r**2.),
rmin=pot._scale/10.,rmax=pot._scale*10.,bins=31)
return None
def test_osipkovmerritt_nfw_dens_directint():
pot= potential.NFWPotential(amp=2.3,a=1.3)
ras= [2.3,5.7]
for ra in ras:
dfh= osipkovmerrittNFWdf(pot=pot,ra=ra,rmax=numpy.inf)
tol= 0.01 # 1%
check_dens_directint(dfh,pot,tol,
lambda r: pot.dens(r,0),
rmin=pot._scale/10.,
rmax=pot._scale*10.,bins=6)
return None
def test_osipkovmerritt_nfw_meanvr_directint():
pot= potential.NFWPotential(amp=2.3,a=1.3)
ras= [2.3,5.7]
for ra in ras:
dfh= osipkovmerrittNFWdf(pot=pot,ra=ra,rmax=numpy.inf)
tol= 1e-8
check_meanvr_directint(dfh,pot,tol,rmin=pot._scale/10.,
rmax=pot._scale*10.,bins=6)
return None
def test_osipkovmerritt_nfw_sigmar_directint():
pot= potential.NFWPotential(amp=2.3,a=1.3)
ras= [2.3,5.7]
for ra in ras:
dfh= osipkovmerrittNFWdf(pot=pot,ra=ra,rmax=numpy.inf)
tol= 1e-2 # 1%
check_sigmar_against_jeans_directint(dfh,pot,tol,
beta=lambda r: 1./(1.+ra**2./r**2.),
rmin=pot._scale/10.,
rmax=pot._scale*10.,
bins=6)
return None
def test_osipkovmerritt_nfw_beta_directint():
pot= potential.NFWPotential(amp=2.3,a=1.3)
ras= [2.3,5.7]
for ra in ras:
dfh= osipkovmerrittNFWdf(pot=pot,ra=ra,rmax=numpy.inf)
tol= 1e-8
check_beta_directint(dfh,tol,beta=lambda r: 1./(1.+ra**2./r**2.),
rmin=pot._scale/10.,
rmax=pot._scale*10.,
bins=6)
return None
def test_osipkovmerritt_nfw_Qoutofbounds():
pot= potential.NFWPotential(amp=2.3,a=1.3)
ras= [2.3,5.7]
for ra in ras:
dfh= osipkovmerrittNFWdf(pot=pot,ra=ra)
assert numpy.all(numpy.fabs(dfh((numpy.arange(0.1,10.,0.1),1.1))) < 1e-8), 'Evaluating the Osipkov-Merritt NFW DF at E > 0 does not give zero'
# The next one is not actually a physical orbit...
assert numpy.all(numpy.fabs(dfh((pot(0,0)-1e-1,0.1))) < 1e-8), 'Evaluating the Osipkov-Merritt NFW DF at E < -GM/a does not give zero'
assert numpy.all(numpy.fabs(dfh((-1e-4,1.1))) < 1e-8), 'Evaluating the Osipkov-Merritt NFW DF at Q < 0 does not give zero'
return None
############################# ISOTROPIC PLUMMER DF ############################
def test_isotropic_plummer_dens_spherically_symmetric():
pot= potential.PlummerPotential(amp=2.3,b=1.3)
dfp= isotropicPlummerdf(pot=pot)
numpy.random.seed(10)
samp= dfp.sample(n=100000)
# Check spherical symmetry for different harmonics l,m
tol= 1e-2
check_spherical_symmetry(samp,0,0,tol)
check_spherical_symmetry(samp,1,0,tol)
check_spherical_symmetry(samp,1,-1,tol)
check_spherical_symmetry(samp,1,1,tol)
check_spherical_symmetry(samp,2,0,tol)
check_spherical_symmetry(samp,2,-1,tol)
check_spherical_symmetry(samp,2,-2,tol)
check_spherical_symmetry(samp,2,1,tol)
check_spherical_symmetry(samp,2,2,tol)
# and some higher order ones
check_spherical_symmetry(samp,3,1,tol)
check_spherical_symmetry(samp,9,-6,tol)
return None
def test_isotropic_plummer_dens_massprofile():
pot= potential.PlummerPotential(amp=2.3,b=1.3)
dfp= isotropicPlummerdf(pot=pot)
numpy.random.seed(10)
samp= dfp.sample(n=100000)
tol= 5*1e-3
check_spherical_massprofile(samp,lambda r: pot.mass(r)\
/pot.mass(numpy.amax(samp.r())),
tol,skip=1000)
return None
def test_isotropic_plummer_sigmar():
pot= potential.PlummerPotential(amp=2.3,b=1.3)
dfp= isotropicPlummerdf(pot=pot)
numpy.random.seed(10)
samp= dfp.sample(n=1000000)
tol= 0.05
check_sigmar_against_jeans(samp,pot,tol,
rmin=pot._scale/10.,rmax=pot._scale*10.,
bins=31)
return None
def test_isotropic_plummer_beta():
pot= potential.PlummerPotential(amp=2.3,b=1.3)
dfp= isotropicPlummerdf(pot=pot)
numpy.random.seed(10)
samp= dfp.sample(n=1000000)
tol= 6*1e-2
check_beta(samp,pot,tol,rmin=pot._scale/10.,rmax=pot._scale*10.,bins=31)
return None
def test_isotropic_plummer_dens_directint():
pot= potential.PlummerPotential(amp=2.3,b=1.3)
dfp= isotropicPlummerdf(pot=pot)
tol= 1e-7
check_dens_directint(dfp,pot,tol,
lambda r: pot.dens(r,0),
rmin=pot._scale/10.,
rmax=pot._scale*10.,bins=31)
return None
def test_isotropic_plummer_meanvr_directint():
pot= potential.PlummerPotential(amp=2.3,b=1.3)
dfp= isotropicPlummerdf(pot=pot)
tol= 1e-8
check_meanvr_directint(dfp,pot,tol,rmin=pot._scale/10.,
rmax=pot._scale*10.,bins=31)
return None
def test_isotropic_plummer_sigmar_directint():
pot= potential.PlummerPotential(amp=2.3,b=1.3)
dfp= isotropicPlummerdf(pot=pot)
tol= 1e-5
check_sigmar_against_jeans_directint(dfp,pot,tol,
rmin=pot._scale/10.,
rmax=pot._scale*10.,
bins=31)
return None
def test_isotropic_plummer_beta_directint():
pot= potential.PlummerPotential(amp=2.3,b=1.3)
dfp= isotropicPlummerdf(pot=pot)
tol= 1e-8
check_beta_directint(dfp,tol,rmin=pot._scale/10.,rmax=pot._scale*10.,
bins=31)
return None
def test_isotropic_plummer_energyoutofbounds():
pot= potential.PlummerPotential(amp=2.3,b=1.3)
dfp= isotropicPlummerdf(pot=pot)
assert numpy.all(numpy.fabs(dfp((numpy.arange(0.1,10.,0.1),1.1))) < 1e-8), 'Evaluating the isotropic Plummer DF at E > 0 does not give zero'
assert numpy.all(numpy.fabs(dfp((pot(0,0)-1e-4,1.1))) < 1e-8), 'Evaluating the isotropic Plummer DF at E < Phi(0) does not give zero'
return None
############################# ISOTROPIC NFW DF ############################
def test_isotropic_nfw_dens_spherically_symmetric():
pot= potential.NFWPotential(amp=2.3,a=1.3)
dfp= isotropicNFWdf(pot=pot)
numpy.random.seed(10)
samp= dfp.sample(n=100000)
# Check spherical symmetry for different harmonics l,m
tol= 1e-2
check_spherical_symmetry(samp,0,0,tol)
check_spherical_symmetry(samp,1,0,tol)
check_spherical_symmetry(samp,1,-1,tol)
check_spherical_symmetry(samp,1,1,tol)
check_spherical_symmetry(samp,2,0,tol)
check_spherical_symmetry(samp,2,-1,tol)
check_spherical_symmetry(samp,2,-2,tol)
check_spherical_symmetry(samp,2,1,tol)
check_spherical_symmetry(samp,2,2,tol)
# and some higher order ones
check_spherical_symmetry(samp,3,1,tol)
check_spherical_symmetry(samp,9,-6,tol)
return None
def test_isotropic_nfw_dens_massprofile():
pot= potential.NFWPotential(amp=2.3,a=1.3)
dfp= isotropicNFWdf(pot=pot)
numpy.random.seed(10)
samp= dfp.sample(n=100000)
tol= 5*1e-3
check_spherical_massprofile(samp,lambda r: pot.mass(r)\
/pot.mass(numpy.amax(samp.r())),
tol,skip=1000)
return None
def test_isotropic_nfw_sigmar():
pot= potential.NFWPotential(amp=2.3,a=1.3)
dfp= isotropicNFWdf(pot=pot)
numpy.random.seed(10)
samp= dfp.sample(n=1000000)
tol= 0.08
check_sigmar_against_jeans(samp,pot,tol,
rmin=pot._scale/10.,rmax=pot._scale*10.,
bins=31)
return None
def test_isotropic_nfw_beta():
pot= potential.NFWPotential(amp=2.3,a=1.3)
dfp= isotropicNFWdf(pot=pot)
numpy.random.seed(10)
samp= dfp.sample(n=3000000)
tol= 8*1e-2
check_beta(samp,pot,tol,rmin=pot._scale/5.,rmax=pot._scale*10.,bins=31)
return None
def test_isotropic_nfw_dens_directint():
pot= potential.NFWPotential(amp=2.3,a=1.3)
dfp= isotropicNFWdf(pot=pot)
tol= 1e-2 # only approx, normally 1e-7
check_dens_directint(dfp,pot,tol,
lambda r: pot.dens(r,0),
rmin=pot._scale/10.,
rmax=pot._scale*10.,bins=31)
return None
def test_isotropic_nfw_meanvr_directint():
pot= potential.NFWPotential(amp=2.3,a=1.3)
dfp= isotropicNFWdf(pot=pot)
tol= 1e-8
check_meanvr_directint(dfp,pot,tol,rmin=pot._scale/10.,
rmax=pot._scale*10.,bins=31)
return None
def test_isotropic_nfw_sigmar_directint():
pot= potential.NFWPotential(amp=2.3,a=1.3)
dfp= isotropicNFWdf(pot=pot)
tol= 1e-3 # only approx. normally 1e-5
check_sigmar_against_jeans_directint(dfp,pot,tol,
rmin=pot._scale/10.,
rmax=pot._scale*10.,
bins=31)
return None
def test_isotropic_nfw_beta_directint():
pot= potential.NFWPotential(amp=2.3,a=1.3)
dfp= isotropicNFWdf(pot=pot)
tol= 1e-8
check_beta_directint(dfp,tol,rmin=pot._scale/10.,rmax=pot._scale*10.,
bins=31)
return None
def test_isotropic_nfw_energyoutofbounds():
pot= potential.NFWPotential(amp=2.3,a=1.3)
dfp= isotropicNFWdf(pot=pot)
assert numpy.all(numpy.fabs(dfp((numpy.arange(0.1,10.,0.1),1.1))) < 1e-8), 'Evaluating the isotropic NFW DF at E > 0 does not give zero'
assert numpy.all(numpy.fabs(dfp((pot(0,0)-1e-4,1.1))) < 1e-8), 'Evaluating the isotropic NFW DF at E < Phi(0) does not give zero'
return None
def test_isotropic_nfw_widrow_against_improved():
# Test that using the Widrow (2000) prescription gives almost the same f(E)
pot= potential.NFWPotential(amp=2.3,a=1.3)
dfp= isotropicNFWdf(pot=pot)
dfpw= isotropicNFWdf(pot=pot,widrow=True)
Es= numpy.linspace(-dfp._Etildemax*0.999,0,101,endpoint=False)
assert numpy.all(numpy.fabs(1.-dfp.fE(Es)/dfpw.fE(Es)) < 1e-2), 'isotropic NFW with widrow=True does not agree on f(E) with widrow=False'
return None
################################# EDDINGTON DF ################################
# For the following tests, we use a DehnenCoreSphericalPotential
def test_isotropic_eddington_selfconsist_dehnencore_dens_spherically_symmetric():
pot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
dfp= eddingtondf(pot=pot)
numpy.random.seed(10)
samp= dfp.sample(n=100000)
# Check spherical symmetry for different harmonics l,m
tol= 1e-2
check_spherical_symmetry(samp,0,0,tol)
check_spherical_symmetry(samp,1,0,tol)
check_spherical_symmetry(samp,1,-1,tol)
check_spherical_symmetry(samp,1,1,tol)
check_spherical_symmetry(samp,2,0,tol)
check_spherical_symmetry(samp,2,-1,tol)
check_spherical_symmetry(samp,2,-2,tol)
check_spherical_symmetry(samp,2,1,tol)
check_spherical_symmetry(samp,2,2,tol)
# and some higher order ones
check_spherical_symmetry(samp,3,1,tol)
check_spherical_symmetry(samp,9,-6,tol)
return None
def test_isotropic_eddington_selfconsist_dehnencore_dens_massprofile():
# Do one with pot as list
pot= [potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)]
dfp= eddingtondf(pot=pot)
numpy.random.seed(10)
samp= dfp.sample(n=100000)
tol= 5*1e-3
check_spherical_massprofile(samp,lambda r: potential.mass(pot,r)\
/potential.mass(pot,numpy.amax(samp.r())),
tol,skip=1000)
return None
def test_isotropic_eddington_selfconsist_dehnencore_sigmar():
pot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
dfp= eddingtondf(pot=pot)
numpy.random.seed(10)
samp= dfp.sample(n=1000000)
tol= 0.08
check_sigmar_against_jeans(samp,pot,tol,
rmin=pot._scale/10.,rmax=pot._scale*10.,
bins=31)
return None
def test_isotropic_eddington_selfconsist_dehnencore_beta():
pot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
dfp= eddingtondf(pot=pot)
numpy.random.seed(10)
samp= dfp.sample(n=3000000)
tol= 8*1e-2
check_beta(samp,pot,tol,rmin=pot._scale/5.,rmax=pot._scale*10.,bins=31)
return None
def test_isotropic_eddington_selfconsist_dehnencore_dens_directint():
pot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
dfp= eddingtondf(pot=pot)
tol= 1e-2 # only approx, normally 1e-7
check_dens_directint(dfp,pot,tol,
lambda r: pot.dens(r,0),
rmin=pot._scale/10.,
rmax=pot._scale*10.,bins=31)
return None
def test_isotropic_eddington_selfconsist_dehnencore_meanvr_directint():
pot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
dfp= eddingtondf(pot=pot)
tol= 1e-8
check_meanvr_directint(dfp,pot,tol,rmin=pot._scale/10.,
rmax=pot._scale*10.,bins=31)
return None
def test_isotropic_eddington_selfconsist_dehnencore_sigmar_directint():
pot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
dfp= eddingtondf(pot=pot)
tol= 1e-3 # only approx. normally 1e-5
check_sigmar_against_jeans_directint(dfp,pot,tol,
rmin=pot._scale/10.,
rmax=pot._scale*10.,
bins=31)
return None
def test_isotropic_eddington_selfconsist_dehnencore_beta_directint():
pot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
dfp= eddingtondf(pot=pot)
tol= 1e-8
check_beta_directint(dfp,tol,rmin=pot._scale/10.,rmax=pot._scale*10.,
bins=31)
return None
def test_isotropic_eddington_selfconsist_dehnencore_energyoutofbounds():
pot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
dfp= eddingtondf(pot=pot)
assert numpy.all(numpy.fabs(dfp((numpy.arange(0.1,10.,0.1),1.1))) < 1e-8), 'Evaluating the eddington DF at E > 0 does not give zero'
assert numpy.all(numpy.fabs(dfp((pot(0,0)-1e-4,1.1))) < 1e-8), 'Evaluating the isotropic NFW DF at E < Phi(0) does not give zero'
return None
# For the following tests, we use a DehnenCoreSphericalPotential embedded in
# an NFW halo
def test_isotropic_eddington_dehnencore_in_nfw_dens_spherically_symmetric():
pot= potential.NFWPotential(amp=2.3,a=1.3)
denspot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
dfp= eddingtondf(pot=pot,denspot=denspot)
numpy.random.seed(10)
samp= dfp.sample(n=100000)
# Check spherical symmetry for different harmonics l,m
tol= 1e-2
check_spherical_symmetry(samp,0,0,tol)
check_spherical_symmetry(samp,1,0,tol)
check_spherical_symmetry(samp,1,-1,tol)
check_spherical_symmetry(samp,1,1,tol)
check_spherical_symmetry(samp,2,0,tol)
check_spherical_symmetry(samp,2,-1,tol)
check_spherical_symmetry(samp,2,-2,tol)
check_spherical_symmetry(samp,2,1,tol)
check_spherical_symmetry(samp,2,2,tol)
# and some higher order ones
check_spherical_symmetry(samp,3,1,tol)
check_spherical_symmetry(samp,9,-6,tol)
return None
def test_isotropic_eddington_dehnencore_in_nfw_dens_massprofile():
pot= potential.NFWPotential(amp=2.3,a=1.3)
denspot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
dfp= eddingtondf(pot=pot,denspot=denspot)
numpy.random.seed(10)
samp= dfp.sample(n=100000)
tol= 5*1e-3
check_spherical_massprofile(samp,lambda r: denspot.mass(r)\
/denspot.mass(numpy.amax(samp.r())),
tol,skip=1000)
return None
def test_isotropic_eddington_dehnencore_in_nfw_sigmar():
# Use list
pot= [potential.NFWPotential(amp=2.3,a=1.3)]
denspot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
dfp= eddingtondf(pot=pot,denspot=denspot)
numpy.random.seed(10)
samp= dfp.sample(n=1000000)
tol= 0.08
check_sigmar_against_jeans(samp,pot,tol,
dens=lambda r: denspot.dens(r,0,use_physical=False),
rmin=pot[0]._scale/10.,rmax=pot[0]._scale*10.,
bins=31)
return None
def test_isotropic_eddington_dehnencore_in_nfw_beta():
pot= potential.NFWPotential(amp=2.3,a=1.3)
# Use list
denspot= [potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)]
dfp= eddingtondf(pot=pot,denspot=denspot)
numpy.random.seed(10)
samp= dfp.sample(n=3000000)
tol= 8*1e-2
check_beta(samp,pot,tol,rmin=pot._scale/5.,rmax=pot._scale*10.,bins=31)
return None
def test_isotropic_eddington_dehnencore_in_nfw_dens_directint():
# Lists for all!
pot= [potential.NFWPotential(amp=2.3,a=1.3)]
denspot= [potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)]
dfp= eddingtondf(pot=pot,denspot=denspot)
tol= 1e-2 # only approx, normally 1e-7
check_dens_directint(dfp,pot,tol,
lambda r: potential.evaluateDensities(denspot,r,0),
rmin=pot[0]._scale/10.,
rmax=pot[0]._scale*10.,bins=31)
return None
def test_isotropic_eddington_dehnencore_in_nfw_meanvr_directint():
pot= potential.NFWPotential(amp=2.3,a=1.3)
denspot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
dfp= eddingtondf(pot=pot,denspot=denspot)
tol= 1e-8
check_meanvr_directint(dfp,pot,tol,rmin=pot._scale/10.,
rmax=pot._scale*10.,bins=31)
return None
def test_isotropic_eddington_dehnencore_in_nfw_sigmar_directint():
pot= potential.NFWPotential(amp=2.3,a=1.3)
denspot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
dfp= eddingtondf(pot=pot,denspot=denspot)
tol= 1e-3 # only approx. normally 1e-5
check_sigmar_against_jeans_directint(dfp,pot,tol,
dens=lambda r: denspot.dens(r,0),
rmin=pot._scale/10.,
rmax=pot._scale*10.,
bins=31)
return None
def test_isotropic_eddington_dehnencore_in_nfw_beta_directint():
pot= potential.NFWPotential(amp=2.3,a=1.3)
denspot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
dfp= eddingtondf(pot=pot,denspot=denspot)
tol= 1e-8
check_beta_directint(dfp,tol,rmin=pot._scale/10.,rmax=pot._scale*10.,
bins=31)
return None
def test_isotropic_eddington_dehnencore_in_nfw_energyoutofbounds():
pot= potential.NFWPotential(amp=2.3,a=1.3)
denspot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
dfp= eddingtondf(pot=pot,denspot=denspot)
assert numpy.all(numpy.fabs(dfp((numpy.arange(0.1,10.,0.1),1.1))) < 1e-8), 'Evaluating the isotropic NFW DF at E > 0 does not give zero'
assert numpy.all(numpy.fabs(dfp((pot(0,0)-1e-4,1.1))) < 1e-8), 'Evaluating the isotropic NFW DF at E < Phi(0) does not give zero'
return None
################################# KING DF #####################################
def test_king_dens_spherically_symmetric():
dfk= kingdf(W0=3.,M=2.3,rt=1.76)
numpy.random.seed(10)
samp= dfk.sample(n=100000)
# Check spherical symmetry for different harmonics l,m
tol= 1e-2
check_spherical_symmetry(samp,0,0,tol)
check_spherical_symmetry(samp,1,0,tol)
check_spherical_symmetry(samp,1,-1,tol)
check_spherical_symmetry(samp,1,1,tol)
check_spherical_symmetry(samp,2,0,tol)
check_spherical_symmetry(samp,2,-1,tol)
check_spherical_symmetry(samp,2,-2,tol)
check_spherical_symmetry(samp,2,1,tol)
check_spherical_symmetry(samp,2,2,tol)
# and some higher order ones
check_spherical_symmetry(samp,3,1,tol)
check_spherical_symmetry(samp,9,-6,tol)
return None
def test_king_dens_massprofile():
pot= potential.KingPotential(W0=3.,M=2.3,rt=1.76)
dfk= kingdf(W0=3.,M=2.3,rt=1.76)
numpy.random.seed(10)
samp= dfk.sample(n=100000)
tol= 1e-2
check_spherical_massprofile(samp,lambda r: pot.mass(r)\
/pot.mass(numpy.amax(samp.r())),
tol,skip=4000)
return None
def test_king_sigmar():
W0s= [1.,3.,9.]
for W0 in W0s:
pot= potential.KingPotential(W0=W0,M=2.3,rt=1.76)
dfk= kingdf(W0=W0,M=2.3,rt=1.76)
numpy.random.seed(10)
samp= dfk.sample(n=1000000)
# lower tolerance closer to rt because fewer stars there
tol= 0.1
check_sigmar_against_jeans(samp,pot,tol,beta=0.,
rmin=dfk._scale/10.,rmax=dfk.rt*0.7,bins=31)
tol= 0.2
check_sigmar_against_jeans(samp,pot,tol,beta=0.,
rmin=dfk.rt*0.8,rmax=dfk.rt*0.95,bins=5)
return None
def test_king_beta():
pot= potential.KingPotential(W0=3.,M=2.3,rt=1.76)
dfk= kingdf(W0=3.,M=2.3,rt=1.76)
numpy.random.seed(10)
samp= dfk.sample(n=1000000)
tol= 6*1e-2
# lower tolerance closer to rt because fewer stars there
tol= 0.135
check_beta(samp,pot,tol,beta=0.,rmin=dfk._scale/10.,rmax=dfk.rt,
bins=31)
return None
def test_king_dens_directint():
pot= potential.KingPotential(W0=3.,M=2.3,rt=1.76)
dfk= kingdf(W0=3.,M=2.3,rt=1.76)
tol= 0.02
check_dens_directint(dfk,pot,tol,
lambda r: dfk.dens(r),
rmin=dfk._scale/10.,
rmax=dfk.rt*0.7,bins=31)
return None
def test_king_sigmar_directint():
pot= potential.KingPotential(W0=3.,M=2.3,rt=1.76)
dfk= kingdf(W0=3.,M=2.3,rt=1.76)
tol= 0.05 # Jeans isn't that accurate for this rather difficult case
check_sigmar_against_jeans_directint(dfk,pot,tol,beta=0.,
rmin=dfk._scale/10.,
rmax=dfk.rt*0.7,bins=31)
return None
def test_king_beta_directint():
dfk= kingdf(W0=3.,M=2.3,rt=1.76)
tol= 1e-8
check_beta_directint(dfk,tol,beta=0.,
rmin=dfk._scale/10.,rmax=dfk.rt*0.7,bins=31)
return None
############################### OSIPKOV-MERRITT DF ############################
# For the following tests, we use a DehnenCoreSphericalPotential
def test_osipkovmerritt_selfconsist_dehnencore_dens_spherically_symmetric():
pot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
ras= [2.3,5.7]
for ra in ras:
dfh= osipkovmerrittdf(pot=pot,ra=ra)
numpy.random.seed(10)
samp= dfh.sample(n=100000)
# Check spherical symmetry for different harmonics l,m
tol= 1e-2
check_spherical_symmetry(samp,0,0,tol)
check_spherical_symmetry(samp,1,0,tol)
check_spherical_symmetry(samp,1,-1,tol)
check_spherical_symmetry(samp,1,1,tol)
check_spherical_symmetry(samp,2,0,tol)
check_spherical_symmetry(samp,2,-1,tol)
check_spherical_symmetry(samp,2,-2,tol)
check_spherical_symmetry(samp,2,1,tol)
check_spherical_symmetry(samp,2,2,tol)
# and some higher order ones
check_spherical_symmetry(samp,3,1,tol)
check_spherical_symmetry(samp,9,-6,tol)
return None
def test_osipkovmerritt_selfconsist_dehnencore_dens_massprofile():
pot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
ras= [2.3,5.7]
for ra in ras:
dfh= osipkovmerrittdf(pot=pot,ra=ra)
numpy.random.seed(10)
samp= dfh.sample(n=100000)
tol= 5*1e-3
check_spherical_massprofile(samp,lambda r: pot.mass(r)\
/pot.mass(numpy.amax(samp.r())),
tol,skip=1000)
return None
def test_osipkovmerritt_selfconsist_dehnencore_sigmar():
pot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
ras= [2.3,5.7]
for ra in ras:
dfh= osipkovmerrittdf(pot=pot,ra=ra)
numpy.random.seed(10)
samp= dfh.sample(n=300000)
tol= 0.1
check_sigmar_against_jeans(samp,pot,tol,
beta=lambda r: 1./(1.+ra**2./r**2.),
rmin=pot._scale/10.,rmax=pot._scale*10.,
bins=31)
return None
def test_osipkovmerritt_selfconsist_dehnencore_beta():
pot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
ras= [2.3,5.7]
for ra in ras:
dfh= osipkovmerrittdf(pot=pot,ra=ra)
numpy.random.seed(10)
samp= dfh.sample(n=300000)
tol= 0.1
# rmin larger than usual to avoid low number sampling
check_beta(samp,pot,tol,beta=lambda r: 1./(1.+ra**2./r**2.),
rmin=pot._scale/3.,rmax=pot._scale*10.,bins=31)
return None
def test_osipkovmerritt_selfconsist_dehnencore_dens_directint():
pot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
ras= [2.3]
for ra in ras:
dfh= osipkovmerrittdf(pot=pot,ra=ra)
tol= 1e-4
check_dens_directint(dfh,pot,tol,
lambda r: pot.dens(r,0),
rmin=pot._scale/10.,
rmax=pot._scale*10.,bins=3)
return None
def test_osipkovmerritt_selfconsist_dehnencore_meanvr_directint():
pot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
ras= [5.7]
for ra in ras:
dfh= osipkovmerrittdf(pot=pot,ra=ra)
tol= 1e-8
check_meanvr_directint(dfh,pot,tol,rmin=pot._scale/10.,
rmax=pot._scale*10.,bins=3)
return None
def test_osipkovmerritt_selfconsist_dehnencore_sigmar_directint():
pot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
ras= [2.3]
for ra in ras:
dfh= osipkovmerrittdf(pot=pot,ra=ra)
tol= 1e-4
check_sigmar_against_jeans_directint(dfh,pot,tol,
beta=lambda r: 1./(1.+ra**2./r**2.),
rmin=pot._scale/10.,
rmax=pot._scale*10.,
bins=3)
return None
def test_osipkovmerritt_selfconsist_dehnencore_beta_directint():
pot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
ras= [5.7]
for ra in ras:
dfh= osipkovmerrittdf(pot=pot,ra=ra)
tol= 1e-8
check_beta_directint(dfh,tol,beta=lambda r: 1./(1.+ra**2./r**2.),
rmin=pot._scale/10.,
rmax=pot._scale*10.,
bins=3)
return None
def test_osipkovmerritt_selfconsist_dehnencore_Qoutofbounds():
pot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
ras= [2.3,5.7]
for ra in ras:
dfh= osipkovmerrittdf(pot=pot,ra=ra)
assert numpy.all(numpy.fabs(dfh((numpy.arange(0.1,10.,0.1),1.1))) < 1e-8), 'Evaluating the Osipkov-Merritt DF at E > 0 does not give zero'
# The next one is not actually a physical orbit...
assert numpy.all(numpy.fabs(dfh((pot(0,0)-1e-1,0.1))) < 1e-8), 'Evaluating the Osipkov-Merritt DF at E < -GM/a does not give zero'
assert numpy.all(numpy.fabs(dfh((-1e-4,1.1))) < 1e-8), 'Evaluating the Osipkov-Merritt DF at Q < 0 does not give zero'
return None
# For the following tests, we use a DehnenCoreSphericalPotential embedded in
# an NFW halo
def test_osipkovmerritt_dehnencore_in_nfw_dens_spherically_symmetric():
pot= potential.NFWPotential(amp=2.3,a=1.3)
denspot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
ras= [2.3,5.7]
for ra in ras:
dfh= osipkovmerrittdf(pot=pot,denspot=denspot,ra=ra)
numpy.random.seed(10)
samp= dfh.sample(n=100000)
# Check spherical symmetry for different harmonics l,m
tol= 1e-2
check_spherical_symmetry(samp,0,0,tol)
check_spherical_symmetry(samp,1,0,tol)
check_spherical_symmetry(samp,1,-1,tol)
check_spherical_symmetry(samp,1,1,tol)
check_spherical_symmetry(samp,2,0,tol)
check_spherical_symmetry(samp,2,-1,tol)
check_spherical_symmetry(samp,2,-2,tol)
check_spherical_symmetry(samp,2,1,tol)
check_spherical_symmetry(samp,2,2,tol)
# and some higher order ones
check_spherical_symmetry(samp,3,1,tol)
check_spherical_symmetry(samp,9,-6,tol)
return None
def test_osipkovmerritt_dehnencore_in_nfw_dens_massprofile():
pot= potential.NFWPotential(amp=2.3,a=1.3)
denspot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
ras= [2.3,5.7]
for ra in ras:
dfh= osipkovmerrittdf(pot=pot,denspot=denspot,ra=ra)
numpy.random.seed(10)
samp= dfh.sample(n=100000)
tol= 5*1e-3
check_spherical_massprofile(samp,lambda r: denspot.mass(r)\
/denspot.mass(numpy.amax(samp.r())),
tol,skip=1000)
return None
def test_osipkovmerritt_dehnencore_in_nfw_sigmar():
# Use list
pot= [potential.NFWPotential(amp=2.3,a=1.3)]
denspot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
ras= [2.3]
for ra in ras:
dfh= osipkovmerrittdf(pot=pot,denspot=denspot,ra=ra)
numpy.random.seed(10)
samp= dfh.sample(n=300000)
tol= 0.07
# rmin larger than usual to avoid low number sampling
check_sigmar_against_jeans(samp,pot,tol,
dens=lambda r: denspot.dens(r,0),
beta=lambda r: 1./(1.+ra**2./r**2.),
rmin=pot[0]._scale/3.,
rmax=pot[0]._scale*10.,
bins=31)
return None
def test_osipkovmerritt_dehnencore_in_nfw_beta():
# Use list
pot= potential.NFWPotential(amp=2.3,a=1.3)
denspot= [potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)]
ras= [5.7]
for ra in ras:
dfh= osipkovmerrittdf(pot=pot,denspot=denspot,ra=ra)
numpy.random.seed(10)
samp= dfh.sample(n=300000)
tol= 0.07
# rmin larger than usual to avoid low number sampling
check_beta(samp,pot,tol,beta=lambda r: 1./(1.+ra**2./r**2.),
rmin=pot._scale/3.,rmax=pot._scale*10.,bins=31)
return None
def test_osipkovmerritt_dehnencore_in_nfw_dens_directint():
# Use list for both
pot= [potential.NFWPotential(amp=2.3,a=1.3)]
denspot= [potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)]
ras= [2.3]
for ra in ras:
dfh= osipkovmerrittdf(pot=pot,denspot=denspot,ra=ra)
tol= 3e-4
check_dens_directint(dfh,pot,tol,
lambda r: denspot[0].dens(r,0),
rmin=pot[0]._scale/10.,
rmax=pot[0]._scale*10.,bins=3)
return None
def test_osipkovmerritt_dehnencore_in_nfw_meanvr_directint():
pot= potential.NFWPotential(amp=2.3,a=1.3)
denspot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
ras= [5.7]
for ra in ras:
dfh= osipkovmerrittdf(pot=pot,denspot=denspot,ra=ra)
tol= 1e-8
check_meanvr_directint(dfh,pot,tol,rmin=pot._scale/10.,
rmax=pot._scale*10.,bins=3)
return None
def test_osipkovmerritt_dehnencore_in_nfw_sigmar_directint():
pot= potential.NFWPotential(amp=2.3,a=1.3)
denspot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
ras= [2.3]
for ra in ras:
dfh= osipkovmerrittdf(pot=pot,denspot=denspot,ra=ra)
tol= 2e-4
check_sigmar_against_jeans_directint(dfh,pot,tol,
dens=lambda r: denspot.dens(r,0),
beta=lambda r: 1./(1.+ra**2./r**2.),
rmin=pot._scale/10.,
rmax=pot._scale*10.,
bins=3)
return None
def test_osipkovmerritt_dehnencore_in_nfw_beta_directint():
pot= potential.NFWPotential(amp=2.3,a=1.3)
denspot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
ras= [5.7]
for ra in ras:
dfh= osipkovmerrittdf(pot=pot,denspot=denspot,ra=ra)
tol= 1e-8
check_beta_directint(dfh,tol,beta=lambda r: 1./(1.+ra**2./r**2.),
rmin=pot._scale/10.,
rmax=pot._scale*10.,
bins=3)
return None
def test_osipkovmerritt_dehnencore_in_nfw_Qoutofbounds():
pot= potential.NFWPotential(amp=2.3,a=1.3)
denspot= potential.DehnenCoreSphericalPotential(amp=2.5,a=1.15)
ras= [2.3,5.7]
for ra in ras:
dfh= osipkovmerrittdf(pot=pot,denspot=denspot,ra=ra)
assert numpy.all(numpy.fabs(dfh((numpy.arange(0.1,10.,0.1),1.1))) < 1e-8), 'Evaluating the Osipkov-Merritt DF at E > 0 does not give zero'
# The next one is not actually a physical orbit...
assert numpy.all(numpy.fabs(dfh((pot(0,0)-1e-1,0.1))) < 1e-8), 'Evaluating the Osipkov-Merritt DF at E < -GM/a does not give zero'
assert numpy.all(numpy.fabs(dfh((-1e-4,1.1))) < 1e-8), 'Evaluating the Osipkov-Merritt DF at Q < 0 does not give zero'
return None
########################### TESTS OF ERRORS AND WARNINGS#######################
def test_isotropic_hernquist_nopot():
with pytest.raises(AssertionError) as excinfo:
dfh= isotropicHernquistdf()
assert str(excinfo.value) == 'pot= must be potential.HernquistPotential', 'Error message when not supplying the potential is incorrect'
return None
def test_isotropic_hernquist_wrongpot():
pot= potential.JaffePotential(amp=2.,a=1.3)
with pytest.raises(AssertionError) as excinfo:
dfh= isotropicHernquistdf(pot=pot)
assert str(excinfo.value) == 'pot= must be potential.HernquistPotential', 'Error message when not supplying the potential is incorrect'
return None
def test_anisotropic_hernquist_nopot():
with pytest.raises(AssertionError) as excinfo:
dfh= constantbetaHernquistdf()
assert str(excinfo.value) == 'pot= must be potential.HernquistPotential', 'Error message when not supplying the potential is incorrect'
return None
def test_anisotropic_hernquist_wrongpot():
pot= potential.JaffePotential(amp=2.,a=1.3)
with pytest.raises(AssertionError) as excinfo:
dfh= constantbetaHernquistdf(pot=pot)
assert str(excinfo.value) == 'pot= must be potential.HernquistPotential', 'Error message when not supplying the potential is incorrect'
return None
def test_anisotropic_hernquist_negdf():
pot= potential.HernquistPotential(amp=2.3,a=1.3)
# beta > 0.5 has negative DF parts
dfh= constantbetaHernquistdf(pot=pot,beta=0.7)
with pytest.warns(None) as record:
samp= dfh.sample(n=100)
raisedWarning= False
for rec in record:
# check that the message matches
raisedWarning+= (str(rec.message.args[0]) == "The DF appears to have negative regions; we'll try to ignore these for sampling the DF, but this may adversely affect the generated samples. Proceed with care!")
assert raisedWarning, "Using an anisotropic Hernquist DF that has negative parts should have raised a warning, but didn't"
############################# TESTS OF UNIT HANDLING###########################
# Test that setting up a DF with unit conversion parameters that are
# incompatible with that of the underlying potential fails
def test_isotropic_hernquist_incompatibleunits():
pot= potential.HernquistPotential(amp=2.,a=1.3,ro=9.,vo=210.)
with pytest.raises(RuntimeError):
dfh= isotropicHernquistdf(pot=pot,ro=8.,vo=210.)
with pytest.raises(RuntimeError):
dfh= isotropicHernquistdf(pot=pot,ro=9.,vo=230.)
with pytest.raises(RuntimeError):
dfh= isotropicHernquistdf(pot=pot,ro=8.,vo=230.)
return None
# Test that setting up a DF with unit conversion parameters that are
# incompatible between the potential and the density fails
def test_eddington_pot_denspot_incompatibleunits():
pot= potential.HernquistPotential(amp=2.,a=1.3,ro=9.,vo=210.)
denspot= potential.NFWPotential(amp=2.,a=1.3,ro=8.,vo=200.)
with pytest.raises(RuntimeError):
denspot= potential.NFWPotential(amp=2.,a=1.3,ro=8.,vo=210.)
dfh= eddingtondf(pot=pot,denspot=denspot)
with pytest.raises(RuntimeError):
denspot= potential.NFWPotential(amp=2.,a=1.3,ro=9.,vo=230.)
dfh= eddingtondf(pot=pot,denspot=denspot)
with pytest.raises(RuntimeError):
denspot= potential.NFWPotential(amp=2.,a=1.3,ro=8.,vo=230.)
dfh= eddingtondf(pot=pot,denspot=denspot)
return None
# Test that the unit system is correctly transfered
def test_isotropic_hernquist_unittransfer():
from galpy.util import conversion
ro, vo= 9., 210.
pot= potential.HernquistPotential(amp=2.,a=1.3,ro=ro,vo=vo)
dfh= isotropicHernquistdf(pot=pot)
phys= conversion.get_physical(dfh,include_set=True)
assert phys['roSet'], "sphericaldf's ro not set when that of the underlying potential is set"
assert phys['voSet'], "sphericaldf's vo not set when that of the underlying potential is set"
assert numpy.fabs(phys['ro']-ro) < 1e-8, "Potential's unit system not correctly transfered to sphericaldf's"
assert numpy.fabs(phys['vo']-vo) < 1e-8, "Potential's unit system not correctly transfered to sphericaldf's"
# Following should not be on
pot= potential.HernquistPotential(amp=2.,a=1.3)
dfh= isotropicHernquistdf(pot=pot)
phys= conversion.get_physical(dfh,include_set=True)
assert not phys['roSet'], "sphericaldf's ro set when that of the underlying potential is not set"
assert not phys['voSet'], "sphericaldf's vo set when that of the underlying potential is not set"
return None
# Test that output orbits from sampling correctly have units on or off
def test_isotropic_hernquist_unitsofsamples():
from galpy.util import conversion
ro, vo= 9., 210.
pot= potential.HernquistPotential(amp=2.,a=1.3,ro=ro,vo=vo)
dfh= isotropicHernquistdf(pot=pot)
samp= dfh.sample(n=100)
assert conversion.get_physical(samp,include_set=True)['roSet'], 'Orbit samples from spherical DF with units on do not have units on'
assert conversion.get_physical(samp,include_set=True)['voSet'], 'Orbit samples from spherical DF with units on do not have units on'
assert numpy.fabs(conversion.get_physical(samp,include_set=True)['ro']-ro) < 1e-8, 'Orbit samples from spherical DF with units on do not have correct ro'
assert numpy.fabs(conversion.get_physical(samp,include_set=True)['vo']-vo) < 1e-8, 'Orbit samples from spherical DF with units on do not have correct vo'
# Also test a case where they should be off
pot= potential.HernquistPotential(amp=2.,a=1.3)
dfh= isotropicHernquistdf(pot=pot)
samp= dfh.sample(n=100)
assert not conversion.get_physical(samp,include_set=True)['roSet'], 'Orbit samples from spherical DF with units off do not have units off'
assert not conversion.get_physical(samp,include_set=True)['voSet'], 'Orbit samples from spherical DF with units off do not have units off'
return None
############################### HELPER FUNCTIONS ##############################
def check_spherical_symmetry(samp,l,m,tol):
"""Check for spherical symmetry by Monte Carlo integration of the
spherical harmonic Y_lm over the sample, should be zero unless l=m=0"""
thetas, phis= numpy.arctan2(samp.R(),samp.z()), samp.phi()
assert numpy.fabs(numpy.sum(special.lpmv(m,l,numpy.cos(thetas))*numpy.cos(m*phis))/samp.size-(l==0)*(m==0)) < tol, 'Sample does not appear to be spherically symmetric, fails spherical harmonics test for (l,m) = ({},{})'.format(l,m)
return None
def check_azimuthal_symmetry(samp,m,tol):
"""Check for spherical symmetry by Monte Carlo integration of the
spherical harmonic Y_lm over the sample, should be zero unless l=m=0"""
thetas, phis= numpy.arctan2(samp.R(),samp.z()), samp.phi()
assert numpy.fabs(numpy.sum(numpy.cos(m*phis))/samp.size-(m==0)) < tol, 'Sample does not appear to be azimuthally symmetric, fails Fourier test for m = {}'.format(m)
return None
def check_spherical_massprofile(samp,mass_profile,tol,skip=100):
"""Check that the cumulative distribution of radii follows the
cumulative mass profile (normalized such that total mass = 1)"""
rs= samp.r()
cumul_rs= numpy.sort(rs)
cumul_mass= numpy.linspace(0.,1.,len(rs))
for ii in range(len(rs)//skip-1):
indx= (ii+1)*skip
assert numpy.fabs(cumul_mass[indx]-mass_profile(cumul_rs[indx])) < tol, 'Mass profile of samples does not agree with analytical one'
return None
def check_sigmar_against_jeans(samp,pot,tol,beta=0.,dens=None,
rmin=None,rmax=None,bins=31):
"""Check that sigma_r(r) obtained from a sampling agrees with that coming
from the Jeans equation
Does this by logarithmically binning in r between rmin and rmax"""
vrs= (samp.vR()*samp.R()+samp.vz()*samp.z())/samp.r()
logrs= numpy.log(samp.r())
if rmin is None: numpy.exp(numpy.amin(logrs))
if rmax is None: numpy.exp(numpy.amax(logrs))
w,e= numpy.histogram(logrs,range=[numpy.log(rmin),numpy.log(rmax)],
bins=bins,weights=numpy.ones_like(logrs))
mv2,_= numpy.histogram(logrs,range=[numpy.log(rmin),numpy.log(rmax)],
bins=bins,weights=vrs**2.)
samp_sigr= numpy.sqrt(mv2/w)
brs= numpy.exp((numpy.roll(e,-1)+e)[:-1]/2.)
for ii,br in enumerate(brs):
assert numpy.fabs(samp_sigr[ii]/jeans.sigmar(pot,br,beta=beta,dens=dens
)-1.) < tol, \
"sigma_r(r) from samples does not agree with that obtained from the Jeans equation"
return None
def check_beta(samp,pot,tol,beta=0.,
rmin=None,rmax=None,bins=31):
"""Check that beta(r) obtained from a sampling agrees with the expected
value
Does this by logarithmically binning in r between rmin and rmax"""
vrs= (samp.vR()*samp.R()+samp.vz()*samp.z())/samp.r()
vthetas=(samp.z()*samp.vR()-samp.R()*samp.vz())/samp.r()
vphis= samp.vT()
logrs= numpy.log(samp.r())
if rmin is None: numpy.exp(numpy.amin(logrs))
if rmax is None: numpy.exp(numpy.amax(logrs))
w,e= numpy.histogram(logrs,range=[numpy.log(rmin),numpy.log(rmax)],
bins=bins,weights=numpy.ones_like(logrs))
mvr2,_= numpy.histogram(logrs,range=[numpy.log(rmin),numpy.log(rmax)],
bins=bins,weights=vrs**2.)
mvt2,_= numpy.histogram(logrs,range=[numpy.log(rmin),numpy.log(rmax)],
bins=bins,weights=vthetas**2.)
mvp2,_= numpy.histogram(logrs,range=[numpy.log(rmin),numpy.log(rmax)],
bins=bins,weights=vphis**2.)
samp_sigr= numpy.sqrt(mvr2/w)
samp_sigt= numpy.sqrt(mvt2/w)
samp_sigp= numpy.sqrt(mvp2/w)
samp_beta= 1.-(samp_sigt**2.+samp_sigp**2.)/2./samp_sigr**2.
brs= numpy.exp((numpy.roll(e,-1)+e)[:-1]/2.)
if not callable(beta):
beta_func= lambda r: beta
else:
beta_func= beta
assert numpy.all(numpy.fabs(samp_beta-beta_func(brs)) < tol), "beta(r) from samples does not agree with the expected value for beta = {}".format(beta)
return None
def check_dens_directint(dfi,pot,tol,dens,
rmin=None,rmax=None,bins=31):
"""Check that the density obtained from integrating over the DF agrees
with the expected density"""
rs= numpy.linspace(rmin,rmax,bins)
intdens= numpy.array([dfi.vmomentdensity(r,0,0) for r in rs])
expdens= numpy.array([dens(r) for r in rs])
assert numpy.all(numpy.fabs(intdens/expdens-1.) < tol), \
"Density from direct integration is not equal to the expected value"
return None
def check_meanvr_directint(dfi,pot,tol,beta=0.,
rmin=None,rmax=None,bins=31):
"""Check that the mean v_r(r) obtained from integrating over the DF agrees
with the expected zero"""
rs= numpy.linspace(rmin,rmax,bins)
intmvr= numpy.array([dfi.vmomentdensity(r,1,0)/dfi.vmomentdensity(r,0,0)
for r in rs])
assert numpy.all(numpy.fabs(intmvr) < tol), \
"mean v_r(r) from direct integration is not zero"
return None
def check_sigmar_against_jeans_directint(dfi,pot,tol,beta=0.,
dens=None,
rmin=None,rmax=None,bins=31):
"""Check that sigma_r(r) obtained from integrating over the DF agrees
with that coming from the Jeans equation"""
rs= numpy.linspace(rmin,rmax,bins)
intsr= numpy.array([dfi.sigmar(r,use_physical=False) for r in rs])
jeanssr= numpy.array([jeans.sigmar(pot,r,beta=beta,dens=dens,use_physical=False) for r in rs])
assert numpy.all(numpy.fabs(intsr/jeanssr-1) < tol), \
"sigma_r(r) from direct integration does not agree with that obtained from the Jeans equation"
return None
def check_sigmar_against_jeans_directint_forcevmoment(dfi,pot,tol,beta=0.,
rmin=None,rmax=None,
bins=31):
"""Check that sigma_r(r) obtained from integrating over the DF agrees
with that coming from the Jeans equation, using the general sphericaldf
class' vmomentdensity"""
from galpy.df.sphericaldf import sphericaldf
rs= numpy.linspace(rmin,rmax,bins)
intsr= numpy.array([numpy.sqrt(sphericaldf._vmomentdensity(dfi,r,2,0)/
sphericaldf._vmomentdensity(dfi,r,0,0))
for r in rs])
jeanssr= numpy.array([jeans.sigmar(pot,r,beta=beta,use_physical=False) for r in rs])
assert numpy.all(numpy.fabs(intsr/jeanssr-1) < tol), \
"sigma_r(r) from direct integration does not agree with that obtained from the Jeans equation"
return None
def check_beta_directint(dfi,tol,beta=0.,rmin=None,rmax=None,bins=31):
"""Check that beta(r) obtained from integrating over the DF agrees
with the expected behavior"""
rs= numpy.linspace(rmin,rmax,bins)
intbeta= numpy.array([dfi.beta(r) for r in rs])
if not callable(beta):
beta_func= lambda r: beta
else:
beta_func= beta
assert numpy.all(numpy.fabs(intbeta-beta_func(rs)) < tol), \
"beta(r) from direct integration does not agree with the expected value"
return None
| 44.140123 | 270 | 0.632148 | 10,418 | 71,507 | 4.225187 | 0.042523 | 0.046436 | 0.066473 | 0.072061 | 0.907356 | 0.886751 | 0.874688 | 0.866191 | 0.853265 | 0.835681 | 0 | 0.052247 | 0.235823 | 71,507 | 1,619 | 271 | 44.167387 | 0.753294 | 0.064553 | 0 | 0.778421 | 0 | 0.006517 | 0.085809 | 0.001696 | 0 | 0 | 0 | 0 | 0.054308 | 1 | 0.092686 | false | 0 | 0.008689 | 0 | 0.194786 | 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 |
077907408ed276cbdb092b9c0abc8d7a77b08766 | 30,238 | py | Python | graph/ap (0, 0, 0), 12 sect, mob 4 sect/dynamic/0,7/3 slots, station variation/max_dist.py | KESHAmambo/IEEE_802_11ad_beamforming_simulation | 93328a41d9c044ee7596d02e360fb3b5f2250ec0 | [
"MIT"
] | null | null | null | graph/ap (0, 0, 0), 12 sect, mob 4 sect/dynamic/0,7/3 slots, station variation/max_dist.py | KESHAmambo/IEEE_802_11ad_beamforming_simulation | 93328a41d9c044ee7596d02e360fb3b5f2250ec0 | [
"MIT"
] | null | null | null | graph/ap (0, 0, 0), 12 sect, mob 4 sect/dynamic/0,7/3 slots, station variation/max_dist.py | KESHAmambo/IEEE_802_11ad_beamforming_simulation | 93328a41d9c044ee7596d02e360fb3b5f2250ec0 | [
"MIT"
] | null | null | null | """
Distribution plot options
=========================
"""
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
avgArr6 = [102.40124101818184, 102.40124101818184, 102.40124101818184, 102.40124101818184, 102.40124101818184, 102.40157614545456, 102.40157614545456, 102.40157614545456, 102.40157614545456, 102.40157614545456, 102.40157614545456, 102.40157614545456, 102.40157614545456, 102.40157614545456, 102.40157614545456, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40191127272729, 102.40224640000001, 102.40224640000001, 102.40224640000001, 102.40224640000001, 102.40224640000001, 102.40224640000001, 102.40224640000001, 102.40224640000001, 102.40258152727274, 102.40258152727274, 102.40258152727274, 102.40258152727274, 102.40258152727274, 102.40258152727274, 102.40258152727274, 102.40258152727274, 102.40258152727274, 102.40258152727274, 102.40258152727274, 102.40258152727274, 102.40291665454546, 102.40291665454546, 102.40291665454546, 102.40291665454546, 102.40291665454546, 102.40291665454546, 102.40291665454546, 102.40291665454546, 102.40291665454546, 102.4032517818182, 102.4032517818182, 102.4032517818182, 102.4032517818182, 102.4032517818182, 102.4032517818182, 102.4032517818182, 102.4032517818182, 102.4032517818182, 102.4032517818182, 102.4032517818182, 102.4032517818182, 102.4032517818182, 102.4032517818182, 102.4032517818182, 102.4032517818182, 102.40358690909092, 102.40358690909092, 102.40358690909092, 102.40358690909092, 102.40358690909092, 102.40358690909092, 102.40358690909092, 102.40358690909092, 102.40358690909092, 102.40358690909092, 102.40358690909092, 102.40358690909092, 102.40358690909092, 102.40358690909092, 102.40358690909092, 102.40358690909092, 102.40358690909092, 102.40358690909092, 102.40358690909092, 102.40392203636365, 102.40392203636365, 102.40392203636365, 102.40392203636365, 102.40392203636365, 102.40392203636365, 102.40392203636365, 102.40392203636365, 102.40392203636365, 102.40392203636365, 102.40392203636365, 102.40392203636365, 102.40392203636365, 102.40392203636365, 102.40392203636365, 102.40392203636365, 102.40392203636365, 102.40392203636365, 102.40392203636365, 102.40392203636365, 102.40392203636365, 102.40392203636365, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40425716363637, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40459229090911, 102.40526254545456, 102.40593280000002, 102.40626792727274, 102.40626792727274, 102.40660305454547, 102.40660305454547, 102.40660305454547, 102.40660305454547, 102.40693818181819, 102.40693818181819, 102.40693818181819, 102.40727330909093, 102.40727330909093, 102.40727330909093, 102.40727330909093, 102.40727330909093, 102.40727330909093, 102.40760843636365, 102.40760843636365, 102.40760843636365, 102.40760843636365, 102.40794356363638, 102.40794356363638, 102.40794356363638, 102.4082786909091, 102.4082786909091, 102.4082786909091, 102.4082786909091, 102.40861381818183, 102.40861381818183, 102.40861381818183, 102.40861381818183, 102.40894894545455, 102.40894894545455, 102.40894894545455, 102.40894894545455, 102.40928407272729, 102.40928407272729, 102.40928407272729, 102.40928407272729, 102.40961920000001, 102.40961920000001, 102.40961920000001, 102.40961920000001, 102.40995432727274, 102.40995432727274, 102.40995432727274, 102.40995432727274, 102.40995432727274, 102.40995432727274, 102.40995432727274, 102.40995432727274, 102.40995432727274, 102.40995432727274, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80124101818186, 204.8015761454546, 204.8015761454546, 204.8015761454546, 204.8015761454546, 204.80191127272732, 204.80191127272732, 204.80191127272732, 204.80191127272732, 204.80191127272732, 204.80191127272732, 204.80191127272732, 204.80358690909097, 204.80358690909097, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20124101818186, 307.2015761454546, 307.20191127272733, 307.20191127272733, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.6019112727273, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0009058909089, 614.4005707636362, 614.4009058909089, 716.8009058909089, 819.2005707636362]
avgArr14 = [102.40660305454547, 102.4082786909091, 102.40861381818183, 102.40894894545455, 102.40894894545455, 102.40894894545455, 102.40894894545455, 102.40894894545455, 102.40928407272729, 102.40928407272729, 102.40928407272729, 102.40928407272729, 102.40928407272729, 102.40961920000001, 102.40961920000001, 102.40961920000001, 102.40961920000001, 102.40961920000001, 102.40995432727274, 102.40995432727274, 102.40995432727274, 102.40995432727274, 102.40995432727274, 102.40995432727274, 102.40995432727274, 102.40995432727274, 102.40995432727274, 102.40995432727274, 102.40995432727274, 102.40995432727274, 102.40995432727274, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80023563636368, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80057076363641, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.80090589090915, 204.8015761454546, 204.8092840727273, 204.84246167272732, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2002356363637, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.2005707636364, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20090589090916, 307.20124101818186, 307.20124101818186, 307.20124101818186, 307.20124101818186, 307.20124101818186, 307.20124101818186, 307.20124101818186, 307.20124101818186, 307.20124101818186, 307.20124101818186, 307.20124101818186, 307.20124101818186, 307.2015761454546, 307.2015761454546, 307.2015761454546, 307.2015761454546, 307.2015761454546, 307.2015761454546, 307.2015761454546, 307.2015761454546, 307.2015761454546, 307.2015761454546, 307.2015761454546, 307.2015761454546, 307.2015761454546, 307.2015761454546, 307.2015761454546, 307.2015761454546, 307.2015761454546, 307.2015761454546, 307.2015761454546, 307.20191127272733, 307.20191127272733, 307.20191127272733, 307.20191127272733, 307.20191127272733, 307.20191127272733, 307.20191127272733, 307.20191127272733, 307.20191127272733, 307.20191127272733, 307.20191127272733, 307.20191127272733, 307.20191127272733, 307.20191127272733, 307.20191127272733, 307.20224640000004, 307.2025815272728, 307.2029166545455, 307.2029166545455, 307.2032517818182, 307.2032517818182, 307.203586909091, 307.203586909091, 307.203586909091, 307.203586909091, 307.203586909091, 307.2039220363637, 307.2039220363637, 307.20425716363644, 307.20425716363644, 307.20425716363644, 307.20425716363644, 307.20425716363644, 307.20425716363644, 307.20425716363644, 307.20459229090915, 307.20459229090915, 307.20861381818185, 307.2089489454546, 307.2092840727273, 307.2099543272728, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60124101818184, 409.6019112727273, 409.6032517818182, 409.60392203636366, 409.6042571636364, 512.0002356363635, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0012410181818, 614.4009058909089, 614.4009058909089, 614.4009058909089, 614.4009058909089, 614.4009058909089, 614.4009058909089, 614.4009058909089, 614.4009058909089, 614.4009058909089, 716.8005707636362, 716.8005707636362]
avgArr25 = [204.84581294545458, 205.25031156363642, 307.2005707636364, 307.20090589090916, 307.20124101818186, 307.20124101818186, 307.2015761454546, 307.2015761454546, 307.20191127272733, 307.20191127272733, 307.20224640000004, 307.2025815272728, 307.2029166545455, 307.2032517818182, 307.2032517818182, 307.2032517818182, 307.203586909091, 307.203586909091, 307.2039220363637, 307.2039220363637, 307.2039220363637, 307.2039220363637, 307.2039220363637, 307.2039220363637, 307.2039220363637, 307.20425716363644, 307.20425716363644, 307.20425716363644, 307.20425716363644, 307.20425716363644, 307.20425716363644, 307.20425716363644, 307.20425716363644, 307.20425716363644, 307.20425716363644, 307.20425716363644, 307.20425716363644, 307.20425716363644, 307.20459229090915, 307.20459229090915, 307.20459229090915, 307.20459229090915, 307.20459229090915, 307.20459229090915, 307.20459229090915, 307.20459229090915, 307.20459229090915, 307.20459229090915, 307.20459229090915, 307.20459229090915, 307.20459229090915, 307.20459229090915, 307.20459229090915, 307.20459229090915, 307.2052625454546, 307.2059328, 307.2062679272728, 307.2066030545455, 307.2066030545455, 307.20693818181826, 307.20693818181826, 307.20693818181826, 307.20727330909097, 307.20760843636367, 307.20760843636367, 307.20760843636367, 307.20794356363643, 307.20794356363643, 307.20794356363643, 307.20794356363643, 307.20794356363643, 307.20794356363643, 307.20794356363643, 307.20794356363643, 307.20794356363643, 307.20794356363643, 307.20827869090914, 307.20827869090914, 307.20827869090914, 307.20827869090914, 307.20827869090914, 307.20827869090914, 307.20827869090914, 307.20861381818185, 307.20861381818185, 307.20861381818185, 307.20861381818185, 307.2089489454546, 307.2089489454546, 307.2089489454546, 307.2089489454546, 307.2089489454546, 307.2089489454546, 307.2089489454546, 307.2089489454546, 307.2092840727273, 307.2092840727273, 307.2092840727273, 307.2092840727273, 307.2092840727273, 307.2092840727273, 307.2092840727273, 307.2092840727273, 307.2092840727273, 307.2092840727273, 307.2092840727273, 307.2092840727273, 307.2092840727273, 307.2092840727273, 307.2092840727273, 307.2092840727273, 307.2096192000001, 307.2096192000001, 307.2096192000001, 307.2096192000001, 307.2096192000001, 307.2096192000001, 307.2096192000001, 307.2096192000001, 307.2096192000001, 307.2096192000001, 307.2099543272728, 307.2099543272728, 307.2099543272728, 307.2099543272728, 307.2099543272728, 307.2099543272728, 307.2099543272728, 307.2099543272728, 307.2099543272728, 307.2099543272728, 307.2099543272728, 307.2099543272728, 307.2099543272728, 307.2099543272728, 307.2099543272728, 307.2099543272728, 307.2099543272728, 307.2099543272728, 307.2099543272728, 307.2099543272728, 307.2099543272728, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60023563636366, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60057076363637, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60090589090913, 409.60124101818184, 409.60124101818184, 409.6015761454546, 409.6015761454546, 409.6019112727273, 409.6022464, 409.6025815272728, 409.60358690909095, 409.60358690909095, 409.60392203636366, 409.6042571636364, 409.6042571636364, 409.6042571636364, 409.6045922909091, 409.6079435636364, 409.6079435636364, 409.6086138181818, 409.6092840727273, 409.6092840727273, 512.0002356363635, 512.0002356363635, 512.0002356363635, 512.0002356363635, 512.0002356363635, 512.0002356363635, 512.0002356363635, 512.0002356363635, 512.0002356363635, 512.0002356363635, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0005707636362, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0009058909089, 512.0012410181818, 512.0012410181818, 512.0012410181818, 512.0012410181818, 512.0012410181818, 512.0012410181818, 512.0015761454545, 512.0015761454545, 512.0015761454545, 512.0015761454545, 512.0015761454545, 512.0019112727272, 512.0019112727272, 512.0019112727272, 512.0019112727272, 512.0019112727272, 512.0032517818181, 512.0032517818181, 512.0035869090908, 512.0035869090908, 512.0035869090908, 512.0039220363635, 512.0042571636362, 512.0042571636362, 512.0042571636362, 512.0089489454544, 512.0099543272726, 614.4002356363635, 614.4002356363635, 614.4002356363635, 614.4005707636362, 614.4005707636362, 614.4005707636362, 614.4005707636362, 614.4005707636362, 614.4005707636362, 614.4005707636362, 614.4005707636362, 614.4005707636362, 614.4005707636362, 614.4005707636362, 614.4005707636362, 614.4005707636362, 614.4005707636362, 614.4009058909089, 614.4009058909089, 614.4009058909089, 614.4009058909089, 614.4009058909089, 614.4009058909089, 614.4009058909089, 614.4009058909089, 614.4009058909089, 614.4009058909089, 614.4009058909089, 614.4009058909089, 614.4009058909089, 716.8002356363635, 716.8005707636362, 716.8005707636362, 716.8009058909089, 716.8009058909089, 716.8009058909089, 716.8009058909089, 716.8009058909089, 716.8009058909089, 716.8009058909089, 716.8009058909089, 819.2009058909089, 819.2009058909089]
a6 = np.array(avgArr6)
a14 = np.array(avgArr14)
a25 = np.array(avgArr25)
sns.set(style="white", palette="muted", color_codes=True)
f, axes = plt.subplots(figsize=(7, 7))
axlabel = 'Максимальное время, мс'
sns.distplot(a6, color="#4285f4", ax=axes, axlabel=axlabel, label='6 станций')
sns.distplot(a14, color="#ea4335", ax=axes, axlabel=axlabel, label='14 станций')
sns.distplot(a25, color="#fbbc04", ax=axes, axlabel=axlabel, label='25 станций')
axes.legend()
plt.setp(axes)
plt.tight_layout()
plt.show() | 916.30303 | 9,958 | 0.84417 | 3,097 | 30,238 | 8.241524 | 0.051663 | 0.104568 | 0.123021 | 0.206472 | 0.951693 | 0.929948 | 0.928107 | 0.911417 | 0.908909 | 0.890103 | 0 | 0.875545 | 0.052153 | 30,238 | 33 | 9,959 | 916.30303 | 0.015003 | 0.001687 | 0 | 0 | 0 | 0 | 0.002717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 11 |
078e6dab1752c39828465f4c9d97ac32c73d5f0e | 54,954 | py | Python | Test/AdamANN.py | ArthMx/ANN | c911e5e7b339f7cca48419ad7633b8142d8ef796 | [
"MIT"
] | null | null | null | Test/AdamANN.py | ArthMx/ANN | c911e5e7b339f7cca48419ad7633b8142d8ef796 | [
"MIT"
] | null | null | null | Test/AdamANN.py | ArthMx/ANN | c911e5e7b339f7cca48419ad7633b8142d8ef796 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.base import BaseEstimator
import time
class AdamANN_clf(BaseEstimator):
'''
ANN classifier with N layers, using Adam optimization and mini-batch
gradient descent.
Architecture of the NN :
(Sigmoid or Tanh or ReLU) x N-1 times + (Sigmoid or Softmax) for output.
The last layer's activation function is chosen automatically.
-------------------------------------------------------------------------
Hyperparameters
-------------------------------------------------------------------------
- hidden_units : List of number of units for the hidden layers
- hidden_func : Activation function to be used for the hidden layers,
'sigmoid', 'tanh' or 'relu'
- alpha : Regularization parameter of weight decay (l2)
- p_dropout : Regularization parameter of dropout, it's the probability
to not update the parameters at each steps
- epoch : Number of iteration through the training dataset
- learning_rate : Learning rate for the gradient descent
- learn_decay : Decay rate of the learning_rate parameter, if set to x
learning_rate will be decreased linearly to 1/x of his
original value
- batch_size : Size of the mini-batch for splitting into batches the
training data for training
- beta1 : Parameter for weight averaging the gradient descent
- beta2 : Parameter for RMS prop.
- hot_start : If True, refitting the estimator won't reinitialize the
parameters
- verbose : If True, print cost function value 10 times during training
- grad_check : If True, chech implementation of backprop and print a number,
if lower than 1e-5, the implementation is right.
-------------------------------------------------------------------------
Method
-------------------------------------------------------------------------
- fit(X, y) :
Input
- X : Input data, numpy array shape (m, n_x) or (m,)
- y : Input target, numpy array of shape (m,)
- predict(X) :
Input
- X : Input data (m, n_x)
Output
- y_pred : Predicted labels for X (m,)
'''
def __init__(self, hidden_units, hidden_func='relu', alpha=0, p_dropout=0,
epoch=100, learning_rate=0.001, learn_decay=0, batch_size=256,
beta1=0.9, beta2=0.999, hot_start=False, verbose=False,
grad_check=False):
self.alpha = alpha
self.p_dropout = p_dropout
self.hidden_units = hidden_units
self.hidden_func = hidden_func
self.epoch = epoch
self.learning_rate = learning_rate
self.learn_decay = learn_decay
self.batch_size = batch_size
self.beta1 = beta1
self.beta2 = beta2
self.hot_start = hot_start
self.verbose = verbose
self.grad_check = grad_check
self.L = len(hidden_units) + 1
assert p_dropout < 1, 'p_dropout must be lower than 1 and \
equal or bigger than 0'
def fit(self, X, y):
'''
Train the Artificial Neural Network.
'''
alpha = self.alpha
hidden_units = self.hidden_units
hidden_func = self.hidden_func
epoch = self.epoch
learning_rate = self.learning_rate
learn_decay = self.learn_decay
batch_size = self.batch_size
hot_start = self.hot_start
verbose = self.verbose
grad_check = self.grad_check
self.parameters, self.v_grads, self.s_grads = self.NN_model(X, y, hidden_units, hidden_func,
alpha, epoch, learning_rate, learn_decay, batch_size, hot_start, verbose, grad_check)
return self
def predict(self, X):
'''
Predict target values of input X and return the prediction
'''
parameters = self.parameters
hidden_func = self.hidden_func
output_func = self.output_func
# important to not use dropout for prediction !
p_dropout_temp = self.p_dropout
self.p_dropout = 0
y_pred = self.MakePrediction(X, parameters, hidden_func, output_func)
# reset p_dropout to the initial value
self.p_dropout = p_dropout_temp
return y_pred
def ReLU(self, Z):
'''
Compute the ReLU of the matrix Z
'''
relu = np.maximum(0, Z)
return relu
def Sigmoid(self, Z):
'''
Compute the sigmoid of the matrix Z
'''
sigmoid = 1/(1+np.exp(-Z))
return sigmoid
def Softmax(self, Z):
'''
Compute the Softmax of the matrix Z
'''
exp_Z = np.exp(Z)
softmax = exp_Z/np.sum(exp_Z, axis=0)
return softmax
def InitializeParameters(self, n_units_list, hidden_func):
'''
Initialize the parameters values W and b for each layers.
--------
Input
- n_units_list : list of number of units for each layers, input and
output included.
Output
- parameters : dictionnary of the parameters W and b
for each layers
'''
L = len(n_units_list) -1 # number of layers
parameters = {}
for l in range(1, L+1):
n_l_prev = n_units_list[l-1] # number of units in layer l-1
n_l = n_units_list[l] # number of units in layer l
# initialize the parameters values randomly for W and 0 for b
xavier_init = np.sqrt(1/n_l_prev)
parameters['W' + str(l)] = np.random.randn(n_l, n_l_prev) * xavier_init
if hidden_func=='relu':
parameters['W' + str(l)] * np.sqrt(2)
parameters['b' + str(l)] = np.zeros((n_l, 1))
return parameters
def Dropout(self, A):
'''
Generate randomly a mask matrix and multiply A by it.
'''
p_dropout = self.p_dropout
mask = np.random.rand(A.shape[0], A.shape[1]) < (1 - p_dropout)
A_dropout = A * mask / (1 - p_dropout)
return A_dropout
def ForwardProp(self, X, parameters, hidden_func, output_func):
'''
Compute the prediction matrix A3.
--------
Input
- X : Matrix of input (n_x, m)
- parameters : dictionnary of parameters W and b, for each layers
- hidden_func : Activation function to be used for the hidden layers
- output_func : Activation function to be used for the last layer
Output
- AL : Output matrix of last layer (n_y, m)
- cache : Dictionnary of the A and Z, to use them during backprop
'''
L = len(parameters)//2
cache = {}
Al_prev = X
for l in range(1,L):
# get the parameters from the parameters dict
Wl = parameters['W' + str(l)]
bl = parameters['b' + str(l)]
# compute forward propagation
Zl = Wl.dot(Al_prev) + bl
if hidden_func=='sigmoid':
Al = self.Sigmoid(Zl)
if hidden_func=='tanh':
Al = np.tanh(Zl)
if hidden_func=='relu':
Al = self.ReLU(Zl)
# use drop out if p_dropout > 1
if self.p_dropout > 0:
Al = self.Dropout(Al)
# write into the cache dict the Z and A
cache['Z' + str(l)] = Zl
cache['A' + str(l)] = Al
# set Al_prev for next iter
Al_prev = Al
# compute forward prop for last layer
WL = parameters['W' + str(L)]
bL = parameters['b' + str(L)]
ZL = WL.dot(Al_prev) + bL
if output_func=='softmax':
AL = self.Softmax(ZL)
if output_func=='sigmoid':
AL = self.Sigmoid(ZL)
# use drop out if p_dropout > 1
if self.p_dropout > 0:
AL = self.Dropout(AL)
return AL, cache
def ComputeCost(self, Y, AL, parameters, output_func, alpha):
'''
Compute the cost function.
--------
Input
- Y : Target matrix (n_y, m)
- AL : Output matrix of last layer (n_y, m)
- output_func : Activation function to be used for the last layer
Output
- cost : the cost function computed for Y and AL
'''
m = Y.shape[1]
if output_func=='sigmoid':
loss = - Y * np.log(AL) - (1-Y) * np.log(1 - AL)
# sum the loss through the m examples
cost = np.sum(loss)/m
if output_func=='softmax':
loss = - Y * np.log(AL)
# sum the loss through the m examples
cost = np.sum(loss)/m
# compute regularization part
if alpha != 0:
L = len(parameters)//2
regul = 0
for l in range(1, L+1):
Wl = parameters['W'+str(l)]
regul += (alpha/m) * np.sum(Wl**2)
cost = cost + regul
return cost
def BackProp(self, X, Y, AL, parameters, cache, hidden_func, output_func, alpha):
'''
Compute the gradients of the cost for the parameters W, b of each layers
--------
Input
- X : Training data matrix of shape (n_x, m)
- Y : Target data matrix of shape (n_y, m)
- AL : Output from last layer
- parameters : Parameters of the model W and b
- cache : Cache data of Z and A
- hidden_func : Activation function to be used for the hidden layers
- output_func : Activation function to be used for the last layer
Output
- grads : dictionnary of the derivatives of the cost function
for each parameters
'''
m = X.shape[1] # m = number of training examples
L = len(parameters)//2 # L number of layer
grads = {}
# last layer
# get dZL, depending of last layer activation fuction
if output_func=='sigmoid':
dZL = AL - Y
if output_func=='softmax':
dZL = AL - Y
# get AL_prev to compute the gradients
AL_prev = cache['A'+str(L-1)]
WL = parameters['W'+str(L)]
dWL = (1/m) * (dZL.dot(AL_prev.T) + alpha * 2 * WL)
dbL = (1/m) * np.sum(dZL, axis=1, keepdims=True)
# write the gradients in grads dictionnary
grads['dW'+str(L)] = dWL
grads['db'+str(L)] = dbL
# set dZl to dZL to be use as dZl_next for the first iter of the loop
dZl = dZL
# layer L-1 to 1
for l in range(L-1,0,-1):
# compute dAl
Wl_next = parameters['W'+str(l+1)]
dZl_next = dZl
dAl = Wl_next.T.dot(dZl_next)
# compute dZl
Zl = cache['Z' + str(l)]
if hidden_func=='sigmoid':
sig = self.Sigmoid(Zl)
dZl = sig * (1 - sig) * dAl
if hidden_func=='tanh':
dZl = (1 - np.tanh(Zl)**2) * dAl
if hidden_func=='relu':
dZl = ((Zl > 0)*1) * dAl
# get Al_prev
if l>1:
Al_prev = cache['A'+str(l-1)]
if l == 1:
Al_prev = X
Wl = parameters['W'+str(l)]
# compute the gradients
dWl = (1/m) * (dZl.dot(Al_prev.T) + alpha * 2 * Wl)
dbl = (1/m) * np.sum(dZl, axis=1, keepdims=True)
# write the gradients in grads dictionnary
grads['dW'+str(l)] = dWl
grads['db'+str(l)] = dbl
return grads
def UpdateParameters(self, parameters, grads, v_grads, s_grads, learning_rate, t):
'''
Update the parameters by gradient descent
---------
Input
- parameters : dictionnary of parameters W, b of each layer
- grads : dictionnary of gradient of the cost function
for each parameters W, b of each leayer
- learning_rate : learning rate to use for updating the parameters
Output
- parameters : parameters updated after gradient descent
'''
epsilon = 1e-8
L = len(parameters)//2 # L number of layer
v_grads_corrected = self.MomentumGradDescent(grads, v_grads, t)
s_grads_corrected = self.RMSprop(grads, s_grads, t)
for l in range(1, L+1):
dW_Adam = v_grads_corrected['dW' + str(l)] / (np.sqrt(s_grads_corrected['dW' + str(l)]) + epsilon)
parameters['W' + str(l)] -= learning_rate * dW_Adam
db_Adam = v_grads_corrected['db' + str(l)] / (np.sqrt(s_grads_corrected['db' + str(l)]) + epsilon)
parameters['b' + str(l)] -= learning_rate * db_Adam
return parameters, v_grads, s_grads
def InitializeAdamParameters(self):
s_grads = {}
v_grads = {}
for l in range(1, self.L+1):
s_grads['dW' + str(l)] = 0
s_grads['db' + str(l)] = 0
v_grads['dW' + str(l)] = 0
v_grads['db' + str(l)] = 0
return v_grads, s_grads
def MomentumGradDescent(self, grads, v_grads, t):
'''
Compute gradient with momentum
'''
beta1 = self.beta1
L = len(grads)//2 # L number of layer
v_grads_corrected = {}
for l in range(1, L+1):
v_grads['dW' + str(l)] = beta1 * v_grads['dW' + str(l)] + (1 - beta1) * grads['dW' + str(l)]
v_grads_corrected['dW' + str(l)] = v_grads['dW' + str(l)] / (1 - beta1**t) # bias correction
v_grads['db' + str(l)] = beta1 * v_grads['db' + str(l)] + (1 - beta1) * grads['db' + str(l)]
v_grads_corrected['db' + str(l)] = v_grads['db' + str(l)] / (1 - beta1**t) # bias correction
return v_grads_corrected
def RMSprop(self, grads, s_grads, t):
'''
Compute Root Mean Squared prop
'''
L = len(grads)//2
beta2 = self.beta2
s_grads_corrected = {}
for l in range(1, L+1):
s_grads['dW' + str(l)] = beta2 * s_grads['dW' + str(l)] + (1 - beta2) * grads['dW' + str(l)]**2
s_grads_corrected['dW' + str(l)] = s_grads['dW' + str(l)] / (1 - beta2**t) # bias correction
s_grads['db' + str(l)] = beta2 * s_grads['db' + str(l)] + (1 - beta2) * grads['db' + str(l)]**2
s_grads_corrected['db' + str(l)] = s_grads['db' + str(l)] / (1 - beta2**t) # bias correction
return s_grads_corrected
def PreProcess_X_Y(self, X, y):
'''
Transform the input training data into the correct form.
----------
Input
- X : Input data, numpy array shape (m, n_x) or (m,)
- Y : Input target, numpy array of shape (m,)
Output
- X : New input data of shape (n_x, m)
- Y : New input target of shape (n_y, m)
'''
# check that y is a 1D numpy array
assert isinstance(y, (pd.core.series.Series, np.ndarray)) and len(y.shape) == 1, \
'y must be a 1 dimensional numpy array or Series'
# check that X is a 1D or 2D numpy array
assert isinstance(X, (pd.core.series.Series, pd.core.frame.DataFrame, np.ndarray)) \
and (len(y.shape) == 2 or len(y.shape) == 1), \
'X must be a 1 or 2 dimensional numpy array or Series/Dataframe'
# Make sure the data is in a numpy array form
X = np.array(X)
y = np.array(y)
# if X is a 1D array, transform it in a 2D array (m,1)
if len(X.shape) == 1:
X = X.reshape(-1, 1)
# get the number of features n_x and number of examples m of X
m = X.shape[0]
# transform Y to a 2 dim array (m, n_y)
K = len(np.unique(y)) # get number of classes
if K==2:
self.output_func = 'sigmoid' # set activation function for last layer
Y = y.reshape(-1,1) # reshape Y into (m,1)
if K>2:
self.output_func = 'softmax' # set activation function for last layer
Y_dummy = np.zeros((m, K))
for i in range(len(y)):
Y_dummy[i, int(y[i])] = 1 # Y_dummy : (m, K)
Y = Y_dummy
X, Y = X.T, Y.T
return X, Y
def MakeMiniBatches(self, X, Y, batch_size):
'''
'''
m = X.shape[1]
idx = np.arange(0, m)
np.random.shuffle(idx)
# Shuffle X and Y (the same way)
X_shuffled, Y_shuffled = X[:, idx], Y[:, idx]
n_batch = m//batch_size
minibatches = []
a = 0
for batch in range(n_batch):
X_batch = X_shuffled[:, a:a+batch_size]
Y_batch = Y_shuffled[:, a:a+batch_size]
a += batch_size
minibatches.append((X_batch, Y_batch))
if m % batch_size !=0:
X_batch = X_shuffled[:, a:]
Y_batch = Y_shuffled[:, a:]
minibatches.append((X_batch, Y_batch))
return minibatches
def NN_model(self, X, y, hidden_units, hidden_func, \
alpha, epoch, learning_rate, learn_decay, batch_size, hot_start, verbose, grad_check):
'''
Train a Neural Network of 3 layers (2 layers ReLU and 1 sigmoid for the output).
----------
Input
- X : input training dataset (m, n_x)
- y : target of the training dataset (m,)
- hidden_units : list of number of units for the hidden layers
- hidden_func : Activation function to be used for the hidden layers
- output_func : Activation function to be used for the last layer
- epoch : number of iteration
- learning_rate : learning rate for the gradient descent
- verbose : if True, print cost function value every 100 epoch
Output
- parameters : dictionnary of the trained parameters W, b for each layers
'''
t0 = time.time()
# reshape and transform X and y
X, Y = self.PreProcess_X_Y(X,y)
# get architecture of the NN
n_x = X.shape[0]
n_y = Y.shape[0]
n_units_list = [n_x] + hidden_units + [n_y]
# initialize the parameters
if not hot_start:
parameters = self.InitializeParameters(n_units_list, hidden_func)
v_grads, s_grads = self.InitializeAdamParameters()
self.n_iter = 0
if hot_start:
try:
parameters = self.parameters
v_grads = self.v_grads
s_grads = self.s_grads
except:
parameters = self.InitializeParameters(n_units_list, hidden_func)
v_grads, s_grads = self.InitializeAdamParameters()
self.n_iter = 0
# set output function (set during InitializeParameters)
output_func = self.output_func
if grad_check:
AL, cache = self.ForwardProp(X, parameters, hidden_func, output_func)
grads = self.BackProp(X, Y, AL, parameters, cache, hidden_func, output_func, alpha)
error_ratio = self.GradCheck(X, Y, parameters, grads, hidden_func, output_func, alpha, n_units_list)
print('Verification of gradient : ', error_ratio)
# split data in mini batches of size batch_size
minibatches = self.MakeMiniBatches(X, Y, batch_size)
# initialize a list to plot the evolution of the cost function
cost_list = []
# n_cost : number of time the cost will be computed and saved
if epoch >= 100:
cost_step = epoch//100
print_step = epoch//10 # number of time it will be printed if verbose = True
elif epoch >= 10:
cost_step = 1
print_step = epoch//10
else:
cost_step = 1
print_step = 1
x_iter = [] # to keep count of the iteration when cost is computed, for plotting
for i in range(epoch):
learning_rate = self.learning_rate / (1 + learn_decay*i/epoch) # decay of learning_rate
for X, Y in minibatches:
self.n_iter += 1
# compute the forward propagation
AL, cache = self.ForwardProp(X, parameters, hidden_func, output_func)
# compute the back propagation
grads = self.BackProp(X, Y, AL, parameters, cache, hidden_func, output_func, alpha)
# update the parameters
t = self.n_iter
parameters, v_grads, s_grads = self.UpdateParameters(parameters, grads, v_grads, s_grads, learning_rate, t)
self.parameters, self.v_grads, self.s_grads = parameters, v_grads, s_grads
if i%cost_step == 0:
# important to not use dropout for prediction !
p_dropout_temp = self.p_dropout
self.p_dropout = 0
# compute the cost function
AL, _ = self.ForwardProp(X, parameters, hidden_func, output_func)
cost = self.ComputeCost(Y, AL, parameters, output_func, alpha)
cost_list.append(cost)
x_iter.append(i)
if verbose and (i%print_step == 0):
print('Cost function after epoch {} : {}'.format(i, cost))
self.p_dropout = p_dropout_temp
if hot_start:
self.learning_rate = learning_rate # update self.learning_rate for hot start
cost = self.ComputeCost(Y, AL, parameters, output_func, alpha)
cost_list.append(cost)
x_iter.append(i)
print('Cost function after epoch {} : {}'.format(i+1, cost))
print('Time : %.3f s' % (time.time()-t0))
# print the cost function for each iterations
plt.figure()
plt.plot(x_iter, cost_list)
plt.title('Cost function')
plt.xlabel('Number of iterations')
plt.ylabel('Cost Function')
return parameters, v_grads, s_grads
def MakePrediction(self, X, parameters, hidden_func, output_func):
'''
Make prediction of the data X
---------
Input
- X : Input data (m, n_x)
- parameters : parameters W, b of each layers of the NN model
Output
- y_pred : Predicted labels for X (m,)
'''
X = X.T
AL, _ = self.ForwardProp(X, parameters, hidden_func, output_func)
if output_func=='softmax':
y_pred = np.argmax(AL, axis=0)
if output_func=='sigmoid':
y_pred = ((AL >0.5)*1).reshape(-1)
return y_pred
def GradCheck(self, X, Y, parameters, grads, hidden_func, output_func, alpha, n_units_list):
'''
Check implementation of backprop by comparing the gradient from backprop
with the gradient estimated using the cost function.
'''
epsilon = 1e-7
# Gradient computed by backprop
vec_grads = self.gradients_to_vector(grads)
vec_parameters, keys = self.dictionary_to_vector(parameters)
vec_grads_approx = np.zeros(vec_parameters.shape)
for i in range(len(vec_parameters)):
# Add epsilon to one element of the parameters
vec_parameters_plus = vec_parameters.copy()
vec_parameters_plus[i] += epsilon
dict_parameters_plus = self.vector_to_dictionary(vec_parameters_plus, n_units_list)
AL_plus, _ = self.ForwardProp(X, dict_parameters_plus, hidden_func, output_func)
cost_plus = self.ComputeCost(Y, AL_plus, dict_parameters_plus, output_func, alpha)
# Do the same for cost_minus
vec_parameters_minus = vec_parameters.copy()
vec_parameters_minus[i] -= epsilon
dict_parameters_minus = self.vector_to_dictionary(vec_parameters_minus, n_units_list)
AL_minus, _ = self.ForwardProp(X, dict_parameters_minus, hidden_func, output_func)
cost_minus = self.ComputeCost(Y, AL_minus, dict_parameters_minus, output_func, alpha)
grad = (cost_plus - cost_minus)/(2*epsilon)
vec_grads_approx[i] = grad
#print(keys[i], vec_grads_approx[i] - vec_grads[i], vec_grads_approx[i], vec_grads[i])
assert vec_grads.shape == vec_grads_approx.shape
num = np.linalg.norm(vec_grads_approx - vec_grads)
denum = np.linalg.norm(vec_grads_approx + vec_grads)
error_ratio = num / denum
return error_ratio
def dictionary_to_vector(self, parameters):
"""
Roll all our parameters dictionary into a single vector satisfying our specific required shape.
"""
count = 0
L = len(parameters)//2
keys = []
for l in range(1, L+1):
for par in ('W', 'b'):
key = par + str(l)
# flatten parameter
new_vector = np.reshape(parameters[key], (-1))
if count == 0:
theta = new_vector
else:
theta = np.concatenate((theta, new_vector))
count = count + 1
for i in new_vector:
keys.append(key)
return theta, keys
def vector_to_dictionary(self, theta, n_units_list):
"""
Unroll all our parameters dictionary from a single vector satisfying our specific required shape.
"""
parameters = {}
n2 = 0
L = len(n_units_list) - 1
for l in range(1, L+1):
n_l_prev = n_units_list[l-1]
n_l = n_units_list[l]
n0 = n2
n1 = n0 + n_l * n_l_prev
n2 = n1 + n_l
parameters['W'+str(l)] = theta[n0:n1].reshape(n_l, n_l_prev)
parameters['b'+str(l)] = theta[n1:n2].reshape(n_l, 1)
return parameters
def gradients_to_vector(self, grads):
"""
Roll all our gradients dictionary into a single vector satisfying our specific required shape.
"""
count = 0
L = len(grads)//2
for l in range(1, L+1):
for par in ('dW', 'db'):
key = par + str(l)
# flatten parameter
new_vector = np.reshape(grads[key], (-1))
if count == 0:
theta = new_vector
else:
theta = np.concatenate((theta, new_vector))
count = count + 1
return theta
class AdamANN_reg(BaseEstimator):
'''
ANN regressor with N layers, using Adam optimization and mini-batch
gradient descent.
Architecture of the NN :
(Sigmoid or Tanh or ReLU) x N-1 times + Identity for output.
The last layer's activation function is chosen automatically.
-------------------------------------------------------------------------
Hyperparameters
-------------------------------------------------------------------------
- hidden_units : List of number of units for the hidden layers
- hidden_func : Activation function to be used for the hidden layers,
'sigmoid', 'tanh' or 'relu'
- alpha : Regularization parameter of weight decay (l2)
- p_dropout : Regularization parameter of dropout, it's the probability
to not update the parameters at each steps
- epoch : Number of iteration through the training dataset
- learning_rate : Learning rate for the gradient descent
- learn_decay : Decay rate of the learning_rate parameter, if set to x
learning_rate will be decreased linearly to 1/x of his
original value
- batch_size : Size of the mini-batch for splitting into batches the
training data for training
- beta1 : Parameter for weight averaging the gradient descent
- beta2 : Parameter for RMS prop.
- hot_start : If True, refitting the estimator won't reinitialize the
parameters
- verbose : If True, print cost function value 10 times during training
- grad_check : If True, chech implementation of backprop and print a number,
if lower than 1e-5, the implementation is right.
-------------------------------------------------------------------------
Method
-------------------------------------------------------------------------
- fit(X, y) :
Input
- X : Input data, numpy array shape (m, n_x) or (m,)
- y : Input target, numpy array of shape (m,)
- predict(X) :
Input
- X : Input data (m, n_x)
Output
- y_pred : Predicted labels for X (m,)
'''
def __init__(self, hidden_units, hidden_func='relu', alpha=0, p_dropout=0,
epoch=100, learning_rate=0.001, learn_decay=0, batch_size=256,
beta1=0.9, beta2=0.999, hot_start=False, verbose=False,
grad_check=False):
self.alpha = alpha
self.p_dropout = p_dropout
self.hidden_units = hidden_units
self.hidden_func = hidden_func
self.epoch = epoch
self.learning_rate = learning_rate
self.learn_decay = learn_decay
self.batch_size = batch_size
self.beta1 = beta1
self.beta2 = beta2
self.hot_start = hot_start
self.verbose = verbose
self.grad_check = grad_check
self.L = len(hidden_units) + 1
assert p_dropout < 1, 'p_dropout must be lower than 1 and \
equal or bigger than 0'
def fit(self, X, y):
'''
Train the Artificial Neural Network.
'''
alpha = self.alpha
hidden_units = self.hidden_units
hidden_func = self.hidden_func
epoch = self.epoch
learning_rate = self.learning_rate
learn_decay = self.learn_decay
batch_size = self.batch_size
hot_start = self.hot_start
verbose = self.verbose
grad_check = self.grad_check
self.parameters, self.v_grads, self.s_grads = self.NN_model(X, y, hidden_units, hidden_func,
alpha, epoch, learning_rate, learn_decay, batch_size, hot_start, verbose, grad_check)
return self
def predict(self, X):
'''
Predict target values of input X and return the prediction
'''
parameters = self.parameters
hidden_func = self.hidden_func
# important to not use dropout for prediction !
p_dropout_temp = self.p_dropout
self.p_dropout = 0
y_pred = self.MakePrediction(X, parameters, hidden_func)
# reset p_dropout to the initial value
self.p_dropout = p_dropout_temp
return y_pred
def ReLU(self, Z):
'''
Compute the ReLU of the matrix Z
'''
relu = np.maximum(0, Z)
return relu
def Sigmoid(self, Z):
'''
Compute the sigmoid of the matrix Z
'''
sigmoid = 1/(1+np.exp(-Z))
return sigmoid
def Softmax(self, Z):
'''
Compute the Softmax of the matrix Z
'''
exp_Z = np.exp(Z)
softmax = exp_Z/np.sum(exp_Z, axis=0)
return softmax
def InitializeParameters(self, n_units_list, hidden_func):
'''
Initialize the parameters values W and b for each layers.
--------
Input
- n_units_list : list of number of units for each layers, input and
output included.
Output
- parameters : dictionnary of the parameters W and b
for each layers
'''
L = len(n_units_list) -1 # number of layers
parameters = {}
for l in range(1, L+1):
n_l_prev = n_units_list[l-1] # number of units in layer l-1
n_l = n_units_list[l] # number of units in layer l
# initialize the parameters values randomly for W and 0 for b
xavier_init = np.sqrt(1/n_l_prev)
parameters['W' + str(l)] = np.random.randn(n_l, n_l_prev) * xavier_init
if hidden_func=='relu':
parameters['W' + str(l)] * np.sqrt(2)
parameters['b' + str(l)] = np.zeros((n_l, 1))
return parameters
def Dropout(self, A):
'''
Generate randomly a mask matrix and multiply A by it.
'''
p_dropout = self.p_dropout
mask = np.random.rand(A.shape[0], A.shape[1]) < (1 - p_dropout)
A_dropout = A * mask / (1 - p_dropout)
return A_dropout
def ForwardProp(self, X, parameters, hidden_func):
'''
Compute the prediction matrix A3.
--------
Input
- X : Matrix of input (n_x, m)
- parameters : dictionnary of parameters W and b, for each layers
- hidden_func : Activation function to be used for the hidden layers
Output
- AL : Output matrix of last layer (n_y, m)
- cache : Dictionnary of the A and Z, to use them during backprop
'''
L = len(parameters)//2
cache = {}
Al_prev = X
for l in range(1,L):
# get the parameters from the parameters dict
Wl = parameters['W' + str(l)]
bl = parameters['b' + str(l)]
# compute forward propagation
Zl = Wl.dot(Al_prev) + bl
if hidden_func=='sigmoid':
Al = self.Sigmoid(Zl)
if hidden_func=='tanh':
Al = np.tanh(Zl)
if hidden_func=='relu':
Al = self.ReLU(Zl)
# use drop out if p_dropout > 1
if self.p_dropout > 0:
Al = self.Dropout(Al)
# write into the cache dict the Z and A
cache['Z' + str(l)] = Zl
cache['A' + str(l)] = Al
# set Al_prev for next iter
Al_prev = Al
# compute forward prop for last layer
WL = parameters['W' + str(L)]
bL = parameters['b' + str(L)]
ZL = WL.dot(Al_prev) + bL
# identity transformation, for regression
AL = ZL
# use drop out if p_dropout > 1
if self.p_dropout > 0:
AL = self.Dropout(AL)
return AL, cache
def ComputeCost(self, Y, AL, parameters, alpha):
'''
Compute the cost function.
--------
Input
- Y : Target matrix (n_y, m)
- AL : Output matrix of last layer (n_y, m)
Output
- cost : the cost function computed for Y and AL
'''
m = Y.shape[1]
SQE = (Y-AL)**2
MSE = np.sum(SQE)/m
RMSE = np.sqrt(MSE)
cost = RMSE
# compute regularization part
if alpha != 0:
L = len(parameters)//2
regul = 0
for l in range(1, L+1):
Wl = parameters['W'+str(l)]
regul += (alpha/m) * np.sum(Wl**2)
cost += regul
return cost
def BackProp(self, X, Y, AL, parameters, cache, hidden_func, alpha):
'''
Compute the gradients of the cost for the parameters W, b of each layers
--------
Input
- X : Training data matrix of shape (n_x, m)
- Y : Target data matrix of shape (n_y, m)
- AL : Output from last layer
- parameters : Parameters of the model W and b
- cache : Cache data of Z and A
- hidden_func : Activation function to be used for the hidden layers
Output
- grads : dictionnary of the derivatives of the cost function
for each parameters
'''
m = X.shape[1] # m = number of training examples
L = len(parameters)//2 # L number of layer
grads = {}
# last layer
dZL = AL - Y
# get AL_prev to compute the gradients
AL_prev = cache['A'+str(L-1)]
WL = parameters['W'+str(L)]
dWL = (1/m) * (dZL.dot(AL_prev.T) + alpha * 2 * WL)
dbL = (1/m) * np.sum(dZL, axis=1, keepdims=True)
# write the gradients in grads dictionnary
grads['dW'+str(L)] = dWL
grads['db'+str(L)] = dbL
# set dZl to dZL to be use as dZl_next for the first iter of the loop
dZl = dZL
# layer L-1 to 1
for l in range(L-1,0,-1):
# compute dAl
Wl_next = parameters['W'+str(l+1)]
dZl_next = dZl
dAl = Wl_next.T.dot(dZl_next)
# compute dZl
Zl = cache['Z' + str(l)]
if hidden_func=='sigmoid':
sig = self.Sigmoid(Zl)
dZl = sig * (1 - sig) * dAl
if hidden_func=='tanh':
dZl = (1 - np.tanh(Zl)**2) * dAl
if hidden_func=='relu':
dZl = ((Zl > 0)*1) * dAl
# get Al_prev
if l>1:
Al_prev = cache['A'+str(l-1)]
if l == 1:
Al_prev = X
Wl = parameters['W'+str(l)]
# compute the gradients
dWl = (1/m) * (dZl.dot(Al_prev.T) + alpha * 2 * Wl)
dbl = (1/m) * np.sum(dZl, axis=1, keepdims=True)
# write the gradients in grads dictionnary
grads['dW'+str(l)] = dWl
grads['db'+str(l)] = dbl
return grads
def UpdateParameters(self, parameters, grads, v_grads, s_grads, learning_rate, t):
'''
Update the parameters by gradient descent
---------
Input
- parameters : dictionnary of parameters W, b of each layer
- grads : dictionnary of gradient of the cost function
for each parameters W, b of each leayer
- learning_rate : learning rate to use for updating the parameters
Output
- parameters : parameters updated after gradient descent
'''
epsilon = 1e-8
L = len(parameters)//2 # L number of layer
v_grads_corrected = self.MomentumGradDescent(grads, v_grads, t)
s_grads_corrected = self.RMSprop(grads, s_grads, t)
for l in range(1, L+1):
dW_Adam = v_grads_corrected['dW' + str(l)] / (np.sqrt(s_grads_corrected['dW' + str(l)]) + epsilon)
parameters['W' + str(l)] -= learning_rate * dW_Adam
db_Adam = v_grads_corrected['db' + str(l)] / (np.sqrt(s_grads_corrected['db' + str(l)]) + epsilon)
parameters['b' + str(l)] -= learning_rate * db_Adam
return parameters, v_grads, s_grads
def InitializeAdamParameters(self):
s_grads = {}
v_grads = {}
for l in range(1, self.L+1):
s_grads['dW' + str(l)] = 0
s_grads['db' + str(l)] = 0
v_grads['dW' + str(l)] = 0
v_grads['db' + str(l)] = 0
return v_grads, s_grads
def MomentumGradDescent(self, grads, v_grads, t):
'''
Compute gradient with momentum
'''
beta1 = self.beta1
L = len(grads)//2 # L number of layer
v_grads_corrected = {}
for l in range(1, L+1):
v_grads['dW' + str(l)] = beta1 * v_grads['dW' + str(l)] + (1 - beta1) * grads['dW' + str(l)]
v_grads_corrected['dW' + str(l)] = v_grads['dW' + str(l)] / (1 - beta1**t) # bias correction
v_grads['db' + str(l)] = beta1 * v_grads['db' + str(l)] + (1 - beta1) * grads['db' + str(l)]
v_grads_corrected['db' + str(l)] = v_grads['db' + str(l)] / (1 - beta1**t) # bias correction
return v_grads_corrected
def RMSprop(self, grads, s_grads, t):
'''
Compute Root Mean Squared prop
'''
L = len(grads)//2
beta2 = self.beta2
s_grads_corrected = {}
for l in range(1, L+1):
s_grads['dW' + str(l)] = beta2 * s_grads['dW' + str(l)] + (1 - beta2) * grads['dW' + str(l)]**2
s_grads_corrected['dW' + str(l)] = s_grads['dW' + str(l)] / (1 - beta2**t) # bias correction
s_grads['db' + str(l)] = beta2 * s_grads['db' + str(l)] + (1 - beta2) * grads['db' + str(l)]**2
s_grads_corrected['db' + str(l)] = s_grads['db' + str(l)] / (1 - beta2**t) # bias correction
return s_grads_corrected
def PreProcess_X_Y(self, X, y):
'''
Transform the input training data into the correct form.
----------
Input
- X : Input data, numpy array shape (m, n_x) or (m,)
- Y : Input target, numpy array of shape (m,)
Output
- X : New input data of shape (n_x, m)
- Y : New input target of shape (n_y, m)
'''
# check that y is a 1D numpy array
assert isinstance(y, (pd.core.series.Series, np.ndarray)) and len(y.shape) == 1, \
'y must be a 1 dimensional numpy array or Series'
# check that X is a 1D or 2D numpy array
assert isinstance(X, (pd.core.series.Series, pd.core.frame.DataFrame, np.ndarray)) \
and (len(y.shape) == 2 or len(y.shape) == 1), \
'X must be a 1 or 2 dimensional numpy array or Series/Dataframe'
# Make sure the data is in a numpy array form
X = np.array(X)
y = np.array(y)
# if X is a 1D array, transform it in a 2D array (m,1)
if len(X.shape) == 1:
X = X.reshape(-1, 1)
# get the number of features n_x and number of examples m of X
m = X.shape[0]
assert len(y.shape) == 1, 'y must be 1 dimensionnal'
Y = y.reshape(-1,1) # reshape Y into (m,1)
X, Y = X.T, Y.T
return X, Y
def MakeMiniBatches(self, X, Y, batch_size):
'''
'''
m = X.shape[1]
idx = np.arange(0, m)
np.random.shuffle(idx)
# Shuffle X and Y (the same way)
X_shuffled, Y_shuffled = X[:, idx], Y[:, idx]
n_batch = m//batch_size
minibatches = []
a = 0
for batch in range(n_batch):
X_batch = X_shuffled[:, a:a+batch_size]
Y_batch = Y_shuffled[:, a:a+batch_size]
a += batch_size
minibatches.append((X_batch, Y_batch))
if m % batch_size !=0:
X_batch = X_shuffled[:, a:]
Y_batch = Y_shuffled[:, a:]
minibatches.append((X_batch, Y_batch))
return minibatches
def NN_model(self, X, y, hidden_units, hidden_func, \
alpha, epoch, learning_rate, learn_decay, batch_size, hot_start, verbose, grad_check):
'''
Train a Neural Network of 3 layers (2 layers ReLU and 1 sigmoid for the output).
----------
Input
- X : input training dataset (m, n_x)
- y : target of the training dataset (m,)
- hidden_units : list of number of units for the hidden layers
- hidden_func : Activation function to be used for the hidden layers
- epoch : number of iteration
- learning_rate : learning rate for the gradient descent
- verbose : if True, print cost function value every 100 epoch
Output
- parameters : dictionnary of the trained parameters W, b for each layers
'''
t0 = time.time()
# reshape and transform X and y
X, Y = self.PreProcess_X_Y(X,y)
# get architecture of the NN
n_x = X.shape[0]
n_y = Y.shape[0]
n_units_list = [n_x] + hidden_units + [n_y]
# initialize the parameters
if not hot_start:
parameters = self.InitializeParameters(n_units_list, hidden_func)
v_grads, s_grads = self.InitializeAdamParameters()
self.n_iter = 0
if hot_start:
try:
parameters = self.parameters
v_grads = self.v_grads
s_grads = self.s_grads
except:
parameters = self.InitializeParameters(n_units_list, hidden_func)
v_grads, s_grads = self.InitializeAdamParameters()
self.n_iter = 0
if grad_check:
AL, cache = self.ForwardProp(X, parameters, hidden_func)
grads = self.BackProp(X, Y, AL, parameters, cache, hidden_func, alpha)
error_ratio = self.GradCheck(X, Y, parameters, grads, hidden_func, alpha, n_units_list)
print('Verification of gradient : ', error_ratio)
# split data in mini batches of size batch_size
minibatches = self.MakeMiniBatches(X, Y, batch_size)
# initialize a list to plot the evolution of the cost function
cost_list = []
# n_cost : number of time the cost will be computed and saved
if epoch >= 100:
cost_step = epoch//100
print_step = epoch//10 # number of time it will be printed if verbose = True
elif epoch >= 10:
cost_step = 1
print_step = epoch//10
else:
cost_step = 1
print_step = 1
x_iter = [] # to keep count of the iteration when cost is computed, for plotting
for i in range(epoch):
learning_rate = self.learning_rate / (1 + learn_decay*i/epoch) # decay of learning_rate
for X, Y in minibatches:
self.n_iter += 1
# compute the forward propagation
AL, cache = self.ForwardProp(X, parameters, hidden_func)
# compute the back propagation
grads = self.BackProp(X, Y, AL, parameters, cache, hidden_func, alpha)
# update the parameters
t = self.n_iter
parameters, v_grads, s_grads = self.UpdateParameters(parameters, grads, v_grads, s_grads, learning_rate, t)
self.parameters, self.v_grads, self.s_grads = parameters, v_grads, s_grads
if i%cost_step == 0:
# important to not use dropout for prediction !
p_dropout_temp = self.p_dropout
self.p_dropout = 0
# compute the cost function
AL, _ = self.ForwardProp(X, parameters, hidden_func)
cost = self.ComputeCost(Y, AL, parameters, alpha)
cost_list.append(cost)
x_iter.append(i)
if verbose and (i%print_step == 0):
print('Cost function after epoch {} : {}'.format(i, cost))
self.p_dropout = p_dropout_temp
if hot_start:
self.learning_rate = learning_rate # update self.learning_rate for hot start
cost = self.ComputeCost(Y, AL, parameters, alpha)
cost_list.append(cost)
x_iter.append(i)
print('Cost function after epoch {} : {}'.format(i+1, cost))
print('Time : %.3f s' % (time.time()-t0))
# print the cost function for each iterations
plt.figure()
plt.plot(x_iter, cost_list)
plt.title('Cost function')
plt.xlabel('Number of iterations')
plt.ylabel('Cost Function')
return parameters, v_grads, s_grads
def MakePrediction(self, X, parameters, hidden_func):
'''
Make prediction of the data X
---------
Input
- X : Input data (m, n_x)
- parameters : parameters W, b of each layers of the NN model
Output
- y_pred : Predicted labels for X (m,)
'''
X = X.T
y_pred, _ = self.ForwardProp(X, parameters, hidden_func)
y_pred = y_pred.flatten()
return y_pred
def GradCheck(self, X, Y, parameters, grads, hidden_func, alpha, n_units_list):
'''
Check implementation of backprop by comparing the gradient from backprop
with the gradient estimated using the cost function.
'''
epsilon = 1e-7
# Gradient computed by backprop
vec_grads = self.gradients_to_vector(grads)
vec_parameters, keys = self.dictionary_to_vector(parameters)
vec_grads_approx = np.zeros(vec_parameters.shape)
for i in range(len(vec_parameters)):
# Add epsilon to one element of the parameters
vec_parameters_plus = vec_parameters.copy()
vec_parameters_plus[i] += epsilon
dict_parameters_plus = self.vector_to_dictionary(vec_parameters_plus, n_units_list)
AL_plus, _ = self.ForwardProp(X, dict_parameters_plus, hidden_func)
cost_plus = self.ComputeCost(Y, AL_plus, dict_parameters_plus, alpha)
# Do the same for cost_minus
vec_parameters_minus = vec_parameters.copy()
vec_parameters_minus[i] -= epsilon
dict_parameters_minus = self.vector_to_dictionary(vec_parameters_minus, n_units_list)
AL_minus, _ = self.ForwardProp(X, dict_parameters_minus, hidden_func)
cost_minus = self.ComputeCost(Y, AL_minus, dict_parameters_minus, alpha)
grad = (cost_plus - cost_minus)/(2*epsilon)
vec_grads_approx[i] = grad
#print(keys[i], vec_grads_approx[i] - vec_grads[i], vec_grads_approx[i], vec_grads[i])
assert vec_grads.shape == vec_grads_approx.shape
num = np.linalg.norm(vec_grads_approx - vec_grads)
denum = np.linalg.norm(vec_grads_approx + vec_grads)
error_ratio = num / denum
return error_ratio
def dictionary_to_vector(self, parameters):
"""
Roll all our parameters dictionary into a single vector satisfying our specific required shape.
"""
count = 0
L = len(parameters)//2
keys = []
for l in range(1, L+1):
for par in ('W', 'b'):
key = par + str(l)
# flatten parameter
new_vector = np.reshape(parameters[key], (-1))
if count == 0:
theta = new_vector
else:
theta = np.concatenate((theta, new_vector))
count = count + 1
for i in new_vector:
keys.append(key)
return theta, keys
def vector_to_dictionary(self, theta, n_units_list):
"""
Unroll all our parameters dictionary from a single vector satisfying our specific required shape.
"""
parameters = {}
n2 = 0
L = len(n_units_list) - 1
for l in range(1, L+1):
n_l_prev = n_units_list[l-1]
n_l = n_units_list[l]
n0 = n2
n1 = n0 + n_l * n_l_prev
n2 = n1 + n_l
parameters['W'+str(l)] = theta[n0:n1].reshape(n_l, n_l_prev)
parameters['b'+str(l)] = theta[n1:n2].reshape(n_l, 1)
return parameters
def gradients_to_vector(self, grads):
"""
Roll all our gradients dictionary into a single vector satisfying our specific required shape.
"""
count = 0
L = len(grads)//2
for l in range(1, L+1):
for par in ('dW', 'db'):
key = par + str(l)
# flatten parameter
new_vector = np.reshape(grads[key], (-1))
if count == 0:
theta = new_vector
else:
theta = np.concatenate((theta, new_vector))
count = count + 1
return theta | 36.931452 | 123 | 0.511519 | 6,737 | 54,954 | 4.029538 | 0.054327 | 0.015913 | 0.011788 | 0.009725 | 0.972262 | 0.968873 | 0.964747 | 0.961359 | 0.961138 | 0.959001 | 0 | 0.014019 | 0.387342 | 54,954 | 1,488 | 124 | 36.931452 | 0.792295 | 0.296284 | 0 | 0.925474 | 0 | 0 | 0.024108 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 1 | 0.062331 | false | 0 | 0.006775 | 0 | 0.131436 | 0.02168 | 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 |
07c092191c5d79c0c13631dbe961e4615f361522 | 27,750 | py | Python | testing/logging/test_reporting.py | LeastAuthority/pytest | b50911285a4d2f593afb92f568b21686473e25a5 | [
"MIT"
] | 1 | 2018-08-01T09:32:16.000Z | 2018-08-01T09:32:16.000Z | testing/logging/test_reporting.py | LeastAuthority/pytest | b50911285a4d2f593afb92f568b21686473e25a5 | [
"MIT"
] | null | null | null | testing/logging/test_reporting.py | LeastAuthority/pytest | b50911285a4d2f593afb92f568b21686473e25a5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import re
import os
from io import open
import six
import pytest
def test_nothing_logged(testdir):
testdir.makepyfile(
"""
import sys
def test_foo():
sys.stdout.write('text going to stdout')
sys.stderr.write('text going to stderr')
assert False
"""
)
result = testdir.runpytest()
assert result.ret == 1
result.stdout.fnmatch_lines(["*- Captured stdout call -*", "text going to stdout"])
result.stdout.fnmatch_lines(["*- Captured stderr call -*", "text going to stderr"])
with pytest.raises(pytest.fail.Exception):
result.stdout.fnmatch_lines(["*- Captured *log call -*"])
def test_messages_logged(testdir):
testdir.makepyfile(
"""
import sys
import logging
logger = logging.getLogger(__name__)
def test_foo():
sys.stdout.write('text going to stdout')
sys.stderr.write('text going to stderr')
logger.info('text going to logger')
assert False
"""
)
result = testdir.runpytest("--log-level=INFO")
assert result.ret == 1
result.stdout.fnmatch_lines(["*- Captured *log call -*", "*text going to logger*"])
result.stdout.fnmatch_lines(["*- Captured stdout call -*", "text going to stdout"])
result.stdout.fnmatch_lines(["*- Captured stderr call -*", "text going to stderr"])
def test_root_logger_affected(testdir):
testdir.makepyfile(
"""
import logging
logger = logging.getLogger()
def test_foo():
logger.info('info text ' + 'going to logger')
logger.warning('warning text ' + 'going to logger')
logger.error('error text ' + 'going to logger')
assert 0
"""
)
log_file = testdir.tmpdir.join("pytest.log").strpath
result = testdir.runpytest("--log-level=ERROR", "--log-file=pytest.log")
assert result.ret == 1
# the capture log calls in the stdout section only contain the
# logger.error msg, because --log-level=ERROR
result.stdout.fnmatch_lines(["*error text going to logger*"])
with pytest.raises(pytest.fail.Exception):
result.stdout.fnmatch_lines(["*warning text going to logger*"])
with pytest.raises(pytest.fail.Exception):
result.stdout.fnmatch_lines(["*info text going to logger*"])
# the log file should contain the warning and the error log messages and
# not the info one, because the default level of the root logger is
# WARNING.
assert os.path.isfile(log_file)
with open(log_file) as rfh:
contents = rfh.read()
assert "info text going to logger" not in contents
assert "warning text going to logger" in contents
assert "error text going to logger" in contents
def test_log_cli_level_log_level_interaction(testdir):
testdir.makepyfile(
"""
import logging
logger = logging.getLogger()
def test_foo():
logger.debug('debug text ' + 'going to logger')
logger.info('info text ' + 'going to logger')
logger.warning('warning text ' + 'going to logger')
logger.error('error text ' + 'going to logger')
assert 0
"""
)
result = testdir.runpytest("--log-cli-level=INFO", "--log-level=ERROR")
assert result.ret == 1
result.stdout.fnmatch_lines(
[
"*-- live log call --*",
"*INFO*info text going to logger",
"*WARNING*warning text going to logger",
"*ERROR*error text going to logger",
"=* 1 failed in *=",
]
)
assert "DEBUG" not in result.stdout.str()
def test_setup_logging(testdir):
testdir.makepyfile(
"""
import logging
logger = logging.getLogger(__name__)
def setup_function(function):
logger.info('text going to logger from setup')
def test_foo():
logger.info('text going to logger from call')
assert False
"""
)
result = testdir.runpytest("--log-level=INFO")
assert result.ret == 1
result.stdout.fnmatch_lines(
[
"*- Captured *log setup -*",
"*text going to logger from setup*",
"*- Captured *log call -*",
"*text going to logger from call*",
]
)
def test_teardown_logging(testdir):
testdir.makepyfile(
"""
import logging
logger = logging.getLogger(__name__)
def test_foo():
logger.info('text going to logger from call')
def teardown_function(function):
logger.info('text going to logger from teardown')
assert False
"""
)
result = testdir.runpytest("--log-level=INFO")
assert result.ret == 1
result.stdout.fnmatch_lines(
[
"*- Captured *log call -*",
"*text going to logger from call*",
"*- Captured *log teardown -*",
"*text going to logger from teardown*",
]
)
def test_disable_log_capturing(testdir):
testdir.makepyfile(
"""
import sys
import logging
logger = logging.getLogger(__name__)
def test_foo():
sys.stdout.write('text going to stdout')
logger.warning('catch me if you can!')
sys.stderr.write('text going to stderr')
assert False
"""
)
result = testdir.runpytest("--no-print-logs")
print(result.stdout)
assert result.ret == 1
result.stdout.fnmatch_lines(["*- Captured stdout call -*", "text going to stdout"])
result.stdout.fnmatch_lines(["*- Captured stderr call -*", "text going to stderr"])
with pytest.raises(pytest.fail.Exception):
result.stdout.fnmatch_lines(["*- Captured *log call -*"])
def test_disable_log_capturing_ini(testdir):
testdir.makeini(
"""
[pytest]
log_print=False
"""
)
testdir.makepyfile(
"""
import sys
import logging
logger = logging.getLogger(__name__)
def test_foo():
sys.stdout.write('text going to stdout')
logger.warning('catch me if you can!')
sys.stderr.write('text going to stderr')
assert False
"""
)
result = testdir.runpytest()
print(result.stdout)
assert result.ret == 1
result.stdout.fnmatch_lines(["*- Captured stdout call -*", "text going to stdout"])
result.stdout.fnmatch_lines(["*- Captured stderr call -*", "text going to stderr"])
with pytest.raises(pytest.fail.Exception):
result.stdout.fnmatch_lines(["*- Captured *log call -*"])
@pytest.mark.parametrize("enabled", [True, False])
def test_log_cli_enabled_disabled(testdir, enabled):
msg = "critical message logged by test"
testdir.makepyfile(
"""
import logging
def test_log_cli():
logging.critical("{}")
""".format(
msg
)
)
if enabled:
testdir.makeini(
"""
[pytest]
log_cli=true
"""
)
result = testdir.runpytest()
if enabled:
result.stdout.fnmatch_lines(
[
"test_log_cli_enabled_disabled.py::test_log_cli ",
"*-- live log call --*",
"test_log_cli_enabled_disabled.py* CRITICAL critical message logged by test",
"PASSED*",
]
)
else:
assert msg not in result.stdout.str()
def test_log_cli_default_level(testdir):
# Default log file level
testdir.makepyfile(
"""
import pytest
import logging
def test_log_cli(request):
plugin = request.config.pluginmanager.getplugin('logging-plugin')
assert plugin.log_cli_handler.level == logging.NOTSET
logging.getLogger('catchlog').info("INFO message won't be shown")
logging.getLogger('catchlog').warning("WARNING message will be shown")
"""
)
testdir.makeini(
"""
[pytest]
log_cli=true
"""
)
result = testdir.runpytest()
# fnmatch_lines does an assertion internally
result.stdout.fnmatch_lines(
[
"test_log_cli_default_level.py::test_log_cli ",
"test_log_cli_default_level.py*WARNING message will be shown*",
]
)
assert "INFO message won't be shown" not in result.stdout.str()
# make sure that that we get a '0' exit code for the testsuite
assert result.ret == 0
def test_log_cli_default_level_multiple_tests(testdir, request):
"""Ensure we reset the first newline added by the live logger between tests"""
filename = request.node.name + ".py"
testdir.makepyfile(
"""
import logging
def test_log_1():
logging.warning("log message from test_log_1")
def test_log_2():
logging.warning("log message from test_log_2")
"""
)
testdir.makeini(
"""
[pytest]
log_cli=true
"""
)
result = testdir.runpytest()
result.stdout.fnmatch_lines(
[
"{}::test_log_1 ".format(filename),
"*WARNING*log message from test_log_1*",
"PASSED *50%*",
"{}::test_log_2 ".format(filename),
"*WARNING*log message from test_log_2*",
"PASSED *100%*",
"=* 2 passed in *=",
]
)
def test_log_cli_default_level_sections(testdir, request):
"""Check that with live logging enable we are printing the correct headers during
start/setup/call/teardown/finish."""
filename = request.node.name + ".py"
testdir.makeconftest(
"""
import pytest
import logging
def pytest_runtest_logstart():
logging.warning('>>>>> START >>>>>')
def pytest_runtest_logfinish():
logging.warning('<<<<< END <<<<<<<')
"""
)
testdir.makepyfile(
"""
import pytest
import logging
@pytest.fixture
def fix(request):
logging.warning("log message from setup of {}".format(request.node.name))
yield
logging.warning("log message from teardown of {}".format(request.node.name))
def test_log_1(fix):
logging.warning("log message from test_log_1")
def test_log_2(fix):
logging.warning("log message from test_log_2")
"""
)
testdir.makeini(
"""
[pytest]
log_cli=true
"""
)
result = testdir.runpytest()
result.stdout.fnmatch_lines(
[
"{}::test_log_1 ".format(filename),
"*-- live log start --*",
"*WARNING* >>>>> START >>>>>*",
"*-- live log setup --*",
"*WARNING*log message from setup of test_log_1*",
"*-- live log call --*",
"*WARNING*log message from test_log_1*",
"PASSED *50%*",
"*-- live log teardown --*",
"*WARNING*log message from teardown of test_log_1*",
"*-- live log finish --*",
"*WARNING* <<<<< END <<<<<<<*",
"{}::test_log_2 ".format(filename),
"*-- live log start --*",
"*WARNING* >>>>> START >>>>>*",
"*-- live log setup --*",
"*WARNING*log message from setup of test_log_2*",
"*-- live log call --*",
"*WARNING*log message from test_log_2*",
"PASSED *100%*",
"*-- live log teardown --*",
"*WARNING*log message from teardown of test_log_2*",
"*-- live log finish --*",
"*WARNING* <<<<< END <<<<<<<*",
"=* 2 passed in *=",
]
)
def test_live_logs_unknown_sections(testdir, request):
"""Check that with live logging enable we are printing the correct headers during
start/setup/call/teardown/finish."""
filename = request.node.name + ".py"
testdir.makeconftest(
"""
import pytest
import logging
def pytest_runtest_protocol(item, nextitem):
logging.warning('Unknown Section!')
def pytest_runtest_logstart():
logging.warning('>>>>> START >>>>>')
def pytest_runtest_logfinish():
logging.warning('<<<<< END <<<<<<<')
"""
)
testdir.makepyfile(
"""
import pytest
import logging
@pytest.fixture
def fix(request):
logging.warning("log message from setup of {}".format(request.node.name))
yield
logging.warning("log message from teardown of {}".format(request.node.name))
def test_log_1(fix):
logging.warning("log message from test_log_1")
"""
)
testdir.makeini(
"""
[pytest]
log_cli=true
"""
)
result = testdir.runpytest()
result.stdout.fnmatch_lines(
[
"*WARNING*Unknown Section*",
"{}::test_log_1 ".format(filename),
"*WARNING* >>>>> START >>>>>*",
"*-- live log setup --*",
"*WARNING*log message from setup of test_log_1*",
"*-- live log call --*",
"*WARNING*log message from test_log_1*",
"PASSED *100%*",
"*-- live log teardown --*",
"*WARNING*log message from teardown of test_log_1*",
"*WARNING* <<<<< END <<<<<<<*",
"=* 1 passed in *=",
]
)
def test_sections_single_new_line_after_test_outcome(testdir, request):
"""Check that only a single new line is written between log messages during
teardown/finish."""
filename = request.node.name + ".py"
testdir.makeconftest(
"""
import pytest
import logging
def pytest_runtest_logstart():
logging.warning('>>>>> START >>>>>')
def pytest_runtest_logfinish():
logging.warning('<<<<< END <<<<<<<')
logging.warning('<<<<< END <<<<<<<')
"""
)
testdir.makepyfile(
"""
import pytest
import logging
@pytest.fixture
def fix(request):
logging.warning("log message from setup of {}".format(request.node.name))
yield
logging.warning("log message from teardown of {}".format(request.node.name))
logging.warning("log message from teardown of {}".format(request.node.name))
def test_log_1(fix):
logging.warning("log message from test_log_1")
"""
)
testdir.makeini(
"""
[pytest]
log_cli=true
"""
)
result = testdir.runpytest()
result.stdout.fnmatch_lines(
[
"{}::test_log_1 ".format(filename),
"*-- live log start --*",
"*WARNING* >>>>> START >>>>>*",
"*-- live log setup --*",
"*WARNING*log message from setup of test_log_1*",
"*-- live log call --*",
"*WARNING*log message from test_log_1*",
"PASSED *100%*",
"*-- live log teardown --*",
"*WARNING*log message from teardown of test_log_1*",
"*-- live log finish --*",
"*WARNING* <<<<< END <<<<<<<*",
"*WARNING* <<<<< END <<<<<<<*",
"=* 1 passed in *=",
]
)
assert (
re.search(
r"(.+)live log teardown(.+)\n(.+)WARNING(.+)\n(.+)WARNING(.+)",
result.stdout.str(),
re.MULTILINE,
)
is not None
)
assert (
re.search(
r"(.+)live log finish(.+)\n(.+)WARNING(.+)\n(.+)WARNING(.+)",
result.stdout.str(),
re.MULTILINE,
)
is not None
)
def test_log_cli_level(testdir):
# Default log file level
testdir.makepyfile(
"""
import pytest
import logging
def test_log_cli(request):
plugin = request.config.pluginmanager.getplugin('logging-plugin')
assert plugin.log_cli_handler.level == logging.INFO
logging.getLogger('catchlog').debug("This log message won't be shown")
logging.getLogger('catchlog').info("This log message will be shown")
print('PASSED')
"""
)
testdir.makeini(
"""
[pytest]
log_cli=true
"""
)
result = testdir.runpytest("-s", "--log-cli-level=INFO")
# fnmatch_lines does an assertion internally
result.stdout.fnmatch_lines(
[
"test_log_cli_level.py*This log message will be shown",
"PASSED", # 'PASSED' on its own line because the log message prints a new line
]
)
assert "This log message won't be shown" not in result.stdout.str()
# make sure that that we get a '0' exit code for the testsuite
assert result.ret == 0
result = testdir.runpytest("-s", "--log-level=INFO")
# fnmatch_lines does an assertion internally
result.stdout.fnmatch_lines(
[
"test_log_cli_level.py* This log message will be shown",
"PASSED", # 'PASSED' on its own line because the log message prints a new line
]
)
assert "This log message won't be shown" not in result.stdout.str()
# make sure that that we get a '0' exit code for the testsuite
assert result.ret == 0
def test_log_cli_ini_level(testdir):
testdir.makeini(
"""
[pytest]
log_cli=true
log_cli_level = INFO
"""
)
testdir.makepyfile(
"""
import pytest
import logging
def test_log_cli(request):
plugin = request.config.pluginmanager.getplugin('logging-plugin')
assert plugin.log_cli_handler.level == logging.INFO
logging.getLogger('catchlog').debug("This log message won't be shown")
logging.getLogger('catchlog').info("This log message will be shown")
print('PASSED')
"""
)
result = testdir.runpytest("-s")
# fnmatch_lines does an assertion internally
result.stdout.fnmatch_lines(
[
"test_log_cli_ini_level.py* This log message will be shown",
"PASSED", # 'PASSED' on its own line because the log message prints a new line
]
)
assert "This log message won't be shown" not in result.stdout.str()
# make sure that that we get a '0' exit code for the testsuite
assert result.ret == 0
@pytest.mark.parametrize(
"cli_args",
["", "--log-level=WARNING", "--log-file-level=WARNING", "--log-cli-level=WARNING"],
)
def test_log_cli_auto_enable(testdir, request, cli_args):
"""Check that live logs are enabled if --log-level or --log-cli-level is passed on the CLI.
It should not be auto enabled if the same configs are set on the INI file.
"""
testdir.makepyfile(
"""
import pytest
import logging
def test_log_1():
logging.info("log message from test_log_1 not to be shown")
logging.warning("log message from test_log_1")
"""
)
testdir.makeini(
"""
[pytest]
log_level=INFO
log_cli_level=INFO
"""
)
result = testdir.runpytest(cli_args)
if cli_args == "--log-cli-level=WARNING":
result.stdout.fnmatch_lines(
[
"*::test_log_1 ",
"*-- live log call --*",
"*WARNING*log message from test_log_1*",
"PASSED *100%*",
"=* 1 passed in *=",
]
)
assert "INFO" not in result.stdout.str()
else:
result.stdout.fnmatch_lines(
["*test_log_cli_auto_enable*100%*", "=* 1 passed in *="]
)
assert "INFO" not in result.stdout.str()
assert "WARNING" not in result.stdout.str()
def test_log_file_cli(testdir):
# Default log file level
testdir.makepyfile(
"""
import pytest
import logging
def test_log_file(request):
plugin = request.config.pluginmanager.getplugin('logging-plugin')
assert plugin.log_file_handler.level == logging.WARNING
logging.getLogger('catchlog').info("This log message won't be shown")
logging.getLogger('catchlog').warning("This log message will be shown")
print('PASSED')
"""
)
log_file = testdir.tmpdir.join("pytest.log").strpath
result = testdir.runpytest(
"-s", "--log-file={}".format(log_file), "--log-file-level=WARNING"
)
# fnmatch_lines does an assertion internally
result.stdout.fnmatch_lines(["test_log_file_cli.py PASSED"])
# make sure that that we get a '0' exit code for the testsuite
assert result.ret == 0
assert os.path.isfile(log_file)
with open(log_file) as rfh:
contents = rfh.read()
assert "This log message will be shown" in contents
assert "This log message won't be shown" not in contents
def test_log_file_cli_level(testdir):
# Default log file level
testdir.makepyfile(
"""
import pytest
import logging
def test_log_file(request):
plugin = request.config.pluginmanager.getplugin('logging-plugin')
assert plugin.log_file_handler.level == logging.INFO
logging.getLogger('catchlog').debug("This log message won't be shown")
logging.getLogger('catchlog').info("This log message will be shown")
print('PASSED')
"""
)
log_file = testdir.tmpdir.join("pytest.log").strpath
result = testdir.runpytest(
"-s", "--log-file={}".format(log_file), "--log-file-level=INFO"
)
# fnmatch_lines does an assertion internally
result.stdout.fnmatch_lines(["test_log_file_cli_level.py PASSED"])
# make sure that that we get a '0' exit code for the testsuite
assert result.ret == 0
assert os.path.isfile(log_file)
with open(log_file) as rfh:
contents = rfh.read()
assert "This log message will be shown" in contents
assert "This log message won't be shown" not in contents
def test_log_level_not_changed_by_default(testdir):
testdir.makepyfile(
"""
import logging
def test_log_file():
assert logging.getLogger().level == logging.WARNING
"""
)
result = testdir.runpytest("-s")
result.stdout.fnmatch_lines("* 1 passed in *")
def test_log_file_ini(testdir):
log_file = testdir.tmpdir.join("pytest.log").strpath
testdir.makeini(
"""
[pytest]
log_file={}
log_file_level=WARNING
""".format(
log_file
)
)
testdir.makepyfile(
"""
import pytest
import logging
def test_log_file(request):
plugin = request.config.pluginmanager.getplugin('logging-plugin')
assert plugin.log_file_handler.level == logging.WARNING
logging.getLogger('catchlog').info("This log message won't be shown")
logging.getLogger('catchlog').warning("This log message will be shown")
print('PASSED')
"""
)
result = testdir.runpytest("-s")
# fnmatch_lines does an assertion internally
result.stdout.fnmatch_lines(["test_log_file_ini.py PASSED"])
# make sure that that we get a '0' exit code for the testsuite
assert result.ret == 0
assert os.path.isfile(log_file)
with open(log_file) as rfh:
contents = rfh.read()
assert "This log message will be shown" in contents
assert "This log message won't be shown" not in contents
def test_log_file_ini_level(testdir):
log_file = testdir.tmpdir.join("pytest.log").strpath
testdir.makeini(
"""
[pytest]
log_file={}
log_file_level = INFO
""".format(
log_file
)
)
testdir.makepyfile(
"""
import pytest
import logging
def test_log_file(request):
plugin = request.config.pluginmanager.getplugin('logging-plugin')
assert plugin.log_file_handler.level == logging.INFO
logging.getLogger('catchlog').debug("This log message won't be shown")
logging.getLogger('catchlog').info("This log message will be shown")
print('PASSED')
"""
)
result = testdir.runpytest("-s")
# fnmatch_lines does an assertion internally
result.stdout.fnmatch_lines(["test_log_file_ini_level.py PASSED"])
# make sure that that we get a '0' exit code for the testsuite
assert result.ret == 0
assert os.path.isfile(log_file)
with open(log_file) as rfh:
contents = rfh.read()
assert "This log message will be shown" in contents
assert "This log message won't be shown" not in contents
def test_log_file_unicode(testdir):
log_file = testdir.tmpdir.join("pytest.log").strpath
testdir.makeini(
"""
[pytest]
log_file={}
log_file_level = INFO
""".format(
log_file
)
)
testdir.makepyfile(
"""
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
def test_log_file():
logging.getLogger('catchlog').info("Normal message")
logging.getLogger('catchlog').info("├")
logging.getLogger('catchlog').info("Another normal message")
"""
)
result = testdir.runpytest()
# make sure that that we get a '0' exit code for the testsuite
assert result.ret == 0
assert os.path.isfile(log_file)
with open(log_file, encoding="utf-8") as rfh:
contents = rfh.read()
assert "Normal message" in contents
assert u"├" in contents
assert "Another normal message" in contents
@pytest.mark.parametrize("has_capture_manager", [True, False])
def test_live_logging_suspends_capture(has_capture_manager, request):
"""Test that capture manager is suspended when we emitting messages for live logging.
This tests the implementation calls instead of behavior because it is difficult/impossible to do it using
``testdir`` facilities because they do their own capturing.
We parametrize the test to also make sure _LiveLoggingStreamHandler works correctly if no capture manager plugin
is installed.
"""
import logging
from functools import partial
from _pytest.capture import CaptureManager
from _pytest.logging import _LiveLoggingStreamHandler
class MockCaptureManager:
calls = []
def suspend_global_capture(self):
self.calls.append("suspend_global_capture")
def resume_global_capture(self):
self.calls.append("resume_global_capture")
# sanity check
assert CaptureManager.suspend_capture_item
assert CaptureManager.resume_global_capture
class DummyTerminal(six.StringIO):
def section(self, *args, **kwargs):
pass
out_file = DummyTerminal()
capture_manager = MockCaptureManager() if has_capture_manager else None
handler = _LiveLoggingStreamHandler(out_file, capture_manager)
handler.set_when("call")
logger = logging.getLogger(__name__ + ".test_live_logging_suspends_capture")
logger.addHandler(handler)
request.addfinalizer(partial(logger.removeHandler, handler))
logger.critical("some message")
if has_capture_manager:
assert MockCaptureManager.calls == [
"suspend_global_capture",
"resume_global_capture",
]
else:
assert MockCaptureManager.calls == []
assert out_file.getvalue() == "\nsome message\n"
| 30.228758 | 116 | 0.583063 | 3,164 | 27,750 | 4.977876 | 0.078698 | 0.033333 | 0.029333 | 0.05181 | 0.81054 | 0.771302 | 0.730667 | 0.710476 | 0.703048 | 0.673587 | 0 | 0.005017 | 0.296108 | 27,750 | 917 | 117 | 30.261723 | 0.801208 | 0.086595 | 0 | 0.536036 | 0 | 0 | 0.279013 | 0.041635 | 0 | 0 | 0 | 0 | 0.119369 | 1 | 0.060811 | false | 0.051802 | 0.02027 | 0 | 0.087838 | 0.006757 | 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 |
07c87a1dd96d6206762b07bc01dc4285c167977c | 13,133 | py | Python | PythonLinearNonlinearControl/envs/two_wheeled.py | Geonhee-LEE/PythonLinearNonlinearControl | 2a2467098108641483778c09ceb7906cb49f6cee | [
"MIT"
] | 425 | 2020-03-31T07:17:48.000Z | 2022-03-30T09:44:41.000Z | PythonLinearNonlinearControl/envs/two_wheeled.py | Geonhee-LEE/PythonLinearNonlinearControl | 2a2467098108641483778c09ceb7906cb49f6cee | [
"MIT"
] | 6 | 2020-06-22T23:50:41.000Z | 2021-11-19T08:48:35.000Z | PythonLinearNonlinearControl/envs/two_wheeled.py | Geonhee-LEE/PythonLinearNonlinearControl | 2a2467098108641483778c09ceb7906cb49f6cee | [
"MIT"
] | 88 | 2020-04-03T12:58:54.000Z | 2022-03-28T07:01:22.000Z | import numpy as np
from matplotlib.axes import Axes
import matplotlib.pyplot as plt
from .env import Env
from ..plotters.plot_objs import circle_with_angle, square, circle
def step_two_wheeled_env(curr_x, u, dt, method="Oylar"):
""" step two wheeled enviroment
Args:
curr_x (numpy.ndarray): current state, shape(state_size, )
u (numpy.ndarray): input, shape(input_size, )
dt (float): sampling time
Returns:
next_x (numpy.ndarray): next state, shape(state_size. )
Notes:
TODO: deal with another method, like Runge Kutta
"""
B = np.array([[np.cos(curr_x[-1]), 0.],
[np.sin(curr_x[-1]), 0.],
[0., 1.]])
x_dot = np.matmul(B, u[:, np.newaxis])
next_x = x_dot.flatten() * dt + curr_x
return next_x
class TwoWheeledConstEnv(Env):
""" Two wheeled robot with constant goal Env
"""
def __init__(self):
"""
"""
self.config = {"state_size": 3,
"input_size": 2,
"dt": 0.01,
"max_step": 500,
"input_lower_bound": (-1.5, -3.14),
"input_upper_bound": (1.5, 3.14),
"car_size": 0.2,
"wheel_size": (0.075, 0.015)
}
super(TwoWheeledConstEnv, self).__init__(self.config)
def reset(self, init_x=None):
""" reset state
Returns:
init_x (numpy.ndarray): initial state, shape(state_size, )
info (dict): information
"""
self.step_count = 0
noise = np.clip(np.random.randn(3), -0.1, 0.1)
noise *= 0.1
self.curr_x = np.zeros(self.config["state_size"]) + noise
if init_x is not None:
self.curr_x = init_x
# goal
self.g_x = np.array([2.5, 2.5, 0.])
# clear memory
self.history_x = []
self.history_g_x = []
return self.curr_x, {"goal_state": self.g_x}
def step(self, u):
""" step environments
Args:
u (numpy.ndarray) : input, shape(input_size, )
Returns:
next_x (numpy.ndarray): next state, shape(state_size, )
cost (float): costs
done (bool): end the simulation or not
info (dict): information
"""
# clip action
u = np.clip(u,
self.config["input_lower_bound"],
self.config["input_upper_bound"])
# step
next_x = step_two_wheeled_env(self.curr_x, u, self.config["dt"])
# TODO: costs
costs = 0.
costs += 0.1 * np.sum(u**2)
costs += np.sum(((self.curr_x - self.g_x)**2) * np.array([5., 5., 1.]))
# save history
self.history_x.append(next_x.flatten())
self.history_g_x.append(self.g_x.flatten())
# update
self.curr_x = next_x.flatten()
# update costs
self.step_count += 1
return next_x.flatten(), costs, \
self.step_count > self.config["max_step"], \
{"goal_state": self.g_x}
def plot_func(self, to_plot, i=None, history_x=None, history_g_x=None):
""" plot cartpole object function
Args:
to_plot (axis or imgs): plotted objects
i (int): frame count
history_x (numpy.ndarray): history of state, shape(iters, state)
history_g_x (numpy.ndarray): history of goal state,
shape(iters, state)
Returns:
None or imgs : imgs order is ["cart_img", "pole_img"]
"""
if isinstance(to_plot, Axes):
imgs = {} # create new imgs
imgs["car"] = to_plot.plot([], [], c="k")[0]
imgs["car_angle"] = to_plot.plot([], [], c="k")[0]
imgs["left_tire"] = to_plot.plot([], [], c="k", linewidth=5)[0]
imgs["right_tire"] = to_plot.plot([], [], c="k", linewidth=5)[0]
imgs["goal"] = to_plot.plot([], [], marker="*",
c="b", markersize=10)[0]
imgs["traj"] = to_plot.plot([], [], c="b", linestyle="dashed")[0]
# set axis
to_plot.set_xlim([-1., 3.])
to_plot.set_ylim([-1., 3.])
return imgs
# set imgs
# car imgs
car_x, car_y, car_angle_x, car_angle_y, \
left_tire_x, left_tire_y, right_tire_x, right_tire_y = \
self._plot_car(history_x[i])
to_plot["car"].set_data(car_x, car_y)
to_plot["car_angle"].set_data(car_angle_x, car_angle_y)
to_plot["left_tire"].set_data(left_tire_x, left_tire_y,)
to_plot["right_tire"].set_data(right_tire_x, right_tire_y)
# goal and trajs
to_plot["goal"].set_data(history_g_x[i, 0], history_g_x[i, 1])
to_plot["traj"].set_data(history_x[:i, 0], history_x[:i, 1])
def _plot_car(self, curr_x):
""" plot car fucntions
"""
# cart
car_x, car_y, car_angle_x, car_angle_y = \
circle_with_angle(curr_x[0], curr_x[1],
self.config["car_size"], curr_x[2])
# left tire
center_x = (self.config["car_size"]
+ self.config["wheel_size"][1]) \
* np.cos(curr_x[2]-np.pi/2.) + curr_x[0]
center_y = (self.config["car_size"]
+ self.config["wheel_size"][1]) \
* np.sin(curr_x[2]-np.pi/2.) + curr_x[1]
left_tire_x, left_tire_y = \
square(center_x, center_y,
self.config["wheel_size"], curr_x[2])
# right tire
center_x = (self.config["car_size"]
+ self.config["wheel_size"][1]) \
* np.cos(curr_x[2]+np.pi/2.) + curr_x[0]
center_y = (self.config["car_size"]
+ self.config["wheel_size"][1]) \
* np.sin(curr_x[2]+np.pi/2.) + curr_x[1]
right_tire_x, right_tire_y = \
square(center_x, center_y,
self.config["wheel_size"], curr_x[2])
return car_x, car_y, car_angle_x, car_angle_y,\
left_tire_x, left_tire_y,\
right_tire_x, right_tire_y
class TwoWheeledTrackEnv(Env):
""" Two wheeled robot with constant goal Env
"""
def __init__(self):
"""
"""
self.config = {"state_size": 3,
"input_size": 2,
"dt": 0.01,
"max_step": 1000,
"input_lower_bound": (-1.5, -3.14),
"input_upper_bound": (1.5, 3.14),
"car_size": 0.2,
"wheel_size": (0.075, 0.015)
}
super(TwoWheeledTrackEnv, self).__init__(self.config)
@staticmethod
def make_road(linelength=3., circle_radius=1.):
""" make track
Returns:
road (numpy.ndarray): road info, shape(n_point, 3) x, y, angle
"""
# line
# not include start points
line = np.linspace(-1.5, 1.5, num=51, endpoint=False)[1:]
line_1 = np.stack((line, np.zeros(50)), axis=1)
line_2 = np.stack((line[::-1], np.zeros(50)+circle_radius*2.), axis=1)
# circle
circle_1_x, circle_1_y = circle(linelength/2., circle_radius,
circle_radius, start=-np.pi/2., end=np.pi/2., n_point=50)
circle_1 = np.stack((circle_1_x, circle_1_y), axis=1)
circle_2_x, circle_2_y = circle(-linelength/2., circle_radius,
circle_radius, start=np.pi/2., end=3*np.pi/2., n_point=50)
circle_2 = np.stack((circle_2_x, circle_2_y), axis=1)
road_pos = np.concatenate((line_1, circle_1, line_2, circle_2), axis=0)
# calc road angle
road_diff = road_pos[1:] - road_pos[:-1]
road_angle = np.arctan2(road_diff[:, 1], road_diff[:, 0])
road_angle = np.concatenate((np.zeros(1), road_angle))
road = np.concatenate((road_pos, road_angle[:, np.newaxis]), axis=1)
return np.tile(road, (3, 1))
def reset(self, init_x=None):
""" reset state
Returns:
init_x (numpy.ndarray): initial state, shape(state_size, )
info (dict): information
"""
self.step_count = 0
noise = np.clip(np.random.randn(3), -0.1, 0.1)
noise *= 0.01
self.curr_x = np.zeros(self.config["state_size"]) + noise
if init_x is not None:
self.curr_x = init_x
# goal
self.g_traj = self.make_road()
# clear memory
self.history_x = []
self.history_g_x = []
return self.curr_x, {"goal_state": self.g_traj}
def step(self, u):
""" step environments
Args:
u (numpy.ndarray) : input, shape(input_size, )
Returns:
next_x (numpy.ndarray): next state, shape(state_size, )
cost (float): costs
done (bool): end the simulation or not
info (dict): information
"""
# clip action
u = np.clip(u,
self.config["input_lower_bound"],
self.config["input_upper_bound"])
# step
next_x = step_two_wheeled_env(self.curr_x, u, self.config["dt"])
costs = 0.
costs += 0.1 * np.sum(u**2)
costs += np.min(np.linalg.norm(self.curr_x - self.g_traj, axis=1))
# save history
self.history_x.append(next_x.flatten())
# update
self.curr_x = next_x.flatten()
# update costs
self.step_count += 1
return next_x.flatten(), costs, \
self.step_count > self.config["max_step"], \
{"goal_state": self.g_traj}
def plot_func(self, to_plot, i=None, history_x=None, history_g_x=None):
""" plot cartpole object function
Args:
to_plot (axis or imgs): plotted objects
i (int): frame count
history_x (numpy.ndarray): history of state, shape(iters, state)
history_g_x (numpy.ndarray): history of goal state,
shape(iters, state)
Returns:
None or imgs : imgs order is ["cart_img", "pole_img"]
"""
if isinstance(to_plot, Axes):
imgs = {} # create new imgs
imgs["car"] = to_plot.plot([], [], c="k")[0]
imgs["car_angle"] = to_plot.plot([], [], c="k")[0]
imgs["left_tire"] = to_plot.plot([], [], c="k", linewidth=5)[0]
imgs["right_tire"] = to_plot.plot([], [], c="k", linewidth=5)[0]
imgs["goal"] = to_plot.plot([], [], marker="*",
c="b", markersize=10)[0]
imgs["traj"] = to_plot.plot([], [], c="b", linestyle="dashed")[0]
# set axis
to_plot.set_xlim([-3., 3.])
to_plot.set_ylim([-1., 3.])
# plot road
to_plot.plot(self.g_traj[:, 0], self.g_traj[:, 1],
c="k", linestyle="dashed")
return imgs
# set imgs
# car imgs
car_x, car_y, car_angle_x, car_angle_y, \
left_tire_x, left_tire_y, right_tire_x, right_tire_y = \
self._plot_car(history_x[i])
to_plot["car"].set_data(car_x, car_y)
to_plot["car_angle"].set_data(car_angle_x, car_angle_y)
to_plot["left_tire"].set_data(left_tire_x, left_tire_y,)
to_plot["right_tire"].set_data(right_tire_x, right_tire_y)
# goal and trajs
to_plot["goal"].set_data(history_g_x[i, 0], history_g_x[i, 1])
to_plot["traj"].set_data(history_x[:i, 0], history_x[:i, 1])
def _plot_car(self, curr_x):
""" plot car fucntions
"""
# cart
car_x, car_y, car_angle_x, car_angle_y = \
circle_with_angle(curr_x[0], curr_x[1],
self.config["car_size"], curr_x[2])
# left tire
center_x = (self.config["car_size"]
+ self.config["wheel_size"][1]) \
* np.cos(curr_x[2]-np.pi/2.) + curr_x[0]
center_y = (self.config["car_size"]
+ self.config["wheel_size"][1]) \
* np.sin(curr_x[2]-np.pi/2.) + curr_x[1]
left_tire_x, left_tire_y = \
square(center_x, center_y,
self.config["wheel_size"], curr_x[2])
# right tire
center_x = (self.config["car_size"]
+ self.config["wheel_size"][1]) \
* np.cos(curr_x[2]+np.pi/2.) + curr_x[0]
center_y = (self.config["car_size"]
+ self.config["wheel_size"][1]) \
* np.sin(curr_x[2]+np.pi/2.) + curr_x[1]
right_tire_x, right_tire_y = \
square(center_x, center_y,
self.config["wheel_size"], curr_x[2])
return car_x, car_y, car_angle_x, car_angle_y,\
left_tire_x, left_tire_y,\
right_tire_x, right_tire_y
| 33.502551 | 98 | 0.517323 | 1,782 | 13,133 | 3.549383 | 0.104938 | 0.035573 | 0.019921 | 0.036047 | 0.812174 | 0.807747 | 0.796364 | 0.780237 | 0.780237 | 0.780237 | 0 | 0.027301 | 0.338993 | 13,133 | 391 | 99 | 33.588235 | 0.701302 | 0.180081 | 0 | 0.74 | 0 | 0 | 0.068918 | 0 | 0 | 0 | 0 | 0.005115 | 0 | 1 | 0.06 | false | 0 | 0.025 | 0 | 0.145 | 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 |
07cb8a04b1394fb897394defcd875ea7108252b0 | 23,229 | py | Python | Tests/modules/io_related/test__fileio.py | aisk/ironpython3 | d492fd811a0cee4d0a07cd46f02a29a3c90d964b | [
"Apache-2.0"
] | 1,872 | 2015-01-02T18:56:47.000Z | 2022-03-31T07:34:39.000Z | Tests/modules/io_related/test__fileio.py | aisk/ironpython3 | d492fd811a0cee4d0a07cd46f02a29a3c90d964b | [
"Apache-2.0"
] | 675 | 2015-02-27T09:01:01.000Z | 2022-03-31T14:03:25.000Z | Tests/modules/io_related/test__fileio.py | aisk/ironpython3 | d492fd811a0cee4d0a07cd46f02a29a3c90d964b | [
"Apache-2.0"
] | 278 | 2015-01-02T03:48:20.000Z | 2022-03-29T20:40:44.000Z | # Licensed to the .NET Foundation under one or more agreements.
# The .NET Foundation licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information.
'''
Tests for CPython's _fileio module.
'''
import os
import sys
import time
import threading
import unittest
from _io import FileIO
from iptest import IronPythonTestCase, run_test
def bytesio_helper():
return (bytes(bytearray(b'')),
bytes(bytearray(b'a')),
bytes(bytearray(b'ab')),
bytes(bytearray(b'abc')),
bytes(bytearray(b'abcd')),
bytes(bytearray(b'abcde')),
bytes(bytearray(b'abcdef')),
bytes(bytearray(b'abcdefg')),
bytes(bytearray(b'abcdefgh')),
bytes(bytearray(b'abcdefghi'))
)
def fileio_helper(temp_readinto_name_template):
bytes_io_list = bytesio_helper()
file_io_list = []
for i in range(len(bytes_io_list)):
with FileIO(temp_readinto_name_template % i, "w") as f:
f.write(bytes_io_list[i])
file_io_list.append(FileIO(temp_readinto_name_template % i, "r"))
return file_io_list
class FileIOTest(IronPythonTestCase):
def test__FileIO___class__(self):
'''
TODO
'''
pass
def test__FileIO___delattr__(self):
'''
TODO
'''
pass
def test__FileIO___doc__(self):
'''
TODO
'''
pass
def test__FileIO___format__(self):
'''
TODO
'''
pass
def test__FileIO___getattribute__(self):
'''
TODO
'''
pass
def test__FileIO___hash__(self):
'''
TODO
'''
pass
def test__FileIO___init__(self):
'''
TODO
'''
pass
def test__FileIO___new__(self):
'''
TODO
'''
pass
def test__FileIO___reduce__(self):
'''
TODO
'''
pass
def test__FileIO___reduce_ex__(self):
'''
TODO
'''
pass
def test__FileIO___repr__(self):
'''
TODO
'''
pass
def test__FileIO___setattr__(self):
'''
TODO
'''
pass
def test__FileIO___sizeof__(self):
'''
TODO
'''
pass
def test__FileIO___str__(self):
'''
TODO
'''
pass
def test__FileIO___subclasshook__(self):
'''
TODO
'''
pass
def test__FileIO_close(self):
'''
TODO
'''
pass
def test__FileIO_closed(self):
'''
TODO
'''
pass
def test__FileIO_closefd(self):
'''
TODO
'''
pass
def test__FileIO_fileno(self):
'''
TODO
'''
pass
def test__FileIO_isatty(self):
'''
TODO
'''
pass
def test__FileIO_mode(self):
'''
TODO
'''
pass
def test__FileIO_read(self):
'''
TODO
'''
pass
def test__FileIO_readable(self):
'''
TODO
'''
pass
def test__FileIO_readall(self):
r, w = os.pipe()
wf = FileIO(w, 'w')
def writefile():
time.sleep(0.05)
wf.write(bytes(bytearray(b'abc')))
wf.close()
wf.write(bytes(bytearray(b'abc\n')))
t = threading.Thread(target=writefile)
t.start()
with FileIO(r, 'r') as rf:
self.assertEqual(rf.readall(), b'abc\nabc')
t.join()
def test__FileIO_readinto(self):
'''
TODO
'''
pass
def test__FileIO_seek(self):
'''
TODO
'''
pass
def test__FileIO_seekable(self):
'''
TODO
'''
pass
def test__FileIO_tell(self):
'''
TODO
'''
pass
def test__FileIO_truncate(self):
'''
TODO
'''
pass
def test__FileIO_writable(self):
'''
TODO
'''
pass
def test__FileIO_write(self):
'''
TODO
'''
pass
def test_coverage(self):
'''
Test holes as found by code coverage runs. These need to be refactored and
moved to other functions throughout this module (TODO).
'''
#--FileIO.readinto(array.array(...))
import array
readinto_cases = [
[('b',),
[[],[],[],[],[],[],[],[],[],[]],
[0,0,0,0,0,0,0,0,0,0]],
[('b',[0]),
[[0],[97],[97],[97],[97],[97],[97],[97],[97],[97]],
[0,1,1,1,1,1,1,1,1,1]],
[('b',[0,-1]),
[[0,-1],[97,-1],[97,98],[97,98],[97,98],[97,98],[97,98],[97,98],[97,98],[97,98]],
[0,1,2,2,2,2,2,2,2,2]],
[('b',[0,1,2]),
[[0,1,2],[97,1,2],[97,98,2],[97,98,99],[97,98,99],[97,98,99],[97,98,99],[97,98,99],[97,98,99],[97,98,99]],
[0,1,2,3,3,3,3,3,3,3]],
[('b',[0,1,2,3,4,5,6]),
[[0,1,2,3,4,5,6],[97,1,2,3,4,5,6],[97,98,2,3,4,5,6],[97,98,99,3,4,5,6],[97,98,99,100,4,5,6],[97,98,99,100,101,5,6],[97,98,99,100,101,102,6],[97,98,99,100,101,102,103],[97,98,99,100,101,102,103],[97,98,99,100,101,102,103]],
[0,1,2,3,4,5,6,7,7,7]],
[('b',[0,1,2,3,4,5,6,7]),
[[0,1,2,3,4,5,6,7],[97,1,2,3,4,5,6,7],[97,98,2,3,4,5,6,7],[97,98,99,3,4,5,6,7],[97,98,99,100,4,5,6,7],[97,98,99,100,101,5,6,7],[97,98,99,100,101,102,6,7],[97,98,99,100,101,102,103,7],[97,98,99,100,101,102,103,104],[97,98,99,100,101,102,103,104]],
[0,1,2,3,4,5,6,7,8,8]],
[('b',[0,1,2,3,4,5,6,7,8]),
[[0,1,2,3,4,5,6,7,8],[97,1,2,3,4,5,6,7,8],[97,98,2,3,4,5,6,7,8],[97,98,99,3,4,5,6,7,8],[97,98,99,100,4,5,6,7,8],[97,98,99,100,101,5,6,7,8],[97,98,99,100,101,102,6,7,8],[97,98,99,100,101,102,103,7,8],[97,98,99,100,101,102,103,104,8],[97,98,99,100,101,102,103,104,105]],
[0,1,2,3,4,5,6,7,8,9]],
[('b',[0,1,2,3,4,5,6,7,8,9]),
[[0,1,2,3,4,5,6,7,8,9],[97,1,2,3,4,5,6,7,8,9],[97,98,2,3,4,5,6,7,8,9],[97,98,99,3,4,5,6,7,8,9],[97,98,99,100,4,5,6,7,8,9],[97,98,99,100,101,5,6,7,8,9],[97,98,99,100,101,102,6,7,8,9],[97,98,99,100,101,102,103,7,8,9],[97,98,99,100,101,102,103,104,8,9],[97,98,99,100,101,102,103,104,105,9]],
[0,1,2,3,4,5,6,7,8,9]],
[('B',),
[[],[],[],[],[],[],[],[],[],[]],
[0,0,0,0,0,0,0,0,0,0]],
[('B',[0,1]),
[[0,1],[97,1],[97,98],[97,98],[97,98],[97,98],[97,98],[97,98],[97,98],[97,98]],
[0,1,2,2,2,2,2,2,2,2]],
[('u',),
[[],[],[],[],[],[],[],[],[],[]],
[0,0,0,0,0,0,0,0,0,0]],
[('u',''),
[[],[],[],[],[],[],[],[],[],[]],
[0,0,0,0,0,0,0,0,0,0]],
[('h',),
[[],[],[],[],[],[],[],[],[],[]],
[0,0,0,0,0,0,0,0,0,0]],
[('h',[1,2]),
[[1,2],[97,2],[25185,2],[25185,99],[25185,25699],[25185,25699],[25185,25699],[25185,25699],[25185,25699],[25185,25699]],
[0,1,2,3,4,4,4,4,4,4]],
[('H',),
[[],[],[],[],[],[],[],[],[],[]],
[0,0,0,0,0,0,0,0,0,0]],
[('H',[]),
[[],[],[],[],[],[],[],[],[],[]],
[0,0,0,0,0,0,0,0,0,0]],
[('H',[49]),
[[49],[97],[25185],[25185],[25185],[25185],[25185],[25185],[25185],[25185]],
[0,1,2,2,2,2,2,2,2,2]],
[('H',[2,3]),
[[2,3],[97,3],[25185,3],[25185,99],[25185,25699],[25185,25699],[25185,25699],[25185,25699],[25185,25699],[25185,25699]],
[0,1,2,3,4,4,4,4,4,4]],
[('i',),
[[],[],[],[],[],[],[],[],[],[]],
[0,0,0,0,0,0,0,0,0,0]],
[('I',),
[[],[],[],[],[],[],[],[],[],[]],
[0,0,0,0,0,0,0,0,0,0]],
[('l',),
[[],[],[],[],[],[],[],[],[],[]],
[0,0,0,0,0,0,0,0,0,0]],
[('L',),
[[],[],[],[],[],[],[],[],[],[]],
[0,0,0,0,0,0,0,0,0,0]],
[('f',[]),
[[],[],[],[],[],[],[],[],[],[]],
[0,0,0,0,0,0,0,0,0,0]],
[('d',),
[[],[],[],[],[],[],[],[],[],[]],
[0,0,0,0,0,0,0,0,0,0]],
#http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=24303
[('u','z'),
[['z'],['a'],['\u6261'],['\u6261'],['\u6261'],['\u6261'],['\u6261'],['\u6261'],['\u6261'],['\u6261']],
[0,1,2,2,2,2,2,2,2,2]],
[('u','az'),
[['a','z'],['a','z'],['\u6261','z'],['\u6261','c'],['\u6261','\u6463'],['\u6261','\u6463'],['\u6261','\u6463'],['\u6261','\u6463'],['\u6261','\u6463'],['\u6261','\u6463']],
[0,1,2,3,4,4,4,4,4,4]],
[('u','*'),
[['*'],['a'],['\u6261'],['\u6261'],['\u6261'],['\u6261'],['\u6261'],['\u6261'],['\u6261'],['\u6261']],
[0,1,2,2,2,2,2,2,2,2]],
#http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=24316
[('h',[-1]),
[[-1],[-159],[25185],[25185],[25185],[25185],[25185],[25185],[25185],[25185]],
[0,1,2,2,2,2,2,2,2,2]],
#http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=24316
[('h',[1,-99,47]),
[[1,-99,47],[97,-99,47],[25185,-99,47],[25185,-157,47],[25185,25699,47],[25185,25699,101],[25185,25699,26213],[25185,25699,26213],[25185,25699,26213],[25185,25699,26213]],
[0,1,2,3,4,5,6,6,6,6]],
#http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=24317
[('i',[1,2]),
[[1,2],[97,2],[25185,2],[6513249,2],[1684234849,2],[1684234849,101],[1684234849,26213],[1684234849,6776421],[1684234849,1751606885],[1684234849,1751606885]],
[0,1,2,3,4,5,6,7,8,8]],
#http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=24316
[('i',[-1]),
[[-1],[-159],[-40351],[-10263967],[1684234849],[1684234849],[1684234849],[1684234849],[1684234849],[1684234849]],
[0,1,2,3,4,4,4,4,4,4]],
#http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=24316
[('i',[1,-99,47]),
[[1,-99,47],[97,-99,47],[25185,-99,47],[6513249,-99,47],[1684234849,-99,47],[1684234849,-155,47],[1684234849,-39323,47],[1684234849,-10000795,47],[1684234849,1751606885,47],[1684234849,1751606885,105]],
[0,1,2,3,4,5,6,7,8,9]],
#http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=24317
[('I',[1]),
[[1],[97],[25185],[6513249],[1684234849],[1684234849],[1684234849],[1684234849],[1684234849],[1684234849]],
[0,1,2,3,4,4,4,4,4,4]],
[('I',[1,999,47]),
[[1,999,47],[97,999,47],[25185,999,47],[6513249,999,47],[1684234849,999,47],[1684234849,869,47],[1684234849,26213,47],[1684234849,6776421,47],[1684234849,1751606885,47],[1684234849,1751606885,105]],
[0,1,2,3,4,5,6,7,8,9]],
#http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=24317
[('l',[1,2]),
[[1,2],[97,2],[25185,2],[6513249,2],[1684234849,2],[1684234849,101],[1684234849,26213],[1684234849,6776421],[1684234849,1751606885],[1684234849,1751606885]],
[0,1,2,3,4,5,6,7,8,8]],
[('l',[-1]),
[[-1],[-159],[-40351],[-10263967],[1684234849],[1684234849],[1684234849],[1684234849],[1684234849],[1684234849]],
[0,1,2,3,4,4,4,4,4,4]],
[('l',[1,-99,47]),
[[1,-99,47],[97,-99,47],[25185,-99,47],[6513249,-99,47],[1684234849,-99,47],[1684234849,-155,47],[1684234849,-39323,47],[1684234849,-10000795,47],[1684234849,1751606885,47],[1684234849,1751606885,105]],
[0,1,2,3,4,5,6,7,8,9]],
[('l',[1,-99,47,48]),
[[1,-99,47,48],[97,-99,47,48],[25185,-99,47,48],[6513249,-99,47,48],[1684234849,-99,47,48],[1684234849,-155,47,48],[1684234849,-39323,47,48],[1684234849,-10000795,47,48],[1684234849,1751606885,47,48],[1684234849,1751606885,105,48]],
[0,1,2,3,4,5,6,7,8,9]],
[('l',[1,-99,47,48,49]),
[[1,-99,47,48,49],[97,-99,47,48,49],[25185,-99,47,48,49],[6513249,-99,47,48,49],[1684234849,-99,47,48,49],[1684234849,-155,47,48,49],[1684234849,-39323,47,48,49],[1684234849,-10000795,47,48,49],[1684234849,1751606885,47,48,49],[1684234849,1751606885,105,48,49]],
[0,1,2,3,4,5,6,7,8,9]],
#http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=24318
[('L',[100000000]),
[[100000000],[100000097],[99967585],[90399329],[1684234849],[1684234849],[1684234849],[1684234849],[1684234849],[1684234849]],
[0,1,2,3,4,4,4,4,4,4]],
[('L',[1,99,47]),
[[1,99,47],[97,99,47],[25185,99,47],[6513249,99,47],[1684234849,99,47],[1684234849,101,47],[1684234849,26213,47],[1684234849,6776421,47],[1684234849,1751606885,47],[1684234849,1751606885,105]],
[0,1,2,3,4,5,6,7,8,9]],
#http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=24319
[('f',[3.1415926535897931]),
[[3.1415927410125732],[3.1415636539459229],[3.1466295719146729],[3.5528795719146729],[1.6777999408082104e+22],[1.6777999408082104e+22],[1.6777999408082104e+22],[1.6777999408082104e+22],[1.6777999408082104e+22],[1.6777999408082104e+22]],
[0,1,2,3,4,4,4,4,4,4]],
[('f',[1.0,3.1400000000000001,0.997]),
[[1.0,3.1400001049041748,0.99699997901916504],[1.0000115633010864,3.1400001049041748,0.99699997901916504],[1.0030022859573364,3.1400001049041748,0.99699997901916504],[0.88821989297866821,3.1400001049041748,0.99699997901916504],[1.6777999408082104e+22,3.1400001049041748,0.99699997901916504],[1.6777999408082104e+22,3.1399776935577393,0.99699997901916504],[1.6777999408082104e+22,3.1312496662139893,0.99699997901916504],[1.6777999408082104e+22,3.6156246662139893,0.99699997901916504],[1.6777999408082104e+22,4.371022013021617e+24,0.99699997901916504],[1.6777999408082104e+22,4.371022013021617e+24,0.99700027704238892]],
[0,1,2,3,4,5,6,7,8,9]],
#http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=24319
[('d',[3.1415926535897931]),
[[3.1415926535897931],[3.1415926535898255],[3.1415926535958509],[3.1415926544980697],[3.1415927737073592],[3.1413066714124374],[3.1749980776624374],[187.19987697039599],[8.5408832230361244e+194],[8.5408832230361244e+194]],
[0,1,2,3,4,5,6,7,8,8]],
[('d',[1.0,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004]),
[[1.0,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004],[1.0000000000000215,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004],[1.0000000000055922,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004],[1.0000000014462318,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004],[1.0000003739752616,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004],[1.0000966950812187,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004],[1.0249990388312187,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004],[0.002856443435217224,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004],[8.5408832230361244e+194,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004],[8.5408832230361244e+194,3.140000000000033,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004]],
[0,1,2,3,4,5,6,7,8,9]],
[('d',[1.0,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004,5.5]),
[[1.0,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004,5.5],[1.0000000000000215,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004,5.5],[1.0000000000055922,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004,5.5],[1.0000000014462318,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004,5.5],[1.0000003739752616,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004,5.5],[1.0000966950812187,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004,5.5],[1.0249990388312187,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004,5.5],[0.002856443435217224,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004,5.5],[8.5408832230361244e+194,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004,5.5],[8.5408832230361244e+194,3.140000000000033,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004,5.5]],
[0,1,2,3,4,5,6,7,8,9]],
[('d',[1.0,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004,5.5,6.5999999999999996]),
[[1.0,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004,5.5,6.5999999999999996],[1.0000000000000215,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004,5.5,6.5999999999999996],[1.0000000000055922,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004,5.5,6.5999999999999996],[1.0000000014462318,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004,5.5,6.5999999999999996],[1.0000003739752616,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004,5.5,6.5999999999999996],[1.0000966950812187,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004,5.5,6.5999999999999996],[1.0249990388312187,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004,5.5,6.5999999999999996],[0.002856443435217224,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004,5.5,6.5999999999999996],[8.5408832230361244e+194,3.1400000000000001,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004,5.5,6.5999999999999996],[8.5408832230361244e+194,3.140000000000033,0.99734343339999998,1.1000000000000001,2.2000000000000002,3.2999999999999998,4.4000000000000004,5.5,6.5999999999999996]],
[0,1,2,3,4,5,6,7,8,9]],
]
#Cases working correctly under IronPython
temp_readinto_name_template = os.path.join(self.temporary_dir, "_fileio__FileIO_readinto%d.tmp")
for a_params, a_expected, f_expected in readinto_cases:
f_list = fileio_helper(temp_readinto_name_template)
for i in range(len(f_list)):
a = array.array(*a_params)
ba = bytearray(a.tobytes())
f = f_list[i]
self.assertEqual(f.readinto(a),
f_expected[i])
self.assertEqual(a.tolist(),
a_expected[i])
# try with bytearray as well - https://github.com/IronLanguages/ironpython2/issues/713
f.seek(0)
self.assertEqual(f.readinto(ba), f_expected[i])
self.assertEqual(ba, a.tobytes())
#cleanup
for f in f_list:
f.close()
for i in range(len(f_list)):
try:
os.remove(temp_readinto_name_template % i)
except:
pass
run_test(__name__)
| 52.08296 | 1,616 | 0.513023 | 2,788 | 23,229 | 4.196915 | 0.094692 | 0.020169 | 0.026664 | 0.031108 | 0.784634 | 0.75908 | 0.678404 | 0.662764 | 0.631826 | 0.602769 | 0 | 0.507379 | 0.288217 | 23,229 | 445 | 1,617 | 52.2 | 0.200315 | 0.060786 | 0 | 0.354478 | 0 | 0 | 0.015946 | 0.001424 | 0 | 0 | 0 | 0.069663 | 0.018657 | 1 | 0.130597 | false | 0.115672 | 0.029851 | 0.003731 | 0.171642 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
07dc4a38611951d34f305454ea251d7d2e995f0f | 4,975 | py | Python | vis_graph/hw1/layred_tree_draw.py | Stevel705/mipt | c28e15d0e926a3386e5909d19a0c2de791441aa3 | [
"MIT"
] | null | null | null | vis_graph/hw1/layred_tree_draw.py | Stevel705/mipt | c28e15d0e926a3386e5909d19a0c2de791441aa3 | [
"MIT"
] | null | null | null | vis_graph/hw1/layred_tree_draw.py | Stevel705/mipt | c28e15d0e926a3386e5909d19a0c2de791441aa3 | [
"MIT"
] | null | null | null | import matplotlib
matplotlib.use('Agg')
from graphics import *
scale = 28
maxy = 300
def buid_tree(nodes):
build_tree_recursive(nodes, 0, 0)
win = GraphWin("Окно для графики", 600, 600)
draw(nodes, 0, 0, win)
win.getMouse()
win.close()
def draw(nodes, node_id, prev_id, win):
if nodes[node_id]['nodes'].__len__() == 1:
return
for n in nodes[node_id]['nodes']:
if n != prev_id:
obj = Line(Point(nodes[node_id]['x']*scale, maxy-nodes[node_id]['y']*scale), Point(nodes[n]['x']*scale, maxy-nodes[n]['y']*scale))
obj.setOutline("blue")
obj.draw(win)
obj = Circle(Point(nodes[node_id]['x']*scale, maxy-nodes[node_id]['y']*scale), 2)
obj.draw(win)
obj = Circle(Point(nodes[n]['x'] * scale, maxy-nodes[n]['y'] * scale), 2)
obj.draw(win)
draw(nodes, n, node_id, win)
def build_tree_recursive(nodes, node_id, prev_id):
if nodes[node_id]['nodes'].__len__() == 1:
nodes[node_id]['x'] = 0
nodes[node_id]['y'] = 0
return
for n in nodes[node_id]['nodes']:
if n != prev_id:
build_tree_recursive(nodes, n, node_id)
offset = 0
maxx = 0
sum = 0
count = 0
child_y = 0
for n in nodes[node_id]['nodes']:
if n != prev_id:
maxx = move_tree(nodes, n, node_id, offset, maxx)
offset = maxx + offset + 2
child_y = max(nodes[n]['y'], child_y)
count +=1
sum += nodes[n]['x']
nodes[node_id]['x'] = int(sum/count)
nodes[node_id]['y'] = child_y + 1
x = 0
def move_tree(nodes, node_id, prev_id, offset, maxx):
nodes[node_id]['x'] += offset
maxx = max(nodes[node_id]['x'], maxx)
if nodes[node_id]['nodes'].__len__() == 1:
return maxx
for n in nodes[node_id]['nodes']:
if n != prev_id:
maxx = max(maxx, move_tree(nodes, n, node_id, offset, maxx))
return maxx
def main():
tree_str = """0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0,
1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,
0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 1, 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, 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, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0,
0, 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,
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 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, 1, 0, 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, 1, 0, 1, 1, 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, 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, 1, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
"""
tree_rows = tree_str.split('\n')
nodes = []
for tree_row in tree_rows:
node = []
for k, v in enumerate(tree_row.split(',')):
try:
val = int(v)
except ValueError:
val = 0
if val == 1:
node.append(k)
nodes.append({'nodes' : node})
buid_tree(nodes)
if __name__ == "__main__":
main() | 42.521368 | 142 | 0.429749 | 1,192 | 4,975 | 1.733221 | 0.056208 | 0.71152 | 1.000484 | 1.250726 | 0.673766 | 0.640368 | 0.63456 | 0.605518 | 0.581317 | 0.550339 | 0 | 0.259193 | 0.322211 | 4,975 | 117 | 143 | 42.521368 | 0.353499 | 0 | 0 | 0.235294 | 0 | 0.284314 | 0.530949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04902 | false | 0 | 0.019608 | 0 | 0.107843 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
07fde303a4e3cd0db35ccd171fd1cee9e7416072 | 9,406 | py | Python | models/SEED/MSMDAER.py | pwjworks/emoiton_TL-GNNs | a16d2b04ae22e34011bdeacbff2a054388e6ea96 | [
"MIT"
] | null | null | null | models/SEED/MSMDAER.py | pwjworks/emoiton_TL-GNNs | a16d2b04ae22e34011bdeacbff2a054388e6ea96 | [
"MIT"
] | null | null | null | models/SEED/MSMDAER.py | pwjworks/emoiton_TL-GNNs | a16d2b04ae22e34011bdeacbff2a054388e6ea96 | [
"MIT"
] | null | null | null | import torch.nn as nn
import torch.nn.functional as F
import torch
import numpy as np
class CFE(nn.Module):
"""
Common Feature Extractor
"""
def __init__(self):
super(CFE, self).__init__()
self.module = nn.Sequential(
nn.Linear(310, 256),
# nn.BatchNorm1d(256, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True),
nn.LeakyReLU(negative_slope=0.01, inplace=True),
nn.Linear(256, 128),
# nn.BatchNorm1d(128, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True),
nn.LeakyReLU(negative_slope=0.01, inplace=True),
nn.Linear(128, 64),
# nn.BatchNorm1d(64, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True),
nn.LeakyReLU(negative_slope=0.01, inplace=True),
)
def forward(self, x):
x = self.module(x)
return x
def pretrained_CFE(pretrained=False):
model = CFE()
if pretrained:
pass
return model
class pre_trained_MLP(nn.Module):
def __init__(self):
super(pre_trained_MLP, self).__init__()
self.module = nn.Sequential(
nn.Linear(310, 256),
nn.BatchNorm1d(256, eps=1e-05, momentum=0.1,
affine=True, track_running_stats=True),
nn.LeakyReLU(negative_slope=0.01, inplace=True),
nn.Linear(256, 128),
nn.LeakyReLU(negative_slope=0.01, inplace=True),
nn.Linear(128, 64),
nn.LeakyReLU(negative_slope=0.01, inplace=True),
nn.Linear(64, 4)
)
def forward(self, x):
x = self.module(x)
return x
class DSFE(nn.Module):
"""
domain specify feature extractor
"""
def __init__(self):
super(DSFE, self).__init__()
self.module = nn.Sequential(
nn.Linear(64, 32),
# nn.ReLU(inplace=True),
nn.BatchNorm1d(32, eps=1e-05, momentum=0.1,
affine=True, track_running_stats=True),
nn.LeakyReLU(negative_slope=0.01, inplace=True),
# nn.LeakyReLU(negative_slope=0.01, inplace=True),
)
def forward(self, x):
x = self.module(x)
return x
class MSMDAERNet_tsne(nn.Module):
def __init__(self, pretrained=False, number_of_source=14, number_of_category=4):
super(MSMDAERNet_tsne, self).__init__()
self.sharedNet = pretrained_CFE(pretrained=pretrained)
# for i in range(1, number_of_source):
# exec('self.DSFE' + str(i) + '=DSFE()')
# exec('self.cls_fc_DSC' + str(i) + '=nn.Linear(32,' + str(number_of_category) + ')')
for i in range(number_of_source):
exec('self.DSFE' + str(i) + '=DSFE()')
exec('self.cls_fc_DSC' + str(i) +
'=nn.Linear(32,' + str(number_of_category) + ')')
def forward(self, data_src, number_of_source, data_tgt=0, label_src=0, mark=0):
'''
description: take one source data and the target data in every forward operation.
the mmd loss is calculated between the source data and the target data (both after the DSFE)
the discrepency loss is calculated between all the classifiers' results (test on the target data)
the cls loss is calculated between the ground truth label and the prediction of the mark-th classifier
之所以target data每一条线都要过一遍是因为要计算discrepency loss, mmd和cls都只要mark-th那条线就行
param {type}:
mark: int, the order of the current source
data_src: take one source data each time
number_of_source: int
label_Src: corresponding label
data_tgt: target data
return {type}
'''
mmd_loss = 0
disc_loss = 0
data_tgt_DSFE = []
if self.training == True:
# common feature extractor
data_src_CFE = self.sharedNet(data_src)
data_tgt_CFE = self.sharedNet(data_tgt)
# Each domian specific feature extractor
# to extract the domain specific feature of target data
for i in range(number_of_source):
DSFE_name = 'self.DSFE' + str(i)
data_tgt_DSFE_i = eval(DSFE_name)(data_tgt_CFE)
data_tgt_DSFE.append(data_tgt_DSFE_i)
# Use the specific feature extractor
# to extract the source data, and calculate the mmd loss
DSFE_name = 'self.DSFE' + str(mark)
data_src_DSFE = eval(DSFE_name)(data_src_CFE)
# mmd_loss += utils.mmd(data_src_DSFE, data_tgt_DSFE[mark])
mmd_loss += mmd_linear(data_src_DSFE, data_tgt_DSFE[mark])
# discrepency loss
for i in range(len(data_tgt_DSFE)):
if i != mark:
disc_loss += torch.mean(torch.abs(
F.softmax(data_tgt_DSFE[mark], dim=1) -
F.softmax(data_tgt_DSFE[i], dim=1)
))
# domain specific classifier and cls_loss
DSC_name = 'self.cls_fc_DSC' + str(mark)
pred_src = eval(DSC_name)(data_src_DSFE)
cls_loss = F.nll_loss(F.log_softmax(
pred_src, dim=1), label_src.squeeze())
return cls_loss, mmd_loss, disc_loss
else:
data_CFE = self.sharedNet(data_src)
pred = []
feature_DSFE = []
for i in range(number_of_source):
DSFE_name = 'self.DSFE' + str(i)
DSC_name = 'self.cls_fc_DSC' + str(i)
feature_DSFE_i = eval(DSFE_name)(data_CFE)
feature_DSFE.append(feature_DSFE_i)
pred.append(eval(DSC_name)(feature_DSFE_i))
return pred, feature_DSFE
class MSMDAERNet(nn.Module):
def __init__(self, pretrained=False, number_of_source=15, number_of_category=4):
super(MSMDAERNet, self).__init__()
self.sharedNet = pretrained_CFE(pretrained=pretrained)
# for i in range(1, number_of_source):
# exec('self.DSFE' + str(i) + '=DSFE()')
# exec('self.cls_fc_DSC' + str(i) + '=nn.Linear(32,' + str(number_of_category) + ')')
for i in range(number_of_source):
exec('self.DSFE' + str(i) + '=DSFE()')
exec('self.cls_fc_DSC' + str(i) +
'=nn.Linear(32,' + str(number_of_category) + ')')
def forward(self, data_src, number_of_source, data_tgt=0, label_src=0, mark=0):
'''
description: take one source data and the target data in every forward operation.
the mmd loss is calculated between the source data and the target data (both after the DSFE)
the discrepency loss is calculated between all the classifiers' results (test on the target data)
the cls loss is calculated between the ground truth label and the prediction of the mark-th classifier
之所以target data每一条线都要过一遍是因为要计算discrepency loss, mmd和cls都只要mark-th那条线就行
param {type}:
mark: int, the order of the current source
data_src: take one source data each time
number_of_source: int
label_Src: corresponding label
data_tgt: target data
return {type}
'''
mmd_loss = 0
disc_loss = 0
data_tgt_DSFE = []
if self.training == True:
# common feature extractor
data_src_CFE = self.sharedNet(data_src)
data_tgt_CFE = self.sharedNet(data_tgt)
# Each domian specific feature extractor
# to extract the domain specific feature of target data
for i in range(number_of_source):
DSFE_name = 'self.DSFE' + str(i)
data_tgt_DSFE_i = eval(DSFE_name)(data_tgt_CFE)
data_tgt_DSFE.append(data_tgt_DSFE_i)
# Use the specific feature extractor
# to extract the source data, and calculate the mmd loss
DSFE_name = 'self.DSFE' + str(mark)
data_src_DSFE = eval(DSFE_name)(data_src_CFE)
# mmd_loss += utils.mmd(data_src_DSFE, data_tgt_DSFE[mark])
mmd_loss += mmd_linear(data_src_DSFE, data_tgt_DSFE[mark])
# discrepency loss
for i in range(len(data_tgt_DSFE)):
if i != mark:
disc_loss += torch.mean(torch.abs(
F.softmax(data_tgt_DSFE[mark], dim=1) -
F.softmax(data_tgt_DSFE[i], dim=1)
))
# domain specific classifier and cls_loss
DSC_name = 'self.cls_fc_DSC' + str(mark)
pred_src = eval(DSC_name)(data_src_DSFE)
cls_loss = F.nll_loss(F.log_softmax(
pred_src, dim=1), label_src.squeeze())
return cls_loss, mmd_loss, disc_loss
else:
data_CFE = self.sharedNet(data_src)
pred = []
for i in range(number_of_source):
DSFE_name = 'self.DSFE' + str(i)
DSC_name = 'self.cls_fc_DSC' + str(i)
feature_DSFE_i = eval(DSFE_name)(data_CFE)
pred.append(eval(DSC_name)(feature_DSFE_i))
return pred
def mmd_linear(f_of_X, f_of_Y):
delta = f_of_X - f_of_Y
loss = torch.mean(torch.mm(delta, torch.transpose(delta, 0, 1)))
return loss
| 40.718615 | 114 | 0.585158 | 1,233 | 9,406 | 4.227899 | 0.117599 | 0.037598 | 0.037982 | 0.021101 | 0.913294 | 0.909649 | 0.882026 | 0.882026 | 0.874736 | 0.874736 | 0 | 0.02207 | 0.315969 | 9,406 | 230 | 115 | 40.895652 | 0.788157 | 0.287689 | 0 | 0.746479 | 0 | 0 | 0.032082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084507 | false | 0.007042 | 0.028169 | 0 | 0.211268 | 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 |
ed3efd173631ccbd76c646db3df12b6681678386 | 12,409 | py | Python | venv/lib/python3.8/site-packages/spaceone/api/monitoring/v1/maintenance_window_pb2_grpc.py | choonho/plugin-prometheus-mon-webhook | afa7d65d12715fd0480fb4f92a9c62da2d6128e0 | [
"Apache-2.0"
] | null | null | null | venv/lib/python3.8/site-packages/spaceone/api/monitoring/v1/maintenance_window_pb2_grpc.py | choonho/plugin-prometheus-mon-webhook | afa7d65d12715fd0480fb4f92a9c62da2d6128e0 | [
"Apache-2.0"
] | null | null | null | venv/lib/python3.8/site-packages/spaceone/api/monitoring/v1/maintenance_window_pb2_grpc.py | choonho/plugin-prometheus-mon-webhook | afa7d65d12715fd0480fb4f92a9c62da2d6128e0 | [
"Apache-2.0"
] | null | null | null | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
from spaceone.api.monitoring.v1 import maintenance_window_pb2 as spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2
class MaintenanceWindowStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.create = channel.unary_unary(
'/spaceone.api.monitoring.v1.MaintenanceWindow/create',
request_serializer=spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.CreateMaintenanceWindowRequest.SerializeToString,
response_deserializer=spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowInfo.FromString,
)
self.update = channel.unary_unary(
'/spaceone.api.monitoring.v1.MaintenanceWindow/update',
request_serializer=spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.UpdateMaintenanceWindowRequest.SerializeToString,
response_deserializer=spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowInfo.FromString,
)
self.close = channel.unary_unary(
'/spaceone.api.monitoring.v1.MaintenanceWindow/close',
request_serializer=spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowRequest.SerializeToString,
response_deserializer=spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowInfo.FromString,
)
self.get = channel.unary_unary(
'/spaceone.api.monitoring.v1.MaintenanceWindow/get',
request_serializer=spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.GetMaintenanceWindowRequest.SerializeToString,
response_deserializer=spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowInfo.FromString,
)
self.list = channel.unary_unary(
'/spaceone.api.monitoring.v1.MaintenanceWindow/list',
request_serializer=spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowQuery.SerializeToString,
response_deserializer=spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowsInfo.FromString,
)
self.stat = channel.unary_unary(
'/spaceone.api.monitoring.v1.MaintenanceWindow/stat',
request_serializer=spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowStatQuery.SerializeToString,
response_deserializer=google_dot_protobuf_dot_struct__pb2.Struct.FromString,
)
class MaintenanceWindowServicer(object):
"""Missing associated documentation comment in .proto file."""
def create(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def update(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def close(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def get(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def list(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def stat(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_MaintenanceWindowServicer_to_server(servicer, server):
rpc_method_handlers = {
'create': grpc.unary_unary_rpc_method_handler(
servicer.create,
request_deserializer=spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.CreateMaintenanceWindowRequest.FromString,
response_serializer=spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowInfo.SerializeToString,
),
'update': grpc.unary_unary_rpc_method_handler(
servicer.update,
request_deserializer=spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.UpdateMaintenanceWindowRequest.FromString,
response_serializer=spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowInfo.SerializeToString,
),
'close': grpc.unary_unary_rpc_method_handler(
servicer.close,
request_deserializer=spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowRequest.FromString,
response_serializer=spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowInfo.SerializeToString,
),
'get': grpc.unary_unary_rpc_method_handler(
servicer.get,
request_deserializer=spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.GetMaintenanceWindowRequest.FromString,
response_serializer=spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowInfo.SerializeToString,
),
'list': grpc.unary_unary_rpc_method_handler(
servicer.list,
request_deserializer=spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowQuery.FromString,
response_serializer=spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowsInfo.SerializeToString,
),
'stat': grpc.unary_unary_rpc_method_handler(
servicer.stat,
request_deserializer=spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowStatQuery.FromString,
response_serializer=google_dot_protobuf_dot_struct__pb2.Struct.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'spaceone.api.monitoring.v1.MaintenanceWindow', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
# This class is part of an EXPERIMENTAL API.
class MaintenanceWindow(object):
"""Missing associated documentation comment in .proto file."""
@staticmethod
def create(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/spaceone.api.monitoring.v1.MaintenanceWindow/create',
spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.CreateMaintenanceWindowRequest.SerializeToString,
spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowInfo.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def update(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/spaceone.api.monitoring.v1.MaintenanceWindow/update',
spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.UpdateMaintenanceWindowRequest.SerializeToString,
spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowInfo.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def close(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/spaceone.api.monitoring.v1.MaintenanceWindow/close',
spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowRequest.SerializeToString,
spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowInfo.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def get(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/spaceone.api.monitoring.v1.MaintenanceWindow/get',
spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.GetMaintenanceWindowRequest.SerializeToString,
spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowInfo.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def list(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/spaceone.api.monitoring.v1.MaintenanceWindow/list',
spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowQuery.SerializeToString,
spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowsInfo.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def stat(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/spaceone.api.monitoring.v1.MaintenanceWindow/stat',
spaceone_dot_api_dot_monitoring_dot_v1_dot_maintenance__window__pb2.MaintenanceWindowStatQuery.SerializeToString,
google_dot_protobuf_dot_struct__pb2.Struct.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
| 53.257511 | 152 | 0.715448 | 1,225 | 12,409 | 6.778776 | 0.089796 | 0.071652 | 0.084297 | 0.069605 | 0.904624 | 0.899807 | 0.889571 | 0.8579 | 0.800578 | 0.78685 | 0 | 0.00909 | 0.21984 | 12,409 | 232 | 153 | 53.487069 | 0.848673 | 0.059876 | 0 | 0.559585 | 1 | 0 | 0.082528 | 0.056285 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072539 | false | 0 | 0.015544 | 0.031088 | 0.134715 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ed4384aa0bbffe0e0e1db3df396d5f2fbef87826 | 24,327 | py | Python | sdk/python/pulumi_azure/maintenance/assignment_virtual_machine_scale_set.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 109 | 2018-06-18T00:19:44.000Z | 2022-02-20T05:32:57.000Z | sdk/python/pulumi_azure/maintenance/assignment_virtual_machine_scale_set.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 663 | 2018-06-18T21:08:46.000Z | 2022-03-31T20:10:11.000Z | sdk/python/pulumi_azure/maintenance/assignment_virtual_machine_scale_set.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 41 | 2018-07-19T22:37:38.000Z | 2022-03-14T10:56:26.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['AssignmentVirtualMachineScaleSetArgs', 'AssignmentVirtualMachineScaleSet']
@pulumi.input_type
class AssignmentVirtualMachineScaleSetArgs:
def __init__(__self__, *,
maintenance_configuration_id: pulumi.Input[str],
virtual_machine_scale_set_id: pulumi.Input[str],
location: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a AssignmentVirtualMachineScaleSet resource.
:param pulumi.Input[str] maintenance_configuration_id: Specifies the ID of the Maintenance Configuration Resource. Changing this forces a new resource to be created.
:param pulumi.Input[str] virtual_machine_scale_set_id: Specifies the Virtual Machine Scale Set ID to which the Maintenance Configuration will be assigned. Changing this forces a new resource to be created.
:param pulumi.Input[str] location: Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
"""
pulumi.set(__self__, "maintenance_configuration_id", maintenance_configuration_id)
pulumi.set(__self__, "virtual_machine_scale_set_id", virtual_machine_scale_set_id)
if location is not None:
pulumi.set(__self__, "location", location)
@property
@pulumi.getter(name="maintenanceConfigurationId")
def maintenance_configuration_id(self) -> pulumi.Input[str]:
"""
Specifies the ID of the Maintenance Configuration Resource. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "maintenance_configuration_id")
@maintenance_configuration_id.setter
def maintenance_configuration_id(self, value: pulumi.Input[str]):
pulumi.set(self, "maintenance_configuration_id", value)
@property
@pulumi.getter(name="virtualMachineScaleSetId")
def virtual_machine_scale_set_id(self) -> pulumi.Input[str]:
"""
Specifies the Virtual Machine Scale Set ID to which the Maintenance Configuration will be assigned. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "virtual_machine_scale_set_id")
@virtual_machine_scale_set_id.setter
def virtual_machine_scale_set_id(self, value: pulumi.Input[str]):
pulumi.set(self, "virtual_machine_scale_set_id", value)
@property
@pulumi.getter
def location(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "location")
@location.setter
def location(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "location", value)
@pulumi.input_type
class _AssignmentVirtualMachineScaleSetState:
def __init__(__self__, *,
location: Optional[pulumi.Input[str]] = None,
maintenance_configuration_id: Optional[pulumi.Input[str]] = None,
virtual_machine_scale_set_id: Optional[pulumi.Input[str]] = None):
"""
Input properties used for looking up and filtering AssignmentVirtualMachineScaleSet resources.
:param pulumi.Input[str] location: Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
:param pulumi.Input[str] maintenance_configuration_id: Specifies the ID of the Maintenance Configuration Resource. Changing this forces a new resource to be created.
:param pulumi.Input[str] virtual_machine_scale_set_id: Specifies the Virtual Machine Scale Set ID to which the Maintenance Configuration will be assigned. Changing this forces a new resource to be created.
"""
if location is not None:
pulumi.set(__self__, "location", location)
if maintenance_configuration_id is not None:
pulumi.set(__self__, "maintenance_configuration_id", maintenance_configuration_id)
if virtual_machine_scale_set_id is not None:
pulumi.set(__self__, "virtual_machine_scale_set_id", virtual_machine_scale_set_id)
@property
@pulumi.getter
def location(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "location")
@location.setter
def location(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "location", value)
@property
@pulumi.getter(name="maintenanceConfigurationId")
def maintenance_configuration_id(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the ID of the Maintenance Configuration Resource. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "maintenance_configuration_id")
@maintenance_configuration_id.setter
def maintenance_configuration_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "maintenance_configuration_id", value)
@property
@pulumi.getter(name="virtualMachineScaleSetId")
def virtual_machine_scale_set_id(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the Virtual Machine Scale Set ID to which the Maintenance Configuration will be assigned. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "virtual_machine_scale_set_id")
@virtual_machine_scale_set_id.setter
def virtual_machine_scale_set_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "virtual_machine_scale_set_id", value)
class AssignmentVirtualMachineScaleSet(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
location: Optional[pulumi.Input[str]] = None,
maintenance_configuration_id: Optional[pulumi.Input[str]] = None,
virtual_machine_scale_set_id: Optional[pulumi.Input[str]] = None,
__props__=None):
"""
Manages a maintenance assignment to a virtual machine scale set.
## Example Usage
```python
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_virtual_network = azure.network.VirtualNetwork("exampleVirtualNetwork",
address_spaces=["10.0.0.0/16"],
location=example_resource_group.location,
resource_group_name=example_resource_group.name)
example_subnet = azure.network.Subnet("exampleSubnet",
resource_group_name=example_resource_group.name,
virtual_network_name=example_virtual_network.name,
address_prefixes=["10.0.2.0/24"])
example_public_ip = azure.network.PublicIp("examplePublicIp",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
allocation_method="Static")
example_load_balancer = azure.lb.LoadBalancer("exampleLoadBalancer",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
frontend_ip_configurations=[azure.lb.LoadBalancerFrontendIpConfigurationArgs(
name="internal",
public_ip_address_id=azurerm_public_ip["test"]["id"],
)])
example_backend_address_pool = azure.lb.BackendAddressPool("exampleBackendAddressPool",
resource_group_name=example_resource_group.name,
loadbalancer_id=azurerm_lb["test"]["id"])
example_probe = azure.lb.Probe("exampleProbe",
resource_group_name=example_resource_group.name,
loadbalancer_id=azurerm_lb["test"]["id"],
port=22,
protocol="Tcp")
example_rule = azure.lb.Rule("exampleRule",
resource_group_name=example_resource_group.name,
loadbalancer_id=azurerm_lb["test"]["id"],
probe_id=azurerm_lb_probe["test"]["id"],
backend_address_pool_id=azurerm_lb_backend_address_pool["test"]["id"],
frontend_ip_configuration_name="internal",
protocol="Tcp",
frontend_port=22,
backend_port=22)
example_configuration = azure.maintenance.Configuration("exampleConfiguration",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
scope="OSImage",
visibility="Custom",
window=azure.maintenance.ConfigurationWindowArgs(
start_date_time="2021-12-31 00:00",
expiration_date_time="9999-12-31 00:00",
duration="06:00",
time_zone="Pacific Standard Time",
recur_every="1Days",
))
example_linux_virtual_machine_scale_set = azure.compute.LinuxVirtualMachineScaleSet("exampleLinuxVirtualMachineScaleSet",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
sku="Standard_F2",
instances=1,
admin_username="adminuser",
admin_password="P@ssword1234!",
upgrade_mode="Automatic",
health_probe_id=example_probe.id,
disable_password_authentication=False,
source_image_reference=azure.compute.LinuxVirtualMachineScaleSetSourceImageReferenceArgs(
publisher="Canonical",
offer="UbuntuServer",
sku="16.04-LTS",
version="latest",
),
os_disk=azure.compute.LinuxVirtualMachineScaleSetOsDiskArgs(
storage_account_type="Standard_LRS",
caching="ReadWrite",
),
network_interfaces=[azure.compute.LinuxVirtualMachineScaleSetNetworkInterfaceArgs(
name="example",
primary=True,
ip_configurations=[azure.compute.LinuxVirtualMachineScaleSetNetworkInterfaceIpConfigurationArgs(
name="internal",
primary=True,
subnet_id=example_subnet.id,
load_balancer_backend_address_pool_ids=[example_backend_address_pool.id],
)],
)],
automatic_os_upgrade_policy=azure.compute.LinuxVirtualMachineScaleSetAutomaticOsUpgradePolicyArgs(
disable_automatic_rollback=True,
enable_automatic_os_upgrade=True,
),
rolling_upgrade_policy=azure.compute.LinuxVirtualMachineScaleSetRollingUpgradePolicyArgs(
max_batch_instance_percent=20,
max_unhealthy_instance_percent=20,
max_unhealthy_upgraded_instance_percent=20,
pause_time_between_batches="PT0S",
),
opts=pulumi.ResourceOptions(depends_on=["azurerm_lb_rule.example"]))
example_assignment_virtual_machine_scale_set = azure.maintenance.AssignmentVirtualMachineScaleSet("exampleAssignmentVirtualMachineScaleSet",
location=example_resource_group.location,
maintenance_configuration_id=example_configuration.id,
virtual_machine_scale_set_id=azurerm_linux_virtual_machine["example"]["id"])
```
## Import
Maintenance Assignment can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:maintenance/assignmentVirtualMachineScaleSet:AssignmentVirtualMachineScaleSet example /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resGroup1/providers/microsoft.compute/virtualMachineScaleSets/vmss1/providers/Microsoft.Maintenance/configurationAssignments/assign1
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] location: Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
:param pulumi.Input[str] maintenance_configuration_id: Specifies the ID of the Maintenance Configuration Resource. Changing this forces a new resource to be created.
:param pulumi.Input[str] virtual_machine_scale_set_id: Specifies the Virtual Machine Scale Set ID to which the Maintenance Configuration will be assigned. Changing this forces a new resource to be created.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: AssignmentVirtualMachineScaleSetArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Manages a maintenance assignment to a virtual machine scale set.
## Example Usage
```python
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_virtual_network = azure.network.VirtualNetwork("exampleVirtualNetwork",
address_spaces=["10.0.0.0/16"],
location=example_resource_group.location,
resource_group_name=example_resource_group.name)
example_subnet = azure.network.Subnet("exampleSubnet",
resource_group_name=example_resource_group.name,
virtual_network_name=example_virtual_network.name,
address_prefixes=["10.0.2.0/24"])
example_public_ip = azure.network.PublicIp("examplePublicIp",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
allocation_method="Static")
example_load_balancer = azure.lb.LoadBalancer("exampleLoadBalancer",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
frontend_ip_configurations=[azure.lb.LoadBalancerFrontendIpConfigurationArgs(
name="internal",
public_ip_address_id=azurerm_public_ip["test"]["id"],
)])
example_backend_address_pool = azure.lb.BackendAddressPool("exampleBackendAddressPool",
resource_group_name=example_resource_group.name,
loadbalancer_id=azurerm_lb["test"]["id"])
example_probe = azure.lb.Probe("exampleProbe",
resource_group_name=example_resource_group.name,
loadbalancer_id=azurerm_lb["test"]["id"],
port=22,
protocol="Tcp")
example_rule = azure.lb.Rule("exampleRule",
resource_group_name=example_resource_group.name,
loadbalancer_id=azurerm_lb["test"]["id"],
probe_id=azurerm_lb_probe["test"]["id"],
backend_address_pool_id=azurerm_lb_backend_address_pool["test"]["id"],
frontend_ip_configuration_name="internal",
protocol="Tcp",
frontend_port=22,
backend_port=22)
example_configuration = azure.maintenance.Configuration("exampleConfiguration",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
scope="OSImage",
visibility="Custom",
window=azure.maintenance.ConfigurationWindowArgs(
start_date_time="2021-12-31 00:00",
expiration_date_time="9999-12-31 00:00",
duration="06:00",
time_zone="Pacific Standard Time",
recur_every="1Days",
))
example_linux_virtual_machine_scale_set = azure.compute.LinuxVirtualMachineScaleSet("exampleLinuxVirtualMachineScaleSet",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
sku="Standard_F2",
instances=1,
admin_username="adminuser",
admin_password="P@ssword1234!",
upgrade_mode="Automatic",
health_probe_id=example_probe.id,
disable_password_authentication=False,
source_image_reference=azure.compute.LinuxVirtualMachineScaleSetSourceImageReferenceArgs(
publisher="Canonical",
offer="UbuntuServer",
sku="16.04-LTS",
version="latest",
),
os_disk=azure.compute.LinuxVirtualMachineScaleSetOsDiskArgs(
storage_account_type="Standard_LRS",
caching="ReadWrite",
),
network_interfaces=[azure.compute.LinuxVirtualMachineScaleSetNetworkInterfaceArgs(
name="example",
primary=True,
ip_configurations=[azure.compute.LinuxVirtualMachineScaleSetNetworkInterfaceIpConfigurationArgs(
name="internal",
primary=True,
subnet_id=example_subnet.id,
load_balancer_backend_address_pool_ids=[example_backend_address_pool.id],
)],
)],
automatic_os_upgrade_policy=azure.compute.LinuxVirtualMachineScaleSetAutomaticOsUpgradePolicyArgs(
disable_automatic_rollback=True,
enable_automatic_os_upgrade=True,
),
rolling_upgrade_policy=azure.compute.LinuxVirtualMachineScaleSetRollingUpgradePolicyArgs(
max_batch_instance_percent=20,
max_unhealthy_instance_percent=20,
max_unhealthy_upgraded_instance_percent=20,
pause_time_between_batches="PT0S",
),
opts=pulumi.ResourceOptions(depends_on=["azurerm_lb_rule.example"]))
example_assignment_virtual_machine_scale_set = azure.maintenance.AssignmentVirtualMachineScaleSet("exampleAssignmentVirtualMachineScaleSet",
location=example_resource_group.location,
maintenance_configuration_id=example_configuration.id,
virtual_machine_scale_set_id=azurerm_linux_virtual_machine["example"]["id"])
```
## Import
Maintenance Assignment can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:maintenance/assignmentVirtualMachineScaleSet:AssignmentVirtualMachineScaleSet example /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resGroup1/providers/microsoft.compute/virtualMachineScaleSets/vmss1/providers/Microsoft.Maintenance/configurationAssignments/assign1
```
:param str resource_name: The name of the resource.
:param AssignmentVirtualMachineScaleSetArgs 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(AssignmentVirtualMachineScaleSetArgs, 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,
location: Optional[pulumi.Input[str]] = None,
maintenance_configuration_id: Optional[pulumi.Input[str]] = None,
virtual_machine_scale_set_id: Optional[pulumi.Input[str]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = AssignmentVirtualMachineScaleSetArgs.__new__(AssignmentVirtualMachineScaleSetArgs)
__props__.__dict__["location"] = location
if maintenance_configuration_id is None and not opts.urn:
raise TypeError("Missing required property 'maintenance_configuration_id'")
__props__.__dict__["maintenance_configuration_id"] = maintenance_configuration_id
if virtual_machine_scale_set_id is None and not opts.urn:
raise TypeError("Missing required property 'virtual_machine_scale_set_id'")
__props__.__dict__["virtual_machine_scale_set_id"] = virtual_machine_scale_set_id
super(AssignmentVirtualMachineScaleSet, __self__).__init__(
'azure:maintenance/assignmentVirtualMachineScaleSet:AssignmentVirtualMachineScaleSet',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
location: Optional[pulumi.Input[str]] = None,
maintenance_configuration_id: Optional[pulumi.Input[str]] = None,
virtual_machine_scale_set_id: Optional[pulumi.Input[str]] = None) -> 'AssignmentVirtualMachineScaleSet':
"""
Get an existing AssignmentVirtualMachineScaleSet resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] location: Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
:param pulumi.Input[str] maintenance_configuration_id: Specifies the ID of the Maintenance Configuration Resource. Changing this forces a new resource to be created.
:param pulumi.Input[str] virtual_machine_scale_set_id: Specifies the Virtual Machine Scale Set ID to which the Maintenance Configuration will be assigned. Changing this forces a new resource to be created.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _AssignmentVirtualMachineScaleSetState.__new__(_AssignmentVirtualMachineScaleSetState)
__props__.__dict__["location"] = location
__props__.__dict__["maintenance_configuration_id"] = maintenance_configuration_id
__props__.__dict__["virtual_machine_scale_set_id"] = virtual_machine_scale_set_id
return AssignmentVirtualMachineScaleSet(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter
def location(self) -> pulumi.Output[str]:
"""
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "location")
@property
@pulumi.getter(name="maintenanceConfigurationId")
def maintenance_configuration_id(self) -> pulumi.Output[str]:
"""
Specifies the ID of the Maintenance Configuration Resource. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "maintenance_configuration_id")
@property
@pulumi.getter(name="virtualMachineScaleSetId")
def virtual_machine_scale_set_id(self) -> pulumi.Output[str]:
"""
Specifies the Virtual Machine Scale Set ID to which the Maintenance Configuration will be assigned. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "virtual_machine_scale_set_id")
| 52.428879 | 316 | 0.686069 | 2,515 | 24,327 | 6.332008 | 0.12008 | 0.075353 | 0.056075 | 0.064929 | 0.870644 | 0.858399 | 0.853312 | 0.842198 | 0.831334 | 0.826436 | 0 | 0.010906 | 0.234883 | 24,327 | 463 | 317 | 52.542117 | 0.844678 | 0.580918 | 0 | 0.582192 | 1 | 0 | 0.146572 | 0.111609 | 0 | 0 | 0 | 0 | 0 | 1 | 0.150685 | false | 0.006849 | 0.034247 | 0 | 0.273973 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ed7d6487ebed5bc5262494879aeda6adc3452077 | 250,910 | py | Python | spacy/lang/pl/tag_map.py | jabortell/spaCy | 89fc7360c0896c391cc1826afd1f8613754d85bd | [
"MIT"
] | 10 | 2021-05-31T07:18:08.000Z | 2022-03-19T09:20:11.000Z | spacy/lang/pl/tag_map.py | jabortell/spaCy | 89fc7360c0896c391cc1826afd1f8613754d85bd | [
"MIT"
] | 2 | 2020-08-29T16:11:36.000Z | 2020-08-29T18:53:02.000Z | spacy/lang/pl/tag_map.py | jabortell/spaCy | 89fc7360c0896c391cc1826afd1f8613754d85bd | [
"MIT"
] | 2 | 2020-02-15T18:33:35.000Z | 2022-02-13T14:11:41.000Z | # coding: utf8
from __future__ import unicode_literals
from ...symbols import (
POS,
ADJ,
ADP,
ADV,
AUX,
CCONJ,
DET,
INTJ,
NOUN,
NUM,
PART,
PRON,
PROPN,
PUNCT,
SCONJ,
VERB,
X,
)
# fmt: off
TAG_MAP = {
"adja": {POS: ADJ},
"adjc": {POS: ADJ},
"adjp": {POS: ADJ, "PrepCase": "pre"},
"adj:pl:acc:m1.p1:com": {POS: ADJ, "Number": "plur", "Case": "acc", "Gender": "masc", "Degree": "cmp"},
"adj:pl:acc:m1.p1:pos": {POS: ADJ, "Number": "plur", "Case": "acc", "Gender": "masc", "Degree": "pos"},
"adj:pl:acc:m1.p1:sup": {POS: ADJ, "Number": "plur", "Case": "acc", "Gender": "masc", "Degree": "sup"},
"adj:pl:acc:m2.m3.f.n1.n2.p2.p3:com": {POS: ADJ, "Number": "plur", "Case": "acc", "Gender": "masc|fem|neut", "Degree": "cmp"},
"adj:pl:acc:m2.m3.f.n1.n2.p2.p3:pos": {POS: ADJ, "Number": "plur", "Case": "acc", "Gender": "masc|fem|neut", "Degree": "pos"},
"adj:pl:acc:m2.m3.f.n1.n2.p2.p3:sup": {POS: ADJ, "Number": "plur", "Case": "acc", "Gender": "masc|fem|neut", "Degree": "sup"},
"adj:pl:dat:m1.m2.m3.f.n1.n2.p1.p2.p3:com": {POS: ADJ, "Number": "plur", "Case": "dat", "Gender": "masc|fem|neut", "Degree": "cmp"},
"adj:pl:dat:m1.m2.m3.f.n1.n2.p1.p2.p3:pos": {POS: ADJ, "Number": "plur", "Case": "dat", "Gender": "masc|fem|neut", "Degree": "pos"},
"adj:pl:dat:m1.m2.m3.f.n1.n2.p1.p2.p3:sup": {POS: ADJ, "Number": "plur", "Case": "dat", "Gender": "masc|fem|neut", "Degree": "sup"},
"adj:pl:gen:m1.m2.m3.f.n1.n2.p1.p2.p3:com": {POS: ADJ, "Number": "plur", "Case": "gen", "Gender": "masc|fem|neut", "Degree": "cmp"},
"adj:pl:gen:m1.m2.m3.f.n1.n2.p1.p2.p3:pos": {POS: ADJ, "Number": "plur", "Case": "gen", "Gender": "masc|fem|neut", "Degree": "pos"},
"adj:pl:gen:m1.m2.m3.f.n1.n2.p1.p2.p3:sup": {POS: ADJ, "Number": "plur", "Case": "gen", "Gender": "masc|fem|neut", "Degree": "sup"},
"adj:pl:inst:m1.m2.m3.f.n1.n2.p1.p2.p3:com": {POS: ADJ, "Number": "plur", "Case": "ins", "Gender": "masc|fem|neut", "Degree": "cmp"},
"adj:pl:inst:m1.m2.m3.f.n1.n2.p1.p2.p3:pos": {POS: ADJ, "Number": "plur", "Case": "ins", "Gender": "masc|fem|neut", "Degree": "pos"},
"adj:pl:inst:m1.m2.m3.f.n1.n2.p1.p2.p3:sup": {POS: ADJ, "Number": "plur", "Case": "ins", "Gender": "masc|fem|neut", "Degree": "sup"},
"adj:pl:loc:m1.m2.m3.f.n1.n2.p1.p2.p3:com": {POS: ADJ, "Number": "plur", "Case": "loc", "Gender": "masc|fem|neut", "Degree": "cmp"},
"adj:pl:loc:m1.m2.m3.f.n1.n2.p1.p2.p3:pos": {POS: ADJ, "Number": "plur", "Case": "loc", "Gender": "masc|fem|neut", "Degree": "pos"},
"adj:pl:loc:m1.m2.m3.f.n1.n2.p1.p2.p3:sup": {POS: ADJ, "Number": "plur", "Case": "loc", "Gender": "masc|fem|neut", "Degree": "sup"},
"adj:pl:nom:m1.p1:pos": {POS: ADJ, "Number": "plur", "Case": "nom", "Gender": "masc", "Degree": "pos"},
"adj:pl:nom:m2.m3.f.n1.n2.p2.p3:pos": {POS: ADJ, "Number": "plur", "Case": "nom", "Gender": "masc|fem|neut", "Degree": "pos"},
"adj:pl:nom.voc:m1.p1:com": {POS: ADJ, "Number": "plur", "Case": "nom|voc", "Gender": "masc", "Degree": "cmp"},
"adj:pl:nom.voc:m1.p1:pos": {POS: ADJ, "Number": "plur", "Case": "nom|voc", "Gender": "masc", "Degree": "pos"},
"adj:pl:nom.voc:m1.p1:sup": {POS: ADJ, "Number": "plur", "Case": "nom|voc", "Gender": "masc", "Degree": "sup"},
"adj:pl:nom.voc:m2.m3.f.n1.n2.p2.p3:com": {POS: ADJ, "Number": "plur", "Case": "nom|voc", "Gender": "masc|fem|neut", "Degree": "cmp"},
"adj:pl:nom.voc:m2.m3.f.n1.n2.p2.p3:pos": {POS: ADJ, "Number": "plur", "Case": "nom|voc", "Gender": "masc|fem|neut", "Degree": "pos"},
"adj:pl:nom.voc:m2.m3.f.n1.n2.p2.p3:sup": {POS: ADJ, "Number": "plur", "Case": "nom|voc", "Gender": "masc|fem|neut", "Degree": "sup"},
"adj:sg:acc:f:com": {POS: ADJ, "Number": "sing", "Case": "acc", "Gender": "fem", "Degree": "cmp"},
"adj:sg:acc:f:pos": {POS: ADJ, "Number": "sing", "Case": "acc", "Gender": "fem", "Degree": "pos"},
"adj:sg:acc:f:sup": {POS: ADJ, "Number": "sing", "Case": "acc", "Gender": "fem", "Degree": "sup"},
"adj:sg:acc:m1.m2:com": {POS: ADJ, "Number": "sing", "Case": "acc", "Gender": "Masc", "Animacy": "hum|anim", "Degree": "cmp"},
"adj:sg:acc:m1.m2:pos": {POS: ADJ, "Number": "sing", "Case": "acc", "Gender": "Masc", "Animacy": "hum|anim", "Degree": "pos"},
"adj:sg:acc:m1.m2:sup": {POS: ADJ, "Number": "sing", "Case": "acc", "Gender": "Masc", "Animacy": "hum|anim", "Degree": "sup"},
"adj:sg:acc:m3:com": {POS: ADJ, "Number": "sing", "Case": "acc", "Gender": "masc", "Animacy": "inan", "Degree": "cmp"},
"adj:sg:acc:m3:pos": {POS: ADJ, "Number": "sing", "Case": "acc", "Gender": "masc", "Animacy": "inan", "Degree": "pos"},
"adj:sg:acc:m3:sup": {POS: ADJ, "Number": "sing", "Case": "acc", "Gender": "masc", "Animacy": "inan", "Degree": "sup"},
"adj:sg:acc:n1.n2:com": {POS: ADJ, "Number": "sing", "Case": "acc", "Gender": "neut", "Degree": "cmp"},
"adj:sg:acc:n1.n2:pos": {POS: ADJ, "Number": "sing", "Case": "acc", "Gender": "neut", "Degree": "pos"},
"adj:sg:acc:n1.n2:sup": {POS: ADJ, "Number": "sing", "Case": "acc", "Gender": "neut", "Degree": "sup"},
"adj:sg:dat:f:com": {POS: ADJ, "Number": "sing", "Case": "dat", "Gender": "fem", "Degree": "cmp"},
"adj:sg:dat:f:pos": {POS: ADJ, "Number": "sing", "Case": "dat", "Gender": "fem", "Degree": "pos"},
"adj:sg:dat:f:sup": {POS: ADJ, "Number": "sing", "Case": "dat", "Gender": "fem", "Degree": "sup"},
"adj:sg:dat:m1.m2.m3.n1.n2:com": {POS: ADJ, "Number": "sing", "Case": "dat", "Gender": "masc|neut", "Degree": "cmp"},
"adj:sg:dat:m1.m2.m3.n1.n2:pos": {POS: ADJ, "Number": "sing", "Case": "dat", "Gender": "masc|neut", "Degree": "pos"},
"adj:sg:dat:m1.m2.m3.n1.n2:sup": {POS: ADJ, "Number": "sing", "Case": "dat", "Gender": "masc|neut", "Degree": "sup"},
"adj:sg:gen:f:com": {POS: ADJ, "Number": "sing", "Case": "gen", "Gender": "fem", "Degree": "cmp"},
"adj:sg:gen:f:pos": {POS: ADJ, "Number": "sing", "Case": "gen", "Gender": "fem", "Degree": "pos"},
"adj:sg:gen:f:sup": {POS: ADJ, "Number": "sing", "Case": "gen", "Gender": "fem", "Degree": "sup"},
"adj:sg:gen:m1.m2.m3.n1.n2:com": {POS: ADJ, "Number": "sing", "Case": "gen", "Gender": "masc|neut", "Degree": "cmp"},
"adj:sg:gen:m1.m2.m3.n1.n2:pos": {POS: ADJ, "Number": "sing", "Case": "gen", "Gender": "masc|neut", "Degree": "pos"},
"adj:sg:gen:m1.m2.m3.n1.n2:sup": {POS: ADJ, "Number": "sing", "Case": "gen", "Gender": "masc|neut", "Degree": "sup"},
"adj:sg:inst:f:com": {POS: ADJ, "Number": "sing", "Case": "ins", "Gender": "fem", "Degree": "cmp"},
"adj:sg:inst:f:pos": {POS: ADJ, "Number": "sing", "Case": "ins", "Gender": "fem", "Degree": "pos"},
"adj:sg:inst:f:sup": {POS: ADJ, "Number": "sing", "Case": "ins", "Gender": "fem", "Degree": "sup"},
"adj:sg:inst:m1.m2.m3.n1.n2:com": {POS: ADJ, "Number": "sing", "Case": "ins", "Gender": "masc|neut", "Degree": "cmp"},
"adj:sg:inst:m1.m2.m3.n1.n2:pos": {POS: ADJ, "Number": "sing", "Case": "ins", "Gender": "masc|neut", "Degree": "pos"},
"adj:sg:inst:m1.m2.m3.n1.n2:sup": {POS: ADJ, "Number": "sing", "Case": "ins", "Gender": "masc|neut", "Degree": "sup"},
"adj:sg:loc:f:com": {POS: ADJ, "Number": "sing", "Case": "loc", "Gender": "fem", "Degree": "cmp"},
"adj:sg:loc:f:pos": {POS: ADJ, "Number": "sing", "Case": "loc", "Gender": "fem", "Degree": "pos"},
"adj:sg:loc:f:sup": {POS: ADJ, "Number": "sing", "Case": "loc", "Gender": "fem", "Degree": "sup"},
"adj:sg:loc:m1.m2.m3.n1.n2:com": {POS: ADJ, "Number": "sing", "Case": "loc", "Gender": "masc|neut", "Degree": "cmp"},
"adj:sg:loc:m1.m2.m3.n1.n2:pos": {POS: ADJ, "Number": "sing", "Case": "loc", "Gender": "masc|neut", "Degree": "pos"},
"adj:sg:loc:m1.m2.m3.n1.n2:sup": {POS: ADJ, "Number": "sing", "Case": "loc", "Gender": "masc|neut", "Degree": "sup"},
"adj:sg:nom:f:pos": {POS: ADJ, "Number": "sing", "Case": "nom", "Gender": "fem", "Degree": "pos"},
"adj:sg:nom:m1.m2.m3:pos": {POS: ADJ, "Number": "sing", "Case": "nom", "Gender": "Masc", "Degree": "pos"},
"adj:sg:nom:n1.n2:pos": {POS: ADJ, "Number": "sing", "Case": "nom", "Gender": "neut", "Degree": "pos"},
"adj:sg:nom.voc:f:com": {POS: ADJ, "Number": "sing", "Case": "nom|voc", "Gender": "fem", "Degree": "cmp"},
"adj:sg:nom.voc:f:pos": {POS: ADJ, "Number": "sing", "Case": "nom|voc", "Gender": "fem", "Degree": "pos"},
"adj:sg:nom.voc:f:sup": {POS: ADJ, "Number": "sing", "Case": "nom|voc", "Gender": "fem", "Degree": "sup"},
"adj:sg:nom.voc:m1.m2.m3:com": {POS: ADJ, "Number": "sing", "Case": "nom|voc", "Gender": "Masc", "Degree": "cmp"},
"adj:sg:nom.voc:m1.m2.m3:pos": {POS: ADJ, "Number": "sing", "Case": "nom|voc", "Gender": "Masc", "Degree": "pos"},
"adj:sg:nom.voc:m1.m2.m3:sup": {POS: ADJ, "Number": "sing", "Case": "nom|voc", "Gender": "Masc", "Degree": "sup"},
"adj:sg:nom.voc:n1.n2:com": {POS: ADJ, "Number": "sing", "Case": "nom|voc", "Gender": "neut", "Degree": "cmp"},
"adj:sg:nom.voc:n1.n2:pos": {POS: ADJ, "Number": "sing", "Case": "nom|voc", "Gender": "neut", "Degree": "pos"},
"adj:sg:nom.voc:n1.n2:sup": {POS: ADJ, "Number": "sing", "Case": "nom|voc", "Gender": "neut", "Degree": "sup"},
"adv": {POS: ADV},
"adv:com": {POS: ADV, "Degree": "cmp"},
"adv:pos": {POS: ADV, "Degree": "pos"},
"adv:sup": {POS: ADV, "Degree": "sup"},
"aglt:pl:pri:imperf:nwok": {POS: AUX, "Aspect": "imp", "Mood": "ind", "VerbForm": "fin", "Tense": "pres", "Number": "plur", "Person": "one", "Aspect": "imp", },
"aglt:pl:pri:imperf:wok": {POS: AUX, "Aspect": "imp", "Mood": "ind", "VerbForm": "fin", "Tense": "pres", "Number": "plur", "Person": "one", "Aspect": "imp", },
"aglt:pl:sec:imperf:nwok": {POS: AUX, "Aspect": "imp", "Mood": "ind", "VerbForm": "fin", "Tense": "pres", "Number": "plur", "Person": "two", "Aspect": "imp", },
"aglt:pl:sec:imperf:wok": {POS: AUX, "Aspect": "imp", "Mood": "ind", "VerbForm": "fin", "Tense": "pres", "Number": "plur", "Person": "two", "Aspect": "imp", },
"aglt:sg:pri:imperf:nwok": {POS: AUX, "Aspect": "imp", "Mood": "ind", "VerbForm": "fin", "Tense": "pres", "Number": "sing", "Person": "one", "Aspect": "imp", },
"aglt:sg:pri:imperf:wok": {POS: AUX, "Aspect": "imp", "Mood": "ind", "VerbForm": "fin", "Tense": "pres", "Number": "sing", "Person": "one", "Aspect": "imp", },
"aglt:sg:sec:imperf:nwok": {POS: AUX, "Aspect": "imp", "Mood": "ind", "VerbForm": "fin", "Tense": "pres", "Number": "sing", "Person": "two", "Aspect": "imp", },
"aglt:sg:sec:imperf:wok": {POS: AUX, "Aspect": "imp", "Mood": "ind", "VerbForm": "fin", "Tense": "pres", "Number": "sing", "Person": "two", "Aspect": "imp", },
"bedzie:pl:pri:imperf": {POS: AUX, "Aspect": "imp", "Mood": "ind", "VerbForm": "fin", "Tense": "fut", "Number": "plur", "Person": "one", "Aspect": "imp"},
"bedzie:pl:sec:imperf": {POS: AUX, "Aspect": "imp", "Mood": "ind", "VerbForm": "fin", "Tense": "fut", "Number": "plur", "Person": "two", "Aspect": "imp"},
"bedzie:pl:ter:imperf": {POS: AUX, "Aspect": "imp", "Mood": "ind", "VerbForm": "fin", "Tense": "fut", "Number": "plur", "Person": "three", "Aspect": "imp"},
"bedzie:sg:pri:imperf": {POS: AUX, "Aspect": "imp", "Mood": "ind", "VerbForm": "fin", "Tense": "fut", "Number": "sing", "Person": "one", "Aspect": "imp"},
"bedzie:sg:sec:imperf": {POS: AUX, "Aspect": "imp", "Mood": "ind", "VerbForm": "fin", "Tense": "fut", "Number": "sing", "Person": "two", "Aspect": "imp"},
"bedzie:sg:ter:imperf": {POS: AUX, "Aspect": "imp", "Mood": "ind", "VerbForm": "fin", "Tense": "fut", "Number": "sing", "Person": "three", "Aspect": "imp"},
"burk": {POS: X},
"comp": {POS: SCONJ},
"conj": {POS: CCONJ},
"depr:pl:nom:m2": {POS: NOUN, "Animacy": "anim", "Number": "plur", "Case": "nom", "Gender": "masc", "Animacy": "anim"},
"depr:pl:voc:m2": {POS: NOUN, "Animacy": "anim", "Number": "plur", "Case": "voc", "Gender": "masc", "Animacy": "anim"},
"fin:pl:pri:imperf": {POS: VERB, "VerbForm": "fin", "Tense": "pres", "Mood": "ind", "Number": "plur", "Person": "one", "Aspect": "imp"},
"fin:pl:pri:imperf.perf": {POS: VERB, "VerbForm": "fin", "Tense": "pres", "Mood": "ind", "Number": "plur", "Person": "one", "Aspect": "imp|perf"},
"fin:pl:pri:perf": {POS: VERB, "VerbForm": "fin", "Tense": "pres", "Mood": "ind", "Number": "plur", "Person": "one", "Aspect": "perf"},
"fin:pl:sec:imperf": {POS: VERB, "VerbForm": "fin", "Tense": "pres", "Mood": "ind", "Number": "plur", "Person": "two", "Aspect": "imp"},
"fin:pl:sec:imperf.perf": {POS: VERB, "VerbForm": "fin", "Tense": "pres", "Mood": "ind", "Number": "plur", "Person": "two", "Aspect": "imp|perf"},
"fin:pl:sec:perf": {POS: VERB, "VerbForm": "fin", "Tense": "pres", "Mood": "ind", "Number": "plur", "Person": "two", "Aspect": "perf"},
"fin:pl:ter:imperf": {POS: VERB, "VerbForm": "fin", "Tense": "pres", "Mood": "ind", "Number": "plur", "Person": "three", "Aspect": "imp"},
"fin:pl:ter:imperf.perf": {POS: VERB, "VerbForm": "fin", "Tense": "pres", "Mood": "ind", "Number": "plur", "Person": "three", "Aspect": "imp|perf"},
"fin:pl:ter:perf": {POS: VERB, "VerbForm": "fin", "Tense": "pres", "Mood": "ind", "Number": "plur", "Person": "three", "Aspect": "perf"},
"fin:sg:pri:imperf": {POS: VERB, "VerbForm": "fin", "Tense": "pres", "Mood": "ind", "Number": "sing", "Person": "one", "Aspect": "imp"},
"fin:sg:pri:imperf.perf": {POS: VERB, "VerbForm": "fin", "Tense": "pres", "Mood": "ind", "Number": "sing", "Person": "one", "Aspect": "imp|perf"},
"fin:sg:pri:perf": {POS: VERB, "VerbForm": "fin", "Tense": "pres", "Mood": "ind", "Number": "sing", "Person": "one", "Aspect": "perf"},
"fin:sg:sec:imperf": {POS: VERB, "VerbForm": "fin", "Tense": "pres", "Mood": "ind", "Number": "sing", "Person": "two", "Aspect": "imp"},
"fin:sg:sec:imperf.perf": {POS: VERB, "VerbForm": "fin", "Tense": "pres", "Mood": "ind", "Number": "sing", "Person": "two", "Aspect": "imp|perf"},
"fin:sg:sec:perf": {POS: VERB, "VerbForm": "fin", "Tense": "pres", "Mood": "ind", "Number": "sing", "Person": "two", "Aspect": "perf"},
"fin:sg:ter:imperf": {POS: VERB, "VerbForm": "fin", "Tense": "pres", "Mood": "ind", "Number": "sing", "Person": "three", "Aspect": "imp"},
"fin:sg:ter:imperf.perf": {POS: VERB, "VerbForm": "fin", "Tense": "pres", "Mood": "ind", "Number": "sing", "Person": "three", "Aspect": "imp|perf"},
"fin:sg:ter:perf": {POS: VERB, "VerbForm": "fin", "Tense": "pres", "Mood": "ind", "Number": "sing", "Person": "three", "Aspect": "perf"},
"ger:sg:dat.loc:n2:imperf:aff": {POS: VERB, "Number": "sing", "Case": "dat|loc", "Gender": "neut", "Aspect": "imp", "Polarity": "pos"},
"ger:sg:dat.loc:n2:imperf:neg": {POS: VERB, "Number": "sing", "Case": "dat|loc", "Gender": "neut", "Aspect": "imp", "Polarity": "neg"},
"ger:sg:dat.loc:n2:imperf.perf:aff": {POS: VERB, "Number": "sing", "Case": "dat|loc", "Gender": "neut", "Aspect": "imp|perf", "Polarity": "pos"},
"ger:sg:dat.loc:n2:imperf.perf:neg": {POS: VERB, "Number": "sing", "Case": "dat|loc", "Gender": "neut", "Aspect": "imp|perf", "Polarity": "neg"},
"ger:sg:dat.loc:n2:perf:aff": {POS: VERB, "Number": "sing", "Case": "dat|loc", "Gender": "neut", "Aspect": "perf", "Polarity": "pos"},
"ger:sg:dat.loc:n2:perf:neg": {POS: VERB, "Number": "sing", "Case": "dat|loc", "Gender": "neut", "Aspect": "perf", "Polarity": "neg"},
"ger:sg:gen:n2:imperf:aff": {POS: VERB, "Number": "sing", "Case": "gen", "Gender": "neut", "Aspect": "imp", "Polarity": "pos"},
"ger:sg:gen:n2:imperf:neg": {POS: VERB, "Number": "sing", "Case": "gen", "Gender": "neut", "Aspect": "imp", "Polarity": "neg"},
"ger:sg:gen:n2:imperf.perf:aff": {POS: VERB, "Number": "sing", "Case": "gen", "Gender": "neut", "Aspect": "imp|perf", "Polarity": "pos"},
"ger:sg:gen:n2:imperf.perf:neg": {POS: VERB, "Number": "sing", "Case": "gen", "Gender": "neut", "Aspect": "imp|perf", "Polarity": "neg"},
"ger:sg:gen:n2:perf:aff": {POS: VERB, "Number": "sing", "Case": "gen", "Gender": "neut", "Aspect": "perf", "Polarity": "pos"},
"ger:sg:gen:n2:perf:neg": {POS: VERB, "Number": "sing", "Case": "gen", "Gender": "neut", "Aspect": "perf", "Polarity": "neg"},
"ger:sg:inst:n2:imperf:aff": {POS: VERB, "Number": "sing", "Case": "ins", "Gender": "neut", "Aspect": "imp", "Polarity": "pos"},
"ger:sg:inst:n2:imperf:neg": {POS: VERB, "Number": "sing", "Case": "ins", "Gender": "neut", "Aspect": "imp", "Polarity": "neg"},
"ger:sg:inst:n2:imperf.perf:aff": {POS: VERB, "Number": "sing", "Case": "ins", "Gender": "neut", "Aspect": "imp|perf", "Polarity": "pos"},
"ger:sg:inst:n2:imperf.perf:neg": {POS: VERB, "Number": "sing", "Case": "ins", "Gender": "neut", "Aspect": "imp|perf", "Polarity": "neg"},
"ger:sg:inst:n2:perf:aff": {POS: VERB, "Number": "sing", "Case": "ins", "Gender": "neut", "Aspect": "perf", "Polarity": "pos"},
"ger:sg:inst:n2:perf:neg": {POS: VERB, "Number": "sing", "Case": "ins", "Gender": "neut", "Aspect": "perf", "Polarity": "neg"},
"ger:sg:nom.acc:n2:imperf:aff": {POS: VERB, "Number": "sing", "Case": "nom|acc", "Gender": "neut", "Aspect": "imp", "Polarity": "pos"},
"ger:sg:nom.acc:n2:imperf:neg": {POS: VERB, "Number": "sing", "Case": "nom|acc", "Gender": "neut", "Aspect": "imp", "Polarity": "neg"},
"ger:sg:nom.acc:n2:imperf.perf:aff": {POS: VERB, "Number": "sing", "Case": "nom|acc", "Gender": "neut", "Aspect": "imp|perf", "Polarity": "pos"},
"ger:sg:nom.acc:n2:imperf.perf:neg": {POS: VERB, "Number": "sing", "Case": "nom|acc", "Gender": "neut", "Aspect": "imp|perf", "Polarity": "neg"},
"ger:sg:nom.acc:n2:perf:aff": {POS: VERB, "Number": "sing", "Case": "nom|acc", "Gender": "neut", "Aspect": "perf", "Polarity": "pos"},
"ger:sg:nom.acc:n2:perf:neg": {POS: VERB, "Number": "sing", "Case": "nom|acc", "Gender": "neut", "Aspect": "perf", "Polarity": "neg"},
"imps:imperf": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Aspect": "imp"},
"imps:imperf.perf": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Aspect": "imp|perf"},
"imps:perf": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Aspect": "perf"},
"impt:pl:pri:imperf": {POS: VERB, "Mood": "imp", "VerbForm": "fin", "Number": "plur", "Person": "one", "Aspect": "imp"},
"impt:pl:pri:imperf.perf": {POS: VERB, "Mood": "imp", "VerbForm": "fin", "Number": "plur", "Person": "one", "Aspect": "imp|perf"},
"impt:pl:pri:perf": {POS: VERB, "Mood": "imp", "VerbForm": "fin", "Number": "plur", "Person": "one", "Aspect": "perf"},
"impt:pl:sec:imperf": {POS: VERB, "Mood": "imp", "VerbForm": "fin", "Number": "plur", "Person": "two", "Aspect": "imp"},
"impt:pl:sec:imperf.perf": {POS: VERB, "Mood": "imp", "VerbForm": "fin", "Number": "plur", "Person": "two", "Aspect": "imp|perf"},
"impt:pl:sec:perf": {POS: VERB, "Mood": "imp", "VerbForm": "fin", "Number": "plur", "Person": "two", "Aspect": "perf"},
"impt:sg:sec:imperf": {POS: VERB, "Mood": "imp", "VerbForm": "fin", "Number": "sing", "Person": "two", "Aspect": "imp"},
"impt:sg:sec:imperf.perf": {POS: VERB, "Mood": "imp", "VerbForm": "fin", "Number": "sing", "Person": "two", "Aspect": "imp|perf"},
"impt:sg:sec:perf": {POS: VERB, "Mood": "imp", "VerbForm": "fin", "Number": "sing", "Person": "two", "Aspect": "perf"},
"inf:imperf": {POS: VERB, "VerbForm": "inf", "Aspect": "imp"},
"inf:imperf.perf": {POS: VERB, "VerbForm": "inf", "Aspect": "imp|perf"},
"inf:perf": {POS: VERB, "VerbForm": "inf", "Aspect": "perf"},
"interj": {POS: INTJ},
"num:comp": {POS: NUM},
"num:pl:acc:m1:rec": {POS: NUM, "Number": "plur", "Case": "acc", "Gender": "Masc", "Animacy": "hum"},
"num:pl:dat.loc:n1.p1.p2:congr.rec": {POS: NUM, "Number": "plur", "Case": "dat|loc", "Gender": "neut"},
"num:pl:dat:m1.m2.m3.n2.f:congr": {POS: NUM, "Number": "plur", "Case": "dat", "Gender": "masc|fem|neut"},
"num:pl:gen.dat.inst.loc:m1.m2.m3.f.n1.n2.p1.p2:congr": {POS: NUM, "Number": "plur", "Case": "gen|dat|ins|loc", "Gender": "masc|fem|neut"},
"num:pl:gen.dat.inst.loc:m1.m2.m3.f.n2:congr": {POS: NUM, "Number": "plur", "Case": "gen|dat|ins|loc", "Gender": "masc|fem|neut"},
"num:pl:gen.dat.loc:m1.m2.m3.n2.f:congr": {POS: NUM, "Number": "plur", "Case": "gen|dat|loc", "Gender": "masc|fem|neut"},
"num:pl:gen.loc:m1.m2.m3.f.n1.n2.p1.p2:congr": {POS: NUM, "Number": "plur", "Case": "gen|loc", "Gender": "masc|fem|neut"},
"num:pl:gen.loc:m1.m2.m3.n2.f:congr": {POS: NUM, "Number": "plur", "Case": "gen|loc", "Gender": "masc|fem|neut"},
"num:pl:gen:n1.p1.p2:rec": {POS: NUM, "Number": "plur", "Case": "gen", "Gender": "neut"},
"num:pl:inst:f:congr": {POS: NUM, "Number": "plur", "Case": "ins", "Gender": "fem"},
"num:pl:inst:m1.m2.m3.f.n1.n2.p1.p2:congr": {POS: NUM, "Number": "plur", "Case": "ins", "Gender": "masc|fem|neut"},
"num:pl:inst:m1.m2.m3.f.n2:congr": {POS: NUM, "Number": "plur", "Case": "ins", "Gender": "masc|fem|neut"},
"num:pl:inst:m1.m2.m3.n2:congr": {POS: NUM, "Number": "plur", "Case": "ins", "Gender": "masc|neut"},
"num:pl:inst:m1.m2.m3.n2.f:congr": {POS: NUM, "Number": "plur", "Case": "ins", "Gender": "masc|fem|neut"},
"num:pl:inst:n1.p1.p2:rec": {POS: NUM, "Number": "plur", "Case": "ins", "Gender": "neut"},
"num:pl:nom.acc:m1.m2.m3.f.n1.n2.p1.p2:rec": {POS: NUM, "Number": "plur", "Case": "nom|acc", "Gender": "masc|fem|neut"},
"num:pl:nom.acc.voc:f:congr": {POS: NUM, "Number": "plur", "Case": "nom|acc|voc", "Gender": "fem"},
"num:pl:nom.acc.voc:m1:rec": {POS: NUM, "Number": "plur", "Case": "nom|acc|voc", "Gender": "Masc", "Animacy": "hum"},
"num:pl:nom.acc.voc:m2.m3.f.n1.n2.p1.p2:rec": {POS: NUM, "Number": "plur", "Case": "nom|acc|voc", "Gender": "masc|fem|neut"},
"num:pl:nom.acc.voc:m2.m3.f.n2:rec": {POS: NUM, "Number": "plur", "Case": "nom|acc|voc", "Gender": "masc|fem|neut"},
"num:pl:nom.acc.voc:m2.m3.n2:congr": {POS: NUM, "Number": "plur", "Case": "nom|acc|voc", "Gender": "masc|neut"},
"num:pl:nom.acc.voc:m2.m3.n2.f:congr": {POS: NUM, "Number": "plur", "Case": "nom|acc|voc", "Gender": "masc|fem|neut"},
"num:pl:nom.acc.voc:n1.p1.p2:rec": {POS: NUM, "Number": "plur", "Case": "nom|acc|voc", "Gender": "neut"},
"num:pl:nom.gen.dat.inst.acc.loc.voc:m1.m2.m3.f.n1.n2.p1.p2:rec": {POS: NUM, "Number": "plur", "Gender": "masc|fem|neut"},
"num:pl:nom.voc:m1:congr": {POS: NUM, "Number": "plur", "Case": "nom|voc", "Gender": "Masc", "Animacy": "hum"},
"num:pl:nom.voc:m1:rec": {POS: NUM, "Number": "plur", "Case": "nom|voc", "Gender": "Masc", "Animacy": "hum"},
"num:sg:nom.gen.dat.inst.acc.loc.voc:f:rec": {POS: NUM, "Number": "sing", "Gender": "fem"},
"num:sg:nom.gen.dat.inst.acc.loc.voc:m1.m2.m3.n1.n2:rec": {POS: NUM, "Number": "sing", "Gender": "masc|neut"},
"pact:pl:acc:m1.p1:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "acc", "Gender": "masc", "Aspect": "imp", "Polarity": "pos"},
"pact:pl:acc:m1.p1:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "acc", "Gender": "masc", "Aspect": "imp", "Polarity": "neg"},
"pact:pl:acc:m1.p1:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "acc", "Gender": "masc", "Aspect": "imp|perf", "Polarity": "pos"},
"pact:pl:acc:m1.p1:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "acc", "Gender": "masc", "Aspect": "imp|perf", "Polarity": "neg"},
"pact:pl:dat:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "dat", "Gender": "masc|fem|neut", "Aspect": "imp", "Polarity": "pos"},
"pact:pl:dat:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "dat", "Gender": "masc|fem|neut", "Aspect": "imp", "Polarity": "neg"},
"pact:pl:dat:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "dat", "Gender": "masc|fem|neut", "Aspect": "imp|perf", "Polarity": "pos"},
"pact:pl:dat:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "dat", "Gender": "masc|fem|neut", "Aspect": "imp|perf", "Polarity": "neg"},
"pact:pl:gen.loc:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "gen|loc", "Gender": "masc|fem|neut", "Aspect": "imp", "Polarity": "pos"},
"pact:pl:gen.loc:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "gen|loc", "Gender": "masc|fem|neut", "Aspect": "imp", "Polarity": "neg"},
"pact:pl:gen.loc:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "gen|loc", "Gender": "masc|fem|neut", "Aspect": "imp|perf", "Polarity": "pos"},
"pact:pl:gen.loc:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "gen|loc", "Gender": "masc|fem|neut", "Aspect": "imp|perf", "Polarity": "neg"},
"pact:pl:inst:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "ins", "Gender": "masc|fem|neut", "Aspect": "imp", "Polarity": "pos"},
"pact:pl:inst:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "ins", "Gender": "masc|fem|neut", "Aspect": "imp", "Polarity": "neg"},
"pact:pl:inst:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "ins", "Gender": "masc|fem|neut", "Aspect": "imp|perf", "Polarity": "pos"},
"pact:pl:inst:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "ins", "Gender": "masc|fem|neut", "Aspect": "imp|perf", "Polarity": "neg"},
"pact:pl:nom.acc.voc:m2.m3.f.n1.n2.p2.p3:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "nom|acc|voc", "Gender": "masc|fem|neut", "Aspect": "imp", "Polarity": "pos"},
"pact:pl:nom.acc.voc:m2.m3.f.n1.n2.p2.p3:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "nom|acc|voc", "Gender": "masc|fem|neut", "Aspect": "imp", "Polarity": "neg"},
"pact:pl:nom.acc.voc:m2.m3.f.n1.n2.p2.p3:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "nom|acc|voc", "Gender": "masc|fem|neut", "Aspect": "imp|perf", "Polarity": "pos"},
"pact:pl:nom.acc.voc:m2.m3.f.n1.n2.p2.p3:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "nom|acc|voc", "Gender": "masc|fem|neut", "Aspect": "imp|perf", "Polarity": "neg"},
"pact:pl:nom.voc:m1.p1:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "nom|voc", "Gender": "masc", "Aspect": "imp", "Polarity": "pos"},
"pact:pl:nom.voc:m1.p1:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "nom|voc", "Gender": "masc", "Aspect": "imp", "Polarity": "neg"},
"pact:pl:nom.voc:m1.p1:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "nom|voc", "Gender": "masc", "Aspect": "imp|perf", "Polarity": "pos"},
"pact:pl:nom.voc:m1.p1:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "plur", "Case": "nom|voc", "Gender": "masc", "Aspect": "imp|perf", "Polarity": "neg"},
"pact:sg:acc.inst:f:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "acc|ins", "Gender": "fem", "Aspect": "imp", "Polarity": "pos"},
"pact:sg:acc.inst:f:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "acc|ins", "Gender": "fem", "Aspect": "imp", "Polarity": "neg"},
"pact:sg:acc.inst:f:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "acc|ins", "Gender": "fem", "Aspect": "imp|perf", "Polarity": "pos"},
"pact:sg:acc.inst:f:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "acc|ins", "Gender": "fem", "Aspect": "imp|perf", "Polarity": "neg"},
"pact:sg:acc:m1.m2:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "acc", "Gender": "Masc", "Animacy": "hum|anim", "Aspect": "imp", "Polarity": "pos"},
"pact:sg:acc:m1.m2:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "acc", "Gender": "Masc", "Animacy": "hum|anim", "Aspect": "imp", "Polarity": "neg"},
"pact:sg:acc:m1.m2:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "acc", "Gender": "Masc", "Animacy": "hum|anim", "Aspect": "imp|perf", "Polarity": "pos"},
"pact:sg:acc:m1.m2:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "acc", "Gender": "Masc", "Animacy": "hum|anim", "Aspect": "imp|perf", "Polarity": "neg"},
"pact:sg:acc:m3:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "acc", "Gender": "masc", "Animacy": "inan", "Aspect": "imp", "Polarity": "pos"},
"pact:sg:acc:m3:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "acc", "Gender": "masc", "Animacy": "inan", "Aspect": "imp", "Polarity": "neg"},
"pact:sg:acc:m3:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "acc", "Gender": "masc", "Animacy": "inan", "Aspect": "imp|perf", "Polarity": "pos"},
"pact:sg:acc:m3:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "acc", "Gender": "masc", "Animacy": "inan", "Aspect": "imp|perf", "Polarity": "neg"},
"pact:sg:dat:m1.m2.m3.n1.n2:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "dat", "Gender": "masc|neut", "Aspect": "imp", "Polarity": "pos"},
"pact:sg:dat:m1.m2.m3.n1.n2:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "dat", "Gender": "masc|neut", "Aspect": "imp", "Polarity": "neg"},
"pact:sg:dat:m1.m2.m3.n1.n2:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "dat", "Gender": "masc|neut", "Aspect": "imp|perf", "Polarity": "pos"},
"pact:sg:dat:m1.m2.m3.n1.n2:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "dat", "Gender": "masc|neut", "Aspect": "imp|perf", "Polarity": "neg"},
"pact:sg:gen.dat.loc:f:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "gen|dat|loc", "Gender": "fem", "Aspect": "imp", "Polarity": "pos"},
"pact:sg:gen.dat.loc:f:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "gen|dat|loc", "Gender": "fem", "Aspect": "imp", "Polarity": "neg"},
"pact:sg:gen.dat.loc:f:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "gen|dat|loc", "Gender": "fem", "Aspect": "imp|perf", "Polarity": "pos"},
"pact:sg:gen.dat.loc:f:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "gen|dat|loc", "Gender": "fem", "Aspect": "imp|perf", "Polarity": "neg"},
"pact:sg:gen:m1.m2.m3.n1.n2:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "gen", "Gender": "masc|neut", "Aspect": "imp", "Polarity": "pos"},
"pact:sg:gen:m1.m2.m3.n1.n2:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "gen", "Gender": "masc|neut", "Aspect": "imp", "Polarity": "neg"},
"pact:sg:gen:m1.m2.m3.n1.n2:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "gen", "Gender": "masc|neut", "Aspect": "imp|perf", "Polarity": "pos"},
"pact:sg:gen:m1.m2.m3.n1.n2:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "gen", "Gender": "masc|neut", "Aspect": "imp|perf", "Polarity": "neg"},
"pact:sg:inst.loc:m1.m2.m3.n1.n2:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "ins|loc", "Gender": "masc|neut", "Aspect": "imp", "Polarity": "pos"},
"pact:sg:inst.loc:m1.m2.m3.n1.n2:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "ins|loc", "Gender": "masc|neut", "Aspect": "imp", "Polarity": "neg"},
"pact:sg:inst.loc:m1.m2.m3.n1.n2:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "ins|loc", "Gender": "masc|neut", "Aspect": "imp|perf", "Polarity": "pos"},
"pact:sg:inst.loc:m1.m2.m3.n1.n2:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "ins|loc", "Gender": "masc|neut", "Aspect": "imp|perf", "Polarity": "neg"},
"pact:sg:nom.acc.voc:n1.n2:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "nom|acc|voc", "Gender": "neut", "Aspect": "imp", "Polarity": "pos"},
"pact:sg:nom.acc.voc:n1.n2:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "nom|acc|voc", "Gender": "neut", "Aspect": "imp", "Polarity": "neg"},
"pact:sg:nom.acc.voc:n1.n2:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "nom|acc|voc", "Gender": "neut", "Aspect": "imp|perf", "Polarity": "pos"},
"pact:sg:nom.acc.voc:n1.n2:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "nom|acc|voc", "Gender": "neut", "Aspect": "imp|perf", "Polarity": "neg"},
"pact:sg:nom.voc:f:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "nom|voc", "Gender": "fem", "Aspect": "imp", "Polarity": "pos"},
"pact:sg:nom.voc:f:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "nom|voc", "Gender": "fem", "Aspect": "imp", "Polarity": "neg"},
"pact:sg:nom.voc:f:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "nom|voc", "Gender": "fem", "Aspect": "imp|perf", "Polarity": "pos"},
"pact:sg:nom.voc:f:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "nom|voc", "Gender": "fem", "Aspect": "imp|perf", "Polarity": "neg"},
"pact:sg:nom.voc:m1.m2.m3:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "nom|voc", "Gender": "Masc", "Aspect": "imp", "Polarity": "pos"},
"pact:sg:nom.voc:m1.m2.m3:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "nom|voc", "Gender": "Masc", "Aspect": "imp", "Polarity": "neg"},
"pact:sg:nom.voc:m1.m2.m3:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "nom|voc", "Gender": "Masc", "Aspect": "imp|perf", "Polarity": "pos"},
"pact:sg:nom.voc:m1.m2.m3:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "act", "Number": "sing", "Case": "nom|voc", "Gender": "Masc", "Aspect": "imp|perf", "Polarity": "neg"},
"pant:perf": {POS: VERB, "Tense": "past", "VerbForm": "conv", "Aspect": "perf"},
"pcon:imperf": {POS: VERB, "Tense": "pres", "VerbForm": "conv", "Aspect": "imp"},
"ppas:pl:acc:m1.p1:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "acc", "Gender": "masc", "Aspect": "imp", "Polarity": "pos"},
"ppas:pl:acc:m1.p1:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "acc", "Gender": "masc", "Aspect": "imp", "Polarity": "neg"},
"ppas:pl:acc:m1.p1:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "acc", "Gender": "masc", "Aspect": "imp|perf", "Polarity": "pos"},
"ppas:pl:acc:m1.p1:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "acc", "Gender": "masc", "Aspect": "imp|perf", "Polarity": "neg"},
"ppas:pl:acc:m1.p1:perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "acc", "Gender": "masc", "Aspect": "perf", "Polarity": "pos"},
"ppas:pl:acc:m1.p1:perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "acc", "Gender": "masc", "Aspect": "perf", "Polarity": "neg"},
"ppas:pl:dat:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "dat", "Gender": "masc|fem|neut", "Aspect": "imp", "Polarity": "pos"},
"ppas:pl:dat:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "dat", "Gender": "masc|fem|neut", "Aspect": "imp", "Polarity": "neg"},
"ppas:pl:dat:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "dat", "Gender": "masc|fem|neut", "Aspect": "imp|perf", "Polarity": "pos"},
"ppas:pl:dat:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "dat", "Gender": "masc|fem|neut", "Aspect": "imp|perf", "Polarity": "neg"},
"ppas:pl:dat:m1.m2.m3.f.n1.n2.p1.p2.p3:perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "dat", "Gender": "masc|fem|neut", "Aspect": "perf", "Polarity": "pos"},
"ppas:pl:dat:m1.m2.m3.f.n1.n2.p1.p2.p3:perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "dat", "Gender": "masc|fem|neut", "Aspect": "perf", "Polarity": "neg"},
"ppas:pl:gen.loc:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "gen|loc", "Gender": "masc|fem|neut", "Aspect": "imp", "Polarity": "pos"},
"ppas:pl:gen.loc:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "gen|loc", "Gender": "masc|fem|neut", "Aspect": "imp", "Polarity": "neg"},
"ppas:pl:gen.loc:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "gen|loc", "Gender": "masc|fem|neut", "Aspect": "imp|perf", "Polarity": "pos"},
"ppas:pl:gen.loc:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "gen|loc", "Gender": "masc|fem|neut", "Aspect": "imp|perf", "Polarity": "neg"},
"ppas:pl:gen.loc:m1.m2.m3.f.n1.n2.p1.p2.p3:perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "gen|loc", "Gender": "masc|fem|neut", "Aspect": "perf", "Polarity": "pos"},
"ppas:pl:gen.loc:m1.m2.m3.f.n1.n2.p1.p2.p3:perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "gen|loc", "Gender": "masc|fem|neut", "Aspect": "perf", "Polarity": "neg"},
"ppas:pl:inst:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "ins", "Gender": "masc|fem|neut", "Aspect": "imp", "Polarity": "pos"},
"ppas:pl:inst:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "ins", "Gender": "masc|fem|neut", "Aspect": "imp", "Polarity": "neg"},
"ppas:pl:inst:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "ins", "Gender": "masc|fem|neut", "Aspect": "imp|perf", "Polarity": "pos"},
"ppas:pl:inst:m1.m2.m3.f.n1.n2.p1.p2.p3:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "ins", "Gender": "masc|fem|neut", "Aspect": "imp|perf", "Polarity": "neg"},
"ppas:pl:inst:m1.m2.m3.f.n1.n2.p1.p2.p3:perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "ins", "Gender": "masc|fem|neut", "Aspect": "perf", "Polarity": "pos"},
"ppas:pl:inst:m1.m2.m3.f.n1.n2.p1.p2.p3:perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "ins", "Gender": "masc|fem|neut", "Aspect": "perf", "Polarity": "neg"},
"ppas:pl:nom.acc.voc:m2.m3.f.n1.n2.p2.p3:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "nom|acc|voc", "Gender": "masc|fem|neut", "Aspect": "imp", "Polarity": "pos"},
"ppas:pl:nom.acc.voc:m2.m3.f.n1.n2.p2.p3:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "nom|acc|voc", "Gender": "masc|fem|neut", "Aspect": "imp", "Polarity": "neg"},
"ppas:pl:nom.acc.voc:m2.m3.f.n1.n2.p2.p3:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "nom|acc|voc", "Gender": "masc|fem|neut", "Aspect": "imp|perf", "Polarity": "pos"},
"ppas:pl:nom.acc.voc:m2.m3.f.n1.n2.p2.p3:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "nom|acc|voc", "Gender": "masc|fem|neut", "Aspect": "imp|perf", "Polarity": "neg"},
"ppas:pl:nom.acc.voc:m2.m3.f.n1.n2.p2.p3:perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "nom|acc|voc", "Gender": "masc|fem|neut", "Aspect": "perf", "Polarity": "pos"},
"ppas:pl:nom.acc.voc:m2.m3.f.n1.n2.p2.p3:perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "nom|acc|voc", "Gender": "masc|fem|neut", "Aspect": "perf", "Polarity": "neg"},
"ppas:pl:nom.voc:m1.p1:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "nom|voc", "Gender": "masc", "Aspect": "imp", "Polarity": "pos"},
"ppas:pl:nom.voc:m1.p1:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "nom|voc", "Gender": "masc", "Aspect": "imp", "Polarity": "neg"},
"ppas:pl:nom.voc:m1.p1:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "nom|voc", "Gender": "masc", "Aspect": "imp|perf", "Polarity": "pos"},
"ppas:pl:nom.voc:m1.p1:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "nom|voc", "Gender": "masc", "Aspect": "imp|perf", "Polarity": "neg"},
"ppas:pl:nom.voc:m1.p1:perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "nom|voc", "Gender": "masc", "Aspect": "perf", "Polarity": "pos"},
"ppas:pl:nom.voc:m1.p1:perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "plur", "Case": "nom|voc", "Gender": "masc", "Aspect": "perf", "Polarity": "neg"},
"ppas:sg:acc.inst:f:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "acc|ins", "Gender": "fem", "Aspect": "imp", "Polarity": "pos"},
"ppas:sg:acc.inst:f:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "acc|ins", "Gender": "fem", "Aspect": "imp", "Polarity": "neg"},
"ppas:sg:acc.inst:f:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "acc|ins", "Gender": "fem", "Aspect": "imp|perf", "Polarity": "pos"},
"ppas:sg:acc.inst:f:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "acc|ins", "Gender": "fem", "Aspect": "imp|perf", "Polarity": "neg"},
"ppas:sg:acc.inst:f:perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "acc|ins", "Gender": "fem", "Aspect": "perf", "Polarity": "pos"},
"ppas:sg:acc.inst:f:perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "acc|ins", "Gender": "fem", "Aspect": "perf", "Polarity": "neg"},
"ppas:sg:acc:m1.m2:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "acc", "Gender": "Masc", "Animacy": "hum|anim", "Aspect": "imp", "Polarity": "pos"},
"ppas:sg:acc:m1.m2:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "acc", "Gender": "Masc", "Animacy": "hum|anim", "Aspect": "imp", "Polarity": "neg"},
"ppas:sg:acc:m1.m2:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "acc", "Gender": "Masc", "Animacy": "hum|anim", "Aspect": "imp|perf", "Polarity": "pos"},
"ppas:sg:acc:m1.m2:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "acc", "Gender": "Masc", "Animacy": "hum|anim", "Aspect": "imp|perf", "Polarity": "neg"},
"ppas:sg:acc:m1.m2:perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "acc", "Gender": "Masc", "Animacy": "hum|anim", "Aspect": "perf", "Polarity": "pos"},
"ppas:sg:acc:m1.m2:perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "acc", "Gender": "Masc", "Animacy": "hum|anim", "Aspect": "perf", "Polarity": "neg"},
"ppas:sg:acc:m3:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "acc", "Gender": "masc", "Animacy": "inan", "Aspect": "imp", "Polarity": "pos"},
"ppas:sg:acc:m3:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "acc", "Gender": "masc", "Animacy": "inan", "Aspect": "imp", "Polarity": "neg"},
"ppas:sg:acc:m3:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "acc", "Gender": "masc", "Animacy": "inan", "Aspect": "imp|perf", "Polarity": "pos"},
"ppas:sg:acc:m3:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "acc", "Gender": "masc", "Animacy": "inan", "Aspect": "imp|perf", "Polarity": "neg"},
"ppas:sg:acc:m3:perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "acc", "Gender": "masc", "Animacy": "inan", "Aspect": "perf", "Polarity": "pos"},
"ppas:sg:acc:m3:perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "acc", "Gender": "masc", "Animacy": "inan", "Aspect": "perf", "Polarity": "neg"},
"ppas:sg:dat:m1.m2.m3.n1.n2:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "dat", "Gender": "masc|neut", "Aspect": "imp", "Polarity": "pos"},
"ppas:sg:dat:m1.m2.m3.n1.n2:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "dat", "Gender": "masc|neut", "Aspect": "imp", "Polarity": "neg"},
"ppas:sg:dat:m1.m2.m3.n1.n2:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "dat", "Gender": "masc|neut", "Aspect": "imp|perf", "Polarity": "pos"},
"ppas:sg:dat:m1.m2.m3.n1.n2:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "dat", "Gender": "masc|neut", "Aspect": "imp|perf", "Polarity": "neg"},
"ppas:sg:dat:m1.m2.m3.n1.n2:perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "dat", "Gender": "masc|neut", "Aspect": "perf", "Polarity": "pos"},
"ppas:sg:dat:m1.m2.m3.n1.n2:perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "dat", "Gender": "masc|neut", "Aspect": "perf", "Polarity": "neg"},
"ppas:sg:gen.dat.loc:f:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "gen|dat|loc", "Gender": "fem", "Aspect": "imp", "Polarity": "pos"},
"ppas:sg:gen.dat.loc:f:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "gen|dat|loc", "Gender": "fem", "Aspect": "imp", "Polarity": "neg"},
"ppas:sg:gen.dat.loc:f:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "gen|dat|loc", "Gender": "fem", "Aspect": "imp|perf", "Polarity": "pos"},
"ppas:sg:gen.dat.loc:f:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "gen|dat|loc", "Gender": "fem", "Aspect": "imp|perf", "Polarity": "neg"},
"ppas:sg:gen.dat.loc:f:perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "gen|dat|loc", "Gender": "fem", "Aspect": "perf", "Polarity": "pos"},
"ppas:sg:gen.dat.loc:f:perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "gen|dat|loc", "Gender": "fem", "Aspect": "perf", "Polarity": "neg"},
"ppas:sg:gen:m1.m2.m3.n1.n2:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "gen", "Gender": "masc|neut", "Aspect": "imp", "Polarity": "pos"},
"ppas:sg:gen:m1.m2.m3.n1.n2:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "gen", "Gender": "masc|neut", "Aspect": "imp", "Polarity": "neg"},
"ppas:sg:gen:m1.m2.m3.n1.n2:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "gen", "Gender": "masc|neut", "Aspect": "imp|perf", "Polarity": "pos"},
"ppas:sg:gen:m1.m2.m3.n1.n2:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "gen", "Gender": "masc|neut", "Aspect": "imp|perf", "Polarity": "neg"},
"ppas:sg:gen:m1.m2.m3.n1.n2:perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "gen", "Gender": "masc|neut", "Aspect": "perf", "Polarity": "pos"},
"ppas:sg:gen:m1.m2.m3.n1.n2:perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "gen", "Gender": "masc|neut", "Aspect": "perf", "Polarity": "neg"},
"ppas:sg:inst.loc:m1.m2.m3.n1.n2:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "ins|loc", "Gender": "masc|neut", "Aspect": "imp", "Polarity": "pos"},
"ppas:sg:inst.loc:m1.m2.m3.n1.n2:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "ins|loc", "Gender": "masc|neut", "Aspect": "imp", "Polarity": "neg"},
"ppas:sg:inst.loc:m1.m2.m3.n1.n2:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "ins|loc", "Gender": "masc|neut", "Aspect": "imp|perf", "Polarity": "pos"},
"ppas:sg:inst.loc:m1.m2.m3.n1.n2:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "ins|loc", "Gender": "masc|neut", "Aspect": "imp|perf", "Polarity": "neg"},
"ppas:sg:inst.loc:m1.m2.m3.n1.n2:perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "ins|loc", "Gender": "masc|neut", "Aspect": "perf", "Polarity": "pos"},
"ppas:sg:inst.loc:m1.m2.m3.n1.n2:perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "ins|loc", "Gender": "masc|neut", "Aspect": "perf", "Polarity": "neg"},
"ppas:sg:nom.acc.voc:n1.n2:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "nom|acc|voc", "Gender": "neut", "Aspect": "imp", "Polarity": "pos"},
"ppas:sg:nom.acc.voc:n1.n2:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "nom|acc|voc", "Gender": "neut", "Aspect": "imp", "Polarity": "neg"},
"ppas:sg:nom.acc.voc:n1.n2:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "nom|acc|voc", "Gender": "neut", "Aspect": "imp|perf", "Polarity": "pos"},
"ppas:sg:nom.acc.voc:n1.n2:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "nom|acc|voc", "Gender": "neut", "Aspect": "imp|perf", "Polarity": "neg"},
"ppas:sg:nom.acc.voc:n1.n2:perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "nom|acc|voc", "Gender": "neut", "Aspect": "perf", "Polarity": "pos"},
"ppas:sg:nom.acc.voc:n1.n2:perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "nom|acc|voc", "Gender": "neut", "Aspect": "perf", "Polarity": "neg"},
"ppas:sg:nom.voc:f:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "nom|voc", "Gender": "fem", "Aspect": "imp", "Polarity": "pos"},
"ppas:sg:nom.voc:f:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "nom|voc", "Gender": "fem", "Aspect": "imp", "Polarity": "neg"},
"ppas:sg:nom.voc:f:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "nom|voc", "Gender": "fem", "Aspect": "imp|perf", "Polarity": "pos"},
"ppas:sg:nom.voc:f:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "nom|voc", "Gender": "fem", "Aspect": "imp|perf", "Polarity": "neg"},
"ppas:sg:nom.voc:f:perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "nom|voc", "Gender": "fem", "Aspect": "perf", "Polarity": "pos"},
"ppas:sg:nom.voc:f:perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "nom|voc", "Gender": "fem", "Aspect": "perf", "Polarity": "neg"},
"ppas:sg:nom.voc:m1.m2.m3:imperf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "nom|voc", "Gender": "Masc", "Aspect": "imp", "Polarity": "pos"},
"ppas:sg:nom.voc:m1.m2.m3:imperf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "nom|voc", "Gender": "Masc", "Aspect": "imp", "Polarity": "neg"},
"ppas:sg:nom.voc:m1.m2.m3:imperf.perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "nom|voc", "Gender": "Masc", "Aspect": "imp|perf", "Polarity": "pos"},
"ppas:sg:nom.voc:m1.m2.m3:imperf.perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "nom|voc", "Gender": "Masc", "Aspect": "imp|perf", "Polarity": "neg"},
"ppas:sg:nom.voc:m1.m2.m3:perf:aff": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "nom|voc", "Gender": "Masc", "Aspect": "perf", "Polarity": "pos"},
"ppas:sg:nom.voc:m1.m2.m3:perf:neg": {POS: VERB, "VerbForm": "part", "Voice": "pass", "Number": "sing", "Case": "nom|voc", "Gender": "Masc", "Aspect": "perf", "Polarity": "neg"},
"ppron12:pl:acc:_:pri": {POS: PRON, "PronType": "prs", "Number": "plur", "Case": "acc", "Person": "one"},
"ppron12:pl:acc:_:sec": {POS: PRON, "PronType": "prs", "Number": "plur", "Case": "acc", "Person": "two"},
"ppron12:pl:dat:_:pri": {POS: PRON, "PronType": "prs", "Number": "plur", "Case": "dat", "Person": "one"},
"ppron12:pl:dat:_:sec": {POS: PRON, "PronType": "prs", "Number": "plur", "Case": "dat", "Person": "two"},
"ppron12:pl:gen:_:pri": {POS: PRON, "PronType": "prs", "Number": "plur", "Case": "gen", "Person": "one"},
"ppron12:pl:gen:_:sec": {POS: PRON, "PronType": "prs", "Number": "plur", "Case": "gen", "Person": "two"},
"ppron12:pl:inst:_:pri": {POS: PRON, "PronType": "prs", "Number": "plur", "Case": "ins", "Person": "one"},
"ppron12:pl:inst:_:sec": {POS: PRON, "PronType": "prs", "Number": "plur", "Case": "ins", "Person": "two"},
"ppron12:pl:loc:_:pri": {POS: PRON, "PronType": "prs", "Number": "plur", "Case": "loc", "Person": "one"},
"ppron12:pl:loc:_:sec": {POS: PRON, "PronType": "prs", "Number": "plur", "Case": "loc", "Person": "two"},
"ppron12:pl:nom:_:pri": {POS: PRON, "PronType": "prs", "Number": "plur", "Case": "nom", "Person": "one"},
"ppron12:pl:nom:_:sec": {POS: PRON, "PronType": "prs", "Number": "plur", "Case": "nom", "Person": "two"},
"ppron12:pl:voc:_:pri": {POS: PRON, "PronType": "prs", "Number": "plur", "Case": "voc", "Person": "one"},
"ppron12:pl:voc:_:sec": {POS: PRON, "PronType": "prs", "Number": "plur", "Case": "voc", "Person": "two"},
"ppron12:sg:acc:m1.m2.m3.f.n1.n2:pri:akc": {POS: PRON, "PronType": "prs", "Number": "sing", "Case": "acc", "Gender": "masc|fem|neut", "Person": "one", },
"ppron12:sg:acc:m1.m2.m3.f.n1.n2:pri:nakc": {POS: PRON, "PronType": "prs", "Number": "sing", "Case": "acc", "Gender": "masc|fem|neut", "Person": "one", },
"ppron12:sg:acc:m1.m2.m3.f.n1.n2:sec:akc": {POS: PRON, "PronType": "prs", "Number": "sing", "Case": "acc", "Gender": "masc|fem|neut", "Person": "two", },
"ppron12:sg:acc:m1.m2.m3.f.n1.n2:sec:nakc": {POS: PRON, "PronType": "prs", "Number": "sing", "Case": "acc", "Gender": "masc|fem|neut", "Person": "two", },
"ppron12:sg:dat:m1.m2.m3.f.n1.n2:pri:akc": {POS: PRON, "PronType": "prs", "Number": "sing", "Case": "dat", "Gender": "masc|fem|neut", "Person": "one", },
"ppron12:sg:dat:m1.m2.m3.f.n1.n2:pri:nakc": {POS: PRON, "PronType": "prs", "Number": "sing", "Case": "dat", "Gender": "masc|fem|neut", "Person": "one", },
"ppron12:sg:dat:m1.m2.m3.f.n1.n2:sec:akc": {POS: PRON, "PronType": "prs", "Number": "sing", "Case": "dat", "Gender": "masc|fem|neut", "Person": "two", },
"ppron12:sg:dat:m1.m2.m3.f.n1.n2:sec:nakc": {POS: PRON, "PronType": "prs", "Number": "sing", "Case": "dat", "Gender": "masc|fem|neut", "Person": "two", },
"ppron12:sg:gen:m1.m2.m3.f.n1.n2:pri:akc": {POS: PRON, "PronType": "prs", "Number": "sing", "Case": "gen", "Gender": "masc|fem|neut", "Person": "one", },
"ppron12:sg:gen:m1.m2.m3.f.n1.n2:pri:nakc": {POS: PRON, "PronType": "prs", "Number": "sing", "Case": "gen", "Gender": "masc|fem|neut", "Person": "one", },
"ppron12:sg:gen:m1.m2.m3.f.n1.n2:sec:akc": {POS: PRON, "PronType": "prs", "Number": "sing", "Case": "gen", "Gender": "masc|fem|neut", "Person": "two", },
"ppron12:sg:gen:m1.m2.m3.f.n1.n2:sec:nakc": {POS: PRON, "PronType": "prs", "Number": "sing", "Case": "gen", "Gender": "masc|fem|neut", "Person": "two", },
"ppron12:sg:inst:m1.m2.m3.f.n1.n2:pri": {POS: PRON, "PronType": "prs", "Number": "sing", "Case": "ins", "Gender": "masc|fem|neut", "Person": "one"},
"ppron12:sg:inst:m1.m2.m3.f.n1.n2:sec": {POS: PRON, "PronType": "prs", "Number": "sing", "Case": "ins", "Gender": "masc|fem|neut", "Person": "two"},
"ppron12:sg:loc:m1.m2.m3.f.n1.n2:pri": {POS: PRON, "PronType": "prs", "Number": "sing", "Case": "loc", "Gender": "masc|fem|neut", "Person": "one"},
"ppron12:sg:loc:m1.m2.m3.f.n1.n2:sec": {POS: PRON, "PronType": "prs", "Number": "sing", "Case": "loc", "Gender": "masc|fem|neut", "Person": "two"},
"ppron12:sg:nom:m1.m2.m3.f.n1.n2:pri": {POS: PRON, "PronType": "prs", "Number": "sing", "Case": "nom", "Gender": "masc|fem|neut", "Person": "one"},
"ppron12:sg:nom:m1.m2.m3.f.n1.n2:sec": {POS: PRON, "PronType": "prs", "Number": "sing", "Case": "nom", "Gender": "masc|fem|neut", "Person": "two"},
"ppron12:sg:voc:m1.m2.m3.f.n1.n2:pri": {POS: PRON, "PronType": "prs", "Number": "sing", "Case": "voc", "Gender": "masc|fem|neut", "Person": "one"},
"ppron12:sg:voc:m1.m2.m3.f.n1.n2:sec": {POS: PRON, "PronType": "prs", "Number": "sing", "Case": "voc", "Gender": "masc|fem|neut", "Person": "two"},
"ppron3:pl:acc:m1.p1:ter:_:npraep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "plur", "Case": "acc", "Gender": "masc", "Person": "three", "PrepCase": "npr"},
"ppron3:pl:acc:m1.p1:ter:_:praep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "plur", "Case": "acc", "Gender": "masc", "Person": "three", "PrepCase": "pre"},
"ppron3:pl:acc:m2.m3.f.n1.n2.p2.p3:ter:_:npraep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "plur", "Case": "acc", "Gender": "masc|fem|neut", "Person": "three", "PrepCase": "npr"},
"ppron3:pl:acc:m2.m3.f.n1.n2.p2.p3:ter:_:praep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "plur", "Case": "acc", "Gender": "masc|fem|neut", "Person": "three", "PrepCase": "pre"},
"ppron3:pl:dat:_:ter:_:npraep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "plur", "Case": "dat", "Person": "three", "PrepCase": "npr"},
"ppron3:pl:dat:_:ter:_:praep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "plur", "Case": "dat", "Person": "three", "PrepCase": "pre"},
"ppron3:pl:gen:_:ter:_:npraep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "plur", "Case": "gen", "Person": "three", "PrepCase": "npr"},
"ppron3:pl:gen:_:ter:_:praep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "plur", "Case": "gen", "Person": "three", "PrepCase": "pre"},
"ppron3:pl:inst:_:ter:_:_": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "plur", "Case": "ins", "Person": "three"},
"ppron3:pl:loc:_:ter:_:_": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "plur", "Case": "loc", "Person": "three"},
"ppron3:pl:nom:m1.p1:ter:_:_": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "plur", "Case": "nom", "Gender": "masc", "Person": "three"},
"ppron3:pl:nom:m2.m3.f.n1.n2.p2.p3:ter:_:_": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "plur", "Case": "nom", "Gender": "masc|fem|neut", "Person": "three"},
"ppron3:sg:acc:f:ter:_:npraep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "acc", "Gender": "fem", "Person": "three", "PrepCase": "npr"},
"ppron3:sg:acc:f:ter:_:praep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "acc", "Gender": "fem", "Person": "three", "PrepCase": "pre"},
"ppron3:sg:acc:m1.m2.m3:ter:akc:npraep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "acc", "Gender": "Masc", "Person": "three", "PrepCase": "npr"},
"ppron3:sg:acc:m1.m2.m3:ter:akc:praep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "acc", "Gender": "Masc", "Person": "three", "PrepCase": "pre"},
"ppron3:sg:acc:m1.m2.m3:ter:nakc:npraep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "acc", "Gender": "Masc", "Person": "three", "PrepCase": "npr"},
"ppron3:sg:acc:m1.m2.m3:ter:nakc:praep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "acc", "Gender": "Masc", "Person": "three", "PrepCase": "pre"},
"ppron3:sg:acc:n1.n2:ter:_:npraep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "acc", "Gender": "neut", "Person": "three", "PrepCase": "npr"},
"ppron3:sg:acc:n1.n2:ter:_:praep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "acc", "Gender": "neut", "Person": "three", "PrepCase": "pre"},
"ppron3:sg:dat:f:ter:_:npraep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "dat", "Gender": "fem", "Person": "three", "PrepCase": "npr"},
"ppron3:sg:dat:f:ter:_:praep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "dat", "Gender": "fem", "Person": "three", "PrepCase": "pre"},
"ppron3:sg:dat:m1.m2.m3:ter:akc:npraep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "dat", "Gender": "Masc", "Person": "three", "PrepCase": "npr"},
"ppron3:sg:dat:m1.m2.m3:ter:nakc:npraep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "dat", "Gender": "Masc", "Person": "three", "PrepCase": "npr"},
"ppron3:sg:dat:m1.m2.m3:ter:_:praep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "dat", "Gender": "Masc", "Person": "three", "PrepCase": "pre"},
"ppron3:sg:dat:n1.n2:ter:akc:npraep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "dat", "Gender": "neut", "Person": "three", "PrepCase": "npr"},
"ppron3:sg:dat:n1.n2:ter:nakc:npraep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "dat", "Gender": "neut", "Person": "three", "PrepCase": "npr"},
"ppron3:sg:dat:n1.n2:ter:_:praep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "dat", "Gender": "neut", "Person": "three", "PrepCase": "pre"},
"ppron3:sg:gen:f:ter:_:npraep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "gen", "Gender": "fem", "Person": "three", "PrepCase": "npr"},
"ppron3:sg:gen:f:ter:_:praep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "gen", "Gender": "fem", "Person": "three", "PrepCase": "pre"},
"ppron3:sg:gen:m1.m2.m3:ter:akc:npraep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "gen", "Gender": "Masc", "Person": "three", "PrepCase": "npr"},
"ppron3:sg:gen:m1.m2.m3:ter:akc:praep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "gen", "Gender": "Masc", "Person": "three", "PrepCase": "pre"},
"ppron3:sg:gen:m1.m2.m3:ter:nakc:npraep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "gen", "Gender": "Masc", "Person": "three", "PrepCase": "npr"},
"ppron3:sg:gen:m1.m2.m3:ter:nakc:praep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "gen", "Gender": "Masc", "Person": "three", "PrepCase": "pre"},
"ppron3:sg:gen:n1.n2:ter:akc:npraep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "gen", "Gender": "neut", "Person": "three", "PrepCase": "npr"},
"ppron3:sg:gen:n1.n2:ter:nakc:npraep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "gen", "Gender": "neut", "Person": "three", "PrepCase": "npr"},
"ppron3:sg:gen:n1.n2:ter:_:praep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "gen", "Gender": "neut", "Person": "three", "PrepCase": "pre"},
"ppron3:sg:inst:f:ter:_:praep": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "ins", "Gender": "fem", "Person": "three", "PrepCase": "pre"},
"ppron3:sg:inst:m1.m2.m3:ter:_:_": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "ins", "Gender": "Masc", "Person": "three"},
"ppron3:sg:inst:n1.n2:ter:_:_": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "ins", "Gender": "neut", "Person": "three"},
"ppron3:sg:loc:f:ter:_:_": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "loc", "Gender": "fem", "Person": "three"},
"ppron3:sg:loc:m1.m2.m3:ter:_:_": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "loc", "Gender": "Masc", "Person": "three"},
"ppron3:sg:loc:n1.n2:ter:_:_": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "loc", "Gender": "neut", "Person": "three"},
"ppron3:sg:nom:f:ter:_:_": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "nom", "Gender": "fem", "Person": "three"},
"ppron3:sg:nom:m1.m2.m3:ter:_:_": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "nom", "Gender": "Masc", "Person": "three"},
"ppron3:sg:nom:n1.n2:ter:_:_": {POS: PRON, "PronType": "prs", "Person": "three", "Number": "sing", "Case": "nom", "Gender": "neut", "Person": "three"},
"praet:pl:m1.p1:imperf": {POS: VERB, "VerbForm": "fin", "Tense": "past", "Number": "plur", "Gender": "masc", "Aspect": "imp"},
"praet:pl:m1.p1:imperf.perf": {POS: VERB, "VerbForm": "fin", "Tense": "past", "Number": "plur", "Gender": "masc", "Aspect": "imp|perf"},
"praet:pl:m1.p1:perf": {POS: VERB, "VerbForm": "fin", "Tense": "past", "Number": "plur", "Gender": "masc", "Aspect": "perf"},
"praet:pl:m2.m3.f.n1.n2.p2.p3:imperf": {POS: VERB, "VerbForm": "fin", "Tense": "past", "Number": "plur", "Gender": "masc|fem|neut", "Aspect": "imp"},
"praet:pl:m2.m3.f.n1.n2.p2.p3:imperf.perf": {POS: VERB, "VerbForm": "fin", "Tense": "past", "Number": "plur", "Gender": "masc|fem|neut", "Aspect": "imp|perf"},
"praet:pl:m2.m3.f.n1.n2.p2.p3:perf": {POS: VERB, "VerbForm": "fin", "Tense": "past", "Number": "plur", "Gender": "masc|fem|neut", "Aspect": "perf"},
"praet:sg:f:imperf": {POS: VERB, "VerbForm": "fin", "Tense": "past", "Number": "sing", "Gender": "fem", "Aspect": "imp"},
"praet:sg:f:imperf.perf": {POS: VERB, "VerbForm": "fin", "Tense": "past", "Number": "sing", "Gender": "fem", "Aspect": "imp|perf"},
"praet:sg:f:perf": {POS: VERB, "VerbForm": "fin", "Tense": "past", "Number": "sing", "Gender": "fem", "Aspect": "perf"},
"praet:sg:m1.m2.m3:imperf": {POS: VERB, "VerbForm": "fin", "Tense": "past", "Number": "sing", "Gender": "Masc", "Aspect": "imp"},
"praet:sg:m1.m2.m3:imperf:agl": {POS: VERB, "VerbForm": "fin", "Tense": "past", "Number": "sing", "Gender": "Masc", "Aspect": "imp"},
"praet:sg:m1.m2.m3:imperf:nagl": {POS: VERB, "VerbForm": "fin", "Tense": "past", "Number": "sing", "Gender": "Masc", "Aspect": "imp"},
"praet:sg:m1.m2.m3:imperf.perf": {POS: VERB, "VerbForm": "fin", "Tense": "past", "Number": "sing", "Gender": "Masc", "Aspect": "imp|perf"},
"praet:sg:m1.m2.m3:perf": {POS: VERB, "VerbForm": "fin", "Tense": "past", "Number": "sing", "Gender": "Masc", "Aspect": "perf"},
"praet:sg:m1.m2.m3:perf:agl": {POS: VERB, "VerbForm": "fin", "Tense": "past", "Number": "sing", "Gender": "Masc", "Aspect": "perf"},
"praet:sg:m1.m2.m3:perf:nagl": {POS: VERB, "VerbForm": "fin", "Tense": "past", "Number": "sing", "Gender": "Masc", "Aspect": "perf"},
"praet:sg:n1.n2:imperf": {POS: VERB, "VerbForm": "fin", "Tense": "past", "Number": "sing", "Gender": "neut", "Aspect": "imp"},
"praet:sg:n1.n2:imperf.perf": {POS: VERB, "VerbForm": "fin", "Tense": "past", "Number": "sing", "Gender": "neut", "Aspect": "imp|perf"},
"praet:sg:n1.n2:perf": {POS: VERB, "VerbForm": "fin", "Tense": "past", "Number": "sing", "Gender": "neut", "Aspect": "perf"},
"pred": {POS: VERB},
"prep:acc": {POS: ADP, "AdpType": "prep", "Case": "acc"},
"prep:acc:nwok": {POS: ADP, "AdpType": "prep", "Case": "acc", },
"prep:acc:wok": {POS: ADP, "AdpType": "prep", "Case": "acc", },
"prep:dat": {POS: ADP, "AdpType": "prep", "Case": "dat"},
"prep:gen": {POS: ADP, "AdpType": "prep", "Case": "gen"},
"prep:gen:nwok": {POS: ADP, "AdpType": "prep", "Case": "gen", },
"prep:gen:wok": {POS: ADP, "AdpType": "prep", "Case": "gen", },
"prep:inst": {POS: ADP, "AdpType": "prep", "Case": "ins"},
"prep:inst:nwok": {POS: ADP, "AdpType": "prep", "Case": "ins", },
"prep:inst:wok": {POS: ADP, "AdpType": "prep", "Case": "ins", },
"prep:loc": {POS: ADP, "AdpType": "prep", "Case": "loc"},
"prep:loc:nwok": {POS: ADP, "AdpType": "prep", "Case": "loc", },
"prep:loc:wok": {POS: ADP, "AdpType": "prep", "Case": "loc", },
"prep:nom": {POS: ADP, "AdpType": "prep", "Case": "nom"},
"qub": {POS: PART},
"subst:pl:acc:f": {POS: NOUN, "Number": "plur", "Case": "acc", "Gender": "fem"},
"subst:pl:acc:m1": {POS: NOUN, "Number": "plur", "Case": "acc", "Gender": "Masc", "Animacy": "hum"},
"subst:pl:acc:m2": {POS: NOUN, "Number": "plur", "Case": "acc", "Gender": "masc", "Animacy": "anim"},
"subst:pl:acc:m3": {POS: NOUN, "Number": "plur", "Case": "acc", "Gender": "masc", "Animacy": "inan"},
"subst:pl:acc:n1": {POS: NOUN, "Number": "plur", "Case": "acc", "Gender": "neut"},
"subst:pl:acc:n2": {POS: NOUN, "Number": "plur", "Case": "acc", "Gender": "neut"},
"subst:pl:acc:p1": {POS: NOUN, "Number": "plur", "Case": "acc", "Person": "one"},
"subst:pl:acc:p2": {POS: NOUN, "Number": "plur", "Case": "acc", "Person": "two"},
"subst:pl:acc:p3": {POS: NOUN, "Number": "plur", "Case": "acc", "Person": "three"},
"subst:pl:dat:f": {POS: NOUN, "Number": "plur", "Case": "dat", "Gender": "fem"},
"subst:pl:dat:m1": {POS: NOUN, "Number": "plur", "Case": "dat", "Gender": "Masc", "Animacy": "hum"},
"subst:pl:dat:m2": {POS: NOUN, "Number": "plur", "Case": "dat", "Gender": "masc", "Animacy": "anim"},
"subst:pl:dat:m3": {POS: NOUN, "Number": "plur", "Case": "dat", "Gender": "masc", "Animacy": "inan"},
"subst:pl:dat:n1": {POS: NOUN, "Number": "plur", "Case": "dat", "Gender": "neut"},
"subst:pl:dat:n2": {POS: NOUN, "Number": "plur", "Case": "dat", "Gender": "neut"},
"subst:pl:dat:p1": {POS: NOUN, "Number": "plur", "Case": "dat", "Person": "one"},
"subst:pl:dat:p2": {POS: NOUN, "Number": "plur", "Case": "dat", "Person": "two"},
"subst:pl:dat:p3": {POS: NOUN, "Number": "plur", "Case": "dat", "Person": "three"},
"subst:pl:gen:f": {POS: NOUN, "Number": "plur", "Case": "gen", "Gender": "fem"},
"subst:pl:gen:m1": {POS: NOUN, "Number": "plur", "Case": "gen", "Gender": "Masc", "Animacy": "hum"},
"subst:pl:gen:m2": {POS: NOUN, "Number": "plur", "Case": "gen", "Gender": "masc", "Animacy": "anim"},
"subst:pl:gen:m3": {POS: NOUN, "Number": "plur", "Case": "gen", "Gender": "masc", "Animacy": "inan"},
"subst:pl:gen:n1": {POS: NOUN, "Number": "plur", "Case": "gen", "Gender": "neut"},
"subst:pl:gen:n2": {POS: NOUN, "Number": "plur", "Case": "gen", "Gender": "neut"},
"subst:pl:gen:p1": {POS: NOUN, "Number": "plur", "Case": "gen", "Person": "one"},
"subst:pl:gen:p2": {POS: NOUN, "Number": "plur", "Case": "gen", "Person": "two"},
"subst:pl:gen:p3": {POS: NOUN, "Number": "plur", "Case": "gen", "Person": "three"},
"subst:pl:inst:f": {POS: NOUN, "Number": "plur", "Case": "ins", "Gender": "fem"},
"subst:pl:inst:m1": {POS: NOUN, "Number": "plur", "Case": "ins", "Gender": "Masc", "Animacy": "hum"},
"subst:pl:inst:m2": {POS: NOUN, "Number": "plur", "Case": "ins", "Gender": "masc", "Animacy": "anim"},
"subst:pl:inst:m3": {POS: NOUN, "Number": "plur", "Case": "ins", "Gender": "masc", "Animacy": "inan"},
"subst:pl:inst:n1": {POS: NOUN, "Number": "plur", "Case": "ins", "Gender": "neut"},
"subst:pl:inst:n2": {POS: NOUN, "Number": "plur", "Case": "ins", "Gender": "neut"},
"subst:pl:inst:p1": {POS: NOUN, "Number": "plur", "Case": "ins", "Person": "one"},
"subst:pl:inst:p2": {POS: NOUN, "Number": "plur", "Case": "ins", "Person": "two"},
"subst:pl:inst:p3": {POS: NOUN, "Number": "plur", "Case": "ins", "Person": "three"},
"subst:pl:loc:f": {POS: NOUN, "Number": "plur", "Case": "loc", "Gender": "fem"},
"subst:pl:loc:m1": {POS: NOUN, "Number": "plur", "Case": "loc", "Gender": "Masc", "Animacy": "hum"},
"subst:pl:loc:m2": {POS: NOUN, "Number": "plur", "Case": "loc", "Gender": "masc", "Animacy": "anim"},
"subst:pl:loc:m3": {POS: NOUN, "Number": "plur", "Case": "loc", "Gender": "masc", "Animacy": "inan"},
"subst:pl:loc:n1": {POS: NOUN, "Number": "plur", "Case": "loc", "Gender": "neut"},
"subst:pl:loc:n2": {POS: NOUN, "Number": "plur", "Case": "loc", "Gender": "neut"},
"subst:pl:loc:p1": {POS: NOUN, "Number": "plur", "Case": "loc", "Person": "one"},
"subst:pl:loc:p2": {POS: NOUN, "Number": "plur", "Case": "loc", "Person": "two"},
"subst:pl:loc:p3": {POS: NOUN, "Number": "plur", "Case": "loc", "Person": "three"},
"subst:pl:nom:f": {POS: NOUN, "Number": "plur", "Case": "nom", "Gender": "fem"},
"subst:pl:nom:m1": {POS: NOUN, "Number": "plur", "Case": "nom", "Gender": "Masc", "Animacy": "hum"},
"subst:pl:nom:m2": {POS: NOUN, "Number": "plur", "Case": "nom", "Gender": "masc", "Animacy": "anim"},
"subst:pl:nom:m3": {POS: NOUN, "Number": "plur", "Case": "nom", "Gender": "masc", "Animacy": "inan"},
"subst:pl:nom:n1": {POS: NOUN, "Number": "plur", "Case": "nom", "Gender": "neut"},
"subst:pl:nom:n2": {POS: NOUN, "Number": "plur", "Case": "nom", "Gender": "neut"},
"subst:pl:nom:p1": {POS: NOUN, "Number": "plur", "Case": "nom", "Person": "one"},
"subst:pl:nom:p2": {POS: NOUN, "Number": "plur", "Case": "nom", "Person": "two"},
"subst:pl:nom:p3": {POS: NOUN, "Number": "plur", "Case": "nom", "Person": "three"},
"subst:pl:voc:f": {POS: NOUN, "Number": "plur", "Case": "voc", "Gender": "fem"},
"subst:pl:voc:m1": {POS: NOUN, "Number": "plur", "Case": "voc", "Gender": "Masc", "Animacy": "hum"},
"subst:pl:voc:m2": {POS: NOUN, "Number": "plur", "Case": "voc", "Gender": "masc", "Animacy": "anim"},
"subst:pl:voc:m3": {POS: NOUN, "Number": "plur", "Case": "voc", "Gender": "masc", "Animacy": "inan"},
"subst:pl:voc:n1": {POS: NOUN, "Number": "plur", "Case": "voc", "Gender": "neut"},
"subst:pl:voc:n2": {POS: NOUN, "Number": "plur", "Case": "voc", "Gender": "neut"},
"subst:pl:voc:p1": {POS: NOUN, "Number": "plur", "Case": "voc", "Person": "one"},
"subst:pl:voc:p2": {POS: NOUN, "Number": "plur", "Case": "voc", "Person": "two"},
"subst:pl:voc:p3": {POS: NOUN, "Number": "plur", "Case": "voc", "Person": "three"},
"subst:sg:acc:f": {POS: NOUN, "Number": "sing", "Case": "acc", "Gender": "fem"},
"subst:sg:acc:m1": {POS: NOUN, "Number": "sing", "Case": "acc", "Gender": "Masc", "Animacy": "hum"},
"subst:sg:acc:m2": {POS: NOUN, "Number": "sing", "Case": "acc", "Gender": "masc", "Animacy": "anim"},
"subst:sg:acc:m3": {POS: NOUN, "Number": "sing", "Case": "acc", "Gender": "masc", "Animacy": "inan"},
"subst:sg:acc:n1": {POS: NOUN, "Number": "sing", "Case": "acc", "Gender": "neut"},
"subst:sg:acc:n2": {POS: NOUN, "Number": "sing", "Case": "acc", "Gender": "neut"},
"subst:sg:dat:f": {POS: NOUN, "Number": "sing", "Case": "dat", "Gender": "fem"},
"subst:sg:dat:m1": {POS: NOUN, "Number": "sing", "Case": "dat", "Gender": "Masc", "Animacy": "hum"},
"subst:sg:dat:m2": {POS: NOUN, "Number": "sing", "Case": "dat", "Gender": "masc", "Animacy": "anim"},
"subst:sg:dat:m3": {POS: NOUN, "Number": "sing", "Case": "dat", "Gender": "masc", "Animacy": "inan"},
"subst:sg:dat:n1": {POS: NOUN, "Number": "sing", "Case": "dat", "Gender": "neut"},
"subst:sg:dat:n2": {POS: NOUN, "Number": "sing", "Case": "dat", "Gender": "neut"},
"subst:sg:gen:f": {POS: NOUN, "Number": "sing", "Case": "gen", "Gender": "fem"},
"subst:sg:gen:m1": {POS: NOUN, "Number": "sing", "Case": "gen", "Gender": "Masc", "Animacy": "hum"},
"subst:sg:gen:m2": {POS: NOUN, "Number": "sing", "Case": "gen", "Gender": "masc", "Animacy": "anim"},
"subst:sg:gen:m3": {POS: NOUN, "Number": "sing", "Case": "gen", "Gender": "masc", "Animacy": "inan"},
"subst:sg:gen:n1": {POS: NOUN, "Number": "sing", "Case": "gen", "Gender": "neut"},
"subst:sg:gen:n2": {POS: NOUN, "Number": "sing", "Case": "gen", "Gender": "neut"},
"subst:sg:inst:f": {POS: NOUN, "Number": "sing", "Case": "ins", "Gender": "fem"},
"subst:sg:inst:m1": {POS: NOUN, "Number": "sing", "Case": "ins", "Gender": "Masc", "Animacy": "hum"},
"subst:sg:inst:m2": {POS: NOUN, "Number": "sing", "Case": "ins", "Gender": "masc", "Animacy": "anim"},
"subst:sg:inst:m3": {POS: NOUN, "Number": "sing", "Case": "ins", "Gender": "masc", "Animacy": "inan"},
"subst:sg:inst:n1": {POS: NOUN, "Number": "sing", "Case": "ins", "Gender": "neut"},
"subst:sg:inst:n2": {POS: NOUN, "Number": "sing", "Case": "ins", "Gender": "neut"},
"subst:sg:loc:f": {POS: NOUN, "Number": "sing", "Case": "loc", "Gender": "fem"},
"subst:sg:loc:m1": {POS: NOUN, "Number": "sing", "Case": "loc", "Gender": "Masc", "Animacy": "hum"},
"subst:sg:loc:m2": {POS: NOUN, "Number": "sing", "Case": "loc", "Gender": "masc", "Animacy": "anim"},
"subst:sg:loc:m3": {POS: NOUN, "Number": "sing", "Case": "loc", "Gender": "masc", "Animacy": "inan"},
"subst:sg:loc:n1": {POS: NOUN, "Number": "sing", "Case": "loc", "Gender": "neut"},
"subst:sg:loc:n2": {POS: NOUN, "Number": "sing", "Case": "loc", "Gender": "neut"},
"subst:sg:nom:f": {POS: NOUN, "Number": "sing", "Case": "nom", "Gender": "fem"},
"subst:sg:nom:m1": {POS: NOUN, "Number": "sing", "Case": "nom", "Gender": "Masc", "Animacy": "hum"},
"subst:sg:nom:m2": {POS: NOUN, "Number": "sing", "Case": "nom", "Gender": "masc", "Animacy": "anim"},
"subst:sg:nom:m3": {POS: NOUN, "Number": "sing", "Case": "nom", "Gender": "masc", "Animacy": "inan"},
"subst:sg:nom:n1": {POS: NOUN, "Number": "sing", "Case": "nom", "Gender": "neut"},
"subst:sg:nom:n2": {POS: NOUN, "Number": "sing", "Case": "nom", "Gender": "neut"},
"subst:sg:voc:f": {POS: NOUN, "Number": "sing", "Case": "voc", "Gender": "fem"},
"subst:sg:voc:m1": {POS: NOUN, "Number": "sing", "Case": "voc", "Gender": "Masc", "Animacy": "hum"},
"subst:sg:voc:m2": {POS: NOUN, "Number": "sing", "Case": "voc", "Gender": "masc", "Animacy": "anim"},
"subst:sg:voc:m3": {POS: NOUN, "Number": "sing", "Case": "voc", "Gender": "masc", "Animacy": "inan"},
"subst:sg:voc:n1": {POS: NOUN, "Number": "sing", "Case": "voc", "Gender": "neut"},
"subst:sg:voc:n2": {POS: NOUN, "Number": "sing", "Case": "voc", "Gender": "neut"},
"winien:pl:m1.p1:imperf": {POS: ADJ, "Number": "plur", "Gender": "masc", "Aspect": "imp"},
"winien:pl:m2.m3.f.n1.n2.p2.p3:imperf": {POS: ADJ, "Number": "plur", "Gender": "masc|fem|neut", "Aspect": "imp"},
"winien:sg:f:imperf": {POS: ADJ, "Number": "sing", "Gender": "fem", "Aspect": "imp"},
"winien:sg:m1.m2.m3:imperf": {POS: ADJ, "Number": "sing", "Gender": "Masc", "Aspect": "imp"},
"winien:sg:n1.n2:imperf": {POS: ADJ, "Number": "sing", "Gender": "neut", "Aspect": "imp"},
# UD
"ADJ__Animacy=Hum|Aspect=Imp|Case=Acc|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Imp|Case=Acc|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Animacy=Hum|Aspect=Imp|Case=Acc|Gender=Masc|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Imp|Case=Acc|Gender=Masc|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Animacy=Hum|Aspect=Imp|Case=Dat|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Imp|Case=Dat|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Animacy=Hum|Aspect=Imp|Case=Dat|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Imp|Case=Dat|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Hum|Aspect=Imp|Case=Gen|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Imp|Case=Gen|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Animacy=Hum|Aspect=Imp|Case=Gen|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Imp|Case=Gen|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Hum|Aspect=Imp|Case=Gen|Gender=Masc|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Imp|Case=Gen|Gender=Masc|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Animacy=Hum|Aspect=Imp|Case=Gen|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Imp|Case=Gen|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Hum|Aspect=Imp|Case=Ins|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Imp|Case=Ins|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Animacy=Hum|Aspect=Imp|Case=Ins|Gender=Masc|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Imp|Case=Ins|Gender=Masc|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Animacy=Hum|Aspect=Imp|Case=Ins|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Imp|Case=Ins|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Hum|Aspect=Imp|Case=Loc|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Imp|Case=Loc|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Hum|Aspect=Imp|Case=Nom|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Imp|Case=Nom|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Animacy=Hum|Aspect=Imp|Case=Nom|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Imp|Case=Nom|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Hum|Aspect=Imp|Case=Nom|Gender=Masc|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Imp|Case=Nom|Gender=Masc|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Animacy=Hum|Aspect=Imp|Case=Nom|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Imp|Case=Nom|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Hum|Aspect=Imp|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Imp|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Hum|Aspect=Imp|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Imp|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Hum|Aspect=Perf|Case=Acc|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Perf|Case=Acc|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Hum|Aspect=Perf|Case=Acc|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Perf|Case=Acc|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Hum|Aspect=Perf|Case=Dat|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Perf|Case=Dat|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Hum|Aspect=Perf|Case=Gen|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Perf|Case=Gen|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Hum|Aspect=Perf|Case=Gen|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Perf|Case=Gen|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Hum|Aspect=Perf|Case=Ins|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Perf|Case=Ins|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Hum|Aspect=Perf|Case=Ins|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Perf|Case=Ins|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Hum|Aspect=Perf|Case=Loc|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Perf|Case=Loc|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Hum|Aspect=Perf|Case=Nom|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Perf|Case=Nom|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Hum|Aspect=Perf|Case=Nom|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Hum|Aspect=Perf|Case=Nom|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Hum|Case=Acc|Degree=Pos|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Hum|Case=Acc|Degree=Pos|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Hum|Case=Acc|Degree=Pos|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Hum|Case=Acc|Degree=Pos|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Hum|Case=Acc|Degree=Sup|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Hum|Case=Acc|Degree=Sup|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Hum|Case=Dat|Degree=Pos|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Hum|Case=Dat|Degree=Pos|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Hum|Case=Dat|Degree=Pos|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Hum|Case=Dat|Degree=Pos|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Hum|Case=Dat|Degree=Sup|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Hum|Case=Dat|Degree=Sup|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Hum|Case=Gen|Degree=Pos|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Hum|Case=Gen|Degree=Pos|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Hum|Case=Gen|Degree=Pos|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Hum|Case=Gen|Degree=Pos|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Hum|Case=Gen|Degree=Sup|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Hum|Case=Gen|Degree=Sup|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Hum|Case=Gen|Degree=Sup|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Hum|Case=Gen|Degree=Sup|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Hum|Case=Ins|Degree=Pos|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Hum|Case=Ins|Degree=Pos|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Hum|Case=Ins|Degree=Pos|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Hum|Case=Ins|Degree=Pos|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Hum|Case=Ins|Degree=Sup|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Hum|Case=Ins|Degree=Sup|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Hum|Case=Ins|Degree=Sup|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Hum|Case=Ins|Degree=Sup|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Hum|Case=Loc|Degree=Pos|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Hum|Case=Loc|Degree=Pos|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Hum|Case=Loc|Degree=Pos|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Hum|Case=Loc|Degree=Pos|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Hum|Case=Loc|Degree=Sup|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Hum|Case=Loc|Degree=Sup|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Hum|Case=Nom|Degree=Pos|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Hum|Case=Nom|Degree=Pos|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Hum|Case=Nom|Degree=Pos|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Hum|Case=Nom|Degree=Pos|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Hum|Case=Nom|Degree=Sup|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Hum|Case=Nom|Degree=Sup|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Hum|Case=Nom|Degree=Sup|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Hum|Case=Nom|Degree=Sup|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Inan|Aspect=Imp|Case=Acc|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Imp|Case=Acc|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Animacy=Inan|Aspect=Imp|Case=Acc|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Imp|Case=Acc|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Inan|Aspect=Imp|Case=Acc|Gender=Masc|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Imp|Case=Acc|Gender=Masc|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Animacy=Inan|Aspect=Imp|Case=Acc|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Imp|Case=Acc|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Inan|Aspect=Imp|Case=Dat|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Imp|Case=Dat|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Animacy=Inan|Aspect=Imp|Case=Gen|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Imp|Case=Gen|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Animacy=Inan|Aspect=Imp|Case=Gen|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Imp|Case=Gen|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Inan|Aspect=Imp|Case=Gen|Gender=Masc|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Imp|Case=Gen|Gender=Masc|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Animacy=Inan|Aspect=Imp|Case=Gen|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Imp|Case=Gen|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Inan|Aspect=Imp|Case=Ins|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Imp|Case=Ins|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Animacy=Inan|Aspect=Imp|Case=Ins|Gender=Masc|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Imp|Case=Ins|Gender=Masc|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Animacy=Inan|Aspect=Imp|Case=Ins|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Imp|Case=Ins|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Inan|Aspect=Imp|Case=Loc|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Imp|Case=Loc|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Animacy=Inan|Aspect=Imp|Case=Loc|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Imp|Case=Loc|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Inan|Aspect=Imp|Case=Loc|Gender=Masc|Number=Sing|Polarity=Neg|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Imp|Case=Loc|Gender=Masc|Number=Sing|Polarity=Neg|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Inan|Aspect=Imp|Case=Loc|Gender=Masc|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Imp|Case=Loc|Gender=Masc|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Animacy=Inan|Aspect=Imp|Case=Loc|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Imp|Case=Loc|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Inan|Aspect=Imp|Case=Nom|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Imp|Case=Nom|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Animacy=Inan|Aspect=Imp|Case=Nom|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Imp|Case=Nom|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Inan|Aspect=Imp|Case=Nom|Gender=Masc|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Imp|Case=Nom|Gender=Masc|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Animacy=Inan|Aspect=Imp|Case=Nom|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Imp|Case=Nom|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Inan|Aspect=Imp|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Imp|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Inan|Aspect=Imp|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Imp|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Inan|Aspect=Perf|Case=Acc|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Perf|Case=Acc|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Inan|Aspect=Perf|Case=Acc|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Perf|Case=Acc|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Inan|Aspect=Perf|Case=Gen|Gender=Masc|Number=Plur|Polarity=Neg|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Perf|Case=Gen|Gender=Masc|Number=Plur|Polarity=Neg|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Inan|Aspect=Perf|Case=Gen|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Perf|Case=Gen|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Inan|Aspect=Perf|Case=Gen|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Perf|Case=Gen|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Inan|Aspect=Perf|Case=Ins|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Perf|Case=Ins|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Inan|Aspect=Perf|Case=Ins|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Perf|Case=Ins|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Inan|Aspect=Perf|Case=Loc|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Perf|Case=Loc|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Inan|Aspect=Perf|Case=Loc|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Perf|Case=Loc|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Inan|Aspect=Perf|Case=Nom|Gender=Masc|Number=Plur|Polarity=Neg|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Perf|Case=Nom|Gender=Masc|Number=Plur|Polarity=Neg|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Inan|Aspect=Perf|Case=Nom|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Perf|Case=Nom|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Inan|Aspect=Perf|Case=Nom|Gender=Masc|Number=Sing|Polarity=Neg|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Perf|Case=Nom|Gender=Masc|Number=Sing|Polarity=Neg|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Inan|Aspect=Perf|Case=Nom|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Inan|Aspect=Perf|Case=Nom|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Inan|Case=Acc|Degree=Pos|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Inan|Case=Acc|Degree=Pos|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Inan|Case=Acc|Degree=Pos|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Inan|Case=Acc|Degree=Pos|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Inan|Case=Acc|Degree=Sup|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Inan|Case=Acc|Degree=Sup|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Inan|Case=Acc|Degree=Sup|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Inan|Case=Acc|Degree=Sup|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Inan|Case=Dat|Degree=Pos|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Inan|Case=Dat|Degree=Pos|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Inan|Case=Dat|Degree=Pos|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Inan|Case=Dat|Degree=Pos|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Inan|Case=Gen|Degree=Pos|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Inan|Case=Gen|Degree=Pos|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Inan|Case=Gen|Degree=Pos|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Inan|Case=Gen|Degree=Pos|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Inan|Case=Gen|Degree=Sup|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Inan|Case=Gen|Degree=Sup|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Inan|Case=Gen|Degree=Sup|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Inan|Case=Gen|Degree=Sup|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Inan|Case=Ins|Degree=Pos|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Inan|Case=Ins|Degree=Pos|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Inan|Case=Ins|Degree=Pos|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Inan|Case=Ins|Degree=Pos|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Inan|Case=Ins|Degree=Sup|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Inan|Case=Ins|Degree=Sup|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Inan|Case=Ins|Degree=Sup|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Inan|Case=Ins|Degree=Sup|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Inan|Case=Ins|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Inan|Case=Ins|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Inan|Case=Loc|Degree=Pos|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Inan|Case=Loc|Degree=Pos|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Inan|Case=Loc|Degree=Pos|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Inan|Case=Loc|Degree=Pos|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Inan|Case=Loc|Degree=Sup|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Inan|Case=Loc|Degree=Sup|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Inan|Case=Loc|Degree=Sup|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Inan|Case=Loc|Degree=Sup|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Inan|Case=Loc|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Inan|Case=Loc|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Inan|Case=Nom|Degree=Pos|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Inan|Case=Nom|Degree=Pos|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Inan|Case=Nom|Degree=Pos|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Inan|Case=Nom|Degree=Pos|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Inan|Case=Nom|Degree=Sup|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Inan|Case=Nom|Degree=Sup|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Inan|Case=Nom|Degree=Sup|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Inan|Case=Nom|Degree=Sup|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Nhum|Aspect=Imp|Case=Acc|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Animacy=Nhum|Aspect=Imp|Case=Acc|Gender=Masc|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Animacy=Nhum|Aspect=Imp|Case=Acc|Gender=Masc|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Animacy=Nhum|Aspect=Imp|Case=Acc|Gender=Masc|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Animacy=Nhum|Aspect=Imp|Case=Gen|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Nhum|Aspect=Imp|Case=Gen|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Nhum|Aspect=Imp|Case=Nom|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Nhum|Aspect=Imp|Case=Nom|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Nhum|Aspect=Imp|Case=Nom|Gender=Masc|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Animacy=Nhum|Aspect=Imp|Case=Nom|Gender=Masc|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Animacy=Nhum|Aspect=Imp|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Nhum|Aspect=Imp|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Nhum|Aspect=Perf|Case=Acc|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Nhum|Aspect=Perf|Case=Acc|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Nhum|Aspect=Perf|Case=Acc|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Nhum|Aspect=Perf|Case=Acc|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Nhum|Aspect=Perf|Case=Gen|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Nhum|Aspect=Perf|Case=Gen|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Nhum|Aspect=Perf|Case=Nom|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Nhum|Aspect=Perf|Case=Nom|Gender=Masc|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Nhum|Aspect=Perf|Case=Nom|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Animacy=Nhum|Aspect=Perf|Case=Nom|Gender=Masc|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Animacy=Nhum|Case=Acc|Degree=Pos|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Nhum|Case=Acc|Degree=Pos|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Nhum|Case=Acc|Degree=Pos|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Nhum|Case=Acc|Degree=Pos|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Nhum|Case=Acc|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Nhum|Case=Acc|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Nhum|Case=Gen|Degree=Pos|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Nhum|Case=Gen|Degree=Pos|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Nhum|Case=Gen|Degree=Pos|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Nhum|Case=Gen|Degree=Pos|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Nhum|Case=Ins|Degree=Pos|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Nhum|Case=Ins|Degree=Pos|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Nhum|Case=Ins|Degree=Pos|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Nhum|Case=Ins|Degree=Pos|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Nhum|Case=Loc|Degree=Pos|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Nhum|Case=Loc|Degree=Pos|Gender=Masc|Number=Sing"},
"ADJ__Animacy=Nhum|Case=Nom|Degree=Pos|Gender=Masc|Number=Plur": {POS: ADJ, "morph": "Animacy=Nhum|Case=Nom|Degree=Pos|Gender=Masc|Number=Plur"},
"ADJ__Animacy=Nhum|Case=Nom|Degree=Pos|Gender=Masc|Number=Sing": {POS: ADJ, "morph": "Animacy=Nhum|Case=Nom|Degree=Pos|Gender=Masc|Number=Sing"},
"ADJ__Aspect=Imp|Case=Acc|Gender=Fem|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Aspect=Imp|Case=Acc|Gender=Fem|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Aspect=Imp|Case=Acc|Gender=Fem|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Imp|Case=Acc|Gender=Fem|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Imp|Case=Acc|Gender=Fem|Number=Sing|Polarity=Neg|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Imp|Case=Acc|Gender=Fem|Number=Sing|Polarity=Neg|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Imp|Case=Acc|Gender=Fem|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Aspect=Imp|Case=Acc|Gender=Fem|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Aspect=Imp|Case=Acc|Gender=Fem|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Imp|Case=Acc|Gender=Fem|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Imp|Case=Acc|Gender=Neut|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Aspect=Imp|Case=Acc|Gender=Neut|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Aspect=Imp|Case=Acc|Gender=Neut|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Aspect=Imp|Case=Acc|Gender=Neut|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Aspect=Imp|Case=Acc|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Imp|Case=Acc|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Imp|Case=Dat|Gender=Fem|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Aspect=Imp|Case=Dat|Gender=Fem|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Aspect=Imp|Case=Dat|Gender=Fem|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Imp|Case=Dat|Gender=Fem|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Imp|Case=Dat|Gender=Fem|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Aspect=Imp|Case=Dat|Gender=Fem|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Aspect=Imp|Case=Gen|Gender=Fem|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Aspect=Imp|Case=Gen|Gender=Fem|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Aspect=Imp|Case=Gen|Gender=Fem|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Imp|Case=Gen|Gender=Fem|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Imp|Case=Gen|Gender=Fem|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Aspect=Imp|Case=Gen|Gender=Fem|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Aspect=Imp|Case=Gen|Gender=Fem|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Imp|Case=Gen|Gender=Fem|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Imp|Case=Gen|Gender=Neut|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Aspect=Imp|Case=Gen|Gender=Neut|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Aspect=Imp|Case=Gen|Gender=Neut|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Imp|Case=Gen|Gender=Neut|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Imp|Case=Gen|Gender=Neut|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Aspect=Imp|Case=Gen|Gender=Neut|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Aspect=Imp|Case=Gen|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Imp|Case=Gen|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Imp|Case=Ins|Gender=Fem|Number=Sing|Polarity=Neg|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Imp|Case=Ins|Gender=Fem|Number=Sing|Polarity=Neg|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Imp|Case=Ins|Gender=Fem|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Aspect=Imp|Case=Ins|Gender=Fem|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Aspect=Imp|Case=Ins|Gender=Fem|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Imp|Case=Ins|Gender=Fem|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Imp|Case=Ins|Gender=Neut|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Aspect=Imp|Case=Ins|Gender=Neut|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Aspect=Imp|Case=Ins|Gender=Neut|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Aspect=Imp|Case=Ins|Gender=Neut|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Aspect=Imp|Case=Loc|Gender=Fem|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Aspect=Imp|Case=Loc|Gender=Fem|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Aspect=Imp|Case=Loc|Gender=Fem|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Aspect=Imp|Case=Loc|Gender=Fem|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Aspect=Imp|Case=Loc|Gender=Neut|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Aspect=Imp|Case=Loc|Gender=Neut|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Aspect=Imp|Case=Loc|Gender=Neut|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Imp|Case=Loc|Gender=Neut|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Imp|Case=Loc|Gender=Neut|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Aspect=Imp|Case=Loc|Gender=Neut|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Aspect=Imp|Case=Loc|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Imp|Case=Loc|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Imp|Case=Nom|Gender=Fem|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Aspect=Imp|Case=Nom|Gender=Fem|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Aspect=Imp|Case=Nom|Gender=Fem|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Imp|Case=Nom|Gender=Fem|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Imp|Case=Nom|Gender=Fem|Number=Sing|Polarity=Neg|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Imp|Case=Nom|Gender=Fem|Number=Sing|Polarity=Neg|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Imp|Case=Nom|Gender=Fem|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Aspect=Imp|Case=Nom|Gender=Fem|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Aspect=Imp|Case=Nom|Gender=Fem|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Imp|Case=Nom|Gender=Fem|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Imp|Case=Nom|Gender=Neut|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Aspect=Imp|Case=Nom|Gender=Neut|Number=Plur|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Aspect=Imp|Case=Nom|Gender=Neut|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Imp|Case=Nom|Gender=Neut|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Imp|Case=Nom|Gender=Neut|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act": {POS: ADJ, "morph": "Aspect=Imp|Case=Nom|Gender=Neut|Number=Sing|Polarity=Pos|Tense=Pres|VerbForm=Part|Voice=Act"},
"ADJ__Aspect=Imp|Case=Nom|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Imp|Case=Nom|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Imp|Gender=Fem|Number=Plur": {POS: ADJ, "morph": "Aspect=Imp|Gender=Fem|Number=Plur"},
"ADJ__Aspect=Imp|Gender=Fem|Number=Sing": {POS: ADJ, "morph": "Aspect=Imp|Gender=Fem|Number=Sing"},
"ADJ__Aspect=Imp|Gender=Neut|Number=Plur": {POS: ADJ, "morph": "Aspect=Imp|Gender=Neut|Number=Plur"},
"ADJ__Aspect=Imp|Gender=Neut|Number=Sing": {POS: ADJ, "morph": "Aspect=Imp|Gender=Neut|Number=Sing"},
"ADJ__Aspect=Perf|Case=Acc|Gender=Fem|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Acc|Gender=Fem|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Acc|Gender=Fem|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Acc|Gender=Fem|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Acc|Gender=Neut|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Acc|Gender=Neut|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Acc|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Acc|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Dat|Gender=Fem|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Dat|Gender=Fem|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Dat|Gender=Fem|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Dat|Gender=Fem|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Dat|Gender=Neut|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Dat|Gender=Neut|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Dat|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Dat|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Gen|Gender=Fem|Number=Plur|Polarity=Neg|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Gen|Gender=Fem|Number=Plur|Polarity=Neg|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Gen|Gender=Fem|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Gen|Gender=Fem|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Gen|Gender=Fem|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Gen|Gender=Fem|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Gen|Gender=Neut|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Gen|Gender=Neut|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Gen|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Gen|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Ins|Gender=Fem|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Ins|Gender=Fem|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Ins|Gender=Fem|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Ins|Gender=Fem|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Ins|Gender=Neut|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Ins|Gender=Neut|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Ins|Gender=Neut|Number=Sing|Polarity=Neg|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Ins|Gender=Neut|Number=Sing|Polarity=Neg|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Ins|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Ins|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Loc|Gender=Fem|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Loc|Gender=Fem|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Loc|Gender=Fem|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Loc|Gender=Fem|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Loc|Gender=Neut|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Loc|Gender=Neut|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Loc|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Loc|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Nom|Gender=Fem|Number=Plur|Polarity=Neg|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Nom|Gender=Fem|Number=Plur|Polarity=Neg|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Nom|Gender=Fem|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Nom|Gender=Fem|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Nom|Gender=Fem|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Nom|Gender=Fem|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Nom|Gender=Neut|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Nom|Gender=Neut|Number=Plur|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Aspect=Perf|Case=Nom|Gender=Neut|Number=Sing|Polarity=Pos": {POS: ADJ, "morph": "Aspect=Perf|Case=Nom|Gender=Neut|Number=Sing|Polarity=Pos"},
"ADJ__Aspect=Perf|Case=Nom|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass": {POS: ADJ, "morph": "Aspect=Perf|Case=Nom|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Part|Voice=Pass"},
"ADJ__Case=Acc|Degree=Pos|Gender=Fem|Number=Plur": {POS: ADJ, "morph": "Case=Acc|Degree=Pos|Gender=Fem|Number=Plur"},
"ADJ__Case=Acc|Degree=Pos|Gender=Fem|Number=Sing": {POS: ADJ, "morph": "Case=Acc|Degree=Pos|Gender=Fem|Number=Sing"},
"ADJ__Case=Acc|Degree=Pos|Gender=Neut|Number=Plur": {POS: ADJ, "morph": "Case=Acc|Degree=Pos|Gender=Neut|Number=Plur"},
"ADJ__Case=Acc|Degree=Pos|Gender=Neut|Number=Sing": {POS: ADJ, "morph": "Case=Acc|Degree=Pos|Gender=Neut|Number=Sing"},
"ADJ__Case=Acc|Degree=Sup|Gender=Fem|Number=Plur": {POS: ADJ, "morph": "Case=Acc|Degree=Sup|Gender=Fem|Number=Plur"},
"ADJ__Case=Acc|Degree=Sup|Gender=Fem|Number=Sing": {POS: ADJ, "morph": "Case=Acc|Degree=Sup|Gender=Fem|Number=Sing"},
"ADJ__Case=Acc|Degree=Sup|Gender=Neut|Number=Plur": {POS: ADJ, "morph": "Case=Acc|Degree=Sup|Gender=Neut|Number=Plur"},
"ADJ__Case=Acc|Degree=Sup|Gender=Neut|Number=Sing": {POS: ADJ, "morph": "Case=Acc|Degree=Sup|Gender=Neut|Number=Sing"},
"ADJ__Case=Acc|Gender=Fem|Number=Plur": {POS: ADJ, "morph": "Case=Acc|Gender=Fem|Number=Plur"},
"ADJ__Case=Acc|Gender=Fem|Number=Sing": {POS: ADJ, "morph": "Case=Acc|Gender=Fem|Number=Sing"},
"ADJ__Case=Acc|Gender=Neut|Number=Plur": {POS: ADJ, "morph": "Case=Acc|Gender=Neut|Number=Plur"},
"ADJ__Case=Acc|Gender=Neut|Number=Sing": {POS: ADJ, "morph": "Case=Acc|Gender=Neut|Number=Sing"},
"ADJ__Case=Dat|Degree=Pos|Gender=Fem|Number=Plur": {POS: ADJ, "morph": "Case=Dat|Degree=Pos|Gender=Fem|Number=Plur"},
"ADJ__Case=Dat|Degree=Pos|Gender=Fem|Number=Sing": {POS: ADJ, "morph": "Case=Dat|Degree=Pos|Gender=Fem|Number=Sing"},
"ADJ__Case=Dat|Degree=Pos|Gender=Neut|Number=Plur": {POS: ADJ, "morph": "Case=Dat|Degree=Pos|Gender=Neut|Number=Plur"},
"ADJ__Case=Dat|Degree=Pos|Gender=Neut|Number=Sing": {POS: ADJ, "morph": "Case=Dat|Degree=Pos|Gender=Neut|Number=Sing"},
"ADJ__Case=Dat|Degree=Sup|Gender=Neut|Number=Plur": {POS: ADJ, "morph": "Case=Dat|Degree=Sup|Gender=Neut|Number=Plur"},
"ADJ__Case=Gen|Degree=Pos|Gender=Fem|Number=Plur": {POS: ADJ, "morph": "Case=Gen|Degree=Pos|Gender=Fem|Number=Plur"},
"ADJ__Case=Gen|Degree=Pos|Gender=Fem|Number=Sing": {POS: ADJ, "morph": "Case=Gen|Degree=Pos|Gender=Fem|Number=Sing"},
"ADJ__Case=Gen|Degree=Pos|Gender=Neut|Number=Plur": {POS: ADJ, "morph": "Case=Gen|Degree=Pos|Gender=Neut|Number=Plur"},
"ADJ__Case=Gen|Degree=Pos|Gender=Neut|Number=Sing": {POS: ADJ, "morph": "Case=Gen|Degree=Pos|Gender=Neut|Number=Sing"},
"ADJ__Case=Gen|Degree=Sup|Gender=Fem|Number=Plur": {POS: ADJ, "morph": "Case=Gen|Degree=Sup|Gender=Fem|Number=Plur"},
"ADJ__Case=Gen|Degree=Sup|Gender=Fem|Number=Sing": {POS: ADJ, "morph": "Case=Gen|Degree=Sup|Gender=Fem|Number=Sing"},
"ADJ__Case=Gen|Degree=Sup|Gender=Neut|Number=Plur": {POS: ADJ, "morph": "Case=Gen|Degree=Sup|Gender=Neut|Number=Plur"},
"ADJ__Case=Gen|Degree=Sup|Gender=Neut|Number=Sing": {POS: ADJ, "morph": "Case=Gen|Degree=Sup|Gender=Neut|Number=Sing"},
"ADJ__Case=Gen|Gender=Fem|Number=Plur": {POS: ADJ, "morph": "Case=Gen|Gender=Fem|Number=Plur"},
"ADJ__Case=Gen|Gender=Fem|Number=Sing": {POS: ADJ, "morph": "Case=Gen|Gender=Fem|Number=Sing"},
"ADJ__Case=Gen|Gender=Neut|Number=Plur": {POS: ADJ, "morph": "Case=Gen|Gender=Neut|Number=Plur"},
"ADJ__Case=Gen|Gender=Neut|Number=Sing": {POS: ADJ, "morph": "Case=Gen|Gender=Neut|Number=Sing"},
"ADJ__Case=Ins|Degree=Pos|Gender=Fem|Number=Plur": {POS: ADJ, "morph": "Case=Ins|Degree=Pos|Gender=Fem|Number=Plur"},
"ADJ__Case=Ins|Degree=Pos|Gender=Fem|Number=Sing": {POS: ADJ, "morph": "Case=Ins|Degree=Pos|Gender=Fem|Number=Sing"},
"ADJ__Case=Ins|Degree=Pos|Gender=Neut|Number=Plur": {POS: ADJ, "morph": "Case=Ins|Degree=Pos|Gender=Neut|Number=Plur"},
"ADJ__Case=Ins|Degree=Pos|Gender=Neut|Number=Sing": {POS: ADJ, "morph": "Case=Ins|Degree=Pos|Gender=Neut|Number=Sing"},
"ADJ__Case=Ins|Degree=Sup|Gender=Fem|Number=Sing": {POS: ADJ, "morph": "Case=Ins|Degree=Sup|Gender=Fem|Number=Sing"},
"ADJ__Case=Ins|Degree=Sup|Gender=Neut|Number=Plur": {POS: ADJ, "morph": "Case=Ins|Degree=Sup|Gender=Neut|Number=Plur"},
"ADJ__Case=Ins|Degree=Sup|Gender=Neut|Number=Sing": {POS: ADJ, "morph": "Case=Ins|Degree=Sup|Gender=Neut|Number=Sing"},
"ADJ__Case=Ins|Gender=Fem|Number=Plur": {POS: ADJ, "morph": "Case=Ins|Gender=Fem|Number=Plur"},
"ADJ__Case=Ins|Gender=Fem|Number=Sing": {POS: ADJ, "morph": "Case=Ins|Gender=Fem|Number=Sing"},
"ADJ__Case=Ins|Gender=Neut|Number=Sing": {POS: ADJ, "morph": "Case=Ins|Gender=Neut|Number=Sing"},
"ADJ__Case=Loc|Degree=Pos|Gender=Fem|Number=Plur": {POS: ADJ, "morph": "Case=Loc|Degree=Pos|Gender=Fem|Number=Plur"},
"ADJ__Case=Loc|Degree=Pos|Gender=Fem|Number=Sing": {POS: ADJ, "morph": "Case=Loc|Degree=Pos|Gender=Fem|Number=Sing"},
"ADJ__Case=Loc|Degree=Pos|Gender=Neut|Number=Plur": {POS: ADJ, "morph": "Case=Loc|Degree=Pos|Gender=Neut|Number=Plur"},
"ADJ__Case=Loc|Degree=Pos|Gender=Neut|Number=Sing": {POS: ADJ, "morph": "Case=Loc|Degree=Pos|Gender=Neut|Number=Sing"},
"ADJ__Case=Loc|Degree=Sup|Gender=Fem|Number=Plur": {POS: ADJ, "morph": "Case=Loc|Degree=Sup|Gender=Fem|Number=Plur"},
"ADJ__Case=Loc|Degree=Sup|Gender=Neut|Number=Plur": {POS: ADJ, "morph": "Case=Loc|Degree=Sup|Gender=Neut|Number=Plur"},
"ADJ__Case=Loc|Degree=Sup|Gender=Neut|Number=Sing": {POS: ADJ, "morph": "Case=Loc|Degree=Sup|Gender=Neut|Number=Sing"},
"ADJ__Case=Loc|Gender=Fem|Number=Plur": {POS: ADJ, "morph": "Case=Loc|Gender=Fem|Number=Plur"},
"ADJ__Case=Loc|Gender=Fem|Number=Sing": {POS: ADJ, "morph": "Case=Loc|Gender=Fem|Number=Sing"},
"ADJ__Case=Loc|Gender=Neut|Number=Plur": {POS: ADJ, "morph": "Case=Loc|Gender=Neut|Number=Plur"},
"ADJ__Case=Loc|Gender=Neut|Number=Sing": {POS: ADJ, "morph": "Case=Loc|Gender=Neut|Number=Sing"},
"ADJ__Case=Nom|Degree=Pos|Gender=Fem|Number=Plur": {POS: ADJ, "morph": "Case=Nom|Degree=Pos|Gender=Fem|Number=Plur"},
"ADJ__Case=Nom|Degree=Pos|Gender=Fem|Number=Sing": {POS: ADJ, "morph": "Case=Nom|Degree=Pos|Gender=Fem|Number=Sing"},
"ADJ__Case=Nom|Degree=Pos|Gender=Neut|Number=Plur": {POS: ADJ, "morph": "Case=Nom|Degree=Pos|Gender=Neut|Number=Plur"},
"ADJ__Case=Nom|Degree=Pos|Gender=Neut|Number=Sing": {POS: ADJ, "morph": "Case=Nom|Degree=Pos|Gender=Neut|Number=Sing"},
"ADJ__Case=Nom|Degree=Sup|Gender=Fem|Number=Plur": {POS: ADJ, "morph": "Case=Nom|Degree=Sup|Gender=Fem|Number=Plur"},
"ADJ__Case=Nom|Degree=Sup|Gender=Fem|Number=Sing": {POS: ADJ, "morph": "Case=Nom|Degree=Sup|Gender=Fem|Number=Sing"},
"ADJ__Case=Nom|Degree=Sup|Gender=Neut|Number=Plur": {POS: ADJ, "morph": "Case=Nom|Degree=Sup|Gender=Neut|Number=Plur"},
"ADJ__Case=Nom|Degree=Sup|Gender=Neut|Number=Sing": {POS: ADJ, "morph": "Case=Nom|Degree=Sup|Gender=Neut|Number=Sing"},
"ADJ__Case=Nom|Gender=Fem|Number=Plur": {POS: ADJ, "morph": "Case=Nom|Gender=Fem|Number=Plur"},
"ADJ__Case=Nom|Gender=Fem|Number=Sing": {POS: ADJ, "morph": "Case=Nom|Gender=Fem|Number=Sing"},
"ADJ__Case=Nom|Gender=Neut|Number=Plur": {POS: ADJ, "morph": "Case=Nom|Gender=Neut|Number=Plur"},
"ADJ__Case=Nom|Gender=Neut|Number=Sing": {POS: ADJ, "morph": "Case=Nom|Gender=Neut|Number=Sing"},
"ADJ__Hyph=Yes": {POS: ADJ, "morph": "Hyph=Yes"},
"ADJ__PrepCase=Pre": {POS: ADJ, "morph": "PrepCase=Pre"},
"ADP__AdpType=Prep|Case=Acc": {POS: ADP, "morph": "AdpType=Prep|Case=Acc"},
"ADP__AdpType=Prep|Case=Acc|Variant=Long": {POS: ADP, "morph": "AdpType=Prep|Case=Acc|Variant=Long"},
"ADP__AdpType=Prep|Case=Acc|Variant=Short": {POS: ADP, "morph": "AdpType=Prep|Case=Acc|Variant=Short"},
"ADP__AdpType=Prep|Case=Dat": {POS: ADP, "morph": "AdpType=Prep|Case=Dat"},
"ADP__AdpType=Prep|Case=Gen": {POS: ADP, "morph": "AdpType=Prep|Case=Gen"},
"ADP__AdpType=Prep|Case=Gen|Variant=Long": {POS: ADP, "morph": "AdpType=Prep|Case=Gen|Variant=Long"},
"ADP__AdpType=Prep|Case=Gen|Variant=Short": {POS: ADP, "morph": "AdpType=Prep|Case=Gen|Variant=Short"},
"ADP__AdpType=Prep|Case=Ins": {POS: ADP, "morph": "AdpType=Prep|Case=Ins"},
"ADP__AdpType=Prep|Case=Ins|Variant=Long": {POS: ADP, "morph": "AdpType=Prep|Case=Ins|Variant=Long"},
"ADP__AdpType=Prep|Case=Ins|Variant=Short": {POS: ADP, "morph": "AdpType=Prep|Case=Ins|Variant=Short"},
"ADP__AdpType=Prep|Case=Loc": {POS: ADP, "morph": "AdpType=Prep|Case=Loc"},
"ADP__AdpType=Prep|Case=Loc|Variant=Long": {POS: ADP, "morph": "AdpType=Prep|Case=Loc|Variant=Long"},
"ADP__AdpType=Prep|Case=Loc|Variant=Short": {POS: ADP, "morph": "AdpType=Prep|Case=Loc|Variant=Short"},
"ADP__AdpType=Prep|Case=Nom": {POS: ADP, "morph": "AdpType=Prep|Case=Nom"},
"ADV___": {POS: ADV},
"ADV__Degree=Pos": {POS: ADV, "morph": "Degree=Pos"},
"ADV__Degree=Sup": {POS: ADV, "morph": "Degree=Sup"},
"AUX___": {POS: AUX},
"AUX__Animacy=Hum|Aspect=Imp|Gender=Masc|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act": {POS: AUX, "morph": "Animacy=Hum|Aspect=Imp|Gender=Masc|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act"},
"AUX__Animacy=Hum|Aspect=Imp|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act": {POS: AUX, "morph": "Animacy=Hum|Aspect=Imp|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act"},
"AUX__Animacy=Hum|Aspect=Perf|Gender=Masc|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act": {POS: AUX, "morph": "Animacy=Hum|Aspect=Perf|Gender=Masc|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act"},
"AUX__Animacy=Hum|Aspect=Perf|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act": {POS: AUX, "morph": "Animacy=Hum|Aspect=Perf|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act"},
"AUX__Animacy=Inan|Aspect=Imp|Gender=Masc|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act": {POS: AUX, "morph": "Animacy=Inan|Aspect=Imp|Gender=Masc|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act"},
"AUX__Animacy=Inan|Aspect=Imp|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act": {POS: AUX, "morph": "Animacy=Inan|Aspect=Imp|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act"},
"AUX__Animacy=Inan|Aspect=Perf|Gender=Masc|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act": {POS: AUX, "morph": "Animacy=Inan|Aspect=Perf|Gender=Masc|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act"},
"AUX__Animacy=Inan|Aspect=Perf|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act": {POS: AUX, "morph": "Animacy=Inan|Aspect=Perf|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act"},
"AUX__Animacy=Nhum|Aspect=Imp|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act": {POS: AUX, "morph": "Animacy=Nhum|Aspect=Imp|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act"},
"AUX__Animacy=Nhum|Aspect=Perf|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act": {POS: AUX, "morph": "Animacy=Nhum|Aspect=Perf|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act"},
"AUX__Aspect=Imp|Gender=Fem|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act": {POS: AUX, "morph": "Aspect=Imp|Gender=Fem|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act"},
"AUX__Aspect=Imp|Gender=Fem|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act": {POS: AUX, "morph": "Aspect=Imp|Gender=Fem|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act"},
"AUX__Aspect=Imp|Gender=Neut|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act": {POS: AUX, "morph": "Aspect=Imp|Gender=Neut|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act"},
"AUX__Aspect=Imp|Gender=Neut|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act": {POS: AUX, "morph": "Aspect=Imp|Gender=Neut|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act"},
"AUX__Aspect=Imp|Mood=Cnd|VerbForm=Fin": {POS: AUX, "morph": "Aspect=Imp|Mood=Cnd|VerbForm=Fin"},
"AUX__Aspect=Imp|Mood=Imp|Number=Sing|Person=2|VerbForm=Fin": {POS: AUX, "morph": "Aspect=Imp|Mood=Imp|Number=Sing|Person=2|VerbForm=Fin"},
"AUX__Aspect=Imp|Mood=Ind|Number=Plur|Person=1|Tense=Fut|VerbForm=Fin": {POS: AUX, "morph": "Aspect=Imp|Mood=Ind|Number=Plur|Person=1|Tense=Fut|VerbForm=Fin"},
"AUX__Aspect=Imp|Mood=Ind|Number=Plur|Person=1|Tense=Pres|Variant=Short|VerbForm=Fin": {POS: AUX, "morph": "Aspect=Imp|Mood=Ind|Number=Plur|Person=1|Tense=Pres|Variant=Short|VerbForm=Fin"},
"AUX__Aspect=Imp|Mood=Ind|Number=Plur|Person=1|Tense=Pres|VerbForm=Fin": {POS: AUX, "morph": "Aspect=Imp|Mood=Ind|Number=Plur|Person=1|Tense=Pres|VerbForm=Fin"},
"AUX__Aspect=Imp|Mood=Ind|Number=Plur|Person=2|Tense=Pres|Variant=Short|VerbForm=Fin": {POS: AUX, "morph": "Aspect=Imp|Mood=Ind|Number=Plur|Person=2|Tense=Pres|Variant=Short|VerbForm=Fin"},
"AUX__Aspect=Imp|Mood=Ind|Number=Plur|Person=2|Tense=Pres|VerbForm=Fin": {POS: AUX, "morph": "Aspect=Imp|Mood=Ind|Number=Plur|Person=2|Tense=Pres|VerbForm=Fin"},
"AUX__Aspect=Imp|Mood=Ind|Number=Plur|Person=3|Tense=Fut|VerbForm=Fin": {POS: AUX, "morph": "Aspect=Imp|Mood=Ind|Number=Plur|Person=3|Tense=Fut|VerbForm=Fin"},
"AUX__Aspect=Imp|Mood=Ind|Number=Plur|Person=3|Tense=Pres|VerbForm=Fin": {POS: AUX, "morph": "Aspect=Imp|Mood=Ind|Number=Plur|Person=3|Tense=Pres|VerbForm=Fin"},
"AUX__Aspect=Imp|Mood=Ind|Number=Sing|Person=1|Tense=Fut|VerbForm=Fin": {POS: AUX, "morph": "Aspect=Imp|Mood=Ind|Number=Sing|Person=1|Tense=Fut|VerbForm=Fin"},
"AUX__Aspect=Imp|Mood=Ind|Number=Sing|Person=1|Tense=Pres|Variant=Long|VerbForm=Fin": {POS: AUX, "morph": "Aspect=Imp|Mood=Ind|Number=Sing|Person=1|Tense=Pres|Variant=Long|VerbForm=Fin"},
"AUX__Aspect=Imp|Mood=Ind|Number=Sing|Person=1|Tense=Pres|Variant=Short|VerbForm=Fin": {POS: AUX, "morph": "Aspect=Imp|Mood=Ind|Number=Sing|Person=1|Tense=Pres|Variant=Short|VerbForm=Fin"},
"AUX__Aspect=Imp|Mood=Ind|Number=Sing|Person=1|Tense=Pres|VerbForm=Fin": {POS: AUX, "morph": "Aspect=Imp|Mood=Ind|Number=Sing|Person=1|Tense=Pres|VerbForm=Fin"},
"AUX__Aspect=Imp|Mood=Ind|Number=Sing|Person=2|Tense=Fut|VerbForm=Fin": {POS: AUX, "morph": "Aspect=Imp|Mood=Ind|Number=Sing|Person=2|Tense=Fut|VerbForm=Fin"},
"AUX__Aspect=Imp|Mood=Ind|Number=Sing|Person=2|Tense=Pres|Variant=Long|VerbForm=Fin": {POS: AUX, "morph": "Aspect=Imp|Mood=Ind|Number=Sing|Person=2|Tense=Pres|Variant=Long|VerbForm=Fin"},
"AUX__Aspect=Imp|Mood=Ind|Number=Sing|Person=2|Tense=Pres|Variant=Short|VerbForm=Fin": {POS: AUX, "morph": "Aspect=Imp|Mood=Ind|Number=Sing|Person=2|Tense=Pres|Variant=Short|VerbForm=Fin"},
"AUX__Aspect=Imp|Mood=Ind|Number=Sing|Person=2|Tense=Pres|VerbForm=Fin": {POS: AUX, "morph": "Aspect=Imp|Mood=Ind|Number=Sing|Person=2|Tense=Pres|VerbForm=Fin"},
"AUX__Aspect=Imp|Mood=Ind|Number=Sing|Person=3|Tense=Fut|VerbForm=Fin": {POS: AUX, "morph": "Aspect=Imp|Mood=Ind|Number=Sing|Person=3|Tense=Fut|VerbForm=Fin"},
"AUX__Aspect=Imp|Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin": {POS: AUX, "morph": "Aspect=Imp|Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin"},
"AUX__Aspect=Imp|VerbForm=Inf": {POS: AUX, "morph": "Aspect=Imp|VerbForm=Inf"},
"AUX__Aspect=Perf|Gender=Fem|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act": {POS: AUX, "morph": "Aspect=Perf|Gender=Fem|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act"},
"AUX__Aspect=Perf|Gender=Fem|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act": {POS: AUX, "morph": "Aspect=Perf|Gender=Fem|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act"},
"AUX__Aspect=Perf|Gender=Neut|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act": {POS: AUX, "morph": "Aspect=Perf|Gender=Neut|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act"},
"AUX__Aspect=Perf|Gender=Neut|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act": {POS: AUX, "morph": "Aspect=Perf|Gender=Neut|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act"},
"AUX__Aspect=Perf|Mood=Ind|Number=Plur|Person=3|Tense=Pres|VerbForm=Fin": {POS: AUX, "morph": "Aspect=Perf|Mood=Ind|Number=Plur|Person=3|Tense=Pres|VerbForm=Fin"},
"AUX__Aspect=Perf|Mood=Ind|Number=Sing|Person=1|Tense=Pres|VerbForm=Fin": {POS: AUX, "morph": "Aspect=Perf|Mood=Ind|Number=Sing|Person=1|Tense=Pres|VerbForm=Fin"},
"AUX__Aspect=Perf|Mood=Ind|Number=Sing|Person=2|Tense=Pres|VerbForm=Fin": {POS: AUX, "morph": "Aspect=Perf|Mood=Ind|Number=Sing|Person=2|Tense=Pres|VerbForm=Fin"},
"AUX__Aspect=Perf|Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin": {POS: AUX, "morph": "Aspect=Perf|Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin"},
"AUX__Aspect=Perf|VerbForm=Inf": {POS: AUX, "morph": "Aspect=Perf|VerbForm=Inf"},
"CCONJ___": {POS: CCONJ},
"DET__Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|NumType=Card|PronType=Ind": {POS: DET, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|NumType=Card|PronType=Ind"},
"DET__Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|PronType=Dem": {POS: DET, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|PronType=Dem"},
"DET__Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|PronType=Int,Rel"},
"DET__Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|PronType=Tot": {POS: DET, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|PronType=Tot"},
"DET__Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|PronType=Dem": {POS: DET, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|PronType=Dem"},
"DET__Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|PronType=Ind": {POS: DET, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|PronType=Ind"},
"DET__Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|PronType=Int,Rel"},
"DET__Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|PronType=Tot": {POS: DET, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|PronType=Tot"},
"DET__Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur|PronType=Dem": {POS: DET, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur|PronType=Dem"},
"DET__Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur|PronType=Int,Rel"},
"DET__Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur|PronType=Tot": {POS: DET, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur|PronType=Tot"},
"DET__Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|PronType=Int,Rel"},
"DET__Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|PronType=Tot": {POS: DET, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|PronType=Tot"},
"DET__Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur|PronType=Dem": {POS: DET, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur|PronType=Dem"},
"DET__Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur|PronType=Int,Rel"},
"DET__Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur|PronType=Tot": {POS: DET, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur|PronType=Tot"},
"DET__Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|PronType=Dem": {POS: DET, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|PronType=Dem"},
"DET__Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|PronType=Ind": {POS: DET, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|PronType=Ind"},
"DET__Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|PronType=Int,Rel"},
"DET__Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|PronType=Neg": {POS: DET, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|PronType=Neg"},
"DET__Animacy=Hum|Case=Ins|Gender=Masc|Number=Plur|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Hum|Case=Ins|Gender=Masc|Number=Plur|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Hum|Case=Ins|Gender=Masc|Number=Plur|NumType=Card|PronType=Ind": {POS: DET, "morph": "Animacy=Hum|Case=Ins|Gender=Masc|Number=Plur|NumType=Card|PronType=Ind"},
"DET__Animacy=Hum|Case=Ins|Gender=Masc|Number=Plur|PronType=Dem": {POS: DET, "morph": "Animacy=Hum|Case=Ins|Gender=Masc|Number=Plur|PronType=Dem"},
"DET__Animacy=Hum|Case=Ins|Gender=Masc|Number=Plur|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Hum|Case=Ins|Gender=Masc|Number=Plur|PronType=Int,Rel"},
"DET__Animacy=Hum|Case=Ins|Gender=Masc|Number=Plur|PronType=Tot": {POS: DET, "morph": "Animacy=Hum|Case=Ins|Gender=Masc|Number=Plur|PronType=Tot"},
"DET__Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing|PronType=Dem": {POS: DET, "morph": "Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing|PronType=Dem"},
"DET__Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing|PronType=Int,Rel"},
"DET__Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing|PronType=Tot": {POS: DET, "morph": "Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing|PronType=Tot"},
"DET__Animacy=Hum|Case=Loc|Gender=Masc|Number=Plur|PronType=Tot": {POS: DET, "morph": "Animacy=Hum|Case=Loc|Gender=Masc|Number=Plur|PronType=Tot"},
"DET__Animacy=Hum|Case=Loc|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Animacy=Hum|Case=Loc|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Animacy=Hum|Case=Loc|Gender=Masc|Number=Sing|PronType=Dem": {POS: DET, "morph": "Animacy=Hum|Case=Loc|Gender=Masc|Number=Sing|PronType=Dem"},
"DET__Animacy=Hum|Case=Loc|Gender=Masc|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Hum|Case=Loc|Gender=Masc|Number=Sing|PronType=Int,Rel"},
"DET__Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs"},
"DET__Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|NumType=Card|PronType=Ind": {POS: DET, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|NumType=Card|PronType=Ind"},
"DET__Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|PronType=Dem": {POS: DET, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|PronType=Dem"},
"DET__Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|PronType=Ind": {POS: DET, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|PronType=Ind"},
"DET__Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|PronType=Int,Rel"},
"DET__Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|PronType=Tot": {POS: DET, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|PronType=Tot"},
"DET__Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=2|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=2|Poss=Yes|PronType=Prs"},
"DET__Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs"},
"DET__Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|PronType=Dem": {POS: DET, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|PronType=Dem"},
"DET__Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|PronType=Ind": {POS: DET, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|PronType=Ind"},
"DET__Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|PronType=Int,Rel"},
"DET__Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|PronType=Neg": {POS: DET, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|PronType=Neg"},
"DET__Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|PronType=Tot": {POS: DET, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|PronType=Tot"},
"DET__Animacy=Hum|Case=Voc|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Hum|Case=Voc|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur|NumType=Card|PronType=Ind": {POS: DET, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur|NumType=Card|PronType=Ind"},
"DET__Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur|PronType=Dem": {POS: DET, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur|PronType=Dem"},
"DET__Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur|PronType=Ind": {POS: DET, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur|PronType=Ind"},
"DET__Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur|PronType=Int,Rel"},
"DET__Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur|PronType=Neg": {POS: DET, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur|PronType=Neg"},
"DET__Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur|PronType=Tot": {POS: DET, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur|PronType=Tot"},
"DET__Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=2|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=2|Poss=Yes|PronType=Prs"},
"DET__Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs"},
"DET__Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|PronType=Dem": {POS: DET, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|PronType=Dem"},
"DET__Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|PronType=Ind": {POS: DET, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|PronType=Ind"},
"DET__Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|PronType=Int,Rel"},
"DET__Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|PronType=Neg": {POS: DET, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|PronType=Neg"},
"DET__Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|PronType=Tot": {POS: DET, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|PronType=Tot"},
"DET__Animacy=Inan|Case=Dat|Gender=Masc|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Inan|Case=Dat|Gender=Masc|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Inan|Case=Dat|Gender=Masc|Number=Plur|PronType=Dem": {POS: DET, "morph": "Animacy=Inan|Case=Dat|Gender=Masc|Number=Plur|PronType=Dem"},
"DET__Animacy=Inan|Case=Dat|Gender=Masc|Number=Plur|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Inan|Case=Dat|Gender=Masc|Number=Plur|PronType=Int,Rel"},
"DET__Animacy=Inan|Case=Dat|Gender=Masc|Number=Sing|PronType=Dem": {POS: DET, "morph": "Animacy=Inan|Case=Dat|Gender=Masc|Number=Sing|PronType=Dem"},
"DET__Animacy=Inan|Case=Dat|Gender=Masc|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Inan|Case=Dat|Gender=Masc|Number=Sing|PronType=Int,Rel"},
"DET__Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur|NumType=Card|PronType=Ind": {POS: DET, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur|NumType=Card|PronType=Ind"},
"DET__Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur|PronType=Dem": {POS: DET, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur|PronType=Dem"},
"DET__Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur|PronType=Ind": {POS: DET, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur|PronType=Ind"},
"DET__Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur|PronType=Int,Rel"},
"DET__Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur|PronType=Neg": {POS: DET, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur|PronType=Neg"},
"DET__Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur|PronType=Tot": {POS: DET, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur|PronType=Tot"},
"DET__Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing|PronType=Dem": {POS: DET, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing|PronType=Dem"},
"DET__Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing|PronType=Ind": {POS: DET, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing|PronType=Ind"},
"DET__Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing|PronType=Int,Rel"},
"DET__Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing|PronType=Neg": {POS: DET, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing|PronType=Neg"},
"DET__Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing|PronType=Tot": {POS: DET, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing|PronType=Tot"},
"DET__Animacy=Inan|Case=Ins|Gender=Masc|Number=Plur|PronType=Dem": {POS: DET, "morph": "Animacy=Inan|Case=Ins|Gender=Masc|Number=Plur|PronType=Dem"},
"DET__Animacy=Inan|Case=Ins|Gender=Masc|Number=Plur|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Inan|Case=Ins|Gender=Masc|Number=Plur|PronType=Int,Rel"},
"DET__Animacy=Inan|Case=Ins|Gender=Masc|Number=Plur|PronType=Tot": {POS: DET, "morph": "Animacy=Inan|Case=Ins|Gender=Masc|Number=Plur|PronType=Tot"},
"DET__Animacy=Inan|Case=Ins|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Inan|Case=Ins|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Inan|Case=Ins|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Inan|Case=Ins|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Inan|Case=Ins|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Animacy=Inan|Case=Ins|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Animacy=Inan|Case=Ins|Gender=Masc|Number=Sing|PronType=Dem": {POS: DET, "morph": "Animacy=Inan|Case=Ins|Gender=Masc|Number=Sing|PronType=Dem"},
"DET__Animacy=Inan|Case=Ins|Gender=Masc|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Inan|Case=Ins|Gender=Masc|Number=Sing|PronType=Int,Rel"},
"DET__Animacy=Inan|Case=Ins|Gender=Masc|Number=Sing|PronType=Neg": {POS: DET, "morph": "Animacy=Inan|Case=Ins|Gender=Masc|Number=Sing|PronType=Neg"},
"DET__Animacy=Inan|Case=Ins|Gender=Masc|Number=Sing|PronType=Tot": {POS: DET, "morph": "Animacy=Inan|Case=Ins|Gender=Masc|Number=Sing|PronType=Tot"},
"DET__Animacy=Inan|Case=Loc|Gender=Masc|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Inan|Case=Loc|Gender=Masc|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Inan|Case=Loc|Gender=Masc|Number=Plur|NumType=Card|PronType=Ind": {POS: DET, "morph": "Animacy=Inan|Case=Loc|Gender=Masc|Number=Plur|NumType=Card|PronType=Ind"},
"DET__Animacy=Inan|Case=Loc|Gender=Masc|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Animacy=Inan|Case=Loc|Gender=Masc|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Animacy=Inan|Case=Loc|Gender=Masc|Number=Plur|PronType=Dem": {POS: DET, "morph": "Animacy=Inan|Case=Loc|Gender=Masc|Number=Plur|PronType=Dem"},
"DET__Animacy=Inan|Case=Loc|Gender=Masc|Number=Plur|PronType=Ind": {POS: DET, "morph": "Animacy=Inan|Case=Loc|Gender=Masc|Number=Plur|PronType=Ind"},
"DET__Animacy=Inan|Case=Loc|Gender=Masc|Number=Plur|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Inan|Case=Loc|Gender=Masc|Number=Plur|PronType=Int,Rel"},
"DET__Animacy=Inan|Case=Loc|Gender=Masc|Number=Plur|PronType=Tot": {POS: DET, "morph": "Animacy=Inan|Case=Loc|Gender=Masc|Number=Plur|PronType=Tot"},
"DET__Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing|PronType=Dem": {POS: DET, "morph": "Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing|PronType=Dem"},
"DET__Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing|PronType=Ind": {POS: DET, "morph": "Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing|PronType=Ind"},
"DET__Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing|PronType=Int,Rel"},
"DET__Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing|PronType=Tot": {POS: DET, "morph": "Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing|PronType=Tot"},
"DET__Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs"},
"DET__Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur|NumType=Card|PronType=Ind": {POS: DET, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur|NumType=Card|PronType=Ind"},
"DET__Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur|PronType=Dem": {POS: DET, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur|PronType=Dem"},
"DET__Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur|PronType=Ind": {POS: DET, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur|PronType=Ind"},
"DET__Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur|PronType=Int,Rel"},
"DET__Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur|PronType=Tot": {POS: DET, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur|PronType=Tot"},
"DET__Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs"},
"DET__Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing|PronType=Dem": {POS: DET, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing|PronType=Dem"},
"DET__Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing|PronType=Ind": {POS: DET, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing|PronType=Ind"},
"DET__Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing|PronType=Int,Rel"},
"DET__Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing|PronType=Neg": {POS: DET, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing|PronType=Neg"},
"DET__Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing|PronType=Tot": {POS: DET, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing|PronType=Tot"},
"DET__Animacy=Nhum|Case=Acc|Gender=Masc|Number=Plur|NumType=Card|PronType=Ind": {POS: DET, "morph": "Animacy=Nhum|Case=Acc|Gender=Masc|Number=Plur|NumType=Card|PronType=Ind"},
"DET__Animacy=Nhum|Case=Acc|Gender=Masc|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Animacy=Nhum|Case=Acc|Gender=Masc|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Animacy=Nhum|Case=Acc|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Animacy=Nhum|Case=Acc|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Animacy=Nhum|Case=Acc|Gender=Masc|Number=Sing|PronType=Dem": {POS: DET, "morph": "Animacy=Nhum|Case=Acc|Gender=Masc|Number=Sing|PronType=Dem"},
"DET__Animacy=Nhum|Case=Acc|Gender=Masc|Number=Sing|PronType=Tot": {POS: DET, "morph": "Animacy=Nhum|Case=Acc|Gender=Masc|Number=Sing|PronType=Tot"},
"DET__Animacy=Nhum|Case=Dat|Gender=Masc|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Animacy=Nhum|Case=Dat|Gender=Masc|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Animacy=Nhum|Case=Gen|Gender=Masc|Number=Plur|NumType=Card|PronType=Ind": {POS: DET, "morph": "Animacy=Nhum|Case=Gen|Gender=Masc|Number=Plur|NumType=Card|PronType=Ind"},
"DET__Animacy=Nhum|Case=Gen|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Animacy=Nhum|Case=Gen|Gender=Masc|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Animacy=Nhum|Case=Gen|Gender=Masc|Number=Sing|PronType=Tot": {POS: DET, "morph": "Animacy=Nhum|Case=Gen|Gender=Masc|Number=Sing|PronType=Tot"},
"DET__Animacy=Nhum|Case=Ins|Gender=Masc|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Nhum|Case=Ins|Gender=Masc|Number=Sing|PronType=Int,Rel"},
"DET__Animacy=Nhum|Case=Nom|Gender=Masc|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Nhum|Case=Nom|Gender=Masc|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Animacy=Nhum|Case=Nom|Gender=Masc|Number=Plur|PronType=Dem": {POS: DET, "morph": "Animacy=Nhum|Case=Nom|Gender=Masc|Number=Plur|PronType=Dem"},
"DET__Animacy=Nhum|Case=Nom|Gender=Masc|Number=Plur|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Nhum|Case=Nom|Gender=Masc|Number=Plur|PronType=Int,Rel"},
"DET__Animacy=Nhum|Case=Nom|Gender=Masc|Number=Plur|PronType=Tot": {POS: DET, "morph": "Animacy=Nhum|Case=Nom|Gender=Masc|Number=Plur|PronType=Tot"},
"DET__Animacy=Nhum|Case=Nom|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Animacy=Nhum|Case=Nom|Gender=Masc|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs"},
"DET__Animacy=Nhum|Case=Nom|Gender=Masc|Number=Sing|PronType=Dem": {POS: DET, "morph": "Animacy=Nhum|Case=Nom|Gender=Masc|Number=Sing|PronType=Dem"},
"DET__Animacy=Nhum|Case=Nom|Gender=Masc|Number=Sing|PronType=Ind": {POS: DET, "morph": "Animacy=Nhum|Case=Nom|Gender=Masc|Number=Sing|PronType=Ind"},
"DET__Animacy=Nhum|Case=Nom|Gender=Masc|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Animacy=Nhum|Case=Nom|Gender=Masc|Number=Sing|PronType=Int,Rel"},
"DET__Case=Acc|Gender=Fem|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Acc|Gender=Fem|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Acc|Gender=Fem|Number=Plur|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Acc|Gender=Fem|Number=Plur|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs"},
"DET__Case=Acc|Gender=Fem|Number=Plur|NumType=Card|PronType=Ind": {POS: DET, "morph": "Case=Acc|Gender=Fem|Number=Plur|NumType=Card|PronType=Ind"},
"DET__Case=Acc|Gender=Fem|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Case=Acc|Gender=Fem|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Case=Acc|Gender=Fem|Number=Plur|PronType=Dem": {POS: DET, "morph": "Case=Acc|Gender=Fem|Number=Plur|PronType=Dem"},
"DET__Case=Acc|Gender=Fem|Number=Plur|PronType=Ind": {POS: DET, "morph": "Case=Acc|Gender=Fem|Number=Plur|PronType=Ind"},
"DET__Case=Acc|Gender=Fem|Number=Plur|PronType=Int,Rel": {POS: DET, "morph": "Case=Acc|Gender=Fem|Number=Plur|PronType=Int,Rel"},
"DET__Case=Acc|Gender=Fem|Number=Plur|PronType=Tot": {POS: DET, "morph": "Case=Acc|Gender=Fem|Number=Plur|PronType=Tot"},
"DET__Case=Acc|Gender=Fem|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Acc|Gender=Fem|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Acc|Gender=Fem|Number=Sing|Number[psor]=Plur|Person=2|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Acc|Gender=Fem|Number=Sing|Number[psor]=Plur|Person=2|Poss=Yes|PronType=Prs"},
"DET__Case=Acc|Gender=Fem|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Acc|Gender=Fem|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Acc|Gender=Fem|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Acc|Gender=Fem|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs"},
"DET__Case=Acc|Gender=Fem|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Case=Acc|Gender=Fem|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Case=Acc|Gender=Fem|Number=Sing|PronType=Dem": {POS: DET, "morph": "Case=Acc|Gender=Fem|Number=Sing|PronType=Dem"},
"DET__Case=Acc|Gender=Fem|Number=Sing|PronType=Ind": {POS: DET, "morph": "Case=Acc|Gender=Fem|Number=Sing|PronType=Ind"},
"DET__Case=Acc|Gender=Fem|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Case=Acc|Gender=Fem|Number=Sing|PronType=Int,Rel"},
"DET__Case=Acc|Gender=Fem|Number=Sing|PronType=Tot": {POS: DET, "morph": "Case=Acc|Gender=Fem|Number=Sing|PronType=Tot"},
"DET__Case=Acc|Gender=Neut|Number=Plur|Number[psor]=Plur|Person=2|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Acc|Gender=Neut|Number=Plur|Number[psor]=Plur|Person=2|Poss=Yes|PronType=Prs"},
"DET__Case=Acc|Gender=Neut|Number=Plur|NumType=Card|PronType=Ind": {POS: DET, "morph": "Case=Acc|Gender=Neut|Number=Plur|NumType=Card|PronType=Ind"},
"DET__Case=Acc|Gender=Neut|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Case=Acc|Gender=Neut|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Case=Acc|Gender=Neut|Number=Plur|PronType=Dem": {POS: DET, "morph": "Case=Acc|Gender=Neut|Number=Plur|PronType=Dem"},
"DET__Case=Acc|Gender=Neut|Number=Plur|PronType=Ind": {POS: DET, "morph": "Case=Acc|Gender=Neut|Number=Plur|PronType=Ind"},
"DET__Case=Acc|Gender=Neut|Number=Plur|PronType=Int,Rel": {POS: DET, "morph": "Case=Acc|Gender=Neut|Number=Plur|PronType=Int,Rel"},
"DET__Case=Acc|Gender=Neut|Number=Plur|PronType=Neg": {POS: DET, "morph": "Case=Acc|Gender=Neut|Number=Plur|PronType=Neg"},
"DET__Case=Acc|Gender=Neut|Number=Plur|PronType=Tot": {POS: DET, "morph": "Case=Acc|Gender=Neut|Number=Plur|PronType=Tot"},
"DET__Case=Acc|Gender=Neut|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Acc|Gender=Neut|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs"},
"DET__Case=Acc|Gender=Neut|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Case=Acc|Gender=Neut|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Case=Acc|Gender=Neut|Number=Sing|PronType=Dem": {POS: DET, "morph": "Case=Acc|Gender=Neut|Number=Sing|PronType=Dem"},
"DET__Case=Acc|Gender=Neut|Number=Sing|PronType=Ind": {POS: DET, "morph": "Case=Acc|Gender=Neut|Number=Sing|PronType=Ind"},
"DET__Case=Acc|Gender=Neut|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Case=Acc|Gender=Neut|Number=Sing|PronType=Int,Rel"},
"DET__Case=Acc|Gender=Neut|Number=Sing|PronType=Tot": {POS: DET, "morph": "Case=Acc|Gender=Neut|Number=Sing|PronType=Tot"},
"DET__Case=Dat|Gender=Fem|Number=Plur|NumType=Card|PronType=Ind": {POS: DET, "morph": "Case=Dat|Gender=Fem|Number=Plur|NumType=Card|PronType=Ind"},
"DET__Case=Dat|Gender=Fem|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Case=Dat|Gender=Fem|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Case=Dat|Gender=Fem|Number=Plur|PronType=Dem": {POS: DET, "morph": "Case=Dat|Gender=Fem|Number=Plur|PronType=Dem"},
"DET__Case=Dat|Gender=Fem|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Dat|Gender=Fem|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Dat|Gender=Fem|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Dat|Gender=Fem|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Dat|Gender=Fem|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Dat|Gender=Fem|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs"},
"DET__Case=Dat|Gender=Fem|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Case=Dat|Gender=Fem|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Case=Dat|Gender=Fem|Number=Sing|PronType=Dem": {POS: DET, "morph": "Case=Dat|Gender=Fem|Number=Sing|PronType=Dem"},
"DET__Case=Dat|Gender=Fem|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Case=Dat|Gender=Fem|Number=Sing|PronType=Int,Rel"},
"DET__Case=Dat|Gender=Neut|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Dat|Gender=Neut|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Dat|Gender=Neut|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Case=Dat|Gender=Neut|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Case=Dat|Gender=Neut|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Case=Dat|Gender=Neut|Number=Sing|PronType=Int,Rel"},
"DET__Case=Gen|Gender=Fem|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Gen|Gender=Fem|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Gen|Gender=Fem|Number=Plur|NumType=Card|PronType=Ind": {POS: DET, "morph": "Case=Gen|Gender=Fem|Number=Plur|NumType=Card|PronType=Ind"},
"DET__Case=Gen|Gender=Fem|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Case=Gen|Gender=Fem|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Case=Gen|Gender=Fem|Number=Plur|PronType=Dem": {POS: DET, "morph": "Case=Gen|Gender=Fem|Number=Plur|PronType=Dem"},
"DET__Case=Gen|Gender=Fem|Number=Plur|PronType=Ind": {POS: DET, "morph": "Case=Gen|Gender=Fem|Number=Plur|PronType=Ind"},
"DET__Case=Gen|Gender=Fem|Number=Plur|PronType=Int,Rel": {POS: DET, "morph": "Case=Gen|Gender=Fem|Number=Plur|PronType=Int,Rel"},
"DET__Case=Gen|Gender=Fem|Number=Plur|PronType=Neg": {POS: DET, "morph": "Case=Gen|Gender=Fem|Number=Plur|PronType=Neg"},
"DET__Case=Gen|Gender=Fem|Number=Plur|PronType=Tot": {POS: DET, "morph": "Case=Gen|Gender=Fem|Number=Plur|PronType=Tot"},
"DET__Case=Gen|Gender=Fem|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Gen|Gender=Fem|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Gen|Gender=Fem|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Gen|Gender=Fem|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Gen|Gender=Fem|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Gen|Gender=Fem|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs"},
"DET__Case=Gen|Gender=Fem|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Case=Gen|Gender=Fem|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Case=Gen|Gender=Fem|Number=Sing|PronType=Dem": {POS: DET, "morph": "Case=Gen|Gender=Fem|Number=Sing|PronType=Dem"},
"DET__Case=Gen|Gender=Fem|Number=Sing|PronType=Ind": {POS: DET, "morph": "Case=Gen|Gender=Fem|Number=Sing|PronType=Ind"},
"DET__Case=Gen|Gender=Fem|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Case=Gen|Gender=Fem|Number=Sing|PronType=Int,Rel"},
"DET__Case=Gen|Gender=Fem|Number=Sing|PronType=Neg": {POS: DET, "morph": "Case=Gen|Gender=Fem|Number=Sing|PronType=Neg"},
"DET__Case=Gen|Gender=Fem|Number=Sing|PronType=Tot": {POS: DET, "morph": "Case=Gen|Gender=Fem|Number=Sing|PronType=Tot"},
"DET__Case=Gen|Gender=Neut|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Gen|Gender=Neut|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Gen|Gender=Neut|Number=Plur|NumType=Card|PronType=Ind": {POS: DET, "morph": "Case=Gen|Gender=Neut|Number=Plur|NumType=Card|PronType=Ind"},
"DET__Case=Gen|Gender=Neut|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Case=Gen|Gender=Neut|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Case=Gen|Gender=Neut|Number=Plur|PronType=Dem": {POS: DET, "morph": "Case=Gen|Gender=Neut|Number=Plur|PronType=Dem"},
"DET__Case=Gen|Gender=Neut|Number=Plur|PronType=Ind": {POS: DET, "morph": "Case=Gen|Gender=Neut|Number=Plur|PronType=Ind"},
"DET__Case=Gen|Gender=Neut|Number=Plur|PronType=Int,Rel": {POS: DET, "morph": "Case=Gen|Gender=Neut|Number=Plur|PronType=Int,Rel"},
"DET__Case=Gen|Gender=Neut|Number=Plur|PronType=Neg": {POS: DET, "morph": "Case=Gen|Gender=Neut|Number=Plur|PronType=Neg"},
"DET__Case=Gen|Gender=Neut|Number=Plur|PronType=Tot": {POS: DET, "morph": "Case=Gen|Gender=Neut|Number=Plur|PronType=Tot"},
"DET__Case=Gen|Gender=Neut|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Gen|Gender=Neut|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Gen|Gender=Neut|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Gen|Gender=Neut|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Gen|Gender=Neut|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Gen|Gender=Neut|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs"},
"DET__Case=Gen|Gender=Neut|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Case=Gen|Gender=Neut|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Case=Gen|Gender=Neut|Number=Sing|PronType=Dem": {POS: DET, "morph": "Case=Gen|Gender=Neut|Number=Sing|PronType=Dem"},
"DET__Case=Gen|Gender=Neut|Number=Sing|PronType=Ind": {POS: DET, "morph": "Case=Gen|Gender=Neut|Number=Sing|PronType=Ind"},
"DET__Case=Gen|Gender=Neut|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Case=Gen|Gender=Neut|Number=Sing|PronType=Int,Rel"},
"DET__Case=Gen|Gender=Neut|Number=Sing|PronType=Neg": {POS: DET, "morph": "Case=Gen|Gender=Neut|Number=Sing|PronType=Neg"},
"DET__Case=Gen|Gender=Neut|Number=Sing|PronType=Tot": {POS: DET, "morph": "Case=Gen|Gender=Neut|Number=Sing|PronType=Tot"},
"DET__Case=Ins|Gender=Fem|Number=Plur|NumType=Card|PronType=Ind": {POS: DET, "morph": "Case=Ins|Gender=Fem|Number=Plur|NumType=Card|PronType=Ind"},
"DET__Case=Ins|Gender=Fem|Number=Plur|PronType=Dem": {POS: DET, "morph": "Case=Ins|Gender=Fem|Number=Plur|PronType=Dem"},
"DET__Case=Ins|Gender=Fem|Number=Plur|PronType=Tot": {POS: DET, "morph": "Case=Ins|Gender=Fem|Number=Plur|PronType=Tot"},
"DET__Case=Ins|Gender=Fem|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Ins|Gender=Fem|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Ins|Gender=Fem|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Ins|Gender=Fem|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Ins|Gender=Fem|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Ins|Gender=Fem|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs"},
"DET__Case=Ins|Gender=Fem|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Case=Ins|Gender=Fem|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Case=Ins|Gender=Fem|Number=Sing|PronType=Dem": {POS: DET, "morph": "Case=Ins|Gender=Fem|Number=Sing|PronType=Dem"},
"DET__Case=Ins|Gender=Fem|Number=Sing|PronType=Ind": {POS: DET, "morph": "Case=Ins|Gender=Fem|Number=Sing|PronType=Ind"},
"DET__Case=Ins|Gender=Fem|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Case=Ins|Gender=Fem|Number=Sing|PronType=Int,Rel"},
"DET__Case=Ins|Gender=Fem|Number=Sing|PronType=Neg": {POS: DET, "morph": "Case=Ins|Gender=Fem|Number=Sing|PronType=Neg"},
"DET__Case=Ins|Gender=Neut|Number=Plur|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Ins|Gender=Neut|Number=Plur|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Ins|Gender=Neut|Number=Plur|NumType=Card|PronType=Ind": {POS: DET, "morph": "Case=Ins|Gender=Neut|Number=Plur|NumType=Card|PronType=Ind"},
"DET__Case=Ins|Gender=Neut|Number=Plur|PronType=Dem": {POS: DET, "morph": "Case=Ins|Gender=Neut|Number=Plur|PronType=Dem"},
"DET__Case=Ins|Gender=Neut|Number=Plur|PronType=Int,Rel": {POS: DET, "morph": "Case=Ins|Gender=Neut|Number=Plur|PronType=Int,Rel"},
"DET__Case=Ins|Gender=Neut|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Ins|Gender=Neut|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Ins|Gender=Neut|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Ins|Gender=Neut|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Ins|Gender=Neut|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Ins|Gender=Neut|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs"},
"DET__Case=Ins|Gender=Neut|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Case=Ins|Gender=Neut|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Case=Ins|Gender=Neut|Number=Sing|PronType=Ind": {POS: DET, "morph": "Case=Ins|Gender=Neut|Number=Sing|PronType=Ind"},
"DET__Case=Ins|Gender=Neut|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Case=Ins|Gender=Neut|Number=Sing|PronType=Int,Rel"},
"DET__Case=Loc|Gender=Fem|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Loc|Gender=Fem|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Loc|Gender=Fem|Number=Plur|NumType=Card|PronType=Ind": {POS: DET, "morph": "Case=Loc|Gender=Fem|Number=Plur|NumType=Card|PronType=Ind"},
"DET__Case=Loc|Gender=Fem|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Case=Loc|Gender=Fem|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Case=Loc|Gender=Fem|Number=Plur|PronType=Dem": {POS: DET, "morph": "Case=Loc|Gender=Fem|Number=Plur|PronType=Dem"},
"DET__Case=Loc|Gender=Fem|Number=Plur|PronType=Int,Rel": {POS: DET, "morph": "Case=Loc|Gender=Fem|Number=Plur|PronType=Int,Rel"},
"DET__Case=Loc|Gender=Fem|Number=Plur|PronType=Neg": {POS: DET, "morph": "Case=Loc|Gender=Fem|Number=Plur|PronType=Neg"},
"DET__Case=Loc|Gender=Fem|Number=Plur|PronType=Tot": {POS: DET, "morph": "Case=Loc|Gender=Fem|Number=Plur|PronType=Tot"},
"DET__Case=Loc|Gender=Fem|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Loc|Gender=Fem|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Loc|Gender=Fem|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Loc|Gender=Fem|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Loc|Gender=Fem|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Case=Loc|Gender=Fem|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Case=Loc|Gender=Fem|Number=Sing|PronType=Dem": {POS: DET, "morph": "Case=Loc|Gender=Fem|Number=Sing|PronType=Dem"},
"DET__Case=Loc|Gender=Fem|Number=Sing|PronType=Ind": {POS: DET, "morph": "Case=Loc|Gender=Fem|Number=Sing|PronType=Ind"},
"DET__Case=Loc|Gender=Fem|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Case=Loc|Gender=Fem|Number=Sing|PronType=Int,Rel"},
"DET__Case=Loc|Gender=Fem|Number=Sing|PronType=Tot": {POS: DET, "morph": "Case=Loc|Gender=Fem|Number=Sing|PronType=Tot"},
"DET__Case=Loc|Gender=Neut|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Case=Loc|Gender=Neut|Number=Plur|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Case=Loc|Gender=Neut|Number=Plur|PronType=Dem": {POS: DET, "morph": "Case=Loc|Gender=Neut|Number=Plur|PronType=Dem"},
"DET__Case=Loc|Gender=Neut|Number=Plur|PronType=Ind": {POS: DET, "morph": "Case=Loc|Gender=Neut|Number=Plur|PronType=Ind"},
"DET__Case=Loc|Gender=Neut|Number=Plur|PronType=Int,Rel": {POS: DET, "morph": "Case=Loc|Gender=Neut|Number=Plur|PronType=Int,Rel"},
"DET__Case=Loc|Gender=Neut|Number=Plur|PronType=Tot": {POS: DET, "morph": "Case=Loc|Gender=Neut|Number=Plur|PronType=Tot"},
"DET__Case=Loc|Gender=Neut|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Loc|Gender=Neut|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Loc|Gender=Neut|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Loc|Gender=Neut|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Loc|Gender=Neut|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Loc|Gender=Neut|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs"},
"DET__Case=Loc|Gender=Neut|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes": {POS: DET, "morph": "Case=Loc|Gender=Neut|Number=Sing|Poss=Yes|PronType=Prs|Reflex=Yes"},
"DET__Case=Loc|Gender=Neut|Number=Sing|PronType=Dem": {POS: DET, "morph": "Case=Loc|Gender=Neut|Number=Sing|PronType=Dem"},
"DET__Case=Loc|Gender=Neut|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Case=Loc|Gender=Neut|Number=Sing|PronType=Int,Rel"},
"DET__Case=Loc|Gender=Neut|Number=Sing|PronType=Tot": {POS: DET, "morph": "Case=Loc|Gender=Neut|Number=Sing|PronType=Tot"},
"DET__Case=Nom|Gender=Fem|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Nom|Gender=Fem|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Nom|Gender=Fem|Number=Plur|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Nom|Gender=Fem|Number=Plur|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Nom|Gender=Fem|Number=Plur|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Nom|Gender=Fem|Number=Plur|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs"},
"DET__Case=Nom|Gender=Fem|Number=Plur|NumType=Card|PronType=Ind": {POS: DET, "morph": "Case=Nom|Gender=Fem|Number=Plur|NumType=Card|PronType=Ind"},
"DET__Case=Nom|Gender=Fem|Number=Plur|PronType=Dem": {POS: DET, "morph": "Case=Nom|Gender=Fem|Number=Plur|PronType=Dem"},
"DET__Case=Nom|Gender=Fem|Number=Plur|PronType=Ind": {POS: DET, "morph": "Case=Nom|Gender=Fem|Number=Plur|PronType=Ind"},
"DET__Case=Nom|Gender=Fem|Number=Plur|PronType=Int,Rel": {POS: DET, "morph": "Case=Nom|Gender=Fem|Number=Plur|PronType=Int,Rel"},
"DET__Case=Nom|Gender=Fem|Number=Plur|PronType=Tot": {POS: DET, "morph": "Case=Nom|Gender=Fem|Number=Plur|PronType=Tot"},
"DET__Case=Nom|Gender=Fem|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Nom|Gender=Fem|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Nom|Gender=Fem|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Nom|Gender=Fem|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Nom|Gender=Fem|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Nom|Gender=Fem|Number=Sing|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs"},
"DET__Case=Nom|Gender=Fem|Number=Sing|PronType=Dem": {POS: DET, "morph": "Case=Nom|Gender=Fem|Number=Sing|PronType=Dem"},
"DET__Case=Nom|Gender=Fem|Number=Sing|PronType=Ind": {POS: DET, "morph": "Case=Nom|Gender=Fem|Number=Sing|PronType=Ind"},
"DET__Case=Nom|Gender=Fem|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Case=Nom|Gender=Fem|Number=Sing|PronType=Int,Rel"},
"DET__Case=Nom|Gender=Fem|Number=Sing|PronType=Neg": {POS: DET, "morph": "Case=Nom|Gender=Fem|Number=Sing|PronType=Neg"},
"DET__Case=Nom|Gender=Fem|Number=Sing|PronType=Tot": {POS: DET, "morph": "Case=Nom|Gender=Fem|Number=Sing|PronType=Tot"},
"DET__Case=Nom|Gender=Neut|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Nom|Gender=Neut|Number=Plur|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Nom|Gender=Neut|Number=Plur|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Nom|Gender=Neut|Number=Plur|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Nom|Gender=Neut|Number=Plur|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Nom|Gender=Neut|Number=Plur|Number[psor]=Sing|Person=2|Poss=Yes|PronType=Prs"},
"DET__Case=Nom|Gender=Neut|Number=Plur|NumType=Card|PronType=Ind": {POS: DET, "morph": "Case=Nom|Gender=Neut|Number=Plur|NumType=Card|PronType=Ind"},
"DET__Case=Nom|Gender=Neut|Number=Plur|PronType=Dem": {POS: DET, "morph": "Case=Nom|Gender=Neut|Number=Plur|PronType=Dem"},
"DET__Case=Nom|Gender=Neut|Number=Plur|PronType=Ind": {POS: DET, "morph": "Case=Nom|Gender=Neut|Number=Plur|PronType=Ind"},
"DET__Case=Nom|Gender=Neut|Number=Plur|PronType=Int,Rel": {POS: DET, "morph": "Case=Nom|Gender=Neut|Number=Plur|PronType=Int,Rel"},
"DET__Case=Nom|Gender=Neut|Number=Plur|PronType=Neg": {POS: DET, "morph": "Case=Nom|Gender=Neut|Number=Plur|PronType=Neg"},
"DET__Case=Nom|Gender=Neut|Number=Plur|PronType=Tot": {POS: DET, "morph": "Case=Nom|Gender=Neut|Number=Plur|PronType=Tot"},
"DET__Case=Nom|Gender=Neut|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Nom|Gender=Neut|Number=Sing|Number[psor]=Plur|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Nom|Gender=Neut|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs": {POS: DET, "morph": "Case=Nom|Gender=Neut|Number=Sing|Number[psor]=Sing|Person=1|Poss=Yes|PronType=Prs"},
"DET__Case=Nom|Gender=Neut|Number=Sing|PronType=Dem": {POS: DET, "morph": "Case=Nom|Gender=Neut|Number=Sing|PronType=Dem"},
"DET__Case=Nom|Gender=Neut|Number=Sing|PronType=Int,Rel": {POS: DET, "morph": "Case=Nom|Gender=Neut|Number=Sing|PronType=Int,Rel"},
"DET__Case=Nom|Gender=Neut|Number=Sing|PronType=Neg": {POS: DET, "morph": "Case=Nom|Gender=Neut|Number=Sing|PronType=Neg"},
"DET__Case=Nom|Gender=Neut|Number=Sing|PronType=Tot": {POS: DET, "morph": "Case=Nom|Gender=Neut|Number=Sing|PronType=Tot"},
"NOUN__Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur": {POS: NOUN, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur"},
"NOUN__Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing": {POS: NOUN, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing"},
"NOUN__Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur": {POS: NOUN, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur"},
"NOUN__Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing": {POS: NOUN, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing"},
"NOUN__Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur": {POS: NOUN, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur"},
"NOUN__Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing": {POS: NOUN, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing"},
"NOUN__Animacy=Hum|Case=Ins|Gender=Masc|Number=Plur": {POS: NOUN, "morph": "Animacy=Hum|Case=Ins|Gender=Masc|Number=Plur"},
"NOUN__Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing": {POS: NOUN, "morph": "Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing"},
"NOUN__Animacy=Hum|Case=Loc|Gender=Masc|Number=Plur": {POS: NOUN, "morph": "Animacy=Hum|Case=Loc|Gender=Masc|Number=Plur"},
"NOUN__Animacy=Hum|Case=Loc|Gender=Masc|Number=Sing": {POS: NOUN, "morph": "Animacy=Hum|Case=Loc|Gender=Masc|Number=Sing"},
"NOUN__Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur": {POS: NOUN, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur"},
"NOUN__Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing": {POS: NOUN, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing"},
"NOUN__Animacy=Hum|Case=Voc|Gender=Masc|Number=Plur": {POS: NOUN, "morph": "Animacy=Hum|Case=Voc|Gender=Masc|Number=Plur"},
"NOUN__Animacy=Hum|Case=Voc|Gender=Masc|Number=Sing": {POS: NOUN, "morph": "Animacy=Hum|Case=Voc|Gender=Masc|Number=Sing"},
"NOUN__Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur": {POS: NOUN, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur"},
"NOUN__Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing": {POS: NOUN, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing"},
"NOUN__Animacy=Inan|Case=Dat|Gender=Masc|Number=Plur": {POS: NOUN, "morph": "Animacy=Inan|Case=Dat|Gender=Masc|Number=Plur"},
"NOUN__Animacy=Inan|Case=Dat|Gender=Masc|Number=Sing": {POS: NOUN, "morph": "Animacy=Inan|Case=Dat|Gender=Masc|Number=Sing"},
"NOUN__Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur": {POS: NOUN, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur"},
"NOUN__Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing": {POS: NOUN, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing"},
"NOUN__Animacy=Inan|Case=Ins|Gender=Masc|Number=Plur": {POS: NOUN, "morph": "Animacy=Inan|Case=Ins|Gender=Masc|Number=Plur"},
"NOUN__Animacy=Inan|Case=Ins|Gender=Masc|Number=Sing": {POS: NOUN, "morph": "Animacy=Inan|Case=Ins|Gender=Masc|Number=Sing"},
"NOUN__Animacy=Inan|Case=Loc|Gender=Masc|Number=Plur": {POS: NOUN, "morph": "Animacy=Inan|Case=Loc|Gender=Masc|Number=Plur"},
"NOUN__Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing": {POS: NOUN, "morph": "Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing"},
"NOUN__Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur": {POS: NOUN, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur"},
"NOUN__Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing": {POS: NOUN, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing"},
"NOUN__Animacy=Nhum|Case=Acc|Gender=Masc|Number=Plur": {POS: NOUN, "morph": "Animacy=Nhum|Case=Acc|Gender=Masc|Number=Plur"},
"NOUN__Animacy=Nhum|Case=Acc|Gender=Masc|Number=Sing": {POS: NOUN, "morph": "Animacy=Nhum|Case=Acc|Gender=Masc|Number=Sing"},
"NOUN__Animacy=Nhum|Case=Dat|Gender=Masc|Number=Plur": {POS: NOUN, "morph": "Animacy=Nhum|Case=Dat|Gender=Masc|Number=Plur"},
"NOUN__Animacy=Nhum|Case=Dat|Gender=Masc|Number=Sing": {POS: NOUN, "morph": "Animacy=Nhum|Case=Dat|Gender=Masc|Number=Sing"},
"NOUN__Animacy=Nhum|Case=Gen|Gender=Masc|Number=Plur": {POS: NOUN, "morph": "Animacy=Nhum|Case=Gen|Gender=Masc|Number=Plur"},
"NOUN__Animacy=Nhum|Case=Gen|Gender=Masc|Number=Sing": {POS: NOUN, "morph": "Animacy=Nhum|Case=Gen|Gender=Masc|Number=Sing"},
"NOUN__Animacy=Nhum|Case=Ins|Gender=Masc|Number=Plur": {POS: NOUN, "morph": "Animacy=Nhum|Case=Ins|Gender=Masc|Number=Plur"},
"NOUN__Animacy=Nhum|Case=Ins|Gender=Masc|Number=Sing": {POS: NOUN, "morph": "Animacy=Nhum|Case=Ins|Gender=Masc|Number=Sing"},
"NOUN__Animacy=Nhum|Case=Loc|Gender=Masc|Number=Sing": {POS: NOUN, "morph": "Animacy=Nhum|Case=Loc|Gender=Masc|Number=Sing"},
"NOUN__Animacy=Nhum|Case=Nom|Gender=Masc|Number=Plur": {POS: NOUN, "morph": "Animacy=Nhum|Case=Nom|Gender=Masc|Number=Plur"},
"NOUN__Animacy=Nhum|Case=Nom|Gender=Masc|Number=Sing": {POS: NOUN, "morph": "Animacy=Nhum|Case=Nom|Gender=Masc|Number=Sing"},
"NOUN__Animacy=Nhum|Case=Voc|Gender=Masc|Number=Plur": {POS: NOUN, "morph": "Animacy=Nhum|Case=Voc|Gender=Masc|Number=Plur"},
"NOUN__Aspect=Imp|Case=Acc|Gender=Neut|Number=Sing|Polarity=Neg|VerbForm=Vnoun": {POS: NOUN, "morph": "Aspect=Imp|Case=Acc|Gender=Neut|Number=Sing|Polarity=Neg|VerbForm=Vnoun"},
"NOUN__Aspect=Imp|Case=Acc|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun": {POS: NOUN, "morph": "Aspect=Imp|Case=Acc|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun"},
"NOUN__Aspect=Imp|Case=Dat|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun": {POS: NOUN, "morph": "Aspect=Imp|Case=Dat|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun"},
"NOUN__Aspect=Imp|Case=Gen|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun": {POS: NOUN, "morph": "Aspect=Imp|Case=Gen|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun"},
"NOUN__Aspect=Imp|Case=Ins|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun": {POS: NOUN, "morph": "Aspect=Imp|Case=Ins|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun"},
"NOUN__Aspect=Imp|Case=Loc|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun": {POS: NOUN, "morph": "Aspect=Imp|Case=Loc|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun"},
"NOUN__Aspect=Imp|Case=Nom|Gender=Neut|Number=Plur|Polarity=Pos|VerbForm=Vnoun": {POS: NOUN, "morph": "Aspect=Imp|Case=Nom|Gender=Neut|Number=Plur|Polarity=Pos|VerbForm=Vnoun"},
"NOUN__Aspect=Imp|Case=Nom|Gender=Neut|Number=Sing|Polarity=Neg|VerbForm=Vnoun": {POS: NOUN, "morph": "Aspect=Imp|Case=Nom|Gender=Neut|Number=Sing|Polarity=Neg|VerbForm=Vnoun"},
"NOUN__Aspect=Imp|Case=Nom|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun": {POS: NOUN, "morph": "Aspect=Imp|Case=Nom|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun"},
"NOUN__Aspect=Perf|Case=Acc|Gender=Neut|Number=Sing|Polarity=Neg|VerbForm=Vnoun": {POS: NOUN, "morph": "Aspect=Perf|Case=Acc|Gender=Neut|Number=Sing|Polarity=Neg|VerbForm=Vnoun"},
"NOUN__Aspect=Perf|Case=Acc|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun": {POS: NOUN, "morph": "Aspect=Perf|Case=Acc|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun"},
"NOUN__Aspect=Perf|Case=Dat|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun": {POS: NOUN, "morph": "Aspect=Perf|Case=Dat|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun"},
"NOUN__Aspect=Perf|Case=Gen|Gender=Neut|Number=Sing|Polarity=Neg|VerbForm=Vnoun": {POS: NOUN, "morph": "Aspect=Perf|Case=Gen|Gender=Neut|Number=Sing|Polarity=Neg|VerbForm=Vnoun"},
"NOUN__Aspect=Perf|Case=Gen|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun": {POS: NOUN, "morph": "Aspect=Perf|Case=Gen|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun"},
"NOUN__Aspect=Perf|Case=Ins|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun": {POS: NOUN, "morph": "Aspect=Perf|Case=Ins|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun"},
"NOUN__Aspect=Perf|Case=Loc|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun": {POS: NOUN, "morph": "Aspect=Perf|Case=Loc|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun"},
"NOUN__Aspect=Perf|Case=Nom|Gender=Neut|Number=Sing|Polarity=Neg|VerbForm=Vnoun": {POS: NOUN, "morph": "Aspect=Perf|Case=Nom|Gender=Neut|Number=Sing|Polarity=Neg|VerbForm=Vnoun"},
"NOUN__Aspect=Perf|Case=Nom|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun": {POS: NOUN, "morph": "Aspect=Perf|Case=Nom|Gender=Neut|Number=Sing|Polarity=Pos|VerbForm=Vnoun"},
"NOUN__Case=Acc|Gender=Fem|Number=Plur": {POS: NOUN, "morph": "Case=Acc|Gender=Fem|Number=Plur"},
"NOUN__Case=Acc|Gender=Fem|Number=Sing": {POS: NOUN, "morph": "Case=Acc|Gender=Fem|Number=Sing"},
"NOUN__Case=Acc|Gender=Neut|Number=Plur": {POS: NOUN, "morph": "Case=Acc|Gender=Neut|Number=Plur"},
"NOUN__Case=Acc|Gender=Neut|Number=Sing": {POS: NOUN, "morph": "Case=Acc|Gender=Neut|Number=Sing"},
"NOUN__Case=Dat|Gender=Fem|Number=Plur": {POS: NOUN, "morph": "Case=Dat|Gender=Fem|Number=Plur"},
"NOUN__Case=Dat|Gender=Fem|Number=Sing": {POS: NOUN, "morph": "Case=Dat|Gender=Fem|Number=Sing"},
"NOUN__Case=Dat|Gender=Neut|Number=Plur": {POS: NOUN, "morph": "Case=Dat|Gender=Neut|Number=Plur"},
"NOUN__Case=Dat|Gender=Neut|Number=Sing": {POS: NOUN, "morph": "Case=Dat|Gender=Neut|Number=Sing"},
"NOUN__Case=Gen|Gender=Fem|Number=Plur": {POS: NOUN, "morph": "Case=Gen|Gender=Fem|Number=Plur"},
"NOUN__Case=Gen|Gender=Fem|Number=Sing": {POS: NOUN, "morph": "Case=Gen|Gender=Fem|Number=Sing"},
"NOUN__Case=Gen|Gender=Neut|Number=Plur": {POS: NOUN, "morph": "Case=Gen|Gender=Neut|Number=Plur"},
"NOUN__Case=Gen|Gender=Neut|Number=Sing": {POS: NOUN, "morph": "Case=Gen|Gender=Neut|Number=Sing"},
"NOUN__Case=Ins|Gender=Fem|Number=Plur": {POS: NOUN, "morph": "Case=Ins|Gender=Fem|Number=Plur"},
"NOUN__Case=Ins|Gender=Fem|Number=Sing": {POS: NOUN, "morph": "Case=Ins|Gender=Fem|Number=Sing"},
"NOUN__Case=Ins|Gender=Neut|Number=Plur": {POS: NOUN, "morph": "Case=Ins|Gender=Neut|Number=Plur"},
"NOUN__Case=Ins|Gender=Neut|Number=Sing": {POS: NOUN, "morph": "Case=Ins|Gender=Neut|Number=Sing"},
"NOUN__Case=Loc|Gender=Fem|Number=Plur": {POS: NOUN, "morph": "Case=Loc|Gender=Fem|Number=Plur"},
"NOUN__Case=Loc|Gender=Fem|Number=Sing": {POS: NOUN, "morph": "Case=Loc|Gender=Fem|Number=Sing"},
"NOUN__Case=Loc|Gender=Neut|Number=Plur": {POS: NOUN, "morph": "Case=Loc|Gender=Neut|Number=Plur"},
"NOUN__Case=Loc|Gender=Neut|Number=Sing": {POS: NOUN, "morph": "Case=Loc|Gender=Neut|Number=Sing"},
"NOUN__Case=Nom|Gender=Fem|Number=Plur": {POS: NOUN, "morph": "Case=Nom|Gender=Fem|Number=Plur"},
"NOUN__Case=Nom|Gender=Fem|Number=Sing": {POS: NOUN, "morph": "Case=Nom|Gender=Fem|Number=Sing"},
"NOUN__Case=Nom|Gender=Neut|Number=Plur": {POS: NOUN, "morph": "Case=Nom|Gender=Neut|Number=Plur"},
"NOUN__Case=Nom|Gender=Neut|Number=Sing": {POS: NOUN, "morph": "Case=Nom|Gender=Neut|Number=Sing"},
"NOUN__Case=Voc|Gender=Fem|Number=Sing": {POS: NOUN, "morph": "Case=Voc|Gender=Fem|Number=Sing"},
"NOUN__Case=Voc|Gender=Neut|Number=Plur": {POS: NOUN, "morph": "Case=Voc|Gender=Neut|Number=Plur"},
"NOUN__Case=Voc|Gender=Neut|Number=Sing": {POS: NOUN, "morph": "Case=Voc|Gender=Neut|Number=Sing"},
"NUM__Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur": {POS: NUM, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur"},
"NUM__Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur": {POS: NUM, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur"},
"NUM__Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur": {POS: NUM, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur"},
"NUM__Animacy=Hum|Case=Ins|Gender=Masc|Number=Plur": {POS: NUM, "morph": "Animacy=Hum|Case=Ins|Gender=Masc|Number=Plur"},
"NUM__Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur": {POS: NUM, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur"},
"NUM__Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur": {POS: NUM, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur"},
"NUM__Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing": {POS: NUM, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing"},
"NUM__Animacy=Inan|Case=Dat|Gender=Masc|Number=Plur": {POS: NUM, "morph": "Animacy=Inan|Case=Dat|Gender=Masc|Number=Plur"},
"NUM__Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur": {POS: NUM, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur"},
"NUM__Animacy=Inan|Case=Ins|Gender=Masc|Number=Plur": {POS: NUM, "morph": "Animacy=Inan|Case=Ins|Gender=Masc|Number=Plur"},
"NUM__Animacy=Inan|Case=Loc|Gender=Masc|Number=Plur": {POS: NUM, "morph": "Animacy=Inan|Case=Loc|Gender=Masc|Number=Plur"},
"NUM__Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing": {POS: NUM, "morph": "Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing"},
"NUM__Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur": {POS: NUM, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur"},
"NUM__Animacy=Nhum|Case=Acc|Gender=Masc|Number=Plur": {POS: NUM, "morph": "Animacy=Nhum|Case=Acc|Gender=Masc|Number=Plur"},
"NUM__Animacy=Nhum|Case=Gen|Gender=Masc|Number=Plur": {POS: NUM, "morph": "Animacy=Nhum|Case=Gen|Gender=Masc|Number=Plur"},
"NUM__Animacy=Nhum|Case=Ins|Gender=Masc|Number=Plur": {POS: NUM, "morph": "Animacy=Nhum|Case=Ins|Gender=Masc|Number=Plur"},
"NUM__Animacy=Nhum|Case=Nom|Gender=Masc|Number=Plur": {POS: NUM, "morph": "Animacy=Nhum|Case=Nom|Gender=Masc|Number=Plur"},
"NUM__Case=Acc|Gender=Fem|Number=Plur": {POS: NUM, "morph": "Case=Acc|Gender=Fem|Number=Plur"},
"NUM__Case=Acc|Gender=Fem|Number=Sing": {POS: NUM, "morph": "Case=Acc|Gender=Fem|Number=Sing"},
"NUM__Case=Acc|Gender=Neut|Number=Plur": {POS: NUM, "morph": "Case=Acc|Gender=Neut|Number=Plur"},
"NUM__Case=Dat|Gender=Fem|Number=Plur": {POS: NUM, "morph": "Case=Dat|Gender=Fem|Number=Plur"},
"NUM__Case=Dat|Gender=Neut|Number=Plur": {POS: NUM, "morph": "Case=Dat|Gender=Neut|Number=Plur"},
"NUM__Case=Gen|Gender=Fem|Number=Plur": {POS: NUM, "morph": "Case=Gen|Gender=Fem|Number=Plur"},
"NUM__Case=Gen|Gender=Neut|Number=Plur": {POS: NUM, "morph": "Case=Gen|Gender=Neut|Number=Plur"},
"NUM__Case=Ins|Gender=Fem|Number=Plur": {POS: NUM, "morph": "Case=Ins|Gender=Fem|Number=Plur"},
"NUM__Case=Ins|Gender=Neut|Number=Plur": {POS: NUM, "morph": "Case=Ins|Gender=Neut|Number=Plur"},
"NUM__Case=Loc|Gender=Fem|Number=Plur": {POS: NUM, "morph": "Case=Loc|Gender=Fem|Number=Plur"},
"NUM__Case=Loc|Gender=Neut|Number=Plur": {POS: NUM, "morph": "Case=Loc|Gender=Neut|Number=Plur"},
"NUM__Case=Nom|Gender=Fem|Number=Plur": {POS: NUM, "morph": "Case=Nom|Gender=Fem|Number=Plur"},
"NUM__Case=Nom|Gender=Neut|Number=Plur": {POS: NUM, "morph": "Case=Nom|Gender=Neut|Number=Plur"},
"NUM__Case=Nom|Number=Plur": {POS: NUM, "morph": "Case=Nom|Number=Plur"},
"PART___": {POS: PART},
"PRON__Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|Person=1|PronType=Prs": {POS: PRON, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|Person=1|PronType=Prs"},
"PRON__Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|Person=2|PronType=Prs": {POS: PRON, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|Person=2|PronType=Prs"},
"PRON__Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|PronType=Tot": {POS: PRON, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur|PronType=Tot"},
"PRON__Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|Person=1|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|Person=1|PronType=Prs|Variant=Long"},
"PRON__Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|Person=2|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|Person=2|PronType=Prs|Variant=Long"},
"PRON__Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|Person=2|PronType=Prs|Variant=Short": {POS: PRON, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|Person=2|PronType=Prs|Variant=Short"},
"PRON__Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Short": {POS: PRON, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Short"},
"PRON__Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Short": {POS: PRON, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Short"},
"PRON__Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|PronType=Ind": {POS: PRON, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|PronType=Ind"},
"PRON__Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|PronType=Int,Rel": {POS: PRON, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|PronType=Int,Rel"},
"PRON__Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|PronType=Neg": {POS: PRON, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing|PronType=Neg"},
"PRON__Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur|Person=1|PronType=Prs": {POS: PRON, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur|Person=1|PronType=Prs"},
"PRON__Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur|Person=2|PronType=Prs": {POS: PRON, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur|Person=2|PronType=Prs"},
"PRON__Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur|PronType=Tot": {POS: PRON, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur|PronType=Tot"},
"PRON__Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|Person=1|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|Person=1|PronType=Prs|Variant=Long"},
"PRON__Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|Person=1|PronType=Prs|Variant=Short": {POS: PRON, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|Person=1|PronType=Prs|Variant=Short"},
"PRON__Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|Person=2|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|Person=2|PronType=Prs|Variant=Long"},
"PRON__Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|Person=2|PronType=Prs|Variant=Short": {POS: PRON, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|Person=2|PronType=Prs|Variant=Short"},
"PRON__Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Short": {POS: PRON, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Short"},
"PRON__Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|PronType=Ind": {POS: PRON, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|PronType=Ind"},
"PRON__Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|PronType=Int,Rel": {POS: PRON, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|PronType=Int,Rel"},
"PRON__Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|PronType=Neg": {POS: PRON, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing|PronType=Neg"},
"PRON__Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur|Person=1|PronType=Prs": {POS: PRON, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur|Person=1|PronType=Prs"},
"PRON__Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur|Person=2|PronType=Prs": {POS: PRON, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur|Person=2|PronType=Prs"},
"PRON__Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur|PronType=Tot": {POS: PRON, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur|PronType=Tot"},
"PRON__Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|Person=1|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|Person=1|PronType=Prs|Variant=Long"},
"PRON__Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|Person=2|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|Person=2|PronType=Prs|Variant=Long"},
"PRON__Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|Person=2|PronType=Prs|Variant=Short": {POS: PRON, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|Person=2|PronType=Prs|Variant=Short"},
"PRON__Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Short": {POS: PRON, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Short"},
"PRON__Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|PronType=Ind": {POS: PRON, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|PronType=Ind"},
"PRON__Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|PronType=Int,Rel": {POS: PRON, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|PronType=Int,Rel"},
"PRON__Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|PronType=Neg": {POS: PRON, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing|PronType=Neg"},
"PRON__Animacy=Hum|Case=Ins|Gender=Masc|Number=Plur|Person=1|PronType=Prs": {POS: PRON, "morph": "Animacy=Hum|Case=Ins|Gender=Masc|Number=Plur|Person=1|PronType=Prs"},
"PRON__Animacy=Hum|Case=Ins|Gender=Masc|Number=Plur|Person=2|PronType=Prs": {POS: PRON, "morph": "Animacy=Hum|Case=Ins|Gender=Masc|Number=Plur|Person=2|PronType=Prs"},
"PRON__Animacy=Hum|Case=Ins|Gender=Masc|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Hum|Case=Ins|Gender=Masc|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Animacy=Hum|Case=Ins|Gender=Masc|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Short": {POS: PRON, "morph": "Animacy=Hum|Case=Ins|Gender=Masc|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Short"},
"PRON__Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing|Person=1|PronType=Prs": {POS: PRON, "morph": "Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing|Person=1|PronType=Prs"},
"PRON__Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing|Person=2|PronType=Prs": {POS: PRON, "morph": "Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing|Person=2|PronType=Prs"},
"PRON__Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing|PronType=Int,Rel": {POS: PRON, "morph": "Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing|PronType=Int,Rel"},
"PRON__Animacy=Hum|Case=Loc|Gender=Masc|Number=Sing|Person=1|PronType=Prs": {POS: PRON, "morph": "Animacy=Hum|Case=Loc|Gender=Masc|Number=Sing|Person=1|PronType=Prs"},
"PRON__Animacy=Hum|Case=Loc|Gender=Masc|Number=Sing|Person=2|PronType=Prs": {POS: PRON, "morph": "Animacy=Hum|Case=Loc|Gender=Masc|Number=Sing|Person=2|PronType=Prs"},
"PRON__Animacy=Hum|Case=Loc|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Hum|Case=Loc|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Animacy=Hum|Case=Loc|Gender=Masc|Number=Sing|PronType=Ind": {POS: PRON, "morph": "Animacy=Hum|Case=Loc|Gender=Masc|Number=Sing|PronType=Ind"},
"PRON__Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|Person=1|PronType=Prs": {POS: PRON, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|Person=1|PronType=Prs"},
"PRON__Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|Person=2|PronType=Prs": {POS: PRON, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|Person=2|PronType=Prs"},
"PRON__Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|PronType=Tot": {POS: PRON, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur|PronType=Tot"},
"PRON__Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|Person=1|PronType=Prs": {POS: PRON, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|Person=1|PronType=Prs"},
"PRON__Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|Person=2|PronType=Prs": {POS: PRON, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|Person=2|PronType=Prs"},
"PRON__Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|PronType=Ind": {POS: PRON, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|PronType=Ind"},
"PRON__Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|PronType=Int,Rel": {POS: PRON, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|PronType=Int,Rel"},
"PRON__Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|PronType=Neg": {POS: PRON, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing|PronType=Neg"},
"PRON__Animacy=Hum|Case=Voc|Gender=Masc|Number=Sing|Person=2|PronType=Prs": {POS: PRON, "morph": "Animacy=Hum|Case=Voc|Gender=Masc|Number=Sing|Person=2|PronType=Prs"},
"PRON__Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Short": {POS: PRON, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Short"},
"PRON__Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Animacy=Inan|Case=Dat|Gender=Masc|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Inan|Case=Dat|Gender=Masc|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Animacy=Inan|Case=Dat|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Short": {POS: PRON, "morph": "Animacy=Inan|Case=Dat|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Short"},
"PRON__Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Short": {POS: PRON, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Short"},
"PRON__Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Animacy=Inan|Case=Ins|Gender=Masc|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Inan|Case=Ins|Gender=Masc|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Animacy=Inan|Case=Ins|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Inan|Case=Ins|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Animacy=Inan|Case=Loc|Gender=Masc|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Inan|Case=Loc|Gender=Masc|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Animacy=Nhum|Case=Acc|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Short": {POS: PRON, "morph": "Animacy=Nhum|Case=Acc|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Short"},
"PRON__Animacy=Nhum|Case=Acc|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Nhum|Case=Acc|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Animacy=Nhum|Case=Dat|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Short": {POS: PRON, "morph": "Animacy=Nhum|Case=Dat|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Short"},
"PRON__Animacy=Nhum|Case=Gen|Gender=Masc|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Nhum|Case=Gen|Gender=Masc|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Animacy=Nhum|Case=Gen|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Nhum|Case=Gen|Gender=Masc|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Animacy=Nhum|Case=Gen|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Nhum|Case=Gen|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Animacy=Nhum|Case=Ins|Gender=Masc|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Nhum|Case=Ins|Gender=Masc|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Animacy=Nhum|Case=Ins|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Nhum|Case=Ins|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Animacy=Nhum|Case=Loc|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Animacy=Nhum|Case=Loc|Gender=Masc|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Case=Acc|Gender=Fem|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Acc|Gender=Fem|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Case=Acc|Gender=Fem|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Acc|Gender=Fem|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Case=Acc|Gender=Fem|Number=Sing|Person=1|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Acc|Gender=Fem|Number=Sing|Person=1|PronType=Prs|Variant=Long"},
"PRON__Case=Acc|Gender=Fem|Number=Sing|Person=2|PronType=Prs|Variant=Short": {POS: PRON, "morph": "Case=Acc|Gender=Fem|Number=Sing|Person=2|PronType=Prs|Variant=Short"},
"PRON__Case=Acc|Gender=Fem|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Acc|Gender=Fem|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Case=Acc|Gender=Fem|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Acc|Gender=Fem|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Case=Acc|Gender=Neut|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Acc|Gender=Neut|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Case=Acc|Gender=Neut|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Acc|Gender=Neut|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Case=Acc|Gender=Neut|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Acc|Gender=Neut|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Case=Acc|Gender=Neut|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Acc|Gender=Neut|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Case=Acc|Gender=Neut|Number=Sing|PronType=Dem": {POS: PRON, "morph": "Case=Acc|Gender=Neut|Number=Sing|PronType=Dem"},
"PRON__Case=Acc|Gender=Neut|Number=Sing|PronType=Ind": {POS: PRON, "morph": "Case=Acc|Gender=Neut|Number=Sing|PronType=Ind"},
"PRON__Case=Acc|Gender=Neut|Number=Sing|PronType=Int,Rel": {POS: PRON, "morph": "Case=Acc|Gender=Neut|Number=Sing|PronType=Int,Rel"},
"PRON__Case=Acc|Gender=Neut|Number=Sing|PronType=Neg": {POS: PRON, "morph": "Case=Acc|Gender=Neut|Number=Sing|PronType=Neg"},
"PRON__Case=Acc|Gender=Neut|Number=Sing|PronType=Tot": {POS: PRON, "morph": "Case=Acc|Gender=Neut|Number=Sing|PronType=Tot"},
"PRON__Case=Acc|PronType=Prs|Reflex=Yes": {POS: PRON, "morph": "Case=Acc|PronType=Prs|Reflex=Yes"},
"PRON__Case=Dat|Gender=Fem|Number=Plur|Person=1|PronType=Prs": {POS: PRON, "morph": "Case=Dat|Gender=Fem|Number=Plur|Person=1|PronType=Prs"},
"PRON__Case=Dat|Gender=Fem|Number=Plur|Person=2|PronType=Prs": {POS: PRON, "morph": "Case=Dat|Gender=Fem|Number=Plur|Person=2|PronType=Prs"},
"PRON__Case=Dat|Gender=Fem|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Dat|Gender=Fem|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Case=Dat|Gender=Fem|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Dat|Gender=Fem|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Case=Dat|Gender=Fem|Number=Sing|Person=1|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Dat|Gender=Fem|Number=Sing|Person=1|PronType=Prs|Variant=Long"},
"PRON__Case=Dat|Gender=Fem|Number=Sing|Person=1|PronType=Prs|Variant=Short": {POS: PRON, "morph": "Case=Dat|Gender=Fem|Number=Sing|Person=1|PronType=Prs|Variant=Short"},
"PRON__Case=Dat|Gender=Fem|Number=Sing|Person=2|PronType=Prs|Variant=Short": {POS: PRON, "morph": "Case=Dat|Gender=Fem|Number=Sing|Person=2|PronType=Prs|Variant=Short"},
"PRON__Case=Dat|Gender=Fem|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Dat|Gender=Fem|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Case=Dat|Gender=Neut|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Dat|Gender=Neut|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Case=Dat|Gender=Neut|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Short": {POS: PRON, "morph": "Case=Dat|Gender=Neut|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Short"},
"PRON__Case=Dat|Gender=Neut|Number=Sing|PronType=Dem": {POS: PRON, "morph": "Case=Dat|Gender=Neut|Number=Sing|PronType=Dem"},
"PRON__Case=Dat|Gender=Neut|Number=Sing|PronType=Int,Rel": {POS: PRON, "morph": "Case=Dat|Gender=Neut|Number=Sing|PronType=Int,Rel"},
"PRON__Case=Dat|PronType=Prs|Reflex=Yes": {POS: PRON, "morph": "Case=Dat|PronType=Prs|Reflex=Yes"},
"PRON__Case=Gen|Gender=Fem|Number=Plur|Person=1|PronType=Prs": {POS: PRON, "morph": "Case=Gen|Gender=Fem|Number=Plur|Person=1|PronType=Prs"},
"PRON__Case=Gen|Gender=Fem|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Gen|Gender=Fem|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Case=Gen|Gender=Fem|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Gen|Gender=Fem|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Case=Gen|Gender=Fem|Number=Sing|Person=1|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Gen|Gender=Fem|Number=Sing|Person=1|PronType=Prs|Variant=Long"},
"PRON__Case=Gen|Gender=Fem|Number=Sing|Person=2|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Gen|Gender=Fem|Number=Sing|Person=2|PronType=Prs|Variant=Long"},
"PRON__Case=Gen|Gender=Fem|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Gen|Gender=Fem|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Case=Gen|Gender=Fem|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Gen|Gender=Fem|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Case=Gen|Gender=Neut|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Gen|Gender=Neut|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Case=Gen|Gender=Neut|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Gen|Gender=Neut|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Case=Gen|Gender=Neut|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Gen|Gender=Neut|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Case=Gen|Gender=Neut|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Short": {POS: PRON, "morph": "Case=Gen|Gender=Neut|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Short"},
"PRON__Case=Gen|Gender=Neut|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Gen|Gender=Neut|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Case=Gen|Gender=Neut|Number=Sing|PronType=Dem": {POS: PRON, "morph": "Case=Gen|Gender=Neut|Number=Sing|PronType=Dem"},
"PRON__Case=Gen|Gender=Neut|Number=Sing|PronType=Ind": {POS: PRON, "morph": "Case=Gen|Gender=Neut|Number=Sing|PronType=Ind"},
"PRON__Case=Gen|Gender=Neut|Number=Sing|PronType=Int,Rel": {POS: PRON, "morph": "Case=Gen|Gender=Neut|Number=Sing|PronType=Int,Rel"},
"PRON__Case=Gen|Gender=Neut|Number=Sing|PronType=Neg": {POS: PRON, "morph": "Case=Gen|Gender=Neut|Number=Sing|PronType=Neg"},
"PRON__Case=Gen|Gender=Neut|Number=Sing|PronType=Tot": {POS: PRON, "morph": "Case=Gen|Gender=Neut|Number=Sing|PronType=Tot"},
"PRON__Case=Gen|PronType=Prs|Reflex=Yes": {POS: PRON, "morph": "Case=Gen|PronType=Prs|Reflex=Yes"},
"PRON__Case=Ins|Gender=Fem|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Ins|Gender=Fem|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Case=Ins|Gender=Fem|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Ins|Gender=Fem|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Case=Ins|Gender=Fem|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Short": {POS: PRON, "morph": "Case=Ins|Gender=Fem|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Short"},
"PRON__Case=Ins|Gender=Fem|Number=Sing|Person=1|PronType=Prs": {POS: PRON, "morph": "Case=Ins|Gender=Fem|Number=Sing|Person=1|PronType=Prs"},
"PRON__Case=Ins|Gender=Fem|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Ins|Gender=Fem|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Case=Ins|Gender=Neut|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Ins|Gender=Neut|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Case=Ins|Gender=Neut|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Ins|Gender=Neut|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Case=Ins|Gender=Neut|Number=Sing|PronType=Dem": {POS: PRON, "morph": "Case=Ins|Gender=Neut|Number=Sing|PronType=Dem"},
"PRON__Case=Ins|Gender=Neut|Number=Sing|PronType=Ind": {POS: PRON, "morph": "Case=Ins|Gender=Neut|Number=Sing|PronType=Ind"},
"PRON__Case=Ins|Gender=Neut|Number=Sing|PronType=Int,Rel": {POS: PRON, "morph": "Case=Ins|Gender=Neut|Number=Sing|PronType=Int,Rel"},
"PRON__Case=Ins|Gender=Neut|Number=Sing|PronType=Tot": {POS: PRON, "morph": "Case=Ins|Gender=Neut|Number=Sing|PronType=Tot"},
"PRON__Case=Ins|PronType=Prs|Reflex=Yes": {POS: PRON, "morph": "Case=Ins|PronType=Prs|Reflex=Yes"},
"PRON__Case=Loc|Gender=Fem|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Loc|Gender=Fem|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Case=Loc|Gender=Fem|Number=Sing|Person=1|PronType=Prs": {POS: PRON, "morph": "Case=Loc|Gender=Fem|Number=Sing|Person=1|PronType=Prs"},
"PRON__Case=Loc|Gender=Fem|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Loc|Gender=Fem|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Case=Loc|Gender=Neut|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Loc|Gender=Neut|Number=Plur|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Case=Loc|Gender=Neut|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Loc|Gender=Neut|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs|Variant=Long"},
"PRON__Case=Loc|Gender=Neut|Number=Sing|PronType=Dem": {POS: PRON, "morph": "Case=Loc|Gender=Neut|Number=Sing|PronType=Dem"},
"PRON__Case=Loc|Gender=Neut|Number=Sing|PronType=Int,Rel": {POS: PRON, "morph": "Case=Loc|Gender=Neut|Number=Sing|PronType=Int,Rel"},
"PRON__Case=Loc|Gender=Neut|Number=Sing|PronType=Neg": {POS: PRON, "morph": "Case=Loc|Gender=Neut|Number=Sing|PronType=Neg"},
"PRON__Case=Loc|Gender=Neut|Number=Sing|PronType=Tot": {POS: PRON, "morph": "Case=Loc|Gender=Neut|Number=Sing|PronType=Tot"},
"PRON__Case=Loc|PronType=Prs|Reflex=Yes": {POS: PRON, "morph": "Case=Loc|PronType=Prs|Reflex=Yes"},
"PRON__Case=Nom|Gender=Fem|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Nom|Gender=Fem|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Case=Nom|Gender=Fem|Number=Sing|Person=1|PronType=Prs": {POS: PRON, "morph": "Case=Nom|Gender=Fem|Number=Sing|Person=1|PronType=Prs"},
"PRON__Case=Nom|Gender=Fem|Number=Sing|Person=2|PronType=Prs": {POS: PRON, "morph": "Case=Nom|Gender=Fem|Number=Sing|Person=2|PronType=Prs"},
"PRON__Case=Nom|Gender=Fem|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Nom|Gender=Fem|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Case=Nom|Gender=Neut|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Nom|Gender=Neut|Number=Plur|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Case=Nom|Gender=Neut|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long": {POS: PRON, "morph": "Case=Nom|Gender=Neut|Number=Sing|Person=3|PrepCase=Npr|PronType=Prs|Variant=Long"},
"PRON__Case=Nom|Gender=Neut|Number=Sing|PronType=Dem": {POS: PRON, "morph": "Case=Nom|Gender=Neut|Number=Sing|PronType=Dem"},
"PRON__Case=Nom|Gender=Neut|Number=Sing|PronType=Ind": {POS: PRON, "morph": "Case=Nom|Gender=Neut|Number=Sing|PronType=Ind"},
"PRON__Case=Nom|Gender=Neut|Number=Sing|PronType=Int,Rel": {POS: PRON, "morph": "Case=Nom|Gender=Neut|Number=Sing|PronType=Int,Rel"},
"PRON__Case=Nom|Gender=Neut|Number=Sing|PronType=Neg": {POS: PRON, "morph": "Case=Nom|Gender=Neut|Number=Sing|PronType=Neg"},
"PRON__Case=Nom|Gender=Neut|Number=Sing|PronType=Tot": {POS: PRON, "morph": "Case=Nom|Gender=Neut|Number=Sing|PronType=Tot"},
"PRON__PronType=Prs|Reflex=Yes": {POS: PRON, "morph": "PronType=Prs|Reflex=Yes"},
"PRON__PronType=Prs|Reflex=Yes|Typo=Yes": {POS: PRON, "morph": "PronType=Prs|Reflex=Yes|Typo=Yes"},
"PROPN__Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur": {POS: PROPN, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Plur"},
"PROPN__Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing": {POS: PROPN, "morph": "Animacy=Hum|Case=Acc|Gender=Masc|Number=Sing"},
"PROPN__Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur": {POS: PROPN, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Plur"},
"PROPN__Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing": {POS: PROPN, "morph": "Animacy=Hum|Case=Dat|Gender=Masc|Number=Sing"},
"PROPN__Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur": {POS: PROPN, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Plur"},
"PROPN__Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing": {POS: PROPN, "morph": "Animacy=Hum|Case=Gen|Gender=Masc|Number=Sing"},
"PROPN__Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing": {POS: PROPN, "morph": "Animacy=Hum|Case=Ins|Gender=Masc|Number=Sing"},
"PROPN__Animacy=Hum|Case=Loc|Gender=Masc|Number=Plur": {POS: PROPN, "morph": "Animacy=Hum|Case=Loc|Gender=Masc|Number=Plur"},
"PROPN__Animacy=Hum|Case=Loc|Gender=Masc|Number=Sing": {POS: PROPN, "morph": "Animacy=Hum|Case=Loc|Gender=Masc|Number=Sing"},
"PROPN__Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur": {POS: PROPN, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Plur"},
"PROPN__Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing": {POS: PROPN, "morph": "Animacy=Hum|Case=Nom|Gender=Masc|Number=Sing"},
"PROPN__Animacy=Hum|Case=Voc|Gender=Masc|Number=Plur": {POS: PROPN, "morph": "Animacy=Hum|Case=Voc|Gender=Masc|Number=Plur"},
"PROPN__Animacy=Hum|Case=Voc|Gender=Masc|Number=Sing": {POS: PROPN, "morph": "Animacy=Hum|Case=Voc|Gender=Masc|Number=Sing"},
"PROPN__Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur": {POS: PROPN, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Plur"},
"PROPN__Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing": {POS: PROPN, "morph": "Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing"},
"PROPN__Animacy=Inan|Case=Dat|Gender=Masc|Number=Sing": {POS: PROPN, "morph": "Animacy=Inan|Case=Dat|Gender=Masc|Number=Sing"},
"PROPN__Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur": {POS: PROPN, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Plur"},
"PROPN__Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing": {POS: PROPN, "morph": "Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing"},
"PROPN__Animacy=Inan|Case=Ins|Gender=Masc|Number=Sing": {POS: PROPN, "morph": "Animacy=Inan|Case=Ins|Gender=Masc|Number=Sing"},
"PROPN__Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing": {POS: PROPN, "morph": "Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing"},
"PROPN__Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur": {POS: PROPN, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Plur"},
"PROPN__Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing": {POS: PROPN, "morph": "Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing"},
"PROPN__Animacy=Nhum|Case=Acc|Gender=Masc|Number=Sing": {POS: PROPN, "morph": "Animacy=Nhum|Case=Acc|Gender=Masc|Number=Sing"},
"PROPN__Animacy=Nhum|Case=Gen|Gender=Masc|Number=Plur": {POS: PROPN, "morph": "Animacy=Nhum|Case=Gen|Gender=Masc|Number=Plur"},
"PROPN__Animacy=Nhum|Case=Gen|Gender=Masc|Number=Sing": {POS: PROPN, "morph": "Animacy=Nhum|Case=Gen|Gender=Masc|Number=Sing"},
"PROPN__Animacy=Nhum|Case=Ins|Gender=Masc|Number=Sing": {POS: PROPN, "morph": "Animacy=Nhum|Case=Ins|Gender=Masc|Number=Sing"},
"PROPN__Animacy=Nhum|Case=Loc|Gender=Masc|Number=Sing": {POS: PROPN, "morph": "Animacy=Nhum|Case=Loc|Gender=Masc|Number=Sing"},
"PROPN__Animacy=Nhum|Case=Nom|Gender=Masc|Number=Plur": {POS: PROPN, "morph": "Animacy=Nhum|Case=Nom|Gender=Masc|Number=Plur"},
"PROPN__Animacy=Nhum|Case=Nom|Gender=Masc|Number=Sing": {POS: PROPN, "morph": "Animacy=Nhum|Case=Nom|Gender=Masc|Number=Sing"},
"PROPN__Case=Acc|Gender=Fem|Number=Plur": {POS: PROPN, "morph": "Case=Acc|Gender=Fem|Number=Plur"},
"PROPN__Case=Acc|Gender=Fem|Number=Sing": {POS: PROPN, "morph": "Case=Acc|Gender=Fem|Number=Sing"},
"PROPN__Case=Acc|Gender=Neut|Number=Plur": {POS: PROPN, "morph": "Case=Acc|Gender=Neut|Number=Plur"},
"PROPN__Case=Acc|Gender=Neut|Number=Sing": {POS: PROPN, "morph": "Case=Acc|Gender=Neut|Number=Sing"},
"PROPN__Case=Dat|Gender=Fem|Number=Plur": {POS: PROPN, "morph": "Case=Dat|Gender=Fem|Number=Plur"},
"PROPN__Case=Dat|Gender=Fem|Number=Sing": {POS: PROPN, "morph": "Case=Dat|Gender=Fem|Number=Sing"},
"PROPN__Case=Dat|Gender=Neut|Number=Sing": {POS: PROPN, "morph": "Case=Dat|Gender=Neut|Number=Sing"},
"PROPN__Case=Gen|Gender=Fem|Number=Plur": {POS: PROPN, "morph": "Case=Gen|Gender=Fem|Number=Plur"},
"PROPN__Case=Gen|Gender=Fem|Number=Sing": {POS: PROPN, "morph": "Case=Gen|Gender=Fem|Number=Sing"},
"PROPN__Case=Gen|Gender=Neut|Number=Plur": {POS: PROPN, "morph": "Case=Gen|Gender=Neut|Number=Plur"},
"PROPN__Case=Gen|Gender=Neut|Number=Sing": {POS: PROPN, "morph": "Case=Gen|Gender=Neut|Number=Sing"},
"PROPN__Case=Ins|Gender=Fem|Number=Plur": {POS: PROPN, "morph": "Case=Ins|Gender=Fem|Number=Plur"},
"PROPN__Case=Ins|Gender=Fem|Number=Sing": {POS: PROPN, "morph": "Case=Ins|Gender=Fem|Number=Sing"},
"PROPN__Case=Ins|Gender=Neut|Number=Plur": {POS: PROPN, "morph": "Case=Ins|Gender=Neut|Number=Plur"},
"PROPN__Case=Ins|Gender=Neut|Number=Sing": {POS: PROPN, "morph": "Case=Ins|Gender=Neut|Number=Sing"},
"PROPN__Case=Loc|Gender=Fem|Number=Sing": {POS: PROPN, "morph": "Case=Loc|Gender=Fem|Number=Sing"},
"PROPN__Case=Loc|Gender=Neut|Number=Plur": {POS: PROPN, "morph": "Case=Loc|Gender=Neut|Number=Plur"},
"PROPN__Case=Loc|Gender=Neut|Number=Sing": {POS: PROPN, "morph": "Case=Loc|Gender=Neut|Number=Sing"},
"PROPN__Case=Nom|Gender=Fem|Number=Sing": {POS: PROPN, "morph": "Case=Nom|Gender=Fem|Number=Sing"},
"PROPN__Case=Nom|Gender=Neut|Number=Plur": {POS: PROPN, "morph": "Case=Nom|Gender=Neut|Number=Plur"},
"PROPN__Case=Nom|Gender=Neut|Number=Sing": {POS: PROPN, "morph": "Case=Nom|Gender=Neut|Number=Sing"},
"PROPN__Case=Voc|Gender=Fem|Number=Sing": {POS: PROPN, "morph": "Case=Voc|Gender=Fem|Number=Sing"},
"PROPN__Case=Voc|Gender=Neut|Number=Plur": {POS: PROPN, "morph": "Case=Voc|Gender=Neut|Number=Plur"},
"PUNCT___": {POS: PUNCT},
"SCONJ___": {POS: SCONJ},
"VERB___": {POS: VERB},
"VERB__Animacy=Hum|Aspect=Imp|Gender=Masc|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act": {POS: VERB, "morph": "Animacy=Hum|Aspect=Imp|Gender=Masc|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act"},
"VERB__Animacy=Hum|Aspect=Imp|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act": {POS: VERB, "morph": "Animacy=Hum|Aspect=Imp|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act"},
"VERB__Animacy=Hum|Aspect=Perf|Gender=Masc|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act": {POS: VERB, "morph": "Animacy=Hum|Aspect=Perf|Gender=Masc|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act"},
"VERB__Animacy=Hum|Aspect=Perf|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act": {POS: VERB, "morph": "Animacy=Hum|Aspect=Perf|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act"},
"VERB__Animacy=Inan|Aspect=Imp|Gender=Masc|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act": {POS: VERB, "morph": "Animacy=Inan|Aspect=Imp|Gender=Masc|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act"},
"VERB__Animacy=Inan|Aspect=Imp|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act": {POS: VERB, "morph": "Animacy=Inan|Aspect=Imp|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act"},
"VERB__Animacy=Inan|Aspect=Perf|Gender=Masc|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act": {POS: VERB, "morph": "Animacy=Inan|Aspect=Perf|Gender=Masc|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act"},
"VERB__Animacy=Inan|Aspect=Perf|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act": {POS: VERB, "morph": "Animacy=Inan|Aspect=Perf|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act"},
"VERB__Animacy=Nhum|Aspect=Imp|Gender=Masc|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act": {POS: VERB, "morph": "Animacy=Nhum|Aspect=Imp|Gender=Masc|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act"},
"VERB__Animacy=Nhum|Aspect=Imp|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act": {POS: VERB, "morph": "Animacy=Nhum|Aspect=Imp|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act"},
"VERB__Animacy=Nhum|Aspect=Perf|Gender=Masc|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act": {POS: VERB, "morph": "Animacy=Nhum|Aspect=Perf|Gender=Masc|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act"},
"VERB__Animacy=Nhum|Aspect=Perf|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act": {POS: VERB, "morph": "Animacy=Nhum|Aspect=Perf|Gender=Masc|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act"},
"VERB__Aspect=Imp|Gender=Fem|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act": {POS: VERB, "morph": "Aspect=Imp|Gender=Fem|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act"},
"VERB__Aspect=Imp|Gender=Fem|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act": {POS: VERB, "morph": "Aspect=Imp|Gender=Fem|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act"},
"VERB__Aspect=Imp|Gender=Neut|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act": {POS: VERB, "morph": "Aspect=Imp|Gender=Neut|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act"},
"VERB__Aspect=Imp|Gender=Neut|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act": {POS: VERB, "morph": "Aspect=Imp|Gender=Neut|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act"},
"VERB__Aspect=Imp|Mood=Imp|Number=Plur|Person=1|VerbForm=Fin": {POS: VERB, "morph": "Aspect=Imp|Mood=Imp|Number=Plur|Person=1|VerbForm=Fin"},
"VERB__Aspect=Imp|Mood=Imp|Number=Plur|Person=2|VerbForm=Fin": {POS: VERB, "morph": "Aspect=Imp|Mood=Imp|Number=Plur|Person=2|VerbForm=Fin"},
"VERB__Aspect=Imp|Mood=Imp|Number=Sing|Person=2|VerbForm=Fin": {POS: VERB, "morph": "Aspect=Imp|Mood=Imp|Number=Sing|Person=2|VerbForm=Fin"},
"VERB__Aspect=Imp|Mood=Ind|Number=Plur|Person=1|Tense=Pres|VerbForm=Fin": {POS: VERB, "morph": "Aspect=Imp|Mood=Ind|Number=Plur|Person=1|Tense=Pres|VerbForm=Fin"},
"VERB__Aspect=Imp|Mood=Ind|Number=Plur|Person=2|Tense=Pres|VerbForm=Fin": {POS: VERB, "morph": "Aspect=Imp|Mood=Ind|Number=Plur|Person=2|Tense=Pres|VerbForm=Fin"},
"VERB__Aspect=Imp|Mood=Ind|Number=Plur|Person=3|Tense=Pres|VerbForm=Fin": {POS: VERB, "morph": "Aspect=Imp|Mood=Ind|Number=Plur|Person=3|Tense=Pres|VerbForm=Fin"},
"VERB__Aspect=Imp|Mood=Ind|Number=Sing|Person=1|Tense=Pres|VerbForm=Fin": {POS: VERB, "morph": "Aspect=Imp|Mood=Ind|Number=Sing|Person=1|Tense=Pres|VerbForm=Fin"},
"VERB__Aspect=Imp|Mood=Ind|Number=Sing|Person=2|Tense=Pres|VerbForm=Fin": {POS: VERB, "morph": "Aspect=Imp|Mood=Ind|Number=Sing|Person=2|Tense=Pres|VerbForm=Fin"},
"VERB__Aspect=Imp|Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin": {POS: VERB, "morph": "Aspect=Imp|Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin"},
"VERB__Aspect=Imp|Tense=Pres|VerbForm=Conv": {POS: VERB, "morph": "Aspect=Imp|Tense=Pres|VerbForm=Conv"},
"VERB__Aspect=Imp|VerbForm=Inf": {POS: VERB, "morph": "Aspect=Imp|VerbForm=Inf"},
"VERB__Aspect=Perf|Gender=Fem|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act": {POS: VERB, "morph": "Aspect=Perf|Gender=Fem|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act"},
"VERB__Aspect=Perf|Gender=Fem|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act": {POS: VERB, "morph": "Aspect=Perf|Gender=Fem|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act"},
"VERB__Aspect=Perf|Gender=Neut|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act": {POS: VERB, "morph": "Aspect=Perf|Gender=Neut|Number=Plur|Tense=Past|VerbForm=Part|Voice=Act"},
"VERB__Aspect=Perf|Gender=Neut|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act": {POS: VERB, "morph": "Aspect=Perf|Gender=Neut|Number=Sing|Tense=Past|VerbForm=Part|Voice=Act"},
"VERB__Aspect=Perf|Mood=Imp|Number=Plur|Person=1|VerbForm=Fin": {POS: VERB, "morph": "Aspect=Perf|Mood=Imp|Number=Plur|Person=1|VerbForm=Fin"},
"VERB__Aspect=Perf|Mood=Imp|Number=Plur|Person=2|VerbForm=Fin": {POS: VERB, "morph": "Aspect=Perf|Mood=Imp|Number=Plur|Person=2|VerbForm=Fin"},
"VERB__Aspect=Perf|Mood=Imp|Number=Sing|Person=2|VerbForm=Fin": {POS: VERB, "morph": "Aspect=Perf|Mood=Imp|Number=Sing|Person=2|VerbForm=Fin"},
"VERB__Aspect=Perf|Mood=Ind|Number=Plur|Person=1|Tense=Pres|VerbForm=Fin": {POS: VERB, "morph": "Aspect=Perf|Mood=Ind|Number=Plur|Person=1|Tense=Pres|VerbForm=Fin"},
"VERB__Aspect=Perf|Mood=Ind|Number=Plur|Person=2|Tense=Pres|VerbForm=Fin": {POS: VERB, "morph": "Aspect=Perf|Mood=Ind|Number=Plur|Person=2|Tense=Pres|VerbForm=Fin"},
"VERB__Aspect=Perf|Mood=Ind|Number=Plur|Person=3|Tense=Pres|VerbForm=Fin": {POS: VERB, "morph": "Aspect=Perf|Mood=Ind|Number=Plur|Person=3|Tense=Pres|VerbForm=Fin"},
"VERB__Aspect=Perf|Mood=Ind|Number=Sing|Person=1|Tense=Pres|VerbForm=Fin": {POS: VERB, "morph": "Aspect=Perf|Mood=Ind|Number=Sing|Person=1|Tense=Pres|VerbForm=Fin"},
"VERB__Aspect=Perf|Mood=Ind|Number=Sing|Person=2|Tense=Pres|VerbForm=Fin": {POS: VERB, "morph": "Aspect=Perf|Mood=Ind|Number=Sing|Person=2|Tense=Pres|VerbForm=Fin"},
"VERB__Aspect=Perf|Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin": {POS: VERB, "morph": "Aspect=Perf|Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin"},
"VERB__Aspect=Perf|Tense=Past|VerbForm=Conv": {POS: VERB, "morph": "Aspect=Perf|Tense=Past|VerbForm=Conv"},
"VERB__Aspect=Perf|VerbForm=Inf": {POS: VERB, "morph": "Aspect=Perf|VerbForm=Inf"},
"X___": {POS: X},
"X__Abbr=Yes": {POS: X, "morph": "Abbr=Yes"}
}
# fmt: on
| 152.066667 | 245 | 0.682635 | 38,876 | 250,910 | 4.349933 | 0.004038 | 0.08332 | 0.09556 | 0.063865 | 0.991774 | 0.985926 | 0.971432 | 0.95164 | 0.906598 | 0.866594 | 0 | 0.008188 | 0.077095 | 250,910 | 1,649 | 246 | 152.158884 | 0.722092 | 0.000128 | 0 | 0 | 0 | 0.674985 | 0.740973 | 0.587799 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.116251 | 0.001217 | 0 | 0.001217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 11 |
9c13cebd205edae29c34bac7080a4aed2e45b4d8 | 209 | py | Python | src/vessel-drift-analysis/tests/test_utils.py | yosoyjay/project-nps-vessel-drift | 1cdc14ef87db31fa03b0c3bdc1d60c332727ef57 | [
"MIT"
] | null | null | null | src/vessel-drift-analysis/tests/test_utils.py | yosoyjay/project-nps-vessel-drift | 1cdc14ef87db31fa03b0c3bdc1d60c332727ef57 | [
"MIT"
] | null | null | null | src/vessel-drift-analysis/tests/test_utils.py | yosoyjay/project-nps-vessel-drift | 1cdc14ef87db31fa03b0c3bdc1d60c332727ef57 | [
"MIT"
] | null | null | null | from vessel_drift_analysis import utils
def test_lon360_to_lon180():
assert utils.lon360_to_lon180(200) == -160
assert utils.lon360_to_lon180(180) == -180
assert utils.lon360_to_lon180(360) == 0
| 26.125 | 46 | 0.751196 | 32 | 209 | 4.5625 | 0.53125 | 0.219178 | 0.383562 | 0.390411 | 0.513699 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225989 | 0.15311 | 209 | 7 | 47 | 29.857143 | 0.59887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.6 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9c34fc24310d6c9531b38f50b4fcb6167b49d036 | 78 | py | Python | files/screenshots/edx python screenshots/src6/weeks/1/cough0.py | multitudes/Python_am_Freitag | 189ce6ceee98b344292d14a7c82dfe18b7ede582 | [
"MIT"
] | null | null | null | files/screenshots/edx python screenshots/src6/weeks/1/cough0.py | multitudes/Python_am_Freitag | 189ce6ceee98b344292d14a7c82dfe18b7ede582 | [
"MIT"
] | null | null | null | files/screenshots/edx python screenshots/src6/weeks/1/cough0.py | multitudes/Python_am_Freitag | 189ce6ceee98b344292d14a7c82dfe18b7ede582 | [
"MIT"
] | 1 | 2020-11-24T23:25:26.000Z | 2020-11-24T23:25:26.000Z | # Opportunity for better design
print("cough")
print("cough")
print("cough")
| 13 | 31 | 0.717949 | 10 | 78 | 5.6 | 0.6 | 0.535714 | 0.535714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 78 | 5 | 32 | 15.6 | 0.811594 | 0.371795 | 0 | 1 | 0 | 0 | 0.319149 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.